PageSourceSearch

https://easiestbudget.com/app/main-es2015.bd24da2dd7f486b03039.js

js easiestbudget.com collected 2026-10-06 13:25:53 UTC 3,369,518 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+924":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("9AQC");function r(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t?e:e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,i=n.length;if(i<=150)return n;t>i&&(t=i);var r=Math.max(t-60,0);r<5&&(r=0);var o=Math.min(r+140,i);return o>i-5&&(o=i),o===i&&(r=Math.max(o-140,0)),n=n.slice(r,o),r>0&&(n="'{snip} "+n),o<i&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";for(var n=[],i=0;i<e.length;i++){var r=e[i];try{n.push(String(r))}catch(o){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t){return Object(i.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}},"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"/X5v":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},0:function(e,t,n){e.exports=n("zUnb")},"0mo+":function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f
162\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n("wd/R"))},"0tRk":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(n("wd/R"))},"1OTY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fXoL"),r=(n("L0o8"),n("aEEX"),n("fXoL"));n("L0o8"),n("aEEX"),t.AgGridModule=function(){function e(){}return e.withComponents=function(t){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}},e.forRoot=function(t){return{ngModule:e,providers:[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,useValue:t,multi:!0}]}},e.\u0275mod=r.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=r.\u0275\u0275defineInjector({factory:function(t){return new(t||e)},imports:[[]]}),e}()},"1rYy":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"1xZ4":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
1d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"2fjn":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("wd/R"))},"2ykv":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u
10932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n("wd/R"))},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"4MV3":function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%
1d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n("wd/R"))},"4dOw":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("ZUHj"),r=n("l7GE"),o=n("51Dv"),s=n("lJxs"),a=n("Cfvw");function l(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(l((n,i)=>Object(a.a)(e(n,i)).pipe(Object(s.a)((e,r)=>t(n,e,i,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new c(e,n)))}class c{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}class u extends r.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new o.a(this,t,n),s=this.destination;s.add(r);const a=Object(i.a)(this,e,void 0,void 0,r);a!==r&&s.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,i,r){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("7o/Q");class r extends i.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"6+QB":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},"6B0Y":function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u
117a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("wd/R"))},"6Joi":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("wj3C"))&&"object"==typeof i&&"default"in i?i.default:i,o=n("mrSG"),s=n("q/0M"),a=n("zVF4"),l=n("S+S0"),c=n("x7I3"),u=r.SDK_VERSION,d=new s.Logger("@firebase/firestore"),h=function(e){return e[e.DEBUG=0]="DEBUG",e[e.ERROR=1]="ERROR",e[e.SILENT=2]="SILENT",e}({});function p(){return d.logLevel===s.LogLevel.DEBUG?h.DEBUG:d.logLevel===s.LogLevel.SILENT?h.SILENT:h.ERROR}function f(e){switch(e){case h.DEBUG:d.logLevel=s.LogLevel.DEBUG;break;case h.ERROR:d.logLevel=s.LogLevel.ERROR;break;case h.SILENT:d.logLevel=s.LogLevel.SILENT;break;default:d.error("Firestore ("+u+"): Invalid value passed to `setLogLevel`")}}function m(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(d.logLevel<=s.LogLevel.DEBUG){var r=n.map(y);d.debug.apply(d,o.__spreadArrays(["Firestore ("+u+") ["+e+"]: "+t],r))}}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(d.logLevel<=s.LogLevel.ERROR){var i=t.map(y);d.error.apply(d,o.__spreadArrays(["Firestore ("+u+"): "+e],i))}}function y(e){if("string"==typeof e)return e;var t=b.getPlatform();try{return t.formatJSON(e)}catch(n){return e}}function v(e){var t="FIRESTORE ("+u+") INTERNAL ASSERTION FAILED: "+e;throw g(t),new Error(t)}function _(e,t){e||v(t)}var b=function(){function e(){}return e.setPlatform=function(t){e.platform&&v("Platform already defined"),e.platform=t},e.getPlatform=function(){return e.platform||v("Platform not set"),e.platform},e}();function w(){return b.getPlatform().emptyByteString}var C={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},E=function(e){function t(t,n){var i=e.call(this,n)||this;return i.code=t,i.message=n,i.name="FirebaseError",i.toString=function(){return i.name+": [code="+i.code+"]: "+i.message},i}return o.__extends(t,e),t}(Error);function S(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new E(C.INVALID_ARGUMENT,e)}for(var i in n.prototype=e.prototype,e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e,t){return void 0!==e?e:t}function T(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=Number(n);isNaN(i)||t(i,e[n])}}function O(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function k(e){for(var t in _(null!=e&&"object"==typeof e,"isEmpty() expects object parameter."),e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function I(e,t){if(0!==t.length)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() does not support arguments, but was called with "+$(t.length,"argument")+".")}function R(e,t,n){if(t.length!==n)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires "+$(n,"argument")+", but was called with "+$(t.length,"argument")+".")}function M(e,t,n){if(t.length<n)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires at least "+$(n,"argument")+", but was called with "+$(t.length,"argument")+".")}function A(e,t,n,i){if(t.length<n||t.length>i)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+i+" arguments, but was called with "+$(t.length,"argument")+".")}function P(e,t,n,i){if(!(t instanceof Array)||t.length<i)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" argument to be an array with at least "+$(i,"element")+".")}function L(e,t,n,i){Y(e,t,K(n)+" argument",i)}function N(e,t,n,i){void 0!==i&&L(e,t,n,i)}function F(e,t,n,i){Y(e,t,n+" option",i)}function j(e,t,n,i){void 0!==i&&F(e,t,n,i)}function V(e,t,n,i,r){void 0!==i&&function(e,t,n,i,r){for(var o=[],s=0,a=r;s<a.length;s++){var l=a[s];if(l===i)return;o.push(G(l))}var c=G(i);throw new E(C.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(e,0,n,i,r)}function H(e,t,n,i){if(!t.some((function(e){return e===i})))throw new E(C.INVALID_ARGUMENT,"Invalid value "+G(i)+" provided to function "+e+"() for its "+K(n)+" argument. Acceptable values: "+t.join(", "))}function Y(e,t,n,i){if(!("object"===t?B(i):"non-empty string"===t?"string"==typeof i&&""!==i:typeof i===t)){var r=G(i);throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+r)}}function B(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function G(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":v("Unknown wrong type: "+typeof e)}function W(e,t,n){if(void 0===n)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+K(t)+" argument, but it was undefined.")}function U(e,t,n){O(t,(function(t,i){if(n.indexOf(t)<0)throw new E(C.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))}))}function z(e,t,n,i){var r=G(i);return new E(C.INVALID_ARGUMENT,"Function "+e+"() requires its "+K(n)+" argument to be a "+t+", but it was: "+r)}function q(e,t,n){if(n<=0)throw new E(C.INVALID_ARGUMENT,'Function "'+e+'()" requires its '+K(t)+" argument to be a positive number, but it was: "+n+".")}function K(e){switch(e){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return e+"th"}}function $(e,t){return e+" "+t+(1===e?"":"s")}var Q=function(){function e(){}return e.newId=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return _(20===t.length,"Invalid auto ID: "+t),t},e}();function X(e,t){return e<t?-1:e>t?1:0}function J(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}function Z(e){return e+"\0"}function ee(){if("undefined"==typeof Uint8Array)throw new E(C.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function te(){if(!b.getPlatform().base64Available)throw new E(C.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var ne=function(){function e(e){te(),this._binaryString=e}return e.fromBase64String=function(t){R("Blob.fromBase64String",arguments,1),L("Blob.fromBase64String","string",1,t),te();try{var n=b.getPlatform().atob(t);return new e(n)}catch(i){throw new E(C.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+i)}},e.fromUint8Array=function(t){if(R("Blob.fromUint8Array",arguments,1),ee(),!(t instanceof Uint8Array))throw z("Blob.fromUint8Array","Uint8Array",1,t);var n=Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("");return new e(n)},e.prototype.toBase64=function(){return R("Blob.toBase64",arguments,0),te(),b.getPlatform().btoa(this._binaryString)},e.prototype.toUint8Array=function(){R("Blob.toUint8Array",arguments,0),ee();for(var e=new Uint8Array(this._binaryString.length),t=0;t<this._binaryString.length;t++)e[t]=this._binaryString.charCodeAt(t);return e},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._binaryString===e._binaryString},e.prototype._approximateByteSize=function(){return 2*this._binaryString.length},e.prototype._compareTo=function(e){return X(this._binaryString,e._binaryString)},e}(),ie=S(ne,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),re=function(){return function(e,t,n,i,r){this.databaseId=e,this.persistenceKey=t,this.host=n,this.ssl=i,this.forceLongPolling=r}}(),oe=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.compareTo=function(e){return X(this.projectId,e.projectId)||X(this.database,e.database)},e}(),se=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.sequenceNumberHandler=function(e){return n.setPreviousValue(e)},this.writeNewSequenceNumber=function(e){return t.writeSequenceNumber(e)})}return e.prototype.setPreviousValue=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.writeNewSequenceNumber&&this.writeNewSequenceNumber(e),e},e.INVALID=-1,e}(),ae=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&v("offset "+t+" out of range "+e.length),void 0===n?n=e.length-t:n>e.length-t&&v("length "+n+" out of range "+(e.length-t)),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return _(this.length>=(e=void 0===e?1:e),"Can't call popFirst() with less segments"),this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return _(!this.isEmpty(),"Can't call popLast() on empty path"),this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return _(!this.isEmpty(),"Can't 
1call firstSegment() on empty path"),this.segments[this.offset]},e.prototype.lastSegment=function(){return this.get(this.length-1)},e.prototype.get=function(e){return _(e<this.length,"Index out of range"),this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.isImmediateParentOf=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var r=e.get(i),o=t.get(i);if(r<o)return-1;if(r>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.construct=function(e,n,i){return new t(e,n,i)},t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(e){if(e.indexOf("//")>=0)throw new E(C.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter((function(e){return e.length>0})))},t.EMPTY_PATH=new t([]),t}(ae),ce=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.construct=function(e,n,i){return new t(e,n,i)},t.isValidIdentifier=function(e){return ce.test(e)},t.prototype.canonicalString=function(){return this.toArray().map((function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],i="",r=0,o=function(){if(0===i.length)throw new E(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},s=!1;r<e.length;){var a=e[r];if("\\"===a){if(r+1===e.length)throw new E(C.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[r+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new E(C.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);i+=l,r+=2}else"`"===a?(s=!s,r++):"."!==a||s?(i+=a,r++):(o(),r++)}if(o(),s)throw new E(C.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.EMPTY_PATH=new t([]),t}(ae),de=function(){function e(t){this.path=t,_(e.isDocumentKey(t),"Invalid DocumentKey with an odd number of segments: "+t.toArray().join("/"))}return e.prototype.hasCollectionId=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===le.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return le.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new le(t.slice()))},e.fromPathString=function(t){return new e(le.fromString(t))},e.EMPTY=new e(new le([])),e}(),he=function(){return function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}}(),pe=function(e){return e.All="all",e.ListenStreamIdle="listen_stream_idle",e.ListenStreamConnectionBackoff="listen_stream_connection_backoff",e.WriteStreamIdle="write_stream_idle",e.WriteStreamConnectionBackoff="write_stream_connection_backoff",e.OnlineStateTimeout="online_state_timeout",e.ClientMetadataRefresh="client_metadata_refresh",e.LruGarbageCollection="lru_garbage_collection",e.RetryTransaction="retry_transaction",e}({}),fe=function(){function e(e,t,n,i,r){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=i,this.removalCallback=r,this.deferred=new he,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.catch=this.deferred.promise.catch.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return e.createAndSchedule=function(t,n,i,r,o){var s=new e(t,n,Date.now()+i,r,o);return s.start(i),s},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new E(C.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}(),me=function(){function e(){this.tail=Promise.resolve(),this._isShuttingDown=!1,this.delayedOperations=[],this.failure=null,this.operationInProgress=!1,this.timerIdsToSkip=[]}return Object.defineProperty(e.prototype,"isShuttingDown",{get:function(){return this._isShuttingDown},enumerable:!0,configurable:!0}),e.prototype.enqueueAndForget=function(e){this.enqueue(e)},e.prototype.enqueueAndForgetEvenAfterShutdown=function(e){this.verifyNotFailed(),this.enqueueInternal(e)},e.prototype.enqueueEvenAfterShutdown=function(e){return this.verifyNotFailed(),this.enqueueInternal(e)},e.prototype.enqueueAndInitiateShutdown=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return this.verifyNotFailed(),this._isShuttingDown?[3,2]:(this._isShuttingDown=!0,[4,this.enqueueEvenAfterShutdown(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))},e.prototype.enqueue=function(e){return this.verifyNotFailed(),this._isShuttingDown?new Promise((function(e){})):this.enqueueInternal(e)},e.prototype.enqueueInternal=function(e){var t=this,n=this.tail.then((function(){return t.operationInProgress=!0,e().catch((function(e){t.failure=e,t.operationInProgress=!1;var n=e.stack||e.message||"";throw g("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout((function(){throw e}),0),e})).then((function(e){return t.operationInProgress=!1,e}))}));return this.tail=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var i=this;this.verifyNotFailed(),_(t>=0,"Attempted to schedule an operation with a negative delay of "+t),this.timerIdsToSkip.indexOf(e)>-1&&(t=0);var r=fe.createAndSchedule(this,e,t,n,(function(e){return i.removeDelayedOperation(e)}));return this.delayedOperations.push(r),r},e.prototype.verifyNotFailed=function(){this.failure&&v("AsyncQueue is already failed: "+(this.failure.stack||this.failure.message))},e.prototype.verifyOperationInProgress=function(){_(this.operationInProgress,"verifyOpInProgress() called when no op in progress on this queue.")},e.prototype.drain=function(){return this.enqueueEvenAfterShutdown((function(){return Promise.resolve()}))},e.prototype.containsDelayedOperation=function(e){for(var t=0,n=this.delayedOperations;t<n.length;t++)if(n[t].timerId===e)return!0;return!1},e.prototype.runDelayedOperationsEarly=function(e){var t=this;return this.drain().then((function(){_(e===pe.All||t.containsDelayedOperation(e),"Attempted to drain to missing operation "+e),t.delayedOperations.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));for(var n=0,i=t.delayedOperations;n<i.length;n++){var r=i[n];if(r.skipDelay(),e!==pe.All&&r.timerId===e)break}return t.drain()}))},e.prototype.skipDelaysForTimerId=function(e){this.timerIdsToSkip.push(e)},e.prototype.removeDelayedOperation=function(e){var t=this.delayedOperations.indexOf(e);_(t>=0,"Delayed operation not found."),this.delayedOperations.splice(t,1)},e}();function ge(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=ve(t)),t=ye(e.get(n),t);return ve(t)}function ye(e,t){for(var n=t,i=e.length,r=0;r<i;r++){var o=e.charAt(r);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function ve(e){return e+"\x01\x01"}function _e(e){var t=e.length;if(_(t>=2,"Invalid path "+e),2===t)return _("\x01"===e.charAt(0)&&"\x01"===e.charAt(1),"Non-empty path "+e+" had length 2"),le.EMPTY_PATH;for(var n=t-2,i=[],r="",o=0;o<t;){var s=e.indexOf("\x01",o);switch((s<0||s>n)&&v('Invalid encoded resource path: "'+e+'"'),e.charAt(s+1)){case"\x01":var a=e.substring(o,s),l=void 0;0===r.length?l=a:(l=r+=a,r=""),i.push(l);break;case"\x10":r+=e.substring(o,s),r+="\0";break;case"\x11":r+=e.substring(o,s+1);break;default:v('Invalid encoded resource path: "'+e+'"')}o=s+2}return new le(i)}var be=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new E(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new E(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new E(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new E(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?X(this.nanoseconds,e.nanoseconds):X(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e}(),we=function(){function e(e){this.timestamp=e}return e.fromMicroseconds=function(t){var n=Math.floor(t/1e6);return new e(new be(n,t%1e6*1e3))},e.fromTimestamp=function(t){return new e(t)},e.forDeletedDoc=function(){return e.MIN},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e.MIN=new e(new be(0,0)),e}(),Ce=function(){function e(e,t){this.comparator=e,this.root=t||Se.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,Se.BLACK,null,
1null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,Se.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var i=this.comparator(e,n.key);if(0===i)return t+n.left.size;i<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.inorderTraversal((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new Ee(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new Ee(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new Ee(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new Ee(this.root,e,this.comparator,!0)},e}(),Ee=function(){function e(e,t,n,i){this.isReverse=i,this.nodeStack=[];for(var r=1;!e.isEmpty();)if(r=t?n(e.key,t):1,i&&(r*=-1),r<0)e=this.isReverse?e.left:e.right;else{if(0===r){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){_(this.nodeStack.length>0,"getNext() called on iterator when hasNext() is false.");var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),Se=function(){function e(t,n,i,r,o){this.key=t,this.value=n,this.color=null!=i?i:e.RED,this.left=null!=r?r:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,i,r,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var i=this,r=n(e,i.key);return(i=r<0?i.copy(null,null,null,i.left.insert(e,t,n),null):0===r?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n))).fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var i,r=this;if(n(t,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(t,n),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===n(t,r.key)){if(r.right.isEmpty())return e.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(t,n))}return r.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw v("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed())throw v("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check();if(e!==this.right.check())throw v("Black depths differ");return e+(this.isRed()?0:1)},e.EMPTY=null,e.RED=!0,e.BLACK=!1,e}(),De=function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw v
1("LLRBEmptyNode has no key.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw v("LLRBEmptyNode has no value.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw v("LLRBEmptyNode has no color.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw v("LLRBEmptyNode has no left child.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw v("LLRBEmptyNode has no right child.")},enumerable:!0,configurable:!0}),e.prototype.copy=function(e,t,n,i,r){return this},e.prototype.insert=function(e,t,n){return new Se(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}();Se.EMPTY=new De;var xe=function(){function e(e){this.comparator=e,this.data=new Ce(this.comparator)}return e.fromMapKeys=function(t){var n=new e(t.comparator);return t.forEach((function(e){n=n.add(e)})),n},e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var i=n.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.getIterator=function(){return new Te(this.data.getIterator())},e.prototype.getIteratorFrom=function(e){return new Te(this.data.getIteratorFrom(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),i=t.data.getIterator();n.hasNext();){var r=n.getNext().key,o=i.getNext().key;if(0!==this.comparator(r,o))return!1}return!0},e.prototype.toArray=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),Te=function(){function e(e){this.iter=e}return e.prototype.getNext=function(){return this.iter.getNext().key},e.prototype.hasNext=function(){return this.iter.hasNext()},e}(),Oe=new Ce(de.comparator);function ke(){return Oe}function Ie(){return ke()}var Re=new Ce(de.comparator);function Me(){return Re}var Ae=new Ce(de.comparator);function Pe(){return Ae}var Le=new xe(de.comparator);function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Le,i=0,r=e;i<r.length;i++){var o=r[i];n=n.add(o)}return n}var Fe=new xe(X);function je(){return Fe}var Ve=function(){function e(e,t,n,i){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=i,_(i.length>0,"Cannot create an empty mutation batch")}return e.prototype.applyToRemoteDocument=function(e,t,n){t&&_(t.key.isEqual(e),"applyToRemoteDocument: key "+e+" should match maybeDoc key\n        "+t.key);var i=n.mutationResults;_(i.length===this.mutations.length,"Mismatch between mutations length\n      ("+this.mutations.length+") and mutation results length\n      ("+i.length+").");for(var r=0;r<this.mutations.length;r++){var o=this.mutations[r];o.key.isEqual(e)&&(t=o.applyToRemoteDocument(t,i[r]))}return t},e.prototype.applyToLocalView=function(e,t){t&&_(t.key.isEqual(e),"applyToLocalDocument: key "+e+" should match maybeDoc key\n        "+t.key);for(var n=0,i=this.baseMutations;n<i.length;n++)(a=i[n]).key.isEqual(e)&&(t=a.applyToLocalView(t,t,this.localWriteTime));for(var r=t,o=0,s=this.mutations;o<s.length;o++){var a;(a=s[o]).key.isEqual(e)&&(t=a.applyToLocalView(t,r,this.localWriteTime))}return t},e.prototype.applyToLocalDocumentSet=function(e){var t=this,n=e;return this.mutations.forEach((function(i){var r=t.applyToLocalView(i.key,e.get(i.key));r&&(n=n.insert(i.key,r))})),n},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Ne())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&J(this.mutations,e.mutations)&&J(this.baseMutations,e.baseMutations)},e}(),He=function(){function e(e,t,n,i,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.streamToken=i,this.docVersions=r}return e.from=function(t,n,i,r){_(t.mutations.length===i.length,"Mutations sent "+t.mutations.length+" must equal results received "+i.length);for(var o=Pe(),s=t.mutations,a=0;a<s.length;a++)o=o.insert(s[a].key,i[a].version);return new e(t,n,i,r,o)},e}(),Ye=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)}),(function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var i=this;return this.callbackAttached&&v("Called next() or catch() twice for PersistencePromise"),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,r){i.nextCallback=function(n){i.wrapSuccess(t,n).next(e,r)},i.catchCallback=function(t){i.wrapFailure(n,t).next(e,r)}}))},e.prototype.toPromise=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(i){return e.reject(i)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))}
1,e.reject=function(t){return new e((function(e,n){n(t)}))},e.waitFor=function(t){return new e((function(e,n){var i=0,r=0,o=!1;t.forEach((function(t){++i,t.next((function(){++r,o&&r===i&&e()}),(function(e){return n(e)}))})),o=!0,r===i&&e()}))},e.or=function(t){for(var n=e.resolve(!1),i=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},r=0,o=t;r<o.length;r++)i(o[r]);return n},e.forEach=function(e,t){var n=this,i=[];return e.forEach((function(e,r){i.push(t.call(n,e,r))})),this.waitFor(i)},e}(),Be="SimpleDb",Ge=function(){function e(t){this.db=t,12.2===e.getIOSVersion(a.getUA())&&g("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.openOrCreate=function(t,n,i){return _(e.isAvailable(),"IndexedDB not supported in current environment."),m(Be,"Opening database:",t),new Ye((function(r,o){var s=window.indexedDB.open(t,n);s.onsuccess=function(t){r(new e(t.target.result))},s.onblocked=function(){o(new E(C.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=function(e){var t=e.target.error;o("VersionError"===t.name?new E(C.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):t)},s.onupgradeneeded=function(e){m(Be,'Database "'+t+'" requires upgrade from version:',e.oldVersion),i.createOrUpgrade(e.target.result,s.transaction,e.oldVersion,Jt).next((function(){m(Be,"Database upgrade to version "+Jt+" complete")}))}})).toPromise()},e.delete=function(e){return m(Be,"Removing database:",e),qe(window.indexedDB.deleteDatabase(e)).toPromise()},e.isAvailable=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(e.isMockPersistence())return!0;if(void 0===window.navigator)return!1;var t=a.getUA(),n=e.getIOSVersion(t),i=0<n&&n<10,r=e.getAndroidVersion(t),o=0<r&&r<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||i||o)},e.isMockPersistence=function(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.env)||void 0===e?void 0:e.USE_MOCK_PERSISTENCE)},e.getStore=function(e,t){return e.store(t)},e.getIOSVersion=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.getAndroidVersion=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.setVersionChangeListener=function(e){this.db.onversionchange=function(t){return e(t)}},e.prototype.runTransaction=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var i,r,s,a,l,c;return o.__generator(this,(function(u){switch(u.label){case 0:i=e.startsWith("readonly"),r=e.endsWith("idempotent"),s=0,a=function(){var e,a,c,u;return o.__generator(this,(function(o){switch(o.label){case 0:++s,e=Ue.open(l.db,i?"readonly":"readwrite",t),o.label=1;case 1:return o.trys.push([1,3,,4]),(a=n(e).catch((function(t){return e.abort(t),Ye.reject(t)})).toPromise()).catch((function(){})),[4,e.completionPromise];case 2:return o.sent(),[2,{value:a}];case 3:return c=o.sent(),m(Be,"Transaction failed with error: %s. Retrying: %s.",c.message,u=r&&"FirebaseError"!==c.name&&s<3),u?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}
1))},l=this,u.label=1;case 1:return[5,a()];case 2:return"object"==typeof(c=u.sent())?[2,c.value]:[3,1];case 3:return[2]}}))}))},e.prototype.close=function(){this.db.close()},e}(),We=function(){function e(e){this.dbCursor=e,this.shouldStop=!1,this.nextKey=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.shouldStop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipToKey",{get:function(){return this.nextKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.dbCursor=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.shouldStop=!0},e.prototype.skip=function(e){this.nextKey=e},e.prototype.delete=function(){return qe(this.dbCursor.delete())},e}(),Ue=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.completionDeferred=new he,this.transaction.oncomplete=function(){t.completionDeferred.resolve()},this.transaction.onabort=function(){e.error?t.completionDeferred.reject(e.error):t.completionDeferred.resolve()},this.transaction.onerror=function(e){var n=$e(e.target.error);t.completionDeferred.reject(n)}}return e.open=function(t,n,i){return new e(t.transaction(i,n))},Object.defineProperty(e.prototype,"completionPromise",{get:function(){return this.completionDeferred.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.completionDeferred.reject(e),this.aborted||(m(Be,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return _(!!t,"Object store not part of transaction: "+e),new ze(t)},e}(),ze=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(m(Be,"PUT",this.store.name,e,t),n=this.store.put(t,e)):(m(Be,"PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),qe(n)},e.prototype.add=function(e){return m(Be,"ADD",this.store.name,e,e),qe(this.store.add(e))},e.prototype.get=function(e){var t=this;return qe(this.store.get(e)).next((function(n){return void 0===n&&(n=null),m(Be,"GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return m(Be,"DELETE",this.store.name,e),qe(this.store.delete(e))},e.prototype.count=function(){return m(Be,"COUNT",this.store.name),qe(this.store.count())},e.prototype.loadAll=function(e,t){var n=this.cursor(this.options(e,t)),i=[];return this.iterateCursor(n,(function(e,t){i.push(t)})).next((function(){return i}))},e.prototype.deleteAll=function(e,t){m(Be,"DELETE ALL",this.store.name);var n=this.options(e,t);n.keysOnly=!1;var i=this.cursor(n);return this.iterateCursor(i,(function(e,t,n){return n.delete()}))},e.prototype.iterate=function(e,t){var n;t?n=e:(n={},t=e);var i=this.cursor(n);return this.iterateCursor(i,t)},e.prototype.iterateSerial=function(e){var t=this.cursor({});return new Ye((function(n,i){t.onerror=function(e){var t=$e(e.target.error);i(t)},t.onsuccess=function(t){var i=t.target.result;i?e(i.primaryKey,i.value).next((function(e){e?i.continue():n()})):n()}}))},e.prototype.iterateCursor=function(e,t){var n=[];return new Ye((function(i,r){e.onerror=function(e){r(e.target.error)},e.onsuccess=function(e){var r=e.target.result;if(r){var o=new We(r),s=t(r.primaryKey,r.value,o);if(s instanceof Ye){var a=s.catch((function(e){return o.done(),Ye.reject(e)}));n.push(a)}o.isDone?i():null===o.skipToKey?r.continue():r.continue(o.skipToKey)}else i()}})).next((function(){return Ye.waitFor(n)}))},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:(_(void 0===t,"3rd argument must not be defined if 2nd is a range."),t=e)),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.keysOnly?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function qe(e){return new Ye((function(t,n){e.onsuccess=function(e){t(e.target.result)},e.onerror=function(e){var t=$e(e.target.error);n(t)}}))}var Ke=!1;function $e(e){var t=Ge.getIOSVersion(a.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var i=new E("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Ke||(Ke=!0,setTimeout((function(){throw i}),0)),i}}return e}var Qe=function(){function e(e,t,n,i){this.userId=e,this.serializer
1=t,this.indexManager=n,this.referenceDelegate=i,this.documentKeysByBatchId={}}return e.forUser=function(t,n,i,r){return _(""!==t.uid,"UserID must not be an empty string."),new e(t.isAuthenticated()?t.uid:"",n,i,r)},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return et(e).iterate({index:rn.userMutationsIndex,range:n},(function(e,n,i){t=!1,i.done()})).next((function(){return t}))},e.prototype.acknowledgeBatch=function(e,t,n){return this.getMutationQueueMetadata(e).next((function(t){return t.lastStreamToken=Ze(n),nt(e).put(t)}))},e.prototype.getLastStreamToken=function(e){return this.getMutationQueueMetadata(e).next((function(e){return e.lastStreamToken}))},e.prototype.setLastStreamToken=function(e,t){return this.getMutationQueueMetadata(e).next((function(n){return n.lastStreamToken=Ze(t),nt(e).put(n)}))},e.prototype.addMutationBatch=function(e,t,n,i){var r=this,o=tt(e),s=et(e);return s.add({}).next((function(a){_("number"==typeof a,"Auto-generated key is not a number");for(var l=new Ve(a,t,n,i),c=r.serializer.toDbMutationBatch(r.userId,l),u=[],d=new xe((function(e,t){return X(e.canonicalString(),t.canonicalString())})),h=0,p=i;h<p.length;h++){var f=p[h],m=on.key(r.userId,f.key.path,a);d=d.add(f.key.path.popLast()),u.push(s.put(c)),u.push(o.put(m,on.PLACEHOLDER))}return d.forEach((function(t){u.push(r.indexManager.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((function(){r.documentKeysByBatchId[a]=l.keys()})),Ye.waitFor(u).next((function(){return l}))}))},e.prototype.lookupMutationBatch=function(e,t){var n=this;return et(e).get(t).next((function(e){return e?(_(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+t),n.serializer.fromDbMutationBatch(e)):null}))},e.prototype.lookupMutationKeys=function(e,t){var n=this;return this.documentKeysByBatchId[t]?Ye.resolve(this.documentKeysByBatchId[t]):this.lookupMutationBatch(e,t).next((function(e){if(e){var i=e.keys();return n.documentKeysByBatchId[t]=i,i}return null}))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,i=t
1+1,r=IDBKeyRange.lowerBound([this.userId,i]),o=null;return et(e).iterate({index:rn.userMutationsIndex,range:r},(function(e,t,r){t.userId===n.userId&&(_(t.batchId>=i,"Should have found mutation after "+i),o=n.serializer.fromDbMutationBatch(t)),r.done()})).next((function(){return o}))},e.prototype.getHighestUnacknowledgedBatchId=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return et(e).iterate({index:rn.userMutationsIndex,range:t,reverse:!0},(function(e,t,i){n=t.batchId,i.done()})).next((function(){return n}))},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return et(e).loadAll(rn.userMutationsIndex,n).next((function(e){return e.map((function(e){return t.serializer.fromDbMutationBatch(e)}))}))},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,i=on.prefixForPath(this.userId,t.path),r=IDBKeyRange.lowerBound(i),o=[];return tt(e).iterate({range:r},(function(i,r,s){var a=i[0],l=i[2],c=_e(i[1]);if(a===n.userId&&t.path.isEqual(c))return et(e).get(l).next((function(e){if(!e)throw v("Dangling document-mutation reference found: "+i+" which points to "+l);_(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+l),o.push(n.serializer.fromDbMutationBatch(e))}));s.done()})).next((function(){return o}))},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,i=new xe(X),r=[];return t.forEach((function(t){var o=on.prefixForPath(n.userId,t.path),s=IDBKeyRange.lowerBound(o),a=tt(e).iterate({range:s},(function(e,r,o){var s=e[0],a=e[2],l=_e(e[1]);s===n.userId&&t.path.isEqual(l)?i=i.add(a):o.done()}));r.push(a)})),Ye.waitFor(r).next((function(){return n.lookupMutationBatches(e,i)}))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this;_(!t.isDocumentQuery(),"Document queries shouldn't go down this path"),_(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var i=t.path,r=i.length+1,o=on.prefixForPath(this.userId,i),s=IDBKeyRange.lowerBound(o),a=new xe(X);return tt(e).iterate({range:s},(function(e,t,o){var s=e[0],l=e[2],c=_e(e[1]);s===n.userId&&i.isPrefixOf(c)?c.length===r&&(a=a.add(l)):o.done()})).next((function(){return n.lookupMutationBatches(e,a)}))},e.prototype.lookupMutationBatches=function(e,t){var n=this,i=[],r=[];return t.forEach((function(t){r.push(et(e).get(t).next((function(e){if(null===e)throw v("Dangling document-mutation reference found, which points to "+t);_(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+t),i.push(n.serializer.fromDbMutationBatch(e))})))})),Ye.waitFor(r).next((function(){return i}))},e.prototype.removeMutationBatch=function(e,t){var n=this;return Je(e.simpleDbTransaction,this.userId,t).next((function(i){return e.addOnCommittedListener((function(){n.removeCachedMutationKeys(t.batchId)})),Ye.forEach(i,(function(t){return n.referenceDelegate.removeMutationReference(e,t)}))}))},e.prototype.removeCachedMutationKeys=function(e){delete this.documentKeysByBatchId[e]},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next((function(n){if(!n)return Ye.resolve();
1var i=IDBKeyRange.lowerBound(on.prefixForUser(t.userId)),r=[];return tt(e).iterate({range:i},(function(e,n,i){if(e[0]===t.userId){var o=_e(e[1]);r.push(o)}else i.done()})).next((function(){_(0===r.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+r.map((function(e){return e.canonicalString()})))}))}))},e.prototype.containsKey=function(e,t){return Xe(e,this.userId,t)},e.prototype.getMutationQueueMetadata=function(e){var t=this;return nt(e).get(this.userId).next((function(e){return e||new nn(t.userId,-1,"")}))},e}();function Xe(e,t,n){var i=on.prefixForPath(t,n.path),r=i[1],o=IDBKeyRange.lowerBound(i),s=!1;return tt(e).iterate({range:o,keysOnly:!0},(function(e,n,i){e[0]===t&&e[1]===r&&(s=!0),i.done()})).next((function(){return s}))}function Je(e,t,n){var i=e.store(rn.store),r=e.store(on.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,l=i.iterate({range:s},(function(e,t,n){return a++,n.delete()}));o.push(l.next((function(){_(1===a,"Dangling document-mutation reference found: Missing batch "+n.batchId)})));for(var c=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],p=on.key(t,h.key.path,n.batchId);o.push(r.delete(p)),c.push(h.key)}return Ye.waitFor(o).next((function(){return c}))}function Ze(e){return e instanceof Uint8Array?(_(Ge.isMockPersistence(),"Persisting non-string stream tokens is only supported with mock persistence."),e.toString()):e}function et(e){return Hn.getStore(e,rn.store)}function tt(e){return Hn.getStore(e,on.store)}function nt(e){return Hn.getStore(e,nn.store)}var it=function(e){return e[e.QueryCache=0]="QueryCache",e[e.SyncEngine=1]="SyncEngine",e}({}),rt=function(){function e(e,t){this.generatorId=e,_((1&e)===e,"Generator ID "+e+" contains more than 1 reserved bits"),this.seek(void 0!==t?t:this.generatorId)}return e.prototype.next=function(){var e=this.nextId;return this.nextId+=2,e},e.prototype.after=function(e){return this.seek(e+2),this.next()},e.prototype.seek=function(e){_((1&e)===this.generatorId,"Cannot supply target ID from different generator ID"),this.nextId=e},e.forTargetCache=function(){return new e(it.QueryCache,2)},e.forSyncEngine=function(){return new e(it.SyncEngine)},e}(),ot=function(){function e(e,t){this.referenceDelegate=e,this.serializer=t,this.targetIdGenerator=rt.forTargetCache()}return e.prototype.allocateTargetId=function(e){var t=this;return this.retrieveMetadata(e).next((function(n){return n.highestTargetId=t.targetIdGenerator.after(n.highestTargetId),t.saveMetadata(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.getLastRemoteSnapshotVersion=function(e){return this.retrieveMetadata(e).next((function(e){return we.fromTimestamp(new be(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.getHighestSequenceNumber=function(e){return lt(e.simpleDbTransaction)},e.prototype.setTargetsMetadata=function(e,t,n){var i=this;return this.retrieveMetadata(e).next((function(r){return r.highestListenSequenceNumber=t,n&&(r.lastRemoteSnapshotVersion=n.toTimestamp()),t>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=t),i.saveMetadata(e,r)}))},e.prototype.addTargetData=function(e,t){var n=this;return this.saveTargetData(e,t).next((function(){return n.retrieveMetadata(e).next((function(i){return i.targetCount+=1,n.updateMetadataFromTargetData(t,i),n.saveMetadata(e,i)}))}))},e.prototype.updateTargetData=function(e,t){return this.saveTargetData(e,t)},e.prototype.removeTargetData=function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next((function(){return st(e).delete(t.targetId)})).next((function(){return n.retrieveMetadata(e)})).next((function(t){return _(t.targetCount>0,"Removing from an empty target cache"),t.targetCount-=1,n.saveMetadata(e,t)}))},e.prototype.removeTargets=function(e,t,n){var i=this,r=0,o=[];return st(e).iterate((function(s,a){var l=i.serializer.fromDbTarget(a);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(r++,o.push(i.removeTargetData(e,l)))})).next((function(){return Ye.waitFor(o)})).next((function(){return r}))},e.prototype.forEachTarget=function(e,t){var n=this;
1return st(e).iterate((function(e,i){var r=n.serializer.fromDbTarget(i);t(r)}))},e.prototype.retrieveMetadata=function(e){return at(e.simpleDbTransaction)},e.prototype.saveMetadata=function(e,t){return(n=e,Hn.getStore(n,hn.store)).put(hn.key,t);var n},e.prototype.saveTargetData=function(e,t){return st(e).put(this.serializer.toDbTarget(t))},e.prototype.updateMetadataFromTargetData=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.getTargetCount=function(e){return this.retrieveMetadata(e).next((function(e){return e.targetCount}))},e.prototype.getTargetData=function(e,t){var n=this,i=t.canonicalId(),r=IDBKeyRange.bound([i,Number.NEGATIVE_INFINITY],[i,Number.POSITIVE_INFINITY]),o=null;return st(e).iterate({range:r,index:un.queryTargetsIndexName},(function(e,i,r){var s=n.serializer.fromDbTarget(i);t.isEqual(s.target)&&(o=s,r.done())})).next((function(){return o}))},e.prototype.addMatchingKeys=function(e,t,n){var i=this,r=[],o=ct(e);return t.forEach((function(t){var s=ge(t.path);r.push(o.put(new dn(n,s))),r.push(i.referenceDelegate.addReference(e,t))})),Ye.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){var i=this,r=ct(e);return Ye.forEach(t,(function(t){var o=ge(t.path);return Ye.waitFor([r.delete([n,o]),i.referenceDelegate.removeReference(e,t)])}))},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=ct(e),i=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(i)},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),i=ct(e),r=Ne();return i.iterate({range:n,keysOnly:!0},(function(e,t,n){var i=_e(e[1]),o=new de(i);r=r.add(o)})).next((function(){return r}))},e.prototype.containsKey=function(e,t){var n=ge(t.path),i=IDBKeyRange.bound([n],[Z(n)],!1,!0),r=0;return ct(e).iterate({index:dn.documentTargetsIndex,keysOnly:!0,range:i},(function(e,t,n){0!==e[0]&&(r++,n.done())})).next((function(){return r>0}))},e.prototype.getTargetDataForTarget=function(e,t){var n=this;return st(e).get(t).next((function(e){return e?n.serializer.fromDbTarget(e):null}))},e}();function st(e){return Hn.getStore(e,un.store)}function at(e){return Ge.getStore(e,hn.store).get(hn.key).next((function(e){return _(null!==e,"Missing metadata row."),e}))}function lt(e){return at(e).next((function(e){return e.highestListenSequenceNumber}))}function ct(e){return Hn.getStore(e,dn.store)}var ut=function(){function e(e){this.fields=e}return e.fromSet=function(t){return new e(t)},e.fromArray=function(t){var n=new xe(ue.comparator);return t.forEach((function(e){return n=n.add(e)})),new e(n)},e.prototype.covers=function(e){var t=!1;return this.fields.forEach((function(n){n.isPrefixOf(e)&&(t=!0)})),t},e.prototype.isEqual=function(e){return this.fields.isEqual(e.fields)},e}(),dt=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),ht=function(){return function(e,t){this.version=e,this.transformResults=t}}(),pt=function(e){return e[e.Set=0]="Set",e[e.Patch=1]="Patch",e[e.Transform=2]="Transform",e[e.Delete=3]="Delete",e[e.Verify=4]="Verify",e}({}),ft=function(){function e(e,t){this.updateTime=e,this.exists=t,_(void 0===e||void 0===t,'Precondition can specify "exists" or "updateTime" but not both')}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.isValidFor=function(e){return void 0!==this.updateTime?e instanceof Ht&&e.version.isEqual(this.updateTime):void 0!==this.exists?this.exists===e instanceof Ht:(_(this.isNone,"Precondition should be empty"),!0)},e.prototype.isEqual=function(e){return n=e.updateTime,(null!=(t=this.updateTime)?!(!n||!t.isEqual(n)):t===n)&&this.exists===e.exists;var t,n},e.NONE=new e,e}(),mt=function(){function e(){}return e.prototype.verifyKeyMatches=function(e){null!=e&&_(e.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},e.getPostMutationVersion=function(e){return e instanceof Ht?e.ver
1sion:we.MIN},e}(),gt=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.value=n,r.precondition=i,r.type=pt.Set,r}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){return this.verifyKeyMatches(e),_(null==t.transformResults,"Transform results received by SetMutation."),new Ht(this.key,t.version,{hasCommittedMutations:!0},this.value)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=mt.getPostMutationVersion(e);return new Ht(this.key,i,{hasLocalMutations:!0},this.value)},t.prototype.extractBaseValue=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.precondition.isEqual(e.precondition)},t}(mt),yt=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.key=t,o.data=n,o.fieldMask=i,o.precondition=r,o.type=pt.Patch,o}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),_(null==t.transformResults,"Transform results received by PatchMutation."),!this.precondition.isValidFor(e))return new Bt(this.key,t.version);var n=this.patchDocument(e);return new Ht(this.key,t.version,{hasCommittedMutations:!0},n)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=mt.getPostMutationVersion(e),r=this.patchDocument(e);return new Ht(this.key,i,{hasLocalMutations:!0},r)},t.prototype.extractBaseValue=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.fieldMask.isEqual(e.fieldMask)&&this.precondition.isEqual(e.precondition)},t.prototype.patchDocument=function(e){var t;return t=e instanceof Ht?e.data():Ft.EMPTY,this.patchObject(t)},t.prototype.patchObject=function(e){var t=this;return this.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var i=t.data.field(n);e=null!==i?e.set(n,i):e.delete(n)}})),e},t}(mt),vt=function(e){function t(t,n){var i=e.call(this)||this;return i.key=t,i.fieldTransforms=n,i.type=pt.Transform,i.precondition=ft.exists(!0),i}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),_(null!=t.transformResults,"Transform results missing for TransformMutation."),!this.precondition.isValidFor(e))return new Bt(this.key,t.version);var n=this.requireDocument(e),i=this.serverTransformResults(e,t.transformResults),r=t.version,o=this.transformObject(n.data(),i);return new Ht(this.key,r,{hasCommittedMutations:!0},o)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=this.requireDocument(e),r=this.localTransformResults(n,e,t),o=this.transformObject(i.data(),r);return new Ht(this.key,i.version,{hasLocalMutations:!0},o)},t.prototype.extractBaseValue=function(e){for(var t=null,n=0,i=this.fieldTransforms;n<i.length;n++){var r=i[n],o=e instanceof Ht?e.field(r.field):void 0,s=r.transform.computeBaseValue(o||null);null!=s&&(t=null==t?Ft.EMPTY.set(r.field,s):t.set(r.field,s))}return t},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&J(this.fieldTransforms,e.fieldTransforms)&&this.precondition.isEqual(e.precondition)},t.prototype.requireDocument=function(e){return _(e instanceof Ht,"Unknown MaybeDocument type "+e),_(e.key.isEqual(this.key),"Can only transform a document with the same key"),e},t.prototype.serverTransformResults=function(e,t){var n=[];_(this.fieldTransforms.length===t.length,"server transform result count ("+t.length+") should match field transform count ("+this.fieldTransforms.length+")");for(var i=0;i<t.length;i++){var r=this.fieldTransforms[i],o=r.transform,s=null;e instanceof Ht&&(s=e.field(r.field)),n.push(o.applyToRemoteDocument(s,t[i]))}return n},t.prototype.localTransformResults=function(e,t,n){for(var i=[],r=0,o=this.fieldTransforms;r<o.length;r++){var s=o[r],a=s.transform,l=null;t instanceof Ht&&(l=t.field(s.field)),null===l&&n instanceof Ht&&(l=n.field(s.field)),i.push(a.applyToLocalView(l,e))}return i},t.prototype.transformObject=function(e,t){_(t.length===this.fieldTransforms.length,"TransformResults length mismatch.");for(var n=0;n<this.fieldTransforms.length;n++)e=e.set(this.fieldTransforms[n].field,t[n]);return e},t}(mt),_t=function(e){function t(t,n){var i=e.call(this)||this;return i.key=t,i.precondition=n,i.type=pt.Delete,i}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){return this.verifyKeyMatches(e),_(null==t.transformResults,"Transform results received by DeleteMutation."),new Yt(this.key,t.version,{hasCommittedMutations:!0})},t.prototype.applyToLocalView=function(e,t,n){return this.verifyKeyMatches(e),this.prec
1ondition.isValidFor(e)?(e&&_(e.key.isEqual(this.key),"Can only apply mutation to document with same key"),new Yt(this.key,we.forDeletedDoc())):e},t.prototype.extractBaseValue=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.precondition.isEqual(e.precondition)},t}(mt),bt=function(e){function t(t,n){var i=e.call(this)||this;return i.key=t,i.precondition=n,i.type=pt.Verify,i}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){v("VerifyMutation should only be used in Transactions.")},t.prototype.applyToLocalView=function(e,t,n){v("VerifyMutation should only be used in Transactions.")},t.prototype.extractBaseValue=function(e){v("VerifyMutation should only be used in Transactions.")},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.precondition.isEqual(e.precondition)},t}(mt),wt=function(e){return e[e.NullValue=0]="NullValue",e[e.BooleanValue=1]="BooleanValue",e[e.NumberValue=2]="NumberValue",e[e.TimestampValue=3]="TimestampValue",e[e.StringValue=4]="StringValue",e[e.BlobValue=5]="BlobValue",e[e.RefValue=6]="RefValue",e[e.GeoPointValue=7]="GeoPointValue",e[e.ArrayValue=8]="ArrayValue",e[e.ObjectValue=9]="ObjectValue",e}({}),Ct=function(e){return e[e.Default=0]="Default",e[e.Estimate=1]="Estimate",e[e.Previous=2]="Previous",e}({}),Et=function(){function e(e,t){this.serverTimestampBehavior=e,this.timestampsInSnapshots=t}return e.fromSnapshotOptions=function(t,n){switch(t.serverTimestamps){case"estimate":return new e(Ct.Estimate,n);case"previous":return new e(Ct.Previous,n);case"none":case void 0:return new e(Ct.Default,n);default:return v("fromSnapshotOptions() called with invalid options.")}},e}(),St=function(){function e(){}return e.prototype.toString=function(){var e=this.value();return null===e?"null":e.toString()},e.prototype.defaultCompareTo=function(e){return _(this.typeOrder!==e.typeOrder,"Default compareTo should not be used for values of same type."),X(this.typeOrder,e.typeOrder)},e}(),Dt=function(e){function t(){var t=e.call(this)||this;return t.typeOrder=wt.NullValue,t.internalValue=null,t}return o.__extends(t,e),t.prototype.value=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t},t.prototype.compareTo=function(e){return e instanceof t?0:this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return 4},t.INSTANCE=new t,t}(St),xt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.BooleanValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?X(this,e):this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return 4},t.of=function(e){return e?t.TRUE:t.FALSE},t.TRUE=new t(!0),t.FALSE=new t(!1),t}(St),Tt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.NumberValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.compareTo=function(e){return e instanceof t?(n=this.internalValue)<(i=e.internalValue)?-1:n>i?1:n===i?0:isNaN(n)?isNaN(i)?0:-1:1:this.defaultCompareTo(e);var n,i},t.prototype.approximateByteSize=function(){return 8},t}(St);function Ot(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Ot(this.internalValue,e.internalValue)},t}(Tt),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Ot(this.internalValue,e.internalValue)},t.NAN=new t(NaN),t.POSITIVE_INFINITY=new t(1/0),t.NEGATIVE_INFINITY=new t(-1/0),t}(Tt),Rt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.StringValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?X(this.internalValue,e.internalValue):this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return 2*this.internalValue.length},t}(St),Mt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.TimestampValue,n}return o.__extends(t,e),t.prototype.value=function(e){return!e||e.timestampsInSnapshots?this.internalValue:this.internalValue.toDate()},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):e instanceof At?-1:this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return 16},t}(St),At=function(e){function t(t,n){var i=e.call(this)||this;return i.localWriteTime=t,i.previousValue=n,i.typeOrder=wt.TimestampValue,i}return o.__extends(t,e),t.prototype.value=function(e){return e&&e.serverTimestampBehavior===Ct.Estimate?new Mt(this.localWriteTime).value(e):e&&e.serverTimestampBehavior===Ct.Previous&&this.previousValue?this.previousValue.value(e):null},t.prototype.isEqual=function(e){return e instanceof t&&this.localWriteTime.isEqual(e.localWriteTime)},t.prototype.compareTo=function(e){return e instanceof t?this.localWriteTime._compareTo(e.localWriteTime):e instanceof Mt?1:this.defaultCompareTo(e)},t.prototype.toString=function(){return"<ServerTimestamp localTime="+this.localWriteTime.toString()+">"},t.prototype.approximateByteSize=function(){return 16+(this.previousValue?this.previousValue.approximateByteSize():0)},t}(St),Pt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.BlobValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return this.internalValue._approximateByteSize()},t}(St),Lt=function(e){function t(t,n){var i=e.call(this)||this;return i.databaseId=t,i.key=n,i.typeOrder=wt.RefValue,i}return o.__extends(t,e),t.prototype.value=function(e){return this.key},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.databaseId.isEqual(e.databaseId)},t.prototype.compareTo=function(e){if(e instanceof t){var n=this.databaseId.compareTo(e.databaseId);return 0!==n?n:de.comparator(this.key,e.key)}return this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return this.databaseId.projectId.length+this.databaseId.database.length+this.key.toString().length},t}(St),Nt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.GeoPointValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return 16},t}(St),Ft=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.ObjectValue,n}return o.__extends(t,e),t.prototype.value=function(e){var t={};return this.internalValue.inorderTraversal((function(n,i){t[n]=i.value(e)})),t},t.prototype.forEach=function(e){this.internalValue.inorderTraversal(e)},t.prototype.isEqual=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),i=e.internalValue.getIterator();n.hasNext()&&i.hasNext();){var r=n.getNext(),o=i.getNext();if(r.key!==o.key||!r.value.isEqual(o.value))return!1}return!n.hasNext()&&!i.hasNext()}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),i=e.internalValue.getIterator();n.hasNext()&&i.hasNext();){var r=n.getNext(),o=i.getNext(),s=X(r.key,o.key)||r.value.compareTo(o.value);if(s)return s}return X(n.hasNext(),i.hasNext())}return this.defaultCompareTo(e)},t.prototype.set=function(e,n){if(_(!e.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===e.length)return this.setChild(e.firstSegment(),n);var i=this.child(e.firstSegment());i instanceof t||(i=t.EMPTY);var r=i.set(e.popFirst(),n);return this.setChild(e.firstSegment(),r)},t.prototype.delete=function(e){if(_(!e.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===e.length)return new t(this.internalValue.remove(e.firstSegment()));var n=this.child(e.firstSegment());if(n instanceof t){var i=n.delete(e.popFirst());return new t(this.internalValue.insert(e.firstSegment(),i))}return this},t.prototype.contains=function(e){return null!==this.field(e)},t.prototype.field=function(e){_(!e.isEmpty(),"Can't get field of empty path");var n=this;return e.forEach((function(e){n=n instanceof t?n.internalValue.get(e):null})),n},t.prototype.fieldMask=function(){var e=new xe(ue.comparator);return this.internalValue.forEach((function(n,i){var r=new ue([n]);if(i instanceof t){var o=i.fieldMask().fields;
1o.isEmpty()?e=e.add(r):o.forEach((function(t){e=e.add(r.child(t))}))}else e=e.add(r)})),ut.fromSet(e)},t.prototype.approximateByteSize=function(){var e=0;return this.internalValue.inorderTraversal((function(t,n){e+=t.length+n.approximateByteSize()})),e},t.prototype.toString=function(){return this.internalValue.toString()},t.prototype.child=function(e){return this.internalValue.get(e)||void 0},t.prototype.setChild=function(e,n){return new t(this.internalValue.insert(e,n))},t.EMPTY=new t(new Ce(X)),t}(St),jt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=wt.ArrayValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue.map((function(t){return t.value(e)}))},t.prototype.contains=function(e){for(var t=0,n=this.internalValue;t<n.length;t++)if(n[t].isEqual(e))return!0;return!1},t.prototype.forEach=function(e){this.internalValue.forEach(e)},t.prototype.isEqual=function(e){if(e instanceof t){if(this.internalValue.length!==e.internalValue.length)return!1;for(var n=0;n<this.internalValue.length;n++)if(!this.internalValue[n].isEqual(e.internalValue[n]))return!1;return!0}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=Math.min(this.internalValue.length,e.internalValue.length),i=0;i<n;i++){var r=this.internalValue[i].compareTo(e.internalValue[i]);if(r)return r}return X(this.internalValue.length,e.internalValue.length)}return this.defaultCompareTo(e)},t.prototype.approximateByteSize=function(){return this.internalValue.reduce((function(e,t){return e+t.approximateByteSize()}),0)},t.prototype.toString=function(){return"["+this.internalValue.map((function(e){return e.toString()})).join(",")+"]"},t}(St),Vt=function(){function e(e,t){this.key=e,this.version=t}return e.compareByKey=function(e,t){return de.comparator(e.key,t.key)},e}(),Ht=function(e){function t(t,n,i,r,o,s){var a=e.call(this,t,n)||this;return a.objectValue=r,a.proto=o,a.converter=s,_(void 0!==a.objectValue||void 0!==a.proto&&void 0!==a.converter,"If objectValue is not defined, proto and converter need to be set."),a.hasLocalMutations=!!i.hasLocalMutations,a.hasCommittedMutations=!!i.hasCommittedMutations,a}return o.__extends(t,e),t.prototype.field=function(e){if(this.objectValue)return this.objectValue.field(e);this.fieldValueCache||(this.fieldValueCache=new Map);var t=e.canonicalString(),n=this.fieldValueCache.get(t);if(void 0===n){var i=this.getProtoField(e);n=void 0===i?null:this.converter(i),this.fieldValueCache.set(t,n)}return n},t.prototype.data=function(){var e=this;if(!this.objectValue){var t=Ft.EMPTY;O(this.proto.fields||{},(function(n,i){t=t.set(new ue([n]),e.converter(i))})),this.objectValue=t,this.fieldValueCache=void 0}return this.objectValue},t.prototype.value=function(){return this.data().value()},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.hasLocalMutations===e.hasLocalMutations&&this.hasCommittedMutations===e.hasCommittedMutations&&this.data().isEqual(e.data())},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.data().toString()+", {hasLocalMutations: "+this.hasLocalMutations+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.getProtoField=function(e){_(void 0!==this.proto,"Can only call getProtoField() when proto is defined");for(var t=this.proto.fields?this.proto.fields[e.firstSegment()]:void 0,n=1;n<e.length;++n){if(!t||!t.mapValue||!t.mapValue.fields)return;t=t.mapValue.fields[e.get(n)]}return t},t.compareByField=function(e,t,n){var i=t.field(e),r=n.field(e);return null!==i&&null!==r?i.compareTo(r):v("Trying to compare documents on fields that don't exist")},t}(Vt),Yt=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.hasCommittedMutations=!(!i||!i.hasCommittedMutations),r}return o.__extends(t,e),t.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.hasCommittedMutations===this.hasCommittedMutations&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(Vt),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!0,configurable:!0}
1),t.prototype.isEqual=function(e){return e instanceof t&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(Vt),Gt=function(){function e(e){this.mapKeyFn=e,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(var i=0,r=n;i<r.length;i++){var o=r[i],s=o[1];if(o[0].isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),i=this.inner[n];if(void 0!==i){for(var r=0;r<i.length;r++)if(i[r][0].isEqual(e))return void(i[r]=[e,t]);i.push([e,t])}else this.inner[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var i=0;i<n.length;i++)if(n[i][0].isEqual(e))return 1===n.length?delete this.inner[t]:n.splice(i,1),!0;return!1},e.prototype.forEach=function(e){O(this.inner,(function(t,n){for(var i=0,r=n;i<r.length;i++){var o=r[i];e(o[0],o[1])}}))},e.prototype.isEmpty=function(){return k(this.inner)},e}(),Wt=function(){function e(){this.changes=new Gt((function(e){return e.toString()})),this.changesApplied=!1}return Object.defineProperty(e.prototype,"readTime",{get:function(){return _(void 0!==this._readTime,"Read time is not set. All removeEntry() calls must include a readTime if `trackRemovals` is used."),this._readTime},set:function(e){_(void 0===this._readTime||this._readTime.isEqual(e),"All changes in a RemoteDocumentChangeBuffer must have the same read time"),this._readTime=e},enumerable:!0,configurable:!0}),e.prototype.addEntry=function(e,t){this.assertNotApplied(),this.readTime=t,this.changes.set(e.key,e)},e.prototype.removeEntry=function(e,t){this.assertNotApplied(),t&&(this.readTime=t),this.changes.set(e,null)},e.prototype.getEntry=function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?Ye.resolve(n):this.getFromCache(e,t)},e.prototype.getEntries=function(e,t){return this.getAllFromCache(e,t)},e.prototype.apply=function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)},e.prototype.assertNotApplied=function(){_(!this.changesApplied,"Changes have already been applied.")},e}(),Ut=function(){function e(e,t){this.serializer=e,this.indexManager=t}return e.prototype.addEntry=function(e,t,n){return qt(e).put(Kt(t),n)},e.prototype.removeEntry=function(e,t){var n=qt(e),i=Kt(t);return n.delete(i)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(i){return i.byteSize+=t,n.setMetadata(e,i)}))},e.prototype.getEntry=function(e,t){var n=this;return qt(e).get(Kt(t)).next((function(e){return n.maybeDecodeDocument(e)}))},e.prototype.getSizedEntry=function(e,t){var n=this;return qt(e).get(Kt(t)).next((function(e){var t=n.maybeDecodeDocument(e);return t?{maybeDocument:t,size:$t(e)}:null}))},e.prototype.getEntries=function(e,t){var n=this,i=Ie();return this.forEachDbEntry(e,t,(function(e,t){var r=n.maybeDecodeDocument(t);i=i.insert(e,r)})).next((function(){return i}))},e.prototype.getSizedEntries=function(e,t){var n=this,i=Ie(),r=new Ce(de.comparator);return this.forEachDbEntry(e,t,(function(e,t){var o=n.maybeDecodeDocument(t);o?(i=i.insert(e,o),r=r.insert(e,$t(t))):(i=i.insert(e,null),r=r.insert(e,0))})).next((function(){return{maybeDocuments:i,sizeMap:r}}))},e.prototype.forEachDbEntry=function(e,t,n){if(t.isEmpty())return Ye.resolve();var i=IDBKeyRange.bound(t.first().path.toArray(),t.last().path.toArray()),r=t.getIterator(),o=r.getNext();return qt(e).iterate({range:i},(function(e,t,i){for(var s=de.fromSegments(e);o&&de.comparator(o,s)<0;)n(o,null),o=r.getNext();o&&o.isEqual(s)&&(n(o,t),o=r.hasNext()?r.getNext():null),o?i.skip(o.path.toArray()):i.done()})).next((function(){for(;o;)n(o,null),o=r.hasNext()?r.getNext():null}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){var i=this;_(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var r=Me(),o=t.path.length+1,s={};if(n.isEqual(we.MIN)){var a=t.path.toArray();s.range=IDBKeyRange.lowerBound(a)}else{var l=t.path.toArray(),c=this.serializer.toDbTimestampKey(n);s.range=IDBKeyRange.lowerBound([l,c],!0),s.index=ln.collectionReadTimeIndex}return qt(e).iterate(s,(function(e,n,s){if(e.length===o){var a=i.serializer.fromDbRemoteDocument(n);t.path.isPrefixOf(a.key.path)?a instanceof Ht&&t.matches(a)&&(r=r.
1insert(a.key,a)):s.done()}})).next((function(){return r}))},e.prototype.getNewDocumentChanges=function(e,t){var n=this,i=ke(),r=this.serializer.toDbTimestampKey(t),o=qt(e),s=IDBKeyRange.lowerBound(r,!0);return o.iterate({index:ln.readTimeIndex,range:s},(function(e,t){var o=n.serializer.fromDbRemoteDocument(t);i=i.insert(o.key,o),r=t.readTime})).next((function(){return{changedDocs:i,readTime:n.serializer.fromDbTimestampKey(r)}}))},e.prototype.getLastReadTime=function(e){var t=this,n=qt(e),i=we.MIN;return n.iterate({index:ln.readTimeIndex,reverse:!0},(function(e,n,r){n.readTime&&(i=t.serializer.fromDbTimestampKey(n.readTime)),r.done()})).next((function(){return i}))},e.prototype.newChangeBuffer=function(t){return new e.RemoteDocumentChangeBuffer(this,!!t&&t.trackRemovals)},e.prototype.getSize=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return zt(e).get(cn.key).next((function(e){return _(!!e,"Missing document cache metadata"),e}))},e.prototype.setMetadata=function(e,t){return zt(e).put(cn.key,t)},e.prototype.maybeDecodeDocument=function(e){if(e){var t=this.serializer.fromDbRemoteDocument(e);return t instanceof Yt&&t.version.isEqual(we.forDeletedDoc())?null:t}return null},e.RemoteDocumentChangeBuffer=function(e){function t(t,n){var i=e.call(this)||this;return i.documentCache=t,i.trackRemovals=n,i.documentSizes=new Gt((function(e){return e.toString()})),i}return o.__extends(t,e),t.prototype.applyChanges=function(e){var t=this,n=[],i=0,r=new xe((function(e,t){return X(e.canonicalString(),t.canonicalString())}));
1return this.changes.forEach((function(o,s){var a=t.documentSizes.get(o);if(_(void 0!==a,"Cannot modify a document that wasn't read (for "+o+")"),s){_(!t.readTime.isEqual(we.MIN),"Cannot add a document with a read time of zero");var l=t.documentCache.serializer.toDbRemoteDocument(s,t.readTime);r=r.add(o.path.popLast());var c=$t(l);i+=c-a,n.push(t.documentCache.addEntry(e,o,l))}else if(i-=a,t.trackRemovals){var u=t.documentCache.serializer.toDbRemoteDocument(new Yt(o,we.forDeletedDoc()),t.readTime);n.push(t.documentCache.addEntry(e,o,u))}else n.push(t.documentCache.removeEntry(e,o))})),r.forEach((function(i){n.push(t.documentCache.indexManager.addToCollectionParentIndex(e,i))})),n.push(this.documentCache.updateMetadata(e,i)),Ye.waitFor(n)},t.prototype.getFromCache=function(e,t){var n=this;return this.documentCache.getSizedEntry(e,t).next((function(e){return null===e?(n.documentSizes.set(t,0),null):(n.documentSizes.set(t,e.size),e.maybeDocument)}))},t.prototype.getAllFromCache=function(e,t){var n=this;return this.documentCache.getSizedEntries(e,t).next((function(e){var t=e.maybeDocuments;return e.sizeMap.forEach((function(e,t){n.documentSizes.set(e,t)})),t}))},t}(Wt),e}();function zt(e){return Hn.getStore(e,cn.store)}function qt(e){return Hn.getStore(e,ln.store)}function Kt(e){return e.path.toArray()}function $t(e){var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw v("Unknown remote document type");t=e.noDocument}return JSON.stringify(t).length}var Qt=function(){function e(){this.collectionParentIndex=new Xt}return e.prototype.addToCollectionParentIndex=function(e,t){return this.collectionParentIndex.add(t),Ye.resolve()},e.prototype.getCollectionParents=function(e,t){return Ye.resolve(this.collectionParentIndex.getEntries(t))},e}(),Xt=function(){function e(){this.index={}}return e.prototype.add=function(e){_(e.length%2==1,"Expected a collection path.");var t=e.lastSegment(),n=e.popLast(),i=this.index[t]||new xe(le.comparator),r=!i.has(n);return this.index[t]=i.add(n),r},e.prototype.has=function(e){var t=e.lastSegment(),n=e.popLast(),i=this.index[t];return i&&i.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new xe(le.comparator)).toArray()},e}(),Jt=9,Zt=function(){function e(e){this.serializer=e}return e.prototype.createOrUpgrade=function(e,t,n,i){var r=this;_(n<i&&n>=0&&i<=Jt,"Unexpected schema upgrade from v"+n+" to v{toVersion}.");var o=new Ue(t);n<1&&i>=1&&(function(e){e.createObjectStore(tn.store)}(e),function(e){e.createObjectStore(nn.store,{keyPath:nn.keyPath}),e.createObjectStore(rn.store,{keyPath:rn.keyPath,autoIncrement:!0}).createIndex(rn.userMutationsIndex,rn.userMutationsKeyPath,{unique:!0}),e.createObjectStore(on.store)}(e),fn(e),function(e){e.createObjectStore(ln.store)}(e));var s=Ye.resolve();return n<3&&i>=3&&(0!==n&&(function(e){e.deleteObjectStore(dn.store),e.deleteObjectStore(un.store),e.deleteObjectStore(hn.store)}(e),fn(e)),s=s.next((function(){return function(e){var t=e.store(hn.store),n=new hn(0,0,we.MIN.toTimestamp(),0);return t.put(hn.key,n)}(o)}))),n<4&&i>=4&&(0!==n&&(s=s.next((function(){return function(e,t){return t.store(rn.store).loadAll().next((function(n){e.deleteObjectStore(rn.store),e.createObjectStore(rn.store,{keyPath:rn.keyPath,autoIncrement:!0}).createIndex(rn.userMutationsIndex,rn.userMutationsKeyPath,{unique:!0});var i=t.store(rn.store),r=n.map((function(e){return i.put(e)}));return Ye.waitFor(r)}))}(e,o)}))),s=s.next((function(){!function(e){e.createObjectStore(mn.store,{keyPath:mn.keyPath})}(e)}))),n<5&&i>=5&&(s=s.next((function(){return r.removeAcknowledgedMutations(o)}))),n<6&&i>=6&&(s=s.next((function(){return function(e){e.createObjectStore(cn.store)}(e),r.addDocumentGlobal(o)}))),n<7&&i>=7&&(s=s.next((function(){return r.ensureSequenceNumbers(o)}))),n<8&&i>=8&&(s=s.next((function(){return r.createCollectionParentIndex(e,o)}))),n<9&&i>=9&&(s=s.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(ln.store);t.createIndex(ln.readTimeIndex,ln.readTimeIndexPath,{unique:!1}),t.createIndex(ln.collectionReadTimeIndex,ln.collectionReadTimeIndexPath,{unique:!1})}(t)}))),s},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(ln.store).iterate((function(e,n){t+=$t(n)})).next((function(){var n=new cn(t);return e.store(cn.store).put(cn.key,n)}))},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(nn.store),i=e.store(rn.store);return n.loadAll().next((function(n){return Ye.forEach(n,(function(n){var r=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return i.loadAll(rn.userMutationsIndex,r).next((function(i){return Ye.forEach(i,(function(i){_(i.userId===n.userId,"Cannot process batch "+i.batchId+" from unexpected user");var r=t.serializer.fromDbMutationBatch(i);return Je(e,n.userId,r).next((function(){}))}))}))}))}))},e.prototype.ensureSequenceNumbers=function(e){var t=e.store(dn.store),n=e.store(ln.store);return lt(e).next((function(e){var i=[];return n.iterate((function(n,r){var o=new le(n),s=function(e){return[0,ge(e)]}(o);i.push(t.get(s).next((function(n){return n?Ye.resolve():function(n){return t.put(new dn(0,ge(n),e))}(o)})))})).next((function(){return Ye.waitFor(i)}))}))},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(pn.store,{keyPath:pn.keyPath});var n=t.store(pn.store),i=new Xt,r=function(e){if(i.add(e)){var t=e.lastSegment(),r=e.popLast();return n.put({collectionId:t,parent:ge(r)})}};return t.store(ln.store).iterate({keysOnly:!0},(function(e,t){var n=new le(e);return r(n.popLast())})).next((function(){return t.store(on.store).iterate({keysOnly:!0},(function(e,t){var n=_e(e[1]);return r(n.popLast())}))}))},e}(),en=function(){return function(e,t){this.seconds=e,this.nanoseconds=t}}(),tn=function(){function e(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n}return e.store="owner",e.key="owner",e}(),nn=function(){function e(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n}
1return e.store="mutationQueues",e.keyPath="userId",e}(),rn=function(){function e(e,t,n,i,r){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=r}return e.store="mutations",e.keyPath="batchId",e.userMutationsIndex="userMutationsIndex",e.userMutationsKeyPath=["userId","batchId"],e}(),on=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,ge(t)]},e.key=function(e,t,n){return[e,ge(t),n]},e.store="documentMutations",e.PLACEHOLDER=new e,e}(),sn=function(){return function(e,t){this.path=e,this.readTime=t}}(),an=function(){return function(e,t){this.path=e,this.version=t}}(),ln=function(){function e(e,t,n,i,r,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=i,this.readTime=r,this.parentPath=o}return e.store="remoteDocuments",e.readTimeIndex="readTimeIndex",e.readTimeIndexPath="readTime",e.collectionReadTimeIndex="collectionReadTimeIndex",e.collectionReadTimeIndexPath=["parentPath","readTime"],e}(),cn=function(){function e(e){this.byteSize=e}return e.store="remoteDocumentGlobal",e.key="remoteDocumentGlobalKey",e}(),un=function(){function e(e,t,n,i,r,o,s){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=r,this.lastLimboFreeSnapshotVersion=o,this.query=s}return e.store="targets",e.keyPath="targetId",e.queryTargetsIndexName="queryTargetsIndex",e.queryTargetsKeyPath=["canonicalId","targetId"],e}(),dn=function(){function e(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n,_(0===e==(void 0!==n),"A target-document row must either have targetId == 0 and a defined sequence number, or a non-zero targetId and no sequence number")}return e.store="targetDocuments",e.keyPath=["targetId","path"],e.documentTargetsIndex="documentTargetsIndex",e.documentTargetsKeyPath=["path","targetId"],e}(),hn=function(){function e(e,t,n,i){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=i}return e.key="targetGlobalKey",e.store="targetGlobal",e}(),pn=function(){function e(e,t){this.collectionId=e,this.parent=t}return e.store="collectionParents",e.keyPath=["collectionId","parent"],e}();function fn(e){e.createObjectStore(dn.store,{keyPath:dn.keyPath}).createIndex(dn.documentTargetsIndex,dn.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(un.store,{keyPath:un.keyPath}).createIndex(un.queryTargetsIndexName,un.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(hn.store)}var mn=function(){function e(e,t,n,i){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=i}return e.store="clientMetadata",e.keyPath="clientId",e}(),gn=o.__spreadArrays([nn.store,rn.store,on.store,ln.store,un.store,tn.store,hn.store,dn.store],[mn.store]),yn=o.__spreadArrays(gn,[cn.store]),vn=o.__spreadArrays(yn,[pn.store]),_n=function(){function e(){this.collectionParentsCache=new Xt}return e.prototype.addToCollectionParentIndex=function(e,t){var n=this;if(_(t.length%2==1,"Expected a collection path."),!this.collectionParentsCache.has(t)){var i=t.lastSegment(),r=t.popLast();e.addOnCommittedListener((function(){n.collectionParentsCache.add(t)}));var o={collectionId:i,parent:ge(r)};return bn(e).put(o)}return Ye.resolve()},e.prototype.getCollectionParents=function(e,t){var n=[],i=IDBKeyRange.bound([t,""],[Z(t),""],!1,!0);return bn(e).loadAll(i).next((function(e){for(var i=0,r=e;i<r.length;i++){var o=r[i];if(o.collectionId!==t)break;n.push(_e(o.parent))}return n}))},e}();function bn(e){return Hn.getStore(e,pn.store)}var wn=function(e){return e[e.Listen=0]="Listen",e[e.ExistenceFilterMismatch=1]="ExistenceFilterMismatch",e[e.LimboResolution=2]="LimboResolution",e}({}),Cn=function(){function e(e,t,n,i,r,o,s){void 0===r&&(r=we.MIN),void 0===o&&(o=we.MIN),void 0===s&&(s=w()),this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=i,this.snapshotVersion=r,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return e.prototype.withSequenceNumber=function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.withResumeToken=function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.withLastLimboFreeSnapshotVersion=function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)},e.prototype.isEqual=function(e){return this.targetId===e.targetId&&this.purpose===e.purpose&&this.sequenceNumber===e.sequenceNumber&&this.snapshotVersion.isEqual(e.snapshotVersion)&&this.lastLimboFreeSnapshotVersion.isEqual(e.lastLimboFreeSnapshotVersion)&&this.resumeToken===e.resumeToken&&this.target.isEqual(e.target)},e}
1(),En=function(){function e(e){this.remoteSerializer=e}return e.prototype.fromDbRemoteDocument=function(e){if(e.document)return this.remoteSerializer.fromDocument(e.document,!!e.hasCommittedMutations);if(e.noDocument){var t=de.fromSegments(e.noDocument.path),n=this.fromDbTimestamp(e.noDocument.readTime);return new Yt(t,n,{hasCommittedMutations:!!e.hasCommittedMutations})}return e.unknownDocument?(t=de.fromSegments(e.unknownDocument.path),n=this.fromDbTimestamp(e.unknownDocument.version),new Bt(t,n)):v("Unexpected DbRemoteDocument")},e.prototype.toDbRemoteDocument=function(e,t){var n=this.toDbTimestampKey(t),i=e.key.path.popLast().toArray();if(e instanceof Ht){var r=e.proto?e.proto:this.remoteSerializer.toDocument(e);return new ln(null,null,r,a=e.hasCommittedMutations,n,i)}if(e instanceof Yt){var o=e.key.path.toArray(),s=this.toDbTimestamp(e.version),a=e.hasCommittedMutations;return new ln(null,new sn(o,s),null,a,n,i)}if(e instanceof Bt){o=e.key.path.toArray();var l=this.toDbTimestamp(e.version);return new ln(new an(o,l),null,null,!0,n,i)}return v("Unexpected MaybeDocument")},e.prototype.toDbTimestampKey=function(e){var t=e.toTimestamp();return[t.seconds,t.nanoseconds]},e.prototype.fromDbTimestampKey=function(e){var t=new be(e[0],e[1]);return we.fromTimestamp(t)},e.prototype.toDbTimestamp=function(e){var t=e.toTimestamp();return new en(t.seconds,t.nanoseconds)},e.prototype.fromDbTimestamp=function(e){var t=new be(e.seconds,e.nanoseconds);return we.fromTimestamp(t)},e.prototype.toDbMutationBatch=function(e,t){var n=this,i=t.baseMutations.map((function(e){return n.remoteSerializer.toMutation(e)})),r=t.mutations.map((function(e){return n.remoteSerializer.toMutation(e)}));return new rn(e,t.batchId,t.localWriteTime.toMillis(),i,r)},e.prototype.fromDbMutationBatch=function(e){var t=this,n=(e.baseMutations||[]).map((function(e){return t.remoteSerializer.fromMutation(e)})),i=e.mutations.map((function(e){return t.remoteSerializer.fromMutation(e)})),r=be.fromMillis(e.localWriteTimeMs);return new Ve(e.batchId,r,n,i)},e.prototype.toDbResourcePaths=function(e){var t=[];return e.forEach((function(e){t.push(ge(e.path))})),t},e.prototype.fromDbResourcePaths=function(e){for(var t=Ne(),n=0,i=e;n<i.length;n++)t=t.add(new de(_e(i[n])));return t},e.prototype.fromDbTarget=function(e){var t,n=this.fromDbTimestamp(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?this.fromDbTimestamp(e.lastLimboFreeSnapshotVersion):we.MIN,r=e.resumeToken;return t=void 0!==e.query.documents?this.remoteSerializer.fromDocumentsTarget(e.query):this.remoteSerializer.fromQueryTarget(e.query),new Cn(t,e.targetId,wn.Listen,e.lastListenSequenceNumber,n,i,r)},e.prototype.toDbTarget=function(e){_(wn.Listen===e.purpose,"Only queries with purpose "+wn.Listen+" may be stored, got "+e.purpose);var t,n,i=this.toDbTimestamp(e.snapshotVersion),r=this.toDbTimestamp(e.lastLimboFreeSnapshotVersion);return t=e.target.isDocumentQuery()?this.remoteSerializer.toDocumentsTarget(e.target):this.remoteSerializer.toQueryTarget(e.target),e.resumeToken instanceof Uint8Array?(_(Ge.isMockPersistence(),"Persisting non-string stream tokens is only supported with mock persistence ."),n=e.resumeToken.toString()):n=e.resumeToken,new un(e.targetId,e.target.canonicalId(),i,n,e.sequenceNumber,r,t)},e}(),Sn=function(){function e(e,t,n){this.remoteDocumentCache=e,this.mutationQueue=t,this.indexManager=n}return e.prototype.getDocument=function(e,t){var n=this;return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(e,t).next((function(i){return n.getDocumentInternal(e,t,i)}))},e.prototype.getDocumentInternal=function(e,t,n){return this.remoteDocumentCache.getEntry(e,t).next((function(e){for(var i=0,r=n;i<r.length;i++)e=r[i].applyToLocalView(t,e);return e}))},e.prototype.applyLocalMutationsToDocuments=function(e,t,n){var i=Ie();return t.forEach((function(e,t){for(var r=0,o=n;r<o.length;r++)t=o[r].applyToLocalView(e,t);i=i.insert(e,t)})),i},e.prototype.getDocuments=function(e,t){var n=this;return this.remoteDocumentCache.getEntries(e,t).next((function(t){return n.getLocalViewOfDocuments(e,t)}))},e.prototype.getLocalViewOfDocuments=function(e,t){var n=this;
1return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(i){var r=n.applyLocalMutationsToDocuments(e,t,i),o=ke();return r.forEach((function(e,t){t||(t=new Yt(e,we.forDeletedDoc())),o=o.insert(e,t)})),o}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){return t.isDocumentQuery()?this.getDocumentsMatchingDocumentQuery(e,t.path):t.isCollectionGroupQuery()?this.getDocumentsMatchingCollectionGroupQuery(e,t,n):this.getDocumentsMatchingCollectionQuery(e,t,n)},e.prototype.getDocumentsMatchingDocumentQuery=function(e,t){return this.getDocument(e,new de(t)).next((function(e){var t=Me();return e instanceof Ht&&(t=t.insert(e.key,e)),t}))},e.prototype.getDocumentsMatchingCollectionGroupQuery=function(e,t,n){var i=this;_(t.path.isEmpty(),"Currently we only support collection group queries at the root.");var r=t.collectionGroup,o=Me();return this.indexManager.getCollectionParents(e,r).next((function(s){return Ye.forEach(s,(function(s){var a=t.asCollectionQueryAtPath(s.child(r));return i.getDocumentsMatchingCollectionQuery(e,a,n).next((function(e){e.forEach((function(e,t){o=o.insert(e,t)}))}))})).next((function(){return o}))}))},e.prototype.getDocumentsMatchingCollectionQuery=function(e,t,n){var i,r,o=this;return this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n).next((function(n){return i=n,o.mutationQueue.getAllMutationBatchesAffectingQuery(e,t)})).next((function(t){return o.addMissingBaseDocuments(e,r=t,i).next((function(e){i=e;for(var t=0,n=r;t<n.length;t++)for(var o=n[t],s=0,a=o.mutations;s<a.length;s++){var l=a[s],c=l.key,u=i.get(c),d=l.applyToLocalView(u,u,o.localWriteTime);i=d instanceof Ht?i.insert(c,d):i.remove(c)}}))})).next((function(){return i.forEach((function(e,n){t.matches(n)||(i=i.remove(e))})),i}))},e.prototype.addMissingBaseDocuments=function(e,t,n){for(var i=Ne(),r=0,o=t;r<o.length;r++)for(var s=0,a=o[r].mutations;s<a.length;s++){var l=a[s];l instanceof yt&&null===n.get(l.key)&&(i=i.add(l.key))}var c=n;return this.remoteDocumentCache.getEntries(e,i).next((function(e){return e.forEach((function(e,t){null!==t&&t instanceof Ht&&(c=c.insert(e,t))})),c}))},e}(),Dn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",xn=function(){function e(){this.onCommittedListeners=[]}return e.prototype.addOnCommittedListener=function(e){this.onCommittedListeners.push(e)},e.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach((function(e){return e()}))},e}(),Tn=function(){function e(){this.refsByKey=new xe(On.compareByKey),this.refsByTarget=new xe(On.compareByTargetId)}return e.prototype.isEmpty=function(){return this.refsByKey.isEmpty()},e.prototype.addReference=function(e,t){var n=new On(e,t);this.refsByKey=this.refsByKey.add(n),this.refsByTarget=this.refsByTarget.add(n)},e.prototype.addReferences=function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))},e.prototype.removeReference=function(e,t){this.removeRef(new On(e,t))},e.prototype.removeReferences=function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))},e.prototype.removeReferencesForId=function(e){var t=this,n=de.EMPTY,i=new On(n,e),r=new On(n,e+1),o=[];return this.refsByTarget.forEachInRange([i,r],(function(e){t.removeRef(e),o.push(e.key)})),o},e.prototype.removeAllReferences=function(){var e=this;this.refsByKey.forEach((function(t){return e.removeRef(t)}))},e.prototype.removeRef=function(e){this.refsByKey=this.refsByKey.delete(e),this.refsByTarget=this.refsByTarget.delete(e)},e.prototype.referencesForId=function(e){var t=de.EMPTY,n=new On(t,e),i=new On(t,e+1),r=Ne();return this.refsByTarget.forEachInRange([n,i],(function(e){r=r.add(e.key)})),r},e.prototype.containsKey=function(e){var t=new On(e,0),n=this.refsByKey.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)},e}(),On=function(){function e(e,t){this.key=e,this.targetOrBatchId=t}return e.compareByKey=function(e,t){return de.comparator(e.key,t.key)||X(e.targetOrBatchId,t.targetOrBatchId)},e.compareByTargetId=function(e,t){return X(e.targetOrBatchId,t.targetOrBatchId)||de.comparator(e.key,t.key)},e}(),kn=function(){function e(e,t,n){this.persistence=e,this.queryEngine=t,this.localViewReferences=new Tn,this.targetDataByTarget=new Ce(X),this.targetIdByTarget=new Gt((function(e){return e.canonicalId()})),this.lastDocumentChangeReadTime=we.MIN,_(e.started,"LocalStore was passed an unstarted persistence implementation"),this.persistence.referenceDelegate.setInMemoryPins(this.localViewReferences),this.mutation
1Queue=e.getMutationQueue(n),this.remoteDocuments=e.getRemoteDocumentCache(),this.targetCache=e.getTargetCache(),this.localDocuments=new Sn(this.remoteDocuments,this.mutationQueue,this.persistence.getIndexManager()),this.queryEngine.setLocalDocumentsView(this.localDocuments)}return e.prototype.start=function(){return this.synchronizeLastDocumentChangeReadTime()},e.prototype.handleUserChange=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i,r=this;return o.__generator(this,(function(o){switch(o.label){case 0:return t=this.mutationQueue,n=this.localDocuments,[4,this.persistence.runTransaction("Handle user change","readonly-idempotent",(function(i){var o;return r.mutationQueue.getAllMutationBatches(i).next((function(s){return o=s,t=r.persistence.getMutationQueue(e),n=new Sn(r.remoteDocuments,t,r.persistence.getIndexManager()),t.getAllMutationBatches(i)})).next((function(e){for(var t=[],r=[],s=Ne(),a=0,l=o;a<l.length;a++){t.push((p=l[a]).batchId);for(var c=0,u=p.mutations;c<u.length;c++)s=s.add(u[c].key)}for(var d=0,h=e;d<h.length;d++){var p;r.push((p=h[d]).batchId);for(var f=0,m=p.mutations;f<m.length;f++)s=s.add(m[f].key)}return n.getDocuments(i,s).next((function(e){return{affectedDocuments:e,removedBatchIds:t,addedBatchIds:r}}))}))}))];case 1:return i=o.sent(),this.mutationQueue=t,this.localDocuments=n,this.queryEngine.setLocalDocumentsView(this.localDocuments),[2,i]}}))}))},e.prototype.localWrite=function(e){var t,n=this,i=be.now(),r=e.reduce((function(e,t){return e.add(t.key)}),Ne());return this.persistence.runTransaction("Locally write mutations","readwrite-idempotent",(function(o){return n.localDocuments.getDocuments(o,r).next((function(r){t=r;for(var s=[],a=0,l=e;a<l.length;a++){var c=l[a],u=c.extractBaseValue(t.get(c.key));null!=u&&s.push(new yt(c.key,u,u.fieldMask(),ft.exists(!0)))}
1return n.mutationQueue.addMutationBatch(o,i,s,e)}))})).then((function(e){var n=e.applyToLocalDocumentSet(t);return{batchId:e.batchId,changes:n}}))},e.prototype.lookupMutationDocuments=function(e){var t=this;return this.persistence.runTransaction("Lookup mutation documents","readonly-idempotent",(function(n){return t.mutationQueue.lookupMutationKeys(n,e).next((function(e){return e?t.localDocuments.getDocuments(n,e):Ye.resolve(null)}))}))},e.prototype.acknowledgeBatch=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary-idempotent",(function(n){var i=e.batch.keys(),r=t.remoteDocuments.newChangeBuffer({trackRemovals:!0});return t.mutationQueue.acknowledgeBatch(n,e.batch,e.streamToken).next((function(){return t.applyWriteToRemoteDocuments(n,e,r)})).next((function(){return r.apply(n)})).next((function(){return t.mutationQueue.performConsistencyCheck(n)})).next((function(){return t.localDocuments.getDocuments(n,i)}))}))},e.prototype.rejectBatch=function(e){var t=this;return this.persistence.runTransaction("Reject batch","readwrite-primary-idempotent",(function(n){var i;return t.mutationQueue.lookupMutationBatch(n,e).next((function(e){return _(null!==e,"Attempt to reject nonexistent batch!"),i=e.keys(),t.mutationQueue.removeMutationBatch(n,e)})).next((function(){return t.mutationQueue.performConsistencyCheck(n)})).next((function(){return t.localDocuments.getDocuments(n,i)}))}))},e.prototype.getHighestUnacknowledgedBatchId=function(){var e=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly-idempotent",(function(t){return e.mutationQueue.getHighestUnacknowledgedBatchId(t)}))},e.prototype.getLastStreamToken=function(){var e=this;return this.persistence.runTransaction("Get last stream token","readonly-idempotent",(function(t){return e.mutationQueue.getLastStreamToken(t)}))},e.prototype.setLastStreamToken=function(e){var t=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary-idempotent",(function(n){return t.mutationQueue.setLastStreamToken(n,e)}))},e.prototype.getLastRemoteSnapshotVersion=function(){var e=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly-idempotent",(function(t){return e.targetCache.getLastRemoteSnapshotVersion(t)}))},e.prototype.applyRemoteEvent=function(t){var n=this,i=t.snapshotVersion,r=this.targetDataByTarget;return this.persistence.runTransaction("Apply remote event","readwrite-primary-idempotent",(function(o){var s=n.remoteDocuments.newChangeBuffer({trackRemovals:!0});r=n.targetDataByTarget;var a=[];T(t.targetChanges,(function(t,s){var l=r.get(t);if(l){a.push(n.targetCache.removeMatchingKeys(o,s.removedDocuments,t).next((function(){return n.targetCache.addMatchingKeys(o,s.addedDocuments,t)})));var c=s.resumeToken;if(c.length>0){var u=l.withResumeToken(c,i).withSequenceNumber(o.currentSequenceNumber);r=r.insert(t,u),e.shouldPersistTargetData(l,u,s)&&a.push(n.targetCache.updateTargetData(o,u))}}}));var l=ke(),c=Ne();if(t.documentUpdates.forEach((function(e,t){c=c.add(e)})),a.push(s.getEntries(o,c).next((function(e){t.documentUpdates.forEach((function(r,c){var u=e.get(r);c instanceof Yt&&c.version.isEqual(we.MIN)?(s.removeEntry(r,i),l=l.insert(r,c)):null==u||c.version.compareTo(u.version)>0||0===c.version.compareTo(u.version)&&u.hasPendingWrites?(_(!we.MIN.isEqual(i),"Cannot add a document when the remote version is zero"),s.addEntry(c,i),l=l.insert(r,c)):m("LocalStore","Ignoring outdated watch update for ",r,". Current version:",u.version," Watch version:",c.version),t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(o,r))}))}))),!i.isEqual(we.MIN)){var u=n.targetCache.getLastRemoteSnapshotVersion(o).next((function(e){return _(i.compareTo(e)>=0,"Watch stream reverted to previous snapshot?? "+i+" < "+e),n.targetCache.setTargetsMetadata(o,o.currentSequenceNumber,i)}));a.push(u)}return Ye.waitFor(a).next((function(){return s.apply(o)})).next((function(){return n.localDocuments.getLocalViewOfDocuments(o,l)}))})).then((function(e){return n.targetDataByTarget=r,e}))},e.shouldPersistTargetData=function(e,t,n){return _(t.resumeToken.length>0,"Attempted to persist target data with no resume token"),0===e.resumeToken.length||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=this.RESUME_TOKEN_MAX_AGE_MICROS||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0},e.prototype.notifyLocalViewChanges=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var r=i[n],o=r.targetId;if(this.localViewReferences.addReferences(r.addedKeys,o),this.localViewReferences.removeReferences(r.removedKeys,o),!r.fromCache){var s=this.targetDataByTarget.get(o);_(null!==s,"Can't set limbo-free snapshot version for unknown target: "+o);var a=s.withLastLimboFreeSnapshotVersion(s.snapshotVersion);this.targetDataByTarget=this.targetDataByTarget.insert(o,a)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite-idempotent",(function(n){return Ye.forEach(e,(function(e){return Ye.forEach(e.removedKeys,(function(e){return t.persistence.referenceDelegate.removeReference(n,e)}))}))}))},e.prototype.nextMutationBatch=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch","readonly-idempotent",(function(n){return void 0===e&&(e=-1),t.mutation
1Queue.getNextMutationBatchAfterBatchId(n,e)}))},e.prototype.readDocument=function(e){var t=this;return this.persistence.runTransaction("read document","readonly-idempotent",(function(n){return t.localDocuments.getDocument(n,e)}))},e.prototype.allocateTarget=function(e){var t=this;return this.persistence.runTransaction("Allocate target","readwrite-idempotent",(function(n){var i;return t.targetCache.getTargetData(n,e).next((function(r){return r?Ye.resolve(i=r):t.targetCache.allocateTargetId(n).next((function(r){return i=new Cn(e,r,wn.Listen,n.currentSequenceNumber),t.targetCache.addTargetData(n,i).next((function(){return i}))}))}))})).then((function(n){return null===t.targetDataByTarget.get(n.targetId)&&(t.targetDataByTarget=t.targetDataByTarget.insert(n.targetId,n),t.targetIdByTarget.set(e,n.targetId)),n}))},e.prototype.getTargetData=function(e,t){var n=this.targetIdByTarget.get(t);return void 0!==n?Ye.resolve(this.targetDataByTarget.get(n)):this.targetCache.getTargetData(e,t)},e.prototype.releaseTarget=function(e,t){var n=this,i=this.targetDataByTarget.get(e);return _(null!==i,"Tried to release nonexistent target: "+e),this.persistence.runTransaction("Release target",t?"readwrite-idempotent":"readwrite-primary-idempotent",(function(r){var o=n.localViewReferences.removeReferencesForId(e);return t?Ye.resolve():Ye.forEach(o,(function(e){return n.persistence.referenceDelegate.removeReference(r,e)})).next((function(){n.persistence.referenceDelegate.removeTarget(r,i)}
1))})).then((function(){n.targetDataByTarget=n.targetDataByTarget.remove(e),n.targetIdByTarget.delete(i.target)}))},e.prototype.executeQuery=function(e,t){var n=this,i=we.MIN,r=Ne();return this.persistence.runTransaction("Execute query","readonly-idempotent",(function(o){return n.getTargetData(o,e.toTarget()).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,n.targetCache.getMatchingKeysForTargetId(o,e.targetId).next((function(e){r=e}))})).next((function(){return n.queryEngine.getDocumentsMatchingQuery(o,e,t?i:we.MIN,t?r:Ne())})).next((function(e){return{documents:e,remoteKeys:r}}))}))},e.prototype.remoteDocumentKeys=function(e){var t=this;return this.persistence.runTransaction("Remote document keys","readonly-idempotent",(function(n){return t.targetCache.getMatchingKeysForTargetId(n,e)}))},e.prototype.getActiveClients=function(){return this.persistence.getActiveClients()},e.prototype.removeCachedMutationBatchMetadata=function(e){this.mutationQueue.removeCachedMutationKeys(e)},e.prototype.setNetworkEnabled=function(e){this.persistence.setNetworkEnabled(e)},e.prototype.applyWriteToRemoteDocuments=function(e,t,n){var i=this,r=t.batch,o=r.keys(),s=Ye.resolve();return o.forEach((function(i){s=s.next((function(){return n.getEntry(e,i)})).next((function(e){var o=e,s=t.docVersions.get(i);_(null!==s,"ackVersions should contain every doc in the write."),(!o||o.version.compareTo(s)<0)&&((o=r.applyToRemoteDocument(i,o,t))?n.addEntry(o,t.commitVersion):_(!e,"Mutation batch "+r+" applied to document "+e+" resulted in null"))}))}
1)),s.next((function(){return i.mutationQueue.removeMutationBatch(e,r)}))},e.prototype.collectGarbage=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary-idempotent",(function(n){return e.collect(n,t.targetDataByTarget)}))},e.prototype.getTarget=function(e){var t=this,n=this.targetDataByTarget.get(e);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly-idempotent",(function(n){return t.targetCache.getTargetDataForTarget(n,e).next((function(e){return e?e.target:null}))}))},e.prototype.getNewDocumentChanges=function(){var e=this;return this.persistence.runTransaction("Get new document changes","readonly-idempotent",(function(t){return e.remoteDocuments.getNewDocumentChanges(t,e.lastDocumentChangeReadTime)})).then((function(t){var n=t.changedDocs;return e.lastDocumentChangeReadTime=t.readTime,n}))},e.prototype.synchronizeLastDocumentChangeReadTime=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t=this;return o.__generator(this,(function(n){switch(n.label){case 0:return e=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly-idempotent",(function(e){return t.remoteDocuments.getLastReadTime(e)}))];case 1:return e.lastDocumentChangeReadTime=n.sent(),[2]}}))}))},e.RESUME_TOKEN_MAX_AGE_MICROS=3e8,e}();function In(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){if(e.code!==C.FAILED_PRECONDITION||e.message!==Dn)throw e;return m("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function Rn(e,t){var n=e[1],i=t[1],r=X(e[0],t[0]);return 0===r?X(n,i):r}var Mn=function(){function e(e){this.maxElements=e,this.buffer=new xe(Rn),this.previousIndex=0}return e.prototype.nextIndex=function(){return++this.previousIndex},e.prototype.addElement=function(e){var t=[e,this.nextIndex()];if(this.buffer.size<this.maxElements)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();Rn(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),e}(),An={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Pn=function(){function e(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}return e.withCacheSize=function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},e.COLLECTION_DISABLED=-1,e.MINIMUM_CACHE_SIZE_BYTES=1048576,e.DEFAULT=new e(e.DEFAULT_CACHE_SIZE_BYTES=41943040,e.DEFAULT_COLLECTION_PERCENTILE=10,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3),e.DISABLED=new e(e.COLLECTION_DISABLED,0,0),e}(),Ln=function(){function e(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.hasRun=!1,this.gcTask=null}return e.prototype.start=function(){_(null===this.gcTask,"Cannot start an already started LruScheduler"),this.garbageCollector.params.cacheSizeCollectionThreshold!==Pn.COLLECTION_DISABLED&&this.scheduleGC()},e.prototype.stop=function(){this.gcTask&&(this.gcTask.cancel(),this.gcTask=null)},Object.defineProperty(e.prototype,"started",{get:function(){return null!==this.gcTask},enumerable:!0,configurable:!0}),e.prototype.scheduleGC=function(){var e=this;_(null===this.gcTask,"Cannot schedule GC while a task is pending");var t=this.hasRun?3e5:6e4;m("LruGarbageCollector","Garbage collection scheduled in "+t+"ms"),this.gcTask=this.asyncQueue.enqueueAfterDelay(pe.LruGarbageCollection,t,(function(){return e.gcTask=null,e.hasRun=!0,e.localStore.collectGarbage(e.garbageCollector).then((function(){return e.scheduleGC()})).catch(In)}))},e}(),Nn=function(){function e(e,t){this.delegate=e,this.params=t}return e.prototype.calculateTargetCount=function(e,t){return this.delegate.getSequenceNumberCount(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.nthSequenceNumber=function(e,t){var n=this;if(0===t)return Ye.resolve(se.INVALID);var i=new Mn(t);return this.delegate.forEachTarget(e,(function(e){return i.addElement(e.sequenceNumber)})).next((function(){return n.delegate.forEachOrphanedDocumentSequenceNumber(e,(function(e){return i.addElement(e)}))})).next((function(){return i.maxValue}))},e.prototype.removeTargets=function(e,t,n){return this.delegate.removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){return this.delegate.removeOrphanedDocuments(e,t)},e.prototype.collect=function(e,t){var n=this;return this.params.cacheSizeCollectionThreshold===Pn.COLLECTION_DISABLED?(m("LruGarbageCollector","Garbage collection skipped; disabled"),Ye.resolve(An)):this.getCacheSize(e).next((function(i){return i<n.params.cacheSizeCollectionThreshold?(m("LruGarbageCollector","Garbage collection skipped; Cache size "+i+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),An):n.runGarbageCollection(e,t)}))},e.prototype.getCacheSize=function(e){return this.delegate.getCacheSize(e)},e.prototype.runGarbageCollection=function(e,t){var n,i,r,o,s,a,l,c=this,u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((function(t){return t>c.params.maximumSequenceNumbersToCollect?(m("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.maximumSequenceNumbersToCollect+" from "+t),i=c.params.maximumSequenceNumbersToCollect):i=t,o=Date.now(),c.nthSequenceNumber(e,i
1)})).next((function(i){return n=i,s=Date.now(),c.removeTargets(e,n,t)})).next((function(t){return r=t,a=Date.now(),c.removeOrphanedDocuments(e,n)})).next((function(e){return l=Date.now(),p()<=h.DEBUG&&m("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-u)+"ms\n\tDetermined least recently used "+i+" in "+(s-o)+"ms\n\tRemoved "+r+" targets in "+(a-s)+"ms\n\tRemoved "+e+" documents in "+(l-a)+"ms\nTotal Duration: "+(l-u)+"ms"),Ye.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:r,documentsRemoved:e})}))},e}(),Fn="IndexedDbPersistence",jn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Vn=function(e){function t(t,n){var i=e.call(this)||this;return i.simpleDbTransaction=t,i.currentSequenceNumber=n,i}return o.__extends(t,e),t}(xn),Hn=function(){function e(t,n,i,r,o,s,a,l){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=i,this.queue=s,this.sequenceNumberSyncer=l,this._started=!1,this.isPrimary=!1,this.networkEnabled=!0,this.windowUnloadHandler=null,this.inForeground=!1,this.documentVisibilityHandler=null,this.clientMetadataRefresher=null,this.lastGarbageCollectionTime=Number.NEGATIVE_INFINITY,this.primaryStateListener=function(e){return Promise.resolve()},this.referenceDelegate=new Gn(this,o),this.dbName=n+e.MAIN_DATABASE,this.serializer=new En(a),this.document=r.document,this.targetCache=new ot(this.referenceDelegate,this.serializer),this.indexManager=new _n,this.remoteDocumentCache=new Ut(this.serializer,this.indexManager),!r.window||!r.window.localStorage)throw new E(C.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=r.window,this.webStorage=this.window.localStorage}return e.getStore=function(e,t){if(e instanceof Vn)return Ge.getStore(e.simpleDbTransaction,t);throw v("IndexedDbPersistence must use instances of IndexedDbTransaction")},e.createIndexedDbPersistence=function(t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(i){switch(i.label){case 0:if(!e.isAvailable())throw new E(C.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");return[4,(n=new e(t.allowTabSynchronization,t.persistenceKey,t.clientId,t.platform,t.lruParams,t.queue,t.serializer,t.sequenceNumberSyncer)).start()];case 1:return i.sent(),[2,n]}}))}))},e.prototype.start=function(){var e=this;return _(!this.started,"IndexedDbPersistence double-started!"),_(null!==this.window,"Expected 'window' to be defined"),Ge.openOrCreate(this.dbName,Jt,new Zt(this.serializer)).then((function(t){return e.simpleDb=t,e.updateClientMetadataAndTryBecomePrimary()})).then((function(){return e.attachVisibilityHandler(),e.attachWindowUnloadHook(),e.scheduleClientMetadataAndPrimaryLeaseRefreshes(),e.simpleDb.runTransaction("readonly-idempotent",[hn.store],(function(e){return lt(e)}))})).then((function(t){e.listenSequence=new se(t,e.sequenceNumberSyncer)})).then((function(){e._started=!0})).catch((function(t){return e.simpleDb&&e.simpleDb.close(),Promise.reject(t)}))},e.prototype.setPrimaryStateListener=function(e){var t=this;return this.primaryStateListener=function(n){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){return this.started?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.setDatabaseDeletedListener=function(e){var t=this;this.simpleDb.setVersionChangeListener((function(n){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return null!==n.newVersion?[3,2]:[4,e()];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))}))},e.prototype.setNetworkEnabled=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.queue.enqueueAndForget((function(){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.started?[4,this.updateClientMetadataAndTryBecomePrimary()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.updateClientMetadataAndTryBecomePrimary=function(){var e=this;return this.simpleDb.runTransaction("readwrite-idempotent",vn,(function(t){return Bn(t).put(new mn(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.verifyPrimaryLease(t).next((function(t){t||(e.isPrimary=!1,e.queue.enqueueAndForget((function(){return e.primaryStateListener(!1)})))}))})).next((function(){return e.canActAsPrimary(t)})).next((function(n){return e.isPrimary&&!n?e.releasePrimaryLeaseIfHeld(t).next((function(){return!1})):!!n&&e.acquireOrExtendPrimaryLease(t).next((function(){return!0}))}))})).catch((function(t){if(!e.allowTabSynchronization)throw t;return m(Fn,"Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.queue.enqueueAndForget((function(){return e.primaryStateListener(t)})),e.isPrimary=t}))},e.prototype.verifyPrimaryLease=function(e){var t=this;return Yn(e).get(tn.key).next((function(e){return Ye.resolve(t.isLocalClient(e))}))},e.prototype.removeClientMetadata=function(e){return Bn(e).delete(this.clientId)},e.prototype.maybeGarbageCollectMultiClientState=function(){return o.__awaiter(this,void 0,void 0,(function(){var t=this;return o.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.isWithinAge(this.lastGarbageCollectionTime,18e5)?[3,2]:(this.lastGarbageCollectionTime=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary-idempotent",(function(n){var i=e.getStore(n,mn.store);return i.loadAll().next((function(e){var n=t.filterActiveClients(e,18e5),r=e.filter((function(e){return-1===n.indexOf(e)}));return Ye.forEach(r,(function(e){return i.delete(e.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(e){t.window.localStorage.removeItem(t.zombiedClientLocalStorageKey(e.clientId))})),n.label=2;case 2:return[2]}}
1))}))},e.prototype.scheduleClientMetadataAndPrimaryLeaseRefreshes=function(){var e=this;this.clientMetadataRefresher=this.queue.enqueueAfterDelay(pe.ClientMetadataRefresh,4e3,(function(){return e.updateClientMetadataAndTryBecomePrimary().then((function(){return e.maybeGarbageCollectMultiClientState()})).then((function(){return e.scheduleClientMetadataAndPrimaryLeaseRefreshes()}))}))},e.prototype.isLocalClient=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.canActAsPrimary=function(e){var t=this;return Yn(e).get(tn.key).next((function(n){if(null!==n&&t.isWithinAge(n.leaseTimestampMs,5e3)&&!t.isClientZombied(n.ownerId)){if(t.isLocalClient(n)&&t.networkEnabled)return!0;if(!t.isLocalClient(n)){if(!n.allowTabSynchronization)throw new E(C.FAILED_PRECONDITION,jn);return!1}}return!(!t.networkEnabled||!t.inForeground)||Bn(e).loadAll().next((function(e){return void 0===t.filterActiveClients(e,5e3).find((function(e){return!(t.clientId===e.clientId||!(!t.networkEnabled&&e.networkEnabled||!t.inForeground&&e.inForeground&&t.networkEnabled===e.networkEnabled))}))}))})).next((function(e){return t.isPrimary!==e&&m(Fn,"Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,(function(){var e=this;return o.__generator(this,(function(t){switch(t.label){case 0:return this._started=!1,this.markClientZombied(),this.clientMetadataRefresher&&(this.clientMetadataRefresher.cancel(),this.clientMetadataRefresher=null),this.detachVisibilityHandler(),this.detachWindowUnloadHook(),[4,this.simpleDb.runTransaction("readwrite-idempotent",[tn.store,mn.store],(function(t){return e.releasePrimaryLeaseIfHeld(t).next((function(){return e.removeClientMetadata(t)}))}))];case 1:return t.sent(),this.simpleDb.close(),this.removeClientZombiedEntry(),[2]}}))}))},e.prototype.filterActiveClients=function(e,t){var n=this;return e.filter((function(e){return n.isWithinAge(e.updateTimeMs,t)&&!n.isClientZombied(e.clientId)}))},e.prototype.getActiveClients=function(){var e=this;return this.simpleDb.runTransaction("readonly-idempotent",[mn.store],(function(t){return Bn(t).loadAll().next((function(t){return e.filterActiveClients(t,18e5).map((function(e){return e.clientId}))}))}))},e.clearPersistence=function(t){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(n){switch(n.label){case 0:return e.isAvailable()?[4,Ge.delete(t+e.MAIN_DATABASE)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),e.prototype.getMutationQueue=function(e){return _(this.started,"Cannot initialize MutationQueue before persistence is started."),Qe.forUser(e,this.serializer,this.indexManager,this.referenceDelegate)},e.prototype.getTargetCache=function(){return _(this.started,"Cannot initialize TargetCache before persistence is started."),this.targetCache},e.prototype.getRemoteDocumentCache=function(){return _(this.started,"Cannot initialize RemoteDocumentCache before persistence is started."),this.remoteDocumentCache},e.prototype.getIndexManager=function(){return _(this.started,"Cannot initialize IndexManager before persistence is started."),this.indexManager},e.prototype.runTransaction=function(e,t,n){var i=this;m(Fn,"Starting transaction:",e);var r,o=t.endsWith("idempotent"),s=t.startsWith("readonly");return this.simpleDb.runTransaction(s?o?"readonly-idempotent":"readonly":o?"readwrite-idempotent":"readwrite",vn,(function(o){return r=new Vn(o,i.listenSequence.next()),"readwrite-primary"===t||"readwrite-primary-idempotent"===t?i.verifyPrimaryLease(o).next((function(e){return!!e||i.canActAsPrimary(o)})).next((function(t){if(!t)throw g("Failed to obtain primary lease for action '"+e+"'."),i.isPrimary=!1,i.queue.enqueueAndForget((function(){return i.primaryStateListener(!1)})),new E(C.FAILED_PRECONDITION,Dn);return n(r)})).next((function(e){return i.acquireOrExtendPrimaryLease(o).next((function(){return e}))})):i.verifyAllowTabSynchronization(o).next((function(){return n(r)}))}
1)).then((function(e){return r.raiseOnCommittedEvent(),e}))},e.prototype.verifyAllowTabSynchronization=function(e){var t=this;return Yn(e).get(tn.key).next((function(e){if(null!==e&&t.isWithinAge(e.leaseTimestampMs,5e3)&&!t.isClientZombied(e.ownerId)&&!t.isLocalClient(e)&&!e.allowTabSynchronization)throw new E(C.FAILED_PRECONDITION,jn)}))},e.prototype.acquireOrExtendPrimaryLease=function(e){var t=new tn(this.clientId,this.allowTabSynchronization,Date.now());return Yn(e).put(tn.key,t)},e.isAvailable=function(){return Ge.isAvailable()},e.buildStoragePrefix=function(e){var t=e.databaseId.projectId;return e.databaseId.isDefaultDatabase||(t+="."+e.databaseId.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.releasePrimaryLeaseIfHeld=function(e){var t=this,n=Yn(e);return n.get(tn.key).next((function(e){return t.isLocalClient(e)?(m(Fn,"Releasing primary lease."),n.delete(tn.key)):Ye.resolve()}))},e.prototype.isWithinAge=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(g("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.attachVisibilityHandler=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.documentVisibilityHandler=function(){e.queue.enqueueAndForget((function(){return e.inForeground="visible"===e.document.visibilityState,e.updateClientMetadataAndTryBecomePrimary()}))},this.document.addEventListener("visibilitychange",this.documentVisibilityHandler),this.inForeground="visible"===this.document.visibilityState)},e.prototype.detachVisibilityHandler=function(){this.documentVisibilityHandler&&(_(null!==this.document&&"function"==typeof this.document.addEventListener,"Expected 'document.addEventListener' to be a function"),this.document.removeEventListener("visibilitychange",this.documentVisibilityHandler),this.documentVisibilityHandler=null)},e.prototype.attachWindowUnloadHook=function(){var e=this;"function"==typeof this.window.addEventListener&&(this.windowUnloadHandler=function(){e.markClientZombied(),e.queue.enqueueAndForget((function(){return e.shutdown()}))},this.window.addEventListener("unload",this.windowUnloadHandler))},e.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(_("function"==typeof this.window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),this.window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},e.prototype.isClientZombied=function(e){try{var t=null!==this.webStorage.getItem(this.zombiedClientLocalStorageKey(e));return m(Fn,"Client '"+e+"' "+(t?"is":"is not")+" zombied in LocalStorage"),t}catch(n){return g(Fn,"Failed to get zombied client id.",n),!1}},e.prototype.markClientZombied=function(){try{this.webStorage.setItem(this.zombiedClientLocalStorageKey(this.clientId),String(Date.now()))}catch(e){g("Failed to set zombie client id.",e)}},e.prototype.removeClientZombiedEntry=function(){try{this.webStorage.removeItem(this.zombiedClientLocalStorageKey(this.clientId))}catch(e){}},e.prototype.zombiedClientLocalStorageKey=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e.MAIN_DATABASE="main",e}();function Yn(e){return e.store(tn.store)}function Bn(e){return e.store(mn.store)}var Gn=function(){function e(e,t){this.db=e,this.inMemoryPins=null,this.garbageCollector=new Nn(this,t)}return e.prototype.getSequenceNumberCount=function(e){var t=this.orphanedDocmentCount(e);return this.db.getTargetCache().getTargetCount(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.orphanedDocmentCount=function(e){var t=0;return this.forEachOrphanedDocumentSequenceNumber(e,(function(e){t++})).next((function(){return t}))},e.prototype.forEachTarget=function(e,t){return this.db.getTargetCache().forEachTarget(e,t)},e.prototype.forEachOrphanedDocumentSequenceNumber=function(e,t){return this.forEachOrphanedDocument(e,(function(e,n){return t(n)}))},e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.addReference=function(e,t){return Wn(e,t)},e.prototype.removeReference=function(e,t){return Wn(e,t)},e.prototype.removeTargets=function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)},e.prototype.removeMutationReference=function(e,t){return Wn(e,t)},e.prototype.isPinned=function(e,t){return this.inMemoryPins.containsKey(t)?Ye.resolve(!0):function(e,t){var n=!1;return nt(e).iterateSerial((function(i){return Xe(e,i,t).next((function(e){return e&&(n=!0),Ye.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,i=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[],o=0;return this.forEachOrphanedDocument(e,(function(s,a){if(a<=t){var l=n.isPinned(e,s).next((function(t){if(!t)return o++,i.getEntry(e,s).next((function(){return i.removeEntry(s),ct(e).delete([0,ge(s.path)])}))}));r.push(l)}})).next((function(){return Ye.waitFor(r)})).next((function(){return i.apply(e)})).next((function(){return o}
1))},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)},e.prototype.updateLimboDocument=function(e,t){return Wn(e,t)},e.prototype.forEachOrphanedDocument=function(e,t){var n,i=ct(e),r=se.INVALID;return i.iterate({index:dn.documentTargetsIndex},(function(e,i){var o=i.path,s=i.sequenceNumber;0===e[0]?(r!==se.INVALID&&t(new de(_e(n)),r),r=s,n=o):r=se.INVALID})).next((function(){r!==se.INVALID&&t(new de(_e(n)),r)}))},e.prototype.getCacheSize=function(e){return this.db.getRemoteDocumentCache().getSize(e)},e}();function Wn(e,t){return ct(e).put(function(e,t){return new dn(0,ge(e.path),t)}(t,e.currentSequenceNumber))}var Un=Number,zn=Un.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),qn=Un.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Kn=Un.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function $n(e){return null==e}function Qn(e){return Kn(e)&&e<=qn&&e>=zn}var Xn=function(){function e(e,t,n,i,r,o,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=i,this.limit=r,this.startAt=o,this.endAt=s,this.memoizedCanonicalId=null}return e.prototype.canonicalId=function(){if(null===this.memoizedCanonicalId){var e=this.path.canonicalString();null!==this.collectionGroup&&(e+="|cg:"+this.collectionGroup),e+="|f:";for(var t=0,n=this.filters;t<n.length;t++)e+=n[t].canonicalId(),e+=",";e+="|ob:";for(var i=0,r=this.orderBy;i<r.length;i++)e+=r[i].canonicalId(),e+=",";$n(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.memoizedCanonicalId=e}return this.memoizedCanonicalId},e.prototype.toString=function(){var e=this.path.canonicalString();return null!==this.collectionGroup&&(e+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),$n(this.limit)||(e+=", limit: "+this.limit),this.orderBy.length>0&&(e+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),"Target("+e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(t=0;t<this.filters.length;t++)if(!this.filters[t].isEqual(e.filters[t]))return!1;return this.collectionGroup===e.collectionGroup&&!!this.path.isEqual(e.path)&&!(null!==this.startAt?!this.startAt.isEqual(e.startAt):null!==e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt)},e.prototype.isDocumentQuery=function(){return de.isDocumentKey(this.path)&&null===this.collectionGroup&&0===this.filters.length},e}(),Jn=function(e){return e.First="F",e.Last="L",e}({}),Zn=function(){function e(e,t,n,i,r,o,s,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===o&&(o=Jn.First),void 0===s&&(s=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=i,this.limit=r,this.limitType=o,this.startAt=s,this.endAt=a,this.memoizedOrderBy=null,this.memoizedTarget=null,this.startAt&&this.assertValidBound(this.startAt),this.endAt&&this.assertValidBound(this.endAt)}return e.atPath=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.memoizedOrderBy){var e=this.getInequalityFilterField(),t=this.getFirstOrderByField();if(null!==e&&null===t)this.memoizedOrderBy=e.isKeyField()?[di]:[new ui(e),di];else{_(null===e||null!==t&&e.isEqual(t),"First orderBy should match inequality field."),this.memoizedOrderBy=[];for(var n=!1,i=0,r=this.explicitOrderBy;i<r.length;i++){var o=r[i];this.memoizedOrderBy.push(o),o.field.isKeyField()&&(n=!0)}n||this.memoizedOrderBy.push((this.explicitOrderBy.length>0?this.explicitOrderBy[this.explicitOrderBy.length-1].dir:li.ASCENDING)===li.ASCENDING?di:hi)}}return this.memoizedOrderBy},enumerable:!0,configurable:!0}),e.prototype.addFilter=function(t){_(null==this.getInequalityFilterField()||!(t instanceof ni)||!t.isInequality()||t.field.isEqual(this.getInequalityFilterField()),"Query must only have one inequality field."),_(!this.isDocumentQuery(),"No filtering allowed for document query");var n=this.filters.concat([t]);return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),n,this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.addOrderBy=function(t){_(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.explicitOrderBy.concat([t]);return new e(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.withLimitToFirst=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),t,Jn.First,this.startAt,this.endAt)},e.prototype.withLimitToLast=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),t,Jn.Last,this.startAt,this.endAt)},e.prototype.withStartAt=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,t,this.endAt)},e.prototype.withEndAt=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,this.startAt,t)},e.prototype.asCollectionQueryAtPath=function(t){return new e(t,null,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.matchesAllDocuments=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.explicitOrderBy.length||1===this.explicitOrderBy.length&&this.explicitOrderBy[0].field.isKeyField())},e.prototype.canonicalId=function(){return this.toTarget().canonicalId()+"|lt:"+this.limitType},e.prototype.toString=function(){return"Query(target="+this.toTarget().toString()+"; limitType="+this.limitType+")"},e.prototype.isEqual=function(e){return this.toTarget().isEqual(e.toTarget())&&this.limitType===e.limitType},e.prototype.docComparator=function(e,t){for(var n=!1,i=0,r=this.orderBy;i<r.length;i++){var o=r[i],s=o.compare(e,t);if(0!==s)return s;n=n||o.field.isKeyField()}return _(n,"orderBy used that doesn't compare on key field"),0},e.prototype.matches=function(e){return this.matchesPathAndCollectionGroup(e)&&this.matchesOrderBy(e)&&this.matchesFilters(e)&&this.matchesBounds(e)},e.prototype.hasLimitToFirst=function(){return!$n(this.limit)&&this.limitType===Jn.First},e.prototype.hasLimitToLast=function(){return!$n(this.limit)&&this.limitType===Jn.Last},e.prototype.getFirstOrderByField=function(){return this.explicitOrderBy.length>0?this.explicitOrderBy[0].field:null},e.prototype.getInequalityFilterField=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof ni&&n.isInequality())return n.field}return null},e.prototype.findFilterOperator=function(e){for(var t=0,n=this.filters;t<n.length;t++){var i=n[t];if(i instanceof ni&&e.indexOf(i.op)>=0)return i.op}return null},e.prototype.isDocumentQuery=function(){return this.toTarget().isDocumentQuery()},e.prototype.isCollectionGroupQuery=function(){return null!==this.collectionGroup},e.prototype.toTarget=function(){if(!this.memoizedTarget)if(this.limitType===Jn.First)this.memoizedTarget=new Xn(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var e=[],t=0,n=this.orderBy;t<n.length;t++){var i=n[t];e.push(new ui(i.field,i.dir===li.DESCENDING?li.ASCENDING:li.DESCENDING))}
1var r=this.endAt?new ci(this.endAt.position,!this.endAt.before):null,o=this.startAt?new ci(this.startAt.position,!this.startAt.before):null;this.memoizedTarget=new Xn(this.path,this.collectionGroup,e,this.filters,this.limit,r,o)}return this.memoizedTarget},e.prototype.matchesPathAndCollectionGroup=function(e){var t=e.key.path;return null!==this.collectionGroup?e.key.hasCollectionId(this.collectionGroup)&&this.path.isPrefixOf(t):de.isDocumentKey(this.path)?this.path.isEqual(t):this.path.isImmediateParentOf(t)},e.prototype.matchesOrderBy=function(e){for(var t=0,n=this.explicitOrderBy;t<n.length;t++){var i=n[t];if(!i.field.isKeyField()&&null===e.field(i.field))return!1}return!0},e.prototype.matchesFilters=function(e){for(var t=0,n=this.filters;t<n.length;t++)if(!n[t].matches(e))return!1;return!0},e.prototype.matchesBounds=function(e){return!(this.startAt&&!this.startAt.sortsBeforeDocument(this.orderBy,e)||this.endAt&&this.endAt.sortsBeforeDocument(this.orderBy,e))},e.prototype.assertValidBound=function(e){_(e.position.length<=this.orderBy.length,"Bound is longer than orderBy")},e}(),ei=function(){return function(){}}(),ti=function(){function e(e){this.name=e}return e.fromString=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return v("Unknown FieldFilter operator: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e.IN=new e("in"),e.ARRAY_CONTAINS_ANY=new e("array-contains-any"),e}(),ni=function(e){function t(t,n,i){var r=e.call(this)||this;return r.field=t,r.op=n,r.value=i,r}return o.__extends(t,e),t.create=function(e,n,i){if(e.isKeyField())return n===ti.IN?(_(i instanceof jt,"Comparing on key with IN, but filter value not an ArrayValue"),_(i.internalValue.every((function(e){return e instanceof Lt})),"Comparing on key with IN, but an array value was not a RefValue"),new ri(e,i)):(_(i instanceof Lt,"Comparing on key, but filter value not a RefValue"),_(n!==ti.ARRAY_CONTAINS&&n!==ti.ARRAY_CONTAINS_ANY,"'"+n.toString()+"' queries don't make sense on document keys."),new ii(e,n,i));if(i.isEqual(Dt.INSTANCE)){if(n!==ti.EQUAL)throw new E(C.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new t(e,n,i)}if(i.isEqual(It.NAN)){if(n!==ti.EQUAL)throw new E(C.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new t(e,n,i)}return n===ti.ARRAY_CONTAINS?new oi(e,i):n===ti.IN?(_(i instanceof jt,"IN filter has invalid value: "+i.toString()),new si(e,i)):n===ti.ARRAY_CONTAINS_ANY?(_(i instanceof jt,"ARRAY_CONTAINS_ANY filter has invalid value: "+i.toString()),new ai(e,i)):new t(e,n,i)},t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&this.value.typeOrder===t.typeOrder&&this.matchesComparison(t.compareTo(this.value))},t.prototype.matchesComparison=function(e){switch(this.op){case ti.LESS_THAN:return e<0;case ti.LESS_THAN_OR_EQUAL:return e<=0;case ti.EQUAL:return 0===e;case ti.GREATER_THAN:return e>0;case ti.GREATER_THAN_OR_EQUAL:return e>=0;default:return v("Unknown FieldFilter operator: "+this.op)}},t.prototype.isInequality=function(){return[ti.LESS_THAN,ti.LESS_THAN_OR_EQUAL,ti.GREATER_THAN,ti.GREATER_THAN_OR_EQUAL].indexOf(this.op)>=0},t.prototype.canonicalId=function(){return this.field.canonicalString()+this.op.toString()+this.value.toString()},t.prototype.isEqual=function(e){return e instanceof t&&this.op.isEqual(e.op)&&this.field.isEqual(e.field)&&this.value.isEqual(e.value)},t.prototype.toString=function(){return this.field.canonicalString()+" "+this.op+" "+this.value.value()},t}(ei),ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=de.comparator(e.key,this.value.key);return this.matchesComparison(t)},t}(ni),ri=function(e){function t(t,n){var i=e.call(this,t,ti.IN,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){return this.value.internalValue.some((function(t){return e.key.isEqual(t.key)}))},t}(ni),oi=function(e){function t(t,n){return e.call(this,t,ti.ARRAY_CONTAINS,n)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return t instanceof jt&&t.contains(this.value)},t}(ni),si=function(e){function t(t,n){var i=e.call(this,t,ti.IN,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){var t=this.value,
1n=e.field(this.field);return null!==n&&t.contains(n)},t}(ni),ai=function(e){function t(t,n){var i=e.call(this,t,ti.ARRAY_CONTAINS_ANY,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return n instanceof jt&&n.internalValue.some((function(e){return t.value.contains(e)}))},t}(ni),li=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e.ASCENDING=new e("asc"),e.DESCENDING=new e("desc"),e}(),ci=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){for(var e=this.before?"b:":"a:",t=0,n=this.position;t<n.length;t++)e+=n[t].toString();return e},e.prototype.sortsBeforeDocument=function(e,t){_(this.position.length<=e.length,"Bound has more components than query's orderBy");for(var n=0,i=0;i<this.position.length;i++){var r=e[i],o=this.position[i];if(r.field.isKeyField())_(o instanceof Lt,"Bound has a non-key value where the key path is being used."),n=de.comparator(o.key,t.key);else{var s=t.field(r.field);_(null!==s,"Field should exist since document matched the orderBy already."),n=o.compareTo(s)}if(r.dir===li.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++)if(!this.position[t].isEqual(e.position[t]))return!1;return!0},e}(),ui=function(){function e(e,t){this.field=e,void 0===t&&(t=li.ASCENDING),this.dir=t,this.isKeyOrderBy=e.isKeyField()}return e.prototype.compare=function(e,t){var n=this.isKeyOrderBy?Ht.compareByKey(e,t):Ht.compareByField(this.field,e,t);switch(this.dir){case li.ASCENDING:return n;case li.DESCENDING:return-1*n;default:return v("Unknown direction: "+this.dir)}},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.dir.toString()},e.prototype.toString=function(){return this.field.canonicalString()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),di=new ui(ue.keyField(),li.ASCENDING),hi=new ui(ue.keyField(),li.DESCENDING),pi=function(){function e(){}return e.prototype.setLocalDocumentsView=function(e){this.localDocumentsView=e},e.prototype.getDocumentsMatchingQuery=function(e,t,n,i){var r=this;return _(void 0!==this.localDocumentsView,"setLocalDocumentsView() not called"),t.matchesAllDocuments()?this.executeFullCollectionScan(e,t):n.isEqual(we.MIN)?this.executeFullCollectionScan(e,t):this.localDocumentsView.getDocuments(e,i).next((function(o){var s=r.applyQuery(t,o);return(t.hasLimitToFirst()||t.hasLimitToLast())&&r.needsRefill(t.limitType,s,i,n)?r.executeFullCollectionScan(e,t):(p()<=h.DEBUG&&m("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),t.toString()),r.localDocumentsView.getDocumentsMatchingQuery(e,t,n).next((function(e){return s.forEach((function(t){e=e.insert(t.key,t)})),e})))}))},e.prototype.applyQuery=function(e,t){var n=new xe((function(t,n){return e.docComparator(t,n)}));return t.forEach((function(t,i){i instanceof Ht&&e.matches(i)&&(n=n.add(i))})),n},e.prototype.needsRefill=function(e,t,n,i){if(n.size!==t.size)return!0;var r=e===Jn.First?t.last():t.first();return!!r&&(r.hasPendingWrites||r.version.compareTo(i)>0)},e.prototype.executeFullCollectionScan=function(e,t){return p()<=h.DEBUG&&m("IndexFreeQueryEngine","Using full collection scan to execute query: %s",t.toString()),this.localDocumentsView.getDocumentsMatchingQuery(e,t,we.MIN)},e}(),fi=function(){function e(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.nextBatchId=1,this.lastStreamToken=w(),this.batchesByDocumentKey=new xe(On.compareByKey)}return e.prototype.checkEmpty=function(e){return Ye.resolve(0===this.mutationQueue.length)},e.prototype.acknowledgeBatch=function(e,t,n){var i=t.batchId,r=this.indexOfExistingBatchId(i,"acknowledged");_(0===r,"Can only acknowledge the first batch in the mutation queue");var o=this.mutationQueue[r];return _(i===o.batchId,"Queue ordering failure: expected batch "+i+", got batch "+o.batchId),this.lastStreamToken=n,Ye.resolve()},e.prototype.getLastStreamToken=function(e){return Ye.resolve(this.lastStreamToken)},e.prototype.setLastStreamToken=function(e,t){return this.lastStreamToken=t,Ye.resolve()},e.prototype.addMutationBatch=function(e,t,n,i){_(0!==i.length,"Mutation batches should not be empty");var r=this.nextBatchId;
1this.nextBatchId++,this.mutationQueue.length>0&&_(this.mutationQueue[this.mutationQueue.length-1].batchId<r,"Mutation batchIDs must be monotonically increasing order");var o=new Ve(r,t,n,i);this.mutationQueue.push(o);for(var s=0,a=i;s<a.length;s++){var l=a[s];this.batchesByDocumentKey=this.batchesByDocumentKey.add(new On(l.key,r)),this.indexManager.addToCollectionParentIndex(e,l.key.path.popLast())}return Ye.resolve(o)},e.prototype.lookupMutationBatch=function(e,t){return Ye.resolve(this.findMutationBatch(t))},e.prototype.lookupMutationKeys=function(e,t){var n=this.findMutationBatch(t);return _(null!=n,"Failed to find local mutation batch."),Ye.resolve(n.keys())},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this.indexOfBatchId(t+1),i=n<0?0:n;return Ye.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)},e.prototype.getHighestUnacknowledgedBatchId=function(){return Ye.resolve(0===this.mutationQueue.length?-1:this.nextBatchId-1)},e.prototype.getAllMutationBatches=function(e){return Ye.resolve(this.mutationQueue.slice())},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,i=new On(t,0),r=new On(t,Number.POSITIVE_INFINITY),o=[];return this.batchesByDocumentKey.forEachInRange([i,r],(function(e){_(t.isEqual(e.key),"Should only iterate over a single key's batches");var i=n.findMutationBatch(e.targetOrBatchId);_(null!==i,"Batches in the index must exist in the main table"),o.push(i)})),Ye.resolve(o)},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,i=new xe(X);return t.forEach((function(e){var t=new On(e,0),r=new On(e,Number.POSITIVE_INFINITY);n.batchesByDocumentKey.forEachInRange([t,r],(function(t){_(e.isEqual(t.key),"For each key, should only iterate over a single key's batches"),i=i.add(t.targetOrBatchId)}))})),Ye.resolve(this.findMutationBatches(i))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){_(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var n=t.path,i=n.length+1,r=n;de.isDocumentKey(r)||(r=r.child(""));var o=new On(new de(r),0),s=new xe(X);return this.batchesByDocumentKey.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===i&&(s=s.add(e.targetOrBatchId)),!0)}),o),Ye.resolve(this.findMutationBatches(s))},e.prototype.findMutationBatches=function(e){var t=this,n=[];return e.forEach((function(e){var i=t.findMutationBatch(e);null!==i&&n.push(i)})),n},e.prototype.removeMutationBatch=function(e,t){var n=this;_(0===this.indexOfExistingBatchId(t.batchId,"removed"),"Can only remove the first entry of the mutation queue"),this.mutationQueue.shift();var i=this.batchesByDocumentKey;return Ye.forEach(t.mutations,(function(r){var o=new On(r.key,t.batchId);return i=i.delete(o),n.referenceDelegate.removeMutationReference(e,r.key)})).next((function(){n.batchesByDocumentKey=i}))},e.prototype.removeCachedMutationKeys=function(e){},e.prototype.containsKey=function(e,t){var n=new On(t,0),i=this.batchesByDocumentKey.firstAfterOrEqual(n);return Ye.resolve(t.isEqual(i&&i.key))},e.prototype.performConsistencyCheck=function(e){return 0===this.mutationQueue.length&&_(this.batchesByDocumentKey.isEmpty(),"Document leak -- detected dangling mutation references when queue is empty."),Ye.resolve()},e.prototype.indexOfExistingBatchId=function(e,t){var n=this.indexOfBatchId(e);return _(n>=0&&n<this.mutationQueue.length,"Batches must exist to be "+t),n},e.prototype.indexOfBatchId=function(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId},e.prototype.findMutationBatch=function(e){var t=this.indexOfBatchId(e);if(t<0||t>=this.mutationQueue.length)return null;var n=this.mutationQueue[t];return _(n.batchId===e,"If found batch must match"),n},e}(),mi=function(){function e(e,t){this.indexManager=e,this.sizer=t,this.docs=new Ce(de.comparator),this.size=0}return e.prototype.addEntry=function(e,t,n){_(!n.isEqual(we.MIN),"Cannot add a document with a read time of zero");var i=t.key,r=this.docs.get(i),o=r?r.size:0,s=this.sizer(t);return this.docs=this.docs.insert(i,{maybeDocument:t,size:s,readTime:n}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(e,i.path.popLast())},e.prototype.removeEntry=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.getEntry=function(e,t){var n=this.docs.get(t);return Ye.resolve(n?n.maybeDocument:null)},e.prototype.getEntries=function(e,t){var n=this,i=Ie();return t.forEach((function(e){var t=n.docs.get(e);i=i.insert(e,t?t.maybeDocument:null)})),Ye.resolve(i)},e.prototype.getDocumentsMatchingQuery=function(e,t,n){_(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");for(var i=Me(),r=new de(t.path.child("")),o=this.docs.getIteratorFrom(r);o.hasNext();){var s=o.getNext(),a=s.value,l=a.maybeDocument,c=a.readTime;if(!t.path.isPrefixOf(s.key.path))break;c.compareTo(n)<=0||l instanceof Ht&&t.matches(l)&&(i=i.insert(l.key,l))}return Ye.resolve(i)},e.prototype.forEachDocumentKey=function(e,t){return Ye.forEach(this.docs,(function(e){return t(e)}))},e.prototype.getNewDocumentChanges=function(e,t){throw new Error("getNewDocumentChanges() is not supported with MemoryPersistence")},e.prototype.getLastReadTime=function(e){return Ye.resolve(we.MIN)},e.prototype.newChangeBuffer=function(t){return new e.RemoteDocumentChangeBuffer(this)},e.prototype.getSize=function(e){return Ye.resolve(this.size)},e.RemoteDocumentChangeBuffer=function(e){function t(t){var n=e.call(this)||this;return n.documentCache=t,n}return o.__extends(t,e),t.prototype.applyChanges=function(e){var t=this,n=[];
1return this.changes.forEach((function(i,r){r?n.push(t.documentCache.addEntry(e,r,t.readTime)):t.documentCache.removeEntry(i)})),Ye.waitFor(n)},t.prototype.getFromCache=function(e,t){return this.documentCache.getEntry(e,t)},t.prototype.getAllFromCache=function(e,t){return this.documentCache.getEntries(e,t)},t}(Wt),e}(),gi=function(){function e(e){this.persistence=e,this.targets=new Gt((function(e){return e.canonicalId()})),this.lastRemoteSnapshotVersion=we.MIN,this.highestTargetId=0,this.highestSequenceNumber=0,this.references=new Tn,this.targetCount=0,this.targetIdGenerator=rt.forTargetCache()}return e.prototype.forEachTarget=function(e,t){return this.targets.forEach((function(e,n){return t(n)})),Ye.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(e){return Ye.resolve(this.lastRemoteSnapshotVersion)},e.prototype.getHighestSequenceNumber=function(e){return Ye.resolve(this.highestSequenceNumber)},e.prototype.allocateTargetId=function(e){var t=this.targetIdGenerator.after(this.highestTargetId);return this.highestTargetId=t,Ye.resolve(t)},e.prototype.setTargetsMetadata=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.highestSequenceNumber&&(this.highestSequenceNumber=t),Ye.resolve()},e.prototype.saveTargetData=function(e){this.targets.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.highestTargetId=t),e.sequenceNumber>this.highestSequenceNumber&&(this.highestSequenceNumber=e.sequenceNumber)},e.prototype.addTargetData=function(e,t){return _(!this.targets.has(t.target),"Adding a target that already exists"),this.saveTargetData(t),this.targetCount+=1,Ye.resolve()},e.prototype.updateTargetData=function(e,t){return _(this.targets.has(t.target),"Updating a non-existent target"),this.saveTargetData(t),Ye.resolve()},e.prototype.removeTargetData=function(e,t){return _(this.targetCount>0,"Removing a target from an empty cache"),_(this.targets.has(t.target),"Removing a non-existent target from the cache"),this.targets.delete(t.target),this.references.removeReferencesForId(t.targetId),this.targetCount-=1,Ye.resolve()},e.prototype.removeTargets=function(e,t,n){var i=this,r=0,o=[];return this.targets.forEach((function(s,a){a.sequenceNumber<=t&&null===n.get(a.targetId)&&(i.targets.delete(s),o.push(i.removeMatchingKeysForTargetId(e,a.targetId)),r++)})),Ye.waitFor(o).next((function(){return r}))},e.prototype.getTargetCount=function(e){return Ye.resolve(this.targetCount)},e.prototype.getTargetData=function(e,t){var n=this.targets.get(t)||null;return Ye.resolve(n)},e.prototype.getTargetDataForTarget=function(e,t){return v("Not yet implemented.")},e.prototype.addMatchingKeys=function(e,t,n){this.references.addReferences(t,n);var i=this.persistence.referenceDelegate,r=[];return i&&t.forEach((function(t){r.push(i.addReference(e,t))})),Ye.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){this.references.removeReferences(t,n);var i=this.persistence.referenceDelegate,r=[];return i&&t.forEach((function(t){r.push(i.removeReference(e,t))})),Ye.waitFor(r)},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this.references.removeReferencesForId(t),Ye.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this.references.referencesForId(t);return Ye.resolve(n)},e.prototype.containsKey=function(e,t){return Ye.resolve(this.references.containsKey(t))},e}(),yi=function(){function e(e,t){var n=this;this.clientId=e,this.mutationQueues={},this.listenSequence=new se(0),this._started=!1,this._started=!0,this.referenceDelegate=t(this),this.targetCache=new gi(this),this.indexManager=new Qt,this.remoteDocumentCache=new mi(this.indexManager,(function(e){return n.referenceDelegate.documentSize(e)}))}return e.createLruPersistence=function(t,n){return new e(t,(function(e){return new bi(e,n)}))},e.createEagerPersistence=function(t){return new e(t,(function(e){return new _i(e)}))},e.prototype.shutdown=function(){return this._started=!1,Promise.resolve()},Object.defineProperty(e.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),e.prototype.getActiveClients=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return[2,[this.clientId]]}))}))},e.prototype.setPrimaryStateListener=function(e){return e(!0)},e.prototype.setDatabaseDeletedListener=function(){},e.prototype.setNetworkEnabled=function(e){},e.prototype.getIndexManager=function(){return this.indexManager}
1,e.prototype.getMutationQueue=function(e){var t=this.mutationQueues[e.toKey()];return t||(t=new fi(this.indexManager,this.referenceDelegate),this.mutationQueues[e.toKey()]=t),t},e.prototype.getTargetCache=function(){return this.targetCache},e.prototype.getRemoteDocumentCache=function(){return this.remoteDocumentCache},e.prototype.runTransaction=function(e,t,n){var i=this;m("MemoryPersistence","Starting transaction:",e);var r=new vi(this.listenSequence.next());return this.referenceDelegate.onTransactionStarted(),n(r).next((function(e){return i.referenceDelegate.onTransactionCommitted(r).next((function(){return e}))})).toPromise().then((function(e){return r.raiseOnCommittedEvent(),e}))},e.prototype.mutationQueuesContainKey=function(e,t){return Ye.or((n=this.mutationQueues,i=[],O(n,(function(e,t){return i.push(t)})),i).map((function(n){return function(){return n.containsKey(e,t)}})));var n,i},e}(),vi=function(e){function t(t){var n=e.call(this)||this;return n.currentSequenceNumber=t,n}return o.__extends(t,e),t}(xn),_i=function(){function e(e){this.persistence=e,this.inMemoryPins=null,this._orphanedDocuments=null}return Object.defineProperty(e.prototype,"orphanedDocuments",{get:function(){if(this._orphanedDocuments)return this._orphanedDocuments;
1throw v("orphanedDocuments is only valid during a transaction.")},enumerable:!0,configurable:!0}),e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.addReference=function(e,t){return this.orphanedDocuments.delete(t),Ye.resolve()},e.prototype.removeReference=function(e,t){return this.orphanedDocuments.add(t),Ye.resolve()},e.prototype.removeMutationReference=function(e,t){return this.orphanedDocuments.add(t),Ye.resolve()},e.prototype.removeTarget=function(e,t){var n=this,i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.orphanedDocuments.add(e)}))})).next((function(){return i.removeTargetData(e,t)}))},e.prototype.onTransactionStarted=function(){this._orphanedDocuments=new Set},e.prototype.onTransactionCommitted=function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ye.forEach(this.orphanedDocuments,(function(i){return t.isReferenced(e,i).next((function(e){e||n.removeEntry(i)}))})).next((function(){return t._orphanedDocuments=null,n.apply(e)}))},e.prototype.updateLimboDocument=function(e,t){var n=this;return this.isReferenced(e,t).next((function(e){e?n.orphanedDocuments.delete(t):n.orphanedDocuments.add(t)}))},e.prototype.documentSize=function(e){return 0},e.prototype.isReferenced=function(e,t){var n=this;return Ye.or([function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.mutationQueuesContainKey(e,t)},function(){return Ye.resolve(n.inMemoryPins.containsKey(t))}])},e}(),bi=function(){function e(e,t){this.persistence=e,this.inMemoryPins=null,this.orphanedSequenceNumbers=new Gt((function(e){return ge(e.path)})),this.garbageCollector=new Nn(this,t)}return e.prototype.onTransactionStarted=function(){},e.prototype.onTransactionCommitted=function(e){return Ye.resolve()},e.prototype.forEachTarget=function(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)},e.prototype.getSequenceNumberCount=function(e){var t=this.orphanedDocumentCount(e);return this.persistence.getTargetCache().getTargetCount(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.orphanedDocumentCount=function(e){var t=0;return this.forEachOrphanedDocumentSequenceNumber(e,(function(e){t++})).next((function(){return t}))},e.prototype.forEachOrphanedDocumentSequenceNumber=function(e,t){var n=this;return Ye.forEach(this.orphanedSequenceNumbers,(function(i,r){return n.isPinned(e,i,r).next((function(e){return e?Ye.resolve():t(r)}))}))},e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.removeTargets=function(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,i=0,r=this.persistence.getRemoteDocumentCache(),o=r.newChangeBuffer();return r.forEachDocumentKey(e,(function(r){return n.isPinned(e,r,t).next((function(e){e||(i++,o.removeEntry(r))}))})).next((function(){return o.apply(e)})).next((function(){return i}))},e.prototype.removeMutationReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),Ye.resolve()},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)},e.prototype.addReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),Ye.resolve()},e.prototype.removeReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),Ye.resolve()},e.prototype.updateLimboDocument=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),Ye.resolve()},e.prototype.documentSize=function(e){var t=e.key.toString().length;return e instanceof Ht&&(t+=e.data().approximateByteSize()),t},e.prototype.isPinned=function(e,t,n){var i=this;return Ye.or([function(){return i.persistence.mutationQueuesContainKey(e,t)},function(){return Ye.resolve(i.inMemoryPins.containsKey(t))},function(){return i.persistence.getTargetCache().containsKey(e,t)},function(){var e=i.orphanedSequenceNumbers.get(t);return Ye.resolve(void 0!==e&&e>n)}])},e.prototype.getCacheSize=function(e){return this.persistence.getRemoteDocumentCache().getSize(e)},e}(),wi=function(){function e(e,t,n,i,r){void 0===n&&(n=1e3),void 0===i&&(i=1.5),void 0===r&&(r=6e4),this.queue=e,this.timerId=t,this.initialDelayMs=n,this.backoffFactor=i,this.maxDelayMs=r,this.currentBaseMs=0,this.timerPromise=null,this.lastAttemptTime=Date.now(),this.reset()}return e.prototype.reset=function(){this.currentBaseMs=0},e.prototype.resetToMax=function(){this.currentBaseMs=this.maxDelayMs},e.prototype.backoffAndRun=function(e){var t=this;this.cancel();var n=Math.floor(this.currentBaseMs+this.jitterDelayMs()),i=Math.max(0,Date.now()-this.lastAttemptTime),r=Math.max(0,n-i);this.currentBaseMs>0&&m("ExponentialBackoff","Backing off for "+r+" ms (base delay: "+this.currentBaseMs+" ms, delay with 
1jitter: "+n+" ms, last attempt: "+i+" ms ago)"),this.timerPromise=this.queue.enqueueAfterDelay(this.timerId,r,(function(){return t.lastAttemptTime=Date.now(),e()})),this.currentBaseMs*=this.backoffFactor,this.currentBaseMs<this.initialDelayMs&&(this.currentBaseMs=this.initialDelayMs),this.currentBaseMs>this.maxDelayMs&&(this.currentBaseMs=this.maxDelayMs)},e.prototype.cancel=function(){null!==this.timerPromise&&(this.timerPromise.cancel(),this.timerPromise=null)},e.prototype.jitterDelayMs=function(){return(Math.random()-.5)*this.currentBaseMs},e}(),Ci=function(e){return e[e.Initial=0]="Initial",e[e.Starting=1]="Starting",e[e.Open=2]="Open",e[e.Error=3]="Error",e[e.Backoff=4]="Backoff",e}({}),Ei=function(){function e(e,t,n,i,r,o){this.queue=e,this.idleTimerId=n,this.connection=i,this.credentialsProvider=r,this.listener=o,this.state=Ci.Initial,this.closeCount=0,this.idleTimer=null,this.stream=null,this.backoff=new wi(e,t)}return e.prototype.isStarted=function(){return this.state===Ci.Starting||this.state===Ci.Open||this.state===Ci.Backoff},e.prototype.isOpen=function(){return this.state===Ci.Open},e.prototype.start=function(){this.state!==Ci.Error?(_(this.state===Ci.Initial,"Already started"),this.auth()):this.performBackoff()},e.prototype.stop=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.isStarted()?[4,this.close(Ci.Initial)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
1))}))},e.prototype.inhibitBackoff=function(){_(!this.isStarted(),"Can only inhibit backoff in a stopped state"),this.state=Ci.Initial,this.backoff.reset()},e.prototype.markIdle=function(){var e=this;this.isOpen()&&null===this.idleTimer&&(this.idleTimer=this.queue.enqueueAfterDelay(this.idleTimerId,6e4,(function(){return e.handleIdleCloseTimer()})))},e.prototype.sendRequest=function(e){this.cancelIdleCheck(),this.stream.send(e)},e.prototype.handleIdleCloseTimer=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.isOpen()?[2,this.close(Ci.Initial)]:[2]}))}))},e.prototype.cancelIdleCheck=function(){this.idleTimer&&(this.idleTimer.cancel(),this.idleTimer=null)},e.prototype.close=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(n){switch(n.label){case 0:return _(this.isStarted(),"Only started streams should be closed."),_(e===Ci.Error||$n(t),"Can't provide an error when not in an error state."),this.cancelIdleCheck(),this.backoff.cancel(),this.closeCount++,e!==Ci.Error?this.backoff.reset():t&&t.code===C.RESOURCE_EXHAUSTED?(g(t.toString()),g("Using maximum backoff delay to prevent overloading the backend."),this.backoff.resetToMax()):t&&t.code===C.UNAUTHENTICATED&&this.credentialsProvider.invalidateToken(),null!==this.stream&&(this.tearDown(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.onClose(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.tearDown=function(){},e.prototype.auth=function(){var e=this;_(this.state===Ci.Initial,"Must be in initial state to auth"),this.state=Ci.Starting;var t=this.getCloseGuardedDispatcher(this.closeCount),n=this.closeCount;this.credentialsProvider.getToken().then((function(t){e.closeCount===n&&e.startStream(t)}),(function(n){t((function(){var t=new E(C.UNKNOWN,"Fetching auth token failed: "+n.message);return e.handleStreamClose(t)}))}))},e.prototype.startStream=function(e){var t=this;_(this.state===Ci.Starting,"Trying to start stream in a non-starting state");var n=this.getCloseGuardedDispatcher(this.closeCount);this.stream=this.startRpc(e),this.stream.onOpen((function(){n((function(){return _(t.state===Ci.Starting,"Expected stream to be in state Starting, but was "+t.state),t.state=Ci.Open,t.listener.onOpen()}))})),this.stream.onClose((function(e){n((function(){return t.handleStreamClose(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.performBackoff=function(){var e=this;_(this.state===Ci.Error,"Should only perform backoff when in Error state"),this.state=Ci.Backoff,this.backoff.backoffAndRun((function(){return o.__awaiter(e,void 0,void 0,(function(){return o.__generator(this,(function(e){return _(this.state===Ci.Backoff,"Backoff elapsed but state is now: "+this.state),this.state=Ci.Initial,this.start(),_(this.isStarted(),"PersistentStream should have started"),[2]}))}))}))},e.prototype.handleStreamClose=function(e){return _(this.isStarted(),"Can't handle server close on non-started stream"),m("PersistentStream","close with error: "+e),this.stream=null,this.close(Ci.Error,e)},e.prototype.getCloseGuardedDispatcher=function(e){var t=this;return function(n){t.queue.enqueueAndForget((function(){return t.closeCount===e?n():(m("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),Si=function(e){function t(t,n,i,r,o){var s=e.call(this,t,pe.ListenStreamConnectionBackoff,pe.ListenStreamIdle,n,i,o)||this;return s.serializer=r,s}return o.__extends(t,e),t.prototype.startRpc=function(e){return this.connection.openStream("Listen",e)},t.prototype.onMessage=function(e){this.backoff.reset();var t=this.serializer.fromWatchChange(e),n=this.serializer.versionFromListenResponse(e);return this.listener.onWatchChange(t,n)},t.prototype.watch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.addTarget=this.serializer.toTarget(e);var n=this.serializer.toListenRequestLabels(e);n&&(t.labels=n),this.sendRequest(t)},t.prototype.unwatch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.removeTarget=e,this.sendRequest(t)},t}(Ei),Di=function(e){function t(t,n,i,r,o){var s=e.call(this,t,pe.WriteStreamConnectionBackoff,pe.WriteStreamIdle,n,i,o)||this;
1return s.serializer=r,s.handshakeComplete_=!1,s.lastStreamToken=w(),s}return o.__extends(t,e),Object.defineProperty(t.prototype,"handshakeComplete",{get:function(){return this.handshakeComplete_},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.handshakeComplete_=!1,e.prototype.start.call(this)},t.prototype.tearDown=function(){this.handshakeComplete_&&this.writeMutations([])},t.prototype.startRpc=function(e){return this.connection.openStream("Write",e)},t.prototype.onMessage=function(e){if(_(!!e.streamToken,"Got a write response without a stream token"),this.lastStreamToken=e.streamToken,this.handshakeComplete_){this.backoff.reset();var t=this.serializer.fromWriteResults(e.writeResults,e.commitTime),n=this.serializer.fromVersion(e.commitTime);return this.listener.onMutationResult(n,t)}return _(!e.writeResults||0===e.writeResults.length,"Got mutation results for handshake"),this.handshakeComplete_=!0,this.listener.onHandshakeComplete()},t.prototype.writeHandshake=function(){_(this.isOpen(),"Writing handshake requires an opened stream"),_(!this.handshakeComplete_,"Handshake already completed");var e={};e.database=this.serializer.encodedDatabaseId,this.sendRequest(e)},t.prototype.writeMutations=function(e){var t=this;_(this.isOpen(),"Writing mutations requires an opened stream"),_(this.handshakeComplete_,"Handshake must be complete before writing mutations"),_(this.lastStreamToken.length>0,"Trying to write mutation without a token");var n={streamToken:this.lastStreamToken,writes:e.map((function(e){return t.serializer.toMutation(e)}))};this.sendRequest(n)},t}(Ei),xi=function(){function e(e,t,n,i){this.queue=e,this.connection=t,this.credentials=n,this.serializer=i}return e.prototype.newPersistentWriteStream=function(e){return new Di(this.queue,this.connection,this.credentials,this.serializer,e)},e.prototype.newPersistentWatchStream=function(e){return new Si(this.queue,this.connection,this.credentials,this.serializer,e)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,writes:e.map((function(e){return t.serializer.toMutation(e)}))};return this.invokeRPC("Commit",n).then((function(e){return t.serializer.fromWriteResults(e.writeResults,e.commitTime)}))},e.prototype.lookup=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,documents:e.map((function(e){return t.serializer.toName(e)}))};return this.invokeStreamingRPC("BatchGetDocuments",n).then((function(n){var i=ke();n.forEach((function(e){var n=t.serializer.fromMaybeDocument(e);i=i.insert(n.key,n)}));var r=[];return e.forEach((function(e){var t=i.get(e);_(!!t,"Missing entity in write response for "+e),r.push(t)})),r}))},e.prototype.invokeRPC=function(e,t){var n=this;return this.credentials.getToken().then((function(i){return n.connection.invokeRPC(e,t,i)})).catch((function(e){throw e.code===C.UNAUTHENTICATED&&n.credentials.invalidateToken(),e}))},e.prototype.invokeStreamingRPC=function(e,t){var n=this;return this.credentials.getToken().then((function(i){return n.connection.invokeStreamingRPC(e,t,i)})).catch((function(e){throw e.code===C.UNAUTHENTICATED&&n.credentials.invalidateToken(),e}))},e}(),Ti=function(){function e(e){this.datastore=e,this.readVersions=Pe(),this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return e.prototype.lookup=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new E(C.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,this.datastore.lookup(e)];case 1:return(t=i.sent()).forEach((function(e){e instanceof Yt||e instanceof Ht?n.recordVersion(e):v("Document in a transaction was a "+e.constructor.name)})),[2,t]}}))}))},e.prototype.set=function(e,t){this.write(t.toMutations(e,this.precondition(e))),this.writtenDocs.add(e)},e.prototype.update=function(e,t){try{this.write(t.toMutations(e,this.preconditionForUpdate(e)))}catch(n){this.lastWriteError=n}this.writtenDocs.add(e)}
1,e.prototype.delete=function(e){this.write([new _t(e,this.precondition(e))]),this.writtenDocs.add(e)},e.prototype.commit=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t=this;return o.__generator(this,(function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return e=this.readVersions,this.mutations.forEach((function(t){e=e.remove(t.key)})),e.forEach((function(e,n){t.mutations.push(new bt(e,t.precondition(e)))})),[4,this.datastore.commit(this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}}))}))},e.prototype.recordVersion=function(e){var t;if(e instanceof Ht)t=e.version;else{if(!(e instanceof Yt))throw v("Document in a transaction was a "+e.constructor.name);t=we.forDeletedDoc()}var n=this.readVersions.get(e.key);if(null!==n){if(!t.isEqual(n))throw new E(C.ABORTED,"Document version changed between two reads.")}else this.readVersions=this.readVersions.insert(e.key,t)},e.prototype.precondition=function(e){var t=this.readVersions.get(e);return!this.writtenDocs.has(e)&&t?ft.updateTime(t):ft.NONE},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e);if(!this.writtenDocs.has(e)&&t){if(t.isEqual(we.forDeletedDoc()))throw new E(C.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ft.updateTime(t)}return ft.exists(!0)},e.prototype.write=function(e){this.ensureCommitNotCalled(),this.mutations=this.mutations.concat(e)},e.prototype.ensureCommitNotCalled=function(){_(!this.committed,"A transaction object cannot be used after its update callback has been invoked.")},e}(),Oi=function(e){return e[e.Unknown=0]="Unknown",e[e.Online=1]="Online",e[e.Offline=2]="Offline",e}({}),ki=function(e){return e[e.RemoteStore=0]="RemoteStore",e[e.SharedClientState=1]="SharedClientState",e}({}),Ii=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=Oi.Unknown,this.watchStreamFailures=0,this.onlineStateTimer=null,this.shouldWarnClientIsOffline=!0}return e.prototype.handleWatchStreamStart=function(){var e=this;0===this.watchStreamFailures&&(this.setAndBroadcast(Oi.Unknown),_(null===this.onlineStateTimer,"onlineStateTimer shouldn't be started yet"),this.onlineStateTimer=this.asyncQueue.enqueueAfterDelay(pe.OnlineStateTimeout,1e4,(function(){return e.onlineStateTimer=null,_(e.state===Oi.Unknown,"Timer should be canceled if we transitioned to a different state."),e.logClientOfflineWarningIfNecessary("Backend didn't respond within 10 seconds."),e.setAndBroadcast(Oi.Offline),Promise.resolve()})))},e.prototype.handleWatchStreamFailure=function(e){this.state===Oi.Online?(this.setAndBroadcast(Oi.Unknown),_(0===this.watchStreamFailures,"watchStreamFailures must be 0"),_(null===this.onlineStateTimer,"onlineStateTimer must be null")):(this.watchStreamFailures++,this.watchStreamFailures>=1&&(this.clearOnlineStateTimer(),this.logClientOfflineWarningIfNecessary("Connection failed 1 times. Most recent error: "+e.toString()),this.setAndBroadcast(Oi.Offline)))},e.prototype.set=function(e){this.clearOnlineStateTimer(),this.watchStreamFailures=0,e===Oi.Online&&(this.shouldWarnClientIsOffline=!1),this.setAndBroadcast(e)},e.prototype.setAndBroadcast=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.logClientOfflineWarningIfNecessary=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.shouldWarnClientIsOffline?(g(t),this.shouldWarnClientIsOffline=!1):m("OnlineStateTracker",t)},e.prototype.clearOnlineStateTimer=function(){null!==this.onlineStateTimer&&(this.onlineStateTimer.cancel(),this.onlineStateTimer=null)},e}(),Ri=function(e){return e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENT
1ED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e}({});function Mi(e){switch(e){case C.OK:return v("Treated status OK as error");case C.CANCELLED:case C.UNKNOWN:case C.DEADLINE_EXCEEDED:case C.RESOURCE_EXHAUSTED:case C.INTERNAL:case C.UNAVAILABLE:case C.UNAUTHENTICATED:return!1;case C.INVALID_ARGUMENT:case C.NOT_FOUND:case C.ALREADY_EXISTS:case C.PERMISSION_DENIED:case C.FAILED_PRECONDITION:case C.ABORTED:case C.OUT_OF_RANGE:case C.UNIMPLEMENTED:case C.DATA_LOSS:return!0;default:return v("Unknown status code: "+e)}}function Ai(e){if(void 0===e)return g("GRPC error has no .code"),C.UNKNOWN;switch(e){case Ri.OK:return C.OK;case Ri.CANCELLED:return C.CANCELLED;case Ri.UNKNOWN:return C.UNKNOWN;case Ri.DEADLINE_EXCEEDED:return C.DEADLINE_EXCEEDED;case Ri.RESOURCE_EXHAUSTED:return C.RESOURCE_EXHAUSTED;case Ri.INTERNAL:return C.INTERNAL;case Ri.UNAVAILABLE:return C.UNAVAILABLE;case Ri.UNAUTHENTICATED:return C.UNAUTHENTICATED;case Ri.INVALID_ARGUMENT:return C.INVALID_ARGUMENT;case Ri.NOT_FOUND:return C.NOT_FOUND;case Ri.ALREADY_EXISTS:return C.ALREADY_EXISTS;case Ri.PERMISSION_DENIED:return C.PERMISSION_DENIED;case Ri.FAILED_PRECONDITION:return C.FAILED_PRECONDITION;case Ri.ABORTED:return C.ABORTED;case Ri.OUT_OF_RANGE:return C.OUT_OF_RANGE;case Ri.UNIMPLEMENTED:return C.UNIMPLEMENTED;case Ri.DATA_LOSS:return C.DATA_LOSS;default:return v("Unknown status code: "+e)}}function Pi(e){if(void 0===e)return Ri.OK;switch(e){case C.OK:return Ri.OK;case C.CANCELLED:return Ri.CANCELLED;case C.UNKNOWN:return Ri.UNKNOWN;case C.DEADLINE_EXCEEDED:return Ri.DEADLINE_EXCEEDED;case C.RESOURCE_EXHAUSTED:return Ri.RESOURCE_EXHAUSTED;case C.INTERNAL:return Ri.INTERNAL;case C.UNAVAILABLE:return Ri.UNAVAILABLE;case C.UNAUTHENTICATED:return Ri.UNAUTHENTICATED;case C.INVALID_ARGUMENT:return Ri.INVALID_ARGUMENT;case C.NOT_FOUND:return Ri.NOT_FOUND;case C.ALREADY_EXISTS:return Ri.ALREADY_EXISTS;case C.PERMISSION_DENIED:return Ri.PERMISSION_DENIED;case C.FAILED_PRECONDITION:return Ri.FAILED_PRECONDITION;case C.ABORTED:return Ri.ABORTED;case C.OUT_OF_RANGE:return Ri.OUT_OF_RANGE;case C.UNIMPLEMENTED:return Ri.UNIMPLEMENTED;case C.DATA_LOSS:return Ri.DATA_LOSS;default:return v("Unknown status code: "+e)}}var Li=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||de.comparator(t.key,n.key)}:function(e,t){return de.comparator(e.key,t.key)},this.keyedMap=Me(),this.sortedSet=new Ce(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),i=t.sortedSet.getIterator();n.hasNext();){var r=n.getNext().key,o=i.getNext().key;if(!r.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"},e.prototype.copy=function(t,n){var i=new e;return i.comparator=this.comparator,i.keyedMap=t,i.sortedSet=n,i},e}(),Ni=function(e){return e[e.Added=0]="Added",e[e.Removed=1]="Removed",e[e.Modified=2]="Modified",e[e.Metadata=3]="Metadata",e}({}),Fi=function(e){return e[e.Local=0]="Local",e[e.Synced=1]="Synced",e}({}),ji=function(){function e(){this.changeMap=new Ce(de.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.changeMap.get(t);n?e.type!==Ni.Added&&n.type===Ni.Metadata?this.changeMap=this.changeMap.insert(t,e):e.type===Ni.Metadata&&n.type!==Ni.Removed?this.changeMap=this.changeMap.insert(t,{type:n.type,doc:e.doc}):e.type===Ni.Modified&&n.type===Ni.Modified?this.changeMap=this.changeMap.insert(t,{type:Ni.Modified,doc:e.doc}):e.type===Ni.Modified&&n.type===Ni.Added?this.changeMap=this.changeMap.insert(t,{type:Ni.Added,doc:e.doc}):e.type===Ni.Removed&&n.type===Ni.Added?this.changeMap=this.changeMap.remove(t):e.type===Ni.Removed&&n.type===Ni.Modified?this.changeMap=this.changeMap.insert(t,{type:Ni.Removed,doc:n.doc}):e.type===Ni.Added&&n.type===Ni.Removed?this.changeMap=this.changeMap.insert(t,{type:Ni.Modified,doc:e.doc}):v("unsupported combination of changes: "+JSON.stringify(e)+" after "+JSON.stringify(n)):this.changeMap=this.changeMap.insert(t,e)},e.prototype.getChanges=function(){var e=[];return this.changeMap.inorderTraversal((function(t,n){e.push(n)})),e},e}(),Vi=function(){function e(e,t,n,i,r,o,s,a){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=r,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=a}return e.fromInitialDocuments=function(t,n,i,r){var o=[];
1return n.forEach((function(e){o.push({type:Ni.Added,doc:e})})),new e(t,n,Li.emptySet(n),o,i,r,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&this.query.isEqual(e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i].type!==n[i].type||!t[i].doc.isEqual(n[i].doc))return!1;return!0},e}(),Hi=function(){function e(e,t,n,i,r){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=i,this.resolvedLimboDocuments=r}return e.createSynthesizedRemoteEventForCurrentChange=function(t,n){var i,r=((i={})[t]=Yi.createSynthesizedTargetChangeForCurrentChange(t,n),i);return new e(we.MIN,r,je(),ke(),Ne())},e}(),Yi=function(){function e(e,t,n,i,r){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=i,this.removedDocuments=r}return e.createSynthesizedTargetChangeForCurrentChange=function(t,n){return new e(w(),n,Ne(),Ne(),Ne())},e}(),Bi=function(){return function(e,t,n,i){this.updatedTargetIds=e,this.removedTargetIds=t,this.key=n,this.newDoc=i}}(),Gi=function(){return function(e,t){this.targetId=e,this.existenceFilter=t}}(),Wi=function(e){return e[e.NoChange=0]="NoChange",e[e.Added=1]="Added",e[e.Removed=2]="Removed",e[e.Current=3]="Current",e[e.Reset=4]="Reset",e}({}),Ui=function(){return function(e,t,n,i){void 0===n&&(n=w()),void 0===i&&(i=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=i}}(),zi=function(){function e(){this.pendingResponses=0,this.documentChanges=$i(),this._resumeToken=w(),this._current=!1,this._hasPendingChanges=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this._resumeToken},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPending",{get:function(){return 0!==this.pendingResponses},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingChanges",{get:function(){return this._hasPendingChanges},enumerable:!0,configurable:!0}),e.prototype.updateResumeToken=function(e){e.length>0&&(this._hasPendingChanges=!0,this._resumeToken=e)},e.prototype.toTargetChange=function(){var e=Ne(),t=Ne(),n=Ne();
1return this.documentChanges.forEach((function(i,r){switch(r){case Ni.Added:e=e.add(i);break;case Ni.Modified:t=t.add(i);break;case Ni.Removed:n=n.add(i);break;default:v("Encountered invalid change type: "+r)}})),new Yi(this._resumeToken,this._current,e,t,n)},e.prototype.clearPendingChanges=function(){this._hasPendingChanges=!1,this.documentChanges=$i()},e.prototype.addDocumentChange=function(e,t){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.insert(e,t)},e.prototype.removeDocumentChange=function(e){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.remove(e)},e.prototype.recordPendingTargetRequest=function(){this.pendingResponses+=1},e.prototype.recordTargetResponse=function(){this.pendingResponses-=1},e.prototype.markCurrent=function(){this._hasPendingChanges=!0,this._current=!0},e}(),qi=function(){function e(e){this.metadataProvider=e,this.targetStates={},this.pendingDocumentUpdates=ke(),this.pendingDocumentTargetMapping=Ki(),this.pendingTargetResets=new xe(X)}return e.prototype.handleDocumentChange=function(e){for(var t=0,n=e.updatedTargetIds;t<n.length;t++){var i=n[t];e.newDoc instanceof Ht?this.addDocumentToTarget(i,e.newDoc):e.newDoc instanceof Yt&&this.removeDocumentFromTarget(i,e.key,e.newDoc)}for(var r=0,o=e.removedTargetIds;r<o.length;r++)this.removeDocumentFromTarget(i=o[r],e.key,e.newDoc)},e.prototype.handleTargetChange=function(e){var t=this;this.forEachTarget(e,(function(n){var i=t.ensureTargetState(n);switch(e.state){case Wi.NoChange:t.isActiveTarget(n)&&i.updateResumeToken(e.resumeToken);break;case Wi.Added:i.recordTargetResponse(),i.isPending||i.clearPendingChanges(),i.updateResumeToken(e.resumeToken);break;case Wi.Removed:i.recordTargetResponse(),i.isPending||t.removeTarget(n),_(!e.cause,"WatchChangeAggregator does not handle errored targets");break;case Wi.Current:t.isActiveTarget(n)&&(i.markCurrent(),i.updateResumeToken(e.resumeToken));break;case Wi.Reset:t.isActiveTarget(n)&&(t.resetTarget(n),i.updateResumeToken(e.resumeToken));break;default:v("Unknown target watch change state: "+e.state)}}))},e.prototype.forEachTarget=function(e,t){e.targetIds.length>0?e.targetIds.forEach(t):T(this.targetStates,t)},e.prototype.handleExistenceFilter=function(e){var t=e.targetId,n=e.existenceFilter.count,i=this.targetDataForActiveTarget(t);if(i){var r=i.target;if(r.isDocumentQuery())if(0===n){var o=new de(r.path);this.removeDocumentFromTarget(t,o,new Yt(o,we.forDeletedDoc()))}else _(1===n,"Single document existence filter with count: "+n);else this.getCurrentDocumentCountForTarget(t)!==n&&(this.resetTarget(t),this.pendingTargetResets=this.pendingTargetResets.add(t))}},e.prototype.createRemoteEvent=function(e){var t=this,n={};T(this.targetStates,(function(i,r){var o=t.targetDataForActiveTarget(i);if(o){if(r.current&&o.target.isDocumentQuery()){var s=new de(o.target.path);null!==t.pendingDocumentUpdates.get(s)||t.targetContainsDocument(i,s)||t.removeDocumentFromTarget(i,s,new Yt(s,e))}r.hasPendingChanges&&(n[i]=r.toTargetChange(),r.clearPendingChanges())}}));var i=Ne();this.pendingDocumentTargetMapping.forEach((function(e,n){var r=!0;n.forEachWhile((function(e){var n=t.targetDataForActiveTarget(e);return!n||n.purpose===wn.LimboResolution||(r=!1,!1)})),r&&(i=i.add(e))}));var r=new Hi(e,n,this.pendingTargetResets,this.pendingDocumentUpdates,i);return this.pendingDocumentUpdates=ke(),this.pendingDocumentTargetMapping=Ki(),this.pendingTargetResets=new xe(X),r},e.prototype.addDocumentToTarget=function(e,t){if(this.isActiveTarget(e)){var n=this.targetContainsDocument(e,t.key)?Ni.Modified:Ni.Added;this.ensureTargetState(e).addDocumentChange(t.key,n),this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t.key,t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t.key,this.ensureDocumentTargetMapping(t.key).add(e))}},e.prototype.removeDocumentFromTarget=function(e,t,n){if(this.isActiveTarget(e)){var i=this.ensureTargetState(e);this.targetContainsDocument(e,t)?i.addDocumentChange(t,Ni.Removed):i.removeDocumentChange(t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t,this.ensureDocumentTargetMapping(t).delete(e)),n&&(this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t,n))}},e.prototype.removeTarget=function(e){delete this.targetStates[e]},e.prototype.getCurrentDocumentCountForTarget=function(e){var t=this.ensureTargetState(e).toTargetChange();return this.metadataProvider.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.recordPendingTargetRequest=function(e){this.ensureTargetState(e).recordPendingTargetRequest
1()},e.prototype.ensureTargetState=function(e){return this.targetStates[e]||(this.targetStates[e]=new zi),this.targetStates[e]},e.prototype.ensureDocumentTargetMapping=function(e){var t=this.pendingDocumentTargetMapping.get(e);return t||(t=new xe(X),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e,t)),t},e.prototype.isActiveTarget=function(e){var t=null!==this.targetDataForActiveTarget(e);return t||m("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.targetDataForActiveTarget=function(e){var t=this.targetStates[e];return t&&t.isPending?null:this.metadataProvider.getTargetDataForTarget(e)},e.prototype.resetTarget=function(e){var t=this;_(!this.targetStates[e].isPending,"Should only reset active targets"),this.targetStates[e]=new zi,this.metadataProvider.getRemoteKeysForTarget(e).forEach((function(n){t.removeDocumentFromTarget(e,n,null)}))},e.prototype.targetContainsDocument=function(e,t){return this.metadataProvider.getRemoteKeysForTarget(e).has(t)},e}();function Ki(){return new Ce(de.comparator)}function $i(){return new Ce(de.comparator)}var Qi=function(){function e(e,t,n,i,r){var s=this;this.localStore=e,this.datastore=t,this.writePipeline=[],this.listenTargets={},this.watchChangeAggregator=null,this.networkEnabled=!1,this.isPrimary=!1,this.connectivityMonitor=r,this.connectivityMonitor.addCallback((function(e){n.enqueueAndForget((function(){return o.__awaiter(s,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.canUseNetwork()?(m("RemoteStore","Restarting streams for network reachability change."),[4,this.restartNetwork()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
1))}))}))})),this.onlineStateTracker=new Ii(n,i),this.watchStream=this.datastore.newPersistentWatchStream({onOpen:this.onWatchStreamOpen.bind(this),onClose:this.onWatchStreamClose.bind(this),onWatchChange:this.onWatchStreamChange.bind(this)}),this.writeStream=this.datastore.newPersistentWriteStream({onOpen:this.onWriteStreamOpen.bind(this),onClose:this.onWriteStreamClose.bind(this),onHandshakeComplete:this.onWriteHandshakeComplete.bind(this),onMutationResult:this.onMutationResult.bind(this)})}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.enableNetwork=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!0,this.canUseNetwork()?(e=this.writeStream,[4,this.localStore.getLastStreamToken()]):[3,3];case 1:return e.lastStreamToken=t.sent(),this.shouldStartWatchStream()?this.startWatchStream():this.onlineStateTracker.set(Oi.Unknown),[4,this.fillWritePipeline()];case 2:t.sent(),t.label=3;case 3:return[2]}}
1))}))},e.prototype.disableNetwork=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.onlineStateTracker.set(Oi.Offline),[2]}}))}))},e.prototype.disableNetworkInternal=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.writeStream.stop()];case 1:return e.sent(),[4,this.watchStream.stop()];case 2:return e.sent(),this.writePipeline.length>0&&(m("RemoteStore","Stopping write stream with "+this.writePipeline.length+" pending writes"),this.writePipeline=[]),this.cleanUpWatchStreamState(),[2]}}))}))},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return m("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.connectivityMonitor.shutdown(),this.onlineStateTracker.set(Oi.Unknown),[2]}}))}))},e.prototype.listen=function(e){D(this.listenTargets,e.targetId)||(this.listenTargets[e.targetId]=e,this.shouldStartWatchStream()?this.startWatchStream():this.watchStream.isOpen()&&this.sendWatchRequest(e))},e.prototype.unlisten=function(e){_(D(this.listenTargets,e),"unlisten called on target no currently watched: "+e),delete this.listenTargets[e],this.watchStream.isOpen()&&this.sendUnwatchRequest(e),k(this.listenTargets)&&(this.watchStream.isOpen()?this.watchStream.markIdle():this.canUseNetwork()&&this.onlineStateTracker.set(Oi.Unknown))},e.prototype.getTargetDataForTarget=function(e){return this.listenTargets[e]||null},e.prototype.getRemoteKeysForTarget=function(e){return this.syncEngine.getRemoteKeysForTarget(e)},e.prototype.sendWatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e.targetId),this.watchStream.watch(e)},e.prototype.sendUnwatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e),this.watchStream.unwatch(e)},e.prototype.startWatchStream=function(){_(this.shouldStartWatchStream(),"startWatchStream() called when shouldStartWatchStream() is false."),this.watchChangeAggregator=new qi(this),this.watchStream.start(),this.onlineStateTracker.handleWatchStreamStart()},e.prototype.shouldStartWatchStream=function(){return this.canUseNetwork()&&!this.watchStream.isStarted()&&!k(this.listenTargets)},e.prototype.canUseNetwork=function(){return this.isPrimary&&this.networkEnabled},e.prototype.cleanUpWatchStreamState=function(){this.watchChangeAggregator=null},e.prototype.onWatchStreamOpen=function(){return o.__awaiter(this,void 0,void 0,(function(){var e=this;return o.__generator(this,(function(t){return T(this.listenTargets,(function(t,n){e.sendWatchRequest(n)})),[2]}))}))},e.prototype.onWatchStreamClose=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return void 0===e&&_(!this.shouldStartWatchStream(),"Watch stream was stopped gracefully while still needed."),this.cleanUpWatchStreamState(),this.shouldStartWatchStream()?(this.onlineStateTracker.handleWatchStreamFailure(e),this.startWatchStream()):this.onlineStateTracker.set(Oi.Unknown),[2]}))}
1))},e.prototype.onWatchStreamChange=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(i){switch(i.label){case 0:return this.onlineStateTracker.set(Oi.Online),e instanceof Ui&&e.state===Wi.Removed&&e.cause?[2,this.handleTargetError(e)]:(e instanceof Bi?this.watchChangeAggregator.handleDocumentChange(e):e instanceof Gi?this.watchChangeAggregator.handleExistenceFilter(e):(_(e instanceof Ui,"Expected watchChange to be an instance of WatchTargetChange"),this.watchChangeAggregator.handleTargetChange(e)),t.isEqual(we.MIN)?[3,3]:[4,this.localStore.getLastRemoteSnapshotVersion()]);case 1:return n=i.sent(),t.compareTo(n)>=0?[4,this.raiseWatchSnapshot(t)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},e.prototype.raiseWatchSnapshot=function(e){var t=this;_(!e.isEqual(we.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.watchChangeAggregator.createRemoteEvent(e);return T(n.targetChanges,(function(n,i){if(i.resumeToken.length>0){var r=t.listenTargets[n];r&&(t.listenTargets[n]=r.withResumeToken(i.resumeToken,e))}})),n.targetMismatches.forEach((function(e){var n=t.listenTargets[e];if(n){t.listenTargets[e]=n.withResumeToken(w(),n.snapshotVersion),t.sendUnwatchRequest(e);var i=new Cn(n.target,e,wn.ExistenceFilterMismatch,n.sequenceNumber);t.sendWatchRequest(i)}})),this.syncEngine.applyRemoteEvent(n)},e.prototype.handleTargetError=function(e){var t=this;_(!!e.cause,"Handling target error without a cause");var n=e.cause,i=Promise.resolve();return e.targetIds.forEach((function(e){i=i.then((function(){return o.__awaiter(t,void 0,void 0,(function(){return o.__generator(this,(function(t){return D(this.listenTargets,e)?(delete this.listenTargets[e],this.watchChangeAggregator.removeTarget(e),[2,this.syncEngine.rejectListen(e,n)]):[2]}))}))}))})),i},e.prototype.fillWritePipeline=function(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){switch(t.label){case 0:return this.canAddToWritePipeline()?[4,this.localStore.nextMutationBatch(this.writePipeline.length>0?this.writePipeline[this.writePipeline.length-1].batchId:-1)]:[3,4];case 1:return null!==(e=t.sent())?[3,2]:(0===this.writePipeline.length&&this.writeStream.markIdle(),[3,4]);case 2:return this.addToWritePipeline(e),[4,this.fillWritePipeline()];case 3:t.sent(),t.label=4;case 4:return this.shouldStartWriteStream()&&this.startWriteStream(),[2]}}))}))},e.prototype.canAddToWritePipeline=function(){return this.canUseNetwork()&&this.writePipeline.length<10},e.prototype.outstandingWrites=function(){return this.writePipeline.length},e.prototype.addToWritePipeline=function(e){_(this.canAddToWritePipeline(),"addToWritePipeline called when pipeline is full"),this.writePipeline.push(e),this.writeStream.isOpen()&&this.writeStream.handshakeComplete&&this.writeStream.writeMutations(e.mutations)},e.prototype.shouldStartWriteStream=function(){return this.canUseNetwork()&&!this.writeStream.isStarted()&&this.writePipeline.length>0},e.prototype.startWriteStream=function(){_(this.shouldStartWriteStream(),"startWriteStream() called when shouldStartWriteStream() is false."),this.writeStream.start()},e.prototype.onWriteStreamOpen=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.writeStream.writeHandshake(),[2]}))}))},e.prototype.onWriteHandshakeComplete=function(){var e=this;return this.localStore.setLastStreamToken(this.writeStream.lastStreamToken).then((function(){for(var t=0,n=e.writePipeline;t<n.length;t++)e.writeStream.writeMutations(n[t].mutations)})).catch(In)},e.prototype.onMutationResult=function(e,t){var n=this;_(this.writePipeline.length>0,"Got result for empty write pipeline");var i=this.writePipeline.shift(),r=He.from(i,e,t,this.writeStream.lastStreamToken);return this.syncEngine.applySuccessfulWrite(r).then((function(){return n.fillWritePipeline()}))},e.prototype.onWriteStreamClose=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t=this;return o.__generator(this,(function(n){return void 0===e&&_(!this.shouldStartWriteStream(),"Write stream was stopped gracefully while still needed."),e&&this.writePipeline.length>0?[2,(this.writeStream.handshakeComplete?this.handleWriteError(e):this.handleHandshakeError(e)).then((function(){t.shouldStartWriteStream()&&t.startWriteStream()}))]:[2]}))}))},e.prototype.handleHandshakeError=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return Mi(e.code)?(m("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.writeStream.lastStreamToken),this.writeStream.lastStreamToken=w(),[2,this.localStore.setLastStreamToken(w()).catch(In)]):[2]}))}))},e.prototype.handleWriteError=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(i){return Mi(r=e.code)&&r!==C.ABORTED?(t=this.writePipeline.shift(),this.writeStream.inhibitBackoff(),[2,this.syncEngine.rejectFailedWrite(t.batchId,e).then((function(){return n.fillWritePipeline()}))]):[2];var r}))}))},e.prototype.createTransaction=function(){return new Ti(this.datastore)},e.prototype.restartNetwork=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.onlineStateTracker.set(Oi.Unknown),[4,this.enableNetwork()];case 2:return e.sent(),[2]}}))}))},e.prototype.handleCredentialChange=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.canUseNetwork()?(m("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.restartNetwork()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
1))}))},e.prototype.applyPrimaryState=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return this.isPrimary=e,e&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return t.sent(),[3,4];case 2:return e?[3,4]:[4,this.disableNetworkInternal()];case 3:t.sent(),this.onlineStateTracker.set(Oi.Unknown),t.label=4;case 4:return[2]}}))}))},e}(),Xi=function(){function e(e,t){if(R("GeoPoint",arguments,2),L("GeoPoint","number",1,e),L("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new E(C.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new E(C.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype._compareTo=function(e){return X(this._lat,e._lat)||X(this._long,e._long)},e}(),Ji=function(){function e(){}return e.prototype.applyToLocalView=function(e,t){return new At(t,e)},e.prototype.applyToRemoteDocument=function(e,t){return t},e.prototype.computeBaseValue=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e},e.instance=new e,e}(),Zi=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=nr(e),n=function(e){t.find((function(t){return t.isEqual(e)}))||t.push(e)},i=0,r=this.elements;i<r.length;i++)n(r[i]);return new jt(t)},e.prototype.computeBaseValue=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&J(t.elements,this.elements)},e}(),er=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=nr(e),n=function(e){t=t.filter((function(t){return!t.isEqual(e)}))},i=0,r=this.elements;i<r.length;i++)n(r[i]);return new jt(t)},e.prototype.computeBaseValue=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e&&J(t.elements,this.elements)},e}(),tr=function(){function e(e){this.operand=e}return e.prototype.applyToLocalView=function(e,t){var n=this.computeBaseValue(e);return n instanceof kt&&this.operand instanceof kt?new kt(n.internalValue+this.operand.internalValue):new It(n.internalValue+this.operand.internalValue)},e.prototype.applyToRemoteDocument=function(e,t){return _(null!==t,"Didn't receive transformResult for NUMERIC_ADD transform"),t},e.prototype.computeBaseValue=function(e){return e instanceof Tt?e:new kt(0)},e.prototype.isEqual=function(t){return t instanceof e&&this.operand.isEqual(t.operand)},e}();function nr(e){return e instanceof jt?e.internalValue.slice():[]}var ir,rr,or=function(){function e(e){this.count=e}return e.prototype.isEqual=function(e){return e&&e.count===this.count},e}(),sr=((ir={})[li.ASCENDING.name]="ASCENDING",ir[li.DESCENDING.name]="DESCENDING",ir),ar=((rr={})[ti.LESS_THAN.name]="LESS_THAN",rr[ti.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",rr[ti.GREATER_THAN.name]="GREATER_THAN",rr[ti.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",rr[ti.EQUAL.name]="EQUAL",rr[ti.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",rr[ti.IN.name]="IN",rr[ti.ARRAY_CONTAINS_ANY.name]="ARRAY_CONTAINS_ANY",rr),lr=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function cr(e,t){_(!$n(e),t+" is missing")}function ur(e){return"number"==typeof e?e:"string"==typeof e?Number(e):v("can't parse "+e)}var dr=function(){function e(e,t){this.databaseId=e,this.options=t}return e.prototype.emptyByteString=function(){return this.options.useProto3Json?"":new Uint8Array(0)},e.prototype.unsafeCastProtoByteString=function(e){return e},e.prototype.fromRpcStatus=function(e){var t=void 0===e.code?C.UNKNOWN:Ai(e.code);return new E(t,e.message||"")},e.prototype.toInt32Value=function(e){return this.options.useProto3Json||$n(e)?e:{value:e}},e.prototype.fromInt32Value=function(e){var t;return $n(t="object"==typeof e?e.value:e)?null:t},e.prototype.toTimestamp=function(e){return this.options.useProto3Json?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}},e.prototype.fromTimestamp=function(e){if("string"==typeof e)return this.fromIso8601String(e);_(!!e,"Cannot deserialize null or undefined timestamp.");var t=ur(e.seconds||"0");return new be(t,e.nanos||0)},e.prototype.fromIso8601String=function(e){var t=0,n=lr.exec(e);if(_(!!n,"invalid timestamp: "+e),n[1]){var i=n[1];i=(i+"000000000").substr(0,9),t=Number(i)}
1var r=new Date(e),o=Math.floor(r.getTime()/1e3);return new be(o,t)},e.prototype.toBytes=function(e){return this.options.useProto3Json?e.toBase64():this.unsafeCastProtoByteString(e.toUint8Array())},e.prototype.fromBlob=function(e){return"string"==typeof e?(_(this.options.useProto3Json,"Expected bytes to be passed in as Uint8Array, but got a string instead."),ne.fromBase64String(e)):(_(!this.options.useProto3Json,"Expected bytes to be passed in as Uint8Array, but got a string instead."),ne.fromUint8Array(e))},e.prototype.toVersion=function(e){return this.toTimestamp(e.toTimestamp())},e.prototype.fromVersion=function(e){return _(!!e,"Trying to deserialize version that isn't set"),we.fromTimestamp(this.fromTimestamp(e))},e.prototype.toResourceName=function(e,t){return this.fullyQualifiedPrefixPath(e).child("documents").child(t).canonicalString()},e.prototype.fromResourceName=function(e){var t=le.fromString(e);return _(this.isValidResourceName(t),"Tried to deserialize invalid key "+t.toString()),t},e.prototype.toName=function(e){return this.toResourceName(this.databaseId,e.path)},e.prototype.fromName=function(e){var t=this.fromResourceName(e);return _(t.get(1)===this.databaseId.projectId,"Tried to deserialize key from different project: "+t.get(1)+" vs "+this.databaseId.projectId),_(!t.get(3)&&!this.databaseId.database||t.get(3)===this.databaseId.database,"Tried to deserialize key from different database: "+t.get(3)+" vs "+this.databaseId.database),new de(this.extractLocalPathFromResourceName(t))},e.prototype.toQueryPath=function(e){return this.toResourceName(this.databaseId,e)},e.prototype.fromQueryPath=function(e){var t=this.fromResourceName(e);return 4===t.length?le.EMPTY_PATH:this.extractLocalPathFromResourceName(t)},Object.defineProperty(e.prototype,"encodedDatabaseId",{get:function(){return new le(["projects",this.databaseId.projectId,"databases",this.databaseId.database]).canonicalString()},enumerable:!0,configurable:!0}),e.prototype.fullyQualifiedPrefixPath=function(e){return new le(["projects",e.projectId,"databases",e.database])},e.prototype.extractLocalPathFromResourceName=function(e){return _(e.length>4&&"documents"===e.get(4),"tried to deserialize invalid key "+e.toString()),e.popFirst(5)},e.prototype.isValidResourceName=function(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)},e.prototype.toValue=function(e){if(e instanceof Dt)return{nullValue:"NULL_VALUE"};if(e instanceof xt)return{booleanValue:e.value()};if(e instanceof kt)return{integerValue:""+e.value()};if(e instanceof It){var t=e.value();if(this.options.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:e.value()}}return e instanceof Rt?{stringValue:e.value()}:e instanceof Ft?{mapValue:this.toMapValue(e)}:e instanceof jt?{arrayValue:this.toArrayValue(e)}:e instanceof Mt?{timestampValue:this.toTimestamp(e.internalValue)}:e instanceof Nt?{geoPointValue:{latitude:e.value().latitude,longitude:e.value().longitude}}:e instanceof Pt?{bytesValue:this.toBytes(e.value())}:e instanceof Lt?{referenceValue:this.toResourceName(e.databaseId,e.key.path)}:v("Unknown FieldValue "+JSON.stringify(e))},e.prototype.fromValue=function(e){var t=this;if("nullValue"in e)return Dt.INSTANCE;if("booleanValue"in e)return xt.of(e.booleanValue);if("integerValue"in e)return new kt(ur(e.integerValue));if("doubleValue"in e){if(this.options.useProto3Json){if("NaN"===e.doubleValue)return It.NAN;if("Infinity"===e.doubleValue)return It.POSITIVE_INFINITY;if("-Infinity"===e.doubleValue)return It.NEGATIVE_INFINITY}return new It(e.doubleValue)}if("stringValue"in e)return new Rt(e.stringValue);if("mapValue"in e)return this.fromFields(e.mapValue.fields||{});if("arrayValue"in e)return cr(e.arrayValue,"arrayValue"),new jt((e.arrayValue.values||[]).map((function(e){return t.fromValue(e)})));if("timestampValue"in e)return cr(e.timestampValue,"timestampValue"),new Mt(this.fromTimestamp(e.timestampValue));if("geoPointValue"in e)return cr(e.geoPointValue,"geoPointValue"),new Nt(new Xi(e.geoPointValue.latitude||0,e.geoPointValue.longitude||0));if("bytesValue"in e){cr(e.bytesValue,"bytesValue");var n=this.fromBlob(e.bytesValue);return new Pt(n)}if("referenceValue"in e){cr(e.referenceValue,"referenceValue");var i=this.fromResourceName(e.referenceValue),r=new oe(i.get(1),i.get(3)),o=new de(this.extractLocalPathFromResourceName(i));return new Lt(r,o)}return v("Unknown Value proto "+JSON.stringify(e))},e.prototype.toMutationDocument=function(e,t){return{name:this.toName(e),fields:this.toFields(t)}},e.prototype.toDocument=function(e){return _(!e.hasLocalMutations,"Can't serialize documents with mutations."),{name:this.toName(e.key),fields:this.toFields(e.data()),updateTime:this.toT
1imestamp(e.version.toTimestamp())}},e.prototype.fromDocument=function(e,t){var n=this,i=this.fromName(e.name),r=this.fromVersion(e.updateTime);return new Ht(i,r,{hasCommittedMutations:!!t},void 0,e,(function(e){return n.fromValue(e)}))},e.prototype.toFields=function(e){var t=this,n={};return e.forEach((function(e,i){n[e]=t.toValue(i)})),n},e.prototype.fromFields=function(e){var t=this,n=Ft.EMPTY;return O(e,(function(e,i){n=n.set(new ue([e]),t.fromValue(i))})),n},e.prototype.toMapValue=function(e){return{fields:this.toFields(e)}},e.prototype.toArrayValue=function(e){var t=this,n=[];return e.forEach((function(e){n.push(t.toValue(e))})),{values:n}},e.prototype.fromFound=function(e){var t=this;_(!!e.found,"Tried to deserialize a found document from a missing document."),cr(e.found.name,"doc.found.name"),cr(e.found.updateTime,"doc.found.updateTime");var n=this.fromName(e.found.name),i=this.fromVersion(e.found.updateTime);return new Ht(n,i,{},void 0,e.found,(function(e){return t.fromValue(e)}))},e.prototype.fromMissing=function(e){_(!!e.missing,"Tried to deserialize a missing document from a found document."),_(!!e.readTime,"Tried to deserialize a missing document without a read time.");var t=this.fromName(e.missing),n=this.fromVersion(e.readTime);return new Yt(t,n)},e.prototype.fromMaybeDocument=function(e){return"found"in e?this.fromFound(e):"missing"in e?this.fromMissing(e):v("invalid batch get response: "+JSON.stringify(e))},e.prototype.toWatchTargetChangeState=function(e){switch(e){case Wi.Added:return"ADD";case Wi.Current:return"CURRENT";case Wi.NoChange:return"NO_CHANGE";case Wi.Removed:return"REMOVE";case Wi.Reset:return"RESET";default:return v("Unknown WatchTargetChangeState: "+e)}},e.prototype.toTestWatchChange=function(e){if(e instanceof Gi)return{filter:{count:e.existenceFilter.count,targetId:e.targetId}};if(e instanceof Bi){var t;if(e.newDoc instanceof Ht)return{documentChange:{document:{name:this.toName((t=e.newDoc).key),fields:this.toFields(t.data()),updateTime:this.toVersion(t.version)},targetIds:e.updatedTargetIds,removedTargetIds:e.removedTargetIds}};if(e.newDoc instanceof Yt)return{documentDelete:{document:this.toName((t=e.newDoc).key),readTime:this.toVersion(t.version),removedTargetIds:e.removedTargetIds}};if(null===e.newDoc)return{documentRemove:{document:this.toName(e.key),removedTargetIds:e.removedTargetIds}}}if(e instanceof Ui){var n=void 0;return e.cause&&(n={code:Pi(e.cause.code),message:e.cause.message}),{targetChange:{targetChangeType:this.toWatchTargetChangeState(e.state),targetIds:e.targetIds,resumeToken:this.unsafeCastProtoByteString(e.resumeToken),cause:n}}}return v("Unrecognized watch change: "+JSON.stringify(e))},e.prototype.fromWatchChange=function(e){var t,n=this;if("targetChange"in e){cr(e.targetChange,"targetChange");var i=this.fromWatchTargetChangeState(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],o=e.targetChange.resumeToken||this.emptyByteString(),s=e.targetChange.cause,a=s&&this.fromRpcStatus(s);t=new Ui(i,r,o,a||null)}else if("documentChange"in e){cr(e.documentChange,"documentChange");var l=e.documentChange;cr(l.document,"documentChange.name"),cr(l.document.name,"documentChange.document.name"),cr(l.document.updateTime,"documentChange.document.updateTime");var c=this.fromName(l.document.name),u=this.fromVersion(l.document.updateTime),d=new Ht(c,u,{},void 0,l.document,(function(e){return n.fromValue(e)}));t=new Bi(l.targetIds||[],l.removedTargetIds||[],d.key,d)}else if("documentDelete"in e){cr(e.documentDelete,"documentDelete");var h=e.documentDelete;cr(h.document,"documentDelete.document"),c=this.fromName(h.document),u=h.readTime?this.fromVersion(h.readTime):we.forDeletedDoc(),d=new Yt(c,u),t=new Bi([],h.removedTargetIds||[],d.key,d)}else if("documentRemove"in e){cr(e.documentRemove,"documentRemove");var p=e.documentRemove;cr(p.document,"documentRemove"),c=this.fromName(p.document),t=new Bi([],p.removedTargetIds||[],c,null)}else{if(!("filter"in e))return v("Unknown change type "+JSON.stringify(e));cr(e.filter,"filter");var f=e.filter;cr(f.targetId,"filter.targetId");var m=new or(f.count||0);t=new Gi(f.targetId,m)}return t},e.prototype.fromWatchTargetChangeState=function(e){return"NO_CHANGE"===e?Wi.NoChange:"ADD"===e?Wi.Added:"REMOVE"===e?Wi.Removed:"CURRENT"===e?Wi.Current:"RESET"===e?Wi.Reset:v("Got unexpected TargetChange.state: "+e)},e.prototype.versionFromListenResponse=function(e){if(!("targetChange"in e))return we.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?we.MIN:t.readTime?this.fromVersion(t.readTime):we.MIN}
1,e.prototype.toMutation=function(e){var t,n=this;if(e instanceof gt)t={update:this.toMutationDocument(e.key,e.value)};else if(e instanceof _t)t={delete:this.toName(e.key)};else if(e instanceof yt)t={update:this.toMutationDocument(e.key,e.data),updateMask:this.toDocumentMask(e.fieldMask)};else if(e instanceof vt)t={transform:{document:this.toName(e.key),fieldTransforms:e.fieldTransforms.map((function(e){return n.toFieldTransform(e)}))}};else{if(!(e instanceof bt))return v("Unknown mutation type "+e.type);t={verify:this.toName(e.key)}}return e.precondition.isNone||(t.currentDocument=this.toPrecondition(e.precondition)),t},e.prototype.fromMutation=function(e){var t=this,n=e.currentDocument?this.fromPrecondition(e.currentDocument):ft.NONE;if(e.update){cr(e.update.name,"name");var i=this.fromName(e.update.name),r=this.fromFields(e.update.fields||{});if(e.updateMask){var o=this.fromDocumentMask(e.updateMask);return new yt(i,r,o,n)}return new gt(i,r,n)}if(e.delete)return i=this.fromName(e.delete),new _t(i,n);if(e.transform){i=this.fromName(e.transform.document);var s=e.transform.fieldTransforms.map((function(e){return t.fromFieldTransform(e)}));return _(!0===n.exists,'Transforms only support precondition "exists == true"'),new vt(i,s)}return e.verify?(i=this.fromName(e.verify),new bt(i,n)):v("unknown mutation proto: "+JSON.stringify(e))},e.prototype.toPrecondition=function(e){return _(!e.isNone,"Can't serialize an empty precondition"),void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:v("Unknown precondition")},e.prototype.fromPrecondition=function(e){return void 0!==e.updateTime?ft.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?ft.exists(e.exists):ft.NONE},e.prototype.fromWriteResult=function(e,t){var n=this,i=this.fromVersion(e.updateTime?e.updateTime:t);i.isEqual(we.MIN)&&(i=this.fromVersion(t));var r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults.map((function(e){return n.fromValue(e)}))),new ht(i,r)},e.prototype.fromWriteResults=function(e,t){var n=this;return e&&e.length>0?(_(void 0!==t,"Received a write result without a commit time"),e.map((function(e){return n.fromWriteResult(e,t)}))):[]},e.prototype.toFieldTransform=function(e){var t=this,n=e.transform;if(n instanceof Ji)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Zi)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements.map((function(e){return t.toValue(e)}))}};if(n instanceof er)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements.map((function(e){return t.toValue(e)}))}};if(n instanceof tr)return{fieldPath:e.field.canonicalString(),increment:this.toValue(n.operand)};throw v("Unknown transform: "+e.transform)},e.prototype.fromFieldTransform=function(e){var t=this,n=null;if("setToServerValue"in e)_("REQUEST_TIME"===e.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(e)),n=Ji.instance;else if("appendMissingElements"in e)n=new Zi((e.appendMissingElements.values||[]).map((function(e){return t.fromValue(e)})));else if("removeAllFromArray"in e)n=new er((e.removeAllFromArray.values||[]).map((function(e){return t.fromValue(e)})));else if("increment"in e){var i=this.fromValue(e.increment);_(i instanceof Tt,"NUMERIC_ADD transform requires a NumberValue"),n=new tr(i)}else v("Unknown transform proto: "+JSON.stringify(e));var r=ue.fromServerFormat(e.fieldPath);return new dt(r,n)},e.prototype.toDocumentsTarget=function(e){return{documents:[this.toQueryPath(e.path)]}},e.prototype.fromDocumentsTarget=function(e){var t=e.documents.length;return _(1===t,"DocumentsTarget contained other than 1 document: "+t),Zn.atPath(this.fromQueryPath(e.documents[0])).toTarget()},e.prototype.toQueryTarget=function(e){var t={structuredQuery:{}},n=e.path;null!==e.collectionGroup?(_(n.length%2==0,"Collection Group queries should be within a document path or root."),t.parent=this.toQueryPath(n),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(_(n.length%2!=0,"Document queries with filters are not supported."),t.parent=this.toQueryPath(n.popLast()),t.structuredQuery.from=[{collectionId:n.lastSegment()}]);var i=this.toFilter(e.filters);i&&(t.structuredQuery.where=i);var r=this.toOrder(e.orderBy);r&&(t.structuredQuery.orderBy=r);var o=this.toInt32Value(e.limit);return null!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=this.toCursor(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.toCursor(e.endAt)),t},e.prototype.fromQueryTarget=function(e){var t=this.fromQueryPath(e.parent),n=e.structuredQuery,i=n.from?n.from.length:0,r=null;if(i>0){_(1===i,"StructuredQuery.from with more than one collection is not supported.");var o=n.from[0];o.allDescendants?r=o.collectionId:t=t.child(o.collectionId)}var s=[];n.where&&(s=this.fromFilter(n.where));var a=[];n.orderBy&&(a=this.fromOrder(n.orderBy));var l=null;n.limit&&(l=this.fromInt32Value(n.limit));var c=null;
1n.startAt&&(c=this.fromCursor(n.startAt));var u=null;return n.endAt&&(u=this.fromCursor(n.endAt)),new Zn(t,r,a,s,l,Jn.First,c,u).toTarget()},e.prototype.toListenRequestLabels=function(e){var t=this.toLabel(e.purpose);return null==t?null:{"goog-listen-tags":t}},e.prototype.toLabel=function(e){switch(e){case wn.Listen:return null;case wn.ExistenceFilterMismatch:return"existence-filter-mismatch";case wn.LimboResolution:return"limbo-document";default:return v("Unrecognized query purpose: "+e)}},e.prototype.toTarget=function(e){var t,n=e.target;return(t=n.isDocumentQuery()?{documents:this.toDocumentsTarget(n)}:{query:this.toQueryTarget(n)}).targetId=e.targetId,e.resumeToken.length>0&&(t.resumeToken=this.unsafeCastProtoByteString(e.resumeToken)),t},e.prototype.toFilter=function(e){var t=this;if(0!==e.length){var n=e.map((function(e){return e instanceof ni?t.toUnaryOrFieldFilter(e):v("Unrecognized filter: "+JSON.stringify(e))}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.fromFilter=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.fromUnaryFilter(e)]:void 0!==e.fieldFilter?[this.fromFieldFilter(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t.fromFilter(e)})).reduce((function(e,t){return e.concat(t)})):v("Unknown filter: "+JSON.stringify(e)):[]},e.prototype.toOrder=function(e){var t=this;if(0!==e.length)return e.map((function(e){return t.toPropertyOrder(e)}))},e.prototype.fromOrder=function(e){var t=this;return e.map((function(e){return t.fromPropertyOrder(e)}))},e.prototype.toCursor=function(e){var t=this;return{before:e.before,values:e.position.map((function(e){return t.toValue(e)}))}},e.prototype.fromCursor=function(e){var t=this,n=!!e.before,i=e.values.map((function(e){return t.fromValue(e)}));return new ci(i,n)},e.prototype.toDirection=function(e){return sr[e.name]},e.prototype.fromDirection=function(e){switch(e){case"ASCENDING":return li.ASCENDING;case"DESCENDING":return li.DESCENDING;default:return}},e.prototype.toOperatorName=function(e){return ar[e.name]},e.prototype.fromOperatorName=function(e){switch(e){case"EQUAL":return ti.EQUAL;case"GREATER_THAN":return ti.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return ti.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return ti.LESS_THAN;case"LESS_THAN_OR_EQUAL":return ti.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return ti.ARRAY_CONTAINS;case"IN":return ti.IN;case"ARRAY_CONTAINS_ANY":return ti.ARRAY_CONTAINS_ANY;case"OPERATOR_UNSPECIFIED":return v("Unspecified operator");default:return v("Unknown operator")}},e.prototype.toFieldPathReference=function(e){return{fieldPath:e.canonicalString()}},e.prototype.fromFieldPathReference=function(e){return ue.fromServerFormat(e.fieldPath)},e.prototype.toPropertyOrder=function(e){return{field:this.toFieldPathReference(e.field),direction:this.toDirection(e.dir)}},e.prototype.fromPropertyOrder=function(e){return new ui(this.fromFieldPathReference(e.field),this.fromDirection(e.direction))},e.prototype.fromFieldFilter=function(e){return ni.create(this.fromFieldPathReference(e.fieldFilter.field),this.fromOperatorName(e.fieldFilter.op),this.fromValue(e.fieldFilter.value))},e.prototype.toUnaryOrFieldFilter=function(e){if(e.op===ti.EQUAL){if(e.value.isEqual(It.NAN))return{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NAN"}};if(e.value.isEqual(Dt.INSTANCE))return{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.toFieldPathReference(e.field),op:this.toOperatorName(e.op),value:this.toValue(e.value)}}},e.prototype.fromUnaryFilter=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.fromFieldPathReference(e.unaryFilter.field);return ni.create(t,ti.EQUAL,It.NAN);case"IS_NULL":var n=this.fromFieldPathReference(e.unaryFilter.field);return ni.create(n,ti.EQUAL,Dt.INSTANCE);case"OPERATOR_UNSPECIFIED":return v("Unspecified filter");default:return v("Unknown filter")}},e.prototype.toDocumentMask=function(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}},e.prototype.fromDocumentMask=function(e){var t=(e.fieldPaths||[]).map((function(e){return ue.fromServerFormat(e)}));return ut.fromArray(t)},e}(),hr=function(){return function(){this.viewSnap=null,this.targetId=0,this.listeners=[]}}(),pr=function(){function e(e){this.syncEngine=e,this.queries=new Gt((function(e){return e.canonicalId()})),this.onlineState=Oi.Unknown,this.snapshotsInSyncListeners=new Set,this.syncEngine.subscribe(this)}return e.prototype.listen=function(e){var t=e.query,n=!1,i=this.queries.get(t);
1return i||(n=!0,i=new hr,this.queries.set(t,i)),i.listeners.push(e),_(!e.applyOnlineStateChange(this.onlineState),"applyOnlineStateChange() shouldn't raise an event for brand-new listeners."),i.viewSnap&&e.onViewSnapshot(i.viewSnap)&&this.raiseSnapshotsInSyncEvent(),n?this.syncEngine.listen(t).then((function(e){return i.targetId=e,e})):Promise.resolve(i.targetId)},e.prototype.unlisten=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i,r;return o.__generator(this,(function(o){return n=!1,(i=this.queries.get(t=e.query))&&(r=i.listeners.indexOf(e))>=0&&(i.listeners.splice(r,1),n=0===i.listeners.length),n?(this.queries.delete(t),[2,this.syncEngine.unlisten(t)]):[2]}))}))},e.prototype.onWatchChange=function(e){for(var t=!1,n=0,i=e;n<i.length;n++){var r=i[n],o=this.queries.get(r.query);if(o){for(var s=0,a=o.listeners;s<a.length;s++)a[s].onViewSnapshot(r)&&(t=!0);o.viewSnap=r}}t&&this.raiseSnapshotsInSyncEvent()},e.prototype.onWatchError=function(e,t){var n=this.queries.get(e);if(n)for(var i=0,r=n.listeners;i<r.length;i++)r[i].onError(t);this.queries.delete(e)},e.prototype.onOnlineStateChange=function(e){this.onlineState=e;var t=!1;this.queries.forEach((function(n,i){for(var r=0,o=i.listeners;r<o.length;r++)o[r].applyOnlineStateChange(e)&&(t=!0)})),t&&this.raiseSnapshotsInSyncEvent()},e.prototype.addSnapshotsInSyncListener=function(e){this.snapshotsInSyncListeners.add(e),e.next()},e.prototype.removeSnapshotsInSyncListener=function(e){this.snapshotsInSyncListeners.delete(e)},e.prototype.raiseSnapshotsInSyncEvent=function(){this.snapshotsInSyncListeners.forEach((function(e){e.next()}))},e}(),fr=function(){function e(e,t,n){this.query=e,this.queryObserver=t,this.raisedInitialEvent=!1,this.snap=null,this.onlineState=Oi.Unknown,this.options=n||{}}return e.prototype.onViewSnapshot=function(e){if(_(e.docChanges.length>0||e.syncStateChanged,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var t=[],n=0,i=e.docChanges;n<i.length;n++){var r=i[n];r.type!==Ni.Metadata&&t.push(r)}e=new Vi(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}var o=!1;return this.raisedInitialEvent?this.shouldRaiseEvent(e)&&(this.queryObserver.next(e),o=!0):this.shouldRaiseInitialEvent(e,this.onlineState)&&(this.raiseInitialEvent(e),o=!0),this.snap=e,o},e.prototype.onError=function(e){this.queryObserver.error(e)},e.prototype.applyOnlineStateChange=function(e){this.onlineState=e;var t=!1;return this.snap&&!this.raisedInitialEvent&&this.shouldRaiseInitialEvent(this.snap,e)&&(this.raiseInitialEvent(this.snap),t=!0),t},e.prototype.shouldRaiseInitialEvent=function(e,t){return _(!this.raisedInitialEvent,"Determining whether to raise first event but already had first event"),!e.fromCache||(this.options.waitForSyncWhenOnline&&t!==Oi.Offline?(_(e.fromCache,"Waiting for sync, but snapshot is not from cache"),!1):!e.docs.isEmpty()||t===Oi.Offline)},e.prototype.shouldRaiseEvent=function(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.snap&&this.snap.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges},e.prototype.raiseInitialEvent=function(e){_(!this.raisedInitialEvent,"Trying to raise initial events for second time"),e=Vi.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.raisedInitialEvent=!0,this.queryObserver.next(e)},e}(),mr=function(){function e(e,t,n,i){this.targetId=e,this.fromCache=t,this.addedKeys=n,this.removedKeys=i}return e.fromSnapshot=function(t,n){for(var i=Ne(),r=Ne(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case Ni.Added:i=i.add(a.doc.key);break;case Ni.Removed:r=r.add(a.doc.key)}}return new e(t,n.fromCache,i,r)},e}(),gr=function(){return function(e){this.key=e}}(),yr=function(){return function(e){this.key=e}}(),vr=function(){function e(e,t){this.query=e,this._syncedDocuments=t,this.syncState=null,this.current=!1,this.limboDocuments=Ne(),this.mutatedKeys=Ne(),this.documentSet=new Li(e.docComparator.bind(e))}return Object.defineProperty(e.prototype,"syncedDocuments",{get:function(){return this._syncedDocuments},enumerable:!0,configurable:!0}),e.prototype.computeDocChanges=function(e,t){var n=this,i=t?t.changeSet:new ji,r=t?t.documentSet
1:this.documentSet,o=t?t.mutatedKeys:this.mutatedKeys,s=r,a=!1,l=this.query.hasLimitToFirst()&&r.size===this.query.limit?r.last():null,c=this.query.hasLimitToLast()&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((function(e,t){var u=r.get(e),d=t instanceof Ht?t:null;d&&(_(e.isEqual(d.key),"Mismatching keys found in document changes: "+e+" != "+d.key),d=n.query.matches(d)?d:null);var h=!!u&&n.mutatedKeys.has(u.key),p=!!d&&(d.hasLocalMutations||n.mutatedKeys.has(d.key)&&d.hasCommittedMutations),f=!1;u&&d?u.data().isEqual(d.data())?h!==p&&(i.track({type:Ni.Metadata,doc:d}),f=!0):n.shouldWaitForSyncedDocument(u,d)||(i.track({type:Ni.Modified,doc:d}),f=!0,(l&&n.query.docComparator(d,l)>0||c&&n.query.docComparator(d,c)<0)&&(a=!0)):!u&&d?(i.track({type:Ni.Added,doc:d}),f=!0):u&&!d&&(i.track({type:Ni.Removed,doc:u}),f=!0,(l||c)&&(a=!0)),f&&(d?(s=s.add(d),o=p?o.add(e):o.delete(e)):(s=s.delete(e),o=o.delete(e)))})),this.query.hasLimitToFirst()||this.query.hasLimitToLast())for(;s.size>this.query.limit;){var u=this.query.hasLimitToFirst()?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),i.track({type:Ni.Removed,doc:u})}return _(!a||!t,"View was refilled using docs that themselves needed refilling."),{documentSet:s,changeSet:i,needsRefill:a,mutatedKeys:o}},e.prototype.shouldWaitForSyncedDocument=function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations},e.prototype.applyChanges=function(e,t,n){var i=this;_(!e.needsRefill,"Cannot apply changes that need a refill");var r=this.documentSet;this.documentSet=e.documentSet,this.mutatedKeys=e.mutatedKeys;var o=e.changeSet.getChanges();o.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case Ni.Added:return 1;case Ni.Modified:case Ni.Metadata:return 2;case Ni.Removed:return 0;default:return v("Unknown ChangeType: "+e)}};return n(e)-n(t)}(e.type,t.type)||i.query.docComparator(e.doc,t.doc)})),this.applyTargetChange(n);var s=t?this.updateLimboDocuments():[],a=0===this.limboDocuments.size&&this.current?Fi.Synced:Fi.Local,l=a!==this.syncState;return this.syncState=a,0!==o.length||l?{snapshot:new Vi(this.query,e.documentSet,r,o,e.mutatedKeys,a===Fi.Local,l,!1),limboChanges:s}:{limboChanges:s}},e.prototype.applyOnlineStateChange=function(e){return this.current&&e===Oi.Offline?(this.current=!1,this.applyChanges({documentSet:this.documentSet,changeSet:new ji,mutatedKeys:this.mutatedKeys,needsRefill:!1},!1)):{limboChanges:[]}},e.prototype.shouldBeInLimbo=function(e){return!this._syncedDocuments.has(e)&&!!this.documentSet.has(e)&&!this.documentSet.get(e).hasLocalMutations},e.prototype.applyTargetChange=function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t._syncedDocuments=t._syncedDocuments.add(e)})),e.modifiedDocuments.forEach((function(e){return _(t._syncedDocuments.has(e),"Modified document "+e+" not found in view.")})),e.removedDocuments.forEach((function(e){return t._syncedDocuments=t._syncedDocuments.delete(e)})),this.current=e.current)},e.prototype.updateLimboDocuments=function(){var e=this;if(!this.current)return[];var t=this.limboDocuments;this.limboDocuments=Ne(),this.documentSet.forEach((function(t){e.shouldBeInLimbo(t.key)&&(e.limboDocuments=e.limboDocuments.add(t.key))}));var n=[];return t.forEach((function(t){e.limboDocuments.has(t)||n.push(new yr(t))})),this.limboDocuments.forEach((function(e){t.has(e)||n.push(new gr(e))})),n},e.prototype.synchronizeWithPersistedState=function(e){this._syncedDocuments=e.remoteKeys,this.limboDocuments=Ne();var t=this.computeDocChanges(e.documents);return this.applyChanges(t,!0)},e.prototype.computeInitialSnapshot=function(){return Vi.fromInitialDocuments(this.query,this.documentSet,this.mutatedKeys,this.syncState===Fi.Local)},e}(),_r=function(){function e(e,t,n,i){this.asyncQueue=e,this.remoteStore=t,this.updateFunction=n,this.deferred=i,this.retries=5,this.backoff=new wi(this.asyncQueue,pe.RetryTransaction)}return e.prototype.run=function(){this.runWithBackOff()},e.prototype.runWithBackOff=function(){var e=this;this.backoff.backoffAndRun((function(){return o.__awaiter(e,void 0,void 0,(function(){var e,t,n=this;return o.__generator(this,(function(i){return e=this.remoteStore.createTransaction(),(t=this.tryRunUpdateFunction(e))&&t.then((function(t){n.asyncQueue.enqueueAndForget((function(){return e.commit().then((function(){n.deferred.resolve(t)}
1)).catch((function(e){n.handleTransactionError(e)}))}))})).catch((function(e){n.handleTransactionError(e)})),[2]}))}))}))},e.prototype.tryRunUpdateFunction=function(e){try{var t=this.updateFunction(e);return!$n(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(g){return this.deferred.reject(g),null}},e.prototype.handleTransactionError=function(e){var t=this;this.retries>0&&this.isRetryableTransactionError(e)?(this.retries-=1,this.asyncQueue.enqueueAndForget((function(){return t.runWithBackOff(),Promise.resolve()}))):this.deferred.reject(e)},e.prototype.isRetryableTransactionError=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Mi(t)}return!1},e}(),br=function(){return function(e,t,n){this.query=e,this.targetId=t,this.view=n}}(),wr=function(){return function(e){this.key=e,this.receivedDocument=!1}}(),Cr=function(){function e(e,t,n,i){this.localStore=e,this.remoteStore=t,this.sharedClientState=n,this.currentUser=i,this.syncEngineListener=null,this.queryViewsByQuery=new Gt((function(e){return e.canonicalId()})),this.queriesByTarget={},this.limboTargetsByKey=new Ce(de.comparator),this.limboResolutionsByTarget={},this.limboDocumentRefs=new Tn,this.mutationUserCallbacks={},this.pendingWritesCallbacks=new Map,this.limboTargetIdGenerator=rt.forSyncEngine(),this.isPrimary=void 0,this.onlineState=Oi.Unknown}return Object.defineProperty(e.prototype,"isPrimaryClient",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){_(null!==e,"SyncEngine listener cannot be null"),_(null===this.syncEngineListener,"SyncEngine already has a subscriber."),this.syncEngineListener=e},e.prototype.listen=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i,r,s;return o.__generator(this,(function(o){switch(o.label){case 0:return this.assertSubscribed("listen()"),(i=this.queryViewsByQuery.get(e))?(this.sharedClientState.addLocalQueryTarget(t=i.targetId),n=i.view.computeInitialSnapshot(),[3,4]):[3,1];case 1:return[4,this.localStore.allocateTarget(e.toTarget())];case 2:return r=o.sent(),s=this.sharedClientState.addLocalQueryTarget(r.targetId),[4,this.initializeViewAndComputeSnapshot(e,t=r.targetId,"current"===s)];case 3:n=o.sent(),this.isPrimary&&this.remoteStore.listen(r),o.label=4;case 4:return this.syncEngineListener.onWatchChange([n]),[2,t]}}))}))},e.prototype.initializeViewAndComputeSnapshot=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var i,r,s,a,l,c;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,this.localStore.executeQuery(e,!0)];case 1:return i=o.sent(),r=new vr(e,i.remoteKeys),s=r.computeDocChanges(i.documents),a=Yi.createSynthesizedTargetChangeForCurrentChange(t,n&&this.onlineState!==Oi.Offline),_(0===(l=r.applyChanges(s,!0===this.isPrimary,a)).limboChanges.length,"View returned limbo docs before target ack from the server."),_(!!l.snapshot,"applyChanges for new view should always return a snapshot"),c=new br(e,t,r),this.queryViewsByQuery.set(e,c),this.queriesByTarget[t]||(this.queriesByTarget[t]=[]),this.queriesByTarget[t].push(e),[2,l.snapshot]}}))}))},e.prototype.synchronizeViewAndComputeSnapshot=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(i){switch(i.label){case 0:return[4,this.localStore.executeQuery(e.query,!0)];case 1:return t=i.sent(),n=e.view.synchronizeWithPersistedState(t),this.isPrimary&&this.updateTrackedLimbos(e.targetId,n.limboChanges),[2,n]}}))}))},e.prototype.unlisten=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i=this;return o.__generator(this,(function(r){switch(r.label){case 0:return this.assertSubscribed("unlisten()"),_(!!(t=this.queryViewsByQuery.get(e)),"Trying to unlisten on query not found:"+e),(n=this.queriesByTarget[t.targetId]).length>1?(this.queriesByTarget[t.targetId]=n.filter((function(t){return!t.isEqual(e)})),this.queryViewsByQuery.delete(e),[2]):this.isPrimary?(this.sharedClientState.removeLocalQueryTarget(t.targetId),this.sharedCl
1ientState.isActiveQueryTarget(t.targetId)?[3,2]:[4,this.localStore.releaseTarget(t.targetId,!1).then((function(){i.sharedClientState.clearQueryState(t.targetId),i.remoteStore.unlisten(t.targetId),i.removeAndCleanupTarget(t.targetId)})).catch(In)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return this.removeAndCleanupTarget(t.targetId),[4,this.localStore.releaseTarget(t.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}}))}))},e.prototype.write=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(i){switch(i.label){case 0:return this.assertSubscribed("write()"),[4,this.localStore.localWrite(e)];case 1:return n=i.sent(),this.sharedClientState.addPendingMutation(n.batchId),this.addMutationCallback(n.batchId,t),[4,this.emitNewSnapsAndNotifyLocalStore(n.changes)];case 2:return i.sent(),[4,this.remoteStore.fillWritePipeline()];case 3:return i.sent(),[2]}}))}))},e.prototype.runTransaction=function(e,t,n){new _r(e,this.remoteStore,t,n).run()},e.prototype.applyRemoteEvent=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n=this;return o.__generator(this,(function(i){switch(i.label){case 0:this.assertSubscribed("applyRemoteEvent()"),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.applyRemoteEvent(e)];case 2:return t=i.sent(),O(e.targetChanges,(function(e,t){var i=n.limboResolutionsByTarget[Number(e)];i&&(_(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1,"Limbo resolution for single document contains multiple changes."),t.addedDocuments.size>0?i.receivedDocument=!0:t.modifiedDocuments.size>0?_(i.receivedDocument,"Received change for limbo target document without add."):t.removedDocuments.size>0&&(_(i.receivedDocument,"Received remove for limbo target document without add."),i.receivedDocument=!1))})),[4,this.emitNewSnapsAndNotifyLocalStore(t,e)];case 3:return i.sent(),[3,6];case 4:return[4,In(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}
1))}))},e.prototype.applyOnlineStateChange=function(e,t){if(this.isPrimary&&t===ki.RemoteStore||!this.isPrimary&&t===ki.SharedClientState){this.assertSubscribed("applyOnlineStateChange()");var n=[];this.queryViewsByQuery.forEach((function(t,i){var r=i.view.applyOnlineStateChange(e);_(0===r.limboChanges.length,"OnlineState should not affect limbo documents."),r.snapshot&&n.push(r.snapshot)})),this.syncEngineListener.onOnlineStateChange(e),this.syncEngineListener.onWatchChange(n),this.onlineState=e,this.isPrimary&&this.sharedClientState.setOnlineState(e)}},e.prototype.rejectListen=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,i,r,s,a,l=this;return o.__generator(this,(function(o){switch(o.label){case 0:return this.assertSubscribed("rejectListens()"),this.sharedClientState.updateQueryState(e,"rejected",t),(i=(n=this.limboResolutionsByTarget[e])&&n.key)?(this.limboTargetsByKey=this.limboTargetsByKey.remove(i),delete this.limboResolutionsByTarget[e],r=(r=new Ce(de.comparator)).insert(i,new Yt(i,we.forDeletedDoc())),s=Ne().add(i),a=new Hi(we.MIN,{},new xe(X),r,s),[2,this.applyRemoteEvent(a)]):[3,1];case 1:return[4,this.localStore.releaseTarget(e,!1).then((function(){return l.removeAndCleanupTarget(e,t)})).catch(In)];case 2:o.sent(),o.label=3;case 3:return[2]}}
1))}))},e.prototype.applyBatchState=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var i;return o.__generator(this,(function(r){switch(r.label){case 0:return this.assertSubscribed("applyBatchState()"),[4,this.localStore.lookupMutationDocuments(e)];case 1:return null===(i=r.sent())?(m("SyncEngine","Cannot apply mutation batch with id: "+e),[2]):"pending"!==t?[3,3]:[4,this.remoteStore.fillWritePipeline()];case 2:return r.sent(),[3,4];case 3:"acknowledged"===t||"rejected"===t?(this.processUserCallback(e,n||null),this.localStore.removeCachedMutationBatchMetadata(e)):v("Unknown batchState: "+t),r.label=4;case 4:return[4,this.emitNewSnapsAndNotifyLocalStore(i)];case 5:return r.sent(),[2]}}))}))},e.prototype.applySuccessfulWrite=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(i){switch(i.label){case 0:this.assertSubscribed("applySuccessfulWrite()"),this.processUserCallback(t=e.batch.batchId,null),this.triggerPendingWritesCallbacks(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.acknowledgeBatch(e)];case 2:return n=i.sent(),this.sharedClientState.updateMutationState(t,"acknowledged"),[4,this.emitNewSnapsAndNotifyLocalStore(n)];case 3:return i.sent(),[3,6];case 4:return[4,In(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}
1))}))},e.prototype.rejectFailedWrite=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(i){switch(i.label){case 0:this.assertSubscribed("rejectFailedWrite()"),this.processUserCallback(e,t),this.triggerPendingWritesCallbacks(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.rejectBatch(e)];case 2:return n=i.sent(),this.sharedClientState.updateMutationState(e,"rejected",t),[4,this.emitNewSnapsAndNotifyLocalStore(n)];case 3:return i.sent(),[3,6];case 4:return[4,In(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))},e.prototype.registerPendingWritesCallback=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(i){switch(i.label){case 0:return this.remoteStore.canUseNetwork()||m("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.localStore.getHighestUnacknowledgedBatchId()];case 1:return-1===(t=i.sent())?(e.resolve(),[2]):((n=this.pendingWritesCallbacks.get(t)||[]).push(e),this.pendingWritesCallbacks.set(t,n),[2])}}))}))},e.prototype.triggerPendingWritesCallbacks=function(e){(this.pendingWritesCallbacks.get(e)||[]).forEach((function(e){e.resolve()})),this.pendingWritesCallbacks.delete(e)},e.prototype.rejectOutstandingPendingWritesCallbacks=function(e){this.pendingWritesCallbacks.forEach((function(t){t.forEach((function(t){t.reject(new E(C.CANCELLED,e))}))})),this.pendingWritesCallbacks.clear()},e.prototype.addMutationCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];n||(n=new Ce(X)),n=n.insert(e,t),this.mutationUserCallbacks[this.currentUser.toKey()]=n},e.prototype.processUserCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];if(n){var i=n.get(e);i&&(_(e===n.minKey(),"Mutation callbacks processed out-of-order?"),t?i.reject(t):i.resolve(),n=n.remove(e)),this.mutationUserCallbacks[this.currentUser.toKey()]=n}},e.prototype.removeAndCleanupTarget=function(e,t){var n=this;void 0===t&&(t=null),this.sharedClientState.removeLocalQueryTarget(e),_(this.queriesByTarget[e]&&0!==this.queriesByTarget[e].length,"There are no queries mapped to target id "+e);for(var i=0,r=this.queriesByTarget[e];i<r.length;i++){var o=r[i];this.queryViewsByQuery.delete(o),t&&this.syncEngineListener.onWatchError(o,t)}if(delete this.queriesByTarget[e],this.isPrimary){var s=this.limboDocumentRefs.referencesForId(e);this.limboDocumentRefs.removeReferencesForId(e),s.forEach((function(e){n.limboDocumentRefs.containsKey(e)||n.removeLimboTarget(e)}))}},e.prototype.removeLimboTarget=function(e){var t=this.limboTargetsByKey.get(e);null!==t&&(this.remoteStore.unlisten(t),this.limboTargetsByKey=this.limboTargetsByKey.remove(e),delete this.limboResolutionsByTarget[t])},e.prototype.updateTrackedLimbos=function(e,t){for(var n=0,i=t;n<i.length;n++){var r=i[n];r instanceof gr?(this.limboDocumentRefs.addReference(r.key,e),this.trackLimboChange(r)):r instanceof yr?(m("SyncEngine","Document no longer in limbo: "+r.key),this.limboDocumentRefs.removeReference(r.key,e),this.limboDocumentRefs.containsKey(r.key)||this.removeLimboTarget(r.key)):v("Unknown limbo change: "+JSON.stringify(r))}},e.prototype.trackLimboChange=function(e){var t=e.key;if(!this.limboTargetsByKey.get(t)){m("SyncEngine","New document in limbo: "+t);var n=this.limboTargetIdGenerator.next(),i=Zn.atPath(t.path);this.limboResolutionsByTarget[n]=new wr(t),this.remoteStore.listen(new Cn(i.toTarget(),n,wn.LimboResolution,se.INVALID)),this.limboTargetsByKey=this.limboTargetsByKey.insert(t,n)}},e.prototype.currentLimboDocs=function(){return this.limboTargetsByKey},e.prototype.emitNewSnapsAndNotifyLocalStore=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,i,r,s=this;return o.__generator(this,(function(o){switch(o.label){case 0:return n=[],i=[],r=[],this.queryViewsByQuery.forEach((function(o,a){r.push(Promise.resolve().then((function(){var t=a.view.computeDocChanges(e);return t.needsRefill?s.localStore.executeQuery(a.query,!1).then((function(e){return a.view.computeDocChanges(e.documents,t)})):t})).then((function(e){var r=a.view.applyChanges(e,!0===s.isPrimary,t&&t.targetChanges[a.targetId]);if(s.updateTrackedLimbos(a.targetId,r.limboChanges),r.snapshot){s.isPrimary&&s.sharedCl
1ientState.updateQueryState(a.targetId,r.snapshot.fromCache?"not-current":"current"),n.push(r.snapshot);var o=mr.fromSnapshot(a.targetId,r.snapshot);i.push(o)}})))})),[4,Promise.all(r)];case 1:return o.sent(),this.syncEngineListener.onWatchChange(n),[4,this.localStore.notifyLocalViewChanges(i)];case 2:return o.sent(),[2]}}))}))},e.prototype.assertSubscribed=function(e){_(null!==this.syncEngineListener,"Trying to call "+e+" before calling subscribe().")},e.prototype.handleCredentialChange=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(i){switch(i.label){case 0:return t=!this.currentUser.isEqual(e),this.currentUser=e,t?(this.rejectOutstandingPendingWritesCallbacks("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.localStore.handleUserChange(e)]):[3,3];case 1:return n=i.sent(),this.sharedClientState.handleUserChange(e,n.removedBatchIds,n.addedBatchIds),[4,this.emitNewSnapsAndNotifyLocalStore(n.affectedDocuments)];case 2:i.sent(),i.label=3;case 3:return[4,this.remoteStore.handleCredentialChange()];case 4:return i.sent(),[2]}}))}))},e.prototype.applyPrimaryState=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i,r,s,a,l=this;return o.__generator(this,(function(o){switch(o.label){case 0:return!0!==e||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.remoteStore.applyPrimaryState(!0)]);case 1:return o.sent(),t=this.sharedClientState.getAllActiveQueryTargets(),[4,this.synchronizeQueryViewsAndRaiseSnapshots(t.toArray())];case 2:for(n=o.sent(),i=0,r=n;i<r.length;i++)this.remoteStore.listen(r[i]);return[3,7];case 3:return!1!==e||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],a=Promise.resolve(),T(this.queriesByTarget,(function(e,t){l.sharedClientState.isLocalQueryTarget(e)?s.push(e):a=a.then((function(){return l.removeAndCleanupTarget(e),l.localStore.releaseTarget(e,!0)})),l.remoteStore.unlisten(e)})),[4,a]);case 4:return o.sent(),[4,this.synchronizeQueryViewsAndRaiseSnapshots(s)];case 5:return o.sent(),this.resetLimboDocuments(),[4,this.remoteStore.applyPrimaryState(!1)];case 6:o.sent(),o.label=7;case 7:return[2]}}
1))}))},e.prototype.resetLimboDocuments=function(){var e=this;T(this.limboResolutionsByTarget,(function(t){e.remoteStore.unlisten(t)})),this.limboDocumentRefs.removeAllReferences(),this.limboResolutionsByTarget=[],this.limboTargetsByKey=new Ce(de.comparator)},e.prototype.synchronizeQueryViewsAndRaiseSnapshots=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,i,r,s,a,l,c,u,d,h,p,f;return o.__generator(this,(function(o){switch(o.label){case 0:t=[],n=[],i=0,r=e,o.label=1;case 1:return i<r.length?(a=void 0,(l=this.queriesByTarget[s=r[i]])&&0!==l.length?[4,this.localStore.releaseTarget(s,!0)]:[3,8]):[3,14];case 2:return o.sent(),[4,this.localStore.allocateTarget(l[0].toTarget())];case 3:a=o.sent(),c=0,u=l,o.label=4;case 4:return c<u.length?(_(!!(h=this.queryViewsByQuery.get(d=u[c])),"No query view found for "+d),[4,this.synchronizeViewAndComputeSnapshot(h)]):[3,7];case 5:(p=o.sent()).snapshot&&n.push(p.snapshot),o.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return _(!0===this.isPrimary,"A secondary tab should never have an active target without an active query."),[4,this.localStore.getTarget(s)];case 9:return _(!!(f=o.sent()),"Target for id "+s+" not found"),[4,this.localStore.allocateTarget(f)];case 10:return a=o.sent(),[4,this.initializeViewAndComputeSnapshot(this.synthesizeTargetToQuery(f),s,!1)];case 11:o.sent(),o.label=12;case 12:t.push(a),o.label=13;case 13:return i++,[3,1];case 14:return this.syncEngineListener.onWatchChange(n),[2,t]}}))}))},e.prototype.synthesizeTargetToQuery=function(e){return new Zn(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,Jn.First,e.startAt,e.endAt)},e.prototype.getActiveClients=function(){return this.localStore.getActiveClients()},e.prototype.applyTargetState=function(e,t,n){return o.__awaiter(this,void 0,void 0,(function(){var i,r;return o.__generator(this,(function(o){switch(o.label){case 0:if(this.isPrimary)return m("SyncEngine","Ignoring unexpected query state notification."),[2];if(!this.queriesByTarget[e])return[3,7];switch(t){case"current":case"not-current":return[3,1];case"rejected":return[3,4]}return[3,6];case 1:return[4,this.localStore.getNewDocumentChanges()];case 2:return i=o.sent(),r=Hi.createSynthesizedRemoteEventForCurrentChange(e,"current"===t),[4,this.emitNewSnapsAndNotifyLocalStore(i,r)];case 3:return o.sent(),[3,7];case 4:return[4,this.localStore.releaseTarget(e,!0)];case 5:return o.sent(),this.removeAndCleanupTarget(e,n),[3,7];case 6:v("Unexpected target state: "+t),o.label=7;case 7:return[2]}}
1))}))},e.prototype.applyActiveTargetsChange=function(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,i,r,s,a,l,c,u,d,h=this;return o.__generator(this,(function(p){switch(p.label){case 0:if(!this.isPrimary)return[2];n=0,i=e,p.label=1;case 1:return n<i.length?(_(!this.queriesByTarget[d=i[n]],"Trying to add an already active target"),[4,this.localStore.getTarget(d)]):[3,6];case 2:return _(!!(r=p.sent()),"Query data for active target "+d+" not found"),[4,this.localStore.allocateTarget(r)];case 3:return s=p.sent(),[4,this.initializeViewAndComputeSnapshot(this.synthesizeTargetToQuery(r),s.targetId,!1)];case 4:p.sent(),this.remoteStore.listen(s),p.label=5;case 5:return n++,[3,1];case 6:a=function(e){return o.__generator(this,(function(t){switch(t.label){case 0:return l.queriesByTarget[e]?[4,l.localStore.releaseTarget(e,!1).then((function(){h.remoteStore.unlisten(e),h.removeAndCleanupTarget(e)})).catch(In)]:[2,"continue"];case 1:return t.sent(),[2]}}))},l=this,c=0,u=t,p.label=7;case 7:return c<u.length?[5,a(d=u[c])]:[3,10];case 8:p.sent(),p.label=9;case 9:return c++,[3,7];case 10:return[2]}}
1))}))},e.prototype.enableNetwork=function(){return this.localStore.setNetworkEnabled(!0),this.remoteStore.enableNetwork()},e.prototype.disableNetwork=function(){return this.localStore.setNetworkEnabled(!1),this.remoteStore.disableNetwork()},e.prototype.getRemoteKeysForTarget=function(e){var t=this.limboResolutionsByTarget[e];if(t&&t.receivedDocument)return Ne().add(t.key);var n=Ne(),i=this.queriesByTarget[e];if(!i)return n;for(var r=0,o=i;r<o.length;r++){var s=o[r],a=this.queryViewsByQuery.get(s);_(!!a,"No query view found for "+s),n=n.unionWith(a.view.syncedDocuments)}return n},e}(),Er=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e.UNAUTHENTICATED=new e(null),e.GOOGLE_CREDENTIALS=new e("google-credentials-uid"),e.FIRST_PARTY=new e("first-party-uid"),e}();function Sr(e,t){return _(-1===t.indexOf("_"),"Client key cannot contain '_', but was '"+t+"'"),"firestore_clients_"+e+"_"+t}function Dr(e,t,n){var i="firestore_mutations_"+e+"_"+n;return t.isAuthenticated()&&(i+="_"+t.uid),i}function xr(e,t){return"firestore_targets_"+e+"_"+t}var Tr="SharedClientState",Or=function(){function e(e,t,n,i){this.user=e,this.batchId=t,this.state=n,this.error=i,_(void 0!==i==("rejected"===n),"MutationMetadata must contain an error iff state is 'rejected'")}return e.fromWebStorageEntry=function(t,n,i){var r=JSON.parse(i),o="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),s=void 0;return o&&r.error&&(o="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(s=new E(r.error.code,r.error.message)),o?new e(t,n,r.state,s):(g(Tr,"Failed to parse mutation state for ID '"+n+"': "+i),null)},e.prototype.toWebStorageJSON=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),kr=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n,_(void 0!==n==("rejected"===t),"QueryTargetMetadata must contain an error iff state is 'rejected'")}return e.fromWebStorageEntry=function(t,n){var i=JSON.parse(n),r="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),o=void 0;return r&&i.error&&(r="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(o=new E(i.error.code,i.error.message)),r?new e(t,i.state,o):(g(Tr,"Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.toWebStorageJSON=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Ir=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.fromWebStorageEntry=function(t,n){for(var i=JSON.parse(n),r="object"==typeof i&&i.activeTargetIds instanceof Array,o=je(),s=0;r&&s<i.activeTargetIds.length;++s)r=Qn(i.activeTargetIds[s]),o=o.add(i.activeTargetIds[s]);return r?new e(t,o):(g(Tr,"Failed to parse client data for instance '"+t+"': "+n),null)},e}(),Rr=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.fromWebStorageEntry=function(t){var n=JSON.parse(t);return"object"==typeof n&&n.onlineState in Oi&&"string"==typeof n.clientId?new e(n.clientId,Oi[n.onlineState]):(g(Tr,"Failed to parse online state: "+t),null)},e}(),Mr=function(){function e(){this.activeTargetIds=je()}return e.prototype.addQueryTarget=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.removeQueryTarget=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.toWebStorageJSON=function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),Ar=function(){function e(t,n,i,r,o){if(this.queue=t,this.platform=n,this.persistenceKey=i,this.localClientId=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.activeClients={},this.storageListener=this.handleWebStorageEvent.bind(this),this.started=!1,this.earlyEvents=[],!e.isAvailable(this.platform))throw new E(C.UNIMPLEMENT
1ED,"LocalStorage is not available on this platform.");var s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.localClientStorageKey=Sr(this.persistenceKey,this.localClientId),this.sequenceNumberKey=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.activeClients[this.localClientId]=new Mr,this.clientStateKeyRe=new RegExp("^firestore_clients_"+s+"_([^_]*)$"),this.mutationBatchKeyRe=new RegExp("^firestore_mutations_"+s+"_(\\d+)(?:_(.*))?$"),this.queryTargetKeyRe=new RegExp("^firestore_targets_"+s+"_(\\d+)$"),this.onlineStateKey=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.platform.window.addEventListener("storage",this.storageListener)}return e.isAvailable=function(e){return!(!e.window||null==e.window.localStorage)},e.prototype.start=function(){return o.__awaiter(this,void 0,void 0,(function(){var e,t,n,i,r,s,a,l,c,u,d=this;return o.__generator(this,(function(o){switch(o.label){case 0:return _(!this.started,"WebStorageSharedClientState already started"),_(null!==this.syncEngine,"syncEngine property must be set before calling start()"),_(null!==this.onlineStateHandler,"onlineStateHandler property must be set before calling start()"),[4,this.syncEngine.getActiveClients()];case 1:for(e=o.sent(),t=0,n=e;t<n.length;t++)(i=n[t])!==this.localClientId&&(r=this.getItem(Sr(this.persistenceKey,i)))&&(s=Ir.fromWebStorageEntry(i,r))&&(this.activeClients[s.clientId]=s);for(this.persistClientState(),(a=this.storage.getItem(this.onlineStateKey))&&(l=this.fromWebStorageOnlineState(a))&&this.handleOnlineStateEvent(l),c=0,u=this.earlyEvents;c<u.length;c++)this.handleWebStorageEvent(u[c]);return this.earlyEvents=[],this.platform.window.addEventListener("unload",(function(){return d.shutdown()})),this.started=!0,[2]}}))}))},e.prototype.writeSequenceNumber=function(e){this.setItem(this.sequenceNumberKey,JSON.stringify(e))},e.prototype.getAllActiveQueryTargets=function(){var e=je();return O(this.activeClients,(function(t,n){e=e.unionWith(n.activeTargetIds)})),e},e.prototype.isActiveQueryTarget=function(e){for(var t in this.activeClients)if(this.activeClients.hasOwnProperty(t)&&this.activeClients[t].activeTargetIds.has(e))return!0;return!1},e.prototype.addPendingMutation=function(e){this.persistMutationState(e,"pending")},e.prototype.updateMutationState=function(e,t,n){this.persistMutationState(e,t,n),this.removeMutationState(e)},e.prototype.addLocalQueryTarget=function(e){var t="not-current";if(this.isActiveQueryTarget(e)){var n=this.storage.getItem(xr(this.persistenceKey,e));if(n){var i=kr.fromWebStorageEntry(e,n);i&&(t=i.state)}}return this.localClientState.addQueryTarget(e),this.persistClientState(),t},e.prototype.removeLocalQueryTarget=function(e){this.localClientState.removeQueryTarget(e),this.persistClientState()},e.prototype.isLocalQueryTarget=function(e){return this.localClientState.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){this.removeItem(xr(this.persistenceKey,e))},e.prototype.updateQueryState=function(e,t,n){this.persistQueryTargetState(e,t,n)},e.prototype.handleUserChange=function(e,t,n){var i=this;t.forEach((function(e){i.removeMutationState(e)})),this.currentUser=e,n.forEach((function(e){i.addPendingMutation(e)}))},e.prototype.setOnlineState=function(e){this.persistOnlineState(e)},e.prototype.shutdown=function(){this.started&&(this.platform.window.removeEventListener("storage",this.storageListener),this.removeItem(this.localClientStorageKey),this.started=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return m(Tr,"READ",e,t),t},e.prototype.setItem=function(e,t){m(Tr,"SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){m(Tr,"REMOVE",e),this.storage.removeItem(e)},e.prototype.handleWebStorageEvent=function(e){var t=this;if(e.storageArea===this.storage){if(m(Tr,"EVENT",e.key,e.newValue),e.key===this.localClientStorageKey)return void g("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.queue.enqueueAndForget((function(){return o.__awaiter(t,void 0,void 0,(function(){var t,n,i,r,s,a;
1return o.__generator(this,(function(o){if(!this.started)return this.earlyEvents.push(e),[2];if(null===e.key)return[2];if(this.clientStateKeyRe.test(e.key)){if(null==e.newValue)return n=this.fromWebStorageClientStateKey(e.key),[2,this.handleClientStateEvent(n,null)];if(t=this.fromWebStorageClientState(e.key,e.newValue))return[2,this.handleClientStateEvent(t.clientId,t)]}else if(this.mutationBatchKeyRe.test(e.key)){if(null!==e.newValue&&(i=this.fromWebStorageMutationMetadata(e.key,e.newValue)))return[2,this.handleMutationBatchEvent(i)]}else if(this.queryTargetKeyRe.test(e.key)){if(null!==e.newValue&&(r=this.fromWebStorageQueryTargetMetadata(e.key,e.newValue)))return[2,this.handleQueryTargetEvent(r)]}else if(e.key===this.onlineStateKey){if(null!==e.newValue&&(s=this.fromWebStorageOnlineState(e.newValue)))return[2,this.handleOnlineStateEvent(s)]}else e.key===this.sequenceNumberKey&&(_(!!this.sequenceNumberHandler,"Missing sequenceNumberHandler"),(a=function(e){var t=se.INVALID;if(null!=e)try{var n=JSON.parse(e);_("number"==typeof n,"Found non-numeric sequence number"),t=n}catch(i){g(Tr,"Failed to read sequence number from WebStorage",i)}return t}(e.newValue))!==se.INVALID&&this.sequenceNumberHandler(a));return[2]}))}))}))}},Object.defineProperty(e.prototype,"localClientState",{get:function(){return this.activeClients[this.localClientId]},enumerable:!0,configurable:!0}),e.prototype.persistClientState=function(){this.setItem(this.localClientStorageKey,this.localClientState.toWebStorageJSON())},e.prototype.persistMutationState=function(e,t,n){var i=new Or(this.currentUser,e,t,n),r=Dr(this.persistenceKey,this.currentUser,e);this.setItem(r,i.toWebStorageJSON())},e.prototype.removeMutationState=function(e){var t=Dr(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.persistOnlineState=function(e){this.storage.setItem(this.onlineStateKey,JSON.stringify({clientId:this.localClientId,onlineState:Oi[e]}))},e.prototype.persistQueryTargetState=function(e,t,n){var i=xr(this.persistenceKey,e),r=new kr(e,t,n);this.setItem(i,r.toWebStorageJSON())},e.prototype.fromWebStorageClientStateKey=function(e){var t=this.clientStateKeyRe.exec(e);return t?t[1]:null},e.prototype.fromWebStorageClientState=function(e,t){var n=this.fromWebStorageClientStateKey(e);return _(null!==n,"Cannot parse client state key '"+e+"'"),Ir.fromWebStorageEntry(n,t)},e.prototype.fromWebStorageMutationMetadata=function(e,t){var n=this.mutationBatchKeyRe.exec(e);_(null!==n,"Cannot parse mutation batch key '"+e+"'");var i=Number(n[1]);return Or.fromWebStorageEntry(new Er(void 0!==n[2]?n[2]:null),i,t)},e.prototype.fromWebStorageQueryTargetMetadata=function(e,t){var n=this.queryTargetKeyRe.exec(e);_(null!==n,"Cannot parse query target key '"+e+"'");var i=Number(n[1]);return kr.fromWebStorageEntry(i,t)},e.prototype.fromWebStorageOnlineState=function(e){return Rr.fromWebStorageEntry(e)},e.prototype.handleMutationBatchEvent=function(e){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(t){return e.user.uid!==this.currentUser.uid?(m(Tr,"Ignoring mutation for non-active user "+e.user.uid),[2]):[2,this.syncEngine.applyBatchState(e.batchId,e.state,e.error)]}))}))},e.prototype.handleQueryTargetEvent=function(e){return this.syncEngine.applyTargetState(e.targetId,e.state,e.error)},e.prototype.handleClientStateEvent=function(e,t){var n=this,i=this.getAllActiveQueryTargets();t?this.activeClients[e]=t:delete this.activeClients[e];var r=this.getAllActiveQueryTargets(),s=[],a=[];return r.forEach((function(e){return o.__awaiter(n,void 0,void 0,(function(){return o.__generator(this,(function(t){return i.has(e)||s.push(e),[2]}))}))})),i.forEach((function(e){return o.__awaiter(n,void 0,void 0,(function(){return o.__generator(this,(function(t){return r.has(e)||a.push(e),[2]}))}))})),this.syncEngine.applyActiveTargetsChange(s,a)},e.prototype.handleOnlineStateEvent=function(e){this.activeClients[e.clientId]&&this.onlineStateHandler(e.onlineState)},e}(),Pr=function(){function e(){this.localState=new Mr,this.queryState={},this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null}return e.prototype.addPendingMutation=function(e){},e.prototype.updateMutationState=function(e,t,n){},e.prototype.addLocalQueryTarget=function(e){return this.localState.addQueryTarget(e),this.queryState[e]||"not-current"},e.prototype.updateQueryState=function(e,t,n){this.queryState[e]=t},e.prototype.removeLocalQueryTarget=function(e){this.localState.removeQueryTarget(e)},e.prototype.isLocalQueryTarget=function(e){return this.localState.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){delete this.queryState[e]},e.prototype.getAllActiveQueryTargets=function(){return this.localState.activeTargetIds},e.prototype.isActiveQueryTarget=function(e){return this.localState.activeTargetIds.has(e)},e.prototype.start=function(){return this.localState=new Mr,Promise.resolve()},e.prototype.handleUserChange=function(e,t,n){},e.prototype.setOnlineState=function(e){},e.prototype.shutdown=function(){},e.prototype.writeSequenceNumber=function(e){},e}(),Lr=function(){function e(e,t){this.cacheSizeBytes=e,this.synchronizeTabs=t}return e.prototype.lruParams=function(){return Pn.withCacheSize(this.cacheSizeBytes)},e}(),Nr=function(){return function(){}}(),Fr=function(){function e(e,t,n,i){this.platform=e,this.databaseInfo=t,this.credentials=n,this.asyncQueue=i,this.clientId=Q.newId()}return e.prototype.start=function(e){var t=this;this.verifyNotTerminated();var n=new he,i=new he,r=!1;return this.credentials.setChangeListener((function(o){r?t.asyncQueue.enqueueAndForget((function(){return t.handleCredentialChange(o)})):(r=!0,t.initializePersistence(e,i,o).then((function(e){return t.initializeRest(o,e)})).then(n.resolve,n.reject))})),this.asyncQueue.enqueueAndForget((function(){return n.promise})),i.promise},e.prototype.enableNetwork=function(){var e=this;return this.verifyNotTerminated(),this.asyncQueue.enqueue((function(){return e.syncEngine.enableNetwork()}))},e.prototype.initializePersistence=function(e,t,n){var i=this;return e instanceof Lr?this.startIndexedDbPersistence(n,e).then((function(e){return t.resolve(),e})).catch((function(e){if(t.reject(e),!i.canFallback(e))throw e;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+e),i.startMemoryPersistence()})):(t.resolve(),this.startMemoryPersistence())},e.prototype.canFallback=function(e){return e instanceof E?e.code===C.FAILED_PRECONDITION||e.code===C.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code},e.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new E(C.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.startIndexedDbPersistence=function(e,t){var n=this,i=Hn.buildStoragePrefix(this.databaseInfo),r=new dr(this.databaseInfo.databaseId,{useProto3Json:!0});return Promise.resolve().then((function(){return o.__awaiter(n,void 0,void 0,(function(){var n,s;return o.__generator(this,(function(o){switch(o.label){case 0:if(t.synchronizeTabs&&!Ar.isAvailable(this.platform))throw new E(C.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");return n=t.lruParams(),this.sharedClientState=t.synchronizeTabs?new Ar(this.asyncQueue,this.platform,i,this.clientId,e):new Pr,[4,Hn.createIndexedDbPersistence({allowTabSynchronization:t.synchronizeTabs,persistenceKey:i,clientId:this.clientId,platform:this.platform,queue:this.asyncQueue,serializer:r,lruParams:n,sequenceNumberSyncer:this.sharedClientState})];case 1:return s=o.sent(),this.persistence=s,[2,s.referenceDelegate.garbageCollector]}}))}))}))},e.prototype.startMemoryPersistence=function(){return this.persistence=yi.createEagerPersistence(this.clientId),this.sharedClientState=new Pr,Promise.resolve(null)},e.prototype.initializeRest=function(e,t){var n=this;return m("FirestoreClient","Initializing. user=",e.uid),this.platform.loadConnection(this.databaseInfo).then((function(i){return o.__awaiter(n,void 0,void 0,(function(){var n,r,s,a,l,c=this;return o.__generator(this,(function(u){switch(u.label){case 0:return n=new pi,this.localStore=new kn(this.persistence,n,e),[4,this.localStore.start()];
1case 1:return u.sent(),t&&(this.lruScheduler=new Ln(t,this.asyncQueue,this.localStore)),r=this.platform.newConnectivityMonitor(),s=this.platform.newSerializer(this.databaseInfo.databaseId),a=new xi(this.asyncQueue,i,this.credentials,s),l=function(e){return c.syncEngine.applyOnlineStateChange(e,ki.SharedClientState)},this.remoteStore=new Qi(this.localStore,a,this.asyncQueue,(function(e){return c.syncEngine.applyOnlineStateChange(e,ki.RemoteStore)}),r),this.syncEngine=new Cr(this.localStore,this.remoteStore,this.sharedClientState,e),this.sharedClientState.onlineStateHandler=l,this.remoteStore.syncEngine=this.syncEngine,this.sharedClientState.syncEngine=this.syncEngine,this.eventMgr=new pr(this.syncEngine),[4,this.sharedClientState.start()];case 2:return u.sent(),[4,this.remoteStore.start()];case 3:return u.sent(),[4,this.persistence.setPrimaryStateListener((function(e){return o.__awaiter(c,void 0,void 0,(function(){return o.__generator(this,(function(t){switch(t.label){case 0:return[4,this.syncEngine.applyPrimaryState(e)];case 1:return t.sent(),this.lruScheduler&&(e&&!this.lruScheduler.started?this.lruScheduler.start():e||this.lruScheduler.stop()),[2]}}))}))}))];case 4:return u.sent(),[4,this.persistence.setDatabaseDeletedListener((function(){return o.__awaiter(c,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return[4,this.terminate()];case 1:return e.sent(),[2]}}))}))}))];case 5:return u.sent(),[2]}}))}))}))},e.prototype.handleCredentialChange=function(e){return this.asyncQueue.verifyOperationInProgress(),m("FirestoreClient","Credential Changed. Current user: "+e.uid),this.syncEngine.handleCredentialChange(e)},e.prototype.disableNetwork=function(){var e=this;return this.verifyNotTerminated(),this.asyncQueue.enqueue((function(){return e.syncEngine.disableNetwork()}))},e.prototype.terminate=function(){var e=this;return this.asyncQueue.enqueueAndInitiateShutdown((function(){return o.__awaiter(e,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.lruScheduler&&this.lruScheduler.stop(),[4,this.remoteStore.shutdown()];case 1:return e.sent(),[4,this.sharedClientState.shutdown()];case 2:return e.sent(),[4,this.persistence.shutdown()];case 3:return e.sent(),this.credentials.removeChangeListener(),[2]}}))}))}))},e.prototype.waitForPendingWrites=function(){var e=this;this.verifyNotTerminated();var t=new he;return this.asyncQueue.enqueueAndForget((function(){return e.syncEngine.registerPendingWritesCallback(t)})),t.promise},e.prototype.listen=function(e,t,n){var i=this;this.verifyNotTerminated();var r=new fr(e,t,n);return this.asyncQueue.enqueueAndForget((function(){return i.eventMgr.listen(r)})),r},e.prototype.unlisten=function(e){var t=this;this.clientTerminated||this.asyncQueue.enqueueAndForget((function(){return t.eventMgr.unlisten(e)}))},e.prototype.getDocumentFromLocalCache=function(e){var t=this;return this.verifyNotTerminated(),this.asyncQueue.enqueue((function(){return t.localStore.readDocument(e)})).then((function(e){if(e instanceof Ht)return e;if(e instanceof Yt)return null;throw new E(C.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")}))},e.prototype.getDocumentsFromLocalCache=function(e){var t=this;return this.verifyNotTerminated(),this.asyncQueue.enqueue((function(){return o.__awaiter(t,void 0,void 0,(function(){var t,n,i;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,this.localStore.executeQuery(e,!0)];case 1:return t=r.sent(),n=new vr(e,t.remoteKeys),i=n.computeDocChanges(t.documents),[2,n.applyChanges(i,!1).snapshot]}}))}))}))},e.prototype.write=function(e){var t=this;this.verifyNotTerminated();var n=new he;return this.asyncQueue.enqueueAndForget((function(){return t.syncEngine.write(e,n)})),n.promise},e.prototype.databaseId=function(){return this.databaseInfo.databaseId},e.prototype.addSnapshotsInSyncListener=function(e){var t=this;this.verifyNotTerminated(),this.asyncQueue.enqueueAndForget((function(){return t.eventMgr.addSnapsh
1otsInSyncListener(e),Promise.resolve()}))},e.prototype.removeSnapshotsInSyncListener=function(e){this.clientTerminated||this.eventMgr.removeSnapshotsInSyncListener(e)},Object.defineProperty(e.prototype,"clientTerminated",{get:function(){return this.asyncQueue.isShuttingDown},enumerable:!0,configurable:!0}),e.prototype.transaction=function(e){var t=this;this.verifyNotTerminated();var n=new he;return this.asyncQueue.enqueueAndForget((function(){return t.syncEngine.runTransaction(t.asyncQueue,e,n),Promise.resolve()})),n.promise},e}(),jr=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.scheduleEvent(this.observer.next,e)},e.prototype.error=function(e){this.scheduleEvent(this.observer.error,e)},e.prototype.mute=function(){this.muted=!0},e.prototype.scheduleEvent=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}(),Vr=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];P("FieldPath",e,"fieldNames",1);for(var n=0;n<e.length;++n)if(L("FieldPath","string",n,e[n]),0===e[n].length)throw new E(C.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ue(e)}return e.documentId=function(){return e._DOCUMENT_ID},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","FieldPath",1,t);return this._internalPath.isEqual(t._internalPath)},e._DOCUMENT_ID=new e(ue.keyField().canonicalString()),e}(),Hr=new RegExp("[~\\*/\\[\\]]"),Yr=function(){return function(e,t){this.user=t,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+e}}(),Br=function(){function e(){this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e){_(!this.changeListener,"Can only call setChangeListener() once."),this.changeListener=e,e(Er.UNAUTHENTICATED)},e.prototype.removeChangeListener=function(){_(null!==this.changeListener,"removeChangeListener() when no listener registered"),this.changeListener=null},e}(),Gr=function(){function e(e){var t=this;this.tokenListener=null,this.currentUser=Er.UNAUTHENTICATED,this.receivedInitialUser=!1,this.tokenCounter=0,this.changeListener=null,this.forceRefresh=!1,this.tokenListener=function(){t.tokenCounter++,t.currentUser=t.getUser(),t.receivedInitialUser=!0,t.changeListener&&t.changeListener(t.currentUser)},this.tokenCounter=0,this.auth=e.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.tokenListener):(this.tokenListener(null),e.get().then((function(e){t.auth=e,t.tokenListener&&t.auth.addAuthTokenListener(t.tokenListener)}),(function(){})))}return e.prototype.getToken=function(){var e=this;_(null!=this.tokenListener,"getToken cannot be called after listener removed.");var t=this.tokenCounter,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(e.tokenCounter!==t)throw new E(C.ABORTED,"getToken aborted due to token change.");return n?(_("string"==typeof n.accessToken,"Invalid tokenData returned from getToken():"+n),new Yr(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype.invalidateToken=function(){this.forceRefresh=!0},e.prototype.setChangeListener=function(e){_(!this.changeListener,"Can only call setChangeListener() once."),this.changeListener=e,this.receivedInitialUser&&e(this.currentUser)},e.prototype.removeChangeListener=function(){_(null!=this.tokenListener,"removeChangeListener() called twice"),_(null!==this.changeListener,"removeChangeListener() called when no listener registered"),this.auth&&this.auth.removeAuthTokenListener(this.tokenListener),this.tokenListener=null,this.changeListener=null},e.prototype.getUser=function(){var e=this.auth&&this.auth.getUid();return _(null===e||"string"==typeof e,"Received invalid UID: "+e),new Er(e)},e}(),Wr=function(){function e(e,t){this.gapi=e,this.sessionIndex=t,this.type="FirstParty",this.user=Er.FIRST_PARTY}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){var e={"X-Goog-AuthUser":this.sessionIndex},t=this.gapi.auth.getAuthHeaderValueForFirstParty([]);return t&&(e.Authorization=t),e},enumerable:!0,configurable:!0}),e}(),Ur=function(){function e(e,t){this.gapi=e,this.sessionIndex=t}return e.prototype.getToken=function(){return Promise.resolve(new Wr(this.gapi,this.sessionIndex))},e.prototype.setChangeListener=function(e){e(Er.FIRST_PARTY)},e.prototype.removeChangeListener=function(){},e.prototype.invalidateToken=function(){},e}();function zr(e){if(!e)return new Br;switch(e.type){case"gapi":var t=e.client;return _(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty),"unexpected gapi interface"),new Ur(t,e.sessionIndex||"0");case"provider":return e.client;default:throw new E(C.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invali
1d credential type")}}function qr(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,i=0,r=["next","error","complete"];i<r.length;i++){var o=r[i];if(o in n&&"function"==typeof n[o])return!0}return!1}(e)}var Kr=function(){function e(e){this._methodName=e}return e.delete=function(){return I("FieldValue.delete",arguments),$r.instance},e.serverTimestamp=function(){return I("FieldValue.serverTimestamp",arguments),Qr.instance},e.arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return M("FieldValue.arrayUnion",arguments,1),new Xr(e)},e.arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return M("FieldValue.arrayRemove",arguments,1),new Jr(e)},e.increment=function(e){return L("FieldValue.increment","number",1,e),R("FieldValue.increment",arguments,1),new Zr(e)},e.prototype.isEqual=function(e){return this===e},e}(),$r=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return o.__extends(t,e),t.instance=new t,t}(Kr),Qr=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return o.__extends(t,e),t.instance=new t,t}(Kr),Xr=function(e){function t(t){var n=e.call(this,"FieldValue.arrayUnion")||this;return n._elements=t,n}return o.__extends(t,e),t}(Kr),Jr=function(e){function t(t){var n=e.call(this,"FieldValue.arrayRemove")||this;return n._elements=t,n}return o.__extends(t,e),t}(Kr),Zr=function(e){function t(t){var n=e.call(this,"FieldValue.increment")||this;return n._operand=t,n}return o.__extends(t,e),t}(Kr),eo=S(Kr,"Use FieldValue.<field>() instead."),to=/^__.*__$/,no=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[];return n.push(null!==this.fieldMask?new yt(e,this.data,this.fieldMask,t):new gt(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new vt(e,this.fieldTransforms)),n},e}(),io=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[new yt(e,this.data,this.fieldMask,t)];return this.fieldTransforms.length>0&&n.push(new vt(e,this.fieldTransforms)),n},e}(),ro=function(e){return e[e.Set=0]="Set",e[e.Update=1]="Update",e[e.MergeSet=2]="MergeSet",e[e.Argument=3]="Argument",e[e.ArrayArgument=4]="ArrayArgument",e}({});function oo(e){switch(e){case ro.Set:case ro.MergeSet:case ro.Update:return!0;case ro.Argument:case ro.ArrayArgument:return!1;default:throw v("Unexpected case for UserDataSource: "+e)}}var so=function(){function e(e,t,n,i,r,o){this.dataSource=e,this.methodName=t,this.path=n,this.arrayElement=i,void 0===r&&this.validatePath(),this.arrayElement=void 0!==i&&i,this.fieldTransforms=r||[],this.fieldMask=o||[]}return e.prototype.childContextForField=function(t){var n=null==this.path?null:this.path.child(t),i=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return i.validatePathSegment(t),i},e.prototype.childContextForFieldPath=function(t){var n=null==this.path?null:this.path.child(t),i=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return i.validatePath(),i},e.prototype.childContextForArray=function(t){return new e(this.dataSource,this.methodName,null,!0,this.fieldTransforms,this.fieldMask)},e.prototype.createError=function(e){var t=null===this.path||this.path.isEmpty()?"":" (found in field "+this.path.toString()+")";return new E(C.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))},e.prototype.validatePath=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.validatePathSegment(this.path.get(e))},e.prototype.validatePathSegment=function(e){if(0===e.length)throw this.createError("Document fields must not be empty");if(oo(this.dataSource)&&to.test(e))throw this.createError('Document fields cannot begin and end with "__"')},e}(),ao=function(){return function(e,t){this.databaseId=e,this.key=t}}(),lo=function(){function e(e){this.preConverter=e}return e.prototype.parseSetData=function(e,t){var n=new so(ro.Set,e,ue.EMPTY_PATH);uo("Data must be an object, but it was:",n,t);var i=this.parseData(t,n);return new no(i,null,n.fieldTransforms)},e.prototype.parseMergeData=function(e,t,n){var i=new so(ro.MergeSet,e,ue.EMPTY_PATH);uo("Data must be an object, but it was:",i,t);var r,o,s=this.parseData(t,i);if(n){for(var a=new xe(ue.comparator),l=0,c=n;l<c.length;l++){var u=c[l],d=void 0;if(u instanceof Vr)d=u._internalPath;else{if("string"!=typeof u)throw v("Expected stringOrFieldPath to be a string or a FieldPath");d=po(e,u)}if(!i.contains(d))throw new E(C.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");a=a.add(d)}r=ut.fromSet(a),o=i.fieldTransforms.filter((function(e){return r.covers(e.field)}))}else r=ut.fromArray(i.fieldMask),o=i.fieldTransforms;return new no(s,r,o)}
1,e.prototype.parseUpdateData=function(e,t){var n=this,i=new so(ro.Update,e,ue.EMPTY_PATH);uo("Data must be an object, but it was:",i,t);var r=new xe(ue.comparator),o=Ft.EMPTY;O(t,(function(t,s){var a=po(e,t),l=i.childContextForFieldPath(a);if((s=n.runPreConverter(s,l))instanceof $r)r=r.add(a);else{var c=n.parseData(s,l);null!=c&&(r=r.add(a),o=o.set(a,c))}}));var s=ut.fromSet(r);return new io(o,s,i.fieldTransforms)},e.prototype.parseUpdateVarargs=function(e,t,n,i){var r=new so(ro.Update,e,ue.EMPTY_PATH),o=[ho(e,t)],s=[n];if(i.length%2!=0)throw new E(C.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var a=0;a<i.length;a+=2)o.push(ho(e,i[a])),s.push(i[a+1]);var l=new xe(ue.comparator),c=Ft.EMPTY;for(a=0;a<o.length;++a){var u=o[a],d=r.childContextForFieldPath(u),h=this.runPreConverter(s[a],d);if(h instanceof $r)l=l.add(u);else{var p=this.parseData(h,d);null!=p&&(l=l.add(u),c=c.set(u,p))}}var f=ut.fromSet(l);return new io(c,f,r.fieldTransforms)},e.prototype.parseQueryValue=function(e,t,n){void 0===n&&(n=!1);var i=new so(n?ro.ArrayArgument:ro.Argument,e,ue.EMPTY_PATH),r=this.parseData(t,i);return _(null!=r,"Parsed data should not be null."),_(0===i.fieldTransforms.length,"Field transforms should have been disallowed."),r},e.prototype.runPreConverter=function(e,t){try{return this.preConverter(e)}catch(i){var n=fo(i);throw t.createError(n)}},e.prototype.parseData=function(e,t){if(co(e=this.runPreConverter(e,t)))return uo("Unsupported field value:",t,e),this.parseObject(e,t);if(e instanceof Kr)return this.parseSentinelFieldValue(e,t),null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.arrayElement&&t.dataSource!==ro.ArrayArgument)throw t.createError("Nested arrays are not supported");return this.parseArray(e,t)}return this.parseScalarValue(e,t)},e.prototype.parseObject=function(e,t){var n=this,i=new Ce(X);return k(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):O(e,(function(e,r){var o=n.parseData(r,t.childContextForField(e));null!=o&&(i=i.insert(e,o))})),new Ft(i)},e.prototype.parseArray=function(e,t){for(var n=[],i=0,r=0,o=e;r<o.length;r++){var s=this.parseData(o[r],t.childContextForArray(i));null==s&&(s=Dt.INSTANCE),n.push(s),i++}return new jt(n)},e.prototype.parseSentinelFieldValue=function(e,t){if(!oo(t.dataSource))throw t.createError(e._methodName+"() can only be used with update() and set()");if(null===t.path)throw t.createError(e._methodName+"() is not currently supported inside arrays");if(e instanceof $r){if(t.dataSource!==ro.MergeSet)throw t.dataSource===ro.Update?(_(t.path.length>0,"FieldValue.delete() at the top level should have already been handled."),t.createError("FieldValue.delete() can only appear at the top level of your update data")):t.createError("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.fieldMask.push(t.path)}else if(e instanceof Qr)t.fieldTransforms.push(new dt(t.path,Ji.instance));else if(e instanceof Xr){var n=this.parseArrayTransformElements(e._methodName,e._elements),i=new Zi(n);t.fieldTransforms.push(new dt(t.path,i))}else if(e instanceof Jr){n=this.parseArrayTransformElements(e._methodName,e._elements);var r=new er(n);t.fieldTransforms.push(new dt(t.path,r))}else if(e instanceof Zr){var o=this.parseQueryValue("FieldValue.increment",e._operand),s=new tr(o);t.fieldTransforms.push(new dt(t.path,s))}else v("Unknown FieldValue type: "+e)},e.prototype.parseScalarValue=function(e,t){if(null===e)return Dt.INSTANCE;if("number"==typeof e)return Qn(e)?new kt(e):new It(e);if("boolean"==typeof e)return xt.of(e);if("string"==typeof e)return new Rt(e);if(e instanceof Date)return new Mt(be.fromDate(e));if(e instanceof be)return new Mt(new be(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)));if(e instanceof Xi)return new Nt(e);if(e instanceof ne)return new Pt(e);if(e instanceof ao)return new Lt(e.databaseId,e.key);throw t.createError("Unsupported field value: "+G(e))},e.prototype.parseArrayTransformElements=function(e,t){var n=this;
1return t.map((function(t,i){var r=new so(ro.Argument,e,ue.EMPTY_PATH);return n.parseData(t,r.childContextForArray(i))}))},e}();function co(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof be||e instanceof Xi||e instanceof ne||e instanceof ao||e instanceof Kr)}function uo(e,t,n){if(!co(n)||!B(n)){var i=G(n);throw t.createError("an object"===i?e+" a custom object":e+" "+i)}}function ho(e,t){if(t instanceof Vr)return t._internalPath;if("string"==typeof t)return po(e,t);throw new E(C.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function po(e,t){try{return function(e){if(e.search(Hr)>=0)throw new E(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Vr.bind.apply(Vr,o.__spreadArrays([void 0],e.split("."))))}catch(t){throw new E(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t)._internalPath}catch(i){var n=fo(i);throw new E(C.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function fo(e){return e instanceof Error?e.message:e.toString()}var mo=Pn.COLLECTION_DISABLED,go=function(){function e(e){if(void 0===e.host){if(void 0!==e.ssl)throw new E(C.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else F("settings","non-empty string","host",e.host),this.host=e.host,j("settings","boolean","ssl",e.ssl),this.ssl=x(e.ssl,!0);if(U("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),j("settings","object","credentials",e.credentials),this.credentials=e.credentials,j("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),!0===e.timestampsInSnapshots?g("\n  The timestampsInSnapshots setting now defaults to true and you no\n  longer need to explicitly set it. In a future release, the setting\n  will be removed entirely and so it is recommended that you remove it\n  from your firestore.settings() call now."):!1===e.timestampsInSnapshots&&g("\n  The timestampsInSnapshots setting will soon be removed. YOU MUST UPDATE\n  YOUR CODE.\n\n  To hide this warning, stop using the timestampsInSnapshots setting in your\n  firestore.settings({ ... }) call.\n\n  Once you remove the setting, Timestamps stored in Cloud Firestore will be\n  read back as Firebase Timestamp objects instead of as system Date objects.\n  So you will also need to update code expecting a Date to instead expect a\n  Timestamp. For example:\n\n  // Old:\n  const date = snapshot.get('created_at');\n  // New:\n  const timestamp = snapshot.get('created_at'); const date =\n  timestamp.toDate();\n\n  Please audit all existing usages of Date when you enable the new\n  behavior."),this.timestampsInSnapshots=x(e.timestampsInSnapshots,!0),j("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=Pn.DEFAULT_CACHE_SIZE_BYTES;else{if(e.cacheSizeBytes!==mo&&e.cacheSizeBytes<Pn.MINIMUM_CACHE_SIZE_BYTES)throw new E(C.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Pn.MINIMUM_CACHE_SIZE_BYTES);this.cacheSizeBytes=e.cacheSizeBytes}j("settings","boolean","experimentalForceLongPolling",e.experimentalForceLongPolling),this.forceLongPolling=void 0!==e.experimentalForceLongPolling&&e.experimentalForceLongPolling}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.forceLongPolling===e.forceLongPolling},e}(),yo=function(){function e(t,n){var i=this;if(this._firebaseApp=null,this._queue=new me,this.INTERNAL={delete:function(){return o.__awaiter(i,void 0,void 0,(function(){return o.__generator(this,(function(e){switch(e.label){case 0:return this.ensureClientConfigured(),[4,this._firestoreClient.terminate()];case 1:return e.sent(),[2]}}))}))}},"object"==typeof t.options){var r=t;this._firebaseApp=r,this._databaseId=e.databaseIdFromApp(r),this._persistenceKey=r.name,this._credentials=new Gr(n)}else{var s=t;if(!s.projectId)throw new E(C.INVALID_ARGUMENT,"Must provide projectId");this._databaseId=new oe(s.projectId,s.database),this._persistenceKey="[DEFAULT]",this._credentials=new Br}this._settings=new go({}),this._dataConverter=this.createDataConverter(this._databaseId)}return e.prototype.settings=function(e){if(R("Firestore.settings",arguments,1
1),L("Firestore.settings","object",1,e),D(e,"persistence"))throw new E(C.INVALID_ARGUMENT,'"persistence" is now specified with a separate call to firestore.enablePersistence().');var t=new go(e);if(this._firestoreClient&&!this._settings.isEqual(t))throw new E(C.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this._settings=t,void 0!==t.credentials&&(this._credentials=zr(t.credentials))},e.prototype.enableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.enableNetwork()},e.prototype.disableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.disableNetwork()},e.prototype.enablePersistence=function(e){if(this._firestoreClient)throw new E(C.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var t=!1;return e&&(void 0!==e.experimentalTabSynchronization&&g("The 'experimentalTabSynchronization' setting has been renamed to 'synchronizeTabs'. In a future release, the setting will be removed and it is recommended that you update your firestore.enablePersistence() call to use 'synchronizeTabs'."),t=x(void 0!==e.synchronizeTabs?e.synchronizeTabs:e.experimentalTabSynchronization,!1)),this.configureClient(new Lr(this._settings.cacheSizeBytes,t))},e.prototype.clearPersistence=function(){var e=this,t=Hn.buildStoragePrefix(this.makeDatabaseInfo()),n=new he;return this._queue.enqueueAndForgetEvenAfterShutdown((function(){return o.__awaiter(e,void 0,void 0,(function(){var e;return o.__generator(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),void 0!==this._firestoreClient&&!this._firestoreClient.clientTerminated)throw new E(C.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return[4,Hn.clearPersistence(t)];case 1:return i.sent(),n.resolve(),[3,3];case 2:return e=i.sent(),n.reject(e),[3,3];case 3:return[2]}}
1))}))})),n.promise},e.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(e.prototype,"_isTerminated",{get:function(){return this.ensureClientConfigured(),this._firestoreClient.clientTerminated},enumerable:!0,configurable:!0}),e.prototype.waitForPendingWrites=function(){return this.ensureClientConfigured(),this._firestoreClient.waitForPendingWrites()},e.prototype.onSnapshotsInSync=function(e){return this.ensureClientConfigured(),qr(e)?this.onSnapshotsInSyncInternal(e):(L("Firestore.onSnapshotsInSync","function",1,e),this.onSnapshotsInSyncInternal({next:e}))},e.prototype.onSnapshotsInSyncInternal=function(e){var t=this,n=new jr({next:function(){e.next&&e.next()},error:function(e){throw v("Uncaught Error in onSnapshotsInSync")}});return this._firestoreClient.addSnapshotsInSyncListener(n),function(){n.mute(),t._firestoreClient.removeSnapshotsInSyncListener(n)}},e.prototype.ensureClientConfigured=function(){return this._firestoreClient||this.configureClient(new Nr),this._firestoreClient},e.prototype.makeDatabaseInfo=function(){return new re(this._databaseId,this._persistenceKey,this._settings.host,this._settings.ssl,this._settings.forceLongPolling)},e.prototype.configureClient=function(e){_(!!this._settings.host,"FirestoreSettings.host is not set"),_(!this._firestoreClient,"configureClient() called multiple times");var t=this.makeDatabaseInfo();return this._firestoreClient=new Fr(b.getPlatform(),t,this._credentials,this._queue),this._firestoreClient.start(e)},e.prototype.createDataConverter=function(e){return new lo((function(t){if(t instanceof bo){var n=e,i=t.firestore._databaseId;if(!i.isEqual(n))throw new E(C.INVALID_ARGUMENT,"Document reference is for database "+i.projectId+"/"+i.database+" but should be for database "+n.projectId+"/"+n.database);return new ao(e,t._key)}return t}))},e.databaseIdFromApp=function(e){var t=e.options;if(!D(t,"projectId"))throw new E(C.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var n=t.projectId;if(!n||"string"!=typeof n)throw new E(C.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new oe(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this._firebaseApp)throw new E(C.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._firebaseApp},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){return R("Firestore.collection",arguments,1),L("Firestore.collection","non-empty string",1,e),this.ensureClientConfigured(),new xo(le.fromString(e),this)},e.prototype.doc=function(e){return R("Firestore.doc",arguments,1),L("Firestore.doc","non-empty string",1,e),this.ensureClientConfigured(),bo.forPath(le.fromString(e),this)},e.prototype.collectionGroup=function(e){if(R("Firestore.collectionGroup",arguments,1),L("Firestore.collectionGroup","non-empty string",1,e),e.indexOf("/")>=0)throw new E(C.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.ensureClientConfigured(),new So(new Zn(le.EMPTY_PATH,e),this)},e.prototype.runTransaction=function(e){var t=this;return R("Firestore.runTransaction",arguments,1),L("Firestore.runTransaction","function",1,e),this.ensureClientConfigured().transaction((function(n){return e(new vo(t,n))}))},e.prototype.batch=function(){return this.ensureClientConfigured(),new _o(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(p()){case h.DEBUG:return"debug";case h.ERROR:return"error";case h.SILENT:return"silent";default:return v("Unknown log level: "+p())}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(R("Firestore.setLogLevel",arguments,1),L("Firestore.setLogLevel","non-empty string",1,e),e){case"debug":f(h.DEBUG);break;case"error":f(h.ERROR);break;case"silent":f(h.SILENT);break;default:throw new E(C.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype._areTimestampsInSnapshotsEnabled=function(){return this._settings.timestampsInSnapshots},e}(),vo=function(){function e(e,t){this._firestore=e,this._transaction=t}return e.prototype.get=function(e){var t=this;
1R("Transaction.get",arguments,1);var n=Io("Transaction.get",e,this._firestore);return this._transaction.lookup([n._key]).then((function(e){if(!e||1!==e.length)return v("Mismatch in docs returned from document lookup.");var i=e[0];if(i instanceof Yt)return new Co(t._firestore,n._key,null,!1,!1,n._converter);if(i instanceof Ht)return new Co(t._firestore,n._key,i,!1,!1,n._converter);throw v("BatchGetDocumentsRequest returned unexpected document type: "+i.constructor.name)}))},e.prototype.set=function(e,t,n){A("Transaction.set",arguments,2,3);var i=Io("Transaction.set",e,this._firestore);n=To("Transaction.set",n);var r=Mo(i._converter,t,"Transaction.set"),o=r[0],s=r[1],a=n.merge||n.mergeFields?this._firestore._dataConverter.parseMergeData(s,o,n.mergeFields):this._firestore._dataConverter.parseSetData(s,o);return this._transaction.set(i._key,a),this},e.prototype.update=function(e,t,n){for(var i,r,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return"string"==typeof t||t instanceof Vr?(M("Transaction.update",arguments,3),i=Io("Transaction.update",e,this._firestore),r=this._firestore._dataConverter.parseUpdateVarargs("Transaction.update",t,n,o)):(R("Transaction.update",arguments,2),i=Io("Transaction.update",e,this._firestore),r=this._firestore._dataConverter.parseUpdateData("Transaction.update",t)),this._transaction.update(i._key,r),this},e.prototype.delete=function(e){R("Transaction.delete",arguments,1);var t=Io("Transaction.delete",e,this._firestore);return this._transaction.delete(t._key),this},e}(),_o=function(){function e(e){this._firestore=e,this._mutations=[],this._committed=!1}return e.prototype.set=function(e,t,n){A("WriteBatch.set",arguments,2,3),this.verifyNotCommitted();var i=Io("WriteBatch.set",e,this._firestore);n=To("WriteBatch.set",n);var r=Mo(i._converter,t,"WriteBatch.set"),o=r[0],s=r[1],a=n.merge||n.mergeFields?this._firestore._dataConverter.parseMergeData(s,o,n.mergeFields):this._firestore._dataConverter.parseSetData(s,o);return this._mutations=this._mutations.concat(a.toMutations(i._key,ft.NONE)),this},e.prototype.update=function(e,t,n){for(var i,r,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return this.verifyNotCommitted(),"string"==typeof t||t instanceof Vr?(M("WriteBatch.update",arguments,3),i=Io("WriteBatch.update",e,this._firestore),r=this._firestore._dataConverter.parseUpdateVarargs("WriteBatch.update",t,n,o)):(R("WriteBatch.update",arguments,2),i=Io("WriteBatch.update",e,this._firestore),r=this._firestore._dataConverter.parseUpdateData("WriteBatch.update",t)),this._mutations=this._mutations.concat(r.toMutations(i._key,ft.exists(!0))),this},e.prototype.delete=function(e){R("WriteBatch.delete",arguments,1),this.verifyNotCommitted();var t=Io("WriteBatch.delete",e,this._firestore);return this._mutations=this._mutations.concat(new _t(t._key,ft.NONE)),this},e.prototype.commit=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.verifyNotCommitted(),this._committed=!0,this._mutations.length>0?[2,this._firestore.ensureClientConfigured().write(this._mutations)]:[2]}))}))},e.prototype.verifyNotCommitted=function(){if(this._committed)throw new E(C.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),bo=function(){function e(e,t,n){this._key=e,this.firestore=t,this._converter=n,this._firestoreClient=this.firestore.ensureClientConfigured()}return e.forPath=function(t,n,i){if(t.length%2!=0)throw new E(C.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(new de(t),n,i)},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new xo(this._key.path.popLast(),this.firestore,this._converter)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(R("DocumentReference.collection",arguments,1
1),L("DocumentReference.collection","non-empty string",1,e),!e)throw new E(C.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=le.fromString(e);return new xo(this._key.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._key.isEqual(t._key)&&this._converter===t._converter},e.prototype.set=function(e,t){A("DocumentReference.set",arguments,1,2),t=To("DocumentReference.set",t);var n=Mo(this._converter,e,"DocumentReference.set"),i=n[0],r=n[1],o=t.merge||t.mergeFields?this.firestore._dataConverter.parseMergeData(r,i,t.mergeFields):this.firestore._dataConverter.parseSetData(r,i);return this._firestoreClient.write(o.toMutations(this._key,ft.NONE))},e.prototype.update=function(e,t){for(var n,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return"string"==typeof e||e instanceof Vr?(M("DocumentReference.update",arguments,2),n=this.firestore._dataConverter.parseUpdateVarargs("DocumentReference.update",e,t,i)):(R("DocumentReference.update",arguments,1),n=this.firestore._dataConverter.parseUpdateData("DocumentReference.update",e)),this._firestoreClient.write(n.toMutations(this._key,ft.exists(!0)))},e.prototype.delete=function(){return R("DocumentReference.delete",arguments,0),this._firestoreClient.write([new _t(this._key,ft.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];A("DocumentReference.onSnapshot",arguments,1,4);var n,i={includeMetadataChanges:!1},r=0;"object"!=typeof e[r]||qr(e[r])||(U("DocumentReference.onSnapshot",i=e[r],["includeMetadataChanges"]),j("DocumentReference.onSnapshot","boolean","includeMetadataChanges",i.includeMetadataChanges),r++);var o={includeMetadataChanges:i.includeMetadataChanges};return qr(e[r])?n=e[r]:(L("DocumentReference.onSnapshot","function",r,e[r]),N("DocumentReference.onSnapshot","function",r+1,e[r+1]),N("DocumentReference.onSnapshot","function",r+2,e[r+2]),n={next:e[r],error:e[r+1],complete:e[r+2]}),this.onSnapshotInternal(o,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,i=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(i=t.error.bind(t));var r=new jr({next:function(e){if(t.next){_(e.docs.size<=1,"Too many documents returned on a document query");var i=e.docs.get(n._key);t.next(new Co(n.firestore,n._key,i,e.fromCache,e.hasPendingWrites,n._converter))}},error:i}),o=this._firestoreClient.listen(Zn.atPath(this._key.path),r,e);return function(){r.mute(),n._firestoreClient.unlisten(o)}},e.prototype.get=function(e){var t=this;return A("DocumentReference.get",arguments,0,1),ko("DocumentReference.get",e),new Promise((function(n,i){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentFromLocalCache(t._key).then((function(e){n(new Co(t.firestore,t._key,e,!0,e instanceof Ht&&e.hasLocalMutations,t._converter))}),i):t.getViaSnapshotListener(n,i,e)}))},e.prototype.getViaSnapshotListener=function(e,t,n){var i=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(r){i(),!r.exists&&r.metadata.fromCache?t(new E(C.UNAVAILABLE,"Failed to get document because the client is offline.")):r.exists&&r.metadata.fromCache&&n&&"server"===n.source?t(new E(C.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):e(r)},error:t})},e.prototype.withConverter=function(t){return new e(this._key,this.firestore,t)},e}(),wo=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),Co=function(){function e(e,t,n,i,r,o){this._firestore=e,this._key=t,this._document=n,this._fromCache=i,this._hasPendingWrites=r,this._converter=o}return e.prototype.data=function(e){if(A("DocumentSnapshot.data",arguments,0,1),e=Oo("DocumentSnapshot.data",e),this._document){if(this._converter){var t=new Eo(this._firestore,this._key,this._document,this._fromCache,this._hasPendingWrites);return this._converter.fromFirestore(t,e)}return this.toJSObject(this._document.data(),Et.fromSnapshotOptions(e,this._firestore._areTimestampsInSnapshotsEnabled()))}},e.prototype.get=function(e,t){if(A("DocumentSnapshot.get",arguments,1,2),t=Oo("DocumentSnapshot.get",t),this._document){var n=this._document.data().field(ho("DocumentSnapshot.get",e));if(null!==n)return this.toJSValue(n,Et.fromSnapshotOptions(t,this._firestore._areTimestampsInSnapshotsEnabled()))}},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new bo(this._key,this._firestore,this._converter)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this._document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new wo(this._hasPendingWrites,this._fromCache)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","DocumentSnapshot",1,t);return this._firestore===t._firestore&&this._fromCache===t._fromCache&&this._key.isEqual(t._key)&&(null===this._document?null===t._document:this._document.isEqual(t._document))&&this._converter===t._converter},e.prototype.toJSObject=function(e,t){var n=this,i={};return e.forEach((function(e,r){i[e]=n.toJSValue(r,t)})),i},e.prototype.toJSValue=function(e,t){if(e instanceof Ft)return this.toJSObject(e,t);if(e instanceof jt)return this.toJSArray(e,t);if(e instanceof Lt){var n=e.value(t),i=this._firestore.ensureClientConfigured().databaseId();return e.databaseId.isEqual(i)||g("Document "+this._key.path+" contains a document reference within a different database ("+e.databaseId.projectId+"/"+e.databaseId.database+") which is not supported. It will be treated as a reference in the current database ("+i.projectId+"/"+i.database+") instead."),new bo(n,this._firestore,this._converter)}return e.value(t)},e.prototype.toJSArray=function(e,t){var n=this;return e.internalValue.map((function(e){return n.toJSValue(e,t)}))},e}(),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.data=function(t){var n=e.prototype.data.call(this,t);return _(void 0!==n,"Document in a QueryDocumentSnapshot should exist"),n},t}(Co),So=function(){function e(e,t,n){this._query=e,this.firestore=t,this._converter=n}
1return e.prototype.where=function(t,n,i){R("Query.where",arguments,3),W("Query.where",3,i);var r,o=["<","<=","==",">=",">","array-contains","in","array-contains-any"];H("Query.where",o,2,n);var s=ho("Query.where",t),a=ti.fromString(n);if(s.isKeyField()){if(a===ti.ARRAY_CONTAINS||a===ti.ARRAY_CONTAINS_ANY)throw new E(C.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+a.toString()+"' queries on FieldPath.documentId().");if(a===ti.IN){this.validateDisjunctiveFilterElements(i,a);for(var l=[],c=0,u=i;c<u.length;c++){var d=u[c];l.push(this.parseDocumentIdValue(d))}r=new jt(l)}else r=this.parseDocumentIdValue(i)}else a!==ti.IN&&a!==ti.ARRAY_CONTAINS_ANY||this.validateDisjunctiveFilterElements(i,a),r=this.firestore._dataConverter.parseQueryValue("Query.where",i,a===ti.IN);var h=ni.create(s,a,r);return this.validateNewFilter(h),new e(this._query.addFilter(h),this.firestore,this._converter)},e.prototype.orderBy=function(t,n){var i;if(A("Query.orderBy",arguments,1,2),N("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)i=li.ASCENDING;else{if("desc"!==n)throw new E(C.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");i=li.DESCENDING}if(null!==this._query.startAt)throw new E(C.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this._query.endAt)throw new E(C.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var r=ho("Query.orderBy",t),o=new ui(r,i);return this.validateNewOrderBy(o),new e(this._query.addOrderBy(o),this.firestore,this._converter)},e.prototype.limit=function(t){return R("Query.limit",arguments,1),L("Query.limit","number",1,t),q("Query.limit",1,t),new e(this._query.withLimitToFirst(t),this.firestore,this._converter)},e.prototype.limitToLast=function(t){return R("Query.limitToLast",arguments,1),L("Query.limitToLast","number",1,t),q("Query.limitToLast",1,t),new e(this._query.withLimitToLast(t),this.firestore,this._converter)},e.prototype.startAt=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];M("Query.startAt",arguments,1);var r=this.boundFromDocOrFields("Query.startAt",t,n,!0);return new e(this._query.withStartAt(r),this.firestore,this._converter)},e.prototype.startAfter=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];M("Query.startAfter",arguments,1);var r=this.boundFromDocOrFields("Query.startAfter",t,n,!1);return new e(this._query.withStartAt(r),this.firestore,this._converter)},e.prototype.endBefore=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];M("Query.endBefore",arguments,1);var r=this.boundFromDocOrFields("Query.endBefore",t,n,!0);return new e(this._query.withEndAt(r),this.firestore,this._converter)},e.prototype.endAt=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];M("Query.endAt",arguments,1);var r=this.boundFromDocOrFields("Query.endAt",t,n,!1);return new e(this._query.withEndAt(r),this.firestore,this._converter)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","Query",1,t);return this.firestore===t.firestore&&this._query.isEqual(t._query)},e.prototype.withConverter=function(t){return new e(this._query,this.firestore,t)},e.prototype.boundFromDocOrFields=function(e,t,n,i){if(W(e,1,t),t instanceof Co){if(n.length>0)throw new E(C.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var r=t;if(!r.exists)throw new E(C.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.boundFromDocument(e,r._document,i)}var o=[t].concat(n);return this.boundFromFields(e,o,i)},e.prototype.boundFromDocument=function(e,t,n){for(var i=[],r=0,o=this._query.orderBy;r<o.length;r++){var s=o[r];if(s.field.isKeyField())i.push(new Lt(this.firestore._databaseId,t.key));else{var a=t.field(s.field);if(a instanceof At)throw new E(C.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+s.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===a){var l=s.field.canonicalString();throw new E(C.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}i.push(a)}}return new ci(i,n)},e.prototype.boundFromFields=function(e,t,n){var i=this._query.explicitOrderBy;if(t.length>i.length)throw new E(C.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var r=[],o=0;o<t.length;o++){var s=t[o];
1if(i[o].field.isKeyField()){if("string"!=typeof s)throw new E(C.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof s);if(!this._query.isCollectionGroupQuery()&&-1!==s.indexOf("/"))throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+e+"() must be a plain document ID, but '"+s+"' contains a slash.");var a=this._query.path.child(le.fromString(s));if(!de.isDocumentKey(a))throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+e+"() must result in a valid document path, but '"+a+"' is not because it contains an odd number of segments.");var l=new de(a);r.push(new Lt(this.firestore._databaseId,l))}else{var c=this.firestore._dataConverter.parseQueryValue(e,s);r.push(c)}}return new ci(r,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];A("Query.onSnapshot",arguments,1,4);var n,i={},r=0;return"object"!=typeof e[r]||qr(e[r])||(U("Query.onSnapshot",i=e[r],["includeMetadataChanges"]),j("Query.onSnapshot","boolean","includeMetadataChanges",i.includeMetadataChanges),r++),qr(e[r])?n=e[r]:(L("Query.onSnapshot","function",r,e[r]),N("Query.onSnapshot","function",r+1,e[r+1]),N("Query.onSnapshot","function",r+2,e[r+2]),n={next:e[r],error:e[r+1],complete:e[r+2]}),this.validateHasExplicitOrderByForLimitToLast(this._query),this.onSnapshotInternal(i,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,i=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(i=t.error.bind(t));var r=new jr({next:function(e){t.next&&t.next(new Do(n.firestore,n._query,e,n._converter))},error:i}),o=this.firestore.ensureClientConfigured(),s=o.listen(this._query,r,e);return function(){r.mute(),o.unlisten(s)}},e.prototype.validateHasExplicitOrderByForLimitToLast=function(e){if(e.hasLimitToLast()&&0===e.explicitOrderBy.length)throw new E(C.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},e.prototype.get=function(e){var t=this;return A("Query.get",arguments,0,1),ko("Query.get",e),this.validateHasExplicitOrderByForLimitToLast(this._query),new Promise((function(n,i){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentsFromLocalCache(t._query).then((function(e){n(new Do(t.firestore,t._query,e,t._converter))}),i):t.getViaSnapshotListener(n,i,e)}))},e.prototype.getViaSnapshotListener=function(e,t,n){var i=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(r){i(),r.metadata.fromCache&&n&&"server"===n.source?t(new E(C.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):e(r)},error:t})},e.prototype.parseDocumentIdValue=function(e){if("string"==typeof e){if(""===e)throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this._query.isCollectionGroupQuery()&&-1!==e.indexOf("/"))throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+e+"' contains a '/' character.");var t=this._query.path.child(le.fromString(e));if(!de.isDocumentKey(t))throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+t+"' is not because it has an odd number of segments ("+t.length+").");return new Lt(this.firestore._databaseId,new de(t))}if(e instanceof bo)return new Lt(this.firestore._databaseId,e._key);throw new E(C.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+G(e)+".")},e.prototype.validateDisjunctiveFilterElements=function(e,t){if(!Array.isArray(e)||0===e.length)throw new E(C.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new E(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if(e.indexOf(null)>=0)throw new E(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter((function(e){return Number.isNaN(e)})).length>0)throw new E(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")},e.prototype.validateNewFilter=function(e){if(e instanceof ni){var t=[ti.ARRAY_CONTAINS,ti.ARRAY_CONTAINS_ANY],n=[ti.IN,ti.ARRAY_CONTAINS_ANY],i=t.indexOf(e.op)>=0,r=n.indexOf(e.op)>=0;if(e.isInequality()){var o=this._query.getInequalityFilterField();if(null!==o&&!o.isEqual(e.field))throw new E(C.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+e.field.toString()+"'");var s=this._query.getFirstOrderByField();null!==s&&this.validateOrderByAndInequalityMatch(e.field,s)}else if(r||i){var a=null;if(r&&(a=this._query.findFilterOperator(n)),null===a&&i&&(a=this._query.findFilterOperator(t)),null!=a)throw new E(C.INVALID_ARGUMENT,a===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+a.toString()+"' filters.")}}},e.prototype.validateNewOrderBy=function(e){if(null===this._query.getFirstOrderByField()){var t=this._query.getInequalityFilterField();null!==t&&this.validateOrderByAndInequalityMatch(t,e.field)}},e.prototype.validateOrderByAndInequalityMatch=function(e,t){if(!t.isEqual(e))throw new E(C.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),Do=function(){function e(e,t,n,i){this._firestore=e,this._originalQuery=t,this._snapshot=n,this._converter=i,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new wo(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;
1A("QuerySnapshot.forEach",arguments,1,2),L("QuerySnapshot.forEach","function",1,e),this._snapshot.docs.forEach((function(i){e.call(t,n.convertToDocumentImpl(i))}))},Object.defineProperty(e.prototype,"query",{get:function(){return new So(this._originalQuery,this._firestore,this._converter)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){e&&(U("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),j("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this._snapshot.excludesMetadataChanges)throw new E(C.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t,n,i){if(n.oldDocs.isEmpty()){var r,o=0;return n.docChanges.map((function(t){var s=new Eo(e,t.doc.key,t.doc,n.fromCache,n.mutatedKeys.has(t.doc.key),i);return _(t.type===Ni.Added,"Invalid event type for first snapshot"),_(!r||n.query.docComparator(r,t.doc)<0,"Got added events in wrong order"),r=t.doc,{type:"added",doc:s,oldIndex:-1,newIndex:o++}}))}var s=n.oldDocs;return n.docChanges.filter((function(e){return t||e.type!==Ni.Metadata})).map((function(t){var r=new Eo(e,t.doc.key,t.doc,n.fromCache,n.mutatedKeys.has(t.doc.key),i),o=-1,a=-1;return t.type!==Ni.Added&&(_((o=s.indexOf(t.doc.key))>=0,"Index for document not found"),s=s.delete(t.doc.key)),t.type!==Ni.Removed&&(a=(s=s.add(t.doc)).indexOf(t.doc.key)),{type:Ro(t.type),doc:r,oldIndex:o,newIndex:a}}))}(this._firestore,t,this._snapshot,this._converter),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e.prototype.isEqual=function(t){if(!(t instanceof e))throw z("isEqual","QuerySnapshot",1,t);return this._firestore===t._firestore&&this._originalQuery.isEqual(t._originalQuery)&&this._snapshot.isEqual(t._snapshot)&&this._converter===t._converter},e.prototype.convertToDocumentImpl=function(e){return new Eo(this._firestore,e.key,e,this.metadata.fromCache,this._snapshot.mutatedKeys.has(e.key),this._converter)},e}();o.__spreadArrays(["length","forEach","map"],"undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach((function(e){try{Object.defineProperty(Do.prototype.docChanges,e,{get:function(){return function(){throw new E(C.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(t){}}));var xo=function(e){function t(t,n,i){var r=e.call(this,Zn.atPath(t),n,i)||this;if(r._path=t,t.length%2!=1)throw new E(C.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.canonicalString()+" has "+t.length);return r}return o.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._query.path.popLast();return e.isEmpty()?null:new bo(new de(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(A("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=Q.newId()),L("CollectionReference.doc","non-empty string",1,e),""===e)throw new E(C.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=le.fromString(e);return bo.forPath(this._query.path.child(t),this.firestore,this._converter)},t.prototype.add=function(e){R("CollectionReference.add",arguments,1),L("CollectionReference.add","object",1,e);var t=this.doc();return t.set(e).then((function(){return t}))},t.prototype.withConverter=function(e){return new t(this._path,this.firestore,e)},t}(So);function To(e,t){if(void 0===t)return{merge:!1};if(U(e,t,["merge","mergeFields"]),j(e,"boolean","merge",t.merge),"mergeFields","a string or a FieldPath",void 0!==(n=t.mergeFields)&&function(e,t,n,i,r){if(!(i instanceof Array))throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires its mergeFields option to be an array, but it was: "+G(i));for(var o=0;o<i.length;++o)if(!r(i[o]))throw new E(C.INVALID_ARGUMENT,"Function "+e+"() requires all mergeFields elements to be a string or a FieldPath, but the value at index "+o+" was: "+G(i[o]))}(e,0,0,n,(function(e){return"string"==typeof e||e instanceof Vr})),void 0!==t.mergeFields&&void 0!==t.merge)throw new E(C.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');var n;return t}function Oo(e,t){return void 0===t?{}:(U(e,t,["serverTimestamps"]),V(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function ko(e,t){N(e,"object",1,t),t&&(U(e,t,["source"]),V(e,0,"source",t.source,["default","server","cache"]))}
1function Io(e,t,n){if(t instanceof bo){if(t.firestore!==n)throw new E(C.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw z(e,"DocumentReference",1,t)}function Ro(e){switch(e){case Ni.Added:return"added";case Ni.Modified:case Ni.Metadata:return"modified";case Ni.Removed:return"removed";default:return v("Unknown change type: "+e)}}function Mo(e,t,n){var i;return e?(i=e.toFirestore(t),n="toFirestore() in "+n):i=t,[i,n]}var Ao=S(yo,"Use firebase.firestore() instead."),Po=S(vo,"Use firebase.firestore().runTransaction() instead."),Lo=S(_o,"Use firebase.firestore().batch() instead."),No=S(bo,"Use firebase.firestore().doc() instead."),Fo=S(Co),jo=S(Eo),Vo=S(So),Ho=S(Do),Yo=S(xo,"Use firebase.firestore().collection() instead."),Bo={Firestore:Ao,GeoPoint:Xi,Timestamp:be,Blob:ie,Transaction:Po,WriteBatch:Lo,DocumentReference:No,DocumentSnapshot:Fo,Query:Vo,QueryDocumentSnapshot:jo,QuerySnapshot:Ho,CollectionReference:Yo,FieldPath:Vr,FieldValue:eo,setLogLevel:yo.setLogLevel,CACHE_SIZE_UNLIMITED:mo},Go=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.shutdown=function(){},e}(),Wo=function(){function e(){var e=this;this.networkAvailableListener=function(){return e.onNetworkAvailable()},this.networkUnavailableListener=function(){return e.onNetworkUnavailable()},this.callbacks=[],this.configureNetworkMonitoring()}return e.prototype.addCallback=function(e){this.callbacks.push(e)},e.prototype.shutdown=function(){window.removeEventListener("online",this.networkAvailableListener),window.removeEventListener("offline",this.networkUnavailableListener)},e.prototype.configureNetworkMonitoring=function(){window.addEventListener("online",this.networkAvailableListener),window.addEventListener("offline",this.networkUnavailableListener)},e.prototype.onNetworkAvailable=function(){m("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.callbacks;e<t.length;e++)(0,t[e])(0)},e.prototype.onNetworkUnavailable=function(){m("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.callbacks;e<t.length;e++)(0,t[e])(1)},e.isAvailable=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),Uo=function(){function e(e){this.sendFn=e.sendFn,this.closeFn=e.closeFn}return e.prototype.onOpen=function(e){_(!this.wrappedOnOpen,"Called onOpen on stream twice!"),this.wrappedOnOpen=e},e.prototype.onClose=function(e){_(!this.wrappedOnClose,"Called onClose on stream twice!"),this.wrappedOnClose=e},e.prototype.onMessage=function(e){_(!this.wrappedOnMessage,"Called onMessage on stream twice!"),this.wrappedOnMessage=e},e.prototype.close=function(){this.closeFn()},e.prototype.send=function(e){this.sendFn(e)},e.prototype.callOnOpen=function(){_(void 0!==this.wrappedOnOpen,"Cannot call onOpen because no callback was set"),this.wrappedOnOpen()},e.prototype.callOnClose=function(e){_(void 0!==this.wrappedOnClose,"Cannot call onClose because no callback was set"),this.wrappedOnClose(e)},e.prototype.callOnMessage=function(e){_(void 0!==this.wrappedOnMessage,"Cannot call onMessage because no callback was set"),this.wrappedOnMessage(e)},e}(),zo="Connection",qo=function(){return{BatchGetDocuments:"batchGet",Commit:"commit"}}(),Ko="gl-js/ fire/"+u,$o=function(){function e(e){this.databaseId=e.databaseId,this.baseUrl=(e.ssl?"https":"http")+"://"+e.host,this.forceLongPolling=e.forceLongPolling}return e.prototype.modifyHeadersForRequest=function(e,t){if(t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n]);e["X-Goog-Api-Client"]=Ko},e.prototype.invokeRPC=function(e,t,n){var i=this,r=this.makeUrl(e);return new Promise((function(s,a){var l=new c.XhrIo;l.listenOnce(c.EventType.COMPLETE,(function(){try{switch(l.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var t=l.getResponseJson();m(zo,"XHR received:",JSON.stringify(t)),s(t);break;case c.ErrorCode.TIMEOUT:m(zo,'RPC "'+e+'" timed out'),a(new E(C.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=l.getStatus();if(m(zo,'RPC "'+e+'" failed with status:',n,"response text:",l.getResponseText()),n>0){var i=l.getResponseJson().error;if(i&&i.status&&i.message){var r=(o=i.status.toLowerCase().replace("_","-"),Object.values(C).indexOf(o)>=0?o:C.UNKNOWN);a(new E(r,i.message))}else a(new E(C.UNKNOWN,"Server responded with status "+l.getStatus()))}else m(zo,'RPC "'+e+'" failed'),a(new E(C.UNAVAILABLE,"Connection failed."));break;default:v('RPC "'+e+'" failed with unanticipated webchannel error '+l.getLastErrorCode()+": "+l.getLastError()+", giving up.")}}finally{m(zo,'RPC "'+e+'" completed.')}var o}));var u=o.__assign({},t);delete u.database;var d=JSON.stringify(u);m(zo,"XHR sending: ",r+" "+d);var h={"Content-Type":"text/plain"};i.modifyHeadersForRequest(h,n),l.send(r,"POST",d,h,15)}))},e.prototype.invokeStreamingRPC=function(e,t,n){return this.invokeRPC(e,t,n)},e.prototype.openStream=function(e,t){var n=[this.baseUrl,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=c.createWebChannelTransport(),r={backgroundChannelTest:!0,httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.modifyHeadersForRequest(r.initMessageHeaders,t),a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(r.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");m(zo,"Creating WebChannel: "+o+" "+r);var s=i.createWebChannel(o,r),l=!1,u=!1,d=new Uo({sendFn:function(e){u?m(zo,"Not sending because WebChannel is closed:",e):(l||(m(zo,"Opening WebChannel transport."),s.open(),l=!0),m(zo,"WebChannel sending:",e),s.send(e))},closeFn:function(){return s.close()}}),h=function(e,t){s.listen(e,(function(e){try{t(e)}catch(n){setTimeout((function(){throw n}),0)}}))};return h(c.WebChannel.EventType.OPEN,(function(){u||m(zo,"WebChannel transport opened.")})),h(c.WebChannel.EventType.CLOSE,(function(){u||(u=!0,m(zo,"WebChannel transport closed"),d.callOnClose())})),h(c.WebChannel.EventType.ERROR,(function(e){u||(u=!0,m(zo,"WebChannel transport errored:",e),d.callOnClose(new E(C.UNAVAILABLE,"The operation could not be completed")))})),h(c.WebChannel.EventType.MESSAGE,(function(e){var t;if(!u){var n=e.data[0];_(!!n,"Got a webchannel message without data.");var i=n.error||(null===(t=n[0])||void 0===t?void 0:t.error);if(i){m(zo,"WebChannel received error:",i);var r=i.status,o=function(e){var t=Ri[e];if(void 0!==t)return Ai(t)}(r),a=i.message;void 0===o&&(o=C.INTERNAL,a="Unknown error status: "+r+" with message "+i.message),u=!0,d.callOnClose(new E(o,a)),s.close()}else m(zo,"WebChannel received:",n),d.callOnMessage(n)}})),setTimeout((function(){d.callOnOpen()}),0),d},e.prototype.makeUrl=function(e){var t=qo[e];return _(void 0!==t,"Unknown REST mapping for: "+e),this.baseUrl+"/v1/projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents:"+t},e}();function Qo(e){(function(e){e.INTERNAL.registerComponent(new l.Component("firestore",(function(e){var t=e.getProvider("app").getImmediate();return new yo(t,e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(function(e){_(e&&"object"==typeof e,"shallowCopy() expects object parameter.");var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(Bo)))})(e),e.registerVersion("@firebase/firestore","1.10.1")}b.setPlatform(new(function(){function e(){this.emptyByteString="",this.base64Available="undefined"!=typeof atob}return Object.defineProperty(e.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),e.prototype.loadConnection=function(e){return Promise.resolve(new $o(e))},e.prototype.newConnectivityMonitor=function(){return Wo.isAvailable()?new Wo:new Go},e.prototype.newSerializer=function(e){return new dr(e,{useProto3Json:!0})},e.prototype.formatJSON=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}())),Qo(r),t.registerFirestore=Qo},"7BjC":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7aV9":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n("wd/R"))},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("n6bG"),r=n("gRHU"),o=n("quSY"),s=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends o.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!e){this.destination=r.a;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[s.a](){return this}
1static create(e,t,n){const i=new c(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends c{constructor(e,t,n,o){let s;super(),this._parentSubscriber=e;let a=this;Object(i.a)(t)?s=t:t&&(s=t.next,n=t.error,o=t.complete,t!==r.a&&(a=Object.create(t),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8/+R":function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"}
1,relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0}
1,meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n("wd/R"))},"8LbN":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("9/Zf"),r=Object(i.g)(),o="Sentry Logger ",s=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(i.c)((function(){r.console.log(o+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(i.c)((function(){r.console.warn(o+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(i.c)((function(){r.console.error(o+"[Error]: "+e.join(" "))}))},e}();r.__SENTRY__=r.__SENTRY__||{};var a=r.__SENTRY__.logger||(r.__SENTRY__.logger=new s)},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"9/Zf":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"n",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"k",(function(){return v})),n.d(t,"f",(function(){return _}));var i=n("9AQC");function r(e,t){return e.require(t)}function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}n("+924");var s={};function a(){return o()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function l(){var e=a(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var i=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return i(n[0])+i(n[1])+i(n[2])+i(n[3])+i(n[4])+i(n[5])+i(n[6])+i(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return t?{host:t[4],path:t[5],protocol:t[2],relative:t[5]+(t[6]||"")+(t[8]||"")}:{}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function d(e){var t=a();if(!("console"in t))return e();var n=t.console,i={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(i[e]=n[e],n[e]=n[e].__sentry_original__)}));var r=e();
1return Object.keys(i).forEach((function(e){n[e]=i[e]})),r}function h(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function p(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(n){}}function f(){try{return document.location.href}catch(e){return""}}function m(e){try{for(var t=e,n=[],i=0,r=0,o=" > ".length,s=void 0;t&&i++<5&&!("html"===(s=g(t))||i>1&&r+n.length*o+s.length>=80);)n.push(s),r+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(a){return"<unknown>"}}function g(e){var t,n,r,o,s,a=e,l=[];if(!a||!a.tagName)return"";if(l.push(a.tagName.toLowerCase()),a.id&&l.push("#"+a.id),(t=a.className)&&Object(i.k)(t))for(n=t.split(/\s+/),s=0;s<n.length;s++)l.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)(o=a.getAttribute(r=c[s]))&&l.push("["+r+'="'+o+'"]');return l.join("")}function y(){return(new Date).getTime()/1e3}function v(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var i=Date.parse(""+t);return isNaN(i)?6e4:i-e}function _(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(t){return"<anonymous>"}}},"9AQC":function(e,t,n){"use strict";function i(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function r(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function s(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function a(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!=typeof Event&&m(e,Event)}function d(e){return"undefined"!=typeof Element&&m(e,Element)}function h(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function p(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(n){return!1}}n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return m}))},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},"A+xa":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n("wd/R"))},AQ68:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("wd/R"))},AvvY:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%
1d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n("wd/R"))},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()<this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()<e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n("wd/R"))},BVg3:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?o+(n||r?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?o+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"d\xf6gum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?o+"m\xe1nu\xf0ir":o+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?o+"m\xe1nu\xf0ur":o+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?o+(n||r?"\xe1r":"\xe1rum"):o+(n||r?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},ByF4:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Cfvw:function(e,t,n){"use strict";var i=n("HDdC"),r=n("SeVD"),o=n("quSY"),s=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new i.a(n=>{const i=new o.a;return i.add(t.schedule(()=>{const r=e[s.a]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(Object(c.a)(e))return function(e,t){return new i.a(n=>{const i=new o.a;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new o.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[l.a](),i.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())})))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}
1(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}n.d(t,"a",(function(){return d}))},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:6,doy:12}})}(n("wd/R"))},"D/JM":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0}
vendor: 5,875 bytes, line 1
1,meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},Dkky:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},DxQv:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Dzi0:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
1d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"E+lV":function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},EOgW:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n("wd/R"))},G0Uy:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".
1split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},HDdC:function(e,t,n){"use strict";var i=n("7o/Q"),r=n("2QA8"),o=n("gRHU"),s=n("kJWO"),a=n("mCNh"),l=n("2fFW");n.d(t,"a",(function(){return c}));let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[r.a])return e[r.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(a.add(s?s.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof i.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[s.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HP3h:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]}
1,r=function(e){return function(t,r,o,s){var a=n(t),l=i[e][n(t)];return 2===a&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},HR75:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i,r=n("9AQC");!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(i||(i={}));var o=function(){function e(e){var t=this;this._state=i.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(i.RESOLVED,e)},this._reject=function(e){t._setResult(i.REJECTED,e)},this._setResult=function(e,n){t._state===i.PENDING&&(Object(r.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){t._state!==i.PENDING&&(t._handlers.forEach(t._state===i.REJECTED?function(e){e.onrejected&&e.onrejected(t._value)}:function(e){e.onfulfilled&&e.onfulfilled(t._value)}),t._handlers=[])};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))}
1,e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,i){if(Array.isArray(t))if(0!==t.length){var r=t.length,o=[];t.forEach((function(t,s){e.resolve(t).then((function(e){o[s]=e,0==(r-=1)&&n(o)})).then(null,i)}))}else n([]);else i(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var i=this;return new e((function(e,r){i._attachHandler({onfulfilled:function(n){if(t)try{return void e(t(n))}catch(i){return void r(i)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(i){return void r(i)}else r(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,i){var r,o;return n.then((function(e){o=!1,r=e,t&&t()}),(function(e){o=!0,r=e,t&&t()})).then((function(){o?i(r):e(r)}))}))},e}()},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IBtZ:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_")},monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\u10e8\u10d8"},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n("wd/R"))},Iab2:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n
1)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,o,s){var a=r.URL||r.webkitURL,l=document.createElement("a");l.download=o=o||e.name||"download",l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):n(l.href)?t(e,o,s):i(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,a=/constructor/i.test(r.HTMLElement)||r.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&a)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var u=r.URL||r.webkitURL,d=u.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});r.saveAs=o.saveAs=o,e.exports=o})?i.apply(t,[]):i)||(e.exports=r)},"Ivi+":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n("wd/R"))},"JCF/":function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},JVSJ:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},JvlW:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_die
1n\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,s){var a=e+" ";return 1===e?a+n(0,t,o[0],s):t?a+(i(e)?r(o)[1]:r(o)[0]):s?a+r(o)[1]:a+(i(e)?r(o)[1]:r(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},"K/tc":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},KSF8:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n r\u1ed3i l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},KTz0:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},KjyA:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=n("mrSG"),r=n("HR75"),o=n("9AQC"),s=n("9/Zf"),a=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEac
1h((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,s){var a=this;return void 0===s&&(s=0),new r.a((function(r,l){var c=e[s];if(null===t||"function"!=typeof c)r(t);else{var u=c(i.__assign({},t),n);Object(o.m)(u)?u.then((function(t){return a._notifyEventProcessors(e,t,n,s+1).then(r)})).then(null,l):a._notifyEventProcessors(e,u,n,s+1).then(r).then(null,l)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=i.__assign({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=i.__assign({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=i.__assign({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=i.__assign({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=i.__assign({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=i.__spread(t._breadcrumbs),n._tags=i.__assign({},t._tags),n._extra=i.__assign({},t._extra),n._context=i.__assign({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=i.__spread(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=i.__assign({timestamp:Object(s.m)()},e);return this._breadcrumbs=void 0!==t&&t>=0?i.__spread(this._breadcrumbs,[n]).slice(-t):i.__spread(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=i.__assign({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=i.__assign({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=i.__assign({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=i.__assign({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._applyFingerprint(e),e.breadcrumbs=i.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(i.__spread(l(),this._eventProcessors),e,t)},e}();function l(){var e=Object(s.g)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function c(e){l().push(e)}},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",(function(){return i}))},L0o8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fXoL"),r=n("f7ga"),o=n("e30y"),s=n("aEEX"),a=n("Wkdn"),l=n("fXoL");t.AgGridAngular=function(){function e(e,t,n,o,s){this.viewContainerRef=t,this.angularFrameworkOverrides=n,this.frameworkComponentWrapper=o,this._componentFactoryResolver=s,this._initialised=!1,this._destroyed=!1,this._fullyReady=new r.Promise((function(e){e(!0)})),this.slaveGrids=void 0,this.alignedGrids=void 0,this.rowData=void 0,this.columnDefs=void 0,this.excelStyles=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.components=void 0,this.frameworkComponents=void 0,this.rowStyle=void 0,this.context=void 0,this.autoGroupColumnDef=void 0,this.groupColumnDef=void 0,this.localeText=void 0,this.icons=void 0,this.datasource=void 0,this.serverSideDatasource=void 0,this.viewportDatasource=void 0,this.groupRowRendererParams=void 0,this.aggFuncs=void 0,this.fullWidthCellRendererParams=void 0,this.defaultColGroupDef=void 0,this.defaultColDef=void 0,this.defaultExportParams=void 0,this.columnTypes=void 0,this.rowClassRules=void 0,this.detailGridOptions=void 0,this.detailCellRendererParams=void 0,this.loadingCellRendererParams=void 0,this.loadingOverlayComponentParams=void 0,this.noRowsOverlayComponentParams=void 0,this.popupParent=void 0,this.colResizeDefault=void 0,this.reduxStore=void 0,this.statusBar=void 0,this.sideBar=void 0,this.sortingOrder=void 0,this.rowClass=void 0,this.rowSelection=void 0,this.overlayLoadingTemplate=void 0,this.overlayNoRowsTemplate=void 0,this.quickFilterText=void 0,this.rowModelType=void 0,this.editType=void 0,this.domLayout=void 0,this.clipboardDeliminator=void 0,this.rowGroupPanelShow=void 0,this.multiSortKey=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotPanelShow=void 0,this.rowHeight=void 0,this.detailRowHeight=void 0,this.rowBuffer=void 0,this.colWidth=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.groupDefaultExpanded=void 0,this.minColWidth=void 0,this.maxColWidth=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.autoSizePadding=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.cacheOverflowSize=void 0,this.paginationPageSize=void 0,this.cacheBlockSize=void 0,this.infiniteInitialRowCount=void 0,this.scrollbarWidth=void 0,this.paginationStartPage=void 0,this.infiniteBlockSize=void 0,this.batchUpdateWaitMillis=void 0,this.blockLoadDebounceMillis=void 0,this.keepDetailRowsCount=void 0,this.undoRedoCellEditingLimit=void 0,this.localeTextFunc=void 0,this.groupRowInnerRenderer=void 0,this.groupRowInnerRendererFramework=void 0,this.dateComponent=void 0,this.dateComponentFramework=void 0,this.groupRowRenderer=void 0,this.groupRowRendererFramework=void 0,this.isExternalFilterPresent=void 0,this.getRowHeight=void 0,this.doesExternalFilterPass=void 0,this.getRowClass=void 0,this.getRowStyle=void 0,this.getRowClassRules=void 0,this.traverseNo
1de=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.processRowPostCreate=void 0,this.processCellForClipboard=void 0,this.getNodeChildDetails=void 0,this.groupRowAggNodes=void 0,this.getRowNodeId=void 0,this.isFullWidthCell=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererFramework=void 0,this.doesDataFlower=void 0,this.processSecondaryColDef=void 0,this.processSecondaryColGroupDef=void 0,this.getBusinessKeyForNode=void 0,this.sendToClipboard=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.getDetailRowData=void 0,this.processCellFromClipboard=void 0,this.getDocument=void 0,this.postProcessPopup=void 0,this.getChildCount=void 0,this.getDataPath=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererFramework=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentFramework=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentFramework=void 0,this.detailCellRenderer=void 0,this.detailCellRendererFramework=void 0,this.defaultGroupSortComparator=void 0,this.isRowMaster=void 0,this.isRowSelectable=void 0,this.postSort=void 0,this.processHeaderForClipboard=void 0,this.paginationNumberFormatter=void 0,this.processDataFromClipboard=void 0,this.get
1ServerSideGroupKey=void 0,this.isServerSideGroup=void 0,this.suppressKeyboardEvent=void 0,this.createChartContainer=void 0,this.processChartOptions=void 0,this.getChartToolbarItems=void 0,this.fillOperation=void 0,this.toolPanelSuppressRowGroups=void 0,this.toolPanelSuppressValues=void 0,this.toolPanelSuppressPivots=void 0,this.toolPanelSuppressPivotMode=void 0,this.toolPanelSuppressSideButtons=void 0,this.toolPanelSuppressColumnFilter=void 0,this.toolPanelSuppressColumnSelectAll=void 0,this.toolPanelSuppressColumnExpandAll=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.suppressRowClickSelection=void 0,this.suppressCellSelection=void 0,this.suppressHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debug=void 0,this.enableBrowserTooltips=void 0,this.enableColResize=void 0,this.enableCellExpressions=void 0,this.enableSorting=void 0,this.enableServerSideSorting=void 0,this.enableFilter=void 0,this.enableServerSideFilter=void 0,this.angularCompileRows=void 0,this.angularCompileFilters=void 0,this.angularCompileHeaders=void 0,this.groupSuppressAutoColumn=void 0,this.groupSelectsChildren=void 0,this.groupIncludeFooter=void 0,this.groupIncludeTotalFooter=void 0,this.groupUseEntireRow=void 0,this.groupSuppressRow=void 0,this.groupSuppressBlankHeader=void 0,this.forPrint=void 0,this.suppressMenuHide=void 0,this.rowDeselection=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.singleClickEdit=void 0,this.suppressLoadingOverlay=void 0,this.suppressNoRowsOverlay=void 0,this.suppressAutoSize=void 0,this.skipHeaderOnAutoSize=void 0,this.suppressParentsInRowNodes=void 0,this.showToolPanel=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressMovableColumns=void 0,this.suppressFieldDotNotation=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.suppressClearOnFillReduction=void 0,this.deltaSort=void 0,this.suppressTouch=void 0,this.suppressAsyncEvents=void 0,this.allowContextMenuWithControlKey=void 0,this.suppressContextMenu=void 0,this.suppressMenuFilterPanel=void 0,this.suppressMenuMainPanel=void 0,this.suppressMenuColumnPanel=void 0,this.rememberGroupStateWhenNewData=void 0,this.enableCellChangeFlash=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.suppressUseColIdForGroups=void 0,this.suppressCopyRowsToClipboard=void 0,this.copyHeadersToClipboard=void 0,this.pivotMode=void 0,this.suppressAggFuncInHeader=void 0,this.suppressColumnVirtualisation=void 0,this.suppressAggAtRootLevel=void 0,this.suppressFocusAfterRefresh=void 0,this.functionsPassive=void 0,this.functionsReadOnly=void 0,this.animateRows=void 0,this.groupSelectsFiltered=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.enableRtl=void 0,this.suppressClickEdit=void 0,this.rowDragManaged=void 0,this.suppressRowDrag=void 0,this.enableGroupEdit=void 0,this.embedFullWidthRows=void 0,this.deprecatedEmbedFullWidthRows=void 0,this.suppressTabbing=void 0,this.suppressPaginationPanel=void 0,this.floatingFilter=void 0,this.groupHideOpenParents=void 0,this.groupMultiAutoColumn=void 0,this.pagination=void 0,this.stopEditingWhenGridLosesFocus=void 0,this.paginationAutoPageSize=void 0,this.suppressScrollOnNewData=void 0,this.purgeClosedRowNodes=void 0,this.cacheQuickFilter=void 0,this.deltaRowDataMode=void 0,this.ensureDomOrder=void 0,this.accentedSort=void 0,this.pivotTotals=void 0,this.suppressChangeDetection=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAnimationFrame=void 0,this.suppressExcelExport=void 0,this.suppressCsvExport=void 0,this.treeData=void 0,this.masterDetail=void 0,this.suppressMultiRangeSelection=void 0,this.enterMovesDownAfterEdit=void 0,this.enterMovesDown=void 0,this.suppressPropertyNamesCheck=void 0,this.rowMultiSelectWithClick=void 0,this.contractColumnSelection=void 0,this.suppressEnterpriseResetOnNewColumns=void 0,this.enableOldSetFilterModel=void 0,this.suppressRowHoverHighlight=void 0,this.gridAutoHeight=void 0,this.suppressRowTransform=void 0,this.suppressClipboardPaste=void 0,this.serverSideSortingAlwaysResets=void 0,this.reactNext=void 0,this.suppressSetColumnStateEvents=void 0,this.enableCharts=void 0,this.deltaColumnMode=void 0,this.suppressMaintainUnsortedOrder=void 0,this.enableCellTextSelection=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.keepDetailRows=void 0,this.paginateChildRows=void 0,this.preventDefaultOnContextMenu=void 0,this.undoRedoCellEditing=void 0,this.allowDragFromColumnsToolPanel=void 0,this.columnEverythingChanged=new i.EventEmitter,this.newColumnsLoaded=new i.EventEmitter,this.columnPivotModeChanged=new i.EventEmitter,this.columnRowGroupChanged=new i.EventEmitter,this.expandOrCollapseAll=new i.EventEmitter,this.columnPivotChanged=new i.EventEmitter,this.gridColumnsChanged=new i.EventEmitter,this.columnValueChanged=new i.EventEmitter,this.columnMoved=new i.EventEmitter,this.columnVisible=new i.EventEmitter,this.columnPinned=new i.EventEmitter,this.columnGroupOpened=new i.EventEmitter,this.columnResized=new i.EventEmitter,this.displayedColumnsChanged=new i.EventEmitter,this.virtualColumnsChanged=new i.EventEmitter,this.rowGroupOpened=new i.EventEmitter,this.rowDataChanged=new i.EventEmitter,this.rowDataUpdated=new i.EventEmitter,this.pinnedRowDataChanged=new i.EventEmitter,this.rangeSelectionChanged=new i.EventEmitter,this.chartRangeSelectionChanged=new i.EventEmitter,this.chartOptionsChanged=new i.EventEmitter,this.toolPanelVisibleChanged=new i.EventEmitter,this.modelUpdated=new i.EventEmitter,this.pasteStart=new i.EventEmitter,this.pasteEnd=new i.EventEmitter,this.fillStart=new i.EventEmitter,this.fillEnd=new i.EventEmitter,this.cellClicked=new i.EventEmitter,this.cellDoubleClicked=new i.EventEmitter,this.cellMouseDown=new i.EventEmitter,this.cellContextMenu=new i.EventEmitter,this.cellValueChanged=new i.EventEmitter,this.rowValueChanged=new i.EventEmitter,this.cellFocused=new i.EventEmitter,this.rowSelected=new i.EventEmitter,this.selectionChanged=new i.EventEmitter,this.cellKeyDown=new i.EventEmitter,this.cellKeyPress=new i.EventEmitter,this.cellMouseOver=new i.EventEmitter,this.cellMouseOut=new i.EventEmitter,this.filterChanged=new i.EventEmitter,this.filterModified=new i.EventEmitter,this.filterOpened=new i.EventEmitter,this.sortChanged=new i.EventEmitter,this.virtualRowRemoved=new i.EventEmitter,this.rowClicked=new i.EventEmitter,this.rowDoubleClicked=new i.EventEmitter,this.gridReady=new i.EventEmitter,this.gridSizeChanged=new i.EventEmitter,this.viewportChanged=new i.EventEmitter,this.firstDataRendered=new i.EventEmitter,this.dragStarted=new i.EventEmitter,this.dragStopped=new i.EventEmitter,this.rowEditingStarted=new i.EventEmitter,this.rowEditingStopped=new i.EventEmitter,this.cellEditingStarted=new i.EventEmitter,this.cellEditingStopped=new i.EventEmitter,this.bodyScroll=ne
1w i.EventEmitter,this.animationQueueEmpty=new i.EventEmitter,this.heightScaleChanged=new i.EventEmitter,this.paginationChanged=new i.EventEmitter,this.componentStateChanged=new i.EventEmitter,this.bodyHeightChanged=new i.EventEmitter,this.displayedColumnsWidthChanged=new i.EventEmitter,this.scrollVisibilityChanged=new i.EventEmitter,this.columnHoverChanged=new i.EventEmitter,this.flashCells=new i.EventEmitter,this.rowDragEnter=new i.EventEmitter,this.rowDragMove=new i.EventEmitter,this.rowDragLeave=new i.EventEmitter,this.rowDragEnd=new i.EventEmitter,this.popupToFront=new i.EventEmitter,this.columnRowGroupChangeRequest=new i.EventEmitter,this.columnPivotChangeRequest=new i.EventEmitter,this.columnValueChangeRequest=new i.EventEmitter,this.columnAggFuncChangeRequest=new i.EventEmitter,this._nativeElement=e.nativeElement,this.frameworkComponentWrapper.setViewContainerRef(this.viewContainerRef),this.frameworkComponentWrapper.setComponentFactoryResolver(this._componentFactoryResolver)}return e.prototype.ngAfterViewInit=function(){this.checkForDeprecatedEvents(),this.gridOptions=r.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this,!0),this.gridParams={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:this.angularFrameworkOverrides,providedBeanInstances:{frameworkComponentWrapper:this.frameworkComponentWrapper},modules:this.modules||[]},this.columns&&this.columns.length>0&&(this.gridOptions.columnDefs=this.columns.map((function(e){return e.toColDef()}))),new r.Grid(this._nativeElement,this.gridOptions,this.gridParams),this.gridOptions.api&&(this.api=this.gridOptions.api),this.gridOptions.columnApi&&(this.columnApi=this.gridOptions.columnApi),this._initialised=!0,this._fullyReady.resolveNow(null,(function(e){return e}))},e.prototype.ngOnChanges=function(e){this._initialised&&r.ComponentUtil.processOnChange(e,this.gridOptions,this.api,this.columnApi)},e.prototype.ngOnDestroy=function(){this._initialised&&(this._destroyed=!0,this.api&&this.api.destroy())},e.prototype.checkForDeprecatedEvents=function(){var e=this;
1r.Utils.iterateObject(r.Events,(function(t,n){e[n]&&e[n].observers.length>0&&r.GridOptionsWrapper.checkEventDeprecation(n)}))},e.prototype.globalEventListener=function(e,t){if(!this._destroyed){var n=this[e];n?"gridReady"===e?this._fullyReady.then((function(e){n.emit(t)})):n.emit(t):console.log("ag-Grid-angular: could not find EventEmitter: "+e)}},e.propDecorators={columns:[{type:i.ContentChildren,args:[s.AgGridColumn]}],gridOptions:[{type:i.Input}],modules:[{type:i.Input}],slaveGrids:[{type:i.Input}],alignedGrids:[{type:i.Input}],rowData:[{type:i.Input}],columnDefs:[{type:i.Input}],excelStyles:[{type:i.Input}],pinnedTopRowData:[{type:i.Input}],pinnedBottomRowData:[{type:i.Input}],components:[{type:i.Input}],frameworkComponents:[{type:i.Input}],rowStyle:[{type:i.Input}],context:[{type:i.Input}],autoGroupColumnDef:[{type:i.Input}],groupColumnDef:[{type:i.Input}],localeText:[{type:i.Input}],icons:[{type:i.Input}],datasource:[{type:i.Input}],serverSideDatasource:[{type:i.Input}],viewportDatasource:[{type:i.Input}],groupRowRendererParams:[{type:i.Input}],aggFuncs:[{type:i.Input}],fullWidthCellRendererParams:[{type:i.Input}],defaultColGroupDef:[{type:i.Input}],defaultColDef:[{type:i.Input}],defaultExportParams:[{type:i.Input}],columnTypes:[{type:i.Input}],rowClassRules:[{type:i.Input}],detailGridOptions:[{type:i.Input}],detailCellRendererParams:[{type:i.Input}],loadingCellRendererParams:[{type:i.Input}],loadingOverlayComponentParams:[{type:i.Input}],noRowsOverlayComponentParams:[{type:i.Input}],popupParent:[{type:i.Input}],colResizeDefault:[{type:i.Input}],reduxStore:[{type:i.Input}],statusBar:[{type:i.Input}],sideBar:[{type:i.Input}],sortingOrder:[{type:i.Input}],rowClass:[{type:i.Input}],rowSelection:[{type:i.Input}],overlayLoadingTemplate:[{type:i.Input}],overlayNoRowsTemplate:[{type:i.Input}],quickFilterText:[{type:i.Input}],rowModelType:[{type:i.Input}],editType:[{type:i.Input}],domLayout:[{type:i.Input}],clipboardDeliminator:[{type:i.Input}],rowGroupPanelShow:[{type:i.Input}],multiSortKey:[{type:i.Input}],pivotColumnGroupTotals:[{type:i.Input}],pivotRowTotals:[{type:i.Input}],pivotPanelShow:[{type:i.Input}],rowHeight:[{type:i.Input}],detailRowHeight:[{type:i.Input}],rowBuffer:[{type:i.Input}],colWidth:[{type:i.Input}],headerHeight:[{type:i.Input}],groupHeaderHeight:[{type:i.Input}],floatingFiltersHeight:[{type:i.Input}],pivotHeaderHeight:[{type:i.Input}],pivotGroupHeaderHeight:[{type:i.Input}],groupDefaultExpanded:[{type:i.Input}],minColWidth:[{type:i.Input}],maxColWidth:[{type:i.Input}],viewportRowModelPageSize:[{type:i.Input}],viewportRowModelBufferSize:[{type:i.Input}],autoSizePadding:[{type:i.Input}],maxBlocksInCache:[{type:i.Input}],maxConcurrentDatasourceRequests:[{type:i.Input}],cacheOverflowSize:[{type:i.Input}],paginationPageSize:[{type:i.Input}],cacheBlockSize:[{type:i.Input}],infiniteInitialRowCount:[{type:i.Input}],scrollbarWidth:[{type:i.Input}],paginationStartPage:[{type:i.Input}],infiniteBlockSize:[{type:i.Input}],batchUpdateWaitMillis:[{type:i.Input}],blockLoadDebounceMillis:[{type:i.Input}],keepDetailRowsCount:[{type:i.Input}],undoRedoCellEditingLimit:[{type:i.Input}],localeTextFunc:[{type:i.Input}],groupRowInnerRenderer:[{type:i.Input}],groupRowInnerRendererFramework:[{type:i.Input}],dateComponent:[{type:i.Input}],dateComponentFramework:[{type:i.Input}],groupRowRenderer:[{type:i.Input}],groupRowRendererFramework:[{type:i.Input}],isExternalFilterPresent:[{type:i.Input}],getRowHeight:[{type:i.Input}],doesExternalFilterPass:[{type:i.Input}],getRowClass:[{type:i.Input}],getRowStyle:[{type:i.Input}],getRowClassRules:[{type:i.Input}],traverseNode:[{type:i.Input}],getContextMenuItems:[{type:i.Input}],getMainMenuItems:[{type:i.Input}],processRowPostCreate:[{type:i.Input}],processCellForClipboard:[{type:i.Input}],getNodeChildDetails:[{type:i.Input}],groupRowAggNodes:[{type:i.Input}],getRowNodeId:[{type:i.Input}],isFullWidthCell:[{type:i.Input}],fullWidthCellRenderer:[{type:i.Input}],fullWidthCellRendererFramework:[{type:i.Input}],doesDataFlower:[{type:i.Input}],processSecondaryColDef:[{type:i.Input}],processSecondaryColGroupDef:[{type:i.Input}],getBusinessKeyForNode:[{type:i.Input}],sendToClipboard:[{type:i.Input}],navigateToNextCell:[{type:i.Input}],tabToNextCell:[{type:i.Input}],getDetailRowData:[{type:i.Input}],processCellFromClipboard:[{type:i.Input}],getDocument:[{type:i.Input}],postProcessPopup:[{type:i.Input}],getChildCount:[{type:i.Input}],getDataPath:[{type:i.Input}],loadingCellRenderer:[{type:i.Input}],loadingCellRendererFramework:[{type:i.Input}],loadingOverlayComponent:[{type:i.Input}],loadingOverlayComponentFramework:[{type:i.Input}],noRowsOverlayComponent:[{type:i.Input}],noRowsOverlayComponentFramework:[{type:i.Input}],detailCellRenderer:[{type:i.Input}],detailCellRendererFramework:[{type:i.Input}],defaultGroupSortComparator:[{type:i.Input}],isRowMaster:[{type:i.Input}],isRowSelectable:[{type:i.Input}],postSort:[{type:i.Input}],processHeaderForClipboard:[{type:i.Input}],paginationNumberFormatter:[{type:i.Input}],processDataFromClipboard:[{type:i.Input}],getServerSideGroupKey:[{type:i.Input}],isServerSideGroup:[{type:i.Input}],suppressKeyboardEvent:[{type:i.Input}],createChartContainer:[{type:i.Input}],processChartOptions:[{type:i.Input}],getChartToolbarItems:[{type:i.Input}],fillOperation:[{type:i.Input}],toolPanelSuppressRowGroups:[{type:i.Input}],toolPanelSuppressValues:[{type:i.Input}],toolPanelSuppressPivots:[{type:i.Input}],toolPanelSuppressPivotMode:[{type:i.Input}],toolPanelSuppressSideButtons:[{type:i.Input}],toolPanelSuppressColumnFilter:[{type:i.Input}],toolPanelSuppressColumnSelectAll:[{type:i.Input}],toolPanelSuppressColumnExpandAll:[{type:i.Input}],suppressMakeColumnVisibleAfterUnGroup:[{type:i.Input}],suppressRowClickSelection:[{type:i.Input}],suppressCellSelection:[{type:i.Input}],suppressHorizontalScroll:[{type:i.Input}],alwaysShowVerticalScroll:[{type:i.Input}],debug:[{type:i.Input}],enableBrowserTooltips:[{type:i.Input}],enableColResize:[{type:i.Input}],enableCellExpressions:[{type:i.Input}],enableSorting:[{type:i.Input}],enableServerSideSorting:[{type:i.Input}],enableFilter:[{type:i.Input}],enableServerSideFilter:[{type:i.Input}],angularCompileRows:[{type:i.Input}],angularCompileFilters:[{type:i.Input}
1],angularCompileHeaders:[{type:i.Input}],groupSuppressAutoColumn:[{type:i.Input}],groupSelectsChildren:[{type:i.Input}],groupIncludeFooter:[{type:i.Input}],groupIncludeTotalFooter:[{type:i.Input}],groupUseEntireRow:[{type:i.Input}],groupSuppressRow:[{type:i.Input}],groupSuppressBlankHeader:[{type:i.Input}],forPrint:[{type:i.Input}],suppressMenuHide:[{type:i.Input}],rowDeselection:[{type:i.Input}],unSortIcon:[{type:i.Input}],suppressMultiSort:[{type:i.Input}],singleClickEdit:[{type:i.Input}],suppressLoadingOverlay:[{type:i.Input}],suppressNoRowsOverlay:[{type:i.Input}],suppressAutoSize:[{type:i.Input}],skipHeaderOnAutoSize:[{type:i.Input}],suppressParentsInRowNodes:[{type:i.Input}],showToolPanel:[{type:i.Input}],suppressColumnMoveAnimation:[{type:i.Input}],suppressMovableColumns:[{type:i.Input}],suppressFieldDotNotation:[{type:i.Input}],enableRangeSelection:[{type:i.Input}],enableRangeHandle:[{type:i.Input}],enableFillHandle:[{type:i.Input}],suppressClearOnFillReduction:[{type:i.Input}],deltaSort:[{type:i.Input}],suppressTouch:[{type:i.Input}],suppressAsyncEvents:[{type:i.Input}],allowContextMenuWithControlKey:[{type:i.Input}],suppressContextMenu:[{type:i.Input}],suppressMenuFilterPanel:[{type:i.Input}],suppressMenuMainPanel:[{type:i.Input}],suppressMenuColumnPanel:[{type:i.Input}],rememberGroupStateWhenNewData:[{type:i.Input}],enableCellChangeFlash:[{type:i.Input}],suppressDragLeaveHidesColumns:[{type:i.Input}],suppressMiddleClickScrolls:[{type:i.Input}],suppressPreventDefaultOnMouseWheel:[{type:i.Input}],suppressUseColIdForGroups:[{type:i.Input}],suppressCopyRowsToClipboard:[{type:i.Input}],copyHeadersToClipboard:[{type:i.Input}],pivotMode:[{type:i.Input}],suppressAggFuncInHeader:[{type:i.Input}],suppressColumnVirtualisation:[{type:i.Input}],suppressAggAtRootLevel:[{type:i.Input}],suppressFocusAfterRefresh:[{type:i.Input}],functionsPassive:[{type:i.Input}],functionsReadOnly:[{type:i.Input}],animateRows:[{type:i.Input}],groupSelectsFiltered:[{type:i.Input}],groupRemoveSingleChildren:[{type:i.Input}],groupRemoveLowestSingleChildren:[{type:i.Input}],enableRtl:[{type:i.Input}],suppressClickEdit:[{type:i.Input}],rowDragManaged:[{type:i.Input}],suppressRowDrag:[{type:i.Input}],enableGroupEdit:[{type:i.Input}],embedFullWidthRows:[{type:i.Input}],deprecatedEmbedFullWidthRows:[{type:i.Input}],suppressTabbing:[{type:i.Input}],suppressPaginationPanel:[{type:i.Input}],floatingFilter:[{type:i.Input}],groupHideOpenParents:[{type:i.Input}],groupMultiAutoColumn:[{type:i.Input}],pagination:[{type:i.Input}],stopEditingWhenGridLosesFocus:[{type:i.Input}],paginationAutoPageSize:[{type:i.Input}],suppressScrollOnNewData:[{type:i.Input}],purgeClosedRowNodes:[{type:i.Input}],cacheQuickFilter:[{type:i.Input}],deltaRowDataMode:[{type:i.Input}],ensureDomOrder:[{type:i.Input}],accentedSort:[{type:i.Input}],pivotTotals:[{type:i.Input}],suppressChangeDetection:[{type:i.Input}],valueCache:[{type:i.Input}],valueCacheNeverExpires:[{type:i.Input}],aggregateOnlyChangedColumns:[{type:i.Input}],suppressAnimationFrame:[{type:i.Input}],suppressExcelExport:[{type:i.Input}],suppressCsvExport:[{type:i.Input}],treeData:[{type:i.Input}],masterDetail:[{type:i.Input}],suppressMultiRangeSelection:[{type:i.Input}],enterMovesDownAfterEdit:[{type:i.Input}],enterMovesDown:[{type:i.Input}],suppressPropertyNamesCheck:[{type:i.Input}],rowMultiSelectWithClick:[{type:i.Input}],contractColumnSelection:[{type:i.Input}],suppressEnterpriseResetOnNewColumns:[{type:i.Input}],enableOldSetFilterModel:[{type:i.Input}],suppressRowHoverHighlight:[{type:i.Input}],gridAutoHeight:[{type:i.Input}],suppressRowTransform:[{type:i.Input}],suppressClipboardPaste:[{type:i.Input}],serverSideSortingAlwaysResets:[{type:i.Input}],reactNext:[{type:i.Input}],suppressSetColumnStateEvents:[{type:i.Input}],enableCharts:[{type:i.Input}],deltaColumnMode:[{type:i.Input}],suppressMaintainUnsortedOrder:[{type:i.Input}],enableCellTextSelection:[{type:i.Input}],suppressBrowserResizeObserver:[{type:i.Input}],suppressMaxRenderedRowRestriction:[{type:i.Input}],excludeChildrenWhenTreeDataFiltering:[{type:i.Input}],keepDetailRows:[{type:i.Input}],paginateChildRows:[{type:i.Input}],preventDefaultOnContextMenu:[{type:i.Input}],undoRedoCellEditing:[{type:i.Input}],allowDragFromColumnsToolPanel:[{type:i.Input}],columnEverythingChanged:[{type:i.Output}],newColumnsLoaded:[{type:i.Output}],columnPivotModeChanged:[{type:i.Output}],columnRowGroupChanged:[{type:i.Output}],expandOrCollapseAll:[{type:i.Output}],columnPivotChanged:[{type:i.Output}],gridColumnsChanged:[{type:i.Output}],columnValueChanged:[{type:i.Output}],columnMoved:[{type:i.Output}],columnVisible:[{type:i.Output}],columnPinned:[{type:i.Output}],columnGroupOpened:[{type:i.Output}],columnResized:[{type:i.Output}],displayedColumnsChanged:[{type:i.Output}],virtualColumnsChanged:[{type:i.Output}],rowGroupOpened:[{type:i.Output}],rowDataChanged:[{type:i.Output}],rowDataUpdated:[{type:i.Output}],pinnedRowDataChanged:[{type:i.Output}],rangeSelectionChanged:[{type:i.Output}],chartRangeSelectionChanged:[{type:i.Output}],chartOptionsChanged:[{type:i.Output}],toolPanelVisibleChanged:[{type:i.Output}],modelUpdated:[{type:i.Output}],pasteStart:[{type:i.Output}],pasteEnd:[{type:i.Output}],fillStart:[{type:i.Output}],fillEnd:[{type:i.Output}],cellClicked:[{type:i.Output}],cellDoubleClicked:[{type:i.Output}],cellMouseDown:[{type:i.Output}],cellContextMenu:[{type:i.Output}],cellValueChanged:[{type:i.Output}],rowValueChanged:[{type:i.Output}],cellFocused:[{type:i.Output}],rowSelected:[{type:i.Output}],selectionChanged:[{type:i.Output}],cellKeyDown:[{type:i.Output}],cellKeyPress:[{type:i.Output}],cellMouseOver:[{type:i.Output}],cellMouseOut:[{type:i.Output}],filterChanged:[{type:i.Output}],filterModified:[{type:i.Output}],filterOpened:[{type:i.Output}],sortChanged:[{type:i.Output}],virtualRowRemoved:[{type:i.Output}],rowClicked:[{type:i.Output}],rowDoubleClicked:[{type:i.Output}],gridReady:[{type:i.Output}],gridSizeChanged:[{type:i.Output}],viewportChanged:[{type:i.Output}],firstDataRendered:[{type:i.Output}],dragStarted:[{type:i.Output}],dragStopped:[{type:i.Output}],rowEditingStarted:[{type:i.Output}],rowEditingStopped:[{type:i.Output}],cellEditingStarted:[{type:i.Output}],cellEditingStopped:[{type:i.Output}],bodyScroll:[{type:i.Output}],animationQueueEmpty:[{type:i.Output}],heightScaleChanged:[{type:i.Output}],paginationChanged:[{type:i.Output}],componentStateChanged:[{type:i.Output}],bodyHeightChanged:[{type:i.Output}],displayedColumnsWidthChanged:[{type:i.Output}],scrollVisibilityChanged:[{type:i.Output}],columnHoverChanged:[{type:i.Output}],flashCells:[{type:i.Output}],rowDragEnter:[{type:i.Output}],rowDragMove:[{type:i.Output}],rowDragLeave:[{type:i.Output}],rowDragEnd:[{type:i.Output}],popupToFront:[{type:i.Output}],columnRowGroupChangeRequest:[{type:i.Output}],columnPivotChangeRequest:[{type:i.Output}],columnValueChangeRequest:[{type:i.Output}
1],columnAggFuncChangeRequest:[{type:i.Output}]},e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(o.AngularFrameworkOverrides),l.\u0275\u0275directiveInject(a.AngularFrameworkComponentWrapper),l.\u0275\u0275directiveInject(l.ComponentFactoryResolver))},e.\u0275cmp=l.\u0275\u0275defineComponent({type:e,selectors:[["ag-grid-angular"]],contentQueries:function(e,t,n){var i;1&e&&l.\u0275\u0275contentQuery(n,s.AgGridColumn,!1),2&e&&l.\u0275\u0275queryRefresh(i=l.\u0275\u0275loadQuery())&&(t.columns=i)},inputs:{slaveGrids:"slaveGrids",alignedGrids:"alignedGrids",rowData:"rowData",columnDefs:"columnDefs",excelStyles:"excelStyles",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",components:"components",frameworkComponents:"frameworkComponents",rowStyle:"rowStyle",context:"context",autoGroupColumnDef:"autoGroupColumnDef",groupColumnDef:"groupColumnDef",localeText:"localeText",icons:"icons",datasource:"datasource",serverSideDatasource:"serverSideDatasource",viewportDatasource:"viewportDatasource",groupRowRendererParams:"groupRowRendererParams",aggFuncs:"aggFuncs",fullWidthCellRendererParams:"fullWidthCellRendererParams",defaultColGroupDef:"defaultColGroupDef",defaultColDef:"defaultColDef",defaultExportParams:"defaultExportParams",columnTypes:"columnTypes",rowClassRules:"rowClassRules",detailGridOptions:"detailGridOptions",detailCellRendererParams:"detailCellRendererParams",loadingCellRendererParams:"loadingCellRendererParams",loadingOverlayComponentParams:"loadingOverlayComponentParams",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",popupParent:"popupParent",colResizeDefault:"colResizeDefault",reduxStore:"reduxStore",statusBar:"statusBar",sideBar:"sideBar",sortingOrder:"sortingOrder",rowClass:"rowClass",rowSelection:"rowSelection",overlayLoadingTemplate:"overlayLoadingTemplate",overlayNoRowsTemplate:"overlayNoRowsTemplate",quickFilterText:"quickFilterText",rowModelType:"rowModelType",editType:"editType",domLayout:"domLayout",clipboardDeliminator:"clipboardDeliminator",rowGroupPanelShow:"rowGroupPanelShow",multiSortKey:"multiSortKey",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotPanelShow:"pivotPanelShow",rowHeight:"rowHeight",detailRowHeight:"detailRowHeight",rowBuffer:"rowBuffer",colWidth:"colWidth",headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",groupDefaultExpanded:"groupDefaultExpanded",minColWidth:"minColWidth",maxColWidth:"maxColWidth",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",autoSizePadding:"autoSizePadding",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",cacheOverflowSize:"cacheOverflowSize",paginationPageSize:"paginationPageSize",cacheBlockSize:"cacheBlockSize",infiniteInitialRowCount:"infiniteInitialRowCount",scrollbarWidth:"scrollbarWidth",paginationStartPage:"paginationStartPage",infiniteBlockSize:"infiniteBlockSize",batchUpdateWaitMillis:"batchUpdateWaitMillis",blockLoadDebounceMillis:"blockLoadDebounceMillis",keepDetailRowsCount:"keepDetailRowsCount",undoRedoCellEditingLimit:"undoRedoCellEditingLimit",localeTextFunc:"localeTextFunc",groupRowInnerRenderer:"groupRowInnerRenderer",groupRowInnerRendererFramework:"groupRowInnerRendererFramework",dateComponent:"dateComponent",dateComponentFramework:"dateComponentFramework",groupRowRenderer:"groupRowRenderer",groupRowRendererFramework:"groupRowRendererFramework",isExternalFilterPresent:"isExternalFilterPresent",getRowHeight:"getRowHeight",doesExternalFilterPass:"doesExternalFilterPass",getRowClass:"getRowClass",getRowStyle:"getRowStyle",getRowClassRules:"getRowClassRules",traverseNode:"traverseNode",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",processRowPostCreate:"processRowPostCreate",processCellForClipboard:"processCellForClipboard",getNodeChildDetails:"getNodeChildDetails",groupRowAggNodes:"groupRowAggNodes",getRowNodeId:"getRowNodeId",isFullWidthCell:"isFullWidthCell",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererFramework:"fullWidthCellRendererFramework",doesDataFlower:"doesDataFlower",processSecondaryColDef:"processSecondaryColDef",processSecondaryColGroupDef:"processSecondaryColGroupDef",getBusinessKeyForNode:"getBusinessKeyForNode",sendToClipboard:"sendToClipboard",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",getDetailRowData:"getDetailRowData",processCellFromClipboard:"processCellFromClipboard",getDocument:"getDocument",postProcessPopup:"postProcessPopup",getChildCount:"getChildCount",getDataPath:"getDataPath",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererFramework:"loadingCellRendererFramework",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentFramework:"loadingOverlayComponentFramework",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentFramework:"noRowsOverlayComponentFramework",detailCellRenderer:"detailCellRenderer",detailCellRendererFramework:"detailCellRendererFramework",defaultGroupSortComparator:"defaultGroupSortComparator",isRowMaster:"isRowMaster",isRowSelectable:"isRowSelectable",postSort:"postSort",processHeaderForClipboard:"processHeaderForClipboard",paginationNumberFormatter:"paginationNumberFormatter",processDataFromClipboard:"processDataFromClipboard",getServerSideGroupKey:"getServerSideGroupKey",isServerSideGroup:"isServerSideGroup",suppressKeyboardEvent:"suppressKeyboardEvent",createChartContainer:"createChartContainer",processChartOptions:"processChartOptions",getChartToolbarItems:"getChartToolbarItems",fillOperation:"fillOperation",toolPanelSuppressRowGroups:"toolPanelSuppressRowGroups",toolPanelSuppressValues:"toolPanelSuppressValues",toolPanelSuppressPivots:"toolPanelSuppressPivots",toolPanelSuppressPivotMode:"toolPanelSuppressPivotMode",toolPanelSuppressSideButtons:"toolPanelSuppressSideButtons",toolPanelSuppressColumnFilter:"toolPanelSuppressColumnFilter",toolPanelSuppressColumnSelectAll:"toolPanelSuppressColumnSelectAll",toolPanelSuppressColumnExpandAll:"toolPanelSuppressColumnExpandAll",suppressMakeColumnVisibleAfterUnGroup:"suppressMakeColumnVisibleAfterUnGroup",suppressRowClickSelection:"suppressRowClickSelection",suppressCellSelection:"suppressCellSelection",suppressHorizontalScroll:"suppressHorizontalScroll",alwaysShowVerticalScroll:"alwaysShowVerticalScroll",debug:"debug",enableBrowserTooltips:"enableBrowserTooltips",enableColResize:"enableColResize",enableCellExpressions:"enableCellExpressions",enableSorting:"enableSorting",enableServerSideSorting:"enableServerSideSorting",enableFilter:"enableFilter",enableServerSideFilter:"enableServerSideFilter",angularCompileRows:"angularCompileRows",angularCompileFilters:"angularCompileFilters",angularCompileHeaders:"angularCompileHeaders",groupSuppressAutoColumn:"groupSuppressAutoColumn",groupSelectsChildren:"groupSelectsChildren",groupIncludeFooter:"groupIncludeFooter",groupIncludeTotalFooter:"groupIncludeTotalFooter",groupUseEntireRow:"groupUseEntireRow",groupSuppressRow:"groupSuppressRow",groupSuppressBlankHeader:"groupSuppressBlankHeader",forPrint:"forPrint",suppressMenuHide:"suppressMenuHide",rowDeselection:"rowDeselection",unSortIcon:"unSortIcon",suppressMultiSort:"suppressMultiSort",singleClickEdit:"singleClickEdit",suppressLoadingOverlay:"suppressLoadingOverlay",suppressNoRowsOverlay:"suppressNoRowsOverlay",suppressAutoSize:"suppressAutoSize",ski
1pHeaderOnAutoSize:"skipHeaderOnAutoSize",suppressParentsInRowNodes:"suppressParentsInRowNodes",showToolPanel:"showToolPanel",suppressColumnMoveAnimation:"suppressColumnMoveAnimation",suppressMovableColumns:"suppressMovableColumns",suppressFieldDotNotation:"suppressFieldDotNotation",enableRangeSelection:"enableRangeSelection",enableRangeHandle:"enableRangeHandle",enableFillHandle:"enableFillHandle",suppressClearOnFillReduction:"suppressClearOnFillReduction",deltaSort:"deltaSort",suppressTouch:"suppressTouch",suppressAsyncEvents:"suppressAsyncEvents",allowContextMenuWithControlKey:"allowContextMenuWithControlKey",suppressContextMenu:"suppressContextMenu",suppressMenuFilterPanel:"suppressMenuFilterPanel",suppressMenuMainPanel:"suppressMenuMainPanel",suppressMenuColumnPanel:"suppressMenuColumnPanel",rememberGroupStateWhenNewData:"rememberGroupStateWhenNewData",enableCellChangeFlash:"enableCellChangeFlash",suppressDragLeaveHidesColumns:"suppressDragLeaveHidesColumns",suppressMiddleClickScrolls:"suppressMiddleClickScrolls",suppressPreventDefaultOnMouseWheel:"suppressPreventDefaultOnMouseWheel",suppressUseColIdForGroups:"suppressUseColIdForGroups",suppressCopyRowsToClipboard:"suppressCopyRowsToClipboard",copyHeadersToClipboard:"copyHeadersToClipboard",pivotMode:"pivotMode",suppressAggFuncInHeader:"suppressAggFuncInHeader",suppressColumnVirtualisation:"suppressColumnVirtualisation",suppressAggAtRootLevel:"suppressAggAtRootLevel",suppressFocusAfterRefresh:"suppressFocusAfterRefresh",functionsPassive:"functionsPassive",functionsReadOnly:"functionsReadOnly",animateRows:"animateRows",groupSelectsFiltered:"groupSelectsFiltered",groupRemoveSingleChildren:"groupRemoveSingleChildren",groupRemoveLowestSingleChildren:"groupRemoveLowestSingleChildren",enableRtl:"enableRtl",suppressClickEdit:"suppressClickEdit",rowDragManaged:"rowDragManaged",suppressRowDrag:"suppressRowDrag",enableGroupEdit:"enableGroupEdit",embedFullWidthRows:"embedFullWidthRows",deprecatedEmbedFullWidthRows:"deprecatedEmbedFullWidthRows",suppressTabbing:"suppressTabbing",suppressPaginationPanel:"suppressPaginationPanel",floatingFilter:"floatingFilter",groupHideOpenParents:"groupHideOpenParents",groupMultiAutoColumn:"groupMultiAutoColumn",pagination:"pagination",stopEditingWhenGridLosesFocus:"stopEditingWhenGridLosesFocus",paginationAutoPageSize:"paginationAutoPageSize",suppressScrollOnNewData:"suppressScrollOnNewData",purgeClosedRowNodes:"purgeClosedRowNodes",cacheQuickFilter:"cacheQuickFilter",deltaRowDataMode:"deltaRowDataMode",ensureDomOrder:"ensureDomOrder",accentedSort:"accentedSort",pivotTotals:"pivotTotals",suppressChangeDetection:"suppressChangeDetection",valueCache:"valueCache",valueCacheNeverExpires:"valueCacheNeverExpires",aggregateOnlyChangedColumns:"aggregateOnlyChangedColumns",suppressAnimationFrame:"suppressAnimationFrame",suppressExcelExport:"suppressExcelExport",suppressCsvExport:"suppressCsvExport",treeData:"treeData",masterDetail:"masterDetail",suppressMultiRangeSelection:"suppressMultiRangeSelection",enterMovesDownAfterEdit:"enterMovesDownAfterEdit",enterMovesDown:"enterMovesDown",suppressPropertyNamesCheck:"suppressPropertyNamesCheck",rowMultiSelectWithClick:"rowMultiSelectWithClick",contractColumnSelection:"contractColumnSelection",suppressEnterpriseResetOnNewColumns:"suppressEnterpriseResetOnNewColumns",enableOldSetFilterModel:"enableOldSetFilterModel",suppressRowHoverHighlight:"suppressRowHoverHighlight",gridAutoHeight:"gridAutoHeight",suppressRowTransform:"suppressRowTransform",suppressClipboardPaste:"suppressClipboardPaste",serverSideSortingAlwaysResets:"serverSideSortingAlwaysResets",reactNext:"reactNext",suppressSetColumnStateEvents:"suppressSetColumnStateEvents",enableCharts:"enableCharts",deltaColumnMode:"deltaColumnMode",suppressMaintainUnsortedOrder:"suppressMaintainUnsortedOrder",enableCellTextSelection:"enableCellTextSelection",suppressBrowserResizeObserver:"suppressBrowserResizeObserver",suppressMaxRenderedRowRestriction:"suppressMaxRenderedRowRestriction",excludeChildrenWhenTreeDataFiltering:"excludeChildrenWhenTreeDataFiltering",keepDetailRows:"keepDetailRows",paginateChildRows:"paginateChildRows",preventDefaultOnContextMenu:"preventDefaultOnContextMenu",undoRedoCellEditing:"undoRedoCellEditing",allowDragFromColumnsToolPanel:"allowDragFromColumnsToolPanel",gridOptions:"gridOptions",modules:"modules"},outputs:{columnEverythingChanged:"columnEverythingChanged",newColumnsLoaded:"newColumnsLoaded",columnPivotModeChanged:"columnPivotModeChanged",columnRowGroupChanged:"columnRowGroupChanged",expandOrCollapseAll:"expandOrCollapseAll",columnPivotChanged:"columnPivotChanged",gridColumnsChanged:"gridColumnsChanged",columnValueChanged:"columnValueChanged",columnMoved:"columnMoved",columnVisible:"columnVisible",columnPinned:"columnPinned",columnGroupOpened:"columnGroupOpened",columnResized:"columnResized",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",rowGroupOpened:"rowGroupOpened",rowDataChanged:"rowDataChanged",rowDataUpdated:"rowDataUpdated",pinnedRowDataChanged:"pinnedRowDataChanged",rangeSelectionChanged:"rangeSelectionChanged",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",toolPanelVisibleChanged:"toolPanelVisibleChanged",modelUpdated:"modelUpdated",pasteStart:"pasteStart",pasteEnd:"pasteEnd",fillStart:"fillStart",fillEnd:"fillEnd",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellMouseDown:"cellMouseDown",cellContextMenu:"cellContextMenu",cellValueChanged:"cellV
1alueChanged",rowValueChanged:"rowValueChanged",cellFocused:"cellFocused",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellKeyDown:"cellKeyDown",cellKeyPress:"cellKeyPress",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",filterChanged:"filterChanged",filterModified:"filterModified",filterOpened:"filterOpened",sortChanged:"sortChanged",virtualRowRemoved:"virtualRowRemoved",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",gridReady:"gridReady",gridSizeChanged:"gridSizeChanged",viewportChanged:"viewportChanged",firstDataRendered:"firstDataRendered",dragStarted:"dragStarted",dragStopped:"dragStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",bodyScroll:"bodyScroll",animationQueueEmpty:"animationQueueEmpty",heightScaleChanged:"heightScaleChanged",paginationChanged:"paginationChanged",componentStateChanged:"componentStateChanged",bodyHeightChanged:"bodyHeightChanged",displayedColumnsWidthChanged:"displayedColumnsWidthChanged",scrollVisibilityChanged:"scrollVisibilityChanged",columnHoverChanged:"columnHoverChanged",flashCells:"flashCells",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",popupToFront:"popupToFront",columnRowGroupChangeRequest:"columnRowGroupChangeRequest",columnPivotChangeRequest:"columnPivotChangeRequest",columnValueChangeRequest:"columnValueChangeRequest",columnAggFuncChangeRequest:"columnAggFuncChangeRequest"},features:[l.\u0275\u0275ProvidersFeature([o.AngularFrameworkOverrides,a.AngularFrameworkComponentWrapper]),l.\u0275\u0275NgOnChangesFeature()],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e}()},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return r}));const r=i()},Loxo:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n("wd/R"))},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(()=>{throw e},0)}n.d(t,"a",(function(){return i}))},OIYi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
vendor: 13,448 bytes, line 1
1S:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n("wd/R"))},OjkT:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n("wd/R"))},Oxv6:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>
vendor: 7,018 bytes, line 1
1=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},PA2r:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(o(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PeUW:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}
1\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t?e:"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("wd/R"))},PpIw:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}
vendor: 4,185 bytes, line 1
1(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},Qj4J:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n("wd/R"))},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%
1d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-SG":"zavE","./en-SG.js":"zavE","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="RnhZ"},"S+S0":function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var i=n("mrSG"),r=n("zVF4"),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),s=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new r.Deferred;this.instancesDeferred.set(t,n);try{var i=this.getOrInitializeService(t);i&&n.resolve(i)}catch(o){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=i.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.optional,r=this.normalizeInstanceIdentifier(t.identifier);try{var o=this.getOrInitializeService(r);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(u){}try{for(var r=i.__values(this.instancesDeferred.entries()),o=r.next();!o.done;o=r.next()){var s=i.__read(o.value,2),a=s[1],l=this.normalizeInstanceIdentifier(s[0]);try{var c=this.getOrInitializeService(l);a.resolve(c)}catch(u){}}}catch(d){t={error:d}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}(),a=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=o,t.ComponentContainer=a,t.Provider=s},S6ln:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},SFxW:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u
10259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},SatO:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},SeVD:function(e,t,n){"use strict";var i=n("ngJS"),r=n("NJ4a"),o=n("Lhse"),s=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");n.d(t,"a",(function(){return u}));const u=e=>{if(e&&"function"==typeof e[s.a])return u=e,e=>{const t=u[s.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(i.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r.a),e);if(e&&"function"==typeof e[o.a])return t=e,e=>{const n=t[o.a]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};
1{const t=Object(c.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var t,n,u}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",(function(){return i}))},UDhR:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UpQW:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%
1d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},Ur1D:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wd/R"))},V2x9:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("HDdC"),r=n("z+Ro"),o=n("bHdf"),s=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(r.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof i.a?e[0]:Object(o.a)(t)(Object(s.a)(e,n))}},Vclq:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
1split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n("wd/R"))},WYrj:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n("wd/R"))},Wcq6:function(e,t,n){"use strict";var i,r=(i=n("wj3C"))&&"object"==typeof i&&"default"in i?i.default:i;r.registerVersion("firebase","7.8.1","app"),e.exports=r},Wkdn:function(e,t,n){"use strict";var i,r=n("fXoL"),o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
1Object.defineProperty(t,"__esModule",{value:!0}),n("fXoL");var s=n("f7ga");t.AngularFrameworkComponentWrapper=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e),t.prototype.setViewContainerRef=function(e){this.viewContainerRef=e},t.prototype.setComponentFactoryResolver=function(e){this.componentFactoryResolver=e},t.prototype.createWrapper=function(e){var t=this,n=new(function(i){function r(){return null!==i&&i.apply(this,arguments)||this}return o(r,i),r.prototype.init=function(e){i.prototype.init.call(this,e),this._componentRef.changeDetectorRef.detectChanges()},r.prototype.createComponent=function(){return t.createComponent(e)},r.prototype.hasMethod=function(e){return null!=n.getFrameworkComponentInstance()[e]},r.prototype.callMethod=function(e,t){var i=this.getFrameworkComponentInstance();return n.getFrameworkComponentInstance()[e].apply(i,t)},r.prototype.addMethod=function(e,t){n[e]=t},r}(a));return n},t.prototype.createComponent=function(e){var t=this.componentFactoryResolver.resolveComponentFactory(e);return this.viewContainerRef.createComponent(t)},t.\u0275fac=function(e){return n(e||t)},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}});var n=r.\u0275\u0275getInheritedFactory(t);return t}(s.BaseComponentWrapper);var a=function(){function e(){}return e.prototype.init=function(e){this._params=e,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,this._agAwareComponent.agInit(this._params)},e.prototype.getGui=function(){return this._eGui},e.prototype.destroy=function(){this._componentRef&&this._componentRef.destroy()},e.prototype.getFrameworkComponentInstance=function(){return this._frameworkComponentInstance},e}()},WxRl:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},X709:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n("wd/R"))},XDpg:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n("wd/R"))},XLvN:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}
1\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n("wd/R"))},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var i=n("HDdC"),r=n("7o/Q"),o=n("quSY"),s=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends r.a{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new s.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new s.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new s.a;return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.isStopped?(e.complete(),o.a.EMPTY):(this.observers.push(e),new a.a(this,e))}asObservable(){const e=new i.a;return e.source=this,e}}return e.create=(e,t)=>new d(e,t),e})();class d extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):o.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return i}))},YRex:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%
1d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n("wd/R"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("quSY");class r extends i.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z4QM:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},ZAMP:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("51Dv"),r=n("SeVD"),o=n("HDdC");function s(e,t,n,s,a=new i.a(e,n,s)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(r.a)(t)(a)}},Zduo:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>
111?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("wd/R"))},aEEX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("fXoL"),r=n("fXoL");t.AgGridColumn=function(){function e(){}return e.prototype.hasChildColumns=function(){return!(!(this.childColumns&&this.childColumns.length>0)||1===this.childColumns.length&&this.childColumns.first===this)},e.prototype.toColDef=function(){var e=this.createColDefFromGridColumn(this);return this.hasChildColumns()&&(e.children=this.getChildColDefs(this.childColumns)),e},e.prototype.getChildColDefs=function(e){return e.filter((function(e){return!e.hasChildColumns()})).map((function(e){return e.toColDef()}))},e.prototype.createColDefFromGridColumn=function(e){var t={};return Object.assign(t,e),delete t.childColumns,t},e.propDecorators={childColumns:[{type:i.ContentChildren,args:[e]}],children:[{type:i.Input}],sortingOrder:[{type:i.Input}],allowedAggFuncs:[{type:i.Input}],menuTabs:[{type:i.Input}],cellClassRules:[{type:i.Input}],icons:[{type:i.Input}],headerGroupComponent:[{type:i.Input}],headerGroupComponentFramework:[{type:i.Input}],headerGroupComponentParams:[{type:i.Input}],cellStyle:[{type:i.Input}],cellRendererParams:[{type:i.Input}],cellEditorFramework:[{type:i.Input}],cellEditorParams:[{type:i.Input}],pinnedRowCellRendererFramework:[{type:i.Input}],pinnedRowCellRendererParams:[{type:i.Input}],filterFramework:[{type:i.Input}],filterParams:[{type:i.Input}],headerComponent:[{type:i.Input}],headerComponentFramework:[{type:i.Input}],headerComponentParams:[{type:i.Input}],floatingFilterComponent:[{type:i.Input}],floatingFilterComponentParams:[{type:i.Input}],floatingFilterComponentFramework:[{type:i.Input}],tooltipComponent:[{type:i.Input}],tooltipComponentParams:[{type:i.Input}],tooltipComponentFramework:[{type:i.Input}],refData:[{type:i.Input}],headerName:[{type:i.Input}],columnGroupShow:[{type:i.Input}],headerClass:[{type:i.Input}],toolPanelClass:[{type:i.Input}],headerValueGetter:[{type:i.Input}],groupId:[{type:i.Input}],colId:[{type:i.Input}],sort:[{type:i.Input}],field:[{type:i.Input}],type:[{type:i.Input}],tooltipField:[{type:i.Input}],headerTooltip:[{type:i.Input}],cellClass:[{type:i.Input}],showRowGroup:[{type:i.Input}],filter:[{type:i.Input}],aggFunc:[{type:i.Input}],cellRenderer:[{type:i.Input}],cellEditor:[{type:i.Input}],pinned:[{type:i.Input}],chartDataType:[{type:i.Input}],sortedAt:[{type:i.Input}],flex:[{type:i.Input}],width:[{type:i.Input}],minWidth:[{type:i.Input}],maxWidth:[{type:i.Input}],rowGroupIndex:[{type:i.Input}],pivotIndex:[{type:i.Input}],dndSourceOnRowDrag:[{type:i.Input}],valueGetter:[{type:i.Input}],valueSetter:[{type:i.Input}],filterValueGetter:[{type:i.Input}],keyCreator:[{type:i.Input}],cellRendererFramework:[{type:i.Input}],pinnedRowCellRenderer:[{type:i.Input}],valueFormatter:[{type:i.Input}],pinnedRowValueFormatter:[{type:i.Input}],valueParser:[{type:i.Input}],comparator:[{type:i.Input}],equals:[{type:i.Input}],pivotComparator:[{type:i.Input}],suppressKeyboardEvent:[{type:i.Input}],colSpan:[{type:i.Input}],rowSpan:[{type:i.Input}],getQuickFilterText:[{type:i.Input}],newValueHandler:[{type:i.Input}],onCellValueChanged:[{type:i.Input}],onCellClicked:[{type:i.Input}],onCellDoubleClicked:[{type:i.Input}],onCellContextMenu:[{type:i.Input}],tooltip:[{type:i.Input}],tooltipValueGetter:[{type:i.Input}],cellRendererSelector:[{type:i.Input}],cellEditorSelector:[{type:i.Input}],suppressCellFlash:[{type:i.Input}],suppressColumnsToolPanel:[{type:i.Input}],suppressFiltersToolPanel:[{type:i.Input}],openByDefault:[{type:i.Input}],marryChildren:[{type:i.Input}],hide:[{type:i.Input}],rowGroup:[{type:i.Input}],pivot:[{type:i.Input}],checkboxSelection:[{type:i.Input}],headerCheckboxSelection:[{type:i.Input}],headerCheckboxSelectionFilteredOnly:[{type:i.Input}],suppressMenu:[{type:i.Input}],suppressSorting:[{type:i.Input}],suppressMovable:[{type:i.Input}],suppressFilter:[{type:i.Input}],lockPosition:[{type:i.Input}],lockVisible:[{type:i.Input}],lockPinned:[{type:i.Input}],unSortIcon:[{type:i.Input}],suppressSizeToFit:[{type:i.Input}],suppressResize:[{type:i.Input}],suppressAutoSize:[{type:i.Input}],enableRowGroup:[{type:i.Input}],enablePivot:[{type:i.Input}],enableValue:[{type:i.Input}],editable:[{type:i.Input}],suppressPaste:[{type:i.Input}],suppressNavigable:[{type:i.Input}],enableCellChangeFlash:[{type:i.Input}],rowDrag:[{type:i.Input}],dndSource:[{type:i.Input}],autoHeight:[{type:i.Input}],sortable:[{type:i.Input}],resizable:[{type:i.Input}],singleClickEdit:[{type:i.Input}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.\u0275\u0275defineComponent({type:e,selectors:[["ag-grid-column"]],contentQueries:function(t,n,i){var o;1&t&&r.\u0275\u0275contentQuery(i,e,!1),2&t&&r.\u0275\u0275queryRefresh(o=r.\u0275\u0275loadQuery())&&(n.childColumns=o)},inputs:{children:"children",sortingOrder:"sortingOrder",allowedAggFuncs:"allowedAggFuncs",menuTabs:"menuTabs",cellClassRules:"cellClassRules",icons:"icons",headerGroupComponent:"headerGroupComponent",headerGroupComponentFramework:"headerGroupComponentFramework",headerGroupComponentParams:"headerGroupComponentParams",cellStyle:"cellStyle",cellRendererParams:"cellRendererParams",cellEditorFramework:"cellEditorFramework",cellEditorParams:"cellEditorParams",pinnedRowCellRendererFramework:"pinnedRowCellRendererFramework",pinnedRowCellRendererParams:"pinnedRowCellRendererParams",filterFramework:"filterFramework",filterParams:"filterParams",headerComponent:"headerComponent",headerComponentFramework:"headerComponentFramework",headerComponentParams:"headerComponentParams",floatingFilterComponent:"floatingFilterComponent",floatingFilterComponentParams:"floatingFilterComponentParams",floatingFilterComponentFramework:"floatingFilterComponentFramework",tooltipComponent:"tooltipComponent",tooltipComponentParams:"tooltipComponentParams",tooltipComponentFramework:"tooltipComponentFramework",refData:"refData",headerName:"headerName",columnGroupShow:"columnGroupShow",headerClass:"headerClass",toolPanelClass:"toolPanelClass",headerValueGetter:"headerValueGetter",groupId:"groupId",colId:"colId",sort:"sort",field:"field",type:"type",tooltipField:"tooltipField",headerTooltip:"headerTooltip",cellClass:"cellClass",showRowGroup:"showRowGroup",filter:"filter",aggFunc:"aggFunc",cellRenderer:"cellRenderer",cellEditor:"cellEditor",pinned:"pinned",chartDataType:"chartDataType",sortedAt:"sortedAt",flex:"flex",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",rowGroupIndex:"rowGroupIndex",pivotIndex:"pivotIndex",dndSourceOnRowDrag:"dndSourceOnRowDrag",valueGetter:"valueGetter",valueSetter:"valueSetter",filterValueGetter:"filterValueGetter",keyCreator:"keyCreator",cellRendererFramework:"cellRendererFramework",pinnedRowCellRenderer:"pinnedRowCellRenderer",valueFormatter:"valueFormatter",pinnedRowValueFormatter:"pinnedRowValueFormatter",valueParser:"valueParser",comparator:"comparator",equals:"equals",pivotComparator:"pivotComparator",suppressKeyboardEvent:"suppressKeyboardEvent",colSpan:"colSpan",rowSpan:"rowSpan",getQuickFilterText:"getQuickFilterText",newValueHandler:"newValueHandler",onCellValueChanged:"onCellValueChanged",onCellClicked:"onCellClicked",onCellDoubleClicked:"onCellDoubleClicked",onCellContextMenu:"onCellContextMenu",tooltip:"tooltip",tooltipValueGetter:"tooltipValueGetter",cellRendererSelector:"cellRendererSelector",cellEditorSelector:"cellEditorSelector",suppressCellFlash:"suppressCellFlash",suppressColumnsToolPanel:"suppressColumnsToolPanel",suppressFiltersToolPanel:"suppressFiltersToolPanel",openByDefault:"openByDefault",marryChildren:"marryChildren",hide:"hide",rowGroup:"rowGroup",pivot:"pivot",checkboxSelection:"checkboxSelection",headerCheckboxSelection:"headerCheckboxSelection",headerCheckboxSelectionFilteredOnly:"headerCheckboxSelectionFilteredOnly",suppressMenu:"suppressMenu",suppressSorting:"suppressSorting",suppressMovable:"suppressMovable",suppressFilter:"suppressFilter",lockPosition:"lockPosition",lockVisible:"lockVisible",lockPinned:"lockPinned",unSortIcon:"unSortIcon",suppressSizeToFit:"suppressSizeToFit",suppressResize:"suppressResize",suppressAutoSize:"suppressAutoSize",enableRowGroup:"enableRowGroup",enablePivot:"enablePivot",enableValue:"enableValue",editable:"editable",suppressPaste:"suppressPaste",suppressNavigable:"suppressNavigable",enableCellChangeFlash:"enableCellChangeFlash",rowDrag:"rowDrag",dndSource:"dndSource",autoHeight:"autoHeight",sortable:"sortable",resizable:"resizable",singleClickEdit:"singleClickEdit"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e}()},aIdf:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}
1e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(n("wd/R"))},aIsn:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},aQkU:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},b1Dy:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
1S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("5+tZ"),r=n("SpAZ");function o(e=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,e)}},bOMt:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},bXm7:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u064
11\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},bxKX:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
1d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return i}))},cRix:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},czMo:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},dNwA:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("wd/R"))},"e+ae":function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";
1case"ss":return t||r?o+(i(e)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?o+(i(e)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?o+(i(e)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(i(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(i(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},e30y:function(e,t,n){"use strict";var i,r=n("fXoL"),o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),n("fXoL");var s=n("f7ga");t.AngularFrameworkOverrides=function(e){function t(t){var n=e.call(this)||this;return n._ngZone=t,n}return o(t,e),t.prototype.setTimeout=function(e,t){this._ngZone.runOutsideAngular((function(){window.setTimeout((function(){e()}),t)}))},t.prototype.addEventListenerOutsideAngular=function(t,n,i,r){var o=this;this._ngZone.runOutsideAngular((function(){e.prototype.addEventListenerOutsideAngular.call(o,t,n,i,r)}))},t.\u0275fac=function(e){return new(e||t)(r.\u0275\u0275inject(r.NgZone))},t.\u0275prov=r.\u0275\u0275defineInjectable({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(s.VanillaFrameworkOverrides)},f7ga:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t,n,i){void 0===i&&(i=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,i||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((i=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(o=parseInt(n[3],16))/255,(s=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var i=parseInt(n[1],16),r=parseInt(n[2],16),o=parseInt(n[3],16),s=void 0!==n[4]?parseInt(n[4],16):15;return new e((i+=16*i)/255,(r+=16*r)/255,(o+=16*o)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,i,r){void 0===r&&(r=1);var o=e.HSBtoRGB(t,n,i);return new e(o[0],o[1],o[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var i=Math.min(e,t,n),r=Math.max(e,t,n
1),o=NaN;if(i!==r){var s=r-i,a=(r-e)/s,l=(r-t)/s,c=(r-n)/s;o=e===r?c-l:t===r?2+a-c:4+l-a,(o/=6)<0&&(o+=1)}return[360*o,0!==r?(r-i)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var i=0,r=0,o=0;if(0===t)i=r=o=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),c=n*(1-t*a),u=n*(1-t*(1-a));switch(s>>0){case 0:i=n,r=u,o=l;break;case 1:i=c,r=n,o=l;break;case 2:i=l,r=n,o=u;break;case 3:i=l,r=c,o=n;break;case 4:i=u,r=l,o=n;break;case 5:i=n,r=l,o=c}}return[i,r,o]},e.prototype.derive=function(t,n,i,r){var o=e.RGBtoHSB(this.r,this.g,this.b),s=o[2];0==s&&i>1&&(s=.05);var a=((o[0]+t)%360+360)%360,l=Math.max(Math.min(o[1]*n,1),0);s=Math.max(Math.min(s*i,1),0);var c=Math.max(Math.min(this.a*r,1),0),u=e.HSBtoRGB(a,l,s);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}(),o=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_Z=90,e.KEY_Y=89,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LE
1FT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e}(),s=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,a=/([^\s,]+)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=/[&<>"']/g,u=function(){function e(){}var t;return e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.getMaxSafeInteger=function(){return Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:9007199254740991},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(e,t,n){if(0===n)return!1;var i=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY);return Math.max(i,r)<=n},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},e.getValueUsingField=function(e,t,n){if(t&&e){if(n){for(var i=t.split("."),r=e,o=0;o<i.length;o++)if(this.missing(r=r[i[o]]))return null;return r}return e[t]}},e.getElementSize=function(e){var t=window.getComputedStyle(e),n=t.width,i=t.paddingTop,r=t.paddingRight,o=t.paddingBottom,s=t.paddingLeft,a=t.marginTop,l=t.marginRight,c=t.marginBottom,u=t.marginLeft,d=t.boxSizing;return{height:parseFloat(t.height),width:parseFloat(n),paddingTop:parseFloat(i),paddingRight:parseFloat(r),paddingBottom:parseFloat(o),paddingLeft:parseFloat(s),marginTop:parseFloat(a),marginRight:parseFloat(l),marginBottom:parseFloat(c),marginLeft:parseFloat(u),boxSizing:d}},e.getInnerHeight=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},e.getInnerWidth=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},e.getAbsoluteHeight=function(e){var t=this.getElementSize(e);return Math.ceil(e.offsetHeight+(t.marginBottom+t.marginTop))},e.getAbsoluteWidth=function(e){var t=this.getElementSize(e);return Math.ceil(e.offsetWidth+(t.marginLeft+t.marginRight))},e.getScrollLeft=function(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),this.isBrowserChrome()&&(n=e.scrollWidth-e.clientWidth-n)),n},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,n){n&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var n=0;n<e.length;n++){var i=e[n];t(i.name,i.value)}},e.iterateObject=function(e,t){e&&!this.missing(e)&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))},e.cloneObject=function(e){for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t},e.copyPropertiesIfPresent=function(e,t){for(var n=this,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];i.forEach((function(i){return n.copyPropertyIfPresent(e,t,i)}))},e.copyPropertyIfPresent=function(e,t,n,i){var r=this.getProperty(e,n);void 0!==r&&this.setProperty(t,n,i?i(r):r)},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,n,i){void 0===i&&(i=!0),this.exists(n)&&this.iterateObject(n,(function(n,r){var o=t[n];o!==r&&("object"!=typeof o||"object"!=typeof r||Array.isArray(o)?(i||void 0!==r)&&(t[n]=r):e.mergeDeep(o,r))}))},e.assign=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.forEach((function(n){t.exists(n)&&t.iterateObject(n,(function(t,n){e[t]=n}))})),e},e.flatten=function(e){return[].concat.apply([],e)},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var n=e.split(t);return 3!=n.length?null:new Date(Number(n[0]),Number(n[1])-1,Number(n[2]))}catch(i){return null}},e.serializeDateToYyyyMmDd=function(e,t){return e?e.getFullYear()+t+this.padStart(e.getMonth()+1,2)+t+this.padStart(e.getDate(),2):null},e.padStart=function(e,t){for(var n=e+"";n.length<t;)n="0"+n;return n},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n},e.getFunctionParameters=function(e){var t=e.toString().replace(s,""),n=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(a);return null===n?[]:n},e.find=function(e,t,n){if(null==e)return null;if(!Array.isArray(e)){var i=this.values(e);return this.find(i,t,n)}for(var r=e,o=null,s=0;s<r.length;s++){var a=r[s];if("string"==typeof t){if(a[t]===n){o=a;break}}else if(t(a)){o=a;break}}return o},e.toStrings=function(e){return e.map((function(e){return null!=e&&e.toString?e.toString():null}))},e.findIndex=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,n=[],i=0;i<t;i++)n.push(e[i]);return n},e.isEventFromPrintableCharacter=function(t){var n=String.fromCharCode(t.charCode);
1if(this.isKeyPressed(t,o.KEY_NEW_LINE))return!1;if(t.altKey||t.ctrlKey)return!1;if(h.exists(t.key)){var i=1===t.key.length,r=e.isNumpadDelWithNumlockOnForEdgeOrIe(t);return i||r}return e.PRINTABLE_CHARACTERS.indexOf(n)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,n,i,r){var o=e.getSuppressKeyboardEventFunc(),s=i.getColDef().suppressKeyboardEvent;if(!o&&!s)return!1;var a={event:t,editing:r,column:i,api:e.getApi(),node:n,data:n.data,colDef:i.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!o&&o(a)},e.getCellCompForEvent=function(e,t){for(var n=this.getTarget(t);n;){var i=e.getDomData(n,"cellComp");if(i)return i;n=n.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++){var i=e[n];if(h.exists(i))return i}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.callIfPresent=function(e){e&&e()},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,n){n?this.addCssClass(e,t):this.removeCssClass(e,t)},e.radioCssClass=function(e,t,n){for(var i=e.parentElement.firstChild;i;)h.addOrRemoveCssClass(i,t,n?i!==e:i===e),i=i.nextSibling},e.addCssClass=function(e,t){var n=this;if(t&&0!==t.length)if(t.indexOf(" ")>
1=0)t.split(" ").forEach((function(t){return n.addCssClass(e,t)}));else if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var i=e.className.split(" ");i.indexOf(t)<0&&(i.push(t),e.setAttribute("class",i.join(" ")))}else e.setAttribute("class",t)},e.removeCssClass=function(e,t){if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ").filter((function(e){return e!==t})).join(" ");e.setAttribute("class",n)}},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var n=e.className===t,i=e.className.indexOf(" "+t+" ")>=0,r=0===e.className.indexOf(t+" "),o=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return n||i||r||o}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumerically=function(e){return e.sort((function(e,t){return e-t}))},e.removeRepeatsFromArray=function(e,t){if(e)for(var n=e.length-2;n>=0;n--)e[n]===t&&e[n+1]===t&&e.splice(n+1,1)},e.removeFromArray=function(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)},e.removeAllFromArray=function(e,t){var n=this;t.forEach((function(t){return n.removeFromArray(e,t)}))},e.insertIntoArray=function(e,t,n){e.splice(n,0,t)},e.insertArrayIntoArray=function(e,t,n){if(!this.missing(e)&&!this.missing(t))for(var i=t.length-1;i>=0;i--)this.insertIntoArray(e,t[i],n)},e.moveInArray=function(e,t,n){var i=this;t.forEach((function(t){i.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){i.insertIntoArray(e,t,n)}))},e.defaultComparator=function(e,t,n){void 0===n&&(n=!1);var i=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&r)return 0;if(i)return-1;if(r)return 1;if("string"==typeof e){if(!n)return o(e,t);try{return e.localeCompare(t)}catch(s){return o(e,t)}}return e<t?-1:e>t?1:0;function o(e,t){return e>t?1:e<t?-1:0}},e.last=function(e){if(e&&e.length)return e[e.length-1]},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},e.ensureDomOrder=function(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.setDomChildOrder=function(e,t){for(var n=0;n<t.length;n++){var i=t[n],r=e.children[n];r!==i&&e.insertBefore(i,r)}},e.insertTemplateWithDomOrder=function(e,t,n){var i;return n?(n.insertAdjacentHTML("afterend",t),i=n.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,i=e.firstChild),i},e.every=function(e,t){if(!e||0===e.length)return!0;for(var n=0;n<e.length;n++)if(!t(e[n]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.findLineByLeastSquares=function(e){var t=e.length;if(t<=1)return e;for(var n=0,i=0,r=0,o=0,s=0,a=0;a<t;a++)n+=a,i+=s=e[a],o+=a*a,r+=a*s;var l=(t*r-n*i)/(t*o-n*n),c=i/t-l*n/t,u=[];for(a=0;a<=t;a++)u.push(a*l+c);return u},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,n){var i=this.createIconNoSpan(e,t,n);if(i.className.indexOf("ag-icon")>-1)return i;var r=document.createElement("span");return r.appendChild(i),r},e.createIconNoSpan=function(e,t,n,i){var r=null,o=n&&n.getColDef().icons;if(o&&(r=o[e]),t&&!r){var s=t.getIcons();s&&(r=s[e])}if(!r){var a=document.createElement("span"),l=this.iconNameClassMap[e];return l||(i?l=e:(console.warn("ag-Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),a}var c=void 0;if("function"==typeof r)c=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");c=r}return"string"==typeof c?this.loadTemplate(c):this.isNodeOrElement(c)?c:void console.warn("ag-Grid: iconRenderer should return back a string or a dom object")},e.addStylesToElement=function(e,t){var n=this;t&&Object.keys(t).forEach((function(i){var r=n.hyphenToCamelCase(i);r&&(e.style[r]=t[i])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth}
1,e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=this.loadTemplate("<div/>");for(document.body.appendChild(n);;){var i=2*e;if(n.style.height=i+"px",i>t||n.clientHeight!==i)break;e=i}return document.body.removeChild(n),e},e.getScrollbarWidth=function(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),n},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),n=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(t);if("touch"===i.overflowScrolling&&(n=!0),!n)for(var r=0,o=e;r<o.length;r++)if("touch"===i[o[r]+"OverflowScrolling"]){n=!0;break}return t.parentNode&&t.parentNode.removeChild(t),n},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.isCharacterKey=function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},e.setDisplayed=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",!t)},e.setElementWidth=function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):this.setFixedWidth(e,t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setElementHeight=function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):this.setFixedHeight(e,t)},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isIOSUserAgent=function(){return void 0===this.isIOS&&(this.isIOS=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),this.isIOS},e.getTarget=function(e){return e.target||e.srcElement},e.isElementChildOfClass=function(e,t,n){for(var i=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,n&&++i>n)break}return!1},e.isElementInEventPath=function(e,t){return!(!t||!e)&&h.getEventPath(t).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var t=[],n=h.getTarget(e);n;)t.push(n),n=n.parentElement;return t},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)}
1,e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var n=[];!function e(i){i.forEach((function(i){if(i.group||i.hasChildren()){n.push(i.key);var r=n.join("|");t(i,r),e(i.childrenAfterGroup),n.pop()}}))}(e)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.capitalise=function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var n=[];return this.iterateObject(e,(function(e,i){var r=t.camelCaseToHyphen(e);n.push(r+": "+i+";")})),n.join(" ")},e.isNumeric=function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},e.escape=function(e){return null!=e&&e.replace?e.replace(c,(function(e){return l[e]})):e},e.normalizeWheel=function(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}},e.debounce=function(e,t,n){var i;return void 0===n&&(n=!1),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=this,a=n&&!i;window.clearTimeout(i),i=window.setTimeout((function(){i=null,n||e.apply(s,r)}),t),a&&e.apply(s,r)}},e.stopPropagationForAgGrid=function(e){e.__ag_Grid_Stop_Propagation=!0},e.isStopPropagationForAgGrid=function(e){return!0===e.__ag_Grid_Stop_Propagation},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&(!e||null!=t)&&e===t},e.get=function(e,t,n){if(null==e)return n;for(var i=t.split("."),r=e;i.length>1;)if(null==(r=r[i.shift()]))return n;var o=r[i[0]];return null!=o?o:n},e.set=function(e,t,n){if(null!=e){for(var i=t.split("."),r=e;i.length>1;)if(null==(r=r[i.shift()]))return;r[i[0]]=n}},e.addSafePassiveEventListener=function(t,n,i,r){var o=this.includes(e.PASSIVE_EVENTS,i)?{passive:!0}:void 0;this.includes(e.OUTSIDE_ANGULAR_EVENTS,i)?t.addEventListenerOutsideAngular(n,i,r,o):n.addEventListener(i,r,o)},e.camelCaseToHumanText=function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var n=document.querySelector("#__ag__message");n||(n=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)),n.insertBefore(t,n.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){for(var n=function(e,n){var i=t[e.id],r=t[n.id],o=void 0!==i,s=void 0!==r;return o&&s?i-r:o||s?o?1:-1:e.__objectId-n.__objectId},i=!1,r=0;r<e.length-1;r++)if(n(e[r],e[r+1])>0){i=!0;break}i&&e.sort(n)}},e.fuzzyCheckStrings=function(e,t,n){var i=this,r={},o=e.filter((function(e){return!t.some((function(t){return t===e}))}));return o.length>0&&o.forEach((function(e){return r[e]=i.fuzzySuggestions(e,n)})),r},e.fuzzySuggestions=function(e,t,n,i){var r=i?h.string_weighted_distances:h.string_distances,o=t.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return o.sort((function(e,t){return t.relevance-e.relevance})),n&&(o=o.filter((function(e){return 0!==e.relevance}))),o.map((function(e){return e.value}))},e.get_bigrams=function(e){var t,n,i,r=e.toLowerCase(),o=new Array(r.length-1);for(t=n=0,i=o.length;n<=i;t=n+=1)o[t]=r.slice(t,t+2);return o},e.string_distances=function(e,t){if(0===e.length&&0===t.length)return 0;var n,i,r=h.get_bigrams(e),o=h.get_bigrams(t),s=r.length+o.length,a=0;for(n=0,i=r.length;n<i;n++){var l,c=r[n],u=void 0;for(u=0,l=o.length;u<l;u++)c===o[u]&&a++}return a>0?2*a/s:0},e.string_weighted_distances=function(e,t){for(var n=e.replace(/\s/g,""),i=t.replace(/\s/g,""),r=0,o=0;o<n.length;o++){var s=i.indexOf(n[o]);-1!==s&&(r+=100*(i.length-s)/i.length,r*=r)}return r},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var n=e.getGui();null!=n&&("object"==typeof n?t.appendChild(n):t.innerHTML=n)}))},e.convertToSet=function(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t},e.deepFreeze=function(e){var t=this;return Object.freeze(e),h.values(e).filter((function(e){return null!=e}
1)).forEach((function(e){"object"!=typeof e&&"function"!=typeof e||t.deepFreeze(e)})),e},e.PASSIVE_EVENTS=["touchstart","touchend","touchmove","touchcancel"],e.OUTSIDE_ANGULAR_EVENTS=["mouseover","mouseout","mouseenter","mouseleave"],e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"\xa3$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.supports={},e.isEventSupported=(t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(n){if("boolean"==typeof e.supports[n])return e.supports[n];var i=document.createElement(t[n]||"div"),r=(n="on"+n)in i;return r||(i.setAttribute(n,"return;"),r="function"==typeof i[n]),i=null,e.supports[n]=r}),e.areEqual=function(e,t){return e.length===t.length&&e.every((function(e,n){return t[n]===e}))},e.keys=function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t},e.values=function(e){return Object.keys(e).map((function(t){return e[t]}))},e.includes=function(e,t){return e.indexOf(t)>-1},e.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},e.decToHex=function(e,t){for(var n="",i=0;i<t;i++)n+=String.fromCharCode(255&e),e>>>=8;return n},e.utf8_encode=function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function i(e){if(0==(4294967168&e))return t(e);var i="";return 0==(4294965248&e)?i=t(e>>6&31|192):0==(4294901760&e)?(function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=t(e>>12&15|224),i+=n(e,6)):0==(4292870144&e)&&(i=t(e>>18&7|240),i+=n(e,12),i+=n(e,6)),i+t(63&e|128)}for(var r=function(e){for(var t,n,i=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}(e),o=r.length,s=-1,a="";++s<o;)a+=i(r[s]);return a},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.getProperty=function(e,t){return e[t]},e.setProperty=function(e,t,n){return e[t]=n},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"contracted",groupExpanded:"expanded",chart:"chart",close:"cross",cancel:"cancel",check:"tick",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",groupLoading:"loading",data:"data",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",smallDown:"small-down",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e}(),d=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}(),h=u;!function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(i||(i={}));var p=function(){function e(e){this.status=i.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var n=[],i=t.length;t.forEach((function(t,r){t.then((function(t){i--,n[r]=t,0==i&&e(n)})),n.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===i.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===i.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var n=this;return new e((function(e){n.then((function(n){e(t(n))}))}))},e.prototype.resolveNow=function(e,t){return this.status==i.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=i.RESOLVED,this.resolution=e,this.listOfWaiters.forEac
1h((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),f=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=h.toStringOrNull(e);for(var n=0;;){var i=void 0;if(e?(i=e,0!==n&&(i+="_"+n)):t?(i=t,0!==n&&(i+="_"+n)):i=""+n,!this.existingKeys[i])return this.existingKeys[i]=!0,i;n++}},e}(),m=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return h.values(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},e.prototype.createComponentFromElement=function(e,t){return this.createComponent(e.nodeName,t)},e.prototype.createComponent=function(e,t){if(this.componentsMappedByName&&this.componentsMappedByName[e]){var n=new this.componentsMappedByName[e];return this.wireBean(n,t),n}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),h.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),h.iterateObject(this.beanWrappers,(function(t,n){var i;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,o,s=e.getBeansForParameters(i,n.bean.name),a=(r=n.bean,o=[null].concat(s),new(r.bind.apply(r,o)));n.beanInstance=a}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;t?this.beanWrappers[t.beanName]={bean:e,beanInstance:null,beanName:t.beanName}:console.error("context item "+(e.prototype.constructor?e.prototype.constructor.name:""+e)+" is not a bean")},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,i){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=t.lookupBeanInstance(i,n.beanName,n.optional);e[n.attributeName]=r}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(n,i){h.iterateObject(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var o=t.getBeansForParameters(r,i);e[n].apply(e,o)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var n=Object.getPrototypeOf(e);null!=n;){var i=n.constructor;i.hasOwnProperty("__agBeanMetaData")&&t(i.__agBeanMetaData,this.getBeanName(i)),n=Object.getPrototypeOf(n)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var n=this,i=[];return e&&h.iterateObject(e,(function(e,r){var o=n.lookupBeanInstance(t,r);i[Number(e)]=o})),i},e.prototype.lookupBeanInstance=function(e,t,n){if(void 0===n&&(n=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var i=this.beanWrappers[t];return i?i.beanInstance:(n||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var n=this;
1e.forEach((function(e){n.forEachMetaDataInHierarchy(e,(function(n){var i=n[t];i&&i.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();function g(e,t,n){var i=S(e.constructor);i.postConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function y(e,t,n){var i=S(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function v(e,t,n){var i=S(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function _(e){return function(t){S(t).beanName=e}}function b(e){return function(t,n,i){C(t,e,!1,0,n,null)}}function w(e){return function(t,n,i){C(t,e,!0,0,n,null)}}function C(e,t,n,i,r,o){if(null!==t)if("number"!=typeof o){var s=S(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:t,optional:n})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function E(e){return function(t,n,i){var r,o="function"==typeof t?t:t.constructor;if("number"==typeof i){var s=void 0;n?(r=S(o),s=n):(r=S(o),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][i]=e}}}function S(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var D,x=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},T=function(e,t){return function(n,i){t(n,i,e)}},O=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}
1var t;return t=e,e.prototype.setBeans=function(e,t,n){if(void 0===n&&(n=null),this.logger=e.create("EventService"),n){var i=t.useAsyncEvents();this.addGlobalListener(n,i)}},e.prototype.getListeners=function(e,t){var n=t?this.allAsyncListeners:this.allSyncListeners,i=n.get(e);return i||(i=new Set,n.set(e,i)),i},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n).delete(t)},e.prototype.addModalPriorityEventListener=function(e,n,i){void 0===i&&(i=!1),this.addEventListener(e+t.PRIORITY,n,i)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,n){var i=this,r=e.type,o=function(t){return t.forEach((function(t){n?i.dispatchAsync((function(){return t(e)})):t(e)}))};o(this.getListeners(r+t.PRIORITY,n)),o(this.getListeners(r,n)),(n?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(t){n?i.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",x([T(0,E("loggerFactory")),T(1,E("gridOptionsWrapper")),T(2,E("globalEventListener"))],e.prototype,"setBeans",null),t=x([_("eventService")],e)}();(D=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",D.CommunityAllModules="@ag-grid-community/all",D.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",D.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",D.CsvExportModule="@ag-grid-community/csv-export",D.RowNodeCache="@ag-grid-community/row-node-cache",D.EnterpriseCoreModule="@ag-grid-enterprise/core",D.EnterpriseAllModules="@ag-grid-enterprise/all",D.RowGroupingModule="@ag-grid-enterprise/row-grouping",D.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",D.FiltersToolPanelModule="@ag-grid-enterprise/filters-tool-panel",D.MenuModule="@ag-grid-enterprise/menu",D.SetFilterModule="@ag-grid-enterprise/set-filter",D.StatusBarModule="@ag-grid-enterprise/status-bar",D.SideBarModule="@ag-grid-enterprise/side-bar",D.RangeSelectionModule="@ag-grid-enterprise/range-selection",D.MasterDetailModule="@ag-grid-enterprise/master-detail",D.RichSelectModule="@ag-grid-enterprise/rich-select",D.GridChartsModule="@ag-grid-enterprise/charts",D.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",D.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",D.ExcelExportModule="@ag-grid-enterprise/excel-export",D.ClipboardModule="@ag-grid-enterprise/clipboard",D.AngularModule="@ag-grid-community/angular",D.ReactModule="@ag-grid-community/react",D.VueModule="@ag-grid-community/vue",D.PolymerModule="@ag-grid-community/polymer";var k=function(){function e(){}return e.register=function(t){e.modulesMap[t.moduleName]=t},e.registerModules=function(t){t&&t.forEach(e.register)},e.assertRegistered=function(e,t){if(this.isRegistered(e))return!0;var n="ag-Grid: unable to use "+t+" as module "+e+' is not present. You need to load the module with: import "'+e+'"';return h.doOnce((function(){console.warn(n)}),t+e),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return h.values(e.modulesMap)},e.modulesMap={},e}(),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},R=function(){function e(e,t,n,i){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new O,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=n,this.primary=i}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);
1var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.minWidth=this.colDef.minWidth?this.colDef.minWidth:e,this.maxWidth=this.colDef.maxWidth?this.colDef.maxWidth:t,this.colDef.flex&&(this.flex=this.colDef.flex),this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var n=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=h.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!n,this.tooltipFieldContainsDots=h.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!n,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){return!(h.missing(this.colDef)||h.missing(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==e)},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return this.primary&&(!!this.colDef.filter||!!this.colDef.filterFramework)},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function n(e,t,n){h.doOnce((function(){n?console.warn(e,n):h.doOnce((function(){return console.warn(e)}),t)}),t)}k.isRegistered(t.ModuleNames.RowGroupingModule)||["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(t){h.exists(e[t])&&n("ag-Grid: "+t+" is only valid with module Row Grouping, your column definition should not have "+t,"ColumnRowGroupingMissing"+t)})),k.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||n("ag-Grid: "+this.colDef.cellEditor+" can only be used with module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing"),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){h.exists(e[t])&&n("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")})),h.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&n("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),h.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup","ColumnCheck_sksldjf"),h.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_ieiruhgdf"),h.get(this,"colDef.cellRendererParams.keyMap",null)&&n("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator","ColumnCheck_uitolghj"),e.floatingCellRenderer&&(n("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer","ColumnCheck_soihwewe"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(n("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework","ColumnCheck_zdkiouhwer"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams","ColumnCheck_retiuhjs"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(n("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter","ColumnCheck_qwroeihjdf"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(n("ag-Grid: since v12, cellFormatter is now valueFormatter","ColumnCheck_eoireknml"),h.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&n("ag-Grid: since v15, headerCellTemplate is gone, use header component instead.","ColumnCheck_eroihxcm"),e.headerCellRenderer&&n("ag-Grid: since v15, headerCellRenderer is gone, use header component instead.","ColumnCheck_terteuh"),e.volatile&&n("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells.","ColumnCheck_weoihjxcv"),e.suppressSorting&&(n("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.","ColumnCheck_43ljrer",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(n("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.","ColumnCheck_erlkhfdm",this.colDef),this.colDef.filter=!1),e.suppressResize&&(n("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.","ColumnCheck_weoihjxcv",this.colDef),this.colDef.resizable=!1),e.tooltip&&(n("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.","ColumnCheck_adslknjwef",this.colDef),this.colDef.tooltipValueGetter=e.tooltip),e.suppressToolPanel&&(n("ag-Grid: since v22, colDef.suppressToolPanel is gone, instead use suppressColumnsToolPanel / suppressFiltersToolPanel.","ColumnCheck_weihjlsjkdf",this.colDef),this.colDef.suppressColumnsToolPanel=!0)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===o.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===o.SORT_DESC},e.prototype.isSortNone=function(){return h.missing(this.sort)},e.prototype.isSorting=function(){return h.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,i){void 0===n&&(n="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(e.EVENT_FILTER_CHANGED,n);i&&h.mergeDeep(r,i),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){this.pinned=!0===e||e===o.PINNED_LE
1FT?o.PINNED_LEFT:e===o.PINNED_RIGHT?o.PINNED_RIGHT:null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===o.PINNED_LEFT||this.pinned===o.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===o.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===o.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var i=!0===t;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,n)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(h.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)},e.prototype.getRowSpan=function(e){if(h.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(t,n){void 0===n&&(n="api"),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.flex&&"flex"!==n&&(this.flex=0),this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,n)))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",I([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),I([b("columnUtils")],e.prototype,"columnUtils",void 0),I([b("columnApi")],e.prototype,"columnApi",void 0),I([b("gridApi")],e.prototype,"gridApi",void 0),I([b("context")],e.prototype,"context",void 0),I([y],e.prototype,"initialise",null),e}(),M=function(){function e(e,t,n,i){this.displayedChildren=[],this.localEventService=new O,this.groupId=t,this.instanceId=n,this.originalColumnGroup=e,this.pinned=i}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEac
1h((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=h.last(this.displayedChildren).getLeft();this.setLeft(t)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var n=!1;return this.children.forEach((function(i){t===i&&(n=!0),i instanceof e&&i.isChildInThisGroupDeepSearch(t)&&(n=!0)})),n},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof R?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof R?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var n=this;if(this.isPadding())for(;n.getParent()&&n.isPadding();)n=n.getParent();n.originalColumnGroup.isExpandable()?this.children.forEach((function(i){switch(i.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.originalColumnGroup.isExpanded()&&t.displayedChildren.push(i);break;case e.HEADER_GROUP_SHOW_CLOSED:n.originalColumnGroup.isExpanded()||t.displayedChildren.push(i);break;default:i instanceof e&&i.isPadding()&&!i.displayedChildren.length||t.displayedChildren.push(i)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),A=function(){function e(e,t,n,i){this.localEventService=new O,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=n,this.level=i}return e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t,this.localEventService.dispatchEvent({type:e.EVENT_EXPANDED_CHANGED})},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEac
1h((function(n){n instanceof R?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?M.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(R.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,i=!1,r=this.findChildren(),o=0,s=r.length;o<s;o++){var a=r[o];if(a.isVisible()){var l=a.getColumnGroupShow();l===M.HEADER_GROUP_SHOW_OPEN?(t=!0,i=!0):l===M.HEADER_GROUP_SHOW_CLOSED?(n=!0,i=!0):(t=!0,n=!0,l===M.HEADER_GROUP_PADDING&&(i=i||a.children.some((function(e){return void 0!==e.getColumnGroupShow()}))))}}var c=t&&n&&i;this.expandable!==c&&(this.expandable=c,this.localEventService.dispatchEvent({type:e.EVENT_EXPANDABLE_CHANGED}))}},e.prototype.findChildren=function(){var t=this.children,n=t[0];if(n&&(!n.isPadding||!n.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),P={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}},L=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},N=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,n){var i=new f;if(n){var r=n.map((function(e){return e.getId()}));i.addExistingKeys(r)}var o=n?n.slice():null,s=this.recursivelyCreateColumns(e,0,t,o,i,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof A&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var n=this,i=[];return e.forEach((function(e){var r=n.createAutoGroupTreeItem(t,e);i.push(r)})),i},e.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,i=this.findDepth(e)-1;i>=0;i--){var r=new A(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.context.wireBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},e.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof A;)t++,n=n[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,n,i){for(var r=[],o=0;o<e.length;o++){var s=e[o];if(s instanceof A){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,i);a.setChildren(l),r.push(a)}else{for(var c=void 0,u=void 0,d=n-1;d>=t;d--){var h=i.getUniqueKey(null,null),p=this.createMergedColGroupDef(null),f=new A(p,h,!0,t);this.context.wireBean(f),u&&u.setChildren([f]),u=f,c||(c=u)}if(c){if(r.push(c),e.some((function(e){return e instanceof A}))){u.setChildren([s]);continue}u.setChildren(e);break}r.push(s)}}return r},e.prototype.findMaxDept=function(e,t){for(var n=t,i=0;i<e.length;i++){var r=e[i];if(r instanceof A){var o=this.findMaxDept(r.getChildren(),t+1);n<o&&(n=o)}}return n},e.prototype.recursivelyCreateColumns=function(e,t,n,i,r,o){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(n,e,t,i,r,o):s.createColumn(n,e,i,r,o),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,n,i,r,o){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId,null),l=new A(s,a,!1,n);this.context.wireBean(l);var c=this.recursivelyCreateColumns(s.children,n+1,e,i,r,l);return l.setChildren(c),l},e.prototype.createMergedColGroupDef=function(e){var t={};return h.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),h.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,n,i,r){var o=this.mergeColDefs(t);this.checkForDeprecatedItems(o);var s=this.findExistingColumn(t,n);if(s)s.setColDef(o,t);else{var a=i.getUniqueKey(o.colId,o.field);s=new R(o,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var n=h.find(t,(function(t){var n=t.getUserProvidedColDef();return!(!n||n!==e&&(null==n.colId||n.colId!==e.colId))}));return n&&h.removeFromArray(t,n),n},e.prototype.mergeColDefs=function(e){var t={};return h.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),h.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var n;if(e.type instanceof Array)e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e.type;else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");n=e.type.split(",")}var i=h.assign({},this.gridOptionsWrapper.getColumnTypes(),P);
1n.forEach((function(e){var n=i[e.trim()];n?h.assign(t,n):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},L([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),L([b("columnUtils")],e.prototype,"columnUtils",void 0),L([b("context")],e.prototype,"context",void 0),L([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),L([_("columnFactory")],e);var t}(),F=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFu
1ncChangeRequest",e}(),j=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return this.existingIds[e]=t="number"!=typeof n?0:n+1,t},e}(),V=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},H=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0,this.flexActive=!1}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,r=this.columnFactory.createColumnTree(e,!0,i);this.primaryColumnTree=r.columnTree,this.primaryHeaderRowCount=r.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.createValueColumns(t,i),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&n&&this.resetColumnState(!0,t),this.eventService.dispatchEvent({type:F.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t}),this.eventService.dispatchEvent({type:F.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi}),this.flexActive=!!h.find(this.getDisplayedCenterColumns(),(function(e){return!!e.getFlex()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];t&&h.exists(t);)n.push(t),t=this.getDisplayedColAfter(t);return n},e.prototype.checkDisplayedVirtualColumns=function(){if(h.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")&&this.eventService.dispatchEvent({type:F.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.eventService.dispatchEvent({type:F.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var n=this.getPrimaryColumn(t),i=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var r=t.getColDef().pivotKeys,o=t.getColDef().pivotValueColumn;h.compareArrays(r,e)&&o===n&&(i=t)})),i},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,n=this.displayedRightColumns?h.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?h.last(this.displayedLeftColumns):null,n=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(i){i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===n,e)}))},e.prototype.autoSizeColumns=function(e,t,n){var i=this;void 0===n&&(n="api");var r=[],o=-1;for(null==t&&(t=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==o;)o=0,this.actionOnGridColumns(e,(function(e){if(r.indexOf(e)>=0)return!1;var s=i.autoWidthCalculator.getPreferredWidthForColumn(e,t);if(s>0){var a=i.normaliseColumnWidth(e,s);e.setActualWidth(a,n),r.push(e),o++}return!0}),n);r.length&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"})},e.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns([e],t,n)},e.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns(n,e,t)},e.prototype.getColumnsFromTree=function(e){var t=[],n=function(e){for(var i=0;i<e.length;i++){var r=e[i];r instanceof R?t.push(r):r instanceof A&&n(r.getChildren())}};return n(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case o.PINNED_LE
1FT:return this.getLeftDisplayedColumnGroups();case o.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,n,i){for(var r,o=[],s=null,a=function(a){var l,c=t[a],u=t.length-a,d=Math.min(c.getColSpan(e),u),h=[c];if(d>1){for(var p=d-1,f=1;f<=p;f++)h.push(t[a+f]);a+=p}n?(l=!1,h.forEach((function(e){n(e)&&(l=!0)}))):l=!0,l&&(0===o.length&&s&&i&&i(c)&&o.push(s),o.push(c)),s=c,r=a},l=0;l<t.length;l++)a(l),l=r;return o},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,n,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),n=e.getLeft()+e.getActualWidth(),i=this.viewportLeft-200,r=this.viewportRight+200;return!(t<i&&n<i||t>r&&n>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,n,i,r,o){var s=this;if(void 0===o&&(o="api"),e&&!h.missingOrEmpty(e)){var a=!1;e.forEach((function(e){var r=s.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;h.removeFromArray(t,r)}i(r),a=!0}})),a&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.eventService.dispatchEvent({type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o}))}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,F.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),F.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),F.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),F.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,F.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){
1n.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),F.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,n,i,r){var o=this;t.length=0,h.exists(e)&&e.forEach((function(e){var n=o.getPrimaryColumn(e);n&&t.push(n)})),this.primaryColumns.forEach((function(e){var n=t.indexOf(e)>=0;i(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r),this.eventService.dispatchEvent({type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r})},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,F.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(i)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),F.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),F.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,n,i,r){void 0===r&&(r="api");var o=this.getPrimaryOrGridColumn(e);if(o){var s=[];if(s.push({width:t,ratios:[1],columns:[o]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(n=!n),n){var a=this.getDisplayedColAfter(o);if(!a)return;var l=o.getActualWidth()-t,c=a.getActualWidth()+l;s.push({width:c,ratios:[1],columns:[a]})}this.resizeColumnSets(s,i,r),this.flexActive&&this.refreshFlexedColumns()}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.width,n=0,i=0,r=!0;return e.columns.forEach((function(e){n+=e.getMinWidth(),e.getMaxWidth()>0?i+=e.getMaxWidth():r=!1})),t>=n&&(!r||t<=i)},e.prototype.resizeColumnSets=function(e,t,n){if(h.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var i=[],r=[];e.forEach((function(e){var t=e.width,o=e.columns,s=e.ratios,a={},l={};o.forEach((function(e){return r.push(e)}));for(var c=!0,u=0,d=function(){if(++u>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,i=t;o.forEach((function(t,r){l[t.getId()]?i-=a[t.getId()]:(e.push(t),n+=s[r])}));var r=1/n;e.forEach((function(n,o){var u;o===e.length-1?u=i:(u=Math.round(s[o]*t*r),i-=u),u<n.getMinWidth()?(u=n.getMinWidth(),l[n.getId()]=!0,c=!0):n.getMaxWidth()>0&&u>n.getMaxWidth()&&(u=n.getMaxWidth(),l[n.getId()]=!0,c=!0),a[n.getId()]=u}))};c&&"break"!==d(););o.forEach((function(e){var t=a[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),i.push(e))}))}));var o=i.length>0;o&&(this.setLeftValues(n),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),(o||t)&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_RESIZED,columns:r,column:1===r.length?r[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n})}else if(t){var s=e&&e.length>0?e[0].columns:null;this.eventService.dispatchEvent({type:F.EVENT_COLUMN_RESIZED,columns:s,column:s&&1===s.length?s[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n})}},e.prototype.setColumnAggFunc=function(e,t,n){void 0===n&&(n="api"),e&&(e.setAggFunc(t),this.eventService.dispatchEvent({type:F.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:n}))},e.prototype.moveRowGroupColumn=function(e,t,n){void 0===n&&(n="api");var i=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,i),this.eventService.dispatchEvent({type:F.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n})},e.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invali
1d location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);!this.doesMovePassRules(i,t)||(h.moveInArray(this.gridColumns,i,t),this.updateDisplayedColumns(n),this.eventService.dispatchEvent({type:F.EVENT_COLUMN_MOVED,columns:i,column:1===i.length?i[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:n}),this.columnAnimationService.finish())},e.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return h.moveInArray(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,n=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(n=!1):t=!0})),n},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof A){var i=n;if(i.getColGroupDef()&&i.getColGroupDef().marryChildren){var r=[];i.getLeafColumns().forEach((function(t){var n=e.indexOf(t);r.push(n)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>i.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},e.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api"),this.moveColumn(this.gridColumns[e],t,n)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case o.PINNED_LEFT:return this.leftWidth;case o.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),n=this.getWidthOfColsInList(this.displayedRightColumns);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventService.dispatchEvent({type:F.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case o.PINNED_LEFT:return this.getDisplayedLeftColumns();case o.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return h.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return h.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},e.prototype.setColumnsVisible=function(e,t,n){var i=this;void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:F.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:n}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},e.prototype.setColumnsPinned=function(e,t,n){var i,r=this;void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),i=!0===t||t===o.PINNED_LE
1FT?o.PINNED_LEFT:t===o.PINNED_RIGHT?o.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==i&&(e.setPinned(i),!0)}),n,(function(){return{type:F.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,n,i){var r=this;if(!h.missingOrEmpty(e)){var o=[];if(e.forEach((function(e){var n=r.getGridColumn(e);n&&!1!==t(n)&&o.push(n)})),o.length&&(this.updateDisplayedColumns(n),h.exists(i)&&i)){var s=i();s.columns=o,s.column=1===o.length?o[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],n=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var i=t.getParent();i.getOriginalColumnGroup().getLevel()!==n;)i=i.getParent();if(i!==e)return i}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&h.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:i,width:e.getActualWidth(),pivotIndex:n,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(h.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,n){return t.indexOf(e.colId)-t.indexOf(n.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var n=this.getColumnsFromTree(this.primaryColumnTree),i=[],r=1e3,o=1e3;n&&n.forEach((function(e){var t=e.getColDef().rowGroupIndex,n=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};h.missing(t)&&n&&(l.rowGroupIndex=r++),h.missing(s)&&a&&(l.pivotIndex=o++),i.push(l)})),this.setColumnState(i,e,t)},e.prototype.setColumnState=function(e,t,n){var i=this;if(void 0===t&&(t=!1),void 0===n&&(n="api"),h.missingOrEmpty(this.primaryColumns))return!1;var r=this.getColumnState();this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},c=[];if(e&&e.forEach((function(e){if(h.exists(i.getAutoColumn(e.colId)))c.push(e);else{var t=i.getPrimaryColumn(e.colId);t?(i.syncColumnWithStateItem(t,e,a,l,n),h.removeFromArray(o,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),o.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),c.forEach((function(e){var t=i.getAutoColumn(e.colId);i.syncColumnWithStateItem(t,e,a,l,n)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}return this.putFixedColumnsFirst(),this.updateDisplayedColumns(n),t||this.eventService.dispatchEvent({type:F.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:n}),this.raiseColumnEvents(r,n),s},e.prototype.raiseColumnEvents=function(e,t){var n=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var i=this.getColumnState(),r=function(r,o,s){h.compareArrays(e.map(o).sort(),i.map(o).sort())||n.eventService.dispatchEvent({type:r,columns:s,column:1===s.length?s[0]:null,api:n.gridApi,columnApi:n.columnApi,source:t})},o=function(t){var i=[],r={};return e.forEach((function(e){r[e.colId]=e})),n.gridColumns.forEach((function(e){var n=r[e.getColId()];n&&!t(n,e)||i.push(e)})),i};r(F.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns),r(F.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns),r(F.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns),this.raiseColumnPinnedEvent(o((function(e,t){return e.pinned!==t.getPinned()})),t);var s=o((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t),this.raiseColumnResizeEvent(o((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){e.length&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t})},e.prototype.raiseColumnVisibleEvent=function(e,t){e.length&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t})},e.prototype.raiseColumnResizeEvent=function(e,t){e.length&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t})},e.prototype.raiseColumnMovedEvent=function(e,t){for(var n=[],i=this.getColumnState(),r=function(t){var r=e[t],s=i[t];if(!r||s.hide)return"continue";if(r.colId!==s.colId){var a=h.find(o.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));n.push(a)}},o=this,s=0;s<i.length;s++)r(s);n.length&&this.eventService.dispatchEvent({type:F.EVENT_COLUMN_MOVED,columns:n,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t})},e.prototype.sortColumnListUsingIndexes=function(e,t,n){return e[t.getId()]-e[n.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,n,i,r){if(e){e.setVisible(!t.hide,r),e.setPinned(t.pinned);
1var o=this.gridOptionsWrapper.getMinColWidth();t.width&&o&&t.width>=o&&e.setActualWidth(t.width,r),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,r),this.valueColumns.push(e)):(h.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,r)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,r),n[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,r),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,r),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1,r)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var i=t(e);i&&n.push(i)})),n},e.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("ag-Grid: could not find column "+e),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var n=0;n<t.length;n++)if(this.columnsMatch(t[n],e))return t[n];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&h.exists(this.groupAutoColumns)&&!h.missing(this.groupAutoColumns)?h.find(this.groupAutoColumns,(function(n){return t.columnsMatch(n,e)})):null},e.prototype.columnsMatch=function(e,t){var n=e===t,i=e.getColDef()===t,r=e.getColId()==t;return n||i||r},e.prototype.getDisplayNameForColumn=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;var i=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,i):i},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,n){var i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,n):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,n,i,r){var o=e.headerValueGetter;if(o){var s={colDef:e,column:t,columnGroup:n,originalColumnGroup:i,location:r,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof o?o(s):"string"==typeof o?this.expressionService.evaluate(o,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?h.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,i=e.getColDef().pivotValueColumn,r=null;if(h.exists(i))r=i?i.getAggFunc():null,n=!0;else{var o=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();o&&s?(r=e.getAggFunc(),n=!0):n=!1}if(n){var a="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof M)return e;var n=this.getAllDisplayedColumnGroups(),i="number"==typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof M){var o=n;(i?e===o.getGroupId()&&t===o.getInstanceId():e===o.getGroupId())&&(r=o)}})),r},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,n,i,r){var o=this;t||(t=[]);var s=t.filter((function(e){return o.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return o.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));
1s.forEach((function(e){return n(e,!1)}));var c=[];return l.forEach((function(e){"number"==typeof i(e.getColDef())&&c.push(e)})),c.sort((function(e,t){var n=i(e.getColDef()),r=i(t.getColDef());return n===r?0:n<r?-1:1})),l.forEach((function(e){if(r(e.getColDef())){if(c.indexOf(e)>=0)return;c.push(e)}})),c.forEach((function(e){return n(e,!0)})),a.concat(c)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof A){var n={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(n)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof A){var n=t;e.push({groupId:n.getGroupId(),open:n.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var i=[];e.forEach((function(e){var t=e.open,r=n.getOriginalColumnGroup(e.groupId);r&&r.isExpanded()!==t&&(n.logger.log("columnGroupOpened("+r.getGroupId()+","+t+")"),r.setExpanded(t),i.push(r))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),i.forEach((function(e){n.eventService.dispatchEvent({type:F.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi})})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,n){var i;void 0===n&&(n="api"),i=e instanceof A?e.getId():e,this.setColumnGroupState([{groupId:i,open:t}],n)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof A)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof A){var i=n;i.getId()===e&&(t=i)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.gridColumns.filter(this.pivotMode&&!this.secondaryColumnsPresent?function(t){var n=e.groupAutoColumns&&h.includes(e.groupAutoColumns,t),i=e.valueColumns&&h.includes(e.valueColumns,t);return n||i}:function(t){return e.groupAutoColumns&&h.includes(e.groupAutoColumns,t)||t.isVisible()})},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){h.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&h.exists(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var n=e&&e.length>0;if(n||this.secondaryColumnsPresent){if(n){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){var i=function(e){e.forEach((function(e){if(h.exists(e.children)){var r=e;n&&n(r),i(r.children)}else t&&t(e)}))};e&&i(e)}},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.eventService.dispatchEvent({type:F.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!h.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(n){e.lastPrimaryOrder.indexOf(n)>=0&&(t=!1)})),!t){var n=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),i=this.gridColumns.filter((function(e){return n.indexOf(e)<0})),r=n.slice();
1i.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;)t.getLeafColumns().forEach((function(e){var t=r.indexOf(e)>=0,i=n.indexOf(e)<0;t&&i&&n.push(e)})),t=t.getOriginalParent();if(n.length){var i=n.map((function(e){return r.indexOf(e)})),o=Math.max.apply(Math,i);h.insertIntoArray(r,e,o+1)}else r.push(e)}else r.push(e)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.columnsForQuickFilter=this.groupAutoColumns?this.primaryColumns.concat(this.groupAutoColumns):this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!h.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:F.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.allDisplayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,n=this.primaryColumns.slice(0),i=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(r){if(i){var o=t.getWidthOfColsInList(r);r.forEach((function(t){o-=t.getActualWidth(),t.setLeft(o,e)}))}else{var s=0;r.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}h.removeAllFromArray(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof M&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof R&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.allDisplayedCenterVirtualColumns=this.suppressColumnVirtualisation?this.displayedCenterColumns:this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case o.PINNED_LEFT:n=this.displayedLeftHeaderRows[t];break;case o.PINNED_RIGHT:n=this.displayedRightHeaderRows[t];break;default:n=this.displayedCentreHeaderRows[t]}return h.missing(n)&&(n=[]),n},e.prototype.updateDisplayedVirtualGroups=function(e){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var t=function(n,i,r){for(var o=!1,s=0;s<n.length;s++){var a=n[s];(a instanceof R?!0===e[a.getId()]:t(a.getDisplayedChildren(),i,r+1))&&(o=!0,i[r]||(i[r]=[]),i[r].push(a))}return o};t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return this.displayedCenterColumns.filter(this.isColumnInViewport.bind(this))},e.prototype.refreshFlexedColumns=function(e,t){if(void 0===t&&(t="flex"),this.flexActive&&(this.flexViewportWidth=e||this.flexViewportWidth,this.flexViewportWidth)){var n,i=this.displayedCenterColumns.filter((function(e){return!e.getFlex()})),r=this.displayedCenterColumns.filter((function(e){return e.getFlex()})),o=[];e:for(;;){var s=r.reduce((function(e,t){return e+t.getFlex()}),0);n=this.flexViewportWidth-this.getWidthOfColsInList(i);for(var a=0;a<r.length;a++){var l=r[a],c=n*l.getFlex()/s,u=void 0;if(c<l.getMinWidth()?u=l.getMinWidth():null!=l.getMaxWidth()&&c>l.getMaxWidth()&&(u=l.getMaxWidth()),u){l.setActualWidth(u,t),h.removeFromArray(r,l),i.push(l);continue e}o[a]=Math.round(c)}break}var d=n;r.forEach((function(e,n){e.setActualWidth(Math.min(o[n],d),t),d-=o[n]})),this.setLeftValues(t),this.updateBodyWidths(),this.fireResizedEventForColumns(r,t)}},e.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var i=this.getAllDisplayedColumns();if(!(e<=0)&&i.length){var r=[],o=[];
1i.forEach((function(e){!0===e.getColDef().suppressSizeToFit?o.push(e):r.push(e)}));for(var s=r.slice(0),a=!1,l=function(e){h.removeFromArray(r,e),o.push(e)};!a;){a=!0;var c=e-this.getWidthOfColsInList(o);if(c<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var u=c/this.getWidthOfColsInList(r),d=c,p=r.length-1;p>=0;p--){var f=r[p],m=Math.round(f.getActualWidth()*u);m<f.getMinWidth()?(f.setMinimum(t),l(f),a=!1):f.isGreaterThanMax(m)?(f.setActualWidth(f.getMaxWidth(),t),l(f),a=!1):f.setActualWidth(0===p?d:m,t),d-=m}}this.setLeftValues(t),this.updateBodyWidths(),n||this.fireResizedEventForColumns(s,t)}},e.prototype.fireResizedEventForColumns=function(e,t){var n=this;e.forEach((function(e){n.eventService.dispatchEvent({type:F.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:n.gridApi,columnApi:n.columnApi,source:t})}))},e.prototype.buildDisplayedTrees=function(e){var t=[],n=[],i=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":n.push(e);break;default:i.push(e)}}));var r=new j;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,o.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,o.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof M&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.gridOptionsWrapper.isGroupSuppressAutoColumn()&&!this.pivotMode,n=this.gridOptionsWrapper.isGroupSuppressRow();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||t||e||n)this.groupAutoColumns=null;else{var i=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(i,this.groupAutoColumns)&&(this.groupAutoColumns=i)}}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=t[n];if(e[n].getColId()!==i.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},V([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),V([b("expressionService")],e.prototype,"expressionService",void 0),V([b("columnFactory")],e.prototype,"columnFactory",void 0),V([b("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),V([b("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),V([b("eventService")],e.prototype,"eventService",void 0),V([b("columnUtils")],e.prototype,"columnUtils",void 0),V([b("context")],e.prototype,"context",void 0),V([b("columnAnimationService")],e.prototype,"columnAnimationService",void 0),V([b("autoGroupColService")],e.prototype,"autoGroupColService",void 0),V([w("aggFuncService")],e.prototype,"aggFuncService",void 0),V([w("valueCache")],e.prototype,"valueCache",void 0),V([b("columnApi")],e.prototype,"columnApi",void 0),V([b("gridApi")],e.prototype,"gridApi",void 0),V([y],e.prototype,"init",null),V([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),V([_("columnController")],e);var t}(),Y=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},B=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){var t=this.gridOptionsWrapper,n=null!=e.minWidth?e.minWidth:t.getMinColW
1idth(),i=null!=e.maxWidth?e.maxWidth:t.getMaxColWidth()||h.getMaxSafeInteger(),r=null!=e.width?e.width:t.getColWidth();return Math.max(Math.min(r,i),n)},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],i=!1,r=function(t,o){for(var s=0;s<t.length;s++){if(i)return;var a=t[s];a instanceof A?(r(a.getChildren(),o+1),n[o]=a):a===e&&(i=!0)}};return r(t,0),i?n:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var i=this;t&&t.forEach((function(t){t instanceof A&&i.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof M&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof M&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},Y([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Y([_("columnUtils")],e)}(),G=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},W=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,n,i,r){var o,s,a=this,l=[],c=this.mapOldGroupsById(r);return e.forEach((function(e){for(var r=a.getOriginalPathForColumn(t,e),u=[],d=!s,p=0;p<r.length;p++)if(d||r[p]!==s[p]){var f=a.createColumnGroup(r[p],n,c,i);u[p]=f,0==p?l.push(f):u[p-1].addChild(f)}else u[p]=o[p];0===u.length?l.push(e):h.last(u).addChild(e),o=u,s=r})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,n,i){var r=e.getGroupId(),o=t.getInstanceIdForKey(r),s=n[M.createUniqueId(r,o)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),h.exists(s)?s.reset():(s=new M(e,r,o,i),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},n=function(e){e.forEach((function(e){if(e instanceof M){var i=e;t[e.getUniqueId()]=i,n(i.getChildren())}}))};return e&&n(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof M){var i=e;n.setupParentsIntoColumns(i.getChildren(),i)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var n=[],i=!1,r=function(e,o){for(var s=0;s<e.length;s++){if(i)return;var a=e[s];a instanceof A?(r(a.getChildren(),o+1),n[o]=a):a===t&&(i=!0)}};return r(e,0),i?n:(console.warn("could not get path"),null)},G([b("columnUtils")],e.prototype,"columnUtils",void 0),G([b("context")],e.prototype,"context",void 0),G([_("displayedGroupCreator")],e)}(),U=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel"],e.ALL_PROPERTIES=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNo
1de","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems","fillOperation"],e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),z=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","flex","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),q=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var n=[];return t.forEach((function(t){var i=e.DEFAULT_BY_KEY[t];i?n.push(i):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}},e.parseComponents=function(t){var n=[];return t.forEach((function(t){var i=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));i=r}else i=t;n.push(i)})),n},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},filters:e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"}},e}(),K=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},$=function(e,t){return function(n,i){t(n,i,e)}},Q=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function X(e){return!0===e||"true"===e}var J=function(){function e(){this.propertyEventService=new O,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isEnableRangeSelection()&&k.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("ag-Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.addEventListener(n.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEac
1h((function(t){var n=Object.getOwnPropertyNames(t),i=Q(z.ALL_PROPERTIES,z.FRAMEWORK_PROPERTIES);e.checkProperties(n,i,i,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Q(U.ALL_PROPERTIES,U.FRAMEWORK_PROPERTIES,h.values(F).map((function(e){return ee.getCallbackForEvent(e)}))),n=Q(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,n,i,r){var o=h.fuzzyCheckStrings(e,t,n);h.iterateObject(o,(function(e,t){console.warn("ag-grid: invalid "+i+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(o).length>0&&console.warn("ag-grid: to see all the valid "+i+" properties please check: "+r)},e.prototype.getDomData=function(e,t){var n=e[this.domDataKey];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var i=e[this.domDataKey];h.missing(i)&&(e[this.domDataKey]=i={}),i[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return X(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return X(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return X(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return X(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===o.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===o.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===o.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return h.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===o.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===o.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return X(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return X(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return X(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return X(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return X(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return X(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return X(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return X(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return X(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!X(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return X(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=X(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return X(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return X(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return X(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return X(this.gridOptions.groupMultiAutoColumn)||X(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return X(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return X(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return X(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return X(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return X(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return X(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return X(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return X(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return X(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return X(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return X(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return X(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return X(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||o.DOM_LAYOUT_NORMAL;return-1===[o.DOM_LAYOUT_PRINT,o.DOM_LAYOUT_AUTO_HEIGHT,o.DOM_LAYOUT_NORMAL].indexOf(e)?(h.doOnce((function(){return console.warn("ag-Grid: "+e+" is not val
1id for DOM Layout, valid values are "+o.DOM_LAYOUT_NORMAL+", "+o.DOM_LAYOUT_AUTO_HEIGHT+" and "+o.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),o.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return X(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return X(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return X(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return X(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return X(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return X(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return X(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return X(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return X(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return X(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return X(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return X(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return X(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return X(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return X(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return X(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return X(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return this.gridOptions.undoRedoCellEditingLimit},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return X(this.gridOptions.embedFullWidthRows)||X(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return X(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return X(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return X(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!X(this.gridOptions.enableCharts)&&k.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return X(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return X(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return X(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||X(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return X(this.gridOptions.purgeClosedRowNodes
1)},e.prototype.isSuppressPaginationPanel=function(){return X(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&X(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return X(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return X(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return X(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return X(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return X(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return X(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return X(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return X(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return X(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return X(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return X(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return X(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return X(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return X(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return X(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return X(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return X(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return X(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return X(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return X(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return X(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return h.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:o.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return X(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&X(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return X(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return X(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return X(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return k.isRegistered(t.ModuleNames.RangeSelectionModule)&&X(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return X(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return X(this.gridOptions.enableFillHandle)},e.prototype.getFillOperation=function(){return this.gridOptions.fillOperation},e.prototype.isSuppressMultiRangeSelection=function(){return X(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return X(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return X(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!X(this.gridOptions.masterDetail)&&k.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return X(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return X(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return X(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return X(this.gridOptions.suppressParentsInRowNodes
1)},e.prototype.isFunctionsReadOnly=function(){return X(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return X(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return X(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return X(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return X(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return X(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return X(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){return!!X(this.gridOptions.treeData)&&k.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return X(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return X(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return X(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return X(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return(e=this.gridOptions.viewportRowModelPageSize)>0?e:5;var e},e.prototype.getViewportRowModelBufferSize=function(){return(e=this.gridOptions.viewportRowModelBufferSize)>=0?e:5;var e},e.prototype.isServerSideSortingAlwaysResets=function(){return X(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return h.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var n=this.gridOptions,i=n[e];i!==t&&(n[e]=t,this.propertyEventService.dispatchEvent({type:e,currentValue:t,previousValue:i}))},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===o.DOM_LAYOUT_AUTO_HEIGHT,n=e===o.DOM_LAYOUT_PRINT,i=e===o.DOM_LAYOUT_NORMAL;
1this.layoutElements.forEach((function(e){h.addOrRemoveCssClass(e,"ag-layout-auto-height",t),h.addOrRemoveCssClass(e,"ag-layout-normal",i),h.addOrRemoveCssClass(e,"ag-layout-print",n)}))},e.prototype.addEventListener=function(e,t){n.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,t)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&h.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&h.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>n.MIN_COL_WIDTH?this.gridOptions.minColWidth:n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(h.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=o.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){return null==this.scrollWidth&&(this.scrollWidth="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:h.getScrollbarWidth()),this.scrollWidth},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called 
1infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var n={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},i={};
1Object.keys(n).forEach((function(t){var r=n[t],o=e.gridOptions[t];if(void 0!==o){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+r),i[r]=o}})),Object.keys(i).length>0&&!h.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=q.parse(t.sideBar));var r=this.gridOptions.sideBar;if(Object.keys(i).length>0&&r&&r.toolPanels){var o=r.toolPanels.filter((function(e){return"columns"===e.id}));1===o.length&&h.mergeDeep(o[0],{componentParams:i})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead."),t.enableOldSetFilterModel&&console.warn("ag-Grid: since v22.x, enableOldSetFilterModel is deprecated. Please move to the new Set Filter Model as the old one may not be supported in v23 onwards.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&h.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(h.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),h.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,n){var i=e.gridOptions.localeText;return i&&i[t]?i[t]:n}},e.prototype.globalEventHandler=function(e,t){var n=ee.getCallbackForEvent(e);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||h.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight)return t?{height:this.getDefaultRowHeight(),estimated:!0}
1:{height:this.gridOptions.getRowHeight({node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context}),estimated:!1};if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var n=this.getDefaultRowHeight(),i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,r=Math.min(n,i);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var o=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(o,r),estimated:!1}}return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.useNativeCheckboxes=function(){return this.environment.useNativeCheckboxes()},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",K([b("gridOptions")],e.prototype,"gridOptions",void 0),K([b("columnController")],e.prototype,"columnController",void 0),K([b("eventService")],e.prototype,"eventService",void 0),K([b("gridApi")],e.prototype,"gridApi",void 0),K([b("columnApi")],e.prototype,"columnApi",void 0),K([b("environment")],e.prototype,"environment",void 0),K([b("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),K([b("context")],e.prototype,"context",void 0),K([$(0,E("gridApi")),$(1,E("columnApi"))],e.prototype,"agWire",null),K([v],e.prototype,"destroy",null),K([y],e.prototype,"init",null),n=K([_("gridOptionsWrapper")],e)}(),Z=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},ee=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,n,i){void 0===i&&(i=!1),te(n),"object"!=typeof t&&(t={});var r=t,o=function(e){return void 0!==n[e]};return Z(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(o).forEach((function(e){return r[e]=n[e]})),e.BOOLEAN_PROPERTIES.filter(o).forEach((function(t){return r[t]=e.toBoolean(n[t])})),e.NUMBER_PROPERTIES.filter(o).forEach((function(t){return r[t]=e.toNumber(n[t])})),i||e.EVENTS.filter((function(t){return o(t)||o(e.getCallbackForEvent(t))})).forEach((function(e){return J.checkEventDeprecation(e)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,n,i,r){if(t){te(t);var o=n,s=function(e){return t[e]};Z(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(s).forEach((function(e){return o[e]=t[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(s).forEach((function(n){return o[n]=e.toBoolean(t[n].currentValue)})),e.NUMBER_PROPERTIES.filter(s).forEach((function(n){return o[n]=e.toNumber(t[n].currentValue)})),t.enableCellTextSelection&&i.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&i.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&i.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&i.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&i.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&i.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&i.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&i.setDatasource(t.datasource.currentValue),t.headerHeight&&i.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&i.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&i.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&i.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&i.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&i.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&i.setSideBar(t.sideBar.currentValue);var a={type:F.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};
1h.iterateObject(t,(function(e,t){a[e]=t})),i.dispatchEvent(a)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=U.STRING_PROPERTIES,e.OBJECT_PROPERTIES=U.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=U.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=U.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=U.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=U.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=U.ALL_PROPERTIES,e}();function te(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}ee.EVENTS=h.values(F);var ne,ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},re=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.getContext=function(){return e.context},this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new O),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,n){var i=this;if(!this.destroyed){e instanceof HTMLElement?h.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function(){e.removeEventListener(t,n),i.destroyFunctions=i.destroyFunctions.filter((function(e){return e!==r}))};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.wireDependentBean=function(e,t){return e.destroy&&this.addDestroyFunc(e.destroy.bind(e)),this.wireBean(e,t)},e.prototype.wireBean=function(e,t){return(t||this.getContext()).wireBean(e),e},e.EVENT_DESTROYED="destroyed",ie([b("context")],e.prototype,"context",void 0),ie([b("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ie([v],e.prototype,"destroy",null),e}(),oe=(ne=function(e,t){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),se=new d,ae=function(e){function t(t){var n=e.call(this)||this;return n.childComponents=[],n.annotatedEventListeners=[],n.displayed=!0,n.visible=!0,n.compId=se.next(),t&&n.setTemplate(t),n}return oe(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;h.copyNodeList(e.childNodes).forEach((function(n){var i=t.getContext().createComponentFromElement(n,(function(e){t.copyAttributesFromNode(n,e.getGui())}));if(i){if(i.addItems&&n.children.length){t.createChildComponentsFromTags(n);var r=Array.prototype.slice.call(n.children);i.addItems(r)}t.swapComponentForNode(i,e,n)}else n.childNodes&&t.createChildComponentsFromTags(n)}))},t.prototype.copyAttributesFromNode=function(e,t){h.iterateNamedNodeMap(e.attributes,(function(e,n){t.setAttribute(e,n)}))},t.prototype.swapComponentForNode=function(e,t,n){var i=e.getGui();t.replaceChild(i,n),t.insertBefore(document.createComment(n.nodeName),i),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,n)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var n=Object.getPrototypeOf(this),i=this;null!=n;){var r=n.__agComponentMetaData,o=n.constructor.name;
1r&&r[o]&&r[o].querySelectors&&r[o].querySelectors.forEach((function(n){i[n.attributeName]===t&&(i[n.attributeName]=e)})),n=Object.getPrototypeOf(n)}},t.prototype.setTemplate=function(e){var t=h.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),n=function(){var n=t.__agComponentMetaData,r=t.constructor.name;if(n&&n[r]&&n[r].querySelectors){var o=i;n[r].querySelectors.forEach((function(t){var n=e.eGui.querySelector(t.querySelector);n&&(o[t.attributeName]=n.__agComponent||n)}))}t=Object.getPrototypeOf(t)},i=this;null!=t;)n()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");h.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var n=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,n),e.annotatedEventListeners.push({eventName:t.eventName,listener:n})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],n=Object.getPrototypeOf(this);null!=n;){var i=n.__agComponentMetaData,r=n.constructor.name;if(void 0===r){var o=/function\s([^(]{1,})\(/.exec(n.constructor.toString());o&&o.length>1&&(r=o[1].trim())}i&&i[r]&&i[r][e]&&(t=t.concat(i[r][e])),n=Object.getPrototypeOf(n)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e){if(h.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){this.wireDependentBean(e,t)},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,h.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){e!==this.displayed&&(this.displayed=e,h.setDisplayed(this.eGui,e),this.dispatchEvent({type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},t.prototype.addOrRemoveCssClass=function(e,t){h.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var n=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return n.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){h.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){h.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([g],t.prototype,"createChildComponentsPreConstruct",null),t}(re),le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return le(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){h.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&h.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(ae),ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),de=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.eInput=n.getGui().querySelector("input"),n}return ue(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===o.KEY_BACKSPACE||e.keyPress===o.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==o.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),h.exists(t)&&(n.value=t),this.addDestroyableEventListener(n,"keydown",(function(e){(e.keyCode===o.KEY_PAGE_UP||e.keyCode===o.KEY_PAGE_DOWN)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(h.isBrowserSafari()||e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}}
1,t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){return this.params.parseValue(this.eInput.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-wrapper" role="presentation"><input class="ag-cell-edit-input" type="text"/></div>',t}(ce);function he(e){return pe.bind(this,"[ref="+e+"]")}function pe(e,t,n,i){null!==e?"number"!=typeof i?me(t,"querySelectors",{attributeName:n,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function fe(e,t,n){null!==e?me(t,"listenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function me(e,t,n){var i=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,e.constructor.name);i[t]||(i[t]=[]),i[t].push(n)}var ge,ye=function(){function e(e,t,n){var i=this;this.alive=!0,e.newDateComponent(t).then((function(e){i.alive?(i.dateComp=e,n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e}(),ve=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),be=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n        gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n        a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){var n=this;if(this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var i=this.rowModel.getType();this.newRowsActionKeep=[o.ROW_MODEL_TYPE_SERVER_SIDE,o.ROW_MODEL_TYPE_INFINITE].indexOf(i)>=0}h.setDisplayed(this.eApplyButton,this.applyActive),this.addDestroyableEventListener(this.eApplyButton,"click",(function(){return n.onBtApply()}));var r=!0===e.clearButton;h.setDisplayed(this.eClearButton,r),this.addDestroyableEventListener(this.eClearButton,"click",(function(){return n.onBtClear()}
1));var s=!0===e.resetButton;h.setDisplayed(this.eResetButton,s),this.addDestroyableEventListener(this.eResetButton,"click",(function(){return n.onBtReset()})),h.setDisplayed(this.eButtonsPanel,this.applyActive||r||s)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=h.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e){void 0===e&&(e=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e})},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.createTemplate=function(){var e=this.createBodyTemplate(),t=this.gridOptionsWrapper.getLocaleTextFunc();return"<div>\n                    <div class='ag-filter-body-wrapper' ref=\"eFilterBodyWrapper\">"+e+'</div>\n                    <div class="ag-filter-apply-panel" ref="eButtonsPanel">\n                        <button type="button" ref="eClearButton">'+t("clearFilter","Clear Filter")+'</button>\n                        <button type="button" ref="eResetButton">'+t("resetFilter","Reset Filter")+'</button>\n                        <button type="button" ref="eApplyButton">'+t("applyFilter","Apply Filter")+"</button>\n                    </div>\n                </div>"},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",be([he("eButtonsPanel")],t.prototype,"eButtonsPanel",void 0),be([he("eFilterBodyWrapper")],t.prototype,"eFilterBodyWrapper",void 0),be([he("eClearButton")],t.prototype,"eClearButton",void 0),be([he("eResetButton")],t.prototype,"eResetButton",void 0),be([he("eApplyButton")],t.prototype,"eApplyButton",void 0),be([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),be([b("rowModel")],t.prototype,"rowModel",void 0),be([y],t.prototype,"postConstruct",null),t}(ae),Ce=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ee=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(ge||(ge={}));var Se,De={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ce(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setValueFromFloatingFilter(t),this.setTypeFromFloatingFilter(e),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.value=e,this.eType2.value=null,this.eJoinOperatorAnd.checked=!0},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(ge.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(ge.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(ge.One),condition2:this.createCondition(ge.Two)}:this.createCondition(ge.One):null},t.prototype.getCondition1Type=function(){return this.eType1.value},t.prototype.getCondition2Type=function(){return this.eType2.value},t.prototype.getJoinOperator=function(){return this.eJoinOperatorOr.checked?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;
1if(!e&&t||e&&!t)return!1;var n,i=!e.operator,r=!t.operator;if(!i&&r||i&&!r)return!1;if(i)n=this.areSimpleModelsEqual(e,t);else{var o=e,s=t;n=o.operator===s.operator&&this.areSimpleModelsEqual(o.condition1,s.condition1)&&this.areSimpleModelsEqual(o.condition2,s.condition2)}return n},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,n="OR"===t.operator;this.eJoinOperatorAnd.checked=!n,this.eJoinOperatorOr.checked=n,this.eType1.value=t.condition1.type,this.eType2.value=t.condition2.type,this.setConditionIntoUi(t.condition1,ge.One),this.setConditionIntoUi(t.condition2,ge.Two)}else{var i=e;this.eJoinOperatorAnd.checked=!0,this.eJoinOperatorOr.checked=!1,this.eType1.value=i.type,this.eType2.value=this.optionsFactory.getDefaultOption(),this.setConditionIntoUi(i,ge.One),this.setConditionIntoUi(null,ge.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var n=t,i=this.individualConditionPasses(e,n.condition1),r=this.individualConditionPasses(e,n.condition2);return"AND"===n.operator?i&&r:i||r}return this.individualConditionPasses(e,t)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.simpleFilterParams=t,this.optionsFactory=new ve,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var n=function(){var n="string"==typeof t?t:t.displayKey,i=e.translate(n),r=document.createElement("option");return r.text=i,r.value=n,r};e.eType1.add(n()),e.eType2.add(n())}));var n=t.length<=1;this.eType1.disabled=n,this.eType2.disabled=n},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){var e=this.createValueTemplate(ge.One),t=this.createValueTemplate(ge.Two),n="ag-simple-filter-and-or-"+this.getCompId(),i=this.gridOptionsWrapper.getLocaleTextFunc();return'<select class="ag-filter-select" ref="eOptions1"></select>\n                '+e+'\n                <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n                    <label>\n                        <input ref="eJoinOperatorAnd" type="radio" class="and" name="'+n+'" value="AND")} checked="checked" />\n                        '+i("andCondition","AND")+'\n                    </label>\n                    <label>\n                        <input ref="eJoinOperatorOr" type="radio" class="or" name="'+n+'" value="OR" />\n                        '+i("orCondition","OR")+'\n                    </label>\n                </div>\n                <select class="ag-filter-select" ref="eOptions2"></select>\n                '+t},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(ge.One),t=this.allowTwoConditions&&e;h.setDisplayed(this.eCondition2Body,t),h.setDisplayed(this.eType2,t),h.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(){this.eJoinOperatorAnd.checked=!0;var e=this.optionsFactory.getDefaultOption();this.eType1.value=e,this.eType2.value=e},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=De[e];return!n&&this.optionsFactory.getCustomOption(e)&&(n=this.optionsFactory.getCustomOption(e).displayName),t(e,n)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eType1,"change",t),this.addDestroyableEventListener(this.eType2,"change",t),this.addDestroyableEventListener(this.eJoinOperatorOr,"change",t),this.addDestroyableEventListener(this.eJoinOperatorAnd,"change",t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",Ee([he("eOptions1")],t.prototype,"eType1",void 0),Ee([he("eOptions2")],t.prototype,"eType2",void 0),Ee([he("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Ee([he("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Ee([he("eCondition2Body")],t.prototype,"eCondition2Body",void 0),Ee([he("eJoinOperatorPanel")
1],t.prototype,"eJoinOperatorPanel",void 0),t}(we),Te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Te(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,n,i){if(null==i){var r=this.canNullsPassFilter(e);if(e===t.EMPTY)return 0;if(e===t.EQUALS)return r?0:1;if(e===t.GREATER_THAN)return r?1:-1;if(e===t.GREATER_THAN_OR_EQUAL)return r?1:-1;if(e===t.LESS_THAN_OR_EQUAL)return r?-1:1;if(e===t.LESS_THAN)return r?-1:1;if(e===t.NOT_EQUAL)return r?1:0}return this.comparator()(n,i)},t.prototype.canNullsPassFilter=function(e){switch(e){case xe.GREATER_THAN:case xe.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan;case xe.LESS_THAN:case xe.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan;case xe.EQUALS:return this.scalarFilterParams.includeBlanksInEquals}},t.prototype.individualConditionPasses=function(e,n){var i=this.scalarFilterParams.valueGetter(e.node),r=this.mapRangeFromModel(n),o=r.from,s=r.to,a=n.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=o||l.hideFilterInput))return l.test(o,i);var c=this.nullComparator(a,o,i);if(a===t.EQUALS)return 0===c;if(a===t.GREATER_THAN)return c>0;if(a===t.GREATER_THAN_OR_EQUAL)return c>=0;if(a===t.LESS_THAN_OR_EQUAL)return c<=0;if(a===t.LESS_THAN)return c<0;if(a===t.NOT_EQUAL)return 0!=c;var u=this.nullComparator(a,s,i);if(a===t.IN_RANGE)return this.scalarFilterParams.inRangeInclusive?c>=0&&u<=0:c>0&&u<0;throw new Error("Unexpected type of filter: "+a)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(xe),ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.mapRangeFromModel=function(e){return{from:h.parseYyyyMmDdToDate(e.dateFrom,"-"),to:h.parseYyyyMmDdToDate(e.dateTo,"-")}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=h.parseYyyyMmDdToDate(e,"-");this.dateCompFrom1.setDate(t)}else this.dateCompFrom1.setDate(null);this.dateCompTo1.setDate(null),this.dateCompFrom2.setDate(null),this.dateCompTo2.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var n=t===ge.One,i=e?e.dateTo:null,r=h.parseYyyyMmDdToDate(e?e.dateFrom:null,"-"),o=h.parseYyyyMmDdToDate(i,"-"),s=n?this.dateCompTo1:this.dateCompTo2;(n?this.dateCompFrom1:this.dateCompFrom2).setDate(r),s.setDate(o)},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.dateCompTo1.setDate(null),this.dateCompTo2.setDate(null),this.dateCompFrom1.setDate(null),this.dateCompFrom2.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCompFrom1=new ye(this.userComponentFactory,t,this.ePanelFrom1),this.dateCompFrom2=new ye(this.userComponentFactory,t,this.ePanelFrom2),this.dateCompTo1=new ye(this.userComponentFactory,t,this.ePanelTo1),this.dateCompTo2=new ye(this.userComponentFactory,t,this.ePanelTo2),this.addDestroyFunc((function(){e.dateCompFrom1.destroy(),e.dateCompFrom2.destroy(),e.dateCompTo1.destroy(),e.dateCompTo2.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===ge.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body">\n                    <div class="ag-filter-date-from" ref="ePanelFrom'+t+'">\n                    </div>\n                    <div class="ag-filter-date-to" ref="ePanelTo'+t+'"">\n                    </div>\n                </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===ge.One,n=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.dateCompTo1:this.dateCompTo2,r=(t?this.dateCompFrom1:this.dateCompFrom2).getDate(),o=i.getDate();return n!==xe.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===xe.IN_RANGE?null!=r&&null!=o:null!=r))},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var n=e===ge.One,i=n?this.getCondition1Type():this.getCondition2Type(),r=n?this.dateCompFrom1:this.dateCompFrom2;return{dateTo:h.serializeDateToYyyyMmDd((n?this.dateCompTo1:this.dateCompTo2).getDate(),"-"),dateFrom:h.serializeDateToYyyyMmDd(r.getDate(),"-"),type:i,filterType:t.FILTER_TYPE}},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());h.setDisplayed(this.ePanelFrom1,t);var n=this.showValueTo(this.getCondition1Type());h.setDisplayed(this.ePanelTo1,n);var i=this.showValueFrom(this.getCondition2Type());h.setDisplayed(this.ePanelFrom2,i);var r=this.showValueTo(this.getCondition2Type());h.setDisplayed(this.ePanelTo2,r)},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[Oe.EQUALS,Oe.GREATER_THAN,Oe.LESS_THAN,Oe.NOT_EQUAL,Oe.IN_RANGE],Ie([he("ePanelFrom1")],t.prototype,"ePanelFrom1",void 0),Ie([he("ePanelFrom2")],t.prototype,"ePanelFrom2",void 0),Ie([he("ePanelTo1")],t.prototype,"ePanelTo1",void 0),Ie([he("ePanelTo2")],t.prototype,"ePanelTo2",void 0),Ie([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Oe),Me=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new O,this.eElement=e,this.preventMouseClick=t;var i=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",i,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",o,{passive:!1})}
1))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var n=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout((function(){n.touching&&n.touchStart===i&&!n.moved&&(n.moved=!0,n.eventService.dispatchEvent({type:e.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:t}))}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!h.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:e.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&t.preventDefault(),this.touching=!1)},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&t-this.lastTapTime>e.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),Ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Ae(t,e),t.prototype.init=function(e){var n=h.firstExistingValue(e.template,t.TEMPLATE);n=n&&n.trim?n.trim():n,this.setTemplate(n),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=h.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var i=h.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(i)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new Me(this.getGui(),!0),i=t.isSuppressMenuHide(),r=i&&h.exists(this.eMenu),o=r?new Me(this.eMenu,!0):n;this.params.enableMenu&&this.addDestroyableEventListener(o,Me[r?"EVENT_TAP":"EVENT_LONG_TAP"],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)})),this.params.enableSorting&&this.addDestroyableEventListener(n,Me.EVENT_TAP,(function(t){i&&e.eMenu.contains(t.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return o.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||h.isIOSUserAgent()&&!t)h.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var n=this.eMenu.style;n.transition="opacity 0.2s, border 0.2s",n["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){h.removeFromParent(this.eSortAsc),h.removeFromParent(this.eSortDe
1sc),h.removeFromParent(this.eSortNone),h.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,R.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(n){var i=e.params.column.isMoving(),r=(new Date).getTime();i||r-e.lastMovingChanged<50||e.params.progressSort(t?n.ctrlKey||n.metaKey:n.shiftKey)})),this.addDestroyableEventListener(this.params.column,R.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,F.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(h.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),h.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),h.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&h.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&h.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();h.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),i=t.length>1,r=e.isSorting()&&i;h.setDisplayed(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():h.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,R.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();h.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">  <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>  <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on">    <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span>    <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span>    <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span>    <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span>    <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span>    <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span>  </div></div>',Pe([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Pe([b("sortController")],t.prototype,"sortController",void 0),Pe([b("menuFactory")],t.prototype,"menuFactory",void 0),Pe([b("eventService")],t.prototype,"eventService",void 0),Pe([he("eFilter")],t.prototype,"eFilter",void 0),Pe([he("eSortAsc")],t.prototype,"eSortAsc",void 0),Pe([he("eSortDesc")],t.prototype,"eSortDesc",void 0),Pe([he("eSortNone")],t.prototype,"eSortNone",void 0),Pe([he("eSortOrder")],t.prototype,"eSortOrder",void 0),Pe([he("eMenu")],t.prototype,"eMenu",void 0),Pe([he("eLabel")],t.prototype,"eLabel",void 0),Pe([he("eText")],t.prototype,"eText",void 0),t}(ae),Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},je=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ne(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!h.isStopPropagationForAgGrid(t)){var n=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){h.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",n),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",n),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var i=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(i,A.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(i,A.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new Me(e);this.addDestroyableEventListener(n,Me.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();h.setDisplayed(this.eOpenIcon,e),h.setDisplayed(this.eCloseIcon,!e)}else h.setDisplayed(this.eOpenIcon,!1),h.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=h.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return h.setDisplayed(this.eOpenIcon,!1),void h.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',Fe([b("columnController")],t.prototype,"columnController",void 0),Fe([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fe([he("agOpened")],t.prototype,"eOpenIcon",void 0),Fe([he("agClosed")],t.prototype,"eCloseIcon",void 0),t}(ae),Ve=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},He=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var n=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(n)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,n,i){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:n,newData:t,update:i}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var n=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(n)},e.prototype.getRowIndexString=function(){return this.rowPinned===o.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===o.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=h.exists(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(r)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&h.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();this.id=t?this.data?t(this.data):void 0:e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var n=this.createGlobalRowEvent(F.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(n),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,n,t),this.dispatchCellChangedEvent(n,t)},e.prototype.setGroupValue=function(e,t){var n=this.columnController.getGridColumn(e);h.missing(this.groupData)&&(this.groupData={}),this.groupData[n.getColId()]=t,this.dispatchCellChangedEvent(n,t)},e.prototype.setAggData=function(e){var t=this,n=h.getAllKeysInObjects([this.aggData,e]);
1this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.columnController.getGridColumn(e);t.dispatchCellChangedEvent(n,t.aggData?t.aggData[e]:void 0)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&h.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,n){this.dispatchLocalEvent({type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:n})},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e=!1,t=!1,n=!1;if(this.childrenAfterGroup)for(var i=0;i<this.childrenAfterGroup.length;i++){var r=this.childrenAfterGroup[i];if(r.selectable)switch(r.isSelected()){case!0:e=!0;break;case!1:t=!0;break;default:n=!0}}this.selectThisNode(n?void 0:!(!e||t)||!(!e&&t)&&void 0)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===o.PINNED_TOP||this.rowPinned===o.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=!0===e.newValue,i=!0===e.clearSelection,r=!0===e.suppressFinishActions,o=!0===e.rangeSelect,s=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(o){var a=this.selectionController.getLastSelectedNode()!==this,l=this.gridOptionsWrapper.isRowSelectionMulti();if(a&&l)return this.doRowRangeSelection()}var c=0;return s&&this.group||this.selectThisNode(n)&&c++,t&&this.group&&(c+=this.selectChildNodes(n,s)),r||(n&&(i||!this.gridOptionsWrapper.isRowSelectionMulti())&&(c+=this.selectionController.clearOtherNodes(this)),c>0&&(this.selectionController.updateGroupsFromChildrenSelections(),this.mainEventService.dispatchEvent({type:F.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})),n&&this.selectionController.setLastSelectedNode(this)),c},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),n=this.selectionController.getLastSelectedNode();return this.rowModel.getNodesInRangeForSelection(this,n).forEach((function(n){n.group&&t||n.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections(),this.mainEventService.dispatchEvent({type:F.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi}),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var n=this.createGlobalRowEvent(F.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(n),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterFilter:this.childrenAfterGroup,i=0;if(!h.missing(n)){for(var r=0;r<n.length;r++)i+=n[r].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return i}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new O),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,n=this,i=!0,r=!1;i&&!r;){var o=n.parent;h.exists(o)&&n.firstChild?o.rowGroupColumn===e&&(r=!0,t=o):i=!1,n=o}return r?t:null},e.prototype.isFullWidthCell=function(){var e=this.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e(this)},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildCh
1anged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",Ve([b("eventService")],e.prototype,"mainEventService",void 0),Ve([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ve([b("selectionController")],e.prototype,"selectionController",void 0),Ve([b("columnController")],e.prototype,"columnController",void 0),Ve([b("valueService")],e.prototype,"valueService",void 0),Ve([b("rowModel")],e.prototype,"rowModel",void 0),Ve([b("context")],e.prototype,"context",void 0),Ve([b("valueCache")],e.prototype,"valueCache",void 0),Ve([b("columnApi")],e.prototype,"columnApi",void 0),Ve([b("gridApi")],e.prototype,"gridApi",void 0),e}(),Ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Be=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ge=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox"/>')||this}return Ye(t,e),t.prototype.createAndAddIcons=function(){var e=this.getGui();this.gridOptionsWrapper.useNativeCheckboxes()?(this.checkbox=document.createElement("input"),this.checkbox.type="checkbox",e.appendChild(this.checkbox)):(this.eCheckedIcon=h.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=h.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=h.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column),e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon))},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();this.gridOptionsWrapper.useNativeCheckboxes()?(this.checkbox.checked=!0===e,this.checkbox.indeterminate="boolean"!=typeof e):(h.setDisplayed(this.eCheckedIcon,!0===e),h.setDisplayed(this.eUncheckedIcon,!1===e),h.setDisplayed(this.eIndeterminateIcon,"boolean"!=typeof e))},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.onCheckboxClicked=function(e){this.checkbox.checked?this.onUncheckedClicked(e):this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return h.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return h.stopPropagationForAgGrid(e)})),this.gridOptionsWrapper.useNativeCheckboxes()?this.addDestroyableEventListener(this.checkbox,"click",this.onCheckboxClicked.bind(this)):(this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this))),this.addDestroyableEventListener(this.rowNode,He.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},Be([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Be([b("eventService")],t.prototype,"eventService",void 0),Be([b("gridApi")],t.prototype,"gridApi",void 0),Be([b("columnApi")],t.prototype,"columnApi",void 0),t}(ae),We=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};
1!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(Se||(Se={}));var Ue,ze=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,n){return this.createAndInitUserComponent(null,e,t,n)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){return this.createAndInitUserComponent(e.colDef,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,n,i){return this.createAndInitUserComponent(e,t,"filter",n,!1,i)},e.prototype.newFloatingFilterComponent=function(e,t,n){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",n,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,n,i,r,o){void 0===r&&(r=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,n,t,i,r);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,n,t,s.paramsFromSelector);this.addReactHacks(l);var c=o?o(l,a):l,u=this.initComponent(a,c);return null==u?p.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=h.cloneObject(t));var n=this.context.getBean("frameworkComponentWrapper");n&&(e.frameworkComponentWrapper=n)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var n=new e;return this.initComponent(n,t),n},e.prototype.lookupComponentClassDef=function(e,t,n,i){void 0===n&&(n=null);var r,o=null,s=null,a=null,l=null;if(null!=e){var c=e[t];null==c||!0===c||("string"==typeof c?o=c:"boolean"==typeof c||(this.agComponentUtils.doesImplementIComponent(c)?s=c:a=c)),l=e[t+"Framework"],r=e[t+"Selector"]}if(s&&l||o&&l||a&&l)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(r&&(o||s||a||l))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(l)return{componentFromFramework:!0,component:l,source:Se.HARDCODED,paramsFromSelector:null};if(s)return{componentFromFramework:!1,component:s,source:Se.HARDCODED,paramsFromSelector:null};if(a)return this.agComponentUtils.adaptFunction(t,a,!1,Se.HARDCODED);var u,d=r?r(n):null;if(!(u=d&&d.component?d.component:o||i))return null;var h=this.lookupFromRegisteredComponents(t,u);return h?{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:d?d.params:null}:null},e.prototype.lookupFromRegisteredComponents=function(e,t){var n=this.userComponentRegistry.retrieve(null!=t?t:e);return null==n?null:n.componentFromFramework?{component:n.component,componentFromFramework:!0,source:Se.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(n.component)?{component:n.component,componentFromFramework:!1,source:n.source==Ue.REGISTERED?Se.REGISTERED_BY_NAME:Se.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,n.component,n.componentFromFramework,n.source==Ue.REGISTERED?Se.REGISTERED_BY_NAME:Se.DEFAULT)},e.prototype.createFinalParams=function(e,t,n,i){void 0===i&&(i=null);var r={};h.mergeDeep(r,n);var o=e?e[t+"Params"]:null;return null!=o&&("function"==typeof o?h.mergeDeep(r,o(n)):"object"==typeof o&&h.mergeDeep(r,o)),h.mergeDeep(r,i),r},e.prototype.createComponentInstance=function(e,t,n,i,r){var o,s=this.lookupComponentClassDef(e,t,n,i);if(!s||!s.component)return r||console.error("Could not find component "+((e?e[t]:i)||i)+", did you forget to configure this component?"),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);o=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,i)}else o=new s.component;return{componentInstance:o,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},We([b("gridOptions")],e.prototype,"gridOptions",void 0),We([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),We([b("context")],e.prototype,"context",void 0),We([b("agComponentUtils")],e.prototype,"agComponentUtils",void 0),We([b("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),We([b("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),We([w("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),We([_("userComponentFactory")],e)}(),qe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ke=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},$e=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return qe(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch();this.cellIsBlank=t||null==e.value,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===o.PINNED_LE
1FT,t=this.params.pinned===o.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!n:this.columnController.isPinningLeft()?!e:!n}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){h.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var n=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=n+"px":this.getGui().style.paddingLeft=n+"px"},t.prototype.setupIndent=function(){this.params.suppressPadding||(this.addDestroyableEventListener(this.params.node,He.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||h.get(e.colDef,"cellRendererParams.innerRenderer",null)||h.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var n=h.cloneObject(this.params);n.value=this.params.value,"function"==typeof t?e=t(n):"string"==typeof t?e=this.expressionService.evaluate(t,n):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,n=this.params,i=this.displayedGroup.rowGroupColumn||n.column,r=i?this.valueFormatterService.formatValue(i,n.node,n.scope,this.params.value):null;n.valueFormatted=r,(e=1==n.fullWidth?this.useFullWidth(n):this.useInnerRenderer(this.params.colDef.cellRendererParams,i.getColDef(),n))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,n){var i=this,r=null,o=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(o&&null!=o.component&&o.source!=Se.DEFAULT)r=this.userComponentFactory.newInnerCellRenderer(e,n);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");r=s&&s.source!=Se.DEFAULT?this.userComponentFactory.newCellRenderer(t,n):s&&s.source==Se.DEFAULT&&h.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,n):this.userComponentFactory.newCellRenderer({},n)}return null!=r?r.then((function(e){null!=e?h.bindCellRendererToHtmlElement(r,i.eValue):i.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value})):this.eValue.innerText=null!=n.valueFormatted?n.valueFormatted:n.value,r},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?h.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,He.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){h.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var n=new Ge;this.getContext().wireBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return n.destroy()}))}h.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,n=h.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=h.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(n),this.eContracted.appendChild(i),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,He.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,He.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(h.isKeyPressed(e,o.KEY_ENTER)){if(this.params.suppressEnterExpand)return;if(this.params.column&&this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var n=t.rowGroupColumn;this.draggedFromHideOpenParents=!!n&&!e.isRowGroupDisplayed(n.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=t.parent;!h.missing(i);){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}h.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){h.isStopPropagationForAgGrid(e)||(h.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){h.isStopPropagationForAgGrid(e)||h.isElementInEventPath(this.eExpanded,e)||h.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;h.setDisplayed(this.eContracted,!t),h.setDisplayed(this.eExpanded,t)}else h.setDisplayed(this.eExpanded,!1),h.setDisplayed(this.eContracted,!1);var n=this.displayedGroup,i=this.columnController.isPivotMode()&&n.leafGroup,r=!n.isExpandable(),o=n.footer||r||i;this.addOrRemoveCssClass("ag-row-group",!o),this.addOrRemoveCssClass("ag-row-group-leaf-indent",o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',Ke([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ke([b("expressionService")],t.prototype,"expressionService",void 0),Ke([b("eventService")],t.prototype,"eventService",void 0),Ke([b("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ke([b("columnController")],t.prototype,"columnController",void 0),Ke([b("mou
1seEventService")],t.prototype,"mouseEventService",void 0),Ke([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ke([he("eExpanded")],t.prototype,"eExpanded",void 0),Ke([he("eContracted")],t.prototype,"eContracted",void 0),Ke([he("eCheckbox")],t.prototype,"eCheckbox",void 0),Ke([he("eValue")],t.prototype,"eValue",void 0),Ke([he("eChildCount")],t.prototype,"eChildCount",void 0),t}(ae),Qe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xe=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Qe(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),i=e.formatValue(n),r=h.exists(i)?i:n,o=t>=0;this.eDelta.innerHTML=o?"\u2191"+r:"\u2193"+r,h.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",o),h.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!o)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){h.removeCssClass(this.eValue,"ag-value-change-value-highlight"),h.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(h.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:h.exists(e.value)?this.eValue.innerHTML=t:h.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering()))return"number"==typeof t&&"number"==typeof this.lastValue&&this.showDelta(e,t-this.lastValue),this.lastValue&&h.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("filterManager")],t.prototype,"filterManager",void 0),t}(ae),Je=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ze=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return Je(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=h.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&h.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(h.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,h.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:h.exists(e.value)?this.eCurrent.innerHTML=t:h.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("filterManager")],t.prototype,"filterManager",void 0),t}(ae),et=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},nt=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return et(t,e),t.prototype.init=function(e){var t=h.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=n("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">
1\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',tt([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),tt([he("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),tt([he("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(ae),it=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),rt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ot=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return it(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,h.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(n){var i=document.createElement("option");i.value=n;var r=t.valueFormatterService.formatValue(e.column,null,null,n);i.text=null!=r?r:n,e.value===n&&(i.selected=!0),t.eSelect.appendChild(i)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===o.KEY_UP||e.keyCode===o.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},rt([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),rt([b("valueFormatterService")],t.prototype,"valueFormatterService",void 0),t}(ce),st=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.isPopup=function(){return!0},t}(de),lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(t,e),t.prototype.isPopup=function(){return!0},t}(ot),ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dt=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ut(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",h.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==o.KEY_LEFT||t==o.KEY_UP||t==o.KEY_RIGHT||t==o.KEY_DOWN||e.shiftKey&&t==o.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(ce),ht=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ht(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValueFrom1.value=null,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.setConditionIntoUi=function(e,t){var n=t===ge.One,i=n?this.eValueTo1:this.eV
1alueTo2;(n?this.eValueFrom1:this.eValueFrom2).value=e?""+e.filter:null,i.value=e?""+e.filterTo:null},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.value=e,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValueFrom1,"input",t),this.addDestroyableEventListener(this.eValueFrom2,"input",t),this.addDestroyableEventListener(this.eValueTo1,"input",t),this.addDestroyableEventListener(this.eValueTo2,"input",t)},t.prototype.afterGuiAttached=function(){this.eValueFrom1.focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===ge.One?"1":"2",n=this.translate.bind(this);return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n            <div class="ag-input-wrapper" role="presentation">\n                <input class="ag-filter-filter" ref="eValueFrom'+t+'" type="text" placeholder="'+n("filterOoo")+'"/>\n            </div>\n             <div class="ag-input-wrapper ag-filter-number-to" ref="ePanel'+t+'" role="presentation">\n                <input class="ag-filter-filter" ref="eValueTo'+t+'" type="text" placeholder="'+n("filterOoo")+'"/>\n            </div>\n        </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===ge.One,n=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.eValueTo1:this.eValueTo2,r=this.stringToFloat((t?this.eValueFrom1:this.eValueFrom2).value),o=this.stringToFloat(i.value);return n!==xe.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===xe.IN_RANGE?null!=r&&null!=o:null!=r))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){var t=h.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===ge.One,i=n?this.getCondition1Type():this.getCondition2Type(),r=this.stringToFloat((n?this.eValueFrom1:this.eValueFrom2).value),o=this.stringToFloat((n?this.eValueTo1:this.eValueTo2).value),s={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(s.filter=r,s.filterTo=o),s},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());h.setDisplayed(this.eValueFrom1,t);var n=this.showValueTo(this.getCondition1Type());h.setDisplayed(this.eValueTo1,n);var i=this.showValueFrom(this.getCondition2Type());h.setDisplayed(this.eValueFrom2,i);var r=this.showValueTo(this.getCondition2Type());h.setDisplayed(this.eValueTo2,r)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[Oe.EQUALS,Oe.NOT_EQUAL,Oe.LESS_THAN,Oe.LESS_THAN_OR_EQUAL,Oe.GREATER_THAN,Oe.GREATER_THAN_OR_EQUAL,Oe.IN_RANGE],pt([he("eValueFrom1")],t.prototype,"eValueFrom1",void 0),pt([he("eValueFrom2")],t.prototype,"eValueFrom2",void 0),pt([he("eValueTo1")],t.prototype,"eValueTo1",void 0),pt([he("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(Oe),mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gt=function(e){function t(){return e.call(this)||this}return mt(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(r)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(ae),yt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vt=function(e){function t(){return e.call(this)||this}return yt(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(r)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(ae),_t=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return _t(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(ce),wt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ct=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return wt(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(h.isBrowserChrome()||e.filterParams&&e.filterParams.browserDatePicker)&&(h.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return h.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=h.serializeDateToYyyyMmDd(e,"-")},t}(ae),Et=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Et(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),i=this.conditionToString(t.condition2);return n+" "+t.operator+" "+i}return this.conditionToString(e)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){this.lastType=e?(e.operator?e.condition1:e).type:this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){return e?!e.operator&&this.isTypeEditable(e.type):this.isTypeEditable(this.lastType)},t.prototype.init=function(e){this.optionsFactory=new ve,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&e&&e!=xe.IN_RANGE&&e!=xe.EMPTY},t}(ae),Dt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Tt=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation">\n                <input ref="eReadOnlyText" disabled="true" class="ag-floating-filter-input">\n                <div ref="eDateWrapper" style="display: flex; flex: 1 1 auto; overflow: hidden;"></div>\n            </div>')||this}return Dt(t,e),t.prototype.getDefaultFilterOptions=function(){return Re.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==xe.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent()},t.prototype.setEditable=function(e){h.setDisplayed(this.eDateWrapper,e),h.setDisplayed(this.eReadOnlyText,!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var i=this.canWeEditAfterModelFromParentFilter(t);this.setEditable(i),i?(this.dateComp.setDate(t?h.parseYyyyMmDdToDate(t.dateFrom,"-"):null),this.eReadOnlyText.value=""):(this.eReadOnlyText.value=this.getTextFromModel(t),this.dateComp.setDate(null))}},t.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),n=h.serializeDateToYyyyMmDd(t,"-");this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),n)}))},t.prototype.createDateComponent=function(){var e=this,t=we.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:h.debounce(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new ye(this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){e.dateComp.destroy()}))},xt([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),xt([he("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),xt([he("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(St),Ot=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ot(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.value;return(t=h.makeNull(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValue1,"input",t),this.addDestroyableEventListener(this.eValue2,"input",t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator?this.textFilterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter?this.textFilterParams.textFormatter:1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===ge.One?this.eValue1:this.eV
1alue2).value=e?e.filter:null},t.prototype.createCondition=function(e){var n=e===ge.One,i=n?this.getCondition1Type():this.getCondition2Type(),r=this.getValue(n?this.eValue1:this.eValue2),o={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(o.filter=r),o},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValue1.value=null,this.eValue2.value=null},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.value=e,this.eValue2.value=null},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===ge.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n            <div class="ag-input-wrapper" ref="eInputWrapper'+t+'" role="presentation">\n                <input class="ag-filter-filter" ref="eValue'+t+'" type="text" placeholder="'+this.gridOptionsWrapper.getLocaleTextFunc()("filterOoo","Filter...")+'"/>\n            </div>\n        </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());h.setDisplayed(this.eInputWrapper1,t);var n=this.showValueFrom(this.getCondition2Type());h.setDisplayed(this.eInputWrapper2,n)},t.prototype.afterGuiAttached=function(){this.eValue1.focus()},t.prototype.isConditionUiComplete=function(e){var t=e===ge.One,n=t?this.getCondition1Type():this.getCondition2Type();if(n===xe.EMPTY)return!1;var i=this.getValue(t?this.eValue1:this.eValue2);return!!this.doesFilterHaveHiddenInput(n)||null!=i},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,i=t.type,r=this.textFilterParams.valueGetter(e.node),o=this.formatter(r),s=this.optionsFactory.getCustomOption(i);if(s&&(null!=n||s.hideFilterInput))return s.test(n,o);if(null==r)return i===xe.NOT_EQUAL||i===xe.NOT_CONTAINS;var a=this.formatter(n);return this.comparator(i,o,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[xe.CONTAINS,xe.NOT_CONTAINS,xe.EQUALS,xe.NOT_EQUAL,xe.STARTS_WITH,xe.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,n,i){switch(e){case t.CONTAINS:return n.indexOf(i)>=0;case t.NOT_CONTAINS:return-1===n.indexOf(i);case t.EQUALS:return n===i;case t.NOT_EQUAL:return n!=i;case t.STARTS_WITH:return 0===n.indexOf(i);case t.ENDS_WITH:var r=n.lastIndexOf(i);return r>=0&&r===n.length-i.length;default:return console.warn("invalid filter type "+e),!1}},kt([he("eValue1")],t.prototype,"eValue1",void 0),kt([he("eValue2")],t.prototype,"eValue2",void 0),kt([he("eInputWrapper1")],t.prototype,"eInputWrapper1",void 0),kt([he("eInputWrapper2")],t.prototype,"eInputWrapper2",void 0),t}(xe),Rt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rt(t,e),t.prototype.postConstruct=function(){this.setTemplate('<div class="ag-input-wrapper" role="presentation">\n                <input ref="eFloatingFilterText" class="ag-floating-filter-input">\n            </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var n=this.getTextFromModel(e);this.eFloatingFilterText.value=n;var i=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(i)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=we.isUseApplyButton(this.params.filterParams);var n=we.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=h.debounce(this.syncUpWithParentFilter.bind(this),n);this.addDestroyableEventListener(this.eFloatingFilterText,"input",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keypress",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keydown",i);var r=t.column.getDefinition();r.filterParams&&r.filterParams.filterOptions&&1===r.filterParams.filterOptions.length&&"inRange"===r.filterParams.filterOptions[0]&&(this.eFloatingFilterText.disabled=!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=this.eFloatingFilterText.value,i=h.isKeyPressed(e,o.KEY_ENTER);this.applyActive&&!i||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),n)}))},t.prototype.setEditable=function(e){this.eFloatingFilterText.disabled=!e},Mt([he("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Mt([y],t.prototype,"postConstruct",null),t}(St),Pt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,e),t.prototype.getDefaultFilterOptions=function(){return ft.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==xe.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.f
1ilter?""+e.filter:""+e.type},t}(At),Nt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nt(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return It.DEFAULT_FILTER_OPTIONS},t}(At),jt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(Ue||(Ue={}));var Vt,Ht=function(){function e(){this.agGridDefaults={agDateInput:Ct,agColumnHeader:Le,agColumnGroupHeader:je,agTextColumnFloatingFilter:Ft,agNumberColumnFloatingFilter:Lt,agDateColumnFloatingFilter:Tt,agAnimateShowChangeCellRenderer:Xe,agAnimateSlideCellRenderer:Ze,agGroupCellRenderer:$e,agGroupRowRenderer:$e,agLoadingCellRenderer:nt,agCellEditor:de,agTextCellEditor:de,agSelectCellEditor:ot,agPopupTextCellEditor:at,agPopupSelectCellEditor:ct,agLargeTextCellEditor:dt,agTextColumnFilter:It,agNumberColumnFilter:ft,agDateColumnFilter:Re,agLoadingOverlay:gt,agNoRowsOverlay:vt,agTooltipComponent:bt},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},e.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},e.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:Ue.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:Ue.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:Ue.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(h.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},jt([b("gridOptions")],e.prototype,"gridOptions",void 0),jt([b("context")],e.prototype,"context",void 0),jt([y],e.prototype,"init",null),jt([_("userComponentRegistry")],e)}(),Yt=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,n){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var r=e.childrenAfterGroup[i];r.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,n):n&&t(r)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,n=0;!this.mapToItems[t.id];)this.mapToItems[t.id]={rowNode:t,children:null},n++,t=t.parent;return n},e.prototype.populateColumnsMap=function(e,t){var n=this;if(this.keepingColumns&&t)for(var i=e;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach((function(e){return n.nodeIdsToColumns[i.id][e.getId()]=!0})),i=i.parent},e.prototype.linkPathItems=function(e,t){for(var n=e,i=0;i<t;i++){var r=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(r),n=n.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var n=this.createPathItems(e);
1this.linkPathItems(e,n),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return n[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!n[e.getId()]}))},e}(),Bt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Gt=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(F.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(F.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return h.iterateObject(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},e.prototype.getSelectedRows=function(){var e=[];return h.iterateObject(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;h.iterateObject(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Yt(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,n={},i=0;return h.iterateObject(this.selectedNodes,(function(r,o){o&&o.id!==e.id&&(i+=t.selectedNodes[o.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&o.parent&&(n[o.parent.id]=o.parent))})),h.iterateObject(n,(function(e,t){t.calculateSelectedFromChildren()})),i},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(this.selectedNodes[t.id]=t.isSelected()?t:void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){h.exists(t)&&e.id!==t.id&&h.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t)},e.prototype.syncInNewRowNode=function(e){h.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var i=0,r=n.length;i<r;i++){var o=n[i];o.isSelected()?t.push(o):o.group&&o.children&&e(o.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")}else console.warn("getBestCostNodeSelection is only available when using normal row model")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return h.iterateObject(this.selectedNodes,(function(t,n){n&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!n)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}
1else h.iterateObject(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:F.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==o.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,n=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(n):t.forEachNode(n),this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:F.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},Bt([b("eventService")],e.prototype,"eventService",void 0),Bt([b("rowModel")],e.prototype,"rowModel",void 0),Bt([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Bt([b("columnApi")],e.prototype,"columnApi",void 0),Bt([b("gridApi")],e.prototype,"gridApi",void 0),Bt([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),Bt([y],e.prototype,"init",null),Bt([_("selectionController")],e);var t}(),Wt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ut=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveC
1olumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n){void 0===n&&(n=!0),this.columnController.setColumnWidth(e,t,!1,n)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"a
1pi")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},Wt([b("columnController")],e.prototype,"columnController",void 0),Wt([_("columnApi")],e)}();(Vt=t.CellRangeType||(t.CellRangeType={}))[Vt.VALUE=0]="VALUE",Vt[Vt.DIMENSION=1]="DIMENSION";var zt,qt,Kt,$t=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};(zt=t.DragSourceType||(t.DragSourceType={}))[zt.ToolPanel=0]="ToolPanel",zt[zt.HeaderCell=1]="HeaderCell",zt[zt.RowDrag=2]="RowDrag",zt[zt.ChartPanel=3]="ChartPanel",(qt=t.VerticalDirection||(t.VerticalDirection={}))[qt.Up=0]="Up",qt[qt.Down=1]="Down",(Kt=t.HorizontalDirection||(t.HorizontalDirection={}))[Kt.Left=0]="Left",Kt[Kt.Right=1]="Right";var Qt,Xt=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var n,i;return n=e,e.prototype.init=function(){this.ePinnedIcon=h.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=h.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=h.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=h.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=h.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=h.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=h.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=h.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=h.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=h.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},e.prototype.removeDragSource=function(e){var t=h.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),h.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var n=this.getHorizontalDirection(e),i=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=h.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(r!==this.lastDropTarget)this.leaveLastTargetIfExists(e,n,i,t),this.enterDragTargetIfExists(r,e,n,i,t),this.lastDropTarget=r;else if(r){var o=this.createDropTargetEvent(r,e,n,i,t);r.onDragging(o)}},e.prototype.enterDragTargetIfExists=function(e,t,n,i,r){if(e){if(e.onDragEnter){var o=this.createDropTargetEvent(e,t,n,i,r);e.onDragEnter(o)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,n,i){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,e,t,n,i);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},e.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter((function(e){return e}
1)).forEach((function(t){var i=t.getBoundingClientRect();0!==i.width&&0!==i.height&&e.clientX>=i.left&&e.clientX<=i.right&&e.clientY>=i.top&&e.clientY<=i.bottom&&(n=!0)})),n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.getHorizontalDirection=function(e){return this.eventLastTime.clientX>e.clientX?t.HorizontalDirection.Left:this.eventLastTime.clientX<e.clientX?t.HorizontalDirection.Right:null},e.prototype.getVerticalDirection=function(e){return this.eventLastTime.clientY>e.clientY?t.VerticalDirection.Up:this.eventLastTime.clientY<e.clientY?t.VerticalDirection.Down:null},e.prototype.createDropTargetEvent=function(e,t,n,i,r){var o=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-o.left,y:t.clientY-o.top,vDirection:i,hDirection:n,dragSource:this.dragSource,fromNudge:r,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,n=h.getBodyWidth()-2,i=h.getBodyHeight()-2,r=e.pageY-t/2,o=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;n>0&&o+this.eGhost.clientWidth>n+l&&(o=n+l-this.eGhost.clientWidth),o<0&&(o=0),i>0&&r+this.eGhost.clientHeight>i+a&&(r=i+a-this.eGhost.clientHeight),r<0&&(r=0),this.eGhost.style.left=o+"px",this.eGhost.style.top=r+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=h.loadTemplate(n.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&h.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=h.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var t=this.gridOptionsWrapper.getDocument();this.eGhostParent=t.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,t){var i;switch(void 0===t&&(t=!1),h.clearElement(this.eGhostIcon),e){case n.ICON_ADD:i=this.ePlusIcon;break;case n.ICON_PINNED:i=this.ePinnedIcon;break;case n.ICON_MOVE:i=this.eMoveIcon;break;case n.ICON_LEFT:i=this.eLeftIcon;break;case n.ICON_RIGHT:i=this.eRightIcon;break;case n.ICON_GROUP:i=this.eGroupIcon;break;case n.ICON_AGGREGATE:i=this.eAggregateIcon;break;case n.ICON_PIVOT:i=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;default:i=this.eHiddenIcon}this.eGhostIcon.appendChild(i),h.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost">  <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>  <div class="ag-dnd-ghost-label">  </div></div>',$t([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),$t([b("dragService")],e.prototype,"dragService",void 0),$t([b("environment")],e.prototype,"environment",void 0),$t([y],e.prototype,"init",null),$t([(0,i=E("loggerFactory"),function(e,t){i(e,t,0)})],e.prototype,"setBeans",null),$t([v],e.prototype,"destroy",null),n=$t([_("dragAndDropService")],e)}(),Jt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},en=function(e){function n(t,n,i,r){var o=e.call(this,'<div class="ag-row-drag"></div>')||this;return o.rowNode=t,o.column=n,o.cellValue=i,o.beans=r,o}return Jt(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild(h.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new rn(this,this.beans,this.rowNode,this.column):new nn(this,this.beans,this.rowNode,this.column);this.addFeature(e,this.beans.context)},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(){var e=this,n={rowNode:this.rowNode},i={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,getDragItem:function(){return n},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(i)}))},Zt([y],n.prototype,"postConstruct",null),n}(ae),tn=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.column=i,r.rowNode=n,r}return Jt(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);h.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(re),nn=function(e){function t(t,n,i,r){var o=e.call(this,t,i,r)||this;return o.beans=n,o}return Jt(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},Zt([y],t.prototype,"postConstruct",null),t}(tn),rn=function(e){function t(t,n,i,r){var o=e.call(this,t,i,r)||this;return o.beans=n,o}return Jt(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,F.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,F.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,F.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e||t)},Zt([y],t.prototype,"postConstruct",null),t}(tn),on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),sn=function(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return on(t,e),t.prototype.onKeyDown=function(e){h.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(n){var i=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){i.cellEditor.destroy&&i.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"ke
1ydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(ce),an=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ln=function(e){function t(t,n,i,r,o){var s=e.call(this,'<div class="ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=n,s.cellValue=i,s.beans=r,s.eCell=o,s}return an(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,i=h.isBrowserIE();i||e.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);i?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(r){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([y],t.prototype,"postConstruct",null),t}(ae),cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),un=function(){return(un=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},dn=function(e){function n(t,n,i,r,o,s,a){var l=e.call(this)||this;return l.hasChartRange=!1,l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=n,l.column=i,l.rowNode=r,l.rowComp=o,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=l.beans.rangeController&&n.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&l.beans.rangeController&&(l.rangeCount=l.beans.rangeController.getCellRangeCount(l.cellPosition),l.hasChartRange=l.getHasChartRange()),l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return cn(n,e),n.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],n=this.column,i=this.getCellWidth(),r=this.modifyLeftForPrintLayout(this.getCellLeft()),o=this.getInitialValueToRender(),s=h.get(this.column,"colDef.template",null)?o:h.escape(o);this.tooltip=this.getToolTip();var a=h.escape(this.tooltip),l=h.escape(n.getId()),c="",u="",d=this.preProcessStylesFromColDef(),p=this.getInitialCssClasse
1s(),f=this.getStylesForRowSpanning(),m=h.escape(this.getAriaColumnIndex());return this.usingWrapper&&(c='<div ref="eCellWrapper" class="ag-cell-wrapper" role="presentation">\n                <span ref="eCellValue" role="gridcell" aria-colindex="'+m+'" class="ag-cell-value" '+e+">",u="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="'+(this.usingWrapper?"presentation":"gridcell")+'"'),this.usingWrapper||t.push(" aria-colindex="+m),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+h.escape(p.join(" "))+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&h.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+Number(i)+"px; left: "+Number(r)+"px; "+h.escape(d)+" "+h.escape(f)+'" >'),t.push(c),h.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),h.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);h.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?h.last(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){h.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,F.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,i=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnController.getDisplayedColAfter(n))&&!h.missing(n))&&i===n.getPinned();r++);return t},n.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();h.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},n.prototype.getAriaColumnIndex=function(){return(this.beans.columnController.getAllDisplayedColumns().indexOf(this.column)+1).toString()},n.prototype.refreshAriaIndex=function(){var e=this.getAriaColumnIndex();(this.usingWrapper?this.eCellValue:this.getGui()).setAttribute("aria-colindex",e)},n.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),h.pushAll(e,this.preProcessClassesFromColDef()),h.pushAll(e,this.preProcessCellClassRules()),h.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},n.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},n.prototype.getRenderedRow=function(){return this.rowComp},n.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},n.prototype.getCellRenderer=function(){return this.cellRenderer},n.prototype.getCellEditor=function(){return this.cellEditor},n.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),n=e&&e.newData,i=e&&e.suppressFlash||t.suppressCellFlash,r=e&&e.forceRefresh,o=this.value;this.value=this.getValue();var s=!this.valuesAreEqual(o,this.value);if(r||s){this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),!n&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!i&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}
1this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},n.prototype.flashCell=function(){this.animateCell("data-changed")},n.prototype.animateCell=function(e){var t="ag-cell-"+e,n="ag-cell-"+e+"-animation",i=this.getGui();h.addCssClass(i,t),h.removeCssClass(i,n),window.setTimeout((function(){h.removeCssClass(i,t),h.addCssClass(i,n),window.setTimeout((function(){h.removeCssClass(i,n)}),1e3)}),500)},n.prototype.replaceContentsAfterRefresh=function(){h.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},n.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=un({},this.rowNode.data),this.angular1Compile())},n.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){return t.remove()}))}}},n.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&h.addStylesToElement(this.getGui(),e)},n.prototype.preProcessStylesFromColDef=function(){return h.cssStyleObjectToMarkup(this.processStylesFromColDef())},n.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var n={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;return t}},n.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return h.addCssClass(e.getGui(),t)}))},n.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},n.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},n.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var n=this.getValueToUse();null!=n&&(this.eParentOfValue.innerHTML=h.escape(n))}},n.prototype.attemptCellRendererRefresh=function(){if(h.missing(this.cellRenderer)||!this.cellRenderer||h.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),n=this.cellRenderer.refresh(t);return!0===n||void 0===n},n.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=h.exists(e);if(!t||this.tooltip!==e.toString()){var n=h.exists(this.tooltip);this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips()?t?this.eParentOfValue.setAttribute("title",this.tooltip):this.eParentOfValue.removeAttribute("title"):n?t||this.beans.tooltipManager.unregisterTooltip(this):t&&this.beans.tooltipManager.registerTooltip(this)}}},n.prototype.valuesAreEqual=function(e,t){var n=this.getComponentHolder(),i=n?n.equals:null;return i?i(e,t):e===t},n.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&h.exists(t))return h.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var n=e.tooltipValueGetter||e.tooltip;return n?n({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},n.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?h.escape(this.tooltip):this.tooltip},n.prototype.processCellClassRules=function(e,t){var n=this.getComponentHolder();this.beans.stylingService.processClassRules(n.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:n,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){return h.addCssClass(e.getGui(),t)}),(function(t){return h.removeCssClass(e.getGui(),t)}))},n.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){return e.push(t)}),(function(e){})),e},n.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.rowDrag,n="function"==typeof e.dndSource;this.includeSelectionComponent="function"==typeof e.checkboxSelection||!0===e.checkboxSelection,this.includeRowDraggingComponent=t||!0===e.rowDrag,this.includeDndSourceComponent=n||!0===e.dndSource;var i=this.beans.gridOptionsWrapper.isEnableCellTextSelection();this.usingWrapper=i||this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},n.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var t=this.createCellRendererParams(),i=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",t);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",t)&&this.rowNode.rowPinned?(this.cellRendererType=n.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):i?(this.cellRendererType=n.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},n.prototype.createCellRendererInstance=function(e){var t=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var i=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(i||r||this.autoHeightCell)&&(e=!1);var o=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===n.CELL_RENDERER_TYPE_NORMAL;this.createCellRendererFunc=function(){var e;t.createCellRendererFunc=null,(e=a?t.beans.userComponentFactory.newCellRenderer(t.getComponentHolder(),o):t.beans.userComponentFactory.newPinnedRowCellRenderer(t.getComponentHolder(),o))&&e.then(s)},e?this.beans.taskQueue.createTask(this.createCellRendererFunc,this.rowNode.rowIndex,"createTasksP2"):this.createCellRendererFunc()}},n.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),h.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},n.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,n){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,n)}}},n.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},n.prototype.getValueToUse=function(){return null!=this.valueFormatted?this.valueFormatted:this.value},n.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},n.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),i=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.beans.valueService.getValue(this.column,this.rowNode,!1,t&&n&&!i)},n.prototype.onMouseEvent=function(e,t){if(!h.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},n.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,F.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},n.prototype.createEvent=function(e,t){var n={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(n.$scope=this.scope),n},n.prototype.onMouseOut=function(e){var t=this.createEvent(e,F.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},n.prototype.onMouseOver=function(e){var t=this.createEvent(e,F.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},n.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),n=this.createEvent(e,F.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},n.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},n.prototype.startEditingIfEnabled=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var i=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),r=this.createCellEditorParams(e,t,n);this.createCellEditor(r).then(i),h.missing(this.cellEditor)&&n&&this.focusCell(!0)}},n.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(n){if(!n.isPopup||!n.isPopup())return n;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=new sn(n);return t.beans.context.wireBean(i),i.init(e),i}))},n.prototype.afterCellEditorCreated=function(e,t){if(e===this.cellEditorVersion&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var n=this.createEvent(null,F.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(n)}else t.destroy&&t.destroy()},n.prototype.addInCellEditor=function(){h.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},n.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null,n=this.beans.gridOptionsWrapper.isStopEditingWhenGridLosesFocus();this.hideEditorPopup=this.beans.popupService.addPopup(n,t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},n.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},n.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;h.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),h.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),h.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),h.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),h.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)}},n.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},n.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},n.prototype.parseValue=function(e){var t=this.getComponentHolder(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,
1newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=t.valueParser;return h.exists(i)?this.beans.expressionService.evaluate(i,n):e},n.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},n.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},n.prototype.isEditing=function(){return this.editingCell},n.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case o.KEY_ENTER:this.onEnterKeyDown();break;case o.KEY_F2:this.onF2KeyDown();break;case o.KEY_ESCAPE:this.onEscapeKeyDown();break;case o.KEY_TAB:this.onTabKeyDown(e);break;case o.KEY_BACKSPACE:case o.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case o.KEY_DOWN:case o.KEY_UP:case o.KEY_RIGHT:case o.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},n.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},n.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},n.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)}},n.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},n.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},n.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,o.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(o.KEY_ENTER)},n.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,o.KEY_DOWN,this.cellPosition,!1)},n.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(o.KEY_F2)},n.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},n.prototype.onKeyPress=function(e){if(h.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):h.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},n.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},n.prototype.onMouseDown=function(e){var t=!1,n=e.button,i=e.ctrlKey,r=e.metaKey,o=e.shiftKey,s=e.target,a=this.beans,l=a.eventService,c=a.rangeController;if(!(c&&c.isCellInAnyRange(this.getCellPosition())&&2===n||((h.isBrowserIE()||h.isBrowserEdge())&&this.getGui().contains(s)&&(t=!0),!o||c&&!c.getCellRanges().length?this.focusCell(t):e.preventDefault(),h.isElementChildOfClass(s,"ag-selection-checkbox",3)))){if(h.isLeftClick(e)&&c){var u=this.cellPosition;o?c.extendLatestRangeToCell(u):c.setRangeToCell(u,i||r)}var d=this.createEvent(e,F.EVENT_CELL_MOUSE_DOWN);l.dispatchEvent(d)}},n.prototype.isDoubleClickOnIPad=function(){if(!h.isIOSUserAgent()||h.isEventSupported("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},n.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,F.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var n=this.getComponentHolder();n.onCellClicked&&window.setTimeout((function(){return n.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||n.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},n.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},n.prototype.getCellPosition=function(){return this.cellPosition},n.prototype.getParentRow=function(){return this.eParentRow},n.prototype.setParentRow=function(e){this.eParentRow=e},n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.createCellRendererFunc&&this.beans.taskQueue.cancelTask(this.createCellRendererFunc),this.stopEditing(),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.de
1stroy()},n.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px",this.refreshAriaIndex()},n.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout&&this.column.getPinned()!==o.PINNED_LEFT?this.column.getPinned()===o.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},n.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},n.prototype.getRangeBorders=function(){var e,t,n=this,i=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,o=!1,s=!1,a=!1,l=this.cellPosition.column,c=this.beans.rangeController;i?(e=this.beans.columnController.getDisplayedColAfter(l),t=this.beans.columnController.getDisplayedColBefore(l)):(e=this.beans.columnController.getDisplayedColBefore(l),t=this.beans.columnController.getDisplayedColAfter(l));var u=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(n.cellPosition,e)}));e||(a=!0),t||(o=!0);for(var d=0;d<u.length&&!(r&&o&&s&&a);d++){var h=u[d],p=c.getRangeStartRow(h),f=c.getRangeEndRow(h);!r&&this.beans.rowPositionUtils.sameRow(p,this.cellPosition)&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(f,this.cellPosition)&&(s=!0),!a&&h.columns.indexOf(e)<0&&(a=!0),!o&&h.columns.indexOf(t)<0&&(o=!0)}return{top:r,right:o,bottom:s,left:a}},n.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var t=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+t),this.isSingleCell()&&e.push("ag-cell-range-single-cell"),this.rangeCount>0){var n=this.getRangeBorders();n.top&&e.push("ag-cell-range-top"),n.right&&e.push("ag-cell-range-right"),n.bottom&&e.push("ag-cell-range-bottom"),n.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.rangeCount,n=e.getCellRangeCount(this.cellPosition),i=this.getGui();t!==n&&(h.addOrRemoveCssClass(i,"ag-cell-range-selected",0!==n),h.addOrRemoveCssClass(i,"ag-cell-range-selected-1",1===n),h.addOrRemoveCssClass(i,"ag-cell-range-selected-2",2===n),h.addOrRemoveCssClass(i,"ag-cell-range-selected-3",3===n),h.addOrRemoveCssClass(i,"ag-cell-range-selected-4",n>=4),this.rangeCount=n);var r=this.getHasChartRange();r!==this.hasChartRange&&(this.hasChartRange=r,h.addOrRemoveCssClass(i,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),h.addOrRemoveCssClass(i,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return h.includes([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,i=e.rangeController,r=i.getCellRanges(),o=r.length;if(this.rangeCount<1||o<1)return!1;var s=h.last(r),a=this.getCellPosition(),l=1===o&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var c=r[0].type===t.CellRangeType.DIMENSION&&i.isCellInSpecificRange(a,r[0]);h.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",c),l=s.type===t.CellRangeType.VALUE}return l&&null!=s.endRow&&i.isContiguousRange(s)&&i.isLastCellOfRange(s,a)},n.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,n=e.context,i=h.last(e.rangeController.getCellRanges()).type,r=t.isEnableFillHandle()&&h.missing(i)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=n.createComponentFromElement(document.createElement("ag-"+r+"-handle"))),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();
1this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle(),h.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,i=!t&&e.right,r=!t&&e.bottom,o=!t&&e.left,s=this.getGui();h.addOrRemoveCssClass(s,"ag-cell-range-top",n),h.addOrRemoveCssClass(s,"ag-cell-range-right",i),h.addOrRemoveCssClass(s,"ag-cell-range-bottom",r),h.addOrRemoveCssClass(s,"ag-cell-range-left",o)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,h.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,h.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},n.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue=this.getRefElement("eCellValue"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!n)return void h.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void h.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var i=new en(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(i,this.beans.context),this.eCellWrapper.insertBefore(i.getGui(),this.eParentOfValue)},n.prototype.addDndSource=function(){var e=new ln(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addSelectionCheckbox=function(){var e=new Ge;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t="function"==typeof t?t:null}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)}))},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&h.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t),t&&e&&e.forceBrowserFocus&&(this.getGui().focus(),document.activeElement&&document.activeElement!==document.body||this.getGui().focus());var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=!1;if(e||this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),n=!0),this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(h.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&this.getGui().appendChild(i)}this.setInlineEditingClass(),n&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var r=this.createEvent(null,F.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(r)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}(ae),hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pn=function(){return(pn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},fn=function(e){function n(t,n,i,r,o,s,a,l,c,u,d){var h=e.call(this)||this;return h.eAllRowContainers=[],h.active=!0,h.rowContainerReadyCount=0,h.refreshNeeded=!1,h.columnRefreshPending=!1,h.cellComps={},h.createSecondPassFuncs=[],h.removeFirstPassFuncs=[],h.removeSecondPassFuncs=[],h.initialised=!1,h.elementOrderChanged=!1,h.parentScope=t,h.beans=a,h.bodyContainerComp=n,h.pinnedLeftContainerComp=i,h.pinnedRightContainerComp=r,h.fullWidthContainerComp=o,h.rowNode=s,h.rowIsEven=h.rowNode.rowIndex%2==0,h.paginationPage=h.beans.paginationProxy.getCurrentPage(),h.useAnimationFrameForCreate=c,h.printLayout=u,h.embedFullWidth=d,h.setAnimateFlags(l),h}return hn(n,e),n.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEac
1h((function(e){return h.removeCssClass(e,"ag-opacity-zero")}))}))},n.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var n=[],i=this.rowNode.rowHeight,r=this.getInitialRowClasses(t).join(" "),o=h.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=h.escape(a),c=this.getInitialRowTopStyle(),u=this.rowNode.getRowIndexString(),d=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return n.push("<div"),n.push(' role="row"'),n.push(' row-index="'+u+'" aria-rowindex="'+(d+this.rowNode.rowIndex+1)+'"'),n.push(o?' row-id="'+o+'"':""),n.push(a?' row-business-key="'+l+'"':""),n.push(' comp-id="'+this.getCompId()+'"'),n.push(' class="'+r+'"'),n.push(' style="height: '+i+"px; "+c+" "+s+'">'),n.push(e),n.push("</div>"),n.join("")},n.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(e,t){if(this.active){var n=this.createCells(e);t.innerHTML=n.template,this.callAfterRowAttachedOnCells(n.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(e,t,n){var i=this,r=this.useAnimationFrameForCreate,o=r?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(o.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(i.getCompId());i.afterRowAttached(e,s),n(s),r?i.beans.taskQueue.createTask(i.lazyCreateCells.bind(i,t,s),i.rowNode.rowIndex,"createTasksP1"):(i.callAfterRowAttachedOnCells(o.cellComps,s),i.rowContainerReadyCount=3)}))},n.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=pn({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},n.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,i=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(i);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var e,t,n,i=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return i.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,n,(function(e){return i.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return i.ePinnedLeftRow=e}))},n.prototype.createFullWidthRows=function(e,t){var n=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,
1null,e,t,(function(e){n.eFullWidthRowBody=e}),(function(e){n.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,o.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){n.eFullWidthRowLeft=e}),(function(e){n.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,o.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){n.eFullWidthRowRight=e}),(function(e){n.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){n.eFullWidthRow=e}),(function(e){n.fullWidthRowComponent=e}))},n.prototype.setAnimateFlags=function(e){if(e){var t=h.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n,i){if(!t||!n)return!0;if(!n.refresh)return!1;var r=e.createFullWidthParams(t,i);return n.refresh(r)},n=t(this.eFullWidthRow,this.fullWidthRowComponent,null),i=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),r=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,o.PINNED_LEFT),s=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,o.PINNED_RIGHT);return n&&i&&r&&s},n.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,He.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,He.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,F.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,F.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,F.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(e,F.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,He.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,He.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},n.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},n.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;
1this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,o.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,o.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case o.PINNED_LEFT:return this.ePinnedLeftRow;case o.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,n;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,n),this.elementOrderChanged=!1;var i=Object.keys(this.cellComps);e.forEach((function(e){return h.removeFromArray(i,e.getId())})),t.forEach((function(e){return h.removeFromArray(i,e.getId())})),n.forEach((function(e){return h.removeFromArray(i,e.getId())}));var r=i.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(r)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var n=t.cellComps[e];h.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)}))},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=this.cellComps[e];if(!n)return!0;if(this.isCellInWrongRow(n))return!0;var i=n.isEditing(),r=this.beans.focusedCellController.isCellFocused(n.getCellPosition());if(i||r){var o=n.getColumn();return!(t.indexOf(o)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),n=e.getColumn().getPinned(),i=this.getContainerForCell(n),r=e.getParentRow();r!==i&&(r&&r.removeChild(t),i.appendChild(t),e.setParentRow(i),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),n=this.getContainerForCell(t.getPinned());return e.getParentRow()!==n},n.prototype.insertCellsIntoContainer=function(e,t){var n=this;if(e){var i=[],r=[];if(t.forEach((function(t){var o=t.getId(),s=n.cellComps[o];s?n.ensureCellInCorrectContainer(s):n.createNewCell(t,e,i,r)})),i.length>0&&(h.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(r,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var o=t.map((function(e){return n.getCellForCol(e)}));h.setDomChildOrder(e,o)}}},n.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,null)}))},n.prototype.createNewCell=function(e,t,n,i){var r=new dn(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),o=r.getCreateTemplate();n.push(o),i.push(r),this.cellComps[e.getId()]=r,r.setParentRow(t),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!h.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(F.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowClick=function(e){if(!h.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(F.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,i=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&
1!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),o=this.beans.gridOptionsWrapper.isRowDeselection();this.rowNode.isSelected()?r?this.rowNode.setSelectedParams({newValue:!1}):n?o&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r&&!n,rangeSelect:i})}}},n.prototype.createFullWidthRowContainer=function(e,n,i,r,o,s,a){var l=this,c=this.createTemplate("",i);e.appendRowTemplate(c,(function(){var i=e.getRowElement(l.getCompId()),c=l.createFullWidthParams(i,n),u=function(e){if(l.isAlive()){var t=e.getGui();i.appendChild(t),a(e)}else e.destroy&&e.destroy()},d=l.beans.detailRowCompCache.get(l.rowNode,n);if(d)u(d);else{var h=l.beans.userComponentFactory.newFullWidthCellRenderer(c,r,o);if(!h){var p=k.isRegistered(t.ModuleNames.MasterDetailModule);return void("agDetailCellRenderer"!==o||p?console.error("ag-Grid: fullWidthCellRenderer "+o+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}h.then(u)}l.afterRowAttached(e,i),s(i),l.angular1Compile(i)}))},n.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},n.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},n.prototype.getInitialRowClasses=function(e){var t=[],n=this.beans.gridOptionsWrapper.isTreeData(),i=this.rowNode;return h.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),i.isSelected()&&t.push("ag-row-selected"),i.group?(t.push("ag-row-group"),t.push("ag-row-level-"+i.level),i.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(i.parent?i.parent.level+1:"0")),i.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(n?i.allChildrenCount:i.group&&!i.footer)&&t.push(i.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),i.dragging&&t.push("ag-row-dragging"),h.pushAll(t,this.processClassesFromGridOptions()),h.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return h.addOrRemoveCssClass(e,"ag-row-last",t)})))},n.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},n.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(F.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEac
1h((function(t){return h.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=this.createRowEvent(e?F.EVENT_ROW_EDITING_STARTED:F.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp((function(i){var r=i===n;r?i.startEditingIfEnabled(e,t,r):i.startEditingIfEnabled(null,null,r)})),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(e){h.iterateObject(this.cellComps,(function(t,n){n&&e(n)}))},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return h.addCssClass(e,t)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return h.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return h.removeCssClass(e,t)}))}))},n.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.beans.gridOptionsWrapper.getRowClass();if(n){if("function"==typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(n)}var i=this.beans.gridOptionsWrapper.getRowClassFunc();return i&&t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()})),e},n.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return h.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return h.addStylesToElement(t,e)}))},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();return n&&(t=n({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})),h.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(e){var t=this,n=[],i=[];return e.forEach((function(e){var r=new dn(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),o=r.getCreateTemplate();n.push(o),i.push(r),t.cellComps[e.getId()]=r})),{template:n.join(""),cellComps:i}},n.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-selected",e)}))},n.prototype.callAfterRowAttachedOnCells=function(e,t){var n=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),n.editingRow&&e.startEditingIfEnabled()}))},n.prototype.afterRowAttached=function(e,t){var n=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(h.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else h.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t)},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,He.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||h.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,He.EVENT_MOUSE_LEAVE,(function(){h.removeCssClass(e,"ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),i)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(h.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";
1this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=F.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+F.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=F.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+F.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroy=function(t){void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var n=this.createRowEvent(F.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n)},n.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},n.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return h.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&h.exists(e)){var t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=n})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+n+")"}))}},n.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(e){var t=this,n=this.cellComps[e.getColId()];if(n)return n;var i=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return i.length?i[0]:void 0},n.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2==0,i=this.rowIsEven!==n,r=this.beans.gridPanel.headerRootComp.getHeaderRowCount();i&&(this.rowIsEven=n),this.eAllRowContainers.forEach((function(o){o.setAttribute("row-index",t),o.setAttribute("aria-rowindex",(r+e.rowNode.rowIndex+1).toString()),i&&(h.addOrRemoveCssClass(o,"ag-row-even",n),h.addOrRemoveCssClass(o,"ag-row-odd",!n))}))},n.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}(ae),mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},yn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
1return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return mn(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,F.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,F.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,F.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,F.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.forEachCellComp((function(e){e.getColumn()===t&&n(e)}))},i=function(){n((function(e){return e.onLeftChanged()}))},r=function(){n((function(e){return e.onWidthChanged()}))},o=function(){n((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){n((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(R.EVENT_LEFT_CHANGED,i),t.addEventListener(R.EVENT_WIDTH_CHANGED,r),t.addEventListener(R.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),t.addEventListener(R.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(R.EVENT_LEFT_CHANGED,i),t.removeEventListener(R.EVENT_WIDTH_CHANGED,r),t.removeEventListener(R.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),t.removeEventListener(R.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()}
1,t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){h.missing(e)&&(e={type:F.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function n(n,i){var r=i.getCellForCol(e);r&&t.push(r)}return h.iterateObject(this.rowCompsByIndex,n),h.iterateObject(this.floatingBottomRowComps,n),h.iterateObject(this.floatingTopRowComps,n),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,n,i,r,o){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new fn(s.$scope,r,n,i,o,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){this.redrawAfterModelUpdate({recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];
1return h.missing(e)?t:(h.iterateObject(this.rowCompsByIndex,(function(n,i){var r=i.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t)},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(h.missing(t))return null;var n=document.activeElement,i=this.gridOptionsWrapper.getDomData(n,dn.DOM_DATA_KEY_CELL_COMP);return h.missing(i)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&e.recycleRows,i=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(n);this.redraw(r,i),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var n=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(n)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}
1). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,n){n.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,n){return n.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){h.iterateObject(this.rowCompsByIndex,e),h.iterateObject(this.floatingTopRowComps,e),h.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,n){var i=this.rowCompsByIndex[t];i&&i.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellRenderer();n&&t.push(n)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var i,r,s=this;h.exists(e)&&(i={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===o.PINNED_TOP?i.top[e.id]=!0:e.rowPinned===o.PINNED_BOTTOM?i.bottom[e.id]=!0:i.normal[e.id]=!0}))),h.exists(t)&&(r={},t.forEach((function(e){var t=s.columnController.getGridColumn(e);h.exists(t)&&(r[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode(),s=t.id,a=t.rowPinned;if(h.exists(i))if(a===o.PINNED_BOTTOM){if(!i.bottom[s])return}else if(a===o.PINNED_TOP){if(!i.top[s])return}else if(!i.normal[s])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();r&&!r[t]||n(e)}))};h.iterateObject(this.rowCompsByIndex,(function(e,t){a(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(a),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(a)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,n=this,i={};return e?(t=[],h.iterateObject(this.rowCompsByIndex,(function(e,r){var o=r.getRowNode();h.exists(o.id)?(i[o.id]=r,delete n.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),i},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCompsByIndex).filter((function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=h.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return h.iterateObject(this.rowCompsByIndex,(function(n,i){var r=Number(n);(r<e.firstRenderedRow||r>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(i)&&t.push(r)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(r),this.printLayout&&(t=!1);var o=[],s=[];r.forEach((function(r){var a=i.createOrUpdateRowComp(r,e,t,n);h.exists(a)&&(s.push(a),h.pushAll(o,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),h.executeNextVMTurn(o),!n||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowComps(e,t):this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)),this.checkAngularCompile(),this.gridPanel.updateRowCount()}
1,t.prototype.flushContainers=function(e){h.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];h.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()){var i=n.getRowNode().rowIndex;e.push(i.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];h.iterateObject(this.rowCompsByIndex,(function(t,n){if(n.isFullWidth()&&!n.refreshFullWidth()){var i=n.getRowNode().rowIndex;e.push(i.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,n,i){var r,o=this.rowCompsByIndex[e];if(o||(r=this.paginationProxy.getRow(e),h.exists(r)&&h.exists(t)&&t[r.id]&&r.alreadyRendered&&(o=t[r.id],t[r.id]=null)),o)o.ensureDomOrder();else{if(r||(r=this.paginationProxy.getRow(e)),!h.exists(r))return;o=this.createRowComp(r,n,i)}return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[e]=o,o},t.prototype.destroyRowComps=function(e,t){var n=[];h.iterateObject(e,(function(e,i){i&&(i.destroy(t),h.pushAll(n,i.getAndClearDelayedDestroyFunctions()))})),h.executeInAWhile(n)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var i=this.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),s=this.gridPanel.getVScrollPosition(),a=s.top,l=s.bottom,c=this.gridOptionsWrapper.getRowBufferInPixels(),u=a+i+r-c,d=l+i+r+c;this.ensureAllRowsInRangeHaveHeightsCalculated(u,d);var h=this.paginationProxy.getRowIndexAtPixel(u),p=this.paginationProxy.getRowIndexAtPixel(d),f=this.paginationProxy.getPageFirstRow(),m=this.paginationProxy.getPageLastRow();h<f&&(h=f),p>m&&(p=m),e=h,t=p}else e=0,t=-1;var g=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),v=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);if(g&&!y&&t-e>v&&(t=e+v),(e!==this.firstRenderedRow||t!==this.lastRenderedRow)&&(this.firstRenderedRow=e,this.lastRenderedRow=t,this.eventService.dispatchEvent({type:F.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi})),this.paginationProxy.isRowsToRender()){var _={type:F.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(_)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusedCellController.isRowNodeFocused(t),i=e.isEditing();return!!(n||i||t.detail)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,n){var i=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=new fn(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,n&&!i&&!this.printLayout,this.printLayout,this.embedFullWidthRows);return r.init(),r},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,n,i){for(var r=n,s=!1;!s;)if(this.gridOptionsWrapper.isEnableRtl()?t===o.KEY_LEFT&&(r=this.getLastCellOfColSpan(r)):t===o.KEY_RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(t,r),h.missing(r))s=!0;else{var a=this.rowPositionUtils.getRowNode(r);if(!a.detail&&!a.isFullWidthCell())if(a.group){var l=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(l)||(s=!0)}else s=!0}if(i){var c=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(h.exists(c)){var u=c({key:t,previousCellPosition:n,nextCellPosition:r||null,event:e});h.exists(u)?(u.floating&&(h.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),r={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):r=null}}r&&(this.ensureCellVisible(r),r=this.getComponentForCell(r).getCellPosition(),this.ensureCellVisible(r),this.focusedCellController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;
1var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:h.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){h.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,n){var i=this.getComponentForCell(e);i&&i.startRowOrCellEdit(t,n)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case o.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case o.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){this.moveToCellAfter(e,t.shiftKey)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(h.missing(t))return!1;var n=this.getComponentForCell(t);return!h.missing(n)&&this.moveToCellAfter(n,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var n=e.getCellPosition();e.stopEditing();var i=this.findNextCellToFocusOn(n,t,!0),r=h.exists(i);return r&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),r},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),i=this.findNextCellToFocusOn(n,t,!0),r=h.exists(i);return r&&this.moveEditToNextCellOrRow(e,i),r},t.prototype.moveToNextCellNotEditing=function(e,t){var n=e.getCellPosition(),i=this.findNextCellToFocusOn(n,t,!1),r=h.exists(i);return r&&i.focusCell(!0),r},t.prototype.moveEditToNextCellOrRow=function(e,t){var n=e.getCellPosition(),i=t.getCellPosition();if(n.rowIndex===i.rowIndex&&n.rowPinned===i.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var r=e.getRenderedRow(),o=t.getRenderedRow();e.setFocusOutOnEditor(),r.stopEditing(),o.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var i=e;;){t||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,t);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(h.exists(r)){var o=r({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:i||null});h.exists(o)?(o.floating&&(h.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),o.rowPinned=o.floating),i={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}):i=null}if(!i)return null;if(n){var s=this.lookupRowNodeForCell(i);if(!i.column.isCellEditable(s))continue}h.missing(i.rowPinned)&&this.gridPanel.ensureIndexVisible(i.rowIndex),i.column.isPinned()||this.gridPanel.ensureColumnVisible(i.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(i);if(!h.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(i),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===o.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===o.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},gn([b("paginationProxy")],t.prototype,"paginationProxy",void 0),gn([b("columnController")],t.prototype,"columnController",void 0),gn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gn([b("$scope")],t.prototype,"$scope",void 0),gn([b("eventService")],t.prototype,"eventService",void 0),gn([b("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),gn([b("rowModel")],t.prototype,"rowModel",void 0),gn([b("loggerFactory")],t.prototype,"loggerFactory",void 0),gn([b("focusedCellController")],t.prototype,"focusedCellController",void 0),gn([b("cellNavigationService")],t.prototype,"cellNavigationService",void 0),gn([b("columnApi")],t.prototype,"columnApi",void 0),gn([b("gridApi")],t.prototype,"gridApi",void 0),gn([b("beans")],t.prototype,"beans",void 0),gn([b("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),gn([b("animationFrameService")],t.prototype,"animationFrameService",void 0),gn([b("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),gn([w("rangeController")],t.prototype,"rangeController",void 0),gn([(0,n=E("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"agWire",null),gn([_("rowRenderer")],t);var n}(re),vn=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,i,r){h.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,i,r)},e.addToolPanelClassesFromColDef=function(e,t,n,i,r){h.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,i,r)},e.addColumnClassesFromCollDef=function(e,t,n,i,r,o){var s;h.missing(e)||("string"==typeof(s="function"==typeof e?e({colDef:t,column:r,columnGroup:o,context:i.getContext(),api:i.getApi()}
1):e)?h.addCssClass(n,s):Array.isArray(s)&&s.forEach((function(e){h.addCssClass(n,e)})))},e}(),_n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s.columnOrGroup=t,s.eCell=n,s.ariaEl=s.eCell.querySelector("[role=columnheader]")||s.eCell,s.colsSpanning=r,s.beans=i,s.printLayout=i.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,s}return _n(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?h.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,R.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=h.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),n=this.getColumnOrGroup().getOldLeft();this.setLeft(n),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===o.PINNED_LEFT?t:e.getPinned()===o.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(h.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof R){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(re),wn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return wn(t,e),t.prototype.postConstruct=function(){h.addCssClass(this.getGui(),"ag-labeled");var e=this.config,t=e.labelSeparator,n=e.label,i=e.labelWidth,r=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,h.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,null!=this.label&&this.refreshLabel(),this)},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return h.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),h.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),h.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label?this:(h.setElementWidth(this.eLabel,e),this)},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([y],t.prototype,"postConstruct",null),t}(ae),En=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return En(t,e),t.prototype.onValueChange=function(e){var n=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return h.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e?this:(this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED}),this)},t.EVENT_CHANGED="valueChange",t}(Cn),Dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='<div class="ag-input-field" role="presentation">\n            <label ref="eLabel"></label>\n            <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                <%displayField% ref="eInput"></%displayField%>\n            </div>\n        </div>',t}return Dn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),h.addCssClass(this.getGui(),this.className);var t=this.config,n=t.width,i=t.value;null!=n&&this.setWidth(n),null!=i&&this.setValue(i),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){e.setValue(t.target.value)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return h.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},xn([he("eLabel")],t.prototype,"eLabel",void 0),xn([he("eWrapper")],t.prototype,"eWrapper",void 0),xn([he("eInput")],t.prototype,"eInput",void 0),t}(Sn),On=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kn=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.nativeInputClassName="ag-native-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.iconMap={selected:"checkboxChecked",unselected:"checkboxUnchecked",indeterminate:"checkboxIndeterminate"},t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return On(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.gridOptionsWrapper.useNativeCheckboxes()?h.addCssClass(this.eInput,this.nativeInputClassName):(h.addCssClass(this.eInput,"ag-hidden"),this.addIconsPlaceholder(),this.updateIcons())},t.prototype.addInputListeners=function(){var e=this;this.gridOptionsWrapper.useNativeCheckboxes()?this.addDestroyableEventListener(this.eInput,"click",this.onCheckboxClick.bind(this)):(this.addDestroyableEventListener(this.getGui(),"click",(function(t){return e.onClick(t)})),this.addDestroyableEventListener(this.eInput,"change",(function(t){return e.setValue(t.target.checked,!0)})))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eInput.readOnly=e,this.readOnly=e,this.updateIcons()},t.prototype.toggle=function(){var e=this.getNextValue();this.passive?this.dispatchChange(e):this.setValue(e)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.setSelected(e,t),this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.selected!==e&&(this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.eInput.indeterminate=void 0===this.selected,this.updateIcons(),t||this.dispatchChange(this.selected))},t.prototype.getIconName=function(){var e=this.getValue(),t=void 0===e?"indeterminate":e?"selected":"unselected",n=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[t]+n},t.prototype.updateIcons=function(){this.gridOptionsWrapper.useNativeCheckboxes()||(h.clearElement(this.eIconEl),this.eIconEl.appendChild(h.createIconNoSpan(this.getIconName(),this.gridOptionsWrapper,null)))},t.prototype.dispatchChange=function(e){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e})},t.prototype.addIconsPlaceholder=function(){var e=document.createElement("div");this.eWrapper.appendChild(e),this.eIconEl=e},t.prototype.onClick=function(e){h.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.onCheckboxClick=function(e){this.selected=e.target.checked,this.dispatchChange(this.selected)},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Tn),In=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mn=function(e){function t(t,n){var i=e.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.cbSelectAll=t,i.column=n;var r=n.getColDef();return i.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,i}return In(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,kn.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,i=function(i){e.gridOptionsWrapper.isGroupSelectsChildren()&&i.group||(i.isSelected()?t++:i.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(i):this.gridApi.forEachNode(i),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===o.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),1)))},Rn([b("gridApi")],t.prototype,"gridApi",void 0),Rn([b("columnApi")],t.prototype,"columnApi",void 0),Rn([b("eventService")],t.prototype,"eventService",void 0),Rn([b("rowModel")],t.prototype,"rowModel",void 0),Rn([b("selectionController")],t.prototype,"selectionController",void 0),Rn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Rn([y],t.prototype,"postConstruct",null),t}(re),An=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ln=function(e){function t(t,n){var i=e.call(this)||this;return i.columns=t,i.element=n,i}return An(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Pn([b("columnHoverService")],t.prototype,"columnHoverService",void 0),Pn([y],t.prototype,"postConstruct",null),t}(re),Nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyD
1escriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},jn=function(e){function n(t,i,r){var o=e.call(this,n.TEMPLATE)||this;return o.column=t,o.dragSourceDropTarget=i,o.pinned=r,o}return Nn(n,e),n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),n=e.sortable,i=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,n,i),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(n),this.addColumnHoverListener(),this.addFeature(new Ln([this.column],this.getGui())),this.addDestroyableEventListener(this.column,R.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new Mn(this.cbSelectAll,this.column));var r=new bn(this.column,this.getGui(),this.beans);r.init(),this.addDestroyFunc(r.destroy.bind(r)),this.addAttributes(),vn.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},n.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);h.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();h.addCssClass(t,"ag-header-cell-sortable")}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();h.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(e,t,n){var i=this,r={column:this.column,displayName:e,enableSorting:t,enableMenu:n,showColumnMenu:function(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e)},progressSort:function(e){i.sortController.progressSort(i.column,!!e,"uiColumnSorted")},setSort:function(e,t){i.sortController.setSortForColumn(i.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},o=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(r).then(o)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?h.addCssClass(this.getGui(),"ag-header-cell-moving"):h.removeCssClass(this.getGui(),"ag-header-cell-moving")},n.prototype.setupMove=function(e,n){var i=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.getColDef().lockPosition)&&e){var r={type:t.DragSourceType.HeaderCell,eElement:e,getDragItem:function(){return i.createDragItem()},dragItemName:n,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return i.dragAndDropService.removeDragSource(r)}))}},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var n=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(n);var i=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(i){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")}));var o=new Me(this.eResize);this.addDestroyableEventListener(o,Me.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,r,"uiColumnResized")})),this.addDestroyFunc(o.destroy.bind(o))}}else h.removeFromParent(this.eResize)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t);this.columnController.setColumnWidth(this.column,this.resizeStartWidth+n,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&h.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,h.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},n.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,R.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,R.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,R.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==o.PINNED_LE
1FT&&(t*=-1):this.pinned===o.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on">  <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>  <ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',Fn([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Fn([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Fn([b("columnController")],n.prototype,"columnController",void 0),Fn([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Fn([b("menuFactory")],n.prototype,"menuFactory",void 0),Fn([b("gridApi")],n.prototype,"gridApi",void 0),Fn([b("columnApi")],n.prototype,"columnApi",void 0),Fn([b("sortController")],n.prototype,"sortController",void 0),Fn([b("eventService")],n.prototype,"eventService",void 0),Fn([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Fn([b("columnHoverService")],n.prototype,"columnHoverService",void 0),Fn([b("beans")],n.prototype,"beans",void 0),Fn([he("eResize")],n.prototype,"eResize",void 0),Fn([he("cbSelectAll")],n.prototype,"cbSelectAll",void 0),Fn([y],n.prototype,"init",null),n}(ae),Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Yn=function(e){function n(t,i,r){var o=e.call(this,n.TEMPLATE)||this;return o.childColumnsDestroyFuncs=[],o.columnGroup=t,o.dragSourceDropTarget=i,o.pinned=r,o}return Vn(n,e),n.prototype.postConstruct=function(){vn.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(new Ln(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new bn(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},n.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,R.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},n.prototype.getColumn=function(){return this.columnGroup},n.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},n.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},n.prototype.onColumnMovingChanged=function(){h.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var i=this.columnGroup,r=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===r.length;)i=i.getParent();var o=i.getColGroupDef();o&&(e=o.headerName),e||(e=r?this.columnController.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(s)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.columnGroup.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var i=this;if(e&&!this.isSuppressMoving()){var r=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),o={type:t.DragSourceType.HeaderCell,eElement:e,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return r.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return r.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return i.dragAndDropService.removeDragSource(o)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];
1return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),h.removeFromArray(e,t))})),e.forEach((function(e){return n.push(e)})),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,M.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(R.EVENT_WIDTH_CHANGED,t),n.addEventListener(R.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){n.removeEventListener(R.EVENT_WIDTH_CHANGED,t),n.removeEventListener(R.EVENT_VISIBLE_CHANGED,t)}))}))},n.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",(function(t){var i=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||i.push(e.getColId())})),i.length>0&&e.columnController.autoSizeColumns(i,n,"uiColumnResized")}))}}else h.removeFromParent(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=n.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var i=null;if(e&&(i=this.columnController.getDisplayedGroupAfter(this.columnGroup)),i){var r=i.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;h.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],i=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+i}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&h.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==o.PINNED_LEFT&&(t*=-1):this.pinned===o.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='<div class="ag-header-group-cell" role="presentation">  <div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',Hn([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Hn([b("columnController")],n.prototype,"columnController",void 0),Hn([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Hn([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Hn([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Hn([b("gridApi")],n.prototype,"gridApi",void 0),Hn([b("columnApi")],n.prototype,"columnApi",void 0),Hn([b("beans")],n.prototype,"beans",void 0),Hn([y],n.prototype,"postConstruct",null),n}(ae),Bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gn=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input ref="eFloatingFilterText" class="ag-floating-filter-input"></div>')||this}return Bn(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.disabled=!0},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var i=n.getModelAsString(e);t.eFloatingFilterText.value=i}}
1)):this.eFloatingFilterText.value=""},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([he("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}(ae),Wn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Un=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},zn=function(e){function n(t){var i=e.call(this,n.TEMPLATE)||this;return i.column=t,i}return Wn(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Ln([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},n.prototype.setupLeftPositioning=function(){var e=new bn(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var n=e.filterManager.getFilterComponent(e.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(n,t)};this.addDestroyableEventListener(this.column,R.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);h.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,R.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var n=e.getGui();h.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),h.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),h.setDisplayed(this.eButtonWrapper,!this.suppressFilterButton);var i=h.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(i),this.eFloatingFilterBody.appendChild(n),e.afterGuiAttached&&e.afterGuiAttached()}else t()},n.prototype.parentFilterInstance=function(e){this.filterManager.getFilterComponent(this.column,"NO_UI").then(e)},n.prototype.getFloatingFilterInstance=function(){var e,i=this.column.getColDef();"string"==typeof i.filter?e=n.filterToFloatingFilterNames[i.filter]:!0===i.filter&&(e=k.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var r=this.filterManager.createFilterParams(this.column,this.column.getColDef()),o=this.userComponentFactory.createFinalParams(i,"filter",r),s={api:this.gridApi,column:this.column,filterParams:o,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var a=this.userComponentFactory.newFloatingFilterComponent(i,s,e);if(!a){var l=this.getFilterComponentPrototype(i);if(l&&l.prototype&&l.prototype.getModelAsString){var c=this.userComponentFactory.createUserComponentFromConcreteClass(Gn,s);a=p.resolve(c)}}return a},n.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},n.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},n.prototype.setupEmpty=function(){h.setDisplayed(this.eButtonWrapper,!1)},n.prototype.currentParentModel=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}))},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(n){n.onParentModelChanged(e,t)}))},n.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n.TEMPLATE='<div class="ag-header-cell" role="presentation">\n            <div ref="eFloatingFilterBody" role="columnheader"></div>\n            <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n                <button type="button" ref="eButtonShowMainFilter"></button>\n            </div>\n        </div>',Un([b("columnHoverService")],n.prototype,"columnHoverService",void 0),Un([b("eventService")],n.prototype,"eventService",void 0),Un([b("beans")],n.prototype,"beans",void 0),Un([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Un([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Un([b("gridApi")],n.prototype,"gridApi",void 0),Un([b("columnApi")],n.prototype,"columnApi",void 0),Un([b("filterManager")],n.prototype,"filterManager",void 0),Un([b("menuFactory")],n.prototype,"menuFactory",void 0),Un([he("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),Un([he("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),Un([he("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),Un([y],n.prototype,"postConstruct",null),n}(ae),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(Qt||(Qt={}));var $n,Qn=function(e){function t(t,n,i,r){var o=e.call(this,'<div class="ag-header-row" role="row"/>')||this;return o.headerComps={}
1,o.dept=t,o.type=n,o.pinned=i,o.dropTarget=r,o}return qn(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(n){e(t.headerComps[n])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),n.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),i=[],r=0;this.columnController.isPivotMode()?(r=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&n++,r=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var o=n-(1+r),s=0;s<o;s++)i.push(e);for(i.push(t),s=0;s<r;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=i[s];this.getGui().style.top=a+"px",this.getGui().style.height=i[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT?h.missing(this.pinned)?this.columnController.getContainerWidth(o.PINNED_RIGHT)+this.columnController.getContainerWidth(o.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDepth=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT){if(h.missing(this.pinned)){var t=[];return[o.PINNED_LEFT,null,o.PINNED_RIGHT].forEach((function(n){var i=e.columnController.getVirtualHeaderGroupRow(n,e.type==Qt.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(i)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==Qt.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=Object.keys(this.headerComps),n=[];if(this.getItemsAtDepth().forEach((function(i){if(!i.isEmptyGroup()){var r,o,s=i.getUniqueId(),a=e.getGui();t.indexOf(s)>=0?h.removeFromArray(t,s):(r=e.createHeaderComp(i),e.headerComps[s]=r,o=r.getGui(),a.appendChild(o)),n.push(s)}})),this.removeAndDestroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var i=n.map((function(t){return e.headerComps[t].getGui()}));h.setDomChildOrder(this.getGui(),i)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case Qt.COLUMN:t=new jn(e,this.dropTarget,this.pinned);break;case Qt.COLUMN_GROUP:t=new Yn(e,this.dropTarget,this.pinned);break;case Qt.FLOATING_FILTER:t=new zn(e)}return this.getContext().wireBean(t),t},Kn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Kn([b("gridApi")],t.prototype,"gridApi",void 0),Kn([b("columnController")],t.prototype,"columnController",void 0),Kn([b("eventService")],t.prototype,"eventService",void 0),Kn([b("filterManager")],t.prototype,"filterManager",void 0),Kn([y],t.prototype,"init",null),t}(ae),Xn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Jn=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!h.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?Xt.ICON_PINNED:Xt.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var i=e.dragItem.visibleState,r=n.filter((function(e){return i[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem();this.setColumnsVisible(t.columns,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var i=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(i,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var i=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(i,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){return this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),n=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>n-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!h.missing(e.hDirection)){var i=this.normaliseX(e.x);t||this.checkCenterForScrolling(i);var r=this.normaliseDirection(e.hDirection),o=e.dragSource.type,s=e.dragSource.getDragItem().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(o,s,r,i,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=h.sortNumerically(e.map((function(e){return t.indexOf(e)}))),i=n[0];return h.last(n)-i!=n.length-1?null:i},e.prototype.attemptMoveColumns=function(e,n,i,r,o){var s=i===t.HorizontalDirection.Left,a=i===t.HorizontalDirection.Right,l=this.calculateValidMoves(n,a,r),c=this.calculateOldIndex(n);if(0!==l.length){var u=l[0],d=null!==c&&!o;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&u>=c)return;if(a&&u<=c)return}for(var h=0;h<l.length;h++){var p=l[h];if(this.columnController.doesMovePassRules(n,p))return void this.columnController.moveColumns(n,p,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var i,r=this.columnController.getDisplayedColumns(this.pinned),o=this.columnController.getAllGridColumns(),s=r.filter((function(t){return h.includes(e,t)})),a=r.filter((function(t){return!h.includes(e,t)})),l=o.filter((function(t){return!h.includes(e,t)})),c=0,u=n;if(t){var d=0;
1s.forEach((function(e){return d+=e.getActualWidth()})),u-=d}if(u>0){for(var p=0;p<a.length&&!((u-=a[p].getActualWidth())<0);p++)c++;t&&c++}c>0?i=l.indexOf(a[c-1])+1:-1===(i=l.indexOf(a[0]))&&(i=0);var f=[i];if(t)for(var m=i+1,g=o.length-1;m<=g;)f.push(m),m++;else{g=o.length-1;for(var y=o[m=i];m<=g&&this.isColumnHidden(r,y);)m++,f.push(m),y=o[m];for(m=i-1;m>=0;)f.push(m),m--}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?Xt.ICON_LEFT:Xt.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Xt.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));n.length>0&&(this.dragAndDropService.setGhostIcon(Xt.ICON_PINNED),this.failedMoveAttempts>7&&(this.setColumnsPinned(n,this.needToMoveLeft?o.PINNED_LEFT:o.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge()))}},Xn([b("loggerFactory")],e.prototype,"loggerFactory",void 0),Xn([b("columnController")],e.prototype,"columnController",void 0),Xn([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Xn([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xn([y],e.prototype,"init",null),e}(),Zn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ei=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly()||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Xt.ICON_PINNED:Xt.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Zn([b("columnController")],e.prototype,"columnController",void 0),Zn([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),ti=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}($n||($n={}));var ni,ii=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case o.PINNED_LE
1FT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case o.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new Jn(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new ei(this.pinned);this.context.wireBean(e),this.dropListeners[$n.ColumnMove]=this.moveColumnController,this.dropListeners[$n.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?$n.Pivot:$n.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},ti([b("context")],e.prototype,"context",void 0),ti([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ti([b("columnController")],e.prototype,"columnController",void 0),ti([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ti([y],e.prototype,"init",null),e}(),ri=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},oi=function(){function e(e,t,n){this.headerRowComps=[],this.eContainer=e,this.pinned=n,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(F.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(F.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(F.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===o.PINNED_LEFT,t=this.pinned===o.PINNED_RIGHT,n=this.columnController,i=this.gridOptionsWrapper.isEnableRtl();if(e||t){var r=n[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&t)&&(r+=this.scrollWidth),h.setFixedWidth(this.eContainer,r)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=new ii(this.pinned,this.eViewport?this.eViewport:this.eContainer);this.context.wireBean(t),t.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,h.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var n=new Qn(t,t!==e-1?Qt.COLUMN_GROUP:Qt.COLUMN,this.pinned,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),n.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(n.getGui())}this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()&&(n=new Qn(e,Qt.FLOATING_FILTER,this.pinned,this.dropTarget),this.context.wireBean(n),this.headerRowComps.push(n),n.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(n.getGui()))},ri([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ri([b("context")],e.prototype,"context",void 0),ri([b("$scope")],e.prototype,"$scope",void 0),ri([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ri([b("columnController")],e.prototype,"columnController",void 0),ri([b("eventService")],e.prototype,"eventService",void 0),ri([b("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),ri([y],e.prototype,"init",null),e}(),si=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ai=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},li=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return si(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEac
1h((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new oi(this.eHeaderContainer,this.eHeaderViewport,null),n=new oi(this.ePinnedLeftHeader,null,o.PINNED_LEFT),i=new oi(this.ePinnedRightHeader,null,o.PINNED_RIGHT);this.childContainers=[t,n,i],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();h.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),h.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){h.setDisplayed(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){h.setDisplayed(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='<div class="ag-header" role="presentation">\n            <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n            <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n                <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n            </div>\n            <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n        </div>',ai([he("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),ai([he("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),ai([he("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),ai([he("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),ai([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ai([b("columnController")],t.prototype,"columnController",void 0),ai([b("eventService")],t.prototype,"eventService",void 0),ai([b("gridApi")],t.prototype,"gridApi",void 0),ai([b("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),ai([y],t.prototype,"postConstruct",null),t}(ae),ci=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ui=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1}var n;return n=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(F.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(F.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var i=Object.keys(e);
1h.iterateObject(this.allFilters,(function(r,o){h.removeFromArray(i,r),t.setModelOnFilterWrapper(o.filterPromise,e[r]),n.push(o.filterPromise)})),i.forEach((function(i){var r=t.columnController.getPrimaryColumn(i);if(r){var o=t.getOrCreateFilterWrapper(r,"NO_UI");t.setModelOnFilterWrapper(o.filterPromise,e[i]),n.push(o.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+i)}))}else h.iterateObject(this.allFilters,(function(e,i){t.setModelOnFilterWrapper(i.filterPromise,null),n.push(i.filterPromise)}));p.all(n).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return h.iterateObject(this.allFilters,(function(t,n){var i=n.filterPromise.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"==typeof i.getModel){var r=i.getModel();h.exists(r)&&(e[t]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;h.iterateObject(this.allFilters,(function(t,n){n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){h.iterateObject(this.allFilters,(function(n,i){var r=i.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));i.column.setFilterActive(r,e,t)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var n=e.data,i=Object.keys(this.allFilters),r=0,o=i.length;r<o;r++){var s=this.allFilters[i[r]];if(void 0!==s){var a=s.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==a&&a!==t&&a.isFilterActive()&&(a.doesFilterPass||console.error("Filter is missing method doesFilterPass"),!a.doesFilterPass({node:e,data:n})))return!1}}return!0},e.prototype.parseQuickFilter=function(e){return h.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),h.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:F.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&h.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this,i=this.columnController.getAllColumnsForQuickFilter(),r=!1;return i.forEach((function(i){if(!r){var o=n.getQuickFilterTextForColumn(i,e);h.exists(o)&&o.indexOf(t)>=0&&(r=!0)}})),r},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,n=!0,i=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(r){(i?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r))||(n=!1)})),n},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e)||this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e)||this.advancedFilterPresent&&!this.doesFilterPass(e,t))},e.prototype.getQuickFilterTextForColumn=function(e,t){var n,i=this.valueService.getValue(e,t,!0),r=e.getColDef();if(e.getColDef().getQuickFilterText){var o={value:i,node:t,data:t.data,column:e,colDef:r,context:this.gridOptionsWrapper.getContext()};n=e.getColDef().getQuickFilterText(o)}else n=i;return h.exists(n)?n.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var t=this,i=[];
1this.columnController.getAllColumnsForQuickFilter().forEach((function(n){var r=t.getQuickFilterTextForColumn(n,e);h.exists(r)&&i.push(r)})),e.quickFilterAggregateText=i.join(n.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){h.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=n),n},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,n){var i=this,r="agTextColumnFilter";k.isRegistered(t.ModuleNames.SetFilterModule)&&(r="agSetColumnFilter");var o,s=h.cloneObject(e.getColDef()),a=this.createFilterParams(e,s,n);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){i.eventService.dispatchEvent({type:F.EVENT_FILTER_MODIFIED,api:i.gridApi,columnApi:i.columnApi,column:e,filterInstance:o})};var l=this.userComponentFactory.newFilterComponent(s,a,r,(function(e,t){return h.assign(e,{doesRowPassOtherFilter:i.doesRowPassOtherFilters.bind(i,t)})}));return l&&l.then((function(e){return o=e})),l},e.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var i={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return n&&(i.$scope=n),i},e.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:p.external()};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},e.prototype.putIntoGui=function(e,t){var n=this,i=document.createElement("div");i.className="ag-filter",e.filterPromise.then((function(r){var o=r.getGui();if(h.missing(o)&&console.warn("getGui method from filter returned "+o+", it should be a DOM element or an HTML template string."),"string"==typeof o&&(o=h.loadTemplate(o)),i.appendChild(o),e.scope){var s=n.$compile(i)(e.scope);e.compiledElement=s,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(i),n.eventService.dispatchEvent({type:F.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:i,api:n.gridApi,columnApi:n.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;h.iterateObject(this.allFilters,(function(n,i){!e.columnController.getPrimaryColumn(i.column)&&(t=!0,e.disposeFilterWrapper(i,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allFilters[e.getColId()];n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(i){i.setModel(null),i.destroy&&i.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete n.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;h.iterateObject(this.allFilters,(function(t,n){e.disposeFilterWrapper(n,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",ci([b("$compile")],e.prototype,"$compile",void 0),ci([b("$scope")],e.prototype,"$scope",void 0),ci([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ci([b("popupService")],e.prototype,"popupService",void 0),ci([b("valueService")],e.prototype,"valueService",void 0),ci([b("columnController")],e.prototype,"columnController",void 0),ci([b("rowModel")],e.prototype,"rowModel",void 0),ci([b("eventService")],e.prototype,"eventService",void 0),ci([b("context")],e.prototype,"context",void 0),ci([b("columnApi")],e.prototype,"columnApi",void 0),ci([b("gridApi")],e.prototype,"gridApi",void 0),ci([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),ci([y],e.prototype,"init",null),ci([v],e.prototype,"destroy",null),n=ci([_("filterManager")],e)}(),di=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},hi=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),this.initialised||this.init(),t){var r,o=e.getColDef(),s=o.field,a=e.getId(),l=t.data,c=t.groupData&&void 0!==t.groupData[a],u=!i&&t.aggData&&void 0!==t.aggData[a];if(n&&o.filterValueGetter?r=this.executeFilterValueGetter(o.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?r=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&o.valueGetter?r=this.execute
1ValueGetter(o.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?r=h.getValueUsingField(l,s,e.isFieldContainsDots()):c?r=t.groupData[a]:u?r=t.aggData[a]:o.valueGetter?r=this.executeValueGetter(o.valueGetter,l,e,t):s&&l&&(r=h.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var d=r.substring(1);r=this.executeValueGetter(d,l,e,t)}return r}},e.prototype.setValue=function(e,t,n,i){var r=this.columnController.getPrimaryColumn(t);if(e&&r){var o=e.data;h.missing(o)&&(e.data={});var s=r.getColDef(),a=s.field,l=s.newValueHandler,c=s.valueSetter;if(h.missing(a)&&h.missing(l)&&h.missing(c))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,d={node:e,data:e.data,oldValue:this.getValue(r,e),newValue:n,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(u=l&&h.exists(l)?l(d):h.exists(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(o,a,n,r.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(r,e);var p=r.getColDef().onCellValueChanged;"function"==typeof p&&setTimeout((function(){return p(d)}),0),this.eventService.dispatchEvent({type:F.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,colDef:d.colDef,columnApi:d.columnApi,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:i})}}}},e.prototype.setValueUsingField=function(e,t,n,i){if(!t)return!1;if(i)for(var r=t.split("."),o=e;r.length>0&&o;){var s=r.shift();0===r.length?o[s]=n:o=o[s]}else e[t]=n;return!0},e.prototype.executeFilterValueGetter=function(e,t,n,i){var r={data:t,node:i,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)};return this.expressionService.evaluate(e,r)},e.prototype.executeValueGetter=function(e,t,n,i){var r=n.getId(),o=this.valueCache.getValue(i,r);if(void 0!==o)return o;var s={data:t,node:i,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(i,r,a),a},e.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},e.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),i=e.getColDef().keyCreator,r=i?i({value:n}):n;return"string"==typeof r||null==r?r:("[object Object]"===(r=String(r))&&h.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r)},di([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),di([b("expressionService")],e.prototype,"expressionService",void 0),di([b("columnController")],e.prototype,"columnController",void 0),di([b("eventService")],e.prototype,"eventService",void 0),di([b("valueCache")],e.prototype,"valueCache",void 0),di([y],e.prototype,"init",null),di([_("valueService")],e)}(),pi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},fi=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoC
1hildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(J.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");h.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=h.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(h.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),h.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},pi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pi([y],e.prototype,"postConstruct",null),e}(),mi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gi=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},e.prototype.getIconName=function(){return Xt.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(F.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(Xt.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(F.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){this.clientSideRowModel.ensureRowAtPixel(e.dragItem.rowNode,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,n){var i,r=this.normaliseForScroll(n.y),o=-1,s=null;switch(r>this.rowModel.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(o)),n.vDirection){case t.VerticalDirection.Down:i="down";break;case t.VerticalDirection.Up:i="up";break;default:i=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,overIndex:o,overNode:s,y:r,vDirection:i};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(F.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(F.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},mi([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),mi([b("rowModel")],e.prototype,"rowModel",void 0),mi([b("focusedCellController")],e.prototype,"focusedCellController",void 0),mi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),mi([w("rangeController")],e.prototype,"rangeController",void 0),mi([b("eventService")],e.prototype,"eventService",void 0),mi([y],e.prototype,"postConstruct",null),e}(),yi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_i=function(e){function n(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n        <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n            <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n                <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n            </div>\n            <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n            <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n            <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n                <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n                    <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n                </div>\n            </div>\n            <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n            <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n            <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n                <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n            </div>\n            <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n            <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n        </div>\n        <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollC
1ontainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n        </div>\n        <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n    </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounce=h.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return yi(n,e),n.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},n.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},n.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var n=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return n()}))}))},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){h.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},n.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return h.addOrRemoveCssClass(t,"ag-selectable",e)}))},n.prototype.addRowDragListener=function(){var e=new gi(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var n=!1,i=t.relatedTarget;h.exists(i)&&!n;)n=!!e.gridOptionsWrapper.getDomData(i,sn.DOM_KEY_POPUP_EDITOR_WRAPPER)||e.eBodyViewport===i||e.eBottom===i||e.eTop===i,i=i.parentNode;n||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addDestroyableEventListener(this.eventService,F.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,J.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;
1this.gridOptionsWrapper.isEnableRangeSelection()&&!h.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var n={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(n),e.addDestroyFunc((function(){return e.dragService.removeDragSource(n)}))}))},n.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){return e.addDestroyableEventListener(i,t,n)}))}))},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){e.addDestroyableEventListener(i,t,n)}))}))},n.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var n=h.getTarget(t);n!==e.eBodyViewport&&n!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.getRowForEvent=function(e){for(var t=h.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,fn.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=h.getCellCompForEvent(this.gridOptionsWrapper,t);if(n){var i=n.getRenderedRow().getRowNode(),r=n.getColumn(),o=n.isEditing();if(!h.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,i,r,o))switch(e){case"keydown":!o&&this.navigationService.handlePageScrollingKey(t)||n.onKeyDown(t),this.doGridOperations(t,n);break;case"keypress":n.onKeyPress(t)}if("keydown"===e){var s=n.createEvent(t,F.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=n.createEvent(t,F.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case o.KEY_A:return this.onCtrlAndA(e);case o.KEY_C:return this.onCtrlAndC(e);case o.KEY_V:return this.onCtrlAndV();case o.KEY_D:return this.onCtrlAndD(e);case o.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case o.KEY_Y:return this.undoRedoService.redo()}},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!h.isStopPropagationForAgGrid(t)){var n=this.getRowForEvent(t),i=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,i):(i&&i.onMouseEvent(e,t),n&&n.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},n.prototype.mockContextMenuForIPad=function(){var e=this;h.isIOSUserAgent()&&this.eAllCellContainers.forEach((function(t){var n=new Me(t);e.addDestroyableEventListener(n,Me.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),i=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,i)})),e.addDestroyFunc((function(){return n.destroy()}))}))},n.prototype.handleContextMenuMouseEvent=function(e,t,n,i){var r=n?n.getRowNode():null,o=i?i.getColumn():null,s=null;o&&(i.dispatchCellContextMenuEvent(e||t),s=this.valueService.getValue(o,r)),this.onContextMenu(e,t,r,o,s)},n.prototype.onContextMenu=function(e,t,n,i,r){!this.gridOptionsWrapper.isAllowContextMenuWithControlKey()&&e&&(e.ctrlKey||e.metaKey)||this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()&&(this.contextMenuFactory.showMenu(n,i,r,e||t.touches[0]),(e||t).preventDefault())},n.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,n=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===n)&&e.preventDefault()},n.prototype.onCtrlAndA=function(e){var t=this.columnController,n=this.pinnedRowModel,i=this.rangeController,r=
1o.PINNED_BOTTOM,s=o.PINNED_TOP;if(i&&this.paginationProxy.isRowsToRender()){var a=[n.isEmpty(s),n.isEmpty(r)],l=a[0]?null:s,c=void 0,u=void 0;a[1]?(c=null,u=this.paginationProxy.getRowCount()-1):(c=r,u=n.getPinnedBottomRowData().length-1);var d=t.getAllDisplayedColumns();if(h.missingOrEmpty(d))return;i.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:c,columnStart:d[0],columnEnd:h.last(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)}},n.prototype.onCtrlAndV=function(){k.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){k.isRegistered(t.ModuleNames.ClipboardModule)&&(this.clipboardService.copyRangeDown(),e.preventDefault())},n.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var n=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var i,r=this.paginationProxy.getRow(e);do{var o=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,c=l+r.rowHeight,u=this.getVScrollPosition(),d=this.heightScaler.getOffset(),h=u.top+d,p=u.bottom+d,f=p-h,m=this.heightScaler.getScrollPositionForPixel(l),g=this.heightScaler.getScrollPositionForPixel(c-f),y=Math.min((m+g)/2,l),v=null;"top"===t?v=m:"bottom"===t?v=g:"middle"===t?v=y:h>l?v=m:p<c&&(v=g),null!==v&&(this.eBodyViewport.scrollTop=v,this.rowRenderer.redrawAfterScroll()),i=o!==r.rowTop||s!==r.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},n.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return h.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||h.isVerticalScrollShowing(this.eBodyViewport)},n.prototype.isHorizontalScrollShowing=function(){return h.isHorizontalScrollShowing(this.eCenterViewport)},n.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize(),this.scrollLeft!==this.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},n.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},n.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),n=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,i=t?0:n,r=h.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+n+"px)",h.setFixedHeight(this.eHorizontalScrollBody,i),h.setFixedHeight(this.eBodyHorizontalScrollViewport,i+(r?1:0)),h.setFixedHeight(this.eBodyHorizontalScrollContainer,i)},n.prototype.setVerticalScrollPaddingVisible=function(e){this.eTop.style.overflowY=this.eBottom.style.overflowY=e?"scroll":"hidden",this.setFakeHScrollSpacerWidths()},n.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},n.prototype.updateColumnCount=function(){var e=this.beans.columnController.getAllDisplayedColumns();this.getGui().setAttribute("aria-colcount",e.length.toString())},n.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var n,i,r=t.getLeft(),o=r+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(n=l-a-s,i=l-a):(n=a,i=s+a);var c=n>r,u=i<o,d=s<t.getActualWidth(),h=c||d,p=u;this.getCenterViewportScrollLeft(),(h||p)&&this.setCenterViewportScrollLeft(this.enableRtl?h?l-s-r:l-o:h?r:o-s),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},n.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},n.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},n.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.eBodyViewport.clientWidth;n>0?this.columnController.sizeColumnsToFit(n,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.getCenterContainer=function(){return this.eCenterContainer},n.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},n.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},n.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},n.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new fi({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new fi({eContainer:this.eFullWidthContainer}),pinnedLeft:new fi({eContainer:this.eLeftContainer}),pinnedRight:new fi({eContainer:this.eRightContainer}),floatingTop:new fi({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new fi({eContainer:this.eLeftTop}),floatingTopPinnedRight:new fi({eContainer:this.eRightTop}),floatingTopFullWidth:new fi({eContainer:this.eTopFullWidthContainer,hideWhenNoC
1hildren:!0}),floatingBottom:new fi({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new fi({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new fi({eContainer:this.eRightBottom}),floatingBottomFullWith:new fi({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},h.iterateObject(this.rowContainerComponents,(function(t,n){n&&e.getContext().wireBean(n)}))},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();h.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),h.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,F.EVENT_HEIGHT_SCALE_CHANGED,t)},n.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},n.prototype.getRowContainers=function(){return this.rowContainerComponents},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},n.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},n.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth()),this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},n.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,n=this.columnController.getPinnedLeftContainerWidth(),i=this.pinningLeft=!this.printLayout&&n>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==i&&this.headerRootComp.setLeftVisible(i),r.forEach((function(t){return h.setDisplayed(t,e.pinningLeft)})),i&&r.forEach((function(e){return h.setFixedWidth(e,n)}))},n.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),n=this.pinningRight=!this.printLayout&&t>0,i=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==n&&this.headerRootComp.setRightVisible(n),i.forEach((function(e){return h.setDisplayed(e,n)})),n&&i.forEach((function(e){return h.setFixedWidth(e,t)}))},n.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),h.setFixedWidth(this.eHorizontalRightSpacer,e),h.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),h.setFixedWidth(this.eHorizontalLeftSpacer,t),h.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},n.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;this.bodyHeight!==e&&(this.bodyHeight=e,this.eventService.dispatchEvent({type:F.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},n.prototype.setHeaderAndFloatingHeights=function(){var e,t,n,i=this,r=i.columnController,o=i.gridOptionsWrapper,s=i.pinnedRowModel,a=i.eTop,l=i.eBottom,c=0,u=r.getHeaderRowCount();r.isPivotMode()?(c=0,t=o.getPivotGroupHeaderHeight(),n=o.getPivotHeaderHeight()):(o.isFloatingFilter()&&u++,c=o.isFloatingFilter()?1:0,t=o.getGroupHeaderHeight(),n=o.getHeaderHeight());var d=u-(1+c);e=c*o.getFloatingFiltersHeight(),e+=d*t,this.headerRootComp.setHeight(e+=n);var h=s.getPinnedTopTotalHeight();h&&(h+=1);var p=s.getPinnedBottomTotalHeight();p&&(p+=1);var f=h+"px",m=p+"px";a.style.minHeight=f,a.style.height=f,a.style.display=h?"inherit":"none",l.style.minHeight=m,l.style.height=m,l.style.display=p?"inherit":"none",this.checkBodyHeight()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},n.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},n.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},n.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},n.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,n=t.scrollWidth,i=t.clientWidth,r=Math.floor(h.getScrollLeft(e,this.enableRtl));r<0||r+i>n||(this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounce())},n.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},n.prototype.doHorizontalScroll=function(e){this.scrollLeft=e,this.eventService.dispatchEvent({type:F.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop}
1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},n.prototype.redrawRowsAfterScroll=function(){this.eventService.dispatchEvent({type:F.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop})},n.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},n.prototype.getCenterViewportScrollLeft=function(){return h.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){h.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.eCenterViewport,i=n.clientWidth,r=n.scrollWidth;Math.abs(t)+i>r||this.enableRtl&&t<0||!this.enableRtl&&t>0||(this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)",h.setScrollLeft(this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport,e,this.enableRtl))},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},vi([b("alignedGridsService")],n.prototype,"alignedGridsService",void 0),vi([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),vi([b("columnController")],n.prototype,"columnController",void 0),vi([b("rowRenderer")],n.prototype,"rowRenderer",void 0),vi([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),vi([b("eventService")],n.prototype,"eventService",void 0),vi([b("animationFrameService")],n.prototype,"animationFrameService",void 0),vi([b("navigationService")],n.prototype,"navigationService",void 0),vi([b("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),vi([b("columnAnimationService")],n.prototype,"columnAnimationService",void 0),vi([b("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),vi([b("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),vi([b("beans")],n.prototype,"beans",void 0),vi([b("paginationProxy")],n.prototype,"paginationProxy",void 0),vi([b("columnApi")],n.prototype,"columnApi",void 0),vi([b("gridApi")],n.prototype,"gridApi",void 0),vi([b("dragService")],n.prototype,"dragService",void 0),vi([b("mouseEventService")],n.prototype,"mouseEventService",void 0),vi([b("focusedCellController")],n.prototype,"focusedCellController",void 0),vi([b("$scope")],n.prototype,"$scope",void 0),vi([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),vi([b("valueService")],n.prototype,"valueService",void 0),vi([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),vi([b("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),vi([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),vi([b("undoRedoService")],n.prototype,"undoRedoService",void 0),vi([w("rangeController")],n.prototype,"rangeController",void 0),vi([w("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),vi([w("clipboardService")],n.prototype,"clipboardService",void 0),vi([he("eBodyViewport")],n.prototype,"eBodyViewport",void 0),vi([he("eCenterContainer")],n.prototype,"eCenterContainer",void 0),vi([he("eCenterViewport")],n.prototype,"eCenterViewport",void 0),vi([he("eLeftContainer")],n.prototype,"eLeftContainer",void 0),vi([he("eRightContainer")],n.prototype,"eRightContainer",void 0),vi([he("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),vi([he("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),vi([he("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),vi([he("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),vi([he("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),vi([he("eBodyHorizontalScrollC
1ontainer")],n.prototype,"eBodyHorizontalScrollContainer",void 0),vi([he("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),vi([he("eTop")],n.prototype,"eTop",void 0),vi([he("eLeftTop")],n.prototype,"eLeftTop",void 0),vi([he("eRightTop")],n.prototype,"eRightTop",void 0),vi([he("eTopContainer")],n.prototype,"eTopContainer",void 0),vi([he("eTopViewport")],n.prototype,"eTopViewport",void 0),vi([he("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),vi([he("eBottom")],n.prototype,"eBottom",void 0),vi([he("eLeftBottom")],n.prototype,"eLeftBottom",void 0),vi([he("eRightBottom")],n.prototype,"eRightBottom",void 0),vi([he("eBottomContainer")],n.prototype,"eBottomContainer",void 0),vi([he("eBottomViewport")],n.prototype,"eBottomViewport",void 0),vi([he("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),vi([he("headerRoot")],n.prototype,"headerRootComp",void 0),vi([he("overlayWrapper")],n.prototype,"overlayWrapper",void 0),vi([y],n.prototype,"init",null),n}(ae),bi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wi=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case o.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case o.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case o.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;h.iterateObject(this.detailGridInfoMap,(function(n,i){h.exists(i)&&(e(i,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(k.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){k.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(k.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){k.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e);this.clientSideRowModel.updateRowData(t[0],t[1]),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,n=0,i=0,r=this;!function o(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,c=r-a;console.log("duration:  processing = "+l+"ms, reflow = "+c+"ms"),t++,n+=l,i+=c,t<e?window.setTimeout(o,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+n/t+"ms"),console.log("average reflow = "+i/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){h.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),h.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:o.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){h.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=o.STEP_EVERYTHING,n={group:o.STEP_EVERYTHING,filter:o.STEP_FILTER,map:o.STEP_MAP,aggregate:o.STEP_AGGREGATE,sort:o.STEP_SORT,pivot:o.STEP_PIVOT};h.exists(e)&&(t=n[e]),h.missing(t)?console.error("ag-Grid: invali
1d step "+e+", available steps are "+Object.keys(n).join(", ")):this.clientSideRowModel.refreshModel({step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0})},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){h.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){h.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.getToolPanelInstance=function(e){return this.gridCore.getToolPanelInstance(e)},e.prototype.addVirtualRowListener=function(e,t,n){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){h.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:o.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBe
1stCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){h.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){h.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){h.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusedCellController.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(J.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(J.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(J.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(J.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(J.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(J.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(J.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.setSideBarPosition=function(e){this.gridCore.setSideBarPosition(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated 
1in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(J.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){h.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(J.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(J.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){h.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnController.getPrimaryColumn(e);return h.missing(n)&&(n=this.columnController.getGridColumn(e)),h.missing(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n        getCellRanges() is a bit different, please check the ag-Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return h.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getChartModels=function(){if(k.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&k.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.createRangeChart=function(e){if(k.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&k.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createPivotChart=function(e){if(k.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&k.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(n,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(J.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};h.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infiniteRowModel?this.infiniteRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only w
1orks with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infiniteRowModel?this.infiniteRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},bi([w("immutableService")],e.prototype,"immutableService",void 0),bi([w("csvCreator")],e.prototype,"csvCreator",void 0),bi([w("excelCreator")],e.prototype,"excelCreator",void 0),bi([b("rowRenderer")],e.prototype,"rowRenderer",void 0),bi([b("filterManager")],e.prototype,"filterManager",void 0),bi([b("columnController")],e.prototype,"columnController",void 0),bi([b("selectionController")],e.prototype,"selectionController",void 0),bi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bi([b("valueService")],e.prototype,"valueService",void 0),bi([b("alignedGridsService")],e.prototype,"alignedGridsService",void 0),bi([b("eventService")],e.prototype,"eventService",void 0),bi([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),bi([b("context")],e.prototype,"context",void 0),bi([b("rowModel")],e.prototype,"rowModel",void 0),bi([b("sortController")],e.prototype,"sortController",void 0),bi([b("paginationProxy")],e.prototype,"paginationProxy",void 0),bi([b("focusedCellController")],e.prototype,"focusedCellController",void 0),bi([w("rangeController")],e.prototype,"rangeController",void 0),bi([w("clipboardService")],e.prototype,"clipboardService",void 0),bi([w("aggFuncService")],e.prototype,"aggFuncService",void 0),bi([b("menuFactory")],e.prototype,"menuFactory",void 0),bi([w("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),bi([b("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),bi([b("valueCache")],e.prototype,"valueCache",void 0),bi([b("animationFrameService")],e.prototype,"animationFrameService",void 0),bi([w("statusBarService")],e.prototype,"statusBarService",void 0),bi([w("chartService")],e.prototype,"chartService",void 0),bi([w("undoRedoService")],e.prototype,"undoRedoService",void 0),bi([y],e.prototype,"init",null),bi([_("gridApi")],e)}(),Ci=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ei=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){return"function"==typeof e?e(t):"string"==typeof e?this.evaluateExpression(e,t):void console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Param
1s =",t),console.log("Exception = "+n),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Ci([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),Ci([_("expressionService")],e);var t}(),Si=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Di=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var i=this.waitingCallbacks[e],r=this;if(!i){this.waitingCallbacks[e]=i=[];var o=new XMLHttpRequest;o.onload=function(){r.handleHttpResult(this,e)},o.open("GET",e),o.send()}return t&&i.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],i=0;i<n.length;i++)(0,n[i])();if(this.$scope){var r=this;window.setTimeout((function(){r.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},Si([b("$scope")],e.prototype,"$scope",void 0),Si([_("templateService")],e)}(),xi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ti=function(){function e(){this.popupList=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,n=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var o=n.top-t.top;o=this.keepYWithinBounds(e,o);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function c(){return n.right-t.left-2}function u(){return n.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=c()),a>l&&(a=0)):((a=c())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=o+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent);this.positionPopup({ePopup:e.ePopup,x:t.x,y:t.y,nudgeX:e.nudgeX,nudgeY:e.nudgeY,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),n=this.getPopupParent(),i=n.getBoundingClientRect(),r=t.documentElement.getBoundingClientRect();return{x:e.clientX-(n===t.body?r.left:i.left),y:e.clientY-(n===t.body?r.top:i.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,n=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent(),o=e.alignSide||"left";t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect();var s=n.left-t.left;"right"===o&&(s-=e.ePopup.offsetWidth-n.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:s,y:n.top-t.top+n.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t,n=e.eventSource.getBoundingClientRect(),i=this.getDocument(),r=this.getPopupParent();t=r===i.body?i.documentElement.getBoundingClientRect():r.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:n.left-t.left,y:n.top-t.top,keepWithinBounds:e.keepWithinBounds}
1),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,n,i,r,o){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:o,ePopup:e,type:i,eventSource:t,mouseEvent:n})},e.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},e.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),i=n.documentElement,r=this.getPopupParent(),o=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=Math.min(200,o.height),c=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,c=h.getAbsoluteHeight(e.ePopup)-l);var u=a?h.getAbsoluteHeight(i)+i.scrollTop:o.height;a&&(u-=Math.abs(s.top-o.top));var d=u-l-c-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),i=n.documentElement,r=this.getPopupParent(),o=r.getBoundingClientRect(),s=n.documentElement.getBoundingClientRect(),a=r===n.body,l=e.ePopup,c=Math.min(200,o.width),u=0;e.minWidth&&e.minWidth<c?c=e.minWidth:l.offsetWidth>0&&(l.style.minWidth=(c=l.offsetWidth)+"px",u=h.getAbsoluteWidth(l)-c);var d=a?h.getAbsoluteWidth(i)+i.scrollLeft:o.width;a&&(d-=Math.abs(s.left-o.left));var p=d-c-u-3;return Math.min(Math.max(t,0),Math.abs(p))},e.prototype.addAsModalPopup=function(e,t,n,i){return this.addPopup(!0,e,t,n,i)},e.prototype.addPopup=function(e,t,n,i,r,s){var a=this,l=this.gridOptionsWrapper.getDocument();if(!l)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var c=h.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==c)return this.popupList[c].hideFunc;var u=this.getPopupParent();u.appendChild(t),t.style.top="0px",t.style.left="0px";var d=document.createElement("div"),p=this.environment.getTheme().theme;p&&h.addCssClass(d,p),h.addCssClass(d,"ag-popup"),h.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),d.appendChild(t),u.appendChild(d),s?this.setAlwaysOnTop(d,!0):this.bringPopupToFront(d);var f=!1,m=function(e){(e.which||e.keyCode)===o.KEY_ESCAPE&&d.contains(document.activeElement)&&v(null)},g=function(e){v(e)},y=function(e){v(null,e)},v=function(e,n){a.isEventFromCurrentPopup(e,n,t)||a.isEventSameChainAsOriginalEvent(r,e,n)||f||(f=!0,u.removeChild(d),l.removeEventListener("keydown",m),l.removeEventListener("mousedown",g),l.removeEventListener("touchstart",y),l.removeEventListener("contextmenu",g),a.eventService.removeEventListener(F.EVENT_DRAG_STARTED,g),i&&i(),a.popupList=a.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){n&&l.addEventListener("keydown",m),e&&(l.addEventListener("mousedown",g),a.eventService.addEventListener(F.EVENT_DRAG_STARTED,g),l.addEventListener("touchstart",y),l.addEventListener("contextmenu",g))}),0),this.popupList.push({element:t,hideFunc:v}),v},e.prototype.isEventFromCurrentPopup=function(e,t,n){var i=e||t;if(!i)return!1;var r=h.findIndex(this.popupList,(function(e){return e.element===n}));if(-1===r)return!1;for(var o=r;o<this.popupList.length;o++)if(h.isElementInEventPath(this.popupList[o].element,i))return!0;for(var s=i.target;s&&s!=document.body;){if(s.classList.contains("ag-custom-component-popup")||null===s.parentElement)return!0;s=s.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,n){var i=null;if(t?i=t:n&&(i=n.touches[0]),i&&e){var r=t?t.screenY:0,o=Math.abs(e.screenX-(t?t.screenX:0))<5,s=Math.abs(e.screenY-r)<5;if(o&&s)return!0}return!1},e.prototype.getWrapper=function(e){for(;!h.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return h.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(h.addOrRemoveCssClass(n,"ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},e.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=n.length,r=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),o=r.length,s=this.getWrapper(e);if(s&&!(i<=1)&&t.contains(e)){var a=n.indexOf(s);o?h.containsClass(s,"ag-always-on-top")?a!==i-1&&h.last(r).insertAdjacentElement("afterend",s):a!==i-o-1&&r[0].insertAdjacentElement("beforebegin",s):a!==i-1&&h.last(n).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},xi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),xi([b("environment")],e.prototype,"environment",void 0),xi([b("eventService")],e.prototype,"eventService",void 0),xi([_("popupService")],e)}(),Oi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ki=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new Ii(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Oi([(0,t=E("gridOptionsWrapper"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),Oi([_("loggerFactory")],e);var t}(),Ii=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}(),Ri=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var i=document.createElement("span");i.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(i),this.putRowCellsIntoDummyContainer(e,i),t||this.cloneItemIntoDummy(n,i);var o=i.offsetWidth;return r.removeChild(i),o+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(n){if(n instanceof jn){var i=n;i.getColumn()===e&&(t=i)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return n.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var i=document.createElement("div");i.style.display="table-row",i.appendChild(n),t.appendChild(i)},Ri([b("rowRenderer")],e.prototype,"rowRenderer",void 0),Ri([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ri([_("autoWidthCalculator")],e)}(),Ai=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(n,!0),function(){return t.dragService.removeDragSource(n)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Ai([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ai([b("dragService")],e.prototype,"dragService",void 0),Ai([b("eGridDiv")],e.prototype,"eGridDiv",void 0),Ai([_("horizontalResizeService")],e)}(),Li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ni=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Fi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Li(n,e),n.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var n=this.createTemplate();if(this.setTemplate(n),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),k.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var i=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(i)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.gridPanel.getGui();this.addDestroyableEventListener(r,"focusin",(function(){h.addCssClass(r,"ag-has-focus")})),this.addDestroyableEventListener(r,"focusout",(function(e){r.contains(e.relatedTarget)||h.removeCssClass(r,"ag-has-focus")}));var o=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return o()}));var s=this.environment.getTheme().theme;/^ag-theme-(fresh|dark|blue|bootstrap)$/.test(s)&&console.warn('ag-Grid: "'+s+'" theme is deprecated and will be removed in the next major release (v23)')},n.prototype.createTemplate=function(){var e=k.isRegistered(t.ModuleNames.SideBarModule),n=k.isRegistered(t.ModuleNames.StatusBarModule);return'<div class="ag-root-wrapper">\n                '+(k.isRegistered(t.ModuleNames.RowGroupingModule)?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n                    <ag-grid-comp ref="gridPanel"></ag-grid-comp>                    \n                    '+(e?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(n?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(k.isRegistered(t.ModuleNames.EnterpriseCoreModule)?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},n.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:F.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight})},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";h.addCssClass(this.getGui(),e)},n.prototype.getRootGui=function(){return this.getGui()},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=q.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},n.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var n=this.rowModel.getRowCount(),i="function"==typeof e,r=-1,o=0;o<n;o++){var s=this.rowModel.getRow(o);if(i){if(e(s)){r=o;break}}else if(e===s||e===s.data){r=o;break}}r>=0&&this.gridPanel.ensureIndexVisible(r,t)},Ni([b("gridOptions")],n.prototype,"gridOptions",void 0),Ni([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Ni([b("rowModel")],n.prototype,"rowModel",void 0),Ni([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Ni([b("columnController")],n.prototype,"columnController",void 0),Ni([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Ni([b("filterManager")],n.prototype,"filterManager",void 0),Ni([b("eventService")],n.prototype,"eventService",void 0),Ni([b("eGridDiv")],n.prototype,"eGridDiv",void 0),Ni([b("$scope")],n.prototype,"$scope",void 0),Ni([b("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),Ni([b("popupService")],n.prototype,"popupService",void 0),Ni([b("focusedCellController")],n.prototype,"focusedCellController",void 0),Ni([b("loggerFactory")],n.prototype,"loggerFactory",void 0),Ni([b("columnApi")],n.prototype,"columnApi",void 0),Ni([b("gridApi")],n.prototype,"gridApi",void 0),Ni([b("environment")],n.prototype,"environment",void 0),Ni([w("clipboardService")],n.prototype,"clipboardService",void 0),Ni([he("gridPanel")],n.prototype,"gridPanel",void 0),Ni([he("sideBar")],n.prototype,"sideBarComp",void 0),Ni([he("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Ni([y],n.prototype,"init",null),n}(ae),ji=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Vi=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.s
1howMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(i){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,(function(i){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:i,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var n,i=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),o=document.createElement("div");h.addCssClass(o,"ag-menu"),r.guiPromise.promise.then((function(e){o.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&n()};this.eventService.addEventListener("bodyScroll",s),n=this.popupService.addAsModalPopup(o,!0,(function(){i.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(o),r.filterPromise.then((function(e){e.afterGuiAttached&&e.afterGuiAttached({hidePopup:n})})),this.hidePopup=n,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},ji([b("eventService")],e.prototype,"eventService",void 0),ji([b("filterManager")],e.prototype,"filterManager",void 0),ji([b("popupService")],e.prototype,"popupService",void 0),ji([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ji([_("menuFactory")],e)}(),Hi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Yi=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement;t.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&t.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},e.prototype.removeDragSource=function(e){var t=h.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),h.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");h.exists(t)&&h.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var i=null,r=this.gridOptionsWrapper.isSuppressTouch();t&&!r&&(i=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:i,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var i=t.touches[0];this.touchLastTime=i,this.touchStart=i,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",n.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",n.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",n.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart)},e.prototype.onMouseDown=function(e,t){var n=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var i=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0),i.addEventListener("mousemove",this.onMouseMoveListener),i.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){i.removeEventListener("mousemove",n.onMouseMoveListener),i.removeEventListener("mouseup",n.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels,i=h.exists(n)?n:4;return h.areEventsNear(e,t,i)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0,this.eventService.dispatchEvent({type:F.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi}),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventService.dispatchEvent({type:F.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi})),this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Hi([b("loggerFactory")],e.prototype,"loggerFactory",void 0),Hi([b("eventService")],e.prototype,"eventService",void 0),Hi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Hi([b("columnApi")],e.prototype,"columnApi",void 0),Hi([b("gridApi")],e.prototype,"gridApi",void 0),Hi([y],e.prototype,"init",null),Hi([v],e.prototype,"destroy",null),Hi([_("dragService")],e)}(),Bi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Gi=function(){function e(){var e=this;
1this.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(e){return{colId:e.getColId(),sort:e.getSort()}}))}}var t;return t=e,e.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,n)},e.prototype.setSortForColumn=function(e,t,n,i){if(void 0===i&&(i="api"),t!==o.SORT_ASC&&t!==o.SORT_DESC&&(t=null),e.setSort(t,i),e.getSort()){var r=Number((new Date).valueOf());e.setSortedAt(r)}else e.setSortedAt(null);n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,i),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){this.eventService.dispatchEvent({type:F.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var n;if(n=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(n)||n.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+n),null;var i,r=n.indexOf(e.getSort());return t.DEFAULT_SORTING_ORDER.indexOf(i=r<0||r==n.length-1?n[0]:n[r+1])<0?(console.warn("ag-grid: invalid sort type "+i),null):i},e.prototype.setSortModel=function(e,t){var n=this;void 0===t&&(t="api");var i=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(r){var o=null,s=-1;if(i&&r.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof r.getColId()&&n.compareColIds(l,r)&&(o=l.sort,s=a)}o?(r.setSort(o,t),r.setSortedAt(s)):(r.setSort(null,t),r.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e.sort((function(e,t){return e.sortedAt-t.sortedAt})),e},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{inverter:e.getSort()===o.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[o.SORT_ASC,o.SORT_DESC,null],Bi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Bi([b("columnController")],e.prototype,"columnController",void 0),Bi([b("eventService")],e.prototype,"eventService",void 0),Bi([b("columnApi")],e.prototype,"columnApi",void 0),Bi([b("gridApi")],e.prototype,"gridApi",void 0),t=Bi([_("sortController")],e)}(),Wi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ui=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(F.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,dn.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,n,i){void 0===i&&(i=!1);var r=h.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:h.makeNull(n),column:r},this.onCellFocused(i)},e.prototype.isCellFocused=function(e){return!h.missing(this.focusedCellPosition)&&this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(h.missing(this.focusedCellPosition))return!1;var n=h.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n},e.prototype.onCellFocused=function(e){var t={type:F.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},Wi([b("eventService")],e.prototype,"eventService",void 0),Wi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wi([b("columnController")],e.prototype,"columnController",void 0),Wi([b("columnApi")],e.prototype,"columnApi",void 0),Wi([b("gridApi")],e.prototype,"gridApi",void 0),Wi([y],e.prototype,"init",null),Wi([_("focusedCellController")],e)}(),zi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},qi=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return h.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var n=h.getEventPath(e),i=0;i<n.length;i++){var r=n[i][t.GRID_DOM_KEY];if(h.exists(r))return r===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.gridInstanceSequence=new d,e.GRID_DOM_KEY="__ag_grid_instance",zi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zi([b("eGridDiv")],e.prototype,"eGridDiv",void 0),zi([y],e.prototype,"init",null),t=zi([_("mouseEventService")],e)}(),Ki=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},$i=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var n=t,i=!1;!i;){switch(e){case o.KEY_UP:n=this.getCellAbove(n);break;case o.KEY_DOWN:n=this.getCellBelow(n);break;case o.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case o.KEY_LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("ag-Grid: unknown key for navigation "+e)}i=!n||this.isCellGoodToFocusOn(n)}return n},e.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case o.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case o.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!n.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case o.PINNED_BOTTOM:return null;case o.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(o.PINNED_BOTTOM)?{rowIndex:0,rowPinned:o.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(o.PINNED_BOTTOM)?{rowIndex:0,rowPinned:o.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===o.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===o.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.rowModel.getRowCount()-1<=n},e.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return 0===t?n===o.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(o.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:o.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,i=e.rowPinned,r=this.columnController.getDisplayedColAfter(e.column);if(!r){r=t[0];var o=this.getRowBelow(e);if(h.missing(o))return null;n=o?o.rowIndex:null,i=o?o.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,i=e.rowPinned,r=this.columnController.getDisplayedColBefore(e.column);if(!r){r=h.last(t);var o=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(h.missing(o))return null;n=o?o.rowIndex:null,i=o?o.rowPinned:null}return{rowIndex:n,column:r,rowPinned:i}},Ki([b("columnController")],e.prototype,"columnController",void 0),Ki([b("rowModel")],e.prototype,"rowModel",void 0),Ki([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ki([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ki([_("cellNavigationService")],e)}(),Qi=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Xi=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=Ze,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=Xe,this.cellRendererMap[t.GROUP]=$e},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return h.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",Qi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Qi([b("expressionService")],e.prototype,"expressionService",void 0),Qi([b("eventService")],e.prototype,"eventService",void 0),Qi([y],e.prototype,"init",null),t=Qi([_("cellRendererFactory")],e)}(),Ji=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Zi=function(){function e(){}return e.prototype.formatValue=function(e,t,n,i){var r,o=e.getColDef(),s=null;if(r=t&&t.rowPinned&&o.pinnedRowValueFormatter?o.pinnedRowValueFormatter:o.valueFormatter){var a={value:i,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=n,s=this.expressionService.evaluate(r,a)}else if(o.refData)return o.refData[i]||"";return null==s&&Array.isArray(i)&&(s=i.join(", ")),s},Ji([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ji([b("expressionService")],e.prototype,"expressionService",void 0),Ji([_("valueFormatterService")],e)}(),er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.nativeInputClassName="ag-native-radio-button",t.inputType="radio",t.iconMap={selected:"radioButtonOn",unselected:"radioButtonOff"},t}return er(t,e),t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.getIconName=function(){var e=this.getValue()?"selected":"unselected",t=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[e]+t},t}(kn),nr=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,n,i){e.addEventListener(t,n,i)},e}(),ir=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},rr=function(){function e(){}return e.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:F.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},ir([b("eventService")],e.prototype,"eventService",void 0),ir([b("columnController")],e.prototype,"columnController",void 0),ir([b("columnApi")],e.prototype,"columnApi",void 0),ir([b("gridApi")],e.prototype,"gridApi",void 0),ir([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ir([_("scrollVisibleService")],e)}(),or=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},sr=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,n,i){this.processClassRules(e.cell
1ClassRules,t,n,i),this.processStaticCellClasses(e,t,n)},e.prototype.processClassRules=function(e,t,n,i){if("object"==typeof e&&null!==e)for(var r=Object.keys(e),o=0;o<r.length;o++){var s=r[o],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?n(s):i&&i(s)}},e.prototype.processStaticCellClasses=function(e,t,n){if(e.cellClass){var i=void 0;"string"==typeof(i="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass)?n(i):Array.isArray(i)&&i.forEach((function(e){n(e)}))}},or([b("expressionService")],e.prototype,"expressionService",void 0),or([_("stylingService")],e)}(),ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),lr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e,this.eventService.dispatchEvent({type:F.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi})},t.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:F.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi})},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},lr([b("eventService")],t.prototype,"eventService",void 0),lr([b("columnApi")],t.prototype,"columnApi",void 0),lr([b("gridApi")],t.prototype,"gridApi",void 0),lr([_("columnHoverService")],t)}(re),ur=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},dr=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},ur([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ur([_("columnAnimationService")],e)}(),hr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},pr=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,n=[],i=this.gridOptionsWrapper.isTreeData(),r=this.gridOptionsWrapper.isGroupMultiAutoColumn();return i&&r&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),r=!1),r?e.forEach((function(e,i){n.push(t.createOneAutoGroupColumn(e,i))})):n.push(this.createOneAutoGroupColumn()),n},e.prototype.createOneAutoGroupColumn=function(e,n){var i,r=this.generateDefaultColDef(e);i=e?o.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var s=this.gridOptionsWrapper.getAutoGroupColumnDef();
1h.mergeDeep(r,s),(r=this.columnFactory.mergeColDefs(r)).colId=i,this.gridOptionsWrapper.isTreeData()||h.missing(r.field)&&h.missing(r.valueGetter)&&h.missing(r.filterValueGetter)&&(r.filter=!1),n&&n>0&&(r.headerCheckboxSelection=!1);var a=new R(r,null,i,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(n.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();h.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),i.cellRenderer&&h.assign(n,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererParams:i.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},e.GROUP_AUTO_COLUMN_BUNDLE_ID=o.GROUP_AUTO_COLUMN_ID,hr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),hr([b("context")],e.prototype,"context",void 0),hr([b("columnController")],e.prototype,"columnController",void 0),hr([b("columnFactory")],e.prototype,"columnFactory",void 0),t=hr([_("autoGroupColService")],e)}(),fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return fr(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,F.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,i){var r=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},t.prototype.onModelUpdated=function(e){this.calculatePages(),this.eventService.dispatchEvent({type:F.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi})},t.prototype.goToPage=function(e){this.active&&this.currentPage!==e&&(this.currentPage=e,this.onModelUpdated({type:F.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi}))},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return h.missing(this.topRowBounds)||h.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDis
1playedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=h.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!h.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*(this.currentPage+1)-1;if(t>e&&(t=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),t===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(t+1);this.bottomDisplayedRowIndex=n-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!h.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},mr([b("rowModel")],t.prototype,"rowModel",void 0),mr([b("eventService")],t.prototype,"eventService",void 0),mr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),mr([b("selectionController")],t.prototype,"selectionController",void 0),mr([b("columnApi")],t.prototype,"columnApi",void 0),mr([b("gridApi")],t.prototype,"gridApi",void 0),mr([y],t.prototype,"postConstruct",null),mr([_("paginationProxy")],t)}(re),yr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yr(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,F.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},vr([b("eventService")],t.prototype,"eventService",void 0),vr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vr([b("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),vr([_("paginationAutoPageSizeService")],t)}(re),br=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wr=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},e.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},br([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),br([y],e.prototype,"init",null),br([_("valueCache")],e)}(),Cr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Er=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cr(t,e),t.prototype.init=function(){this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,F.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==o.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if
1(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),i=new Yt(n,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},Er([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Er([b("rowModel")],t.prototype,"rowModel",void 0),Er([b("rowRenderer")],t.prototype,"rowRenderer",void 0),Er([b("eventService")],t.prototype,"eventService",void 0),Er([y],t.prototype,"init",null),Er([_("changeDetectionService")],t)}(re),Dr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},xr=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(F.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(F.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(F.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case F.EVENT_COLUMN_MOVED:case F.EVENT_COLUMN_VISIBLE:case F.EVENT_COLUMN_PINNED:case F.EVENT_COLUMN_RESIZED:t.processColumnEvent(e);break;case F.EVENT_COLUMN_GROUP_OPENED:t.processGroupOpenedEvent(e);break;case F.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,n=e.columnGroup;if(n){var i=n.getGroupId();t=this.columnController.getOriginalColumnGroup(i)}n&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+n.isExpanded()),this.columnController.setColumnGroupOpened(t,n.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,n=this,i=e.column;if(i&&(t=this.columnController.getPrimaryColumn(i.getColId())),!i||t){var r=this.getColumnIds(e),o=this.getMasterColumns(e);switch(e.type){case F.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(r,s.toIndex,"alignedGridChanged");break;case F.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(r,a.visible,"alignedGridChanged");break;case F.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(r,l.pinned,"alignedGridChanged");break;case F.EVENT_COLUMN_RESIZED:var c=e;o.forEach((function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),n.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,c.finished,"alignedGridChanged")}))}var u=this.gridPanel.isVerticalScrollShowing();
1this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(u)}))}},Dr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Dr([b("columnController")],e.prototype,"columnController",void 0),Dr([b("eventService")],e.prototype,"eventService",void 0),Dr([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),Dr([y],e.prototype,"init",null),Dr([_("alignedGridsService")],e);var t}(),Tr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Or=function(){function e(){}return e.prototype.adaptFunction=function(e,t,n,i){if(null==t)return{component:null,componentFromFramework:n,source:i,paramsFromSelector:null};var r=this.componentMetadataProvider.retrieve(e);return r&&r.functionAdapter?{componentFromFramework:n,component:r.functionAdapter(t),source:i,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),n=typeof t;return"string"===n||"number"===n||"boolean"===n?h.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},Tr([b("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),Tr([_("agComponentUtils")],e)}(),kr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ir=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},kr([b("agComponentUtils")],e.prototype,"agComponentUtils",void 0),kr([y],e.prototype,"postConstruct",null),kr([_("componentMetadataProvider")],e)}(),Rr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mr=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},Rr([b("paginationProxy")],e.prototype,"paginationProxy",void 0),Rr([b("context")],e.prototype,"context",void 0),Rr([b("columnApi")],e.prototype,"columnApi",void 0),Rr([b("gridApi")],e.prototype,"gridApi",void 0),Rr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Rr([b("expressionService")],e.prototype,"expressionService",void 0),Rr([b("rowRenderer")],e.prototype,"rowRenderer",void 0),Rr([b("$compile")
1],e.prototype,"$compile",void 0),Rr([b("templateService")],e.prototype,"templateService",void 0),Rr([b("valueService")],e.prototype,"valueService",void 0),Rr([b("eventService")],e.prototype,"eventService",void 0),Rr([b("columnController")],e.prototype,"columnController",void 0),Rr([b("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Rr([w("rangeController")],e.prototype,"rangeController",void 0),Rr([b("focusedCellController")],e.prototype,"focusedCellController",void 0),Rr([w("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Rr([b("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),Rr([b("popupService")],e.prototype,"popupService",void 0),Rr([b("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Rr([b("stylingService")],e.prototype,"stylingService",void 0),Rr([b("columnHoverService")],e.prototype,"columnHoverService",void 0),Rr([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Rr([b("animationFrameService")],e.prototype,"taskQueue",void 0),Rr([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Rr([b("sortController")],e.prototype,"sortController",void 0),Rr([b("filterManager")],e.prototype,"filterManager",void 0),Rr([b("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),Rr([b("tooltipManager")],e.prototype,"tooltipManager",void 0),Rr([b("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Rr([b("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),Rr([b("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Rr([b("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Rr([y],e.prototype,"postConstruct",null),Rr([_("beans")],e)}(),Ar=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Pr={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48,chartMenuPanelWidth:220},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,virtualItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},Lr={headerHeight:["ag-header-row"],virtualItemHeight:["ag-virtual-list-container","ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Nr={},Fr=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"classic"),i=Pr[n][t],r=0;if(Nr[e]||(Nr[e]={}),Nr[e][t])return Nr[e][t];if(Lr[t]){var o=Lr[t],s=document.createElement("div"),a=o.reduce((function(t,n,i){0===i&&h.addCssClass(t,e);var r=document.createElement("div");return h.addCssClass(r,n),t.appendChild(r),r}),s);document.body&&(document.body.appendChild(s),r=parseInt(window.getComputedStyle(a).height,10),document.body.removeChild(s))}return Nr[e][t]=r||i,Nr[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.useNativeCheckboxes=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("alpine")>=0},e.prototype.chartMenuPanelWidth=function(){return Pr[this.getTheme().themeFamily].chartMenuPanelWidth},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,n=this.eGridDiv;n&&!(e=t.exec(n.className));)n=n.parentElement;if(!e)return{};var i=e[0];if(void 0===e[2]){var r=i.replace("ag-","ag-theme-");h.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+i+" with "+r+".")}),"using-old-theme")}return{theme:i,el:n,themeFamily:i.replace(/-dark$/,"")}},Ar([b("eGridDiv")],e.prototype,"eGridDiv",void 0),Ar([_("environment")],e)}(),jr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Vr=function(){function e(){this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var i={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],i),this.schedule()},e.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},e.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},e.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}
1},e.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,i=this.createTasksP2,r=i.list,o=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0;l||a<e;){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(i),c=r.pop().task;else{if(!o.length){this.cancelledTasks.clear();break}c=o.pop()}this.cancelledTasks.has(c)||c(),a=(new Date).getTime()-s}n.length||r.length||o.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:F.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},jr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),jr([b("eventService")],e.prototype,"eventService",void 0),jr([y],e.prototype,"init",null),jr([_("animationFrameService")],e)}(),Hr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Yr=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,i=e.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(e);if(!r)return!1;var s=!1;switch(t){case o.KEY_PAGE_HOME:case o.KEY_PAGE_END:i||n||(this.onHomeOrEndKey(t),s=!0);break;case o.KEY_LEFT:case o.KEY_RIGHT:i&&!n&&(this.onCtrlLeftOrRight(t,r),s=!0);break;case o.KEY_UP:case o.KEY_DOWN:i&&!n&&(this.onCtrlUpOrDown(t,r),s=!0);break;case o.KEY_PAGE_DOWN:i||n||(this.onPageDown(r),s=!0);break;case o.KEY_PAGE_UP:i||n||(this.onPageUp(r),s=!0)}return s&&e.preventDefault(),s},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),r=this.paginationProxy.getRowIndexAtPixel(t.top+n+i),o=this.paginationProxy.getRow(e.rowIndex).rowTop,s=this.paginationProxy.getRowIndexAtPixel(o+n-i+i),a=this.paginationProxy.getPageLastRow();s>a&&(s=a),r>a&&(r=a),this.navigateTo(r,"top",null,s,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),r=this.paginationProxy.getRowIndexAtPixel(t.top+i),o=this.paginationProxy.getRow(e.rowIndex),s=this.paginationProxy.getRowIndexAtPixel(o.rowTop+o.rowHeight-n-i+i),a=this.paginationProxy.getPageFirstRow();s<a&&(s=a),r<a&&(r=a),this.navigateTo(r,"bottom",null,s,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,n,i,r){h.exists(n)&&this.gridPanel.ensureColumnVisible(n),h.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(i,r,null,!0),this.rangeController&&this.rangeController.setRangeToCell({rowIndex:i,rowPinned:null,column:r})},e.prototype.onCtrlUpOrDown=function(e,t){var n=e===o.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,t.column,n,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var n=e===o.KEY_LEFT,i=this.columnController.getAllDisplayedColumns(),r=n?i[0]:h.last(i);this.navigateTo(t.rowIndex,null,r,t.rowIndex,r)},e.prototype.onHomeOrEndKey=function(e){var t=e===o.KEY_PAGE_HOME,n=this.columnController.getAllDisplayedColumns(),i=t?n[0]:h.last(n),r=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(r,null,i,r,i)}
1,Hr([b("mouseEventService")],e.prototype,"mouseEventService",void 0),Hr([b("paginationProxy")],e.prototype,"paginationProxy",void 0),Hr([b("focusedCellController")],e.prototype,"focusedCellController",void 0),Hr([b("animationFrameService")],e.prototype,"animationFrameService",void 0),Hr([w("rangeController")],e.prototype,"rangeController",void 0),Hr([b("columnController")],e.prototype,"columnController",void 0),Hr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Hr([y],e.prototype,"init",null),Hr([_("navigationService")],e)}(),Br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Br(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,F.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=h.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight,this.setOffset(this.scrollY/this.maxScrollY*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:F.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(e/t)},Gr([b("eventService")],t.prototype,"eventService",void 0),Gr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gr([y],t.prototype,"postConstruct",null),Gr([_("maxDivHeightScaler")],t)}(re),Ur=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},zr=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))},e.prototype.updateSelectableAfterFiltering=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))},e.prototype.recurseDown=function(e,t){var n=this;e.forEach((function(e){if(e.group){var i;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren){var r=h.find(t(e),"selectable",!0);i=h.exists(r)}else i=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(i)}}))},Ur([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ur([y],e.prototype,"init",null),Ur([_("selectableService")],e)}(),qr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Kr=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),h.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var n=this.gridPanel.getCenterContainer();n.appendChild(this.eDummyContainer);var i=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()}
1)).forEach((function(n){var r=new dn(t.$scope,t.beans,n,e,null,!0,!1);r.setParentRow(t.eDummyContainer),i.push(r)}));var r=i.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=r,i.forEach((function(e){return e.afterAttached()}));for(var o=0,s=0;s<this.eDummyContainer.children.length;s++){var a=this.eDummyContainer.children[s];a.offsetHeight>o&&(o=a.offsetHeight)}return n.removeChild(this.eDummyContainer),i.forEach((function(e){e.detach(),e.destroy()})),h.clearElement(this.eDummyContainer),o},qr([b("beans")],e.prototype,"beans",void 0),qr([b("$scope")],e.prototype,"$scope",void 0),qr([b("columnController")],e.prototype,"columnController",void 0),qr([_("autoHeightCalculator")],e)}(),$r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Xr=function(e){function t(){return e.call(this)||this}return $r(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",h.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",h.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",h.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",h.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===o.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,F.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(e?t+1:0)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):h.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),i=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n                <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n                    <span ref="lbFirstRowOnPage"></span> '+n+' <span ref="lbLastRowOnPage"></span> '+i+' <span ref="lbRecordCount"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel">\n                    <div ref="btFirst" class="ag-paging-button">\n                        <button type="button">'+e("first","First")+'</button>\n                    </div>\n                    <div ref="btPrevious" class="ag-paging-button">\n                        <button type="button">'+e("previous","Previous")+"</button>\n                    </div>\n                    "+t+' <span ref="lbCurrent"></span> '+i+' <span ref="lbTotal"></span>\n                    <div ref="btNext" class="ag-paging-button">\n                        <button type="button">'+e("next","Next")+'</button>\n                    </div>\n                    <div ref="btLast" class="ag-paging-button">\n                        <button type="button">'+e("last","Last")+"</button>\n                    </div>\n                </span>\n            </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages(),i=0===e;h.addOrRemoveCssClass(this.btPrevious,"ag-disabled",i),h.addOrRemoveCssClass(this.btFirst,"ag-disabled",i);var r=this.isZeroPagesToDisplay();h.addOrRemoveCssClass(this.btNext,"ag-disabled",t&&e===n-1||r),h.addOrRemoveCssClass(this.btLast,"ag-disabled",!t||r||e===n-1)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=i*n+1)+i-1,r&&t>o&&(t=o)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.lbLastRowOnPage.innerHTML=this.serverSideRowModel&&this.serverSideRowModel.isLoading()?"?":this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},Qr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qr([b("eventService")],t.prototype,"eventService",void 0),Qr([b("paginationProxy")],t.prototype,"paginationProxy",void 0),Qr([b("rowRenderer")],t.prototype,"rowRenderer",void 0),Qr([b("rowModel")],t.prototype,"rowModel",void 0),Qr([he("btFirst")],t.prototype,"btFirst",void 0),Qr([he("btPrevious")],t.prototype,"btPrevious",void 0),Qr([he("btNext")],t.prototype,"btNext",void 0),Qr([he("btLast")],t.prototype,"btLast",void 0),Qr([he("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Qr([he("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Qr([he("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Qr([he("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),Qr([he("lbCurrent")],t.prototype,"lbCurrent",void 0),Qr([he("lbTotal")],t.prototype,"lbTotal",void 0),Qr([y],t.prototype,"postConstruct",null),t}(ae),Jr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Zr=function(){function e(){}return e.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var i,r,o,s,a,l=this.frameworkOverrides,c=h.debounce(t,n),u=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return window.ResizeObserver&&!u?((a=new window.ResizeObserver(c)).observe(e),function(){return a.disconnect()}):(i=h.offsetWidth(e),r=h.offsetHeight(e),o=!0,(s=function(){if(o){var a=h.offsetWidth(e),c=h.offsetHeight(e);(a!==i||c!==r)&&(i=a,r=c,t()),l.setTimeout(s,n)}})(),function(){return o=!1})},Jr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Jr([b("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Jr([_("resizeObserverService")],e)}(),eo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},to=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,n=e.getGui(),i=e.getCompId();this.registeredComponents[i]={tooltipComp:void 0,destroyFunc:void 0,eventDestroyFuncs:[e.addDestroyableEventListener(n,"mouseover",(function(n){return t.processMouseOver(n,e)})),e.addDestroyableEventListener(n,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(n,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(n,"mouseout",this.processMouseOut.bind(this))]},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId(),n=this.registeredComponents[t];this.activeComponent===e&&this.hideTooltip(),e.isAlive()&&n&&n.eventDestroyFuncs.length&&n.eventDestroyFuncs.forEach((function(e){return e()})),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var n=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;n=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),n,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,n=e.relatedTarget;if(t){if(!t.getGui().contains(n)){var i=this.registeredComponents[t.getCompId()];h.addCssClass(i.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var r=this.lastHoveredComponent.getGui().contains(n);if(this.showTimeoutId&&r)return;r||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,n=t,i=this.registeredComponents[t.getCompId()];this.hideTooltip();var r={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:n.getColumn&&n.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:n.getCellPosition&&n.getCellPosition().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(r,i,e)},e.prototype.createTooltipComponent=function(e,t,n){var i=this,r=this.lastMouseEvent;r&&this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var n=e.getGui();h.containsClass(n,"ag-tooltip")||h.addCssClass(n,"ag-tooltip-custom");var o=i.popupService.addPopup(!1,n,!1);t.destroyFunc=function(){o(),e.destroy&&e.destroy()},i.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:r,ePopup:n,nudgeY:18}),i.activeComponent=i.lastHoveredComponent,i.hideTimeoutId=window.setTimeout(i.hideTooltip.bind(i),i.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),n=this.registeredComponents[t];this.activeComponent=void 0,n&&(n.destroyFunc&&n.destroyFunc(),this.clearRegisteredComponent(n))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},eo([b("popupService")],e.prototype,"popupService",void 0),eo([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),eo([b("columnApi")],e.prototype,"columnApi",void 0),eo([b("gridApi")],e.prototype,"gridApi",void 0),eo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),eo([_("tooltipManager")],e)}(),no=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),io=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(ni||(ni={}));var ro=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return no(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){h.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===ni.Loading),h.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===ni.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e)},t.prototype.showOverlay=function(e){var t=this;this.inProgress||(this.setWrapperTypeClass(ni.NoRows),this.destroyActiveOverlay(),this.inProgress=!0,e.then((function(e){t.inProgress=!1,t.eOverlayWrapper.appendChild(e.getGui()),t.activeOverlay=e,t.destroyRequested&&(t.destroyRequested=!1,t.destroyActiveOverlay())})),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',io([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),io([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),io([he("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),io([y],t.prototype,"postConstruct",null),t}(ae),oo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),so=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ao=function(e){function t(n){var i=e.call(this,t.TEMPLATE)||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1,n||(n={});var r=n.enabled,o=n.items,s=n.suppressEnabledCheckbox,a=n.suppressOpenCloseIcons;return i.title=n.title,i.enabled=null==r||r,i.items=o||[],i.alignItems=n.alignItems||"center",null!=s&&(i.suppressEnabledCheckbox=s),null!=a&&(i.suppressOpenCloseIcons=a),i}return oo(t,e),t.pr
1ototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(h.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(h.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.setOpenClosedIcons(),this.addDestroyableEventListener(this.groupTitle,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;h.setDisplayed(this.eGroupClosedIcon,!e),h.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();this.alignItems!==e&&h.removeCssClass(t,"ag-alignment-"+this.alignItems),this.alignItems=e;var n="ag-alignment-"+this.alignItems;return"center"===e||h.containsClass(t,n)||h.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){var t=this.getGui();return this.suppressOpenCloseIcons?(this.expanded=!0,h.removeCssClass(t,"ag-collapsed"),this):this.expanded===(e=null!=e?e:!this.expanded)?this:(this.expanded=e,this.setOpenClosedIcons(),h.addOrRemoveCssClass(t,"ag-collapsed",!e),this.dispatchEvent(this.expanded?{type:"expanded"}:{type:"collapsed"}),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.groupContainer,n=e instanceof ae?e.getGui():e;h.addCssClass(n,"ag-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){h.addOrRemoveCssClass(this.items[t],"ag-hidden",e)},t.prototype.setTitle=function(e){return this.lbGroupTitle.innerText=e,this},t.prototype.setEnabled=function(e,t){return this.enabled=e,h.addOrRemoveCssClass(this.getGui(),"ag-disabled",!e),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return h.addOrRemoveCssClass(this.eToolbar,"ag-hidden",e),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,h.addOrRemoveCssClass(this.getGui(),"ag-collapsible",!e),e&&this.toggleGroupExpand(!0),this},t.TEMPLATE='<div class="ag-group-component">\n            <div class="ag-group-component-title-bar" ref="groupTitle">\n                 <span class="ag-column-group-icons">\n                    <span class="ag-column-group-opened-icon" ref="eGroupOpenedIcon"></span>\n                    <span class="ag-column-group-closed-icon" ref="eGroupClosedIcon"></span>\n                </span>\n                <span ref="lbGroupTitle" class="ag-group-component-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-component-toolbar">\n                <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n            </div>\n            <div ref="eContainer" class="ag-group-component-container"></div>\n        </div>',so([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),so([he("groupTitle")],t.prototype,"groupTitle",void 0),so([he("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),so([he("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),so([he("eToolbar")],t.prototype,"eToolbar",void 0),so([he("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),so([he("lbGroupTitle")],t.prototype,"lbGroupTitle",void 0),so([he("eContainer")],t.prototype,"groupContainer",void 0),so([y],t.prototype,"postConstruct",null),t}(ae),lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),co=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},uo=function(e){function t(n){var i=e.call(this,t.TEMPLATE)||this;return i.closable=!0,i.positioned=!1,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.size={width:void 0,height:void 0},i.config=n,i}return lo(t,e),t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,i=t.closable,r=t.hideTitleBar,o=t.title,s=t.minWidth,a=t.width,l=t.minHeight,c=t.height,u=t.centered,d=t.x,p=t.y,f=this.getGui();n&&this.setBodyComponent(n),r?h.addCssClass(this.eTitleBar,"ag-hidden"):(o&&this.setTitle(o),this.setClosable(null!=i?i:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(f.contains(t.relatedTarget)||f.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),c&&this.setHeight(c),this.renderComponent&&this.renderComponent(),a&&c||this.refreshSize(),u?this.center():(d||p)&&this.offsetElement(d,p),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),n=e.e,i=e.isLeft,r=e.isTop,o=e.anywhereWithin,s=e.topBuffer,a=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,c=this.getWidth(),u=this.getHeight(),d=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+c;return d||(d=i?a<0&&n.clientX>this.position.x+t.left||a>0&&n.clientX<this.position.x+t.left:o?a<0&&n.clientX>this.position.x+t.left+c||a>0&&n.clientX<this.position.x+t.left:a<0&&n.clientX>this.position.x+t.left+c||a>0&&n.clientX<this.position.x+t.left+c),{movementX:a=d?0:a,movementY:l=t.top>=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+u||r&&(l<0&&n.clientY>this.position.y+t.top+(s||0)||l>0&&n.clientY<this.position.y+t.top)||!r&&(l<0&&n.clientY>this.position.y+t.top+u||l>0&&n.clientY<this.position.y+t.top+u)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.height;e.width||this.setWidth(this.getGui().offsetWidth),t||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.getGui();this.popupService.positionPopup({ePopup:n,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(n.style.left,10),this.position.y=parseInt(n.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))h.setFixedHeight(t,e),e=h.getAbsoluteHeight(t),n=!0;else{e=Math.max(this.minHeight,e);var i=t.offsetParent;i&&i.clientHeight&&e+this.position.y>i.clientHeight&&(e=i.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):h.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))h.setFixedWidth(t,e),e=h.getAbsoluteWidth(t),n=!0;else{e=Math.max(this.minWidth,e);var i=t.offsetParent;i&&i.clientWidth&&e+this.position.x>i.clientWidth&&(e=i.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):h.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new ae(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(n),(i=n.getGui()).appendChild(h.createIconNoSpan("close",this.gridOptionsWrapper)),this.addTitleBarButton(n),n.addDestroyableEventListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var i;(i=this.closeButtonComp.getGui()).parentElement.removeChild(i),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,i=n.children,r=i.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r));var o=e.getGui();h.addCssClass(o,"ag-button"),0===t?n.insertAdjacentElement("afterbegin",o):t===r?n.insertAdjacentElement("beforeend",o):i[t-1].insertAdjacentElement("afterend",o),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return h.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return h.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close()},t.TEMPLATE='<div class="ag-panel" tabindex="-1">\n            <div ref="eTitleBar" class="ag-title-bar ag-unselectable">
1\n                <span ref="eTitle" class="ag-title-bar-title"></span>\n                <div ref="eTitleBarButtons" class="ag-title-bar-buttons"></div>\n            </div>\n            <div ref="eContentWrapper" class="ag-panel-content-wrapper"></div>\n        </div>',t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',co([b("popupService")],t.prototype,"popupService",void 0),co([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),co([he("eContentWrapper")],t.prototype,"eContentWrapper",void 0),co([he("eTitleBar")],t.prototype,"eTitleBar",void 0),co([he("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),co([he("eTitle")],t.prototype,"eTitle",void 0),co([y],t.prototype,"postConstruct",null),t}(ae),ho=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),po=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='\n        <div class="ag-resizer-wrapper">\n            <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n            <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n            <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n            <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n            <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n            <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n            <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n            <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n        </div>\n    ',n.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',n.resizable={},n.isResizable=!1,n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return ho(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),i=this.config,r=i.movable,o=i.resizable,s=i.maximizable;h.addCssClass(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),this.addResizers(),o&&this.setResizable(o)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop;this.close=this.popupService.addPopup(t.modal,e,!0,this.destroy.bind(this),void 0,n),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var n=!!t.match(/left/i),i=!!t.match(/right/i),r=!!t.match(/top/i),o=!!t.match(/bottom/i),s=n||i,a=r||o,l=this.calculateMouseMovement({e,isLeft:n,isTop:r}),c=l.movementX,u=l.movementY,d=0,h=0;if(s&&c){var p=n?-1:1,f=this.getWidth(),m=f+c*p,g=!1;
1n&&(this.position.x+(d=f-m)<=0||m<=this.minWidth)&&(g=!0,d=0),g||this.setWidth(m)}if(a&&u){p=r?-1:1;var y=this.getHeight(),v=y+u*p,_=!1;r&&(this.position.y+(h=y-v)<=0||v<=this.minHeight)&&(_=!0,h=0),_||this.setHeight(v)}this.updateDragStartPosition(e.clientX,e.clientY),(d||h)&&this.offsetElement(this.position.x+d,this.position.y+h)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.localEventService&&this.localEventService.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,n=t.x,i=t.y,r=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()});this.offsetElement(n+r.movementX,i+r.movementY),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,n=e.y,i=e.height;this.setWidth(e.width),this.setHeight(i),this.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){h.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),h.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners()},t.prototype.setResizable=function(e){var t=this,n=!1;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(i){var r=i,o=!!e[r],s=t.getResizerElement(r),a=t.resizerMap[r].dragSource||{eElement:s,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,r)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[r]===o&&(t.isAlive()||o)||(o?(t.dragService.addDragSource(a),s.style.pointerEvents="all",n=!0):(t.dragService.removeDragSource(a),s.style.pointerEvents="none"),t.resizerMap[r].dragSource=o?a:void 0)})),this.isResizable=n},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var i=this.maximizeButtonComp=new ae(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(i);var r=i.getGui();r.appendChild(this.maximizeIcon=h.createIconNoSpan("maximize",this.gridOptionsWrapper)),r.appendChild(this.minimizeIcon=h.createIconNoSpan("minimize",this.gridOptionsWrapper)),h.addCssClass(this.minimizeIcon,"ag-hidden"),i.addDestroyableEventListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addDestroyableEventListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([b("dragService")],t.prototype,"dragService",void 0),t}(uo),fo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mo=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-field",n.displayTag="input",n.inputType="text",n.setTemplate(n.TE
1MPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return fo(t,e),t.prototype.setValue=function(t,n){var i=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=t),i},t}(Tn),go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yo=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-area",n.displayTag="textarea",n.inputType="",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return go(t,e),t.prototype.setValue=function(t,n){var i=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,i},t}(Tn),vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_o=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},bo=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return vo(t,e),t.prototype.onValueChange=function(e){var t=this,n=Sn.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addDestroyableEventListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Sn.EVENT_CHANGED}),this)},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n            <label ref="eLabel"></label>\n            <div class="ag-wrapper">\n                <ag-input-range ref="eSlider"></ag-input-range>\n                <ag-input-number-field ref="eText"></ag-input-number-field>\n            </div>\n        </div>',_o([he("eLabel")],t.prototype,"eLabel",void 0),_o([he("eSlider")],t.prototype,"eSlider",void 0),_o([he("eText")],t.prototype,"eText",void 0),t}(Cn),wo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Co=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Eo=function(e){function t(n){var i=e.call(this,t.TEMPLATE)||this;return i.H=1,i.S=1,i.B=1,i.A=1,i.isSpectrumDragging=!1,i.isSpectrumHueDragging=!1,i.isSpectrumAlphaDragging=!1,i.colorChanged=!1,i.picker=n.picker,i}return wo(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlp
1ha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,i=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),i=Math.max(i,0),i=Math.min(i,t.height),this.setSpectrumValue(n/t.width,1-i/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,i=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.H=1-r/t.width,n.style.left=r+i.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,i=n.getBoundingClientRect(),r=e.clientX-t.left;r=Math.max(r,0),r=Math.min(r,t.width),this.A=r/t.width,n.style.left=r+i.width/2+"px",this.update()}},t.prototype.update=function(){var e=r.fromHSB(360*this.H,this.S,this.B,this.A),t=r.fromHSB(360*this.H,1,1),n=e.toRgbaString(),i=this.picker;r.fromString(i.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),i.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var i=this.spectrumDragger,r=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,i.style.left=e*n.width-r.width/2+"px",i.style.top=(1-t)*n.height-r.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=r.fromString(e),n=t.toHSB(),i=n[0],o=n[1],s=n[2];this.H=(isNaN(i)?0:i)/360,this.A=t.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(o,s)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(h.exists(n.id)){var i=parseInt(n.id,10);this.setValue(t.recentColors[i]),this.destroy()}},t.prototype.addRecentColor=function(){var e=r.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.addRecentColor()},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n            <div ref="spectrumColor" class="ag-spectrum-color">\n                <div class="ag-spectrum-sat ag-fill">\n                    <div ref="spectrumVal" class="ag-spectrum-val ag-fill">\n                        <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="ag-spectrum-tools">\n                <div ref="spectrumHue" class="ag-spectrum-hue ag-hue-alpha">\n                    <div class="ag-spectrum-hue-background"></div>\n                    <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n                </div>
1\n                <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-hue-alpha">\n                    <div class="ag-spectrum-alpha-background"></div>\n                    <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="recentColors" class="ag-recent-colors"></div>\n            </div>\n        </div>',Co([he("spectrumColor")],t.prototype,"spectrumColor",void 0),Co([he("spectrumVal")],t.prototype,"spectrumVal",void 0),Co([he("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Co([he("spectrumHue")],t.prototype,"spectrumHue",void 0),Co([he("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Co([he("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Co([he("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Co([he("recentColors")],t.prototype,"recentColors",void 0),Co([y],t.prototype,"postConstruct",null),t}(ae),So=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Do=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},xo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field">\n            <label ref="eLabel"></label>\n            <div ref="eWrapper" class="ag-wrapper">\n                <%displayField% ref="eDisplayField"></%displayField%>\n                <button ref="eButton" class="ag-picker-button"> </button>\n            </div>\n        </div>',t.displayedPicker=!1,t.isDestroyingPicker=!1,t}return So(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eButton,"click",(function(){t.showPicker()})),this.pickerIcon&&this.eButton.appendChild(h.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return h.setElementWidth(this.eWrapper,e),this},Do([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Do([he("eLabel")],t.prototype,"eLabel",void 0),Do([he("eWrapper")],t.prototype,"eWrapper",void 0),Do([he("eDisplayField")],t.prototype,"eDisplayField",void 0),Do([he("eButton")],t.prototype,"eButton",void 0),t}(Sn),To=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Oo=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-color-picker",n.pickerIcon="colorPicker",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&t.color&&(n.value=t.color),n}return To(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),h.addCssClass(this.getGui(),this.className),this.addDestroyableEventListener(this.eDisplayField,"click",(function(){return t.showPicker()})),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this;if(this.displayedPicker)this.displayedPicker=!1;else{var t=this.getGui().getBoundingClientRect(),n=new po({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(n),h.addCssClass(n.getGui(),"ag-color-dialog");var i=new Eo({picker:this});this.getContext().wireBean(i),i.addDestroyFunc((function(){n.isAlive()&&n.destroy()})),n.setParentComponent(this),n.setBodyComponent(i),i.setValue(this.getValue()),n.addDestroyFunc((function(){var t=e.isDestroyingPicker;e.displayedPicker=!1,t?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,i.isAlive()&&i.destroy())}))}},t.prototype.setValue=function(e){return this.value===e?this:(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:Sn.EVENT_CHANGED}),this)},t.prototype.getValue=function(){return this.value},t}(xo),ko=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return ko(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=t.normalizeValue(t.eInput.value);t.value!==e&&t.setValue(e)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min"),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max"),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step"),this)},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(mo),Ro=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mo=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-range-field",n.displayTag="input",n.inputType="range",n.setTemplate(n.TE
1MPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Ro(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,i=t.max,r=t.step;null!=n&&this.setMinValue(n),null!=i&&this.setMaxValue(i),this.setStep(r||1)},t.prototype.addInputListeners=function(){var e=this,t=h.isBrowserIE();this.addDestroyableEventListener(this.eInput,t?"change":"input",(function(t){e.setValue(t.target.value)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var i=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,i},t}(Tn),Ao=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Po=function(e){function t(){var t=e.call(this)||this;return t.className="ag-select",t.displayTag="select",t.inputType="",t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return Ao(t,e),t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=document.createElement("option");return t.value=e.value,t.text=e.text||e.value,this.eInput.appendChild(t),this},t.prototype.setValue=function(t,n){var i=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,i},t}(Tn),Lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),No=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Fo=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return Lo(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),h.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,Sn.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,i=t.height/2;n.style.left=t.width/2+8*Math.cos(e)+"px",n.style.top=i+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=Math.atan2(e.clientY-t.top-t.height/2,e.clientX-t.left-t.width/2);this.setValue(n,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,Sn.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Sn.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return h.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dragService.removeDragSource(this.dragListener)},t.TEMPLATE='<div class="ag-angle-select">\n            <label ref="eLabel"></label>\n            <div class="ag-wrapper">\n                <div ref="eAngleSelectField" class="ag-angle-select-field">\n                    <div ref="eParentCircle" class="ag-parent-circle">\n                        <div ref="eChildCircle" class="ag-child-circle"></div>\n                    </div>\n                </div>\n                <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n            </div>\n        </div>',No([he("eLabel")],t.prototype,"eLabel",void 0),No([he("eParentCircle")],t.prototype,"eParentCircle",void 0),No([he("eChildCircle")],t.prototype,"eChildCircle",void 0),No([he("eAngleValue")],t.prototype,"eAngleValue",void 0),No([b("dragService")],t.prototype,"dragService",void 0),t}(Cn),jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.nativeInputClassName="ag-native-toggle-button",t.inputType="checkbox",t}return jo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.gridOptionsWrapper.useNativeCheckboxes()||h.addCssClass(this.eIconEl,"ag-icon")},t.prototype.updateIcons=function(){if(!this.gridOptionsWrapper.useNativeCheckboxes()){var e=this.getValue();h.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-on",e),h.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-off",!e)}},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),h.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(tr),Ho=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Yo=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,n){if(this.active&&e.detail){var i=this.getCacheItem(e,!0);
1switch(t){case o.PINNED_LEFT:this.destroyFullWidthRow(i.left),i.left=n;break;case o.PINNED_RIGHT:this.destroyFullWidthRow(i.right),i.right=n;break;default:this.destroyFullWidthRow(i.center),i.center=n}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}else this.destroyFullWidthRow(n)},e.prototype.getCacheItem=function(e,t){var n;void 0===t&&(t=!1);for(var i=0;i<this.cacheItems.length;i++){var r=this.cacheItems[i];if(r.rowNode===e){n=r;break}}return!n&&t&&this.cacheItems.push(n={rowNode:e}),n&&this.stampCacheItem(n),n},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var n=this.cacheItems[t];this.destroyFullWidthRow(n.center),this.destroyFullWidthRow(n.left),this.destroyFullWidthRow(n.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var n,i=this.getCacheItem(e);if(i)switch(t){case o.PINNED_LEFT:i.left&&(n=i.left,i.left=void 0);break;case o.PINNED_RIGHT:i.right&&(n=i.right,i.right=void 0);break;default:i.center&&(n=i.center,i.center=void 0)}return n}},e.prototype.destroy=function(){this.purgeCache(0)},Ho([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ho([y],e.prototype,"postConstruct",null),Ho([v],e.prototype,"destroy",null),Ho([_("detailRowCompCache")],e)}(),Bo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Go=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned},e.prototype.before=function(e,t){switch(e.rowPinned){case o.PINNED_TOP:if(t.rowPinned!==o.PINNED_TOP)return!0;break;case o.PINNED_BOTTOM:if(t.rowPinned!==o.PINNED_BOTTOM)return!1;break;default:if(h.exists(t.rowPinned))return t.rowPinned!==o.PINNED_TOP}return e.rowIndex<t.rowIndex},Bo([b("rowModel")],e.prototype,"rowModel",void 0),Bo([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Bo([_("rowPositionUtils")],e)}(),Wo=function(){function e(){}return e.prototype.createId=function(e){return this.createIdFromValues(e.rowIndex,e.column,e.rowPinned)},e.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},e.prototype.equals=function(e,t){return e.column===t.column&&e.rowPinned===t.rowPinned&&e.rowIndex===t.rowIndex},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([_("cellPositionUtils")],e)}(),Uo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},zo=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){return h.missingOrEmpty(e===o.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var n=t===o.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h.missingOrEmpty(n))return 0;for(var i=0;i<n.length;i++){var r=n[i];if(r.rowTop+r.rowHeight-1>=e)return i}return n.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0),this.eventService.dispatchEvent({type:F.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1),this.eventService.dispatchEvent({type:F.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.createNodesFromData=function(e,t){var n=this,i=[];if(e){var r=0;e.forEach((function(e,s){var a=new He;n.context.wireBean(a),a.data=e,a.id=(t?"t":"b")+"-"+s,a.rowPinned=t?o.PINNED_TOP:o.PINNED_BOTTOM,a.setRowTop(r),a.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(s),r+=a.rowHeight,i.push(a)}))}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=h.last(e);return t.rowTop+t.rowHeight}return 0},Uo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Uo([b("eventService")],e.prototype,"eventService",void 0),Uo([b("context")],e.prototype,"context",void 0),Uo([b("columnApi")],e.prototype,"columnApi",void 0),Uo([b("gridApi")],e.prototype,"gridApi",void 0),Uo([y],e.prototype,"init",null),Uo([_("pinnedRowModel")],e)}(),qo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ko=function(e){this.cellValueChanges=e},$o=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=i,r}return qo(t,e),t}(Ko),Qo=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.DEFAULT_STACK_SIZE=10,e}(),Xo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Jo=function(){function e(){var e=this;this.cellValueChanges=[],this.isCellEditing=!1,this.isRowEditing=!1,this.isPasting=!1,this.isFilling=!1,this.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var n=t.oldValue,i=t.value,r={rowPinned:t.rowPinned,rowIndex:t.rowIndex,columnId:t.column.getColId(),oldValue:n,newValue:i};e.cellValueChanges.push(r)}},this.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()}}return e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new Qo(e),this.redoStack=new Qo(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.eventService.addEventListener(F.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.eventService.addEventListener(F.EVENT_MODEL_UPDATED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_MOVED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_PINNED,this.clearStacks),this.eventService.addEventListener(F.EVENT_COLUMN_VISIBLE,this.clearStacks),this.eventService.addEventListener(F.EVENT_ROW_DRAG_END,this.clearStacks))}},e.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof $o?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},e.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof $o?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},e.prototype.processAction=function(e,t){var n=this;
1e.cellValueChanges.forEach((function(e){var i=e.columnId,r=n.getRowNode({rowIndex:e.rowIndex,rowPinned:e.rowPinned});null!=r.rowTop&&r.setDataValue(i,t(e))}))},e.prototype.processRangeAndCellFocus=function(e,t){if(t){var n=t.startRow,i=t.endRow,r={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:t.startColumn.getColId()};return this.setLastFocusedCell(r),void this.gridApi.addCellRange({rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:i.rowIndex,rowEndPinned:i.rowPinned,columnStart:t.startColumn,columns:t.columns})}var o=e[0],s=this.getRowNode({rowIndex:o.rowIndex,rowPinned:o.rowPinned});this.setLastFocusedCell({rowPinned:o.rowPinned,rowIndex:s.rowIndex,columnId:o.columnId})},e.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,i=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(i),k.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusedCellController.setFocusedCell(n,i,r,!0)},e.prototype.addRowEditingListeners=function(){var e=this;this.eventService.addEventListener(F.EVENT_ROW_EDITING_STARTED,(function(){e.isRowEditing=!0})),this.eventService.addEventListener(F.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Ko(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1}))},e.prototype.addCellEditingListeners=function(){var e=this;this.eventService.addEventListener(F.EVENT_CELL_EDITING_STARTED,(function(){e.isCellEditing=!0})),this.eventService.addEventListener(F.EVENT_CELL_EDITING_STOPPED,(function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new Ko(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},e.prototype.addPasteListeners=function(){var e=this;this.eventService.addEventListener(F.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.eventService.addEventListener(F.EVENT_PASTE_END,(function(){var t=new Ko(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},e.prototype.addFillListeners=function(){var e=this;this.eventService.addEventListener(F.EVENT_FILL_START,(function(){e.isFilling=!0})),this.eventService.addEventListener(F.EVENT_FILL_END,(function(t){var n=new $o(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},e.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Xo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Xo([b("focusedCellController")],e.prototype,"focusedCellController",void 0),Xo([b("eventService")],e.prototype,"eventService",void 0),Xo([b("gridApi")],e.prototype,"gridApi",void 0),Xo([b("rowModel")],e.prototype,"rowModel",void 0),Xo([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Xo([y],e.prototype,"init",null),Xo([_("undoRedoService")],e)}(),Zo=function(){function e(e,n,i){if(e)if(n){var r=!!n.debug;this.gridOptions=n;var o=this.getRegisteredModules(i),s=this.createBeansList(o),a=this.createAgStackComponentsList(o),l=this.createProvidedBeans(e,i);
1if(s){var c={providedBeanInstances:l,beanClasses:s,components:a,debug:r};this.logger=new Ii("ag-Grid",(function(){return n.debug}));var u=new Ii("Context",(function(){return c.debug}));this.context=new m(c,u),this.registerModuleUserComponents(o);var d=new Fi;this.context.wireBean(d),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var h=k.isRegistered(t.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+h)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=k.getRegisteredModules(),i=[],r={};function o(e){!function(e){r[e.moduleName]||(r[e.moduleName]=!0,i.push(e),k.register(e))}(e),e.dependantModules&&e.dependantModules.forEach(o)}return t&&t.forEach(o),n&&n.forEach(o),i},e.prototype.registerModuleUserComponents=function(e){var t=this.context.getBean("userComponentRegistry");this.extractModuleEntity(e,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(e){t.registerDefaultComponent(e.componentName,e.componentClass)}))},e.prototype.createProvidedBeans=function(e,t){var n=t?t.frameworkOverrides:null;h.missing(n)&&(n=new nr);var i={gridOptions:this.gridOptions,eGridDiv:e,$scope:t?t.$scope:null,$compile:t?t.$compile:null,quickFilterOnScope:t?t.quickFilterOnScope:null,globalEventListener:t?t.globalEventListener:null,frameworkOverrides:n};return t&&t.providedBeanInstances&&h.assign(i,t.providedBeanInstances),i},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:kn},{componentName:"AgRadioButton",componentClass:tr},{componentName:"AgToggleButton",componentClass:Vo},{componentName:"AgInputTextField",componentClass:mo},{componentName:"AgInputTextArea",componentClass:yo},{componentName:"AgInputNumberField",componentClass:Io},{componentName:"AgInputRange",componentClass:Mo},{componentName:"AgSelect",componentClass:Po},{componentName:"AgSlider",componentClass:bo},{componentName:"AgAngleSelect",componentClass:Fo},{componentName:"AgColorPicker",componentClass:Oo},{componentName:"AgGridComp",componentClass:_i},{componentName:"AgHeaderRoot",componentClass:li},{componentName:"AgPagination",componentClass:Xr},{componentName:"AgOverlayWrapper",componentClass:ro},{componentName:"AgGroupComponent",componentClass:ao},{componentName:"AgPanel",componentClass:uo},{componentName:"AgDialog",componentClass:po}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t.concat(n)},e.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var n=[t,Mr,Go,Wo,_r,wi,Ht,Or,Ir,Zr,ze,Wr,Kr,Xi,Pi,zo,Yi,W,O,J,Ti,Gt,ui,H,gr,yn,Ei,N,Di,xr,Yr,wr,hi,ki,B,Mi,Vi,Xt,Ut,Ui,qi,Fr,$i,Zi,sr,rr,Gi,cr,dr,zr,pr,Sr,Vr,to,Yo,Jo],i=this.extractModuleEntity(e,(function(e){return e.beans?e.beans:[]}));n.push.apply(n,i);var r=[];return n.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),n=e.getColumnDefs();h.exists(n)&&t.setColumnDefs(n,"gridInitializing"),this.context.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e){this.context.getBean("eventService").dispatchEvent({type:F.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi})},e.prototype.getRowModelClass=function(e){var t=this.gridOptions.rowModelType;"enterprise"===t&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),t=o.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===t&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),t=o.ROW_MODEL_TYPE_CLIENT_SIDE),t||(t=o.ROW_MODEL_TYPE_CLIENT_SIDE);var n={};e.forEach((function(e){h.iterateObject(e.rowModels,(function(e,t){n[e]=t}))}));var i=n[t];return h.exists(i)?i:(t===o.ROW_MODEL_TYPE_INFINITE&&console.error("ag-Grid: Row Model \"Infinite\" not found. Please ensure the InfiniteRowModelModule is loaded using: import '@ag-grid-community/infinite-row-model';"),console.error("ag-Grid: could not find matching row model for rowModelType "+t),t===o.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. For this row model to work you must a) be using ag-Grid Enterprise and b) ensure ViewportRowModelModule is loaded using: import \'@ag-grid-enterprise/viewport-row-model;'),t===o.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: Row Model \"Server Side\" not found. For this row model to work you must a) be using ag-Grid Enterprise and b) ensure ServerSideRowModelModule is loaded using: import '@ag-grid-enterprise/server-server-side-row-model';"),void(t===o.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error("ag-Grid: Row Model \"Client Side\" not found. Please ensure the ClientSideRowModelModule is loaded using: import '@ag-grid-community/client-side-row-model';")))},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e}();function es(e,t,n,i){var r,o,s=i.agGrid;if(o=s+".quickFilterText",r=t.$eval(s)){var a=new Zo(e[0],r,{$scope:t,$compile:n,quickFilterOnScope:o});t.$on("$destroy",(function(){a.destroy(),a=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}var ts,ns=!1,is=function(){function e(t){var n=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),h.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEac
1h((function(e){return n.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var n=0,i=0;return this.items.forEach((function(r){h.clearElement(t);var o=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=o&&(t.appendChild(o),n<e.offsetWidth&&(n=e.offsetWidth),i<e.offsetHeight&&(i=e.offsetHeight))})),this.eGui.removeChild(e),{height:i,width:n}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),h.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},e.prototype.showItem=function(e){var t=h.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(h.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&h.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),h.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):h.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}(),rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),os=function(e){function t(n,i){var r=e.call(this)||this;return r.version=0,r.state=t.STATE_DIRTY,r.rowNodeCacheParams=i,r.blockNumber=n,r.startRow=n*i.blockSize,r.endRow=r.startRow+i.blockSize,r}return rs(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var n=this.startRow;n<this.endRow;n++)n<t&&e(this.getRowUsingLocalIndex(n),n)},t.prototype.forEachNode=function(e,t,n,i){this.forEachNodeCallback((function(n){e(n,t.next()),i&&n.childrenCache&&n.childrenCache.forEachNodeDeep(e,t)}),n)},t.prototype.forEachNodeDeep=function(e,t,n){this.forEachNode(e,t,n,!0)},t.prototype.forEachNodeShallow=function(e,t,n){this.forEachNode(e,t,n,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){return void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next()),this.rowNodes[e-this.startRow]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){this.rowNodes[e-this.startRow]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,n=this.createBlankRowNode(e);return this.rowNodes[t]=n,n},t.prototype.setNewData=function(e,t){var n=this.setBlankRowNode(e);return this.setDataAndId(n,t,this.startRow+e),n},t.prototype.createBlankRowNode=function(e){var t=new He;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.createBlankRowNode(this.startRow+e);this.rowNodes.push(t)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED,this.dispatchEvent({type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null})},t.prototype.populateWithRowData=function(e){var t=this,n=[];
1this.rowNodes.forEach((function(i,r){var o=e[r];i.stub&&n.push(i),t.setDataAndId(i,o,t.startRow+r)})),n.length>0&&this.beans.rowRenderer.redrawRows(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,n,i){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(n)),i=h.cleanNumber(i),this.dispatchEvent({type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i})},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(re),ss=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=h.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){h.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===os.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getNodeIdPrefix(),i={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};h.exists(n)?e[n+t.getBlockNumber()]=i:e[t.getBlockNumber()]=i})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([(0,t=E("loggerFactory"),function(e,n){t(e,n,0)})],e.prototype,"setBeans",null),e;var t}(),as=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ls=function(e){function t(t){var n=e.call(this)||this;return n.maxRowFound=!1,n.blocks={},n.blockCount=0,n.virtualRowCount=t.initialRowCount,n.cacheParams=t,n}return as(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,i=[];this.forEachBlockInOrder((function(t){t!==e&&i.push(t)})),i.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,o=r?this.cacheParams.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;
1i.forEach((function(e,t){if(e.getState()===os.STATE_DIRTY&&t>=s||r&&t>=o){if(e.isAnyNodeOpen(n.virtualRowCount))return;n.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(os.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var n=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<n?(this.virtualRowCount=n,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,h.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var n=this;void 0===t&&(t=new d),this.forEachBlockInOrder((function(i){i.forEachNodeDeep(e,t,n.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var n=this;e.forEach((function(e){t(n.blocks[e],e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){this.isActive()&&this.dispatchEvent({type:t.EVENT_CACHE_UPDATED})},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,i=[],r=-1,o=!1,s=new d;h.missing(e)&&(o=!0);var a=!1;return this.forEachBlockInOrder((function(l,c){a||(o&&r+1!==c?a=!0:(r=c,l.forEachNodeShallow((function(n){var r=n===e||n===t;(o||r)&&i.push(n),r&&(o=!o)}),s,n.virtualRowCount)))})),a||o?[]:i},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(re),cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),us=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ds=function(e){function t(t){var n=e.call(this,t)||this;return n.message=t.message,n}return cs(t,e),t.prototype.postConstruct=function(){var t=this,n=new hs;this.wireDependentBean(n),n.setMessage(this.message),this.setBodyComponent(n),e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"onBtOk",(function(){return t.close()}))},t}(po),hs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return cs(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div class="ag-message-box">\n            <div ref="eCenter" class="ag-message-box-content"></div>\n            <div ref="eButtons" class="ag-message-box-button-bar">\n                <button ref="eOk">OK</button>\n            </div>\n        </div>',us([he("eCenter")],t.prototype,"eCenter",void 0),us([he("eOk")],t.prototype,"eOk",void 0),us([y],t.prototype,"postConstruct",null),t}(ae),ps=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),fs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ms=function(e){function t(){var t=e.call(this,void 0)||this;return t.rowsInBodyContainer={},t.rowHeight=20,t}return ps(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener();var e=document.createElement("div");h.addCssClass(e,"ag-virtual-list-item"),this.rowHeight=this.getItemHeight()},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getVirtualItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,i=n+this.rowHeight,r=this.getGui().scrollTop,o=this.getGui().offsetHeight,s=r+o<i;if(r>n)this.getGui().scrollTop=n;else if(s){var a=i-o;this.getGui().scrollTop=a}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){h.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,n=Math.floor(e/this.rowHeight),i=Math.floor(t/this.rowHeight);this.ensureRowsRendered(n,i)},t.prototype.ensureRowsRendered=function(e,t){for(var n=Object.keys(this.rowsInBodyContainer),i=e;i<=t;i++)if(n.indexOf(i.toString())>=0)n.splice(n.indexOf(i.toString()),1);else if(this.model.getRowCount()>i){var r=this.model.getRow(i);this.insertRow(r,i)}this.removeVirtualRows(n)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var n=t.rowsInBodyContainer[e];t.eListContainer.removeChild(n.eDiv),n.rowComponent.destroy&&n.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var n=document.createElement("div");h.addCssClass(n,"ag-virtual-list-item"),n.style.top=this.rowHeight*t+"px";var i=this.componentCreator(e);n.appendChild(i.getGui()),this.eListContainer.appendChild(n),this.rowsInBodyContainer[t]={rowComponent:i,eDiv:n}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.TEMPLATE='<div class="ag-virtual-list-viewport">\n            <div class="ag-virtual-list-container"></div>\n        </div>',fs([b("environment")],t.prototype,"environment",void 0),fs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),fs([y],t.prototype,"init",null),t}(ae),gs=function(){function e(){}return e.prototype.wrap=function(e,t,n,i){var r=this;void 0===n&&(n=[]);var o=this.createWrapper(e,i);return t.forEach((function(e){r.createMethod(o,e,!0)}
1)),n.forEach((function(e){r.createMethod(o,e,!1)})),o},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();(ts=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",ts.StackedColumn="stackedColumn",ts.NormalizedColumn="normalizedColumn",ts.GroupedBar="groupedBar",ts.StackedBar="stackedBar",ts.NormalizedBar="normalizedBar",ts.Line="line",ts.Scatter="scatter",ts.Bubble="bubble",ts.Pie="pie",ts.Doughnut="doughnut",ts.Area="area",ts.StackedArea="stackedArea",ts.NormalizedArea="normalizedArea";var ys="undefined"==typeof global?{}:global;ys.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,ys.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,ys.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,ys.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,ys.Node="undefined"==typeof Node?{}:Node,ys.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var vs,_s=function(){function e(t,n,i,r,o,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=i,this.eventService=r,this.columnController=o,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=h.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n                                    tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n                                    major release of ag-Grid we will be dropping support for the old version of\n                                    tree data. If you are reading this message, please go to the docs to see how\n                                    to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return h.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var n=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=n,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=n},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var n={remove:[],update:[],add:[]};return this.executeAdd(e,n),this.executeRemove(e,n),this.executeUpdate(e,n),t&&h.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.executeAdd=function(e,t){var n=this,i=e.add,r=e.addIndex;i&&("number"==typeof r&&r>=0?i.reverse().forEach((function(e){var i=n.addRowNode(e,r);t.add.push(i)})):i.forEach((function(e){var i=n.addRowNode(e);t.add.push(i)})))},e.prototype.executeRemove=function(e,t){var n=this,i=e.remove;if(i){var r={},o=!1;i.forEach((function(e){var i=n.lookupRowNode(e);i&&(i.isSelected()&&(o=!0),i.setSelected(!1,!1,!0),i.clearRowTop(),r[i.id]=!0,delete n.allNodesMap[i.id],t.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!r[e.id]})),o&&(this.selectionController.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:F.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi}))}},e.prototype.executeUpdate=function(e,t){var n=this,i=e.update;
1i&&i.forEach((function(e){var i=n.lookupRowNode(e);i&&(i.updateData(e),t.update.push(i))}))},e.prototype.addRowNode=function(t,n){var i=this.createNode(t,this.rootNode,e.TOP_LEVEL);return h.exists(n)?h.insertIntoArray(this.rootNode.allLeafChildren,i,n):this.rootNode.allLeafChildren.push(i),i},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(h.exists(n)){var i=n(e);if(!(t=this.allNodesMap[i]))return console.error("ag-Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(t=h.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,n){var i=this;if("string"!=typeof e){var r=[];return e.forEach((function(e){var o=i.createNode(e,t,n);r.push(o)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,n){var i=new He;this.context.wireBean(i);var r=this.gridOptionsWrapper.isTreeData(),o=!r&&h.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(o&&o.group)i.group=!0,i.childrenAfterGroup=this.recursiveFunction(o.children,i,n+1),i.expanded=!0===o.expanded,i.field=o.field,i.key=o.key,i.canFlower=i.master,this.setLeafChildren(i);else if(i.group=!1,r)i.master=!1,i.expanded=!1;else{i.master=this.doesDataFlower?this.doesDataFlower(e):!!this.doingMasterDetail&&(!this.isRowMasterFunc||this.isRowMasterFunc(e));var s=this.columnController.getRowGroupColumns();i.expanded=!!i.master&&this.isExpanded(n+(s?s.length:0))}return i.canFlower=i.master,t&&!this.suppressParentsInRowNodes&&(i.parent=t),i.level=n,i.setDataAndId(e,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn("ag-grid: duplicate node id '"+i.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[i.id]=i,this.nextId++,i},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!h.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),bs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(vs||(vs={}));var ws,Cs=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:o.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:o.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(F.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(F.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(F.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(F.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:o.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(F.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(F.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(F.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(F.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var n=this.refreshModel.bind(this,{step:o.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(J.PROP_GROUP_REMOVE_SINGLE_CHILDREN,n),this.gridOptionsWrapper.addEventListener(J.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,n),this.rootNode=new He,this.nodeManager=new _s(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},e.prototype.ensureRowHeightsValid=function(e,t,n,i){var r,o=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),c=Math.min(a,i),u=l;u<=c;u++){var d=this.getRow(u);if(d.rowHeightEstimated){var h=this.gridOptionsWrapper.getRowHeightForNode(d
1);d.setRowHeight(h.height),r=!0,o=!0}}r&&this.setRowTops()}while(r);return o},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var n=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_NORMAL,i=this.rowsToDisplay[t];if(h.missing(i.rowHeight)){var r=this.gridOptionsWrapper.getRowHeightForNode(i,n);i.setRowHeight(r.height,r.estimated)}i.setRowTop(e),i.setRowIndex(t),e+=i.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup&&(!t.isActive()||e.expanded))for(var n=0;n<e.childrenAfterGroup.length;n++)this.resetRowTops(e.childrenAfterGroup[n],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var n=this.getRowIndexAtPixel(t);return this.getRow(n)!==e&&(h.removeFromArray(this.rootNode.allLeafChildren,e),h.insertIntoArray(this.rootNode.allLeafChildren,e,n),this.refreshModel({step:o.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(h.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return o.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:o.STEP_PIVOT}):this.refreshModel({step:o.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=h.missingOrEmpty(e),n=new Yt(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},e.prototype.refreshModel=function(e){var t=this,n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case o.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case o.STEP_FILTER:this.doFilter(n);case o.STEP_PIVOT:this.doPivot(n);case o.STEP_AGGREGATE:this.doAggregate(n);case o.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case o.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,n),this.setRowTops(),this.eventService.dispatchEvent({type:F.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1}),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=h.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?h.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:h.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,h.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return h.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var n,i=!t,r=!1,o=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=i&&!r;if(i||a!==t&&a!==e||(i=!0),!a.group||!s){var c=i&&!r,u=a.isParentOfNode(n);(c||u)&&o.push(a)}l&&(a!==t&&a!==e||(r=!0,n=a===t?t:e))})),o},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(h.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+n)/2),r=this.rowsToDisplay[i];if(this.isRowInPixel(r,e))return i;r.rowTop<e?t=i+1:r.rowTop>e&&(n=i-1)}},e.prototype.isRowInPixel=function(e,t){return e.rowTop<=t&&e.rowTop+e.rowHeight>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=h.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEac
1h((function(t,n){return e(t,n)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,vs.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,vs.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,vs.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,vs.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,i){if(e)for(var r=0;r<e.length;r++){var o=e[r];if(t(o,i++),o.hasChildren()){var s=null;switch(n){case vs.Normal:s=o.childrenAfterGroup;break;case vs.AfterFilter:s=o.childrenAfterFilter;break;case vs.AfterFilterAndSort:s=o.childrenAfterSort;break;case vs.PivotNodes:s=o.leafGroup?null:o.childrenAfterSort}s&&(i=this.recursivelyWalkNodesAndCallback(s,t,n,i))}}return i},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function n(i){i&&i.forEach((function(i){(t?h.exists(i.childrenAfterGroup):i.group)&&(i.expanded=e,n(i.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:o.STEP_MAP}),this.eventService.dispatchEvent({api:this.gridApi,columnApi:this.columnApi,type:F.EVENT_EXPAND_COLLAPSE_ALL,source:e?"expandAll":"collapseAll"})},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,n,i,r){if(!h.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))if(this.groupStage){if(t){var o={add:[],remove:[],update:[]};t.forEach((function(e){h.pushAll(o.add,e.add),h.pushAll(o.remove,e.remove),h.pushAll(o.update,e.update)})),this.groupStage.execute({rowNode:this.rootNode,rowNodeTransaction:o,rowNodeOrder:n,changedPath:i})}else this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:r}),this.restoreGroupState(e);this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(i)}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren},e.prototype.restoreGroupState=function(e){e&&h.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"==typeof e[n]&&(t.expanded=e[n])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return h.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.eventService.dispatchEvent({type:F.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi}),this.refreshModel({step:o.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var n=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){n.executeBatchUpdateRowData(),n.rowDataTransactionBatch=null}),i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var r=e.nodeManager.updateRowData(i.rowDataTransaction,null);n.push(r),i.callback&&t.push(i.callback.bind(null,r))})),this.commonUpdateRowData(n),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([n],t),n},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:o.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),this.eventService.dispatchEvent({type:F.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi})},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:o.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},bs([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),bs([b("columnController")],e.prototype,"columnController",void 0),bs([b("filterManager")],e.prototype,"filterManager",void 0),bs([b("$scope")],e.prototype,"$scope",void 0),bs([b("selectionController")],e.prototype,"selectionController",void 0),bs([b("eventService")],e.prototype,"eventService",void 0),bs([b("context")],e.prototype,"context",void 0),bs([b("valueService")],e.prototype,"valueService",void 0),bs([b("valueCache")],e.prototype,"valueCache",void 0),bs([b("columnApi")],e.prototype,"columnApi",void 0),bs([b("gridApi")],e.prototype,"gridApi",void 0),bs([b("filterStage")],e.prototype,"filterStage",void 0),bs([b("sortStage")],e.prototype,"sortStage",void 0),bs([b("flattenStage")],e.prototype,"flattenStage",void 0),bs([w("groupStage")],e.prototype,"groupStage",void 0),bs([w("aggregationStage")],e.prototype,"aggregationStage",void 0),bs([w("pivotStage")],e.prototype,"pivotStage",void 0),bs([y],e.prototype,"init",null),bs([_("rowModel")],e)}(),Es=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ss=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode;this.filterService.filter(e.changedPath),this.selectableService.updateSelectableAfterFiltering(t)},Es([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Es([b("selectableService")],e.prototype,"selectableService",void 0),Es([b("filterService")],e.prototype,"filterService",void 0),Es([_("filterStage")],e)}(),Ds=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},xs=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=h.exists(t)&&t.length>0,i=n&&h.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,o=this.columnController.getValueColumns(),s=h.missingOrEmpty(o);this.sortService.sort(t,n,i,r,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},Ds([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ds([b("sortService")],e.prototype,"sortService",void 0),Ds([b("sortController")],e.prototype,"sortController",void 0),Ds([b("columnController")],e.prototype,"columnController",void 0),Ds([_("sortStage")],e)}(),Ts=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}
1,Os=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=[],i={value:0},r=this.columnController.isPivotMode(),o=r&&t.leafGroup;return this.recursivelyAddToRowsToDisplay(o?[t]:t.childrenAfterSort,n,i,r,0),!o&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,i,0)),n},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,i,r){if(!h.missingOrEmpty(e))for(var o=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),c=0;c<e.length;c++){var u=e[c],d=u.hasChildren(),p=a&&d&&1===u.childrenAfterGroup.length,f=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length;if(!(i&&!d||o&&d||s&&u.expanded&&(!i||!u.leafGroup)||p||f)&&this.addRowNodeToRowsToDisplay(u,t,n,r),!i||!u.leafGroup)if(d){var m=p||f;(u.expanded||m)&&(this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,i,m?r:r+1),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r)))}else if(u.master&&u.expanded){var g=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(g,t,n,r)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,n,i){t.push(e);var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(r?0:i)},e.prototype.ensureFooterNodeExists=function(e){if(!h.exists(e.sibling)){var t=new He;this.context.wireBean(t),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,h.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(h.exists(e.detailNode))return e.detailNode;var t=new He;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,h.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},Ts([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ts([b("selectionController")],e.prototype,"selectionController",void 0),Ts([b("eventService")],e.prototype,"eventService",void 0),Ts([b("context")],e.prototype,"context",void 0),Ts([b("columnController")],e.prototype,"columnController",void 0),Ts([_("flattenStage")],e)}(),ks=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Is=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,n,i,r,o){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=n?s.doDeltaSort(a,e,i,r,o):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(e,t){var n=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return n.sort(this.compareRowNodes.bind(this,t)),n},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,n,i,r){var o=e.childrenAfterSort.filter((function(e){var t=!n[e.id],o=r||i.canSkip(e);return t&&o})).map(this.mapNodeToSortedNode.bind(this)),s={};o.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?o:0===o.length?a:this.mergeSortedArrays(t,o,a)},e.prototype.mergeSortedArrays=function(e,t,n){for(var i=[],r=0,o=0;r<t.length&&o<n.length;){var s=this.compareRowNodes(e,t[r],n[o]);i.push(s<0?t[r++]:n[o++])}for(;r<t.length;)i.push(t[r++]);for(;o<n.length;)i.push(n[o++]);return i},e.prototype.compareRowNodes=function(e,t,n){for(var i=t.rowNode,r=n.rowNode,o=0,s=e.length;o<s;o++){var a,l=e[o],c=-1===l.inverter,u=this.getValue(i,l.column),d=this.getValue(r,l.column);if(0!==(a=l.column.getColDef().comparator?l.column.getColDef().comparator(u,d,i,r,c):h.defaultComparator(u,d,this.gridOptionsWrapper.isAccentedSort())))return a*l.inverter}return t.currentPos-n.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!h.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,n=0;n<t.length;n++){var i=t[n],r=n===e.childrenAfterSort.length-1;i.setFirstChild(0===n),i.setLastChild(r),i.setChildIndex(n)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var n=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&n(e)}))};e.executeFromRootNode((function(e){return n(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;h.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){n.columnController.getGroupDisplayColumns().forEac
1h((function(i){var r=i.getColDef().showRowGroup;if("string"==typeof r){var o=n.columnController.getPrimaryColumn(r);if(o!==e.rowGroupColumn)if(t)e.setGroupValue(i.getId(),null);else{var s=e.getFirstChildOfFirstChild(o);s&&e.setGroupValue(i.getId(),s.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},ks([b("sortController")],e.prototype,"sortController",void 0),ks([b("columnController")],e.prototype,"columnController",void 0),ks([b("valueService")],e.prototype,"valueService",void 0),ks([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ks([y],e.prototype,"init",null),ks([_("sortService")],e)}(),Rs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ms=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var n=this,i=function(t,i){t.hasChildren()?(t.childrenAfterFilter=e&&!i?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,i=e.data&&n.filterManager.doesRowPassFilter(e);return t||i})):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(e,t){if(e.childrenAfterGroup)for(var o=0;o<e.childrenAfterGroup.length;o++){var s=e.childrenAfterGroup[o],a=t||n.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?r(e.childrenAfterGroup[o],a):i(s,a)}i(e,t)};t.executeFromRootNode((function(e){return r(e,!1)}))}else t.forEachChangedNodeDepthFirst((function(e){return i(e,!1)}),!0)},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Rs([b("filterManager")],e.prototype,"filterManager",void 0),Rs([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Rs([y],e.prototype,"postConstruct",null),Rs([_("filterService")],e)}(),As=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ps=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(h.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!h.missing(t)){var n={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return h.exists(e)&&e.forEach((function(e,o){var s=t(e),a=i[s];r&&(r[s]=o),a?(a.data!==e&&n.update.push(e),i[s]=void 0):n.add.push(e)})),h.iterateObject(i,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},As([b("rowModel")],e.prototype,"rowModel",void 0),As([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),As([y],e.prototype,"postConstruct",null),As([_("immutableService")],e)}(),Ls={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[Ss,xs,Os,Is,Ms,Ps],rowModels:{clientSide:Cs}},Ns=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},js=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.cacheParams=n,i}return Ns(t,e),t.prototype.createBlankRowNode=function(t){var n=e.prototype.createBlankRowNode.call(this,t);return n.uiLevel=0,this.setIndexAndTopOnRowNode(n,t),n},t.prototype.setDataAndId=function(e,t,n){h.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,n){e.prototype.setRowNode.call(this,t,n),this.setIndexAndTopOnRowNode(n,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};h.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0)},Fs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fs([b("rowRenderer")],t.prototype,"rowRenderer",void 0),Fs([y],t.prototype,"init",null),t}(os),Vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ys=function(e){function t(t){return e.call(this,t)||this}return Vs(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,n){for(var i=e.getStartRow(),r=t+n,o=e.getEndRow()-1;o>=i;o--)if(!(o<r)){var s=this.getRow(o-n,!0);s?e.setRowNode(o,s):(e.setBlankRowNode(o),e.setDirty())}},t.prototype.insertItems=function(e,t,n){for(var i=e.getStartRow(),r=e.getEndRow(),o=[],s=0;s<n.length;s++){var a=t+s;if(a>=i&&a<r){var l=e.setNewData(a,n[s]);o.push(l)}}return o},t.prototype.insertItemsAtIndex=function(e,t){var n=this,i=[];this.forEachBlockInReverseOrder((function(r){r.getEndRow()<=e||(n.moveItemsDown(r,e,t.length),n.insertItems(r,e,t).forEach((function(e){return i.push(e)})))}
1)),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated(),this.eventService.dispatchEvent({type:F.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi})},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.cacheParams.blockSize),i=this.getBlock(n);if(!i){if(t)return null;i=this.createBlock(n)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=new js(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},Hs([b("eventService")],t.prototype,"eventService",void 0),Hs([b("columnApi")],t.prototype,"columnApi",void 0),Hs([b("gridApi")],t.prototype,"gridApi",void 0),Hs([(0,n=E("loggerFactory"),function(e,t){n(e,t,0)})],t.prototype,"setBeans",null),Hs([y],t.prototype,"init",null),t;var n}(ls),Bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bs(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,F.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,F.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!h.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return o.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;h.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),h.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),h.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),h.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return h.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return h.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!h.missing(this.datasource)){h.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:F.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new ss(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new d},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new Ys(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(ls.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new d)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){h.exists(e.remove)||h.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):h.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},Gs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gs([b("filterManager")],t.prototype,"filterManager",void 0),Gs([b("sortController")],t.prototype,"sortController",void 0),Gs([b("selectionController")],t.prototype,"selectionController",void 0),Gs([b("eventService")],t.prototype,"eventService",void 0),Gs([b("gridApi")],t.prototype,"gridApi",void 0),Gs([b("columnApi")],t.prototype,"columnApi",void 0),Gs([b("rowRenderer")],t.prototype,"rowRenderer",void 0),Gs([y],t.prototype,"init",null),Gs([v],t.prototype,"destroyDatasource",null),Gs([_("rowModel")],t)}(re),Us={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Ws}},zs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},qs=function(){function e(e){var t=e.valueService,n=e.gridOptionsWrapper,i=e.processCellCallback,r=e.processHeaderCallback,o=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnController=e.columnController,this.valueService=t,this.gridOptionsWrapper=n,this.processCellCallback=i,this.processHeaderCallback=r,this.processGroupHeaderCallback=o,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.firstGroupColumn=h.find(e,(function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,i){var r;r=i&&i.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(i):this.valueService.getValue(e,i);var o=this.processCell(i,e,r,this.processCellCallback,n);return null!=o?o:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)t.push((e=e.parent).key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,i,r){return i?i({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):n},e}(),Ks=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=this.gridOptionsWrapper.getContext(),c=this.columnController.isPivotMode(),u=this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE,d=!u&&t.onlySelected,p=[];if(p=h.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!c?(p=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([o.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(p),t.columnGroups){var f=new j,m=this.displayedGroupCreator.createDisplayedGroups(p,this.columnController.getGridBalancedTree(),f,null);this.recursivelyAddHeaderGroups(m,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var g=e.onNewHeaderRow();p.forEach((function(e,t){g.onColumn(e,t,void 0)}))}function y(o){if((!o.group||!t.skipGroups&&(1!==o.allChildrenCount||!(s||a&&o.leafGroup)))&&(!t.skipFooters||!o.footer)&&(!t.onlySelected||o.isSelected())&&(!t.skipPinnedTop||"top"!==o.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==o.rowPinned)&&(-1!==o.level||o.leafGroup)&&!n({node:o,api:i,context:l})){var c=e.onNewBodyRow();
1if(p.forEach((function(e,t){c.onColumn(e,t,o)})),t.getCustomContentBelowRow){var u=t.getCustomContentBelowRow({node:o,api:i,columnApi:r,context:l});u&&e.addCustomContent(u)}}}return this.pinnedRowModel.forEachPinnedTopRow(y),c?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(y):this.rowModel.forEachNode(y):t.onlySelectedAllPages||d?this.selectionController.getSelectedNodes().forEach((function(e){y(e)})):u?this.rowModel.forEachNodeAfterFilterAndSort(y):this.rowModel.forEachNode(y),this.pinnedRowModel.forEachPinnedBottomRow(y),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,n){var i=[];e.forEach((function(e){e.getChildren&&e.getChildren().forEach((function(e){return i.push(e)}))})),e.length>0&&e[0]instanceof M&&this.doAddHeaderHeader(t,e,n),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,n)},e.prototype.doAddHeaderHeader=function(e,t,n){var i=this,r=e.onNewHeaderGroupingRow(),o=0;t.forEach((function(e){var t,s=e;t=n?n({columnGroup:s,api:i.gridOptionsWrapper.getApi(),columnApi:i.gridOptionsWrapper.getColumnApi(),context:i.gridOptionsWrapper.getContext()}):i.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(t||"",o++,s.getLeafColumns().length-1)}))},zs([b("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),zs([b("columnController")],e.prototype,"columnController",void 0),zs([b("rowModel")],e.prototype,"rowModel",void 0),zs([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),zs([b("selectionController")],e.prototype,"selectionController",void 0),zs([b("columnFactory")],e.prototype,"columnFactory",void 0),zs([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zs([_("gridSerializer")],e)}();!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(ws||(ws={}));var $s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Xs=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var i=t.columnSeparator;return n.suppressQuotes=t.suppressQuotes,n.columnSeparator=i,n}return $s(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,o.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result+"\r\n"},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(qs),Js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $s(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})}
1,t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){return new Xs({columnController:this.columnController,valueService:this.valueService,gridOptionsWrapper:this.gridOptionsWrapper,processCellCallback:e.processCellCallback||void 0,processHeaderCallback:e.processHeaderCallback||void 0,processGroupHeaderCallback:e.processGroupHeaderCallback||void 0,processRowGroupCallback:e.processRowGroupCallback||void 0,suppressQuotes:e.suppressQuotes||!1,columnSeparator:e.columnSeparator||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Qs([b("columnController")],t.prototype,"columnController",void 0),Qs([b("valueService")],t.prototype,"valueService",void 0),Qs([b("downloader")],t.prototype,"downloader",void 0),Qs([b("gridSerializer")],t.prototype,"gridSerializer",void 0),Qs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qs([y],t.prototype,"postConstruct",null),Qs([_("csvCreator")],t)}(function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,i=t.data,r=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(i)),i},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),n={};return h.assign(n,t),h.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),Zs=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),i=window.URL.createObjectURL(t);n.setAttribute("href",i),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout((function(){window.URL.revokeObjectURL(i)}),0)}},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([_("downloader")],e)}(),ea=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var n=this,i="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(r){i+=n.returnAttributeIfPopulated(e.prefix+r,e.map[r],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(r){i+=n.returnAttributeIfPopulated(r,e.properties.rawMap[r],t)})));var r="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?r+">"+e.textNode+"</"+e.name+">\r\n":(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">\r\n"):r+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var i=t;return"boolean"==typeof t&&n&&(i=n(t))," "+e+'="'+i+'"'},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([_("xmlFactory")],e)}(),ta=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385
1723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],na=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,i="",r=0,o=0,s=0,a=t;s<a.length;s++){var l=this.getHeader(a[s],r),c=l.fileHeader,u=l.folderHeader,d=l.content;r+=c.length+d.length,o+=u.length,e+=c+d,i+=u}return e+i+this.buildFolderEnd(n,o,r)},e.prototype.getHeader=function(e,t){var n=e.content,i=e.path,r=e.created,o=h.decToHex,s=(0,h.utf8_encode)(i),a=s!==i,l=this.convertTime(r),c=this.convertDate(r),u="";if(a){var d=o(1,1)+o(this.getFromCrc32Table(s),4)+s;u="up"+o(d.length,2)+d}var p="\n\0"+(a?"\0\b":"\0\0")+"\0\0"+o(l,2)+o(c,2)+o(n?this.getFromCrc32Table(n):0,4)+o(n?n.length:0,4)+o(n?n.length:0,4)+o(s.length,2)+o(u.length,2);return{fileHeader:"PK\x03\x04"+p+s+u,folderHeader:"PK\x01\x02\x14\0"+p+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+o(t,4)+s+u,content:n||""}},e.prototype.buildFolderEnd=function(e,t,n){var i=h.decToHex;return"PK\x05\x06\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var n=0,i=0;i<e.length;i++)n=e.charCodeAt(i),t=t>>>8^ta[255&(t^n)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([_("zipContainer")],e)}(),ia={moduleName:t.ModuleNames.CsvExportModule,beans:[Js,Zs,ea,Ks,na]};k.register(Ls),k.register(Us),k.register(ia),t.AgAbstractField=Sn,t.AgAngleSelect=Fo,t.AgCheckbox=kn,t.AgColorPicker=Oo,t.AgDialog=po,t.AgGroupComponent=ao,t.AgInputNumberField=Io,t.AgInputRange=Mo,t.AgInputTextArea=yo,t.AgInputTextField=mo,t.AgPanel=uo,t.AgRadioButton=tr,t.AgSelect=Po,t.AgSlider=bo,t.AgToggleButton=Vo,t.AlignedGridsService=xr,t.AnimateShowChangeCellRenderer=Xe,t.AnimateSlideCellRenderer=Ze,t.AutoWidthCalculator=Mi,t.Autowired=b,t.BaseComponentWrapper=gs,t.Bean=_,t.BeanStub=re,t.BodyDropPivotTarget=ei,t.BodyDropTarget=ii,t.CellComp=dn,t.CellNavigationService=$i,t.CellPositionUtils=Wo,t.CellRendererFactory=Xi,t.ChangedPath=Yt,t.CheckboxSelectionComponent=Ge,t.ColDefUtil=z,t.Color=r,t.Column=R,t.ColumnApi=Ut,t.ColumnController=H,t.ColumnFactory=N,t.ColumnGroup=M,t.ColumnKeyCreator=f,t.ColumnUtils=B,t.Component=ae,t.ComponentUtil=ee,t.Constants=o,t.Context=m,t.CssClassApplier=vn,t.DateFilter=Re,t.DisplayedGroupCreator=W,t.DragAndDropService=Xt,t.DragService=Yi,t.Environment=Fr,t.EventService=O,t.Events=F,t.ExpressionService=Ei,t.FilterManager=ui,t.FocusedCellController=Ui,t.Grid=Zo,t.GridApi=wi,t.GridCore=Fi,t.GridOptionsWrapper=J,t.GridPanel=_i,t.GroupCellRenderer=$e,t.GroupInstanceIdCreator=j,t.HeaderContainer=oi,t.HeaderRootComp=li,t.HeaderRowComp=Qn,t.HorizontalResizeService=Pi,t.LargeTextCellEditor=dt,t.Listener=function(e){return fe.bind(this,e)},t.Logger=Ii,t.LoggerFactory=ki,t.MessageBox=ds,t.ModuleRegistry=k,t.MouseEventService=qi,t.MoveColumnController=Jn,t.NumberFilter=ft,t.NumberSequence=d,t.Optional=w,t.OriginalColumnGroup=A,t.PaginationProxy=gr,t.PinnedRowModel=zo,t.PopupComponent=ce,t.PopupEditorWrapper=sn,t.PopupSelectCellEditor=ct,t.PopupService=Ti,t.PopupTextCellEditor=at,t.PostConstruct=y,t.PreConstruct=g,t.PreDestroy=v,t.Promise=p,t.ProvidedFilter=we,t.Qualifier=E,t.QuerySelector=function(e){return pe.b
1ind(this,e)},t.RefSelector=he,t.ResizeObserverService=Zr,t.RowComp=fn,t.RowNode=He,t.RowNodeBlock=os,t.RowNodeBlockLoader=ss,t.RowNodeCache=ls,t.RowPositionUtils=Go,t.RowRenderer=yn,t.ScalerFilter=Oe,t.ScrollVisibleService=rr,t.SelectCellEditor=ot,t.SelectableService=zr,t.SelectionController=Gt,t.SetLeftFeature=bn,t.SimpleFilter=xe,t.SortController=Gi,t.StandardMenuFactory=Vi,t.StylingService=sr,t.TabbedLayout=is,t.TemplateService=Di,t.TextCellEditor=de,t.TextFilter=It,t.TooltipManager=to,t.TouchListener=Me,t.UserComponentFactory=ze,t.UserComponentRegistry=Ht,t.Utils=u,t.ValueCache=wr,t.ValueFormatterService=Zi,t.ValueService=hi,t.VanillaFrameworkOverrides=nr,t.VirtualList=ms,t._=h,t.defaultGroupComparator=function(e,t,n,i,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var o=h.exists(n)&&n.group,s=h.exists(i)&&i.group,a=!o&&!s;return o&&s?h.defaultComparator(n.key,i.key,r):a?h.defaultComparator(e,t,r):o?1:-1},t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",es],scope:!0}}))},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!ns){ns=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);ee.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&ee.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=ee.copyAttributesToGridOptions(e,this),this._agGrid=new Zo(this,this._gridOptions,{globalEventListener:t}),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++)this.setPropertyFromAttribute(this.attributes[e])},t.setPropertyFromAttribute=function(e){var t,n="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,i=e.nodeValue;ee.ALL_PROPERTIES.indexOf(n)>=0&&(this[n]=i)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){this.setPropertyFromAttribute(this.attributes[e])},t.globalEventListener=function(e,t){var n=e.toLowerCase(),i=new Event(n);i.agGridDetails=t,this.dispatchEvent(i);var r="on"+n;"function"==typeof this[r]&&this[r](i)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=function(e){return new p((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var e=JSON.parse(n.responseText);t(e)}}}))}},fXoL:function(e,t,n){"use strict";n.r(t),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",(function(){return ba})),n.d(t,"APP_BOOTSTRAP_LISTENER",(function(){return jg})),n.d(t,"APP_ID",(function(){return Mg})),n.d(t,"APP_INITIALIZER",(function(){return Ig})),n.d(t,"ApplicationInitStatus",(function(){return Rg})),n.d(t,"ApplicationModule",(function(){return wv})),n.d(t,"ApplicationRef",(function(){return Ly})),n.d(t,"Attribute",(function(){return b})),n.d(t,"COMPILER_OPTIONS",(function(){return ry})),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",(function(){return Nn})),n.d(t,"ChangeDetectionStrategy",(function(){return ke})),n.d(t,"ChangeDetectorRef",(function(){return ps})),n.d(t,"Compiler",(function(){return iy})),n.d(t,"CompilerFactory",(function(){return oy})),n.d(t,"Component",(function(){return mg})),n.d(t,"ComponentFactory",(function(){return Ju})),n.d(t,"ComponentFactoryResolver",(function(){return nd})),n.d(t,"ComponentRef",(function(){return Xu})),n.d(t,"ContentChild",(function(){return Ea})),n.d(t,"ContentChildren",(function(){return Ca})),n.d(t,"DEFAULT_CURRENCY_CODE",(function(){return Bg})),n.d(t,"DebugElement",(function(){return pv})),n.d(t,"DebugEventListener",(function(){return Ky})),n.d(t,"DebugNode",(function(){return hv})),n.d(t,"DefaultIterableDiffer",(function(){return vd})),n.d(t,"Directive",(function(){return fg})),n.d(t,"ElementRef",(function(){return od})),n.d(t,"EmbeddedViewRef",(function(){return qy})),n.d(t,"ErrorHandler",(function(){return Ln})),n.d(t,"EventEmitter",(function(){return dm})),n.d(t,"Host",(function(){return _})),n.d(t,"HostBinding",(function(){return _g})),n.d(t,"HostListener",(function(){return bg})),n.d(t,"INJECTOR",(function(){return ne})),n.d(t,"Inject",(function(){return m})),n.d(t,"InjectFlags",(function(){return w})),n.d(t,"Injectable",(function(){return As})),n.d(t,"InjectionToken",(function(){return te})),n.d(t,"Injector",(function(){return Xs})),n.d(t,"Input",(function(){return yg})),n.d(t,"IterableDiffers",(function(){return xd})),n.d(t,"KeyValueDiffers",(function(){return Td})),n.d(t,"LOCALE_ID",(function(){return Yg})),n.d(t,"MissingTranslationStrategy",(function(){return Ug})),n.d(t,"ModuleWithComponentFactories",(function(){return Kg}
1)),n.d(t,"NO_ERRORS_SCHEMA",(function(){return Fn})),n.d(t,"NgModule",(function(){return Tg})),n.d(t,"NgModuleFactory",(function(){return _e})),n.d(t,"NgModuleFactoryLoader",(function(){return Fy})),n.d(t,"NgModuleRef",(function(){return ve})),n.d(t,"NgProbeToken",(function(){return Ty})),n.d(t,"NgZone",(function(){return ly})),n.d(t,"Optional",(function(){return g})),n.d(t,"Output",(function(){return vg})),n.d(t,"PACKAGE_ROOT_URL",(function(){return Vg})),n.d(t,"PLATFORM_ID",(function(){return Fg})),n.d(t,"PLATFORM_INITIALIZER",(function(){return Ng})),n.d(t,"Pipe",(function(){return gg})),n.d(t,"PlatformRef",(function(){return Ay})),n.d(t,"Query",(function(){return wa})),n.d(t,"QueryList",(function(){return pm})),n.d(t,"ReflectiveInjector",(function(){return va})),n.d(t,"ReflectiveKey",(function(){return na})),n.d(t,"Renderer2",(function(){return ud})),n.d(t,"RendererFactory2",(function(){return ld})),n.d(t,"RendererStyleFlags2",(function(){return cd})),n.d(t,"ResolvedReflectiveFactory",(function(){return ua})),n.d(t,"Sanitizer",(function(){return pd})),n.d(t,"SecurityContext",(function(){return Di})),n.d(t,"Self",(function(){return y})),n.d(t,"SimpleChange",(function(){return Vu})),n.d(t,"SkipSelf",(function(){return v})),n.d(t,"SystemJsNgModuleLoader",(function(){return Wy})),n.d(t,"SystemJsNgModuleLoaderConfig",(function(){return By})),n.d(t,"TRANSLATIONS",(function(){return Gg})),n.d(t,"TRANSLATIONS_FORMAT",(function(){return Wg})),n.d(t,"TemplateRef",(function(){return Rd})),n.d(t,"Testability",(function(){return gy})),n.d(t,"TestabilityRegistry",(function(){return yy})),n.d(t,"Type",(function(){return gs})),n.d(t,"VERSION",(function(){return md})),n.d(t,"Version",(function(){return fd})),n.d(t,"ViewChild",(function(){return Da})),n.d(t,"ViewChildren",(function(){return Sa})),n.d(t,"ViewContainerRef",(function(){return Pd})),n.d(t,"ViewEncapsulation",(function(){return Me})),n.d(t,"ViewRef",(function(){return zy})),n.d(t,"WrappedValue",(function(){return Fa})),n.d(t,"asNativeElements",(function(){return Xy})),n.d(t,"assertPlatform",(function(){return Iy})),n.d(t,"createPlatform",(function(){return Oy})),n.d(t,"createPlatformFactory",(function(){return ky})),n.d(t,"defineInjectable",(function(){return D})),n.d(t,"destroyPlatform",(function(){return Ry})),n.d(t,"enableProdMode",(function(){return ti})),n.d(t,"forwardRef",(function(){return j})),n.d(t,"getDebugNode",(function(){return lv})),n.d(t,"getModuleFactory",(function(){return Hy})),n.d(t,"getPlatform",(function(){return My})),n.d(t,"inject",(function(){return pe})),n.d(t,"isDevMode",(function(){return ei})),n.d(t,"platformCore",(function(){return fv})),n.d(t,"resolveForwardRef",(function(){return V})),n.d(t,"setTestabilityGetter",(function(){return _y})),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",(function(){return xy})),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",(function(){return Pg})),n.d(t,"\u0275ChangeDetectorStatus",(function(){return Ie})),n.d(t,"\u0275CodegenComponentFactoryResolver",(function(){return id})),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",(function(){return ty})),n.d(t,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",(function(){return Zg})),n.d(t,"\u0275Compiler_compileModuleAsync__POST_R3__",(function(){return Xg})),n.d(t,"\u0275Compiler_compileModuleSync__POST_R3__",(function(){return $g})),n.d(t,"\u0275ComponentFactory",(function(){return Ju})),n.d(t,"\u0275Console",(function(){return Hg})),n.d(t,"\u0275DEFAULT_LOCALE_ID",(function(){return Bp})),n.d(t,"\u0275EMPTY_ARRAY",(function(){return kh})),n.d(t,"\u0275EMPTY_MAP",(function(){return Ih})),n.d(t,"\u0275INJECTOR_IMPL__POST_R3__",(function(){return $s})),n.d(t,"\u0275INJECTOR_SCOPE",(function(){return Ns})),n.d(t,"\u0275LifecycleHooksFeature",(function(){return Ou})),n.d(t,"\u0275LocaleDataIndex",(function(){return Yp})),n.d(t,"\u0275NG_COMP_DEF",(function(){return K})),n.d(t,"\u0275NG_DIR_DEF",(function(){return $})),n.d(t,"\u0275NG_ELEMENT_ID",(function(){return ee})),n.d(t,"\u0275NG_INJ_DEF",(function(){return R})),n.d(t,"\u0275NG_MOD_DEF",(function(){return X})),n.d(t,"\u0275NG_PIPE_DEF",(function(){return Q})),n.d(t,"\u0275NG_PROV_DEF",(function(){return I})),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",(function(){return wp}
1)),n.d(t,"\u0275NO_CHANGE",(function(){return wr})),n.d(t,"\u0275NgModuleFactory",(function(){return Hf})),n.d(t,"\u0275NoopNgZone",(function(){return my})),n.d(t,"\u0275ReflectionCapabilities",(function(){return Cs})),n.d(t,"\u0275Render3ComponentFactory",(function(){return Ip})),n.d(t,"\u0275Render3ComponentRef",(function(){return Rp})),n.d(t,"\u0275Render3NgModuleRef",(function(){return Vf})),n.d(t,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",(function(){return fs})),n.d(t,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",(function(){return wg})),n.d(t,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",(function(){return Cg})),n.d(t,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",(function(){return Ps})),n.d(t,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",(function(){return Og})),n.d(t,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",(function(){return Eg})),n.d(t,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",(function(){return sd})),n.d(t,"\u0275SWITCH_IVY_ENABLED__POST_R3__",(function(){return zg})),n.d(t,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",(function(){return dd})),n.d(t,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",(function(){return Md})),n.d(t,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",(function(){return Ld})),n.d(t,"\u0275_sanitizeHtml",(function(){return Ei})),n.d(t,"\u0275_sanitizeStyle",(function(){return Oi})),n.d(t,"\u0275_sanitizeUrl",(function(){return oi})),n.d(t,"\u0275allowSanitizationBypassAndThrow",(function(){return Un})),n.d(t,"\u0275and",(function(){return Cv})),n.d(t,"\u0275angular_packages_core_core_a",(function(){return H})),n.d(t,"\u0275angular_packages_core_core_b",(function(){return ue})),n.d(t,"\u0275angular_packages_core_core_ba",(function(){return ct})),n.d(t,"\u0275angular_packages_core_core_bb",(function(){return ht})),n.d(t,"\u0275angular_packages_core_core_bc",(function(){return vt})),n.d(t,"\u0275angular_packages_core_core_bd",(function(){return Mt})),n.d(t,"\u0275angular_packages_core_core_bf",(function(){return Jf})),n.d(t,"\u0275angular_packages_core_core_bg",(function(){return Zf})),n.d(t,"\u0275angular_packages_core_core_bh",(function(){return em})),n.d(t,"\u0275angular_packages_core_core_bi",(function(){return tm})),n.d(t,"\u0275angular_packages_core_core_bj",(function(){return nm})),n.d(t,"\u0275angular_packages_core_core_bk",(function(){return Pi})),n.d(t,"\u0275angular_packages_core_core_bl",(function(){return p})),n.d(t,"\u0275angular_packages_core_core_bm",(function(){return f})),n.d(t,"\u0275angular_packages_core_core_bn",(function(){return C})),n.d(t,"\u0275angular_packages_core_core_bp",(function(){return Ae})),n.d(t,"\u0275angular_packages_core_core_bq",(function(){return Er})),n.d(t,"\u0275angular_packages_core_core_c",(function(){return ge})),n.d(t,"\u0275angular_packages_core_core_d",(function(){return _a})),n.d(t,"\u0275angular_packages_core_core_e",(function(){return aa})),n.d(t,"\u0275angular_packages_core_core_f",(function(){return pa})),n.d(t,"\u0275angular_packages_core_core_g",(function(){return Ag})),n.d(t,"\u0275angular_packages_core_core_h",(function(){return cs})),n.d(t,"\u0275angular_packages_core_core_i",(function(){return us})),n.d(t,"\u0275angular_packages_core_core_j",(function(){return jy})),n.d(t,"\u0275angular_packages_core_core_k",(function(){return $y})),n.d(t,"\u0275angular_packages_core_core_l",(function(){return Qy})),n.d(t,"\u0275angular_packages_core_core_m",(function(){return cv})),n.d(t,"\u0275angular_packages_core_core_n",(function(){return gd})),n.d(t,"\u0275angular_packages_core_core_o",(function(){return Ed})),n.d(t,"\u0275angular_packages_core_core_p",(function(){return mv})),n.d(t,"\u0275angular_packages_core_core_q",(function(){return gv})),n.d(t,"\u0275angular_packages_core_core_r",(function(){return yv})),n.d(t,"\u0275angular_packages_core_core_s",(function(){return _v})),n.d(t,"\u0275angular_packages_core_core_t",(function(){return bv})),n.d(t,"\u0275angular_packages_core_core_u",(function(){return Gp})),n.d(t,"\u0275angular_packages_core_core_v",(function(){return fp})),n.d(t,"\u0275angular_packages_core_core_w",(function(){return qd})),n.d(t,"\u0275angular_packages_core_core_x",(function(){return kp})),n.d(t,"\u0275angular_packages_core_core_y",(function(){return wn})),n.d(t,"\u0275angular_packages_core_core_z",(function(){return ot})),n.d(t,"\u0275bypassSanitizationTrustHtml",(function(){return qn})),n.d(t,"\u0275bypassSanitizationTrustResourceUrl",(function(){return Xn})),n.d(t,"\u0275bypassSanitizationTrustScript",(function(){return $n})),n.d(t,"\u0275bypassSanitizationTrustStyle",(function(){return Kn})),n.d(t,"\u0275bypassSanitizationTrustUrl",(function(){return Qn})),n.d(t,"\u0275ccf",(function(){return Gh})),n.d(t,"\u0275clearOverrides",(function(){return Q_})),n.d(t,"\u0275clearResolutionOfComponentResourcesQueue",(function(){return Ia})),n.d(t,"\u0275cmf",(function(){return X_})),n.d(t,"\u0275compileComponent",(function(){return Xm})),n.d(t,"\u0275compileDirective",(function(){return Jm})),n.d(t,"\u0275compileNgModule",(function(){return Ym})),n.d(t,"\u0275compileNgModuleDefs",(function(){return Bm}
1)),n.d(t,"\u0275compileNgModuleFactory__POST_R3__",(function(){return Ey})),n.d(t,"\u0275compilePipe",(function(){return hg})),n.d(t,"\u0275createInjector",(function(){return Bs})),n.d(t,"\u0275crt",(function(){return Zd})),n.d(t,"\u0275defaultIterableDiffers",(function(){return kd})),n.d(t,"\u0275defaultKeyValueDiffers",(function(){return Id})),n.d(t,"\u0275detectChanges",(function(){return dl})),n.d(t,"\u0275devModeEqual",(function(){return Na})),n.d(t,"\u0275did",(function(){return dp})),n.d(t,"\u0275eld",(function(){return Ev})),n.d(t,"\u0275findLocaleData",(function(){return Np})),n.d(t,"\u0275flushModuleScopingQueueAsMuchAsPossible",(function(){return Vm})),n.d(t,"\u0275getComponentViewDefinitionFactory",(function(){return Wh})),n.d(t,"\u0275getDebugNodeR2",(function(){return uv})),n.d(t,"\u0275getDebugNode__POST_R3__",(function(){return av})),n.d(t,"\u0275getDirectives",(function(){return fu})),n.d(t,"\u0275getHostElement",(function(){return gu})),n.d(t,"\u0275getInjectableDef",(function(){return T})),n.d(t,"\u0275getLContext",(function(){return tr})),n.d(t,"\u0275getLocaleCurrencyCode",(function(){return Fp})),n.d(t,"\u0275getLocalePluralCase",(function(){return jp})),n.d(t,"\u0275getModuleFactory__POST_R3__",(function(){return Vy})),n.d(t,"\u0275getSanitizationBypassType",(function(){return zn})),n.d(t,"\u0275global",(function(){return U})),n.d(t,"\u0275initServicesIfNeeded",(function(){return d_})),n.d(t,"\u0275inlineInterpolate",(function(){return Th})),n.d(t,"\u0275interpolate",(function(){return xh})),n.d(t,"\u0275isBoundToModule__POST_R3__",(function(){return Dy})),n.d(t,"\u0275isDefaultChangeDetectionStrategy",(function(){return Re})),n.d(t,"\u0275isListLikeIterable",(function(){return ja})),n.d(t,"\u0275isObservable",(function(){return Pl})),n.d(t,"\u0275isPromise",(function(){return Al})),n.d(t,"\u0275ivyEnabled",(function(){return qg})),n.d(t,"\u0275looseIdentical",(function(){return La})),n.d(t,"\u0275makeDecorator",(function(){return d})),n.d(t,"\u0275markDirty",(function(){return hl})),n.d(t,"\u0275mod",(function(){return Nh})),n.d(t,"\u0275mpd",(function(){return Lh})),n.d(t,"\u0275ncd",(function(){return Av})),n.d(t,"\u0275nov",(function(){return tp})),n.d(t,"\u0275overrideComponentView",(function(){return $_})),n.d(t,"\u0275overrideProvider",(function(){return K_})),n.d(t,"\u0275pad",(function(){return Nv})),n.d(t,"\u0275patchComponentDefWithScope",(function(){return qm})),n.d(t,"\u0275pid",(function(){return hp})),n.d(t,"\u0275pod",(function(){return Fv})),n.d(t,"\u0275ppd",(function(){return Lv})),n.d(t,"\u0275prd",(function(){return pp})),n.d(t,"\u0275publishDefaultGlobalUtils",(function(){return Cu})),n.d(t,"\u0275publishGlobalUtil",(function(){return Eu})),n.d(t,"\u0275qud",(function(){return Ov})),n.d(t,"\u0275registerLocaleData",(function(){return Lp})),n.d(t,"\u0275registerModuleFactory",(function(){return Pf})),n.d(t,"\u0275registerNgModuleType",(function(){return Nf})),n.d(t,"\u0275renderComponent",(function(){return Su})),n.d(t,"\u0275resetCompiledComponents",(function(){return Um})),n.d(t,"\u0275resolveComponentResources",(function(){return xa})),n.d(t,"\u0275setClassMetadata",(function(){return Yf})),n.d(t,"\u0275setCurrentInjector",(function(){return le})),n.d(t,"\u0275setDocument",(function(){return zt})),n.d(t,"\u0275setLocaleId",(function(){return Mf})),n.d(t,"\u0275store",(function(){return yl})),n.d(t,"\u0275stringify",(function(){return L})),n.d(t,"\u0275ted",(function(){return Vv})),n.d(t,"\u0275transitiveScopesFor",(function(){return Km})),n.d(t,"\u0275unregisterLocaleData",(function(){return Hp})),n.d(t,"\u0275unv",(function(){return Jd})),n.d(t,"\u0275unwrapSafeValue",(function(){return Wn})),n.d(t,"\u0275vid",(function(){return Bv})),n.d(t,"\u0275whenRendered",(function(){return ku})),n.d(t,"\u0275\u0275CopyDefinitionFeature",(function(){return ju})),n.d(t,"\u0275\u0275InheritDefinitionFeature",(function(){return Ru})),n.d(t,"\u0275\u0275NgOnChangesFeature",(function(){return Hu})),n.d(t,"\u0275\u0275ProvidersFeature",(function(){return Qu})),n.d(t,"\u0275\u0275advance",(function(){return Sr})),n.d(t,"\u0275\u0275attribute",(function(){return za})),n.d(t,"\u0275\u0275attributeInterpolate1",(function(){return nl})),n.d(t,"\u0275\u0275attributeInterpolate2",(function(){return il})),n.d(t,"\u0275\u0275attributeInterpolate3",(function(){return rl})),n.d(t,"\u0275\u0275attributeInterpolate4",(function(){return ol})),n.d(t,"\u0275\u0275attributeInterpolate5",(function(){return sl})),n.d(t,"\u0275\u0275attributeInterpolate6",(function(){return al})),n.d(t,"\u0275\u0275attributeInterpolate7",(function(){return ll})),n.d(t,"\u0275\u0275attributeInterpolate8",(function(){return cl})),n.d(t,"\u0275\u0275attributeInterpolateV",(function(){return ul})),n.d(t,"\u0275\u0275classMap",(function(){return _c})),n.d(t,"\u0275\u0275classMapInterpolate1",(function(){return Gc})),n.d(t,"\u0275\u0275classMapInterpolate2",(function(){return Wc})),n.d(t,"\u0275\u0275classMapInterpolate3",(function(){return Uc})),n.d(t,"\u0275\u0275classMapInterpolate4",(function(){return zc})),n.d(t,"\u0275\u0275classMapInterpolate5",(function(){return qc})),n.d(t,"\u0275\u0275classMapInterpolate6",(function(){return Kc})),n.d(t,"\u0275\u0275classMapInterpolate7",(function(){return $c})),n.d(t,"\u0275\u0275classMapInterpolate8",(function(){return Qc})),n.d(t,"\u0275\u0275classMapInterpolateV",(function(){return Xc})),n.d(t,"\u0275\u0275classProp",(function(){return gc})),n.d(t,"\u0275\u0275componentHostSyntheticListener",(function(){return Nl})),n.d(t,"\u0275\u0275container",(function(){return pl})),n.d(t,"\u0275\u0275containerRefreshEnd",(function(){return gl})),n.d(t,"\u0275\u0275containerRefreshStart",(function(){return ml})),n.d(t,"\u0275\u0275contentQuery",(function(){return xm})),n.d(t,"\u0275\u0275defaultStyleSanitizer",(function(){return Ni})),n.d(t,"\u0275\u0275defineComponent",(function(){return Fe})),n.d(t,"\u0275\u0275defineDirective",(function(){return Ue})),n.d(t,"\u0275\u0275defineInjectable",(function(){return S})),n.d(t,"\u0275\u0275defineInjector",(function(){return x})),n.d(t,"\u0275\u0275defineNgModule",(function(){return Be})),n.d(t,"\u0275\u0275definePipe",(function(){return ze})),n.d(t,"\u0275\u0275directiveInject",(function(){return _l})),n.d(t,"\u0275\u0275disableBindings",(function(){return lt})),n.d(t,"\u0275\u0275element",(function(){return xl})),n.d(t,"\u0275\u0275elementContainer",(function(){return kl})),n.d(t,"\u0275\u0275elementContainerEnd",(function(){return Ol})),n.d(t,"\u0275\u0275elementContainerStart",(function(){return Tl})),n.d(t,"\u0275\u0275elementEnd",(function(){return Dl})),n.d(t,"\u0275\u0275elementStart",(function(){return Sl})),n.d(t,"\u0275\u0275embeddedViewEnd",(function(){return Rl})),n.d(t,"\u0275\u0275embeddedViewStart",(function(){return Il})),n.d(t,"\u0275\u0275enableBindings",(function(){return at})),n.d(t,"\u0275\u0275getCurrentView",(function(){return Ml})),n.d(t,"\u0275\u0275getFactoryOf",(function(){return In}
1)),n.d(t,"\u0275\u0275getInheritedFactory",(function(){return Rn})),n.d(t,"\u0275\u0275hostProperty",(function(){return au})),n.d(t,"\u0275\u0275i18n",(function(){return bf})),n.d(t,"\u0275\u0275i18nApply",(function(){return Df})),n.d(t,"\u0275\u0275i18nAttributes",(function(){return wf})),n.d(t,"\u0275\u0275i18nEnd",(function(){return gf})),n.d(t,"\u0275\u0275i18nExp",(function(){return Sf})),n.d(t,"\u0275\u0275i18nPostprocess",(function(){return mf})),n.d(t,"\u0275\u0275i18nStart",(function(){return hf})),n.d(t,"\u0275\u0275inject",(function(){return de})),n.d(t,"\u0275\u0275injectAttribute",(function(){return bl})),n.d(t,"\u0275\u0275injectPipeChangeDetectorRef",(function(){return Pm})),n.d(t,"\u0275\u0275invalidFactory",(function(){return wl})),n.d(t,"\u0275\u0275invalidFactoryDep",(function(){return he})),n.d(t,"\u0275\u0275listener",(function(){return Ll})),n.d(t,"\u0275\u0275loadQuery",(function(){return km})),n.d(t,"\u0275\u0275namespaceHTML",(function(){return Ft})),n.d(t,"\u0275\u0275namespaceMathML",(function(){return Nt})),n.d(t,"\u0275\u0275namespaceSVG",(function(){return Lt})),n.d(t,"\u0275\u0275nextContext",(function(){return Hl})),n.d(t,"\u0275\u0275pipe",(function(){return im})),n.d(t,"\u0275\u0275pipeBind1",(function(){return rm})),n.d(t,"\u0275\u0275pipeBind2",(function(){return om})),n.d(t,"\u0275\u0275pipeBind3",(function(){return sm})),n.d(t,"\u0275\u0275pipeBind4",(function(){return am})),n.d(t,"\u0275\u0275pipeBindV",(function(){return lm})),n.d(t,"\u0275\u0275projection",(function(){return Ul})),n.d(t,"\u0275\u0275projectionDef",(function(){return Bl})),n.d(t,"\u0275\u0275property",(function(){return Cl})),n.d(t,"\u0275\u0275propertyInterpolate",(function(){return zl})),n.d(t,"\u0275\u0275propertyInterpolate1",(function(){return ql})),n.d(t,"\u0275\u0275propertyInterpolate2",(function(){return Kl})),n.d(t,"\u0275\u0275propertyInterpolate3",(function(){return $l})),n.d(t,"\u0275\u0275propertyInterpolate4",(function(){return Ql})),n.d(t,"\u0275\u0275propertyInterpolate5",(function(){return Xl})),n.d(t,"\u0275\u0275propertyInterpolate6",(function(){return Jl})),n.d(t,"\u0275\u0275propertyInterpolate7",(function(){return Zl})),n.d(t,"\u0275\u0275propertyInterpolate8",(function(){return ec})),n.d(t,"\u0275\u0275propertyInterpolateV",(function(){return tc})),n.d(t,"\u0275\u0275pureFunction0",(function(){return Bf})),n.d(t,"\u0275\u0275pureFunction1",(function(){return Gf})),n.d(t,"\u0275\u0275pureFunction2",(function(){return Wf})),n.d(t,"\u0275\u0275pureFunction3",(function(){return Uf})),n.d(t,"\u0275\u0275pureFunction4",(function(){return zf})),n.d(t,"\u0275\u0275pureFunction5",(function(){return qf})),n.d(t,"\u0275\u0275pureFunction6",(function(){return Kf})),n.d(t,"\u0275\u0275pureFunction7",(function(){return $f})),n.d(t,"\u0275\u0275pureFunction8",(function(){return Qf})),n.d(t,"\u0275\u0275pureFunctionV",(function(){return Xf})),n.d(t,"\u0275\u0275queryRefresh",(function(){return Cm})),n.d(t,"\u0275\u0275reference",(function(){return vl})),n.d(t,"\u0275\u0275resolveBody",(function(){return dn})),n.d(t,"\u0275\u0275resolveDocument",(function(){return un})),n.d(t,"\u0275\u0275resolveWindow",(function(){return cn})),n.d(t,"\u0275\u0275restoreView",(function(){return dt})),n.d(t,"\u0275\u0275sanitizeHtml",(function(){return ki})),n.d(t,"\u0275\u0275sanitizeResourceUrl",(function(){return Mi})),n.d(t,"\u0275\u0275sanitizeScript",(function(){return Ai})),n.d(t,"\u0275\u0275sanitizeStyle",(function(){return Ii})),n.d(t,"\u0275\u0275sanitizeUrl",(function(){return Ri})),n.d(t,"\u0275\u0275sanitizeUrlOrResourceUrl",(function(){return Li})),n.d(t,"\u0275\u0275select",(function(){return Dr})),n.d(t,"\u0275\u0275setComponentScope",(function(){return je})),n.d(t,"\u0275\u0275setNgModuleScope",(function(){return Ge})),n.d(t,"\u0275\u0275staticContentQuery",(function(){return Tm})),n.d(t,"\u0275\u0275staticViewQuery",(function(){return Em})),n.d(t,"\u0275\u0275styleMap",(function(){return yc})),n.d(t,"\u0275\u0275styleProp",(function(){return mc})),n.d(t,"\u0275\u0275stylePropInterpolate1",(function(){return Jc})),n.d(t,"\u0275\u0275stylePropInterpolate2",(function(){return Zc})),n.d(t,"\u0275\u0275stylePropInterpolate3",(function(){return eu})),n.d(t,"\u0275\u0275stylePropInterpolate4",(function(){return tu})),n.d(t,"\u0275\u0275stylePropInterpolate5",(function(){return nu})),n.d(t,"\u0275\u0275stylePropInterpolate6",(function(){return iu})),n.d(t,"\u0275\u0275stylePropInterpolate7",(function(){return ru})),n.d(t,"\u0275\u0275stylePropInterpolate8",(function(){return ou})),n.d(t,"\u0275\u0275stylePropInterpolateV",(function(){return su})),n.d(t,"\u0275\u0275styleSanitizer",(function(){return fc})),n.d(t,"\u0275\u0275template",(function(){return fl})),n.d(t,"\u0275\u0275templateRefExtractor",(function(){return Am})),n.d(t,"\u0275\u0275text",(function(){return Mc})),n.d(t,"\u0275\u0275textInterpolate",(function(){return Ac}
1)),n.d(t,"\u0275\u0275textInterpolate1",(function(){return Pc})),n.d(t,"\u0275\u0275textInterpolate2",(function(){return Lc})),n.d(t,"\u0275\u0275textInterpolate3",(function(){return Nc})),n.d(t,"\u0275\u0275textInterpolate4",(function(){return Fc})),n.d(t,"\u0275\u0275textInterpolate5",(function(){return jc})),n.d(t,"\u0275\u0275textInterpolate6",(function(){return Vc})),n.d(t,"\u0275\u0275textInterpolate7",(function(){return Hc})),n.d(t,"\u0275\u0275textInterpolate8",(function(){return Yc})),n.d(t,"\u0275\u0275textInterpolateV",(function(){return Bc})),n.d(t,"\u0275\u0275updateSyntheticHostBinding",(function(){return lu})),n.d(t,"\u0275\u0275viewQuery",(function(){return Sm}));var i=n("XNiG"),r=n("quSY"),o=n("HDdC"),s=n("VRyK"),a=n("w1tV");const l="__annotations__",c="__parameters__",u="__prop__metadata__";function d(e,t,n,i,r){const o=h(t);function s(...e){if(this instanceof s)return o.call(this,...e),this;const t=new s(...e);return function(n){return r&&r(n,...e),(n.hasOwnProperty(l)?n[l]:Object.defineProperty(n,l,{value:[]})[l]).push(t),i&&i(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}function h(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function p(e,t,n){const i=h(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty(c)?e[c]:Object.defineProperty(e,c,{value:[]})[c];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}function f(e,t,n,i){const r=h(t);function o(...e){if(this instanceof o)return r.apply(this,e),this;const t=new o(...e);return function(n,r){const o=n.constructor,s=o.hasOwnProperty(u)?o[u]:Object.defineProperty(o,u,{value:{}})[u];s[r]=s.hasOwnProperty(r)&&s[r]||[],s[r].unshift(t),i&&i(n,r,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}const m=p("Inject",e=>({token:e})),g=p("Optional"),y=p("Self"),v=p("SkipSelf"),_=p("Host"),b=p("Attribute",e=>({attributeName:e}));var w=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function C(e){for(let t in e)if(e[t]===C)return t;throw Error("Could not find renamed property on target object.")}function E(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const D=S;function x(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function T(e){return O(e,e[I])||O(e,e[A])}function O(e,t){return t&&t.token===e?t:null}function k(e){return e&&(e.hasOwnProperty(R)||e.hasOwnProperty(P))?e[R]:null}const I=C({"\u0275prov":C}),R=C({"\u0275inj":C}),M=C({"\u0275provFallback":C}),A=C({ngInjectableDef:C}),P=C({ngInjectorDef:C});function L(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(L).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function N(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const F=C({__forward_ref__:C});function j(e){return e.__forward_ref__=j,e.toString=function(){return L(this())},e}function V(e){return H(e)?e():e}function H(e){return"function"==typeof e&&e.hasOwnProperty(F)&&e.__forward_ref__===j}const Y="undefined"!=typeof globalThis&&globalThis,B="undefined"!=typeof window&&window,G="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W="undefined"!=typeof global&&global,U=Y||W||B||G;var z=function(e){return e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid",e}({});function q(){const e=U.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}const K=C({"\u0275cmp":C}),$=C({"\u0275dir":C}),Q=C({"\u0275pipe":C}),X=C({"\u0275mod":C}),J=C({"\u0275loc":C}),Z=C({"\u0275fac":C}),ee=C({__NG_ELEMENT_ID__:C});class te{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ne=new te("INJECTOR",-1),ie={},re=/\n/gm,oe=C({provide:String,useValue:C});let se,ae=void 0;function le(e){const t=ae;return ae=e,t}function ce(e){const t=se;return se=e,t}function ue(e,t=w.Default){if(void 0===ae)throw new Error("inject() must be called from an injection context");return null===ae?fe(e,void 0,t):ae.get(e,t&w.Optional?null:void 0,t)}function de(e,t=w.Default){return(se||ue)(V(e),t)}function he(e){throw new Error("invalid")}const pe=de;function fe(e,t,n){const i=T(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&w.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${L(e)}]`)}function me(e){const t=[];for(let n=0;n<e.length;n++){const i=V(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=w.Default;for(let t=0;t<i.length;t++){const r=i[t];r instanceof g||"Optional"===r.ngMetadataName||r===g?n|=w.Optional:r instanceof v||"SkipSelf"===r.ngMetadataName||r===v?n|=w.SkipSelf:r instanceof y||"Self"===r.ngMetadataName||r===y?n|=w.Self:e=r instanceof m||r===m?r.token:r}t.push(de(e,n))}else t.push(de(i))}return t}class ge{get(e,t=ie){if(t===ie){const t=new Error(`NullInjectorError: No provider for ${L(e)}!`);throw t.name="NullInjectorError",t}return t}}const ye={"\u0275\u0275defineInjectable":S,"\u0275\u0275defineInjector":x,"\u0275\u0275inject":de,"\u0275\u0275getFactoryOf":function e(t){const n=t;if(H(t))return()=>{const t=e(V(n));return t?t():null};const i=T(n)||k(n);return i&&void 0!==i.factory?i.factory:null},"\u0275\u0275invalidFactoryDep":he};class ve{}class _e{}function be(e,t){for(let n=0;n<e.length;n++)t.push(e[n])}function we(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),we(i,t)):t!==e&&t.push(i)}return t}
1function Ce(e,t){e.forEach(e=>Array.isArray(e)?Ce(e,t):t(e))}function Ee(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Se(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function De(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function xe(e,t,n){let i=Oe(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Te(e,t){const n=Oe(e,t);if(n>=0)return e[1|n]}function Oe(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),o=e[n<<1];if(t===o)return n<<1;o>t?r=n:i=n+1}return~(r<<1)}(e,t)}const ke=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Ie=function(){var e={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};return e[e.CheckOnce]="CheckOnce",e[e.Checked]="Checked",e[e.CheckAlways]="CheckAlways",e[e.Detached]="Detached",e[e.Errored]="Errored",e[e.Destroyed]="Destroyed",e}();function Re(e){return null==e||e===ke.Default}const Me=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}();function Ae(e){return""+{toString:e}}const Pe={},Le=[];let Ne=0;function Fe(e){const t=e.type,n=t.prototype,i={},r={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ke.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Me.Emulated,id:"c",styles:e.styles||Le,_:null,setInput:null,schemas:e.schemas||null,tView:null};return r._=Ae(()=>{const t=e.directives,n=e.features,o=e.pipes;r.id+=Ne++,r.inputs=We(e.inputs,i),r.outputs=We(e.outputs),n&&n.forEach(e=>e(r)),r.directiveDefs=t?()=>("function"==typeof t?t():t).map(Ve):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(He):null}),r}function je(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Ve),i.pipeDefs=()=>n.map(He)}function Ve(e){return qe(e)||Ke(e)}function He(e){return $e(e)}const Ye={};function Be(e){const t={type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ae(()=>{Ye[e.id]=e.type}),t}function Ge(e,t){return Ae(()=>{const n=Xe(e,!0);n.declarations=t.declarations||Le,n.imports=t.imports||Le,n.exports=t.exports||Le})}function We(e,t){if(null==e)return Pe;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}const Ue=Fe;function ze(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function qe(e){return e[K]||null}function Ke(e){return e[$]||null}function $e(e){return e[Q]||null}function Qe(e,t){return e.hasOwnProperty(Z)?e[Z]:null}function Xe(e,t){const n=e[X]||null;if(!n&&!0===t)throw new Error(`Type ${L(e)} does not have '\u0275mod' property.`);return n}function Je(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ze(e){return Array.isArray(e)&&!0===e[1]}function et(e){return 0!=(8&e.flags)}function tt(e){return 2==(2&e.flags)}function nt(e){return 1==(1&e.flags)}function it(e){return null!==e.template}function rt(e){return 0!=(512&e[2])}const ot={lFrame:It(null),bindingsEnabled:!0,checkNoChangesMode:!1};function st(){return ot.bindingsEnabled}function at(){ot.bindingsEnabled=!0}function lt(){ot.bindingsEnabled=!1}function ct(){return ot.lFrame.lView}function ut(){return ot.lFrame.tView}function dt(e){ot.lFrame.contextLView=e}function ht(){return ot.lFrame.previousOrParentTNode}function pt(e,t){ot.lFrame.previousOrParentTNode=e,ot.lFrame.isParent=t}function ft(){return ot.lFrame.isParent}function mt(){ot.lFrame.isParent=!1}
1function gt(){return ot.checkNoChangesMode}function yt(e){ot.checkNoChangesMode=e}function vt(){const e=ot.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _t(){return ot.lFrame.bindingIndex}function bt(e){return ot.lFrame.bindingIndex=e}function wt(){return ot.lFrame.bindingIndex++}function Ct(e){const t=ot.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Et(e,t){const n=ot.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function St(){return ot.lFrame.currentQueryIndex}function Dt(e){ot.lFrame.currentQueryIndex=e}function xt(e,t){const n=kt();ot.lFrame=n,n.previousOrParentTNode=t,n.lView=e}const Tt=Rt;function Ot(e,t){const n=kt(),i=e[1];ot.lFrame=n,n.previousOrParentTNode=t,n.isParent=!0,n.lView=e,n.tView=i,n.selectedIndex=0,n.contextLView=e,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.currentSanitizer=null,n.bindingRootIndex=-1,n.bindingIndex=i.bindingStartIndex,n.currentQueryIndex=0}function kt(){const e=ot.lFrame,t=null===e?null:e.child;return null===t?It(e):t}function It(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Rt(){ot.lFrame=ot.lFrame.parent}function Mt(e){return(ot.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ot.lFrame.contextLView))[8]}function At(){return ot.lFrame.selectedIndex}function Pt(e){ot.lFrame.selectedIndex=e}function Lt(){ot.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Nt(){ot.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function Ft(){ot.lFrame.currentNamespace=null}function jt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n];t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked)),t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked)),null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}}function Vt(e,t,n){Bt(e,t,3,n)}function Ht(e,t,n,i){(3&e[2])===n&&Bt(e,t,n,i)}function Yt(e,t){let n=e[2];(3&n)===t&&(n&=1023,n+=1,e[2]=n)}function Bt(e,t,n,i){const r=null!=i?i:-1;let o=0;for(let s=void 0!==i?65535&e[18]:0;s<t.length;s++)if("number"==typeof t[s+1]){if(o=t[s],null!=i&&o>=i)break}else t[s]<0&&(e[18]+=65536),(o<r||-1==r)&&(Gt(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Gt(e,t,n,i){const r=n[i]<0,o=n[i+1],s=e[r?-n[i]:n[i]];r?e[2]>>10<e[18]>>16&&(3&e[2])===t&&(e[2]+=1024,o.call(s)):o.call(s)}class Wt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}let Ut=void 0;function zt(e){Ut=e}function qt(){return void 0!==Ut?Ut:"undefined"!=typeof document?document:void 0}function Kt(e){return!!e.listen}const $t={createRenderer:(e,t)=>qt()};function Qt(e,t,n){const i=Kt(e);let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const s=n[r++],a=n[r++],l=n[r++];i?e.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=n[++r];Jt(s)?i&&e.setProperty(t,s,a):i?e.setAttribute(t,s,a):t.setAttribute(s,a),r++}}return r}function Xt(e){return 3===e||4===e||6===e}function Jt(e){return 64===e.charCodeAt(0)}function Zt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||en(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function en(e,t,n,i,r){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function tn(e){return-1!==e}function nn(e){return 32767&e}function rn(e){return e>>16}function on(e,t){let n=rn(e),i=t;for(;n>0;)i=i[15],n--;return i}function sn(e){return"string"==typeof e?e:null==e?"":""+e}function an(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():sn(e)}const ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(U))();function cn(e){return{name:"window",target:e.ownerDocument.defaultView}}function un(e){return{name:"document",target:e.ownerDocument}}function dn(e){return{name:"body",target:e.ownerDocument.body}}function hn(e){return e instanceof Function?e():e}let pn=!0;function fn(e){const t=pn;return pn=e,t}let mn=0;function gn(e,t){const n=vn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,yn(i.data,e),yn(t,null),yn(i.blueprint,null));const r=_n(e,t),o=e.injectorIndex;if(tn(r)){const e=nn(r),n=on(r,t),i=n[1].data;for(let r=0;r<8;r++)t[o+r]=n[e+r]|i[e+r]}return t[o+8]=r,o}function yn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function vn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function _n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],i=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function bn(e,t,n){!function(e,t,n){let i="string"!=typeof n?n[ee]:n.charCodeAt(0)||0;null==i&&(i=n[ee]=mn++);const r=255&i,o=1<<r,s=64&r,a=32&r,l=t.data;128&r?s?a?l[e+7]|=o:l[e+6]|=o:a?l[e+5]|=o:l[e+4]|=o:s?a?l[e+3]|=o:l[e+2]|=o:a?l[e+1]|=o:l[e]|=o}
1(e,t,n)}function wn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const r=n[i];if(Xt(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(r===t)return n[i+1];i+=2}}}return null}function Cn(e,t,n,i=w.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e[ee];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){xt(t,e);try{const e=r();if(null!=e||i&w.Optional)return e;throw new Error(`No provider for ${an(n)}!`)}finally{Tt()}}else if("number"==typeof r){if(-1===r)return new kn(e,t);let o=null,s=vn(e,t),a=-1,l=i&w.Host?t[16][6]:null;for((-1===s||i&w.SkipSelf)&&(a=-1===s?_n(e,t):t[s+8],On(i,!1)?(o=t[1],s=nn(a),t=on(a,t)):s=-1);-1!==s;){a=t[s+8];const e=t[1];if(Tn(r,s,e.data)){const e=Sn(s,t,n,o,i,l);if(e!==En)return e}On(i,t[1].data[s+8]===l)&&Tn(r,s,t)?(o=e,s=nn(a),t=on(a,t)):s=-1}}}if(i&w.Optional&&void 0===r&&(r=null),0==(i&(w.Self|w.Host))){const e=t[9],o=ce(void 0);try{return e?e.get(n,r,i&w.Optional):fe(n,r,i&w.Optional)}finally{ce(o)}}if(i&w.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${an(n)}]`)}const En={};function Sn(e,t,n,i,r,o){const s=t[1],a=s.data[e+8],l=Dn(a,s,n,null==i?tt(a)&&pn:i!=s&&3===a.type,r&w.Host&&o===a);return null!==l?xn(t,s,l,a):En}function Dn(e,t,n,i,r){const o=e.providerIndexes,s=t.data,a=65535&o,l=e.directiveStart,c=o>>16,u=r?a+c:e.directiveEnd;for(let d=i?a:a+c;d<u;d++){const e=s[d];if(d<l&&n===e||d>=l&&e.type===n)return d}if(r){const e=s[l];if(e&&it(e)&&e.type===n)return l}return null}function xn(e,t,n,i){let r=e[n];const o=t.data;if(r instanceof Wt){const s=r;if(s.resolving)throw new Error(`Circular dep for ${an(o[n])}`);const a=fn(s.canSeeViewProviders);let l;s.resolving=!0,s.injectImpl&&(l=ce(s.injectImpl)),xt(e,i);try{r=e[n]=s.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{onChanges:i,onInit:r,doCheck:o}=t;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&ce(l),fn(a),s.resolving=!1,Tt()}}return r}function Tn(e,t,n){const i=64&e,r=32&e;let o;return o=128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(o&1<<e)}function On(e,t){return!(e&w.Self||e&w.Host&&t)}class kn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Cn(this._tNode,this._lView,e,void 0,t)}}function In(e){const t=e;if(H(e))return()=>{const e=In(V(t));return e?e():null};let n=Qe(t);if(null===n){const e=k(t);n=e&&e.factory}return n||null}function Rn(e){const t=Object.getPrototypeOf(e.prototype).constructor,n=t[Z]||In(t);return null!==n?n:e=>new e}function Mn(e){return e.ngDebugContext}function An(e){return e.ngOriginalError}function Pn(e,...t){e.error(...t)}class Ln{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Pn}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Mn(e)?Mn(e):this._findContext(An(e)):null}_findOriginalError(e){let t=An(e);for(;t&&An(t);)t=An(t);return t}}const Nn={name:"custom-elements"},Fn={name:"no-errors-schema"};class jn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class Yn extends jn{getTypeName(){return"Script"}}class Bn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Wn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Un(e,t){const n=zn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function zn(e){return e instanceof jn&&e.getTypeName()||null}function qn(e){return new Vn(e)}function Kn(e){return new Hn(e)}function $n(e){return new Yn(e)}function Qn(e){return new Bn(e)}function Xn(e){return new Gn(e)}let Jn=!0,Zn=!1;function ei(){return Zn=!0,Jn}
1function ti(){if(Zn)throw new Error("Cannot enable prod mode after platform setup.");Jn=!1}class ni{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let t=this.inertDocument.body;if(null==t){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),t=this.inertDocument.createElement("body"),e.appendChild(t)}t.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!t.querySelector||t.querySelector("svg")?(t.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(i){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ii=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ri=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function oi(e){return(e=String(e)).match(ii)||e.match(ri)?e:(ei()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function si(e){return(e=String(e)).split(",").map(e=>oi(e.trim())).join(", ")}function ai(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function li(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ci=ai("area,br,col,hr,img,wbr"),ui=ai("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),di=ai("rp,rt"),hi=li(di,ui),pi=li(ci,li(ui,ai("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),li(di,ai("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hi),fi=ai("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mi=ai("srcset"),gi=li(fi,mi,ai("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ai("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),yi=ai("script,style,template");class vi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!pi.hasOwnProperty(t))return this.sanitizedSomething=!0,!yi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,r=t.toLowerCase();if(!gi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=e.value;fi[r]&&(o=oi(o)),mi[r]&&(o=si(o)),this.buf.push(" ",t,'="',wi(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();pi.hasOwnProperty(t)&&!ci.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(wi(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const _i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function wi(e){return e.replace(/&/g,"&amp;").replace(_i,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(bi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ci;function Ei(e,t){let n=null;try{Ci=Ci||new ni(e);let i=t?String(t):"";n=Ci.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ci.getInertBodyElement(i)}while(i!==o);const s=new vi,a=s.sanitizeChildren(Si(n)||n);return ei()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Si(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}
1function Si(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Di=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),xi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ti=/^url\(([^)]+)\)$/;function Oi(e){if(!(e=String(e).trim()))return"";const t=e.match(Ti);return t&&oi(t[1])===t[1]||e.match(xi)&&function(e){let t=!0,n=!0;for(let i=0;i<e.length;i++){const r=e.charAt(i);"'"===r&&n?t=!t:'"'===r&&t&&(n=!n)}return t&&n}(e)?e:(ei()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}function ki(e){const t=ji();return t?t.sanitize(Di.HTML,e)||"":Un(e,"HTML")?Wn(e):Ei(qt(),sn(e))}function Ii(e){const t=ji();return t?t.sanitize(Di.STYLE,e)||"":Un(e,"Style")?Wn(e):Oi(sn(e))}function Ri(e){const t=ji();return t?t.sanitize(Di.URL,e)||"":Un(e,"URL")?Wn(e):oi(sn(e))}function Mi(e){const t=ji();if(t)return t.sanitize(Di.RESOURCE_URL,e)||"";if(Un(e,"ResourceURL"))return Wn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Ai(e){const t=ji();if(t)return t.sanitize(Di.SCRIPT,e)||"";if(Un(e,"Script"))return Wn(e);throw new Error("unsafe value used in a script context")}function Pi(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Mi:Ri}function Li(e,t,n){return Pi(t,n)(e)}const Ni=function(e,t,n){if(void 0===t&&void 0===n)return Ii(e);let i=!0;return 1&(n=n||3)&&(i=Fi(e)),2&n?i?Ii(t):Wn(t):i};function Fi(e){return"background-image"===e||"backgroundImage"===e||"background"===e||"border-image"===e||"borderImage"===e||"border-image-source"===e||"borderImageSource"===e||"filter"===e||"list-style"===e||"listStyle"===e||"list-style-image"===e||"listStyleImage"===e||"clip-path"===e||"clipPath"===e}function ji(){const e=ct();return e&&e[12]}const Vi=/([A-Z])/g;function Hi(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Yi(e){for(;Array.isArray(e);)e=e[0];return e}function Bi(e,t){return Yi(t[e+19])}function Gi(e,t){return Yi(t[e.index])}function Wi(e,t){const n=e.index;return-1!==n?Yi(t[n]):null}function Ui(e,t){return e.data[t+19]}function zi(e,t){return e[t+19]}function qi(e,t){const n=t[e];return Je(n)?n:n[0]}function Ki(e){return e.__ngContext__||null}function $i(e){const t=Ki(e);return t?Array.isArray(t)?t:t.lView:null}function Qi(e){return 4==(4&e[2])}function Xi(e){return 128==(128&e[2])}function Ji(e,t){return null===e||null==t?null:e[t]}function Zi(e){e[18]=0}function er(e){return e[2]>>1}function tr(e){let t=Ki(e);if(t){if(Array.isArray(t)){const i=t;let r,o=void 0,s=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(r=ar(i,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function(e,t){let n=e[1].firstChild;for(;n;){const i=n.directiveEnd;for(let r=n.directiveStart;r<i;r++)if(e[r]===t)return n.index;n=sr(n)}return-1}(i,e),-1==r)throw new Error("The provided directive was not found in the application");s=lr(r,i,!1)}else if(r=or(i,e),-1==r)return null;const a=Yi(i[r]),l=Ki(a),c=l&&!Array.isArray(l)?l:nr(i,r,a);if(o&&void 0===c.component&&(c.component=o,rr(c.component,c)),s&&void 0===c.directives){c.directives=s;for(let e=0;e<s.length;e++)rr(s[e],c)}rr(c.native,c),t=c}}else{const n=e;let i=n;for(;i=i.parentNode;){const e=Ki(i);if(e){let i;if(i=Array.isArray(e)?e:e.lView,!i)return null;const r=or(i,n);if(r>=0){const e=Yi(i[r]),n=nr(i,r,e);rr(e,n),t=n;break}}}}var n;return t||null}function nr(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function ir(e){let t,n=Ki(e);if(Array.isArray(n)){const i=ar(n,e);t=qi(i,n);const r=nr(n,i,t[0]);r.component=e,rr(e,r),rr(r.native,r)}else t=qi(n.nodeIndex,n.lView);return t}function rr(e,t){e.__ngContext__=t}function or(e,t){let n=e[1].firstChild;for(;n;){if(Wi(n,e)===t)return n.index;
1n=sr(n)}return-1}function sr(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function ar(e,t){const n=e[1].components;if(n)for(let i=0;i<n.length;i++){const r=n[i];if(qi(r,e)[8]===t)return r}else if(qi(19,e)[8]===t)return 19;return-1}function lr(e,t,n){const i=t[1].data[e];let r=i.directiveStart;return 0==r?Le:(!n&&2&i.flags&&r++,t.slice(r,i.directiveEnd))}function cr(e){throw new Error(`Multiple components match node with tagname ${e.tagName}`)}function ur(){throw new Error("Cannot mix multi providers and regular providers")}function dr(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===i||e.charCodeAt(r+n)<=32)return r}n=r+1}}function hr(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==dr(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function pr(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function fr(e,t,n){let i=4;const r=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(Xt(e[t]))return t;return e.length}(r);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!pr(e,l,n)||""===l&&1===t.length){if(mr(i))return!1;s=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==e.attrs){if(!hr(e.attrs,c,n)){if(mr(i))return!1;s=!0}continue}const u=gr(8&i?"class":l,r,0==e.type&&"ng-template"!==e.tagName,n);if(-1===u){if(mr(i))return!1;s=!0;continue}if(""!==c){let e;e=u>o?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==dr(t,c,0)||2&i&&c!==e){if(mr(i))return!1;s=!0}}}}else{if(!s&&!mr(i)&&!mr(l))return!1;if(s&&mr(l))continue;s=!1,i=l|1&i}}return mr(i)||s}function mr(e){return 0==(1&e)}function gr(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r<t.length;){const i=t[r];if(i===e)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){if(e[n]===t)return n;n++}return-1}(t,e)}function yr(e,t,n=!1){for(let i=0;i<t.length;i++)if(fr(e,t[i],n))return!0;return!1}function vr(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function _r(e,t){return e?":not("+t.trim()+")":t}function br(e){let t=e[0],n=1,i=2,r="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&i){const t=e[++n];r+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);
1else""===r||mr(s)||(t+=_r(o,r),r=""),i=s,o=o||!mr(i);n++}return""!==r&&(t+=_r(o,r)),t}const wr={};function Cr(e){const t=e[3];return Ze(t)?t[3]:t}function Er(e){return function(e){let t=Je(e)?e:$i(e);for(;t&&!(512&t[2]);)t=Cr(t);return t}(e)[8]}function Sr(e){xr(ut(),ct(),At()+e,gt())}function Dr(e){xr(ut(),ct(),e,gt())}function xr(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Vt(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ht(t,i,0,n)}Pt(n)}const Tr={marker:"element"},Or={marker:"comment"};function kr(e,t){return e<<17|t<<2}function Ir(e){return e>>17&32767}function Rr(e){return 2|e}function Mr(e){return(131068&e)>>2}function Ar(e,t){return-131069&e|t<<2}function Pr(e){return 1|e}const Lr=(()=>Promise.resolve(null))();function Nr(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],o=n[i+1];if(-1!==o){const n=e.data[o];Dt(r),n.contentQueries(2,t[o],o)}}}function Fr(e,t,n){return Kt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function jr(e,t,n,i,r,o,s,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Zi(u),u[3]=u[15]=e,u[8]=n,u[10]=s||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=o,u[16]=2==t.type?e[16]:u,u}function Vr(e,t,n,i,r,o){const s=n+19,a=e.data[s]||function(e,t,n,i,r,o){const s=ht(),a=ft(),l=a?s:s&&s.parent,c=e.data[n]=Xr(0,l&&l!==t?l:null,i,n,r,o);return null===e.firstChild&&(e.firstChild=c),s&&(!a||null!=s.child||null===c.parent&&2!==s.type?a||(s.next=c):s.child=c),c}(e,t,s,i,r,o);return pt(a,!0),a}function Hr(e,t,n,i){let r=e.node;return null==r&&(e.node=r=Xr(0,t,2,n,null,null)),i[6]=r}function Yr(e,t,n){Ot(t,t[6]);try{const i=e.viewQuery;null!==i&&Eo(1,i,n);const r=e.template;null!==r&&Wr(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Nr(e,t),e.staticViewQueries&&Eo(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)yo(e,t[n])}(t,o)}finally{t[2]&=-5,Rt()}}function Br(e,t,n,i){const r=t[2];if(256==(256&r))return;Ot(t,t[6]);const o=gt();try{Zi(t),bt(e.bindingStartIndex),null!==n&&Wr(e,t,n,2,i);const s=3==(3&r);if(!o)if(s){const n=e.preOrderCheckHooks;null!==n&&Vt(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Ht(t,n,0,null),Yt(t,0)}if(function(e){let t=e[13];for(;null!==t;){let n;if(Ze(t)&&(n=t[2])>>1==-1){for(let e=9;e<t.length;e++){const n=t[e],i=n[1];Xi(n)&&Br(i,n,i.template,n[8])}0!=(1&n)&&mo(t,e[16])}t=t[4]}}(t),null!==e.contentQueries&&Nr(e,t),!o)if(s){const n=e.contentCheckHooks;null!==n&&Vt(t,n)}else{const n=e.contentHooks;null!==n&&Ht(t,n,1),Yt(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let i=e.expandoStartIndex,r=-1,o=-1;for(let e=0;e<n.length;e++){const s=n[e];"number"==typeof s?s<=0?(o=0-s,Pt(o),i+=9+n[++e],r=i):i+=s:(null!==s&&(Et(i,r),s(2,t[r])),r++)}}}finally{Pt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)go(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Eo(2,l,i),!o)if(s){const n=e.viewCheckHooks;null!==n&&Vt(t,n)}else{const n=e.viewHooks;null!==n&&Ht(t,n,2),Yt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73)}finally{Rt()}}function Gr(e,t,n,i){const r=t[10],o=!gt(),s=Qi(t);try{o&&!s&&r.begin&&r.begin(),s&&Yr(e,t,i),Br(e,t,n,i)}finally{o&&!s&&r.end&&r.end()}}function Wr(e,t,n,i,r){const o=At();try{Pt(-1),2&i&&t.length>19&&xr(e,t,0,gt()),n(i,r)}finally{Pt(o)}}function Ur(e,t,n){if(et(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r<i;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function zr(e,t,n){st()&&(function(e,t,n,i){const r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||gn(n,t),rr(i,t);const s=n.initialInputs;for(let a=r;a<o;a++){const i=e.data[a],o=it(i);o&&co(t,n,i);const l=xn(t,e,a,n);rr(l,t),null!==s&&ho(0,a-r,l,i,0,s),o&&(qi(n.index,t)[8]=l)}}(e,t,n,Gi(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,o=e.expandoInstructions,s=e.firstCreatePass,a=n.index-19;try{Pt(a);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?io(i,r):s&&o.push(null)}}finally{Pt(-1)}}
1(e,t,n))}function qr(e,t,n=Gi){const i=t.localNames;if(null!==i){let r=t.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?n(t,e):e[s];e[r++]=a}}}function Kr(e){return e.tView||(e.tView=$r(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts))}function $r(e,t,n,i,r,o,s,a,l,c){const u=19+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:wr);return n}(u,d);return h[1]={type:e,id:t,blueprint:h,template:n,queries:null,viewQuery:a,node:null,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:c}}function Qr(e,t,n){if(Kt(e))return e.selectRootElement(t,n===Me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}function Xr(e,t,n,i,r,o){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Jr(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Zr(e,t,n,i,r,o,s,a){const l=Bi(n,t),c=Ui(e,n);let u,d=c.inputs;if(!s&&null!=d&&(u=d[i]))ko(e,t,u,i,r),tt(c)&&function(e,t){const n=qi(t,e);16&n[2]||(n[2]|=64)}(t,n+19);else if(3===c.type){i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h;const e=a?a(c,t):t[11];r=null!=o?o(r,c.tagName||"",i):r,Kt(e)?e.setProperty(l,i,r):Jt(i)||(l.setProperty?l.setProperty(i,r):l[i]=r)}var h}function eo(e,t,n,i){let r=!1;if(st()){const o=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];yr(n,s.selectors,!1)&&(r||(r=[]),bn(gn(n,t),e,s.type),it(s)?(2&n.flags&&cr(n),oo(e,n),r.unshift(s)):r.push(s))}return r}(e,t,n),s=null===i?null:{"":-1};if(null!==o){let i=0;r=!0,ao(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}ro(e,n,o.length);let a=!1,l=!1;for(let r=0;r<o.length;r++){const c=o[r];n.mergedAttrs=Zt(n.mergedAttrs,c.hostAttrs),lo(e,t,c),so(e.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-19),a=!0),l||!c.onChanges&&!c.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-19),l=!0),to(e,c),i+=c.hostVars}!function(e,t){const n=t.directiveEnd,i=e.data,r=t.attrs,o=[];let s=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=i[l],t=e.inputs;o.push(null!==r?po(t,r):null),s=Jr(t,l,s),a=Jr(e.outputs,l,a)}null!==s&&((s.hasOwnProperty("class")||s.hasOwnProperty("className"))&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n),no(e,t,i)}s&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,s)}return n.mergedAttrs=Zt(n.mergedAttrs,n.attrs),r}function to(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function no(e,t,n){for(let i=0;i<n;i++)t.push(wr),e.blueprint.push(wr),e.data.push(null)}function io(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ro(e,t,n){const i=19-t.index,r=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,r,n)}function oo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function so(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;it(t)&&(n[""]=e)}}
1function ao(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function lo(e,t,n){e.data.push(n);const i=n.factory||(n.factory=Qe(n.type)),r=new Wt(i,it(n),null);e.blueprint.push(r),t.push(r)}function co(e,t,n){const i=Gi(t,e),r=Kr(n),o=e[10],s=vo(e,jr(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n)));e[t.index]=s}function uo(e,t,n,i,r,o,s){const a=Bi(e,r),l=r[11];if(null==n)Kt(l)?l.removeAttribute(a,t,s):a.removeAttribute(t);else{const r=Ui(i,e),c=null==o?sn(n):o(n,r.tagName||"",t);Kt(l)?l.setAttribute(a,t,c,s):s?a.setAttributeNS(s,t,c):a.setAttribute(t,c)}}function ho(e,t,n,i,r,o){const s=o[t];if(null!==s){const e=i.setInput;for(let t=0;t<s.length;){const r=s[t++],o=s[t++],a=s[t++];null!==e?i.setInput(n,a,r,o):n[o]=a}}}function po(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function fo(e,t,n,i){return new Array(e,!0,-2,t,null,null,i,n,null)}function mo(e,t){const n=e[5];for(let i=0;i<n.length;i++){const e=n[i],r=e[3][3][16];if(r!==t&&0==(16&r[2])){const t=e[1];Br(t,e,t.template,e[8])}}}function go(e,t){const n=qi(t,e);if(Xi(n)&&80&n[2]){const e=n[1];Br(e,n,e.template,n[8])}}function yo(e,t){const n=qi(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Yr(i,n,n[8])}function vo(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function _o(e){for(;e;){e[2]|=64;const t=Cr(e);if(rt(e)&&!t)return e;e=t}return null}function bo(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=$i(n),r=i[1];Gr(r,i,r.template,n)}}function wo(e,t,n){const i=t[10];i.begin&&i.begin();try{Br(e,t,e.template,n)}catch(r){throw Oo(t,r),r}finally{i.end&&i.end()}}function Co(e){bo(e[8])}function Eo(e,t,n){Dt(0),t(e,n)}const So=Lr;function Do(e){return e[7]||(e[7]=[])}function xo(e){return e.cleanup||(e.cleanup=[])}function To(e,t){return t[e.index][11]}function Oo(e,t){const n=e[9],i=n?n.get(Ln,null):null;i&&i.handleError(t)}function ko(e,t,n,i,r){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=t[s],c=e.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Io(e,t,n){const i=Bi(t,e),r=e[11];Kt(r)?r.setValue(i,n):i.textContent=n}function Ro(e,t){const n=t[3];return-1===e.index?Ze(n)?n:null:n}function Mo(e,t){const n=Ro(e,t);return n?qo(t[11],n[7]):null}function Ao(e,t,n,i,r){if(null!=i){let o,s=!1;Ze(i)?o=i:Je(i)&&(s=!0,i=i[0]);const a=Yi(i);0===e&&null!==n?null==r?Uo(t,n,a):Wo(t,n,a,r||null):1===e&&null!==n?Wo(t,n,a,r||null):2===e?Xo(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,i,r){const o=n[7];o!==Yi(n)&&Ao(t,e,i,o,r);for(let s=9;s<n.length;s++){const r=n[s];Zo(r[1],r,e,t,i,o)}}(t,e,o,n,r)}}function Po(e,t){return Kt(t)?t.createText(e):t.createTextNode(e)}function Lo(e,t,n,i){const r=Mo(e.node,t);r&&Zo(e,t,t[11],n?1:2,r,i)}function No(e,t,n,i){const r=9+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-9?(t[4]=n[r],Ee(n,9+i,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[5],i=t[3][3][16];16!=(16&i[2])&&t[16]!==i&&(e[2]|=1),null===n?e[5]=[t]:n.push(t)}(s,t);const a=t[5];null!==a&&a.insertView(e),t[2]|=128}function Fo(e,t){const n=e[5],i=n.indexOf(t);n.splice(i,1)}function jo(e,t){if(e.length<=9)return;const n=9+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&Fo(r,i),t>0&&(e[n-1][4]=i[4]);const o=Se(e,9+t);Lo(i[1],i,!1,null);const s=o[5];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Vo(e,t){const n=jo(e,t);n&&Ho(n[1],n)}function Ho(e,t){if(!(256&t[2])){const n=t[11];Kt(n)&&n.destroyNode&&Zo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Bo(e[1],e);for(;t;){let n=null;if(Je(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Je(t)&&Bo(t[1],t),t=Yo(t,e);null===t&&(t=e),Je(t)&&Bo(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yo(e,t){let n;return Je(e)&&(n=e[6])&&2===n.type?Ro(n,e):e[3]===t?null:e[3]}function Bo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];e instanceof Wt||n[i+1].call(e)}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],o="function"==typeof r?r(t):Yi(t[r]),s=e[n[i+2]],a=n[i+3];"boolean"==typeof a?o.removeEventListener(n[i],s,a):a>
1=0?e[a]():e[-a].unsubscribe(),i+=2}else n[i].call(e[n[i+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Kt(t[11])&&t[11].destroy();const i=t[17];if(null!==i&&Ze(t[3])){i!==t[3]&&Fo(i,t);const n=t[5];null!==n&&n.detachView(e)}}}function Go(e,t,n){let i=t.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){const e=n[6];return 2===e.type?Mo(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Gi(t,n).parentNode;if(2&i.flags){const t=e.data,n=t[t[i.index].directiveStart].encapsulation;if(n!==Me.ShadowDom&&n!==Me.Native)return null}return Gi(i,n)}function Wo(e,t,n,i){Kt(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function Uo(e,t,n){Kt(e)?e.appendChild(t,n):t.appendChild(n)}function zo(e,t,n,i){null!==i?Wo(e,t,n,i):Uo(e,t,n)}function qo(e,t){return Kt(e)?e.parentNode(t):t.parentNode}function Ko(e,t){if(2===e.type){const n=Ro(e,t);return null===n?null:Qo(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?Gi(e,t):null}function $o(e,t,n,i){const r=Go(e,i,t);if(null!=r){const e=t[11],o=Ko(i.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)zo(e,r,n[t],o);else zo(e,r,n,o)}}function Qo(e,t){const n=9+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return function e(t,n){if(null!==n){const i=n.type;if(3===i)return Gi(n,t);if(0===i)return Qo(-1,t[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return e(t,i);{const e=t[n.index];return Ze(e)?Qo(-1,e):Yi(e)}}{const i=t[16],r=i[6],o=Cr(i),s=r.projection[n.projection];return null!=s?e(o,s):e(t,n.next)}}return null}(e,i)}return t[7]}function Xo(e,t,n){const i=qo(e,t);i&&function(e,t,n,i){Kt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function Jo(e,t,n,i,r,o,s){for(;null!=n;){const a=i[n.index],l=n.type;s&&0===t&&(a&&rr(Yi(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Jo(e,t,n.child,i,r,o,!1),Ao(t,e,r,a,o)):1===l?ts(e,t,i,n,r,o):Ao(t,e,r,a,o)),n=s?n.projectionNext:n.next}}function Zo(e,t,n,i,r,o){Jo(n,i,e.node.child,t,r,o,!1)}
1function es(e,t,n){ts(t[11],0,t,n,Go(e,n,t),Ko(n.parent||t[6],t))}function ts(e,t,n,i,r,o){const s=n[16],a=s[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ao(t,e,r,a[l],o);else Jo(e,t,a,s[3],r,o,!0)}function ns(e,t,n){Kt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function is(e,t,n){Kt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class rs{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,i,r,o=!1){for(;null!==i;){const s=n[i.index];if(null!==s&&r.push(Yi(s)),Ze(s))for(let t=9;t<s.length;t++){const n=s[t],i=n[1].firstChild;null!==i&&e(n[1],n,i,r)}const a=i.type;if(4===a||5===a)e(t,n,i.child,r);else if(1===a){const t=n[16],o=t[6],s=Cr(t);let a=o.projection[i.projection];null!==a&&null!==s&&e(s[1],s,a,r,!0)}i=o?i.projectionNext:i.next}return r}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ho(this._lView[1],this._lView)}onDestroy(e){var t,n,i;t=this._lView[1],i=e,Do(n=this._lView).push(i),t.firstCreatePass&&xo(t).push(n[7].length-1,null)}markForCheck(){_o(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){yt(!0);try{wo(e,t,n)}finally{yt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Zo(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class os extends rs{constructor(e){super(e),this._view=e}detectChanges(){Co(this._view)}checkNoChanges(){!function(e){yt(!0);try{Co(e)}finally{yt(!1)}}(this._view)}get context(){return null}}let ss,as,ls;function cs(e,t,n){return ss||(ss=class extends e{}),new ss(Gi(t,n))}function us(e,t,n,i){return as||(as=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=jr(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(t)),Yr(t,n,e);const r=new rs(n);return r._tViewNode=n[6],r}}),0===n.type?new as(i,n,cs(t,n,i)):null}function ds(e,t,n,i){let r;ls||(ls=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return cs(t,this._hostTNode,this._hostView)}get injector(){return new kn(this._hostTNode,this._hostView)}get parentInjector(){const e=_n(this._hostTNode,this._hostView),t=on(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let i=rn(e),r=t,o=t[6];for(;i>1;)r=r[15],o=r[6],i--;return o}(e,this._hostView,this._hostTNode);return tn(e)&&null!=n?new kn(n,t):new kn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){const e=o.get(ve,null);e&&(r=e)}const s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}insert(e,t){const n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ze(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new ls(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t);return No(i,n,this._lContainer,r),Lo(i,n,!0,Qo(r,this._lContainer)),e.attachToViewContainerRef(this),Ee(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1);Vo(this._lContainer,t),Se(this._lContainer[8],t)}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=jo(this._lContainer,t);return n&&null!=Se(this._lContainer[8],t)?new rs(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=i[n.index];if(Ze(o))r=o,function(e,t){e[2]=-2}(r);else{let e;if(4===n.type)e=Yi(o);else if(e=i[11].createComment(""),rt(i)){const t=i[11],r=Gi(n,i);Wo(t,qo(t,r),e,function(e,t){return Kt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else $o(i[1],i,e,n);i[n.index]=r=fo(o,i,e,n),vo(i,r)}return new ls(r,n,i)}function hs(e=!1){return function(e,t,n){if(!n&&tt(e)){const n=qi(e.index,t);return new rs(n,n)}return 3===e.type||0===e.type||4===e.type||5===e.type?new rs(t[16],t):null}(ht(),ct(),e)}let ps=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ms(),e})();const fs=hs,ms=fs,gs=Function;function ys(e){return"function"==typeof e}const vs=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,_s=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,bs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ws=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class Cs{constructor(e){this._reflect=e||U.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=De(void 0===e?t.length:e.length);for(let i=0;i<n.length;i++)n[i]=void 0===e?[]:e[i]&&e[i]!=Object?[e[i]]:[],t&&null!=t[i]&&(n[i]=n[i].concat(t[i]));return n}_ownParameters(e,t){if(n=e.toString(),vs.test(n)||ws.test(n)||_s.test(n)&&!bs.test(n))return null;var n;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const i=e.ctorParameters;if(i&&i!==t.ctorParameters){const e="function"==typeof i?i():i,t=e.map(e=>e&&e.type),n=e.map(e=>e&&Es(e.decorators));return this._zipTypesAndAnnotations(t,n)}const r=e.hasOwnProperty(c)&&e[c],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||r?this._zipTypesAndAnnotations(o,r):De(e.length)}parameters(e){if(!ys(e))return[];const t=Ss(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Es(e.decorators):e.hasOwnProperty(l)?e[l]:null}annotations(e){if(!ys(e))return[];const t=Ss(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};
1return Object.keys(t).forEach(e=>{n[e]=Es(t[e])}),n}return e.hasOwnProperty(u)?e[u]:null}propMetadata(e){if(!ys(e))return{};const t=Ss(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const i=this._ownPropMetadata(e,t);return i&&Object.keys(i).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...i[e]),n[e]=t}),n}ownPropMetadata(e){return ys(e)&&this._ownPropMetadata(e,Ss(e))||{}}hasLifecycleHook(e,t){return e instanceof gs&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n        return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${L(e)}`}resourceUri(e){return`./${L(e)}`}resolveIdentifier(e,t,n,i){return i}resolveEnum(e,t){return e[t]}}function Es(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Ss(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}let Ds=null;function xs(){return Ds=Ds||new Cs}function Ts(e){return Os(xs().parameters(e))}function Os(e){const t=q();return e.map(e=>function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function i(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)&&t.length>0)for(let r=0;r<t.length;r++){const o=t[r];if(void 0===o)continue;const s=Object.getPrototypeOf(o);if(o instanceof g||"Optional"===s.ngMetadataName)n.optional=!0;else if(o instanceof v||"SkipSelf"===s.ngMetadataName)n.skipSelf=!0;else if(o instanceof y||"Self"===s.ngMetadataName)n.self=!0;else if(o instanceof _||"Host"===s.ngMetadataName)n.host=!0;else if(o instanceof m)n.token=o.token;else if(o instanceof b){if(void 0===o.attributeName)throw new Error("Attribute name must be defined.");n.token=o.attributeName,n.resolved=e.R3ResolvedDependencyType.Attribute}else o===ps?(n.token=o,n.resolved=e.R3ResolvedDependencyType.ChangeDetectorRef):i(o)}else void 0===t||Array.isArray(t)&&0===t.length?(n.token=void 0,n.resolved=z.Invalid):i(t);return n}(t,e))}const ks=C({provide:String,useValue:C});function Is(e){return void 0!==e.useClass}function Rs(e){return void 0!==e.useFactory}function Ms(e,t){const n=t||{providedIn:null},i={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Is(n)||Rs(n))&&void 0!==n.deps&&(i.userDeps=Os(n.deps)),Is(n)?i.useClass=V(n.useClass):function(e){return ks in e}(n)?i.useValue=V(n.useValue):Rs(n)?i.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(i.useExisting=V(n.useExisting)),i}const As=d("Injectable",void 0,void 0,void 0,(e,t)=>Ls(e,t)),Ps=function(e,t){let n=null,i=null;e.hasOwnProperty(I)||(Object.defineProperty(e,I,{get:()=>(null===n&&(n=q().compileInjectable(ye,`ng:///${e.name}/\u0275prov.js`,Ms(e,t))),n)}),e.hasOwnProperty(M)||(e[M]=()=>e[I])),e.hasOwnProperty(Z)||Object.defineProperty(e,Z,{get:()=>{if(null===i){const n=Ms(e,t),r=q();i=r.compileFactory(ye,`ng:///${e.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:Ts(e),injectFn:"inject",target:r.R3FactoryTarget.Pipe})}return i},configurable:!0})},Ls=Ps,Ns=new te("Set Injector scope."),Fs={},js={},Vs=[];let Hs=void 0;function Ys(){return void 0===Hs&&(Hs=new ge),Hs}function Bs(e,t=null,n=null,i){return t=t||Ys(),new Gs(e,n,t,i)}class Gs{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Ce(t,n=>this.processProvider(n,e,t)),Ce([e],e=>this.processInjectorType(e,[],r)),this.records.set(ne,zs(void 0,this));const o=this.records.get(Ns);this.scope=null!=o?o.value:null,this.injectorDefTypes.forEach(e=>this.get(e)),this.source=i||("object"==typeof e?null:L(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=ie,n=w.Default){this.assertNotDestroyed();const i=le(this);try{if(!(n&w.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof te)&&T(e);t=n&&this.injectableDefInScope(n)?zs(Ws(e),Fs):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&w.Self?Ys():this.parent).get(e,t=n&w.Optional&&t===ie?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(L(e)),i)throw o;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=L(t);if(Array.isArray(t))r=t.map(L).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];
1e.push(n+":"+("string"==typeof i?JSON.stringify(i):L(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(re,"\n  ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{le(i)}var r}toString(){const e=[];return this.records.forEach((t,n)=>e.push(L(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=V(e)))return!1;let i=k(e);const r=null==i&&e.ngModule||void 0,o=void 0===r?e:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=k(r)),null==i)return!1;if(null!=i.imports&&!s){let e;n.push(o);try{Ce(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];Ce(i,e=>this.processProvider(e,n,i||Vs))}}this.injectorDefTypes.add(o),this.records.set(o,zs(i.factory,Fs));const a=i.providers;if(null!=a&&!s){const t=e;Ce(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=Ks(e=V(e))?e:V(e&&e.provide);const r=function(e,t,n){return qs(e)?zs(void 0,e.useValue):zs(Us(e,t,n),Fs)}(e,t,n);if(Ks(e)||!0!==e.multi){const e=this.records.get(i);e&&void 0!==e.multi&&ur()}else{let t=this.records.get(i);t?void 0===t.multi&&ur():(t=zs(void 0,Fs,!0),t.factory=()=>me(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===js?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(L(e)):t.value===Fs&&(t.value=js,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Ws(e){const t=T(e),n=null!==t?t.factory:Qe(e);if(null!==n)return n;const i=k(e);if(null!==i)return i.factory;if(e instanceof te)throw new Error(`Token ${L(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=De(t,"?");throw new Error(`Can't resolve all parameters for ${L(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[I]||e[A]||e[M]&&e[M]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Us(e,t,n){let i=void 0;if(Ks(e))return Ws(V(e));if(qs(e))i=()=>V(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...me(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>de(V(e.useExisting));else{const r=V(e&&(e.useClass||e.provide));if(r||function(e,t,n){let i="";throw e&&t&&(i=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${L(e)}'`+i)}(t,n,e),!function(e){return!!e.deps}(e))return Ws(r);i=()=>new r(...me(e.deps))}var r;return i}function zs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qs(e){return null!==e&&"object"==typeof e&&oe in e}function Ks(e){return"function"==typeof e}function $s(e,t,n){return Bs({name:n},t,e,n)}const Qs=$s;let Xs=(()=>{class e{static create(e,t){return Array.isArray(e)?Qs(e,t,""):Qs(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ie,e.NULL=new ge,e.\u0275prov=S({token:e,providedIn:"any",factory:()=>de(ne)}),e.__NG_ELEMENT_ID__=-1,e})();function Js(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>L(e.token)).join(" -> ")+")":""}function Zs(e,t,n,i){const r=[t],o=n(r),s=i?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,i=Error(n);return i.ngOriginalError=t,i}(o,i):Error(o);return s.addKey=ea,s.keys=r,s.injectors=[e],s.constructResolvingMessage=n,s.ngOriginalError=i,s}function ea(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function ta(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const e=t[i];n.push(e&&0!=e.length?e.map(L).join(" "):"?")}return Error("Cannot resolve all parameters for '"+L(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+L(e)+"' is decorated with Injectable.")}class na{constructor(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=L(this.token)}static get(e){return ra.get(V(e))}static get numberOfKeys(){return ra.numberOfKeys}}class ia{constructor(){this._allKeys=new Map}get(e){if(e instanceof na)return e;if(this._allKeys.has(e))return this._allKeys.get(e);const t=new na(e,na.numberOfKeys);return this._allKeys.set(e,t),t}get numberOfKeys(){return this._allKeys.size}}const ra=new ia;class oa{constructor(e){this.reflectionCapabilities=e}updateCapabilities(e){this.reflectionCapabilities=e}factory(e){return this.reflectionCapabilities.factory(e)}parameters(e){return this.reflectionCapabilities.parameters(e)}annotations(e){return this.reflectionCapabilities.annotations(e)}propMetadata(e){return this.reflectionCapabilities.propMetadata(e)}hasLifecycleHook(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}getter(e){return this.reflectionCapabilities.getter(e)}setter(e){return this.reflectionCapabilities.setter(e)}method(e){return this.reflectionCapabilities.method(e)}importUri(e){return this.reflectionCapabilities.importUri(e)}resourceUri(e){return this.reflectionCapabilities.resourceUri(e)}resolveIdentifier(e,t,n,i){return this.reflectionCapabilities.resolveIdentifier(e,t,n,i)}resolveEnum(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}const sa=new oa(new Cs);class aa{constructor(e,t,n){this.key=e,this.optional=t,this.visibility=n}static fromKey(e){return new aa(e,!1,null)}}const la=[];class ca{constructor(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class ua{constructor(e,t){this.factory=e,this.dependencies=t}}function da(e){let t,n;if(e.useClass){const i=V(e.useClass);t=sa.factory(i),n=fa(i)}else e.useExisting?(t=e=>e,n=[aa.fromKey(na.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>ma(e,t,n))}return fa(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=la);return new ua(t,n)}function ha(e){return new ca(na.get(e.provide),[da(e)],e.multi||!1)}function pa(e){const t=function(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=t.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${r} ${i}`);if(i.multiProvider)for(let e=0;e<i.resolvedFactories.length;e++)r.resolvedFactories.push(i.resolvedFactories[e]);else t.set(i.key.id,i)}else{let e;e=i.multiProvider?new ca(i.key,i.resolvedFactories.slice(),i.multiProvider):i,t.set(i.key.id,e)}}return t}(function e(t,n){return t.forEach(t=>{if(t instanceof gs)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!Array.isArray(t))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`);e(t,n)}}),n}(e,[]).map(ha),new Map);return Array.from(t.values())}function fa(e){const t=sa.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw ta(e,t);return t.map(n=>ma(e,n,t))}function ma(e,t,n){let i=null,r=!1;if(!Array.isArray(t))return ga(t instanceof m?t.token:t,r,null);let o=null;for(let s=0;s<t.length;++s){const e=t[s];e instanceof gs?i=e:e instanceof m?i=e.token:e instanceof g?r=!0:e instanceof y||e instanceof v?o=e:e instanceof te&&(i=e)}if(i=V(i),null!=i)return ga(i,r,o);throw ta(e,n)}function ga(e,t,n){return new aa(na.get(e),t,n)}const ya={};class va{static resolve(e){return pa(e)}static resolveAndCreate(e,t){const n=va.resolve(e);return va.fromResolvedProviders(n,t)}static fromResolvedProviders(e,t){return new _a(e,t)}}let _a=(()=>{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let i=0;i<n;i++)this.keyIds[i]=e[i].key.id,this.objs[i]=ya}get(e,t=ie){return this._getByKey(na.get(e),null,t)}resolveAndCreateChild(e){const t=va.resolve(e);return this.createChildFromResolved(t)}createChildFromResolved(t){const n=new e(t);return n.parent=this,n}resolveAndInstantiate(e){return this.instantiateResolved(va.resolve([e])[0])}instantiateResolved(e){return this._instantiateProvider(e)}getProviderAtIndex(e){if(e<0||e>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Zs(this,e.key,(function(e){return`Cannot instantiate cyclic dependency!${Js(e)}`}));return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])}_instantiate(e,t){const n=t.factory;let i,r;try{i=t.dependencies.map(e=>this._getByReflectiveDependency(e))}catch(s){throw s.addKey&&s.addKey(this,e.key),s}try{r=n(...i)}catch(s){throw Zs(this,e.key,(function(e){const t=L(e[0].token);return`${o.message}: Error during instantiation of ${t}!${Js(e)}.`}),o=s)}var o;return r}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:ie)}_getByKey(t,n,i){return t===e.INJECTOR_KEY?this:n instanceof y?this._getByKeySelf(t,i):this._getByKeyDefault(t,i,n)}_getObjByKeyId(e){for(let t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===ya&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return ya}_throwOrNull(e,t){if(t!==ie)return t;throw function(e,t){return Zs(e,t,(function(e){return`No provider for ${L(e[0].token)}!${Js(e)}`}))}(this,e)}_getByKeySelf(e,t){const n=this._getObjByKeyId(e.id);return n!==ya?n:this._throwOrNull(e,t)}_getByKeyDefault(t,n,i){let r;for(r=i instanceof v?this.parent:this;r instanceof e;){const e=r,n=e._getObjByKeyId(t.id);if(n!==ya)return n;r=e.parent}return null!==r?r.get(t.token,n):this._throwOrNull(t,n)}
1get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let i=0;i<e._providers.length;++i)n[i]=' "'+e.getProviderAtIndex(i).key.displayName+'" ';return n}(this).join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=na.get(Xs),e})();const ba=new te("AnalyzeForEntryComponents");class wa{}const Ca=f("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t),wa),Ea=f("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),wa),Sa=f("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t),wa),Da=f("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),wa);function xa(e){const t=[],n=new Map;function i(t){let i=n.get(t);if(!i){const r=e(t);n.set(t,i=r.then(Ra))}return i}return Ta.forEach((e,n)=>{const r=[];e.templateUrl&&r.push(i(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((t,n)=>{s.push(""),r.push(i(t).then(i=>{s[a+n]=i,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const l=Promise.all(r).then(()=>function(e){Oa.delete(e)}(n));t.push(l)}),Ia(),Promise.all(t).then(()=>{})}let Ta=new Map;const Oa=new Set;function ka(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Ia(){const e=Ta;return Ta=new Map,e}function Ra(e){return"string"==typeof e?e:e.text()}function Ma(e,t){let n=e.styles,i=e.classes,r=0;for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?r=e:1==r?i=N(i,e):2==r&&(n=N(n,e+": "+t[++o]+";"))}null!==n&&(e.styles=n),null!==i&&(e.classes=i)}let Aa=null;function Pa(){if(!Aa){const e=U.Symbol;if(e&&e.iterator)Aa=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Aa=n)}}}return Aa}function La(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Na(e,t){const n=ja(e),i=ja(t);if(n&&i)return function(e,t,n){const i=e[Pa()](),r=t[Pa()]();for(;;){const e=i.next(),t=r.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Na);{const r=e&&("object"==typeof e||"function"==typeof e),o=t&&("object"==typeof t||"function"==typeof t);return!(n||!r||i||!o)||La(e,t)}}class Fa{constructor(e){this.wrapped=e}static wrap(e){return new Fa(e)}static unwrap(e){return Fa.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Fa}}function ja(e){return!!Va(e)&&(Array.isArray(e)||!(e instanceof Map)&&Pa()in e)}function Va(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ha(e,t,n){return e[t]=n}function Ya(e,t){return e[t]}function Ba(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ga(e,t,n,i){const r=Ba(e,t,n);return Ba(e,t+1,i)||r}function Wa(e,t,n,i,r){const o=Ga(e,t,n,i);return Ba(e,t+2,r)||o}function Ua(e,t,n,i,r,o){const s=Ga(e,t,n,i);return Ga(e,t+2,r,o)||s}function za(e,t,n,i){const r=ct();return Ba(r,wt(),t)&&uo(At(),e,t,ut(),r,n,i),za}function qa(e,t){let n=!1,i=_t();for(let o=1;o<t.length;o+=2)n=Ba(e,i++,t[o])||n;if(bt(i),!n)return wr;let r=t[0];for(let o=1;o<t.length;o+=2)r+=sn(t[o])+t[o+1];return r}function Ka(e,t,n,i){return Ba(e,wt(),n)?t+sn(n)+i:wr}function $a(e,t,n,i,r,o){const s=Ga(e,_t(),n,r);return Ct(2),s?t+sn(n)+i+sn(r)+o:wr}function Qa(e,t,n,i,r,o,s,a){const l=Wa(e,_t(),n,r,s);return Ct(3),l?t+sn(n)+i+sn(r)+o+sn(s)+a:wr}function Xa(e,t,n,i,r,o,s,a,l,c){const u=Ua(e,_t(),n,r,s,l);return Ct(4),u?t+sn(n)+i+sn(r)+o+sn(s)+a+sn(l)+c:wr}function Ja(e,t,n,i,r,o,s,a,l,c,u,d){const h=_t();let p=Ua(e,h,n,r,s,l);return p=Ba(e,h+4,u)||p,Ct(5),p?t+sn(n)+i+sn(r)+o+sn(s)+a+sn(l)+c+sn(u)+d:wr}function Za(e,t,n,i,r,o,s,a,l,c,u,d,h,p){const f=_t();let m=Ua(e,f,n,r,s,l);return m=Ga(e,f+4,u,h)||m,Ct(6),m?t+sn(n)+i+sn(r)+o+sn(s)+a+sn(l)+c+sn(u)+d+sn(h)+p:wr}function el(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m){const g=_t();let y=Ua(e,g,n,r,s,l);return y=Wa(e,g+4,u,h,f)||y,Ct(7),y?t+sn(n)+i+sn(r)+o+sn(s)+a+sn(l)+c+sn(u)+d+sn(h)+p+sn(f)+m:wr}function tl(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y){const v=_t();let _=Ua(e,v,n,r,s,l);return _=Ua(e,v+4,u,h,f,g)||_,Ct(8),_?t+sn(n)+i+sn(r)+o+sn(s)+a+sn(l)+c+sn(u)+d+sn(h)+p+sn(f)+m+sn(g)+y:wr}function nl(e,t,n,i,r,o){const s=ct(),a=Ka(s,t,n,i);return a!==wr&&uo(At(),e,a,ut(),s,r,o),nl}function il(e,t,n,i,r,o,s,a){const l=ct(),c=$a(l,t,n,i,r,o);return c!==wr&&uo(At(),e,c,ut(),l,s,a),il}function rl(e,t,n,i,r,o,s,a,l,c){const u=ct(),d=Qa(u,t,n,i,r,o,s,a);return d!==wr&&uo(At(),e,d,ut(),u,l,c),rl}function ol(e,t,n,i,r,o,s,a,l,c,u,d){const h=ct(),p=Xa(h,t,n,i,r,o,s,a,l,c);return p!==wr&&uo(At(),e,p,ut(),h,u,d),ol}function sl(e,t,n,i,r,o,s,a,l,c,u,d,h,p){const f=ct(),m=Ja(f,t,n,i,r,o,s,a,l,c,u,d);return m!==wr&&uo(At(),e,m,ut(),f,h,p),sl}function al(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m){const g=ct(),y=Za(g,t,n,i,r,o,s,a,l,c,u,d,h,p);return y!==wr&&uo(At(),e,y,ut(),g,f,m),al}function ll(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y){const v=ct(),_=el(v,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m);return _!==wr&&uo(At(),e,_,ut(),v,g,y),ll}function cl(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y,v,_){const b=ct(),w=tl(b,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y);return w!==wr&&uo(At(),e,w,ut(),b,v,_),cl}function ul(e,t,n,i){const r=ct(),o=qa(r,t);if(o!==wr){const t=ut();uo(At(),e,o,t,r,n,i)}return ul}function dl(e){const t=ir(e);wo(t[1],t,e)}function hl(e){!function(e,t){const n=0===e.flags;if(e.flags|=1,n&&e.clean==Lr){let t;e.clean=new Promise(e=>t=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,bo(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=Lr,t(null)})}}
1(_o(ir(e))[8])}function pl(e){const t=ct(),n=ut(),i=function(e,t,n,i,r){const o=n+19,s=t[o]=t[11].createComment(""),a=Vr(e,t[6],n,0,null,null),l=t[o]=fo(s,t,s,a);return $o(e,t,s,a),rr(s,t),vo(t,l),a}(n,t,e);n.firstCreatePass&&(i.tViews=[]),mt()}function fl(e,t,n,i,r,o,s,a){const l=ct(),c=ut(),u=e+19,d=c.firstCreatePass?function(e,t,n,i,r,o,s,a,l){const c=t.consts,u=Vr(t,n[6],e,0,s||null,Ji(c,a));eo(t,n,u,Ji(c,l)),jt(t,u);const d=u.tViews=$r(2,-1,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),h=Xr(0,null,2,-1,null,null);return h.injectorIndex=u.injectorIndex,d.node=h,null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(e,c,l,t,n,i,r,o,s):c.data[u];pt(d,!1);const h=l[11].createComment("");$o(c,l,h,d),rr(h,l),vo(l,l[u]=fo(h,l,h,d)),nt(d)&&zr(c,l,d),null!=s&&qr(l,d,a)}function ml(e){const t=ct(),n=ut();if(pt(zi(n.data,e),!0),t[e+19][2]=0,!gt())if(3==(3&t[2])){const e=n.preOrderCheckHooks;null!==e&&Vt(t,e,null)}else{const e=n.preOrderHooks;null!==e&&Ht(t,e,0,null),Yt(t,0)}}function gl(){let e=ht();ft()?mt():(e=e.parent,pt(e,!1));const t=ct()[e.index],n=er(t);for(;n<t.length-9;)Vo(t,n)}function yl(e,t,n,i){const r=n+19;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}function vl(e){return zi(ot.lFrame.contextLView,e)}function _l(e,t=w.Default){const n=ct();return null==n?de(e,t):Cn(ht(),n,V(e),t)}function bl(e){return wn(ht(),e)}function wl(){throw new Error("invalid")}function Cl(e,t,n){const i=ct();if(Ba(i,wt(),t)){const r=At();Zr(ut(),i,r,e,t,n)}return Cl}function El(e,t,n,i,r){const o=t.inputs,s=r?"class":"style";ko(e,n,o[s]||r&&o.className,s,i)}function Sl(e,t,n,i){const r=ct(),o=ut(),s=19+e,a=r[11],l=r[s]=Fr(t,a,ot.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,s){const a=t.consts,l=Ji(a,o),c=Vr(t,n[6],e,3,r,l);return eo(t,n,c,Ji(a,s)),null!==c.mergedAttrs&&Ma(c,c.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,c),c}(e,o,r,0,t,n,i):o.data[s];pt(c,!0);const u=c.mergedAttrs;null!==u&&Qt(a,l,u);const d=c.classes;null!==d&&is(a,l,d);const h=c.styles;null!==h&&ns(a,l,h),$o(o,r,l,c),0===ot.lFrame.elementDepthCount&&rr(l,r),ot.lFrame.elementDepthCount++,nt(c)&&(zr(o,r,c),Ur(o,c,r)),null!==i&&qr(r,c)}
1function Dl(){let e=ht();ft()?mt():(e=e.parent,pt(e,!1));const t=e;ot.lFrame.elementDepthCount--;const n=ut();n.firstCreatePass&&(jt(n,e),et(e)&&n.queries.elementEnd(e)),null!==t.classes&&function(e){return 0!=(16&e.flags)}(t)&&El(n,t,ct(),t.classes,!0),null!==t.styles&&function(e){return 0!=(32&e.flags)}(t)&&El(n,t,ct(),t.styles,!1)}function xl(e,t,n,i){Sl(e,t,n,i),Dl()}function Tl(e,t,n){const i=ct(),r=ut(),o=e+19,s=r.firstCreatePass?function(e,t,n,i,r){const o=t.consts,s=Ji(o,i),a=Vr(t,n[6],e,4,"ng-container",s);return null!==s&&Ma(a,s),eo(t,n,a,Ji(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,r,i,t,n):r.data[o];pt(s,!0);const a=i[o]=i[11].createComment("");$o(r,i,a,s),rr(a,i),nt(s)&&(zr(r,i,s),Ur(r,s,i)),null!=n&&qr(i,s)}function Ol(){let e=ht();const t=ut();ft()?mt():(e=e.parent,pt(e,!1)),t.firstCreatePass&&(jt(t,e),et(e)&&t.queries.elementEnd(e))}function kl(e,t,n){Tl(e,t,n),Ol()}function Il(e,t,n){const i=ct(),r=ht(),o=2===r.type?r.parent:r,s=i[o.index];let a=function(e,t,n){for(let i=t+9;i<e.length;i++){const t=e[i][1].id;if(t===n)return e[i];if(!(t<n))break;Vo(e,i-9)}return null}(s,er(s),e);if(a)ot.lFrame.isParent=!0,Ot(a,a[1].node);else{a=jr(i,function(e,t,n,i){const r=ct()[1],o=i.tViews;return(e>=o.length||null==o[e])&&(o[e]=$r(2,e,null,t,n,r.directiveRegistry,r.pipeRegistry,null,null,r.consts)),o[e]}(e,t,n,o),null,16,null,null);const s=ft()?r:r&&r.parent;Hr(a[1],s,e,a),Ot(a,a[1].node)}return s&&(Qi(a)&&No(a[1],a,s,er(s)),s[2]+=2),Qi(a)?3:2}function Rl(){const e=ct(),t=ut(),n=e[6],i=e[8];Qi(e)&&Yr(t,e,i),Br(t,e,t.template,i),Rt(),pt(n,!1)}function Ml(){return ct()}function Al(e){return!!e&&"function"==typeof e.then}function Pl(e){return!!e&&"function"==typeof e.subscribe}function Ll(e,t,n=!1,i){const r=ct(),o=ut(),s=ht();return Fl(o,r,r[11],s,e,t,n,i),Ll}function Nl(e,t,n=!1,i){const r=ht(),o=ct(),s=To(r,o);return Fl(ut(),o,s,r,e,t,n,i),Nl}function Fl(e,t,n,i,r,o,s=!1,a){const l=nt(i),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=Do(t);let d=!0;if(3===i.type){const h=Gi(i,t),p=a?a(h):Pe,f=p.target||h,m=u.length,g=a?e=>a(Yi(e[i.index])).target:i.index;if(Kt(n)){let s=null;if(!a&&l&&(s=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const e=r[o];if(e===n&&r[o+1]===i){const e=t[7],n=r[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,r,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=Vl(i,t,o,!1);const e=n.listen(p.name||f,r,o);u.push(o,e),c&&c.push(r,g,m,m+1)}}else o=Vl(i,t,o,!0),f.addEventListener(r,o,s),u.push(o),c&&c.push(r,g,m,s)}const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(o),s=u.length;u.push(o,e),c&&c.push(r,i.index,s,-(s+1))}}}function jl(e,t,n){try{return!1!==t(n)}catch(i){return Oo(e,i),!1}}function Vl(e,t,n,i){return function r(o){if(o===Function)return n;const s=2&e.flags?qi(e.index,t):t;0==(32&t[2])&&_o(s);let a=jl(t,n,o),l=r.__ngNextListenerFn__;for(;l;)a=jl(t,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Hl(e=1){return Mt(e)}function Yl(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const o=t[r];if("*"!==o){if(null===i?yr(e,o,!0):vr(i,o))return r}else n=r}return n}function Bl(e){const t=ct()[16][6];if(!t.projection){const n=t.projection=De(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?Yl(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}let Gl=!1;function Wl(e){Gl=e}function Ul(e,t=0,n){const i=ct(),r=ut(),o=Vr(r,i[6],e,1,null,n||null);null===o.projection&&(o.projection=t),mt(),Gl||es(r,i,o)}function zl(e,t,n){return ql(e,"",t,"",n),zl}function ql(e,t,n,i,r){const o=ct(),s=Ka(o,t,n,i);if(s!==wr){const t=At();Zr(ut(),o,t,e,s,r)}return ql}function Kl(e,t,n,i,r,o,s){const a=ct(),l=$a(a,t,n,i,r,o);if(l!==wr){const t=At();Zr(ut(),a,t,e,l,s)}return Kl}function $l(e,t,n,i,r,o,s,a,l){const c=ct(),u=Qa(c,t,n,i,r,o,s,a);if(u!==wr){const t=At();Zr(ut(),c,t,e,u,l)}return $l}function Ql(e,t,n,i,r,o,s,a,l,c,u){const d=ct(),h=Xa(d,t,n,i,r,o,s,a,l,c);if(h!==wr){const t=At();Zr(ut(),d,t,e,h,u)}return Ql}function Xl(e,t,n,i,r,o,s,a,l,c,u,d,h){const p=ct(),f=Ja(p,t,n,i,r,o,s,a,l,c,u,d);if(f!==wr){const t=At();Zr(ut(),p,t,e,f,h)}return Xl}function Jl(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f){const m=ct(),g=Za(m,t,n,i,r,o,s,a,l,c,u,d,h,p);if(g!==wr){const t=At();Zr(ut(),m,t,e,g,f)}return Jl}function Zl(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g){const y=ct(),v=el(y,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m);if(v!==wr){const t=At();Zr(ut(),y,t,e,v,g)}return Zl}function ec(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y,v){const _=ct(),b=tl(_,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y);if(b!==wr){const t=At();Zr(ut(),_,t,e,b,v)}return ec}
1function tc(e,t,n){const i=ct(),r=qa(i,t);if(r!==wr){const t=At();Zr(ut(),i,t,e,r,n)}return tc}const nc=[];function ic(e,t,n,i,r){const o=e[n+1],s=null===t;let a=i?Ir(o):Mr(o),l=!1;for(;0!==a&&(!1===l||s);){const n=e[a+1];rc(e[a],t)&&(l=!0,e[a+1]=i?Pr(n):Rr(n)),a=i?Ir(n):Mr(n)}l&&(e[n+1]=i?Rr(o):Pr(o))}function rc(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Oe(e,t)>=0}const oc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sc(e){return e.substring(oc.key,oc.keyEnd)}function ac(e){return e.substring(oc.value,oc.valueEnd)}function lc(e,t){const n=oc.textEnd;return n===t?-1:(t=oc.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,oc.key=t,n),dc(e,t,n))}function cc(e,t){const n=oc.textEnd;let i=oc.key=dc(e,t,n);return n===i?-1:(i=oc.keyEnd=function(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90);)t++;return t}(e,i,n),i=hc(e,i,n),i=oc.value=dc(e,i,n),i=oc.valueEnd=function(e,t,n){let i=-1,r=-1,o=-1,s=t,a=s;for(;s<n;){const l=e.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=pc(e,l,s,n):t===s-4&&85===o&&82===r&&76===i&&40===l?a=s=pc(e,41,s,n):l>32&&(a=s),o=r,r=i,i=-33&l}return a}(e,i,n),hc(e,i,n))}function uc(e){oc.key=0,oc.keyEnd=0,oc.value=0,oc.valueEnd=0,oc.textEnd=e.length}function dc(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function hc(e,t,n,i){return(t=dc(e,t,n))<n&&t++,t}function pc(e,t,n,i){let r=-1,o=n;for(;o<i;){const n=e.charCodeAt(o++);if(n==t&&92!==r)return o;r=92==n&&92===r?0:n}throw new Error}function fc(e){!function(e){ot.lFrame.currentSanitizer=e}(e)}function mc(e,t,n){return wc(e,t,n,!1),mc}function gc(e,t){return wc(e,t,null,!0),gc}function yc(e){Cc(Tc,vc,e,!1)}function vc(e,t){for(let n=function(e){return uc(e),cc(e,dc(e,0,oc.textEnd))}(t);n>=0;n=cc(t,n))Tc(e,sc(t),ac(t))}function _c(e){Cc(xe,bc,e,!0)}function bc(e,t){for(let n=function(e){return uc(e),lc(e,dc(e,0,oc.textEnd))}(t);n>=0;n=lc(t,n))xe(e,sc(t),!0)}function wc(e,t,n,i){const r=ct(),o=ut(),s=Ct(2);if(o.firstUpdatePass&&Sc(o,e,s,i),t!==wr&&Ba(r,s,t)){let a;null==n&&(a=function(){const e=ot.lFrame;return null===e?null:e.currentSanitizer}())&&(n=a),Oc(o,o.data[At()+19],r,r[11],e,r[s+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=L(Wn(e)))),e}(t,n),i,s)}}function Cc(e,t,n,i){const r=ut(),o=Ct(2);r.firstUpdatePass&&Sc(r,null,o,i);const s=ct();if(n!==wr&&Ba(s,o,n)){const a=r.data[At()+19];if(Rc(a,i)&&!Ec(r,o)){let e=i?a.classes:a.styles;"string"==typeof n&&(n=N(e,n)),El(r,a,s,n,i)}else!function(e,t,n,i,r,o,s,a){r===wr&&(r=nc);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,p=c<o.length?o[c+1]:void 0;let f=null,m=void 0;u===d?(l+=2,c+=2,h!==p&&(f=d,m=p)):null===d||null!==u&&u<d?(l+=2,f=u):(c+=2,f=d,m=p),null!==f&&Oc(e,t,n,i,f,m,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return nc;const i=[];if(Array.isArray(n))for(let r=0;r<n.length;r++)e(i,n[r],!0);else if("object"==typeof n)if(n instanceof Map)n.forEach((t,n)=>e(i,n,t));else if(n instanceof Set)n.forEach(t=>e(i,t,!0));else for(const r in n)n.hasOwnProperty(r)&&e(i,r,n[r]);else"string"==typeof n&&t(i,n);return i}(e,t,n),i,o)}}function Ec(e,t){return t>=e.expandoStartIndex}function Sc(e,t,n,i){const r=e.data;if(null===r[n+1]){const o=r[At()+19],s=Ec(e,n);Rc(o,i)&&null===t&&!s&&(t=!1),t=function(e,t,n,i){const r=function(e){const t=ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=xc(n=Dc(null,e,t,n,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(n=Dc(r,e,t,n,i),null===o){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Mr(i))return e[Ir(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Dc(null,e,t,n[1],i),n=xc(n,t.attrs,i),function(e,t,n,i){e[Ir(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else o=function(e,t,n){let i=void 0;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++)i=xc(i,e[o].hostAttrs,n);return xc(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){let s=o?t.classBindings:t.styleBindings,a=Ir(s),l=Mr(s);e[i]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||Oe(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Ir(e[a+1]);e[i+1]=kr(t,a),0!==t&&(e[t+1]=Ar(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=kr(a,0),0!==a&&(e[a+1]=Ar(e[a+1],i)),a=i;else e[i+1]=kr(l,0),0===a?a=i:e[l+1]=Ar(e[l+1],i),l=i;u&&(e[i+1]=Rr(e[i+1])),ic(e,c,i,!0),ic(e,c,i,!1),function(e,t,n,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Oe(o,t)>=0&&(n[i+1]=Pr(n[i+1]))}(t,c,e,i,o),s=kr(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,n,s,i)}}function Dc(e,t,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;
1for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],i=xc(i,o.hostAttrs,r),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function xc(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?r=s:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),xe(e,s,!!n||t[++o]))}return void 0===e?null:e}function Tc(e,t,n){Fi(t)&&(n=Ii(n)),xe(e,t,n)}function Oc(e,t,n,i,r,o,s,a){if(3!==t.type)return;const l=e.data,c=l[a+1];Ic(1==(1&c)?kc(l,t,n,r,Mr(c),s):void 0)||(Ic(o)||function(e){return 2==(2&e)}(c)&&(o=kc(l,null,n,r,a,s)),function(e,t,n,i,r){const o=Kt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{const t=-1==i.indexOf("-")?void 0:2;null==r?o?e.removeStyle(n,i,t):n.style.removeProperty(i):o?e.setStyle(n,i,r,t):n.style.setProperty(i,r)}}(i,s,Bi(At(),n),r,o))}function kc(e,t,n,i,r,o){const s=null===t;let a=void 0;for(;r>0;){const t=e[r],o=Array.isArray(t),l=o?t[1]:t,c=null===l;let u=n[r+1];u===wr&&(u=c?nc:void 0);let d=c?Te(u,i):l===i?u:void 0;if(o&&!Ic(d)&&(d=Te(t,i)),Ic(d)&&(a=d,s))return a;const h=e[r+1];r=s?Ir(h):Mr(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=Te(e,i))}return a}function Ic(e){return void 0!==e}function Rc(e,t){return 0!=(e.flags&(t?16:32))}function Mc(e,t=""){const n=ct(),i=ut(),r=e+19,o=i.firstCreatePass?Vr(i,n[6],e,3,null,null):i.data[r],s=n[r]=Po(t,n[11]);$o(i,n,s,o),pt(o,!1)}function Ac(e){return Pc("",e,""),Ac}function Pc(e,t,n){const i=ct(),r=Ka(i,e,t,n);return r!==wr&&Io(i,At(),r),Pc}function Lc(e,t,n,i,r){const o=ct(),s=$a(o,e,t,n,i,r);return s!==wr&&Io(o,At(),s),Lc}function Nc(e,t,n,i,r,o,s){const a=ct(),l=Qa(a,e,t,n,i,r,o,s);return l!==wr&&Io(a,At(),l),Nc}function Fc(e,t,n,i,r,o,s,a,l){const c=ct(),u=Xa(c,e,t,n,i,r,o,s,a,l);return u!==wr&&Io(c,At(),u),Fc}function jc(e,t,n,i,r,o,s,a,l,c,u){const d=ct(),h=Ja(d,e,t,n,i,r,o,s,a,l,c,u);return h!==wr&&Io(d,At(),h),jc}function Vc(e,t,n,i,r,o,s,a,l,c,u,d,h){const p=ct(),f=Za(p,e,t,n,i,r,o,s,a,l,c,u,d,h);return f!==wr&&Io(p,At(),f),Vc}function Hc(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f){const m=ct(),g=el(m,e,t,n,i,r,o,s,a,l,c,u,d,h,p,f);return g!==wr&&Io(m,At(),g),Hc}function Yc(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g){const y=ct(),v=tl(y,e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g);return v!==wr&&Io(y,At(),v),Yc}function Bc(e){const t=ct(),n=qa(t,e);return n!==wr&&Io(t,At(),n),Bc}function Gc(e,t,n){Cc(xe,bc,Ka(ct(),e,t,n),!0)}function Wc(e,t,n,i,r){Cc(xe,bc,$a(ct(),e,t,n,i,r),!0)}function Uc(e,t,n,i,r,o,s){Cc(xe,bc,Qa(ct(),e,t,n,i,r,o,s),!0)}function zc(e,t,n,i,r,o,s,a,l){Cc(xe,bc,Xa(ct(),e,t,n,i,r,o,s,a,l),!0)}function qc(e,t,n,i,r,o,s,a,l,c,u){Cc(xe,bc,Ja(ct(),e,t,n,i,r,o,s,a,l,c,u),!0)}function Kc(e,t,n,i,r,o,s,a,l,c,u,d,h){Cc(xe,bc,Za(ct(),e,t,n,i,r,o,s,a,l,c,u,d,h),!0)}function $c(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f){Cc(xe,bc,el(ct(),e,t,n,i,r,o,s,a,l,c,u,d,h,p,f),!0)}function Qc(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g){Cc(xe,bc,tl(ct(),e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g),!0)}function Xc(e){Cc(xe,bc,qa(ct(),e),!0)}function Jc(e,t,n,i,r){return wc(e,Ka(ct(),t,n,i),r,!1),Jc}function Zc(e,t,n,i,r,o,s){return wc(e,$a(ct(),t,n,i,r,o),s,!1),Zc}function eu(e,t,n,i,r,o,s,a,l){return wc(e,Qa(ct(),t,n,i,r,o,s,a),l,!1),eu}function tu(e,t,n,i,r,o,s,a,l,c,u){return wc(e,Xa(ct(),t,n,i,r,o,s,a,l,c),u,!1),tu}function nu(e,t,n,i,r,o,s,a,l,c,u,d,h){return wc(e,Ja(ct(),t,n,i,r,o,s,a,l,c,u,d),h,!1),nu}function iu(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f){return wc(e,Za(ct(),t,n,i,r,o,s,a,l,c,u,d,h,p),f,!1),iu}function ru(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g){return wc(e,el(ct(),t,n,i,r,o,s,a,l,c,u,d,h,p,f,m),g,!1),ru}function ou(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y,v){return wc(e,tl(ct(),t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y),v,!1),ou}function su(e,t,n){return wc(e,qa(ct(),t),n,!1),su}function au(e,t,n){const i=ct();if(Ba(i,wt(),t)){const r=At();Zr(ut(),i,r,e,t,n,!0)}return au}function lu(e,t,n){const i=ct();if(Ba(i,wt(),t)){const r=At();Zr(ut(),i,r,e,t,n,!0,To)}return lu}function cu(e){_u(e);const t=mu(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function uu(e){_u(e);const t=mu(e,!1);return null===t?null:t.lView[8]}function du(e){const t=mu(e,!1);if(null===t)return null;let n,i=t.lView;for(;null===i[0]&&(n=Cr(i));)i=n;return 512&i[2]?null:i[8]}function hu(e){return[...Er(e).components]}function pu(e){const t=mu(e,!1);return null===t?Xs.NULL:new kn(t.lView[1].data[t.nodeIndex],t.lView)}function fu(e){const t=mu(e);return void 0===t.directives&&(t.directives=lr(t.nodeIndex,t.lView,!1)),null===t.directives?[]:[...t.directives]}function mu(e,t=!0){const n=tr(e);if(!n&&t)throw new Error("Invalid ng target");return n}function gu(e){return tr(e).native}function yu(e){_u(e);const t=mu(e,!1);if(null===t)return[];const n=t.lView,i=n[7],r=n[1].cleanup,o=[];if(r&&i)for(let s=0;s<r.length;){const t=r[s++],a=r[s++];if("string"==typeof t){const l=t,c=Yi(n[a]),u=i[r[s++]],d=r[s++],h="boolean"==typeof d||d>=0?"dom":"output",p="boolean"==typeof d&&d;e==c&&o.push({element:e,name:l,callback:u,useCapture:p,type:h})}}return o.sort(vu),o}function vu(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function _u(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}
1function bu(e){hl(e),hu(e).forEach(e=>dl(e))}let wu=!1;function Cu(){wu||(wu=!0,Eu("getComponent",cu),Eu("getContext",uu),Eu("getListeners",yu),Eu("getOwningComponent",du),Eu("getHostElement",gu),Eu("getInjector",pu),Eu("getRootComponents",hu),Eu("getDirectives",fu),Eu("applyChanges",bu))}function Eu(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=U;if(n){let i=n.ng;i||(i=n.ng={}),i[e]=t}}}function Su(e,t={}){const n=t.rendererFactory||$t,i=t.sanitizer||null,r=qe(e);r.type!=e&&(r.type=e);const o=r.selectors[0][0],s=Qr(n.createRenderer(null,null),t.host||o,r.encapsulation),a=r.onPush?576:528,l=Tu(t.scheduler,t.playerHandler),c=n.createRenderer(s,r),u=$r(0,-1,null,1,0,null,null,null,null,null),d=jr(null,u,l,a,null,null,n,c,void 0,t.injector||null);let h;Ot(d,null);try{n.begin&&n.begin(),h=xu(Du(s,r,d,n,c,null,i),r,d,l,t.hostFeatures||null),Yr(u,d,null),Br(u,d,null,null)}finally{Rt(),n.end&&n.end()}return h}function Du(e,t,n,i,r,o,s){const a=n[1];n[19]=e;const l=Vr(a,null,0,3,null,null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Ma(l,c),null!==e&&(Qt(r,e,c),null!==l.classes&&is(r,e,l.classes),null!==l.styles&&ns(r,e,l.styles)));const u=i.createRenderer(e,t);null!==e&&o&&(Kt(r)?r.setAttribute(e,"ng-version",o):e.setAttribute("ng-version",o));const d=jr(n,Kr(t),null,t.onPush?64:16,n[19],l,i,u,s);return a.firstCreatePass&&(bn(gn(l,n),a,t.type),oo(a,l),ao(l,n.length,1)),vo(n,d),n[19]=d}function xu(e,t,n,i,r){const o=n[1],s=function(e,t,n){const i=ht();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ro(e,i,1),lo(e,t,n));const r=xn(t,e,t.length-1,i);rr(r,t);const o=Gi(i,t);return o&&rr(o,t),r}(o,n,t);i.components.push(s),e[8]=s,r&&r.forEach(e=>e(s,t)),t.contentQueries&&t.contentQueries(1,s,n.length-1);const a=ht();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Pt(a.index-19);const e=n[1];to(e,t),no(e,n,t.hostVars),io(t,s)}return s}function Tu(e,t){return{components:[],scheduler:e||ln,clean:So,playerHandler:t||null,flags:0}}function Ou(e,t){const n=$i(e)[1],i=n.data.length-1;jt(n,{directiveStart:i,directiveEnd:i+1})}function ku(e){return Er(e).clean}function Iu(e){return Object.getPrototypeOf(e.prototype).constructor}function Ru(e){let t=Iu(e.type),n=!0;const i=[e];for(;t;){let r=void 0;if(it(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const t=e;t.inputs=Mu(e.inputs),t.declaredInputs=Mu(e.declaredInputs),t.outputs=Mu(e.outputs);const n=r.hostBindings;n&&Lu(e,n);const o=r.viewQuery,s=r.contentQueries;o&&Au(e,o),s&&Pu(e,s),E(e.inputs,r.inputs),E(e.declaredInputs,r.declaredInputs),E(e.outputs,r.outputs),t.afterContentChecked=t.afterContentChecked||r.afterContentChecked,t.afterContentInit=e.afterContentInit||r.afterContentInit,t.afterViewChecked=e.afterViewChecked||r.afterViewChecked,t.afterViewInit=e.afterViewInit||r.afterViewInit,t.doCheck=e.doCheck||r.doCheck,t.onDestroy=e.onDestroy||r.onDestroy,t.onInit=e.onInit||r.onInit}const t=r.features;if(t)for(let i=0;i<t.length;i++){const r=t[i];r&&r.ngInherit&&r(e),r===Ru&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Zt(r.hostAttrs,n=Zt(n,r.hostAttrs))}}(i)}function Mu(e){return e===Pe?{}:e===Le?[]:e}function Au(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function Pu(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function Lu(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}const Nu=["providersResolver"],Fu=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function ju(e){let t=Iu(e.type),n=void 0;n=it(e)?t.\u0275cmp:t.\u0275dir;const i=e;for(const r of Nu)i[r]=n[r];if(it(n))for(const r of Fu)i[r]=n[r]}class Vu{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hu(){return Yu.ngInherit=!0,Yu}function Yu(e){e.type.prototype.ngOnChanges&&(e.setInput=Bu,e.onChanges=function(){const e=Gu(this),t=e&&e.current;if(t){const n=e.previous;if(n===Pe)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function Bu(e,t,n,i){const r=Gu(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Pe,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],l=s[a];o[a]=new Vu(l&&l.currentValue,t,s===Pe),e[i]=t}function Gu(e){return e.__ngSimpleChanges__||null}function Wu(e,t,n,i,r){if(e=V(e),Array.isArray(e))for(let o=0;o<e.length;o++)Wu(e[o],t,n,i,r);else{const o=ut(),s=ct();let a=Ks(e)?e:V(e.provide),l=Us(e);const c=ht(),u=65535&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>16;if(e.useClass||Ks(e)){const n=(e.useClass||e).prototype.ngOnDestroy;n&&(o.destroyHooks||(o.destroyHooks=[])).push(t.length,n)}if(Ks(e)||!e.multi){const e=new Wt(l,r,_l),i=zu(a,t,r?u:u+h,d);-1==i?(bn(gn(c,s),o,a),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(e),s.push(e)):(n[i]=e,s[i]=e)}else{const e=zu(a,t,u+h,d),p=zu(a,t,u,u+h),f=e>=0&&n[e],m=p>=0&&n[p];if(r&&!m||!r&&!f){bn(gn(c,s),o,a);const e=function(e,t,n,i,r){const o=new Wt(e,n,_l);return o.multi=[],o.index=t,o.componentProviders=0,Uu(o,r,i&&!n),o}(r?Ku:qu,n.length,r,i,l);!r&&m&&(n[p].providerFactory=e),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(e),s.push(e)}else Uu(n[r?p:e],l,!r&&i);!r&&i&&m&&n[p].componentProviders++}}}function Uu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function zu(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function qu(e,t,n,i){return $u(this.multi,[])}function Ku(e,t,n,i){const r=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=xn(n,n[1],this.providerFactory.index,i);o=t.slice(0,e),$u(r,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],$u(r,o);return o}function $u(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Qu(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=ut();if(i.firstCreatePass){const r=it(e);Wu(n,i.data,i.blueprint,r,!0),Wu(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class Xu{}class Ju{}function Zu(e){const t=Error(`No component factory found for ${L(e)}. Did you add it to @NgModule.entryComponents?`);return t[ed]=e,t}const ed="ngComponent";
vendor: 17,234 bytes, line 1
1class td{resolveComponentFactory(e){throw Zu(e)}}let nd=(()=>{class e{}return e.NULL=new td,e})();class id{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let i=0;i<e.length;i++){const t=e[i];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Zu(e);return new rd(t,this._ngModule)}}class rd extends Ju{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,i){return this.factory.create(e,t,n,i||this.ngModule)}}let od=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>ad(e),e})();const sd=function(e){return cs(e,ht(),ct())},ad=sd;class ld{}const cd=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let ud=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>hd(),e})();const dd=function(){const e=ct(),t=qi(ht().index,e);return function(e){const t=e[11];if(Kt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Je(t)?t:e)},hd=dd;let pd=(()=>{class e{}return e.\u0275prov=S({token:e,providedIn:"root",factory:()=>null}),e})();class fd{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const md=new fd("9.0.1");class gd{constructor(){}supports(e){return ja(e)}create(e){return new vd(e)}}const yd=(e,t)=>t;class vd{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yd}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const o=!n||t&&t.currentIndex<Cd(n,i,r)?t:n,s=Cd(o,i,r),a=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);const e=s-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,o=i+n;t<=o&&o<e&&(r[n]=i+1)}r[o.previousIndex]=t-e}}s!==a&&e(o,s,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!ja(e))throw new Error(`Error trying to diff '${L(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==r&&La(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,n,i,t)),La(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),o=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Pa()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&La(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,e,i,t)),La(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),o=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(La(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(La(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):e=this._addAfter(new _d(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wd),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class _d{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bd{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&La(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class wd{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new bd,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Cd(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Ed{constructor(){}supports(e){return e instanceof Map||Va(e)}create(){return new Sd}}class Sd{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Va(e)))throw new Error(`Error trying to diff '${L(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Dd(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){La(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Dd{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let xd=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new v,new g]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=S({token:e,providedIn:"root",factory:()=>new e([new gd])}),e})(),Td=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new v,new g]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=S({token:e,providedIn:"root",factory:()=>new e([new Ed])}),e})();const Od=[new Ed],kd=new xd([new gd]),Id=new Td(Od);let Rd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ad(e,od),e})();const Md=function(e,t){return us(e,t,ht(),ct())},Ad=Md;let Pd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Nd(e,od),e})();const Ld=function(e,t){return ds(e,t,ht(),ct())},Nd=Ld;function Fd(e,t,n,i){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return jd(n,t),n}(r,e)}function jd(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Vd(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Hd(e,t,n){const i=e.state,r=1792&i;return r===t?(e.state=-1793&i|n,e.initIndex=-1,!0):r===n}function Yd(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Bd(e,t){return e.nodes[t]}function Gd(e,t){return e.nodes[t]}function Wd(e,t){return e.nodes[t]}function Ud(e,t){return e.nodes[t]}function zd(e,t){return e.nodes[t]}class qd{}const Kd={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},$d=()=>{},Qd=new Map;function Xd(e){let t=Qd.get(e);return t||(t=L(e)+"_"+Qd.size,Qd.set(e,t)),t}function Jd(e,t,n,i){if(Fa.isWrapped(i)){i=Fa.unwrap(i);const r=e.def.nodes[t].bindingIndex+n,o=Fa.unwrap(e.oldValues[r]);e.oldValues[r]=new Fa(o)}return i}function Zd(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let eh=0;function th(e,t,n,i){return!(!(2&e.state)&&La(e.oldValues[t.bindingIndex+n],i))}function nh(e,t,n,i){return!!th(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function ih(e,t,n,i){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!Na(r,i)){const o=t.bindings[n].name;throw Fd(Kd.createDebugContext(e,t.nodeIndex),`${o}: ${r}`,`${o}: ${i}`,0!=(1&e.state))}}function rh(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function oh(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function sh(e,t,n,i){try{return rh(33554432&e.def.nodes[t].flags?Gd(e,t).componentView:e),Kd.handleEvent(e,t,n,i)}catch(r){e.root.errorHandler.handleError(r)}}function ah(e){return e.parent?Gd(e.parent,e.parentNodeDef.nodeIndex):null}function lh(e){return e.parent?e.parentNodeDef.parent:null}function ch(e,t){switch(201347067&t.flags){case 1:return Gd(e,t.nodeIndex).renderElement;case 2:return Bd(e,t.nodeIndex).renderText}}function uh(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function dh(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function hh(e){return 1<<e%32}function ph(e){const t={};let n=0;const i={};return e&&e.forEach(([e,r])=>{"number"==typeof e?(t[e]=r,n|=hh(e)):i[e]=r}),{matchedQueries:t,references:i,matchedQueryIds:n}}function fh(e,t){return e.map(e=>{let n,i;return Array.isArray(e)?[i,n]=e:(i=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:i,token:n,tokenKey:Xd(n)}})}function mh(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&i.element.componentRendererType.encapsulation===Me.Native?Gd(e,n.renderParent.nodeIndex).renderElement:void 0:t}const gh=new WeakMap;function yh(e){let t=gh.get(e);return t||(t=e(()=>$d),t.factory=e,gh.set(e,t)),t}function vh(e,t,n,i,r){3===t&&(n=e.renderer.parentNode(ch(e,e.def.lastRenderRootNode))),_h(e,t,0,e.def.nodes.length-1,n,i,r)}function _h(e,t,n,i,r,o,s){for(let a=n;a<=i;a++){const n=e.def.nodes[a];11&n.flags&&wh(e,n,t,r,o,s),a+=n.childCount}}function bh(e,t,n,i,r,o){let s=e;for(;s&&!uh(s);)s=s.parent;const a=s.parent,l=lh(s),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&wh(a,e,n,i,r,o),u+=e.childCount}if(!a.parent){const s=e.root.projectableNodes[t];if(s)for(let t=0;t<s.length;t++)Ch(e,s[t],n,i,r,o)}}
1function wh(e,t,n,i,r,o){if(8&t.flags)bh(e,t.ngContent.index,n,i,r,o);else{const s=ch(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Ch(e,s,n,i,r,o),32&t.bindingFlags&&Ch(Gd(e,t.nodeIndex).componentView,s,n,i,r,o)):Ch(e,s,n,i,r,o),16777216&t.flags){const s=Gd(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<s.length;e++)vh(s[e],n,i,r,o)}1&t.flags&&!t.element.name&&_h(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,r,o)}}function Ch(e,t,n,i,r,o){const s=e.renderer;switch(n){case 1:s.appendChild(i,t);break;case 2:s.insertBefore(i,t,r);break;case 3:s.removeChild(i,t);break;case 0:o.push(t)}}const Eh=/^:([^:]+):(.+)$/;function Sh(e){if(":"===e[0]){const t=e.match(Eh);return[t[1],t[2]]}return["",e]}function Dh(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function xh(e,t){let n="";for(let i=0;i<2*e;i+=2)n=n+t[i]+Oh(t[i+1]);return n+t[2*e]}function Th(e,t,n,i,r,o,s,a,l,c,u,d,h,p,f,m,g,y,v,_){switch(e){case 1:return t+Oh(n)+i;case 2:return t+Oh(n)+i+Oh(r)+o;case 3:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a;case 4:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c;case 5:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c+Oh(u)+d;case 6:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c+Oh(u)+d+Oh(h)+p;case 7:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c+Oh(u)+d+Oh(h)+p+Oh(f)+m;case 8:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c+Oh(u)+d+Oh(h)+p+Oh(f)+m+Oh(g)+y;case 9:return t+Oh(n)+i+Oh(r)+o+Oh(s)+a+Oh(l)+c+Oh(u)+d+Oh(h)+p+Oh(f)+m+Oh(g)+y+Oh(v)+_;default:throw new Error("Does not support more than 9 expressions")}}function Oh(e){return null!=e?e.toString():""}const kh=[],Ih={},Rh={},Mh=Xd(Xs),Ah=Xd(ne),Ph=Xd(ve);function Lh(e,t,n,i){return n=V(n),{index:-1,deps:fh(i,L(t)),flags:e,token:t,value:n}}function Nh(e){const t={},n=[];let i=null;for(let r=0;r<e.length;r++){const o=e[r];o.token===Ns&&(i=o.value),1073741824&o.flags&&n.push(o.token),o.index=r,t[Xd(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,scope:i}}function Fh(e,t,n=Xs.THROW_IF_NOT_FOUND){const i=le(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const r=t.tokenKey;switch(r){case Mh:case Ah:case Ph:return e}const o=e._def.providersByKey[r];let s;if(o){let t=e._providers[o.index];return void 0===t&&(t=e._providers[o.index]=jh(e,o)),t===Rh?void 0:t}if((s=T(t.token))&&function(e,t){const n=t.providedIn;return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,s)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:s.factory,deps:[],index:n,token:t.token},e._providers[n]=Rh,e._providers[n]=jh(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{le(i)}}function jh(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(Fh(e,n[0]));case 2:return new t(Fh(e,n[0]),Fh(e,n[1]));case 3:return new t(Fh(e,n[0]),Fh(e,n[1]),Fh(e,n[2]));default:const r=[];for(let t=0;t<i;t++)r[t]=Fh(e,n[t]);return new t(...r)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(Fh(e,n[0]));case 2:return t(Fh(e,n[0]),Fh(e,n[1]));case 3:return t(Fh(e,n[0]),Fh(e,n[1]),Fh(e,n[2]));default:const r=[];for(let t=0;t<i;t++)r[t]=Fh(e,n[t]);return t(...r)}}(e,t.value,t.deps);break;case 2048:n=Fh(e,t.deps[0]);break;case 256:n=t.value}return n===Rh||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Rh:n}function Vh(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,Se(n,t),Kd.dirtyParentQueries(i),Yh(i),i}function Hh(e,t,n){const i=t?ch(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(i),o=n.renderer.nextSibling(i);vh(n,2,r,o,void 0)}function Yh(e){vh(e,3,null,null,void 0)}const Bh={};function Gh(e,t,n,i,r,o){return new Uh(e,t,n,i,r,o)}function Wh(e){return e.viewDefFactory}class Uh extends Ju{constructor(e,t,n,i,r,o){super(),this.selector=e,this.componentType=t,this._inputs=i,this._outputs=r,this.ngContentSelectors=o,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,i){if(!i)throw new Error("ngModule should be provided");
vendor: 4,513 bytes, line 1
1const r=yh(this.viewDefFactory),o=r.nodes[0].element.componentProvider.nodeIndex,s=Kd.createRootView(e,t||[],n,r,i,Bh),a=Wd(s,o).instance;return n&&s.renderer.setAttribute(Gd(s,0).renderElement,"ng-version",md.full),new zh(s,new Qh(s),a)}}class zh extends Xu{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new od(Gd(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new ep(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function qh(e,t,n){return new Kh(e,t,n)}class Kh{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new od(this._data.renderElement)}get injector(){return new ep(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=lh(e),e=e.parent;return e?new ep(e,t):new ep(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Vh(this._data,e);Kd.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Qh(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const o=n||this.parentInjector;r||e instanceof rd||(r=o.get(ve));const s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,i){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),i.viewContainerParent=e,Ee(r,n,i),function(e,t){const n=ah(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,i),Kd.dirtyParentQueries(i),Hh(t,n>0?r[n-1]:null,i)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const i=e.viewContainer._embeddedViews,r=i[t];Se(i,t),null==n&&(n=i.length),Ee(i,n,r),Kd.dirtyParentQueries(r),Yh(r),Hh(e,n>0?i[n-1]:null,r)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Vh(this._data,e);t&&Kd.destroyView(t)}detach(e){const t=Vh(this._data,e);return t?new Qh(t):null}}function $h(e){return new Qh(e)}class Qh{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return vh(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){rh(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Kd.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Kd.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Kd.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Yh(this._view),Kd.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Xh(e,t){return new Jh(e,t)}class Jh extends Rd{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Qh(Kd.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new od(Gd(this._parentView,this._def.nodeIndex).renderElement)}}function Zh(e,t){return new ep(e,t)}class ep{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Xs.THROW_IF_NOT_FOUND){return Kd.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Xd(e)},t)}}function tp(e,t){const n=e.def.nodes[t];
1if(1&n.flags){const t=Gd(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Bd(e,n.nodeIndex).renderText;if(20240&n.flags)return Wd(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function np(e,t,n,i){return new ip(e,t,n,i)}class ip{constructor(e,t,n,i){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=De(t.providers.length);for(let i=0;i<t.providers.length;i++){const r=t.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=jh(e,r))}}(this)}get(e,t=Xs.THROW_IF_NOT_FOUND,n=w.Default){let i=0;return n&w.SkipSelf?i|=1:n&w.Self&&(i|=4),Fh(this,{token:e,tokenKey:Xd(e),flags:i},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(nd)}destroy(){if(this._destroyed)throw new Error(`The ng module ${L(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const t=e._providers[r];if(t&&t!==Rh){const e=t.ngOnDestroy;"function"!=typeof e||i.has(t)||(e.apply(t),i.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const rp=Xd(ud),op=Xd(od),sp=Xd(Pd),ap=Xd(Rd),lp=Xd(ps),cp=Xd(Xs),up=Xd(ne);function dp(e,t,n,i,r,o,s,a){const l=[];if(s)for(let u in s){const[e,t]=s[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return fp(e,t|=16384,n,i,r,r,o,l,c)}function hp(e,t,n){return fp(-1,e|=16,null,0,t,t,n)}function pp(e,t,n,i,r){return fp(-1,e,t,0,n,i,r)}function fp(e,t,n,i,r,o,s,a,l){const{matchedQueries:c,references:u,matchedQueryIds:d}=ph(n);l||(l=[]),a||(a=[]),o=V(o);const h=fh(s,L(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:u,ngContentIndex:-1,childCount:i,bindings:a,bindingFlags:Dh(a),outputs:l,element:null,provider:{token:r,value:o,deps:h},text:null,query:null,ngContent:null}}function mp(e,t){return _p(e,t)}function gp(e,t){let n=e;for(;n.parent&&!uh(n);)n=n.parent;return bp(n.parent,lh(n),!0,t.provider.value,t.provider.deps)}function yp(e,t){const n=bp(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let i=0;i<t.outputs.length;i++){const r=t.outputs[i],o=n[r.propName];if(!Pl(o))throw new Error(`@Output ${r.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(vp(e,t.parent.nodeIndex,r.eventName));e.disposables[t.outputIndex+i]=n.unsubscribe.bind(n)}}return n}function vp(e,t,n){return i=>sh(e,t,n,i)}function _p(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return bp(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,r){const o=r.length;switch(o){case 0:return i();case 1:return i(Cp(e,t,n,r[0]));case 2:return i(Cp(e,t,n,r[0]),Cp(e,t,n,r[1]));case 3:return i(Cp(e,t,n,r[0]),Cp(e,t,n,r[1]),Cp(e,t,n,r[2]));default:const s=[];for(let i=0;i<o;i++)s.push(Cp(e,t,n,r[i]));return i(...s)}}(e,t.parent,n,i.value,i.deps);case 2048:return Cp(e,t.parent,n,i.deps[0]);case 256:return i.value}}function bp(e,t,n,i,r){const o=r.length;switch(o){case 0:return new i;case 1:return new i(Cp(e,t,n,r[0]));case 2:return new i(Cp(e,t,n,r[0]),Cp(e,t,n,r[1]));case 3:return new i(Cp(e,t,n,r[0]),Cp(e,t,n,r[1]),Cp(e,t,n,r[2]));default:const s=[];for(let i=0;i<o;i++)s.push(Cp(e,t,n,r[i]));return new i(...s)}}const wp={};function Cp(e,t,n,i,r=Xs.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const o=e;2&i.flags&&(r=null);const s=i.tokenKey;s===lp&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(s){case rp:return Ep(a,t,n).renderer;case op:return new od(Gd(a,t.nodeIndex).renderElement);case sp:return Gd(a,t.nodeIndex).viewContainer;case ap:if(t.element.template)return Gd(a,t.nodeIndex).template;break;case lp:return $h(Ep(a,t,n));case cp:case up:return Zh(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[s];if(e){let t=Wd(a,e.nodeIndex);return t||(t={instance:_p(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=uh(a),t=lh(a),a=a.parent,4&i.flags&&(a=null)}const l=o.root.injector.get(i.token,wp);return l!==wp||r===wp?l:o.root.ngModule.injector.get(i.token,r)}
1function Ep(e,t,n){let i;if(n)i=Gd(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!uh(i);)i=i.parent;return i}function Sp(e,t,n,i,r,o){if(32768&n.flags){const t=Gd(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[i].name]=r,524288&n.flags){o=o||{};const t=Fa.unwrap(e.oldValues[n.bindingIndex+i]);o[n.bindings[i].nonMinifiedName]=new Vu(t,r,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=r,o}function Dp(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let r=0;r<n.length;r++){const o=n[r];let s=o.parent;for(!s&&o.flags&t&&Tp(e,r,o.flags&t,i++),0==(o.childFlags&t)&&(r+=o.childCount);s&&1&s.flags&&r===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(i=xp(e,s,t,i)),s=s.parent}}function xp(e,t,n,i){for(let r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){const t=e.def.nodes[r];t.flags&n&&Tp(e,r,t.flags&n,i++),r+=t.childCount}return i}function Tp(e,t,n,i){const r=Wd(e,t);if(!r)return;const o=r.instance;o&&(Kd.setCurrentNode(e,t),1048576&n&&Yd(e,512,i)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Yd(e,768,i)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}function Op(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const kp=new te("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ln});class Ip extends Ju{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(br).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Op(this.componentDef.inputs)}get outputs(){return Op(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const o=e.get(n,wp,r);return o!==wp||i===wp?o:t.get(n,i,r)}}}(e,i.injector):e,o=r.get(ld,$t),s=r.get(pd,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?Qr(a,n,this.componentDef.encapsulation):Fr(l,o.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),h=Tu(),p=$r(0,-1,null,1,0,null,null,null,null,null),f=jr(null,p,h,u,null,null,o,a,s,r),m=n&&c?md.full:null;let g,y;Ot(f,null);try{const e=Du(c,this.componentDef,f,o,a,m,null);y=Ui(f[1],0),t&&(y.projection=t.map(e=>Array.from(e))),g=xu(e,this.componentDef,f,h,[Ou]),Yr(p,f,null)}finally{Rt()}const v=new Rp(this.componentType,g,cs(od,y,f),f,y);return n&&!d||(v.hostView._tViewNode.child=y),v}}class Rp extends Xu{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new os(i),this.hostView._tViewNode=Hr(i[1],null,-1,i),this.componentType=e}get injector(){return new kn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Mp=void 0;var Ap=["en",[["a","p"],["AM","PM"],Mp],[["AM","PM"],Mp,Mp],[["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"]],Mp,[["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"]],Mp,[["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}",Mp,"{1} 'at' {0}",Mp],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Pp={};
1function Lp(e,t,n){"string"!=typeof t&&(n=t,t=e[Yp.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Pp[t]=e,n&&(Pp[t][Yp.ExtraData]=n)}function Np(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Vp(t);if(n)return n;const i=t.split("-")[0];if(n=Vp(i),n)return n;if("en"===i)return Ap;throw new Error(`Missing locale data for the locale "${e}".`)}function Fp(e){return Np(e)[Yp.CurrencyCode]||null}function jp(e){return Np(e)[Yp.PluralCase]}function Vp(e){return e in Pp||(Pp[e]=U.ng&&U.ng.common&&U.ng.common.locales&&U.ng.common.locales[e]),Pp[e]}function Hp(){Pp={}}const Yp=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Bp="en-US",Gp="USD",Wp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Up=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,zp=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,qp=/\ufffd(\d+):?\d*\ufffd/gi,Kp=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,$p=/\[(\ufffd.+?\ufffd?)\]/,Qp=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Xp=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Jp=/{([A-Z0-9_]+)}/g,Zp=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,ef=/\/\*/,tf=/\d+\:(\d+)/;function nf(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(e);){const r=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,r);Wp.test(n)?i.push(rf(n)):i.push(n),t=r+1}}else{if(0==n.length){const n=e.substring(t,r);i.push(n),t=r+1}n.push("{")}}const s=e.substring(t);return i.push(s),i}function rf(e){const t=[],n=[];let i=1,r=0;const o=nf(e=e.replace(Wp,(function(e,t,n){return i="select"===n?0:1,r=parseInt(t.substr(1),10),""})));for(let s=0;s<o.length;){let e=o[s++].trim();1===i&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const r=nf(o[s++]);t.length>n.length&&n.push(r)}return{type:i,mainBinding:r,cases:t,values:n}}function of(e){let t,n,i="",r=0,o=!1;for(;null!==(t=Up.exec(e));)o?t[0]===`\ufffd/*${n}\ufffd`&&(r=t.index,o=!1):(i+=e.substring(r,t.index+t[0].length),n=t[1],o=!0);return i+=e.substr(r),i}function sf(e,t,n,i=null){const r=[null,null],o=e.split(qp);let s=0;for(let a=0;a<o.length;a++){const e=o[a];if(1&a){const t=parseInt(e,10);r.push(-1-t),s|=uf(t)}else""!==e&&r.push(e)}return r.push(t<<2|(n?1:0)),n&&r.push(n,i),r[0]=s,r[1]=r.length-2,r}function af(e,t=0){let n;t|=uf(e.mainBinding);for(let i=0;i<e.values.length;i++){const r=e.values[i];for(let e=0;e<r.length;e++){const i=r[e];if("string"==typeof i)for(;n=qp.exec(i);)t|=uf(parseInt(n[1],10));else t=af(i,t)}}return t}const lf=[];let cf=-1;function uf(e){return 1<<Math.min(e,31)}const df=[];function hf(e,t,n){const i=ut();lf[++cf]=e,Wl(!0),i.firstCreatePass&&null===i.data[e+19]&&function(e,t,n,i,r){const o=t.blueprint.length-19;pf=0;const s=ht(),a=ft()?s:s&&s.parent;let l=a&&a!==e[6]?a.index-19:n,c=0;df[c]=l;const u=[];n>0&&s!==a&&u.push(s.index<<3|0);const d=[],h=[],p=(f=function(e,t){if("number"!=typeof t)return of(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return of(e.substring(n,i))}}(i,r),f.replace(If," ")).split(zp);var f;for(let m=0;m<p.length;m++){let e=p[m];if(1&m)if("/"===e.charAt(0)){if("#"===e.charAt(1)){const t=parseInt(e.substr(2),10);l=df[--c],u.push(t<<3|5)}}else{const t=parseInt(e.substr(1),10);u.push(t<<3|0,l<<17|1),"#"===e.charAt(0)&&(df[++c]=l=t)}else{const t=nf(e);for(let e=0;e<t.length;e++)if(1&e){const n=o+pf++;u.push(Or,"",n,l<<17|1);const i=t[e],r=af(i);Tf(h,i,n,n);const s=h.length-1;d.push(uf(i.mainBinding),3,-1-i.mainBinding,n<<2|2,s,r,2,n<<2|3,s)}else if(""!==t[e]){const n=t[e],i=n.match(qp),r=o+pf++;u.push(i?"":n,r,l<<17|1),i&&be(sf(n,r),d)}}}pf>0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let i=0;i<n;i++)e.blueprint.push(null),e.data.push(null),t.push(null);e.expandoInstructions?e.expandoInstructions.push(n):e.expandoStartIndex+=n}}(t,e,pf),t.data[n+19]={vars:pf,create:u,update:d,icus:h.length?h:null}}(ct(),i,e,t,n)}let pf;function ff(e,t,n,i,r){const o=t.next;i||(i=n),i===n&&t!==n.child?(t.next=n.child,n.child=t):i!==n&&t!==i.next?(t.next=i.next,i.next=t):t.next=null,n!==r[6]&&(t.parent=n);let s=t.next;for(;s;)s.next===t&&(s.next=o),s=s.next;if(1===t.type)return es(e,r,t),t;$o(e,r,Gi(t,r),t);const a=r[t.index];return 0!==t.type&&Ze(a)&&$o(e,r,a[7],t),t}function mf(e,t={}){let n=e;if($p.test(e)){const e={},t=[0];n=n.replace(Qp,(n,i,r)=>
1{const o=i||r,s=e[o]||[];if(s.length||(o.split("|").forEach(e=>{const t=e.match(tf),n=t?parseInt(t[1],10):0,i=ef.test(e);s.push([n,i,e])}),e[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=t[t.length-1];let l=0;for(let e=0;e<s.length;e++)if(s[e][0]===a){l=e;break}const[c,u,d]=s[l];return u?t.pop():a!==c&&t.push(c),s.splice(l,1),d})}return Object.keys(t).length?(n=n.replace(Xp,(e,n,i,r,o,s)=>t.hasOwnProperty(i)?`${n}${t[i]}${s}`:e),n=n.replace(Jp,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(Zp,(e,n)=>{if(t.hasOwnProperty(n)){const i=t[n];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return i.shift()}return e}),n):n}function gf(){const e=ct();!function(e,t){const n=lf[cf--],i=e.data[n+19],r=ht(),o=vf(n,i.create,e,t);let s=n+1;for(;s<=r.index-19;){-1===o.indexOf(s)&&_f(e,t,s,!0);const n=Ui(e,s);!n||3!==n.type&&4!==n.type||null===n.localNames||(s+=n.localNames.length>>1),s++}}(ut(),e),Wl(!1)}function yf(e,t,n,i,r,o){const s=ht();t[n+19]=r;const a=Vr(e,t[6],n,i,o,null);return s&&s.next===a&&(s.next=null),a}function vf(e,t,n,i){const r=i[11];let o=null,s=null;const a=[];for(let l=0;l<t.length;l++){const c=t[l];if("string"==typeof c){const e=Po(c,r),u=t[++l];s=o,o=yf(n,i,u,3,e,null),a.push(u),mt()}else if("number"==typeof c)switch(7&c){case 1:const r=c>>>17;let u;u=r===e?i[6]:Ui(n,r),s=ff(n,o,u,s,i);break;case 0:const d=c>>>3;a.push(d),s=o,o=Ui(n,d),o&&pt(o,3===o.type);break;case 5:s=o=Ui(n,c>>>3),pt(o,!1);break;case 4:uo(c>>>3,t[++l],t[++l],n,i);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Or:const e=t[++l],u=t[++l],d=r.createComment(e);s=o,o=yf(n,i,u,5,d,null),a.push(u),rr(d,i),o.activeCaseIndex=null,mt();break;case Tr:const h=t[++l],p=t[++l];s=o,o=yf(n,i,p,3,r.createElement(h),h),a.push(p);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}}return mt(),a}function _f(e,t,n,i){const r=Ui(e,n),o=Bi(n,t);o&&Xo(t[11],o);const s=zi(t,n);if(Ze(s)){const e=s;0!==r.type&&Xo(t[11],e[7])}i&&(r.flags|=64)}function bf(e,t,n){hf(e,t,n),gf()}function wf(e,t){!function(e,t,n,i){const r=ht().index-19,o=[];for(let s=0;s<i.length;s+=2){const a=i[s],l=i[s+1].split(Kp);for(let i=0;i<l.length;i++){const s=l[i];if(1&i)throw new Error("ICU expressions are not yet supported in attributes");if(""!==s)if(s.match(qp))t.firstCreatePass&&null===t.data[n+19]&&be(sf(s,r,a),o);else{const n=Ui(t,r);3===n.type&&uo(r,a,s,t,e);const i=null!==n.inputs&&n.inputs[a];i&&ko(t,e,i,a,s)}}}t.firstCreatePass&&null===t.data[n+19]&&(t.data[n+19]=o)}(ct(),ut(),e,t)}let Cf=0,Ef=0;function Sf(e){return Ba(ct(),wt(),e)&&(Cf|=1<<Ef),Ef++,Sf}function Df(e){if(Ef){const t=ut(),n=t.data[e+19];let i,r=null;Array.isArray(n)?i=n:(i=n.update,r=n.icus);const o=_t()-Ef-1,s=ct();!function e(t,n,i,r,o,s,a=!1){let l=!1;for(let c=0;c<t.length;c++){const u=t[c],d=t[++c];if(a||u&r){let a="";for(let u=c+1;u<=c+d;u++){const c=t[u];if("string"==typeof c)a+=c;else if("number"==typeof c)if(c<0)a+=sn(s[i-c]);else{const d=c>>>2;let h,p,f;switch(3&c){case 1:Zr(o,s,d,t[++u],a,t[++u]);break;case 0:Io(s,d,a);break;case 2:if(h=t[++u],p=n[h],f=Ui(o,d),null!==f.activeCaseIndex){const e=p.remove[f.activeCaseIndex];for(let t=0;t<e.length;t++){const i=e[t];switch(7&i){case 3:_f(o,s,i>>>3,!1);break;case 6:const r=Ui(o,e[t+1]>>>3).activeCaseIndex;null!==r&&be(n[i>>>3].remove[r],e)}}}const c=xf(p,a);f.activeCaseIndex=-1!==c?c:null,c>-1&&(vf(-1,p.create[c],o,s),l=!0);break;case 3:h=t[++u],p=n[h],f=Ui(o,d),null!==f.activeCaseIndex&&e(p.update[f.activeCaseIndex],n,i,r,o,s,l)}}}}c+=d}}(i,r,o,Cf,t,s),Cf=0,Ef=0}}function xf(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){switch(jp(t)(e)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(t,Rf);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}function Tf(e,t,n,i){const r=[],o=[],s=[],a=[],l=[];for(let c=0;c<t.values.length;c++){const u=t.values[c],d=[];for(let e=0;e<u.length;e++){const t=u[e];if("string"!=typeof t){const n=d.push(t)-1;u[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const h=Of(u.join(""),n,d,e,i);r.push(h.create),o.push(h.remove),s.push(h.update),a.push(h.vars),l.push(h.childIcus)}e.push({type:t.type,vars:a,childIcus:l,cases:t.cases,create:r,remove:o,update:s}),pf+=Math.max(...a)}function Of(e,t,n,i,r){const o=new ni(qt()).getInertBodyElement(e);
1if(!o)throw new Error("Unable to generate inert body element");const s={vars:0,childIcus:[],create:[],remove:[],update:[]};return function e(t,n,i,r,o,s){if(t){const a=[];for(;t;){const l=t.nextSibling,c=s+ ++n.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const l=t,u=l.tagName.toLowerCase();if(pi.hasOwnProperty(u)){n.create.push(Tr,u,c,i<<17|1);const a=l.attributes;for(let e=0;e<a.length;e++){const t=a.item(e),i=t.name.toLowerCase();t.value.match(qp)?gi.hasOwnProperty(i)&&be(fi[i]?sf(t.value,c,t.name,oi):mi[i]?sf(t.value,c,t.name,si):sf(t.value,c,t.name),n.update):n.create.push(c<<3|4,t.name,t.value)}e(t.firstChild,n,c,r,o,s),n.remove.push(c<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const d=t.textContent||"",h=d.match(qp);n.create.push(h?"":d,c,i<<17|1),n.remove.push(c<<3|3),h&&be(sf(d,c),n.update);break;case Node.COMMENT_NODE:const p=kf.exec(t.textContent||"");if(p){const e=parseInt(p[1],10);n.create.push(Or,"",c,i<<17|1),a.push([r[e],c])}else n.vars--;break;default:n.vars--}t=l}for(let e=0;e<a.length;e++){const t=a[e][0],i=a[e][1];Tf(o,t,i,s+n.vars);const r=o.length-1;n.vars+=Math.max(...o[r].vars),n.childIcus.push(r);const l=af(t);n.update.push(uf(t.mainBinding),3,-1-t.mainBinding,i<<2|2,r,l,2,i<<2|3,r),n.remove.push(r<<3|6,i<<3|3)}}}((Si(o)||o).firstChild,s,t,n,i,r),s}const kf=/\ufffd(\d+)\ufffd/,If=/\uE500/g;let Rf=Bp;function Mf(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Rf=e.toLowerCase().replace(/_/g,"-"))}const Af=new Map;function Pf(e,t){const n=Af.get(e);Lf(e,n&&n.moduleType,t.moduleType),Af.set(e,t)}function Lf(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${L(t)} vs ${L(t.name)}`)}function Nf(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;Lf(t,Af.get(t),e),Af.set(t,e)}let t=e.\u0275mod.imports;t instanceof Function&&(t=t()),t&&t.forEach(e=>Nf(e))}function Ff(e){return Af.get(e)||Ye[e]}const jf={provide:nd,useClass:class extends nd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=qe(e);return new Ip(t,this.ngModule)}},deps:[ve]};class Vf extends ve{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[];const n=Xe(e),i=e[J]||null;i&&Mf(i),this._bootstrapComponents=hn(n.bootstrap),this._r3Injector=Bs(e,t,[{provide:ve,useValue:this},jf],L(e)),this.instance=this.get(e)}get(e,t=Xs.THROW_IF_NOT_FOUND,n=w.Default){return e===Xs||e===ve||e===ne?this:this._r3Injector.get(e,t,n)}get componentFactoryResolver(){return this.get(nd)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Hf extends _e{constructor(e){super(),this.moduleType=e,null!==Xe(e)&&Nf(e)}create(e){return new Vf(this.moduleType,e)}}function Yf(e,t,n,i){return Ae(()=>{const r=e,o=r.prototype?Object.getPrototypeOf(r.prototype):null,s=o&&o.constructor;null!==t&&(void 0===r.decorators||s&&s.decorators===r.decorators?r.decorators=t:r.decorators.push(...t)),null!==n&&(r.ctorParameters=n),null!==i&&(r.propDecorators=void 0===r.propDecorators||s&&s.propDecorators===r.propDecorators?i:Object.assign(Object.assign({},r.propDecorators),i))})}function Bf(e,t,n){const i=vt()+e,r=ct();return r[i]===wr?Ha(r,i,n?t.call(n):t()):Ya(r,i)}function Gf(e,t,n,i){return Jf(ct(),vt(),e,t,n,i)}function Wf(e,t,n,i,r){return Zf(ct(),vt(),e,t,n,i,r)}function Uf(e,t,n,i,r,o){return em(ct(),vt(),e,t,n,i,r,o)}function zf(e,t,n,i,r,o,s){return tm(ct(),vt(),e,t,n,i,r,o,s)}function qf(e,t,n,i,r,o,s,a){const l=vt()+e,c=ct(),u=Ua(c,l,n,i,r,o);return Ba(c,l+4,s)||u?Ha(c,l+5,a?t.call(a,n,i,r,o,s):t(n,i,r,o,s)):Ya(c,l+5)}function Kf(e,t,n,i,r,o,s,a,l){const c=vt()+e,u=ct(),d=Ua(u,c,n,i,r,o);return Ga(u,c+4,s,a)||d?Ha(u,c+6,l?t.call(l,n,i,r,o,s,a):t(n,i,r,o,s,a)):Ya(u,c+6)}function $f(e,t,n,i,r,o,s,a,l,c){const u=vt()+e,d=ct();let h=Ua(d,u,n,i,r,o);return Wa(d,u+4,s,a,l)||h?Ha(d,u+7,c?t.call(c,n,i,r,o,s,a,l):t(n,i,r,o,s,a,l)):Ya(d,u+7)}function Qf(e,t,n,i,r,o,s,a,l,c,u){const d=vt()+e,h=ct(),p=Ua(h,d,n,i,r,o);
1return Ua(h,d+4,s,a,l,c)||p?Ha(h,d+8,u?t.call(u,n,i,r,o,s,a,l,c):t(n,i,r,o,s,a,l,c)):Ya(h,d+8)}function Xf(e,t,n,i){return nm(ct(),vt(),e,t,n,i)}function Jf(e,t,n,i,r,o){const s=t+n;return Ba(e,s,r)?Ha(e,s+1,o?i.call(o,r):i(r)):Ya(e,s+1)}function Zf(e,t,n,i,r,o,s){const a=t+n;return Ga(e,a,r,o)?Ha(e,a+2,s?i.call(s,r,o):i(r,o)):Ya(e,a+2)}function em(e,t,n,i,r,o,s,a){const l=t+n;return Wa(e,l,r,o,s)?Ha(e,l+3,a?i.call(a,r,o,s):i(r,o,s)):Ya(e,l+3)}function tm(e,t,n,i,r,o,s,a,l){const c=t+n;return Ua(e,c,r,o,s,a)?Ha(e,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Ya(e,c+4)}function nm(e,t,n,i,r,o){let s=t+n,a=!1;for(let l=0;l<r.length;l++)Ba(e,s++,r[l])&&(a=!0);return a?Ha(e,s,i.apply(o,r)):Ya(e,s)}function im(e,t){const n=ut();let i;const r=e+19;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=(i.factory||(i.factory=Qe(i.type)))();return yl(n,ct(),e,o),o}function rm(e,t,n){const i=ct(),r=zi(i,e);return um(i,cm(i,e)?Jf(i,vt(),t,r.transform,n,r):r.transform(n))}function om(e,t,n,i){const r=ct(),o=zi(r,e);return um(r,cm(r,e)?Zf(r,vt(),t,o.transform,n,i,o):o.transform(n,i))}function sm(e,t,n,i,r){const o=ct(),s=zi(o,e);return um(o,cm(o,e)?em(o,vt(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function am(e,t,n,i,r,o){const s=ct(),a=zi(s,e);return um(s,cm(s,e)?tm(s,vt(),t,a.transform,n,i,r,o,a):a.transform(n,i,r,o))}function lm(e,t,n){const i=ct(),r=zi(i,e);return um(i,cm(i,e)?nm(i,vt(),t,r.transform,n,r):r.transform.apply(r,n))}function cm(e,t){return e[1].data[t+19].pure}function um(e,t){return Fa.isWrapped(t)&&(t=Fa.unwrap(t),e[_t()]=wr),t}class dm extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,o=e=>null,s=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(o=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(o=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,o,s);return e instanceof r.a&&e.add(a),a}}function hm(){return this._results[Pa()]()}class pm{constructor(){this.dirty=!0,this._results=[],this.changes=new dm,this.length=0;const e=Pa(),t=pm.prototype;t[e]||(t[e]=hm)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=we(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fm{constructor(e){this.queryList=e,this.matches=null}clone(){return new fm(this.queryList)}setDirty(){this.queryList.setDirty()}}class mm{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new mm(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Mm(e,t).matches&&this.queries[t].setDirty()}}class gm{constructor(e,t,n,i=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=i}}class ym{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,i);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new ym(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class vm{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new vm(this.metadata)):null}isApplyingToNode(e){return this._appliesToNextNode&&!1===this.metadata.descendants?this._declarationNodeIndex===(e.parent?e.parent.index:-1):this._appliesToNextNode}
1matchTNode(e,t){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let i=0;i<n.length;i++)this.matchTNodeWithReadOption(e,t,_m(t,n[i]))}else{const n=this.metadata.predicate;n===Rd?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Dn(t,e,n,!1,!1))}}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===od||i===Pd||i===Rd&&0===t.type)this.addMatch(t.index,-2);else{const n=Dn(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function _m(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function bm(e,t,n,i){return-1===n?function(e,t){return 3===e.type||4===e.type?cs(od,e,t):0===e.type?us(Rd,od,e,t):null}(t,e):-2===n?function(e,t,n){return n===od?cs(od,t,e):n===Rd?us(Rd,od,t,e):n===Pd?ds(Pd,od,t,e):void 0}(e,t,i):xn(e,e[1],n,t)}function wm(e,t,n,i){const r=t[5].queries[i];if(null===r.matches){const i=e.data,o=n.matches,s=[];for(let e=0;e<o.length;e+=2){const r=o[e];s.push(r<0?null:bm(t,i[r],o[e+1],n.metadata.read))}r.matches=s}return r.matches}function Cm(e){const t=ct(),n=ut(),i=St();Dt(i+1);const r=Mm(n,i);if(e.dirty&&Qi(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const o=r.crossesNgTemplate?function e(t,n,i,r){const o=t.queries.getByIndex(i),s=o.matches;if(null!==s){const a=wm(t,n,o,i);for(let t=0;t<s.length;t+=2){const i=s[t];if(i>0)r.push(a[t/2]);else{const o=s[t+1],a=n[-i];for(let t=9;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,o,r)}if(null!==a[5]){const t=a[5];for(let n=0;n<t.length;n++){const i=t[n];e(i[1],i,o,r)}}}}}return r}(n,t,i,[]):wm(n,t,r,i);e.reset(o),e.notifyOnChanges()}return!0}return!1}function Em(e,t,n){Dm(ut(),ct(),e,t,n,!0)}function Sm(e,t,n){Dm(ut(),ct(),e,t,n,!1)}function Dm(e,t,n,i,r,o){e.firstCreatePass&&(Rm(e,new gm(n,i,o,r),-1),o&&(e.staticViewQueries=!0)),Im(e,t)}function xm(e,t,n,i){Om(ut(),ct(),t,n,i,!1,ht(),e)}function Tm(e,t,n,i){Om(ut(),ct(),t,n,i,!0,ht(),e)}function Om(e,t,n,i,r,o,s,a){e.firstCreatePass&&(Rm(e,new gm(n,i,o,r),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,a),o&&(e.staticContentQueries=!0)),Im(e,t)}function km(){return e=ct(),t=St(),e[5].queries[t].queryList;var e,t}function Im(e,t){const n=new pm;!function(e,t,n,i){const r=Do(t);r.push(n),e.firstCreatePass&&xo(e).push(i,r.length-1)}(e,t,n,n.destroy),null===t[5]&&(t[5]=new mm),t[5].queries.push(new fm(n))}function Rm(e,t,n){null===e.queries&&(e.queries=new ym),e.queries.track(new vm(t,n))}function Mm(e,t){return e.queries.getByIndex(t)}function Am(e,t){return us(Rd,od,e,t)}function Pm(e=w.Default){const t=hs(!0);if(null!=t||e&w.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}const Lm=(()=>({"\u0275\u0275attribute":za,"\u0275\u0275attributeInterpolate1":nl,"\u0275\u0275attributeInterpolate2":il,"\u0275\u0275attributeInterpolate3":rl,"\u0275\u0275attributeInterpolate4":ol,"\u0275\u0275attributeInterpolate5":sl,"\u0275\u0275attributeInterpolate6":al,"\u0275\u0275attributeInterpolate7":ll,"\u0275\u0275attributeInterpolate8":cl,"\u0275\u0275attributeInterpolateV":ul,"\u0275\u0275defineComponent":Fe,"\u0275\u0275defineDirective":Ue,"\u0275\u0275defineInjectable":S,"\u0275\u0275defineInjector":x,"\u0275\u0275defineNgModule":Be,"\u0275\u0275definePipe":ze,"\u0275\u0275directiveInject":_l,"\u0275\u0275getFactoryOf":In,"\u0275\u0275getInheritedFactory":Rn,"\u0275\u0275inject":de,"\u0275\u0275injectAttribute":bl,"\u0275\u0275invalidFactory":wl,"\u0275\u0275invalidFactoryDep":he,"\u0275\u0275injectPipeChangeDetectorRef":Pm,"\u0275\u0275templateRefExtractor":Am,"\u0275\u0275NgOnChangesFeature":Hu,"\u0275\u0275ProvidersFeature":Qu,"\u0275\u0275CopyDefinitionFeature":ju,"\u0275\u0275InheritDefinitionFeature":Ru,"\u0275\u0275container":pl,"\u0275\u0275nextContext":Hl,"\u0275\u0275containerRefreshStart":ml,"\u0275\u0275containerRefreshEnd":gl,"\u0275\u0275namespaceHTML":Ft,"\u0275\u0275namespaceMathML":Nt,"\u0275\u0275namespaceSVG":Lt,"\u0275\u0275enableBindings":at,"\u0275\u0275disableBindings":lt,"\u0275\u0275elementStart":Sl,"\u0275\u0275elementEnd":Dl,"\u0275\u0275element":xl,"\u0275\u0275elementContainerStart":Tl,"\u0275\u0275elementContainerEnd":Ol,"\u0275\u0275elementContainer":kl,"\u0275\u0275pureFunction0":Bf,"\u0275\u0275pureFunction1":Gf,"\u0275\u0275pureFunction2":Wf,"\u0275\u0275pureFunction3":Uf,"\u0275\u0275pureFunction4":zf,"\u0275\u0275pureFunction5":qf,"\u0275\u0275pureFunction6":Kf,"\u0275\u0275pureFunction7":$f,"\u0275\u0275pureFunction8":Qf,"\u0275\u0275pureFunctionV":Xf,"\u0275\u0275getCurrentView":Ml,"\u0275\u0275restoreView":dt,"\u0275\u0275listener":Ll,"\u0275\u0275projection":Ul,"\u0275\u0275updateSyntheticHostBinding":lu,"\u0275\u0275componentHostSyntheticListener":Nl,"\u0275\u0275pipeBind1":rm,"\u0275\u0275pipeBind2":om,"\u0275\u0275pipeBind3":sm,"\u0275\u0275pipeBind4":am,"\u0275\u0275pipeBindV":lm,"\u0275\u0275projectionDef":Bl,"\u0275\u0275hostProperty":au,"\u0275\u0275property":Cl,"\u0275\u0275propertyInterpolate":zl,"\u0275\u0275propertyInterpolate1":ql,"\u0275\u0275propertyInterpolate2":Kl,"\u0275\u0275propertyInterpolate3":$l,"\u0275\u0275propertyInterpolate4":Ql,"\u0275\u0275propertyInterpolate5":Xl,"\u0275\u0275propertyInterpolate6":Jl,"\u0275\u0275propertyInterpolate7":Zl,"\u0275\u0275propertyInterpolate8":ec,"\u0275\u0275propertyInterpolateV":tc,"\u0275\u0275pipe":im,"\u0275\u0275queryRefresh":Cm,"\u0275\u0275viewQuery":Sm,"\u0275\u0275staticViewQuery":Em,"\u0275\u0275staticContentQuery":Tm,"\u0275\u0275loadQuery":km,"\u0275\u0275contentQuery":xm,"\u0275\u0275reference":vl,"\u0275\u0275classMap":_c,"\u0275\u0275classMapInterpolate1":Gc,"\u0275\u0275classMapInterpolate2":Wc,"\u0275\u0275classMapInterpolate3":Uc,"\u0275\u0275classMapInterpolate4":zc,"\u0275\u0275classMapInterpolate5":qc,"\u0275\u0275classMapInterpolate6":Kc,"\u0275\u0275classMapInterpolate7":$c,"\u0275\u0275classMapInterpolate8":Qc,"\u0275\u0275classMapInterpolateV":Xc,"\u0275\u0275styleMap":yc,"\u0275\u0275styleProp":mc,"\u0275\u0275stylePropInterpolate1":Jc,"\u0275\u0275stylePropInterpolate2":Zc,"\u0275\u0275stylePropInterpolate3":eu,"\u0275\u0275stylePropInterpolate4":tu,"\u0275\u0275stylePropInterpolate5":nu,"\u0275\u0275stylePropInterpolate6":iu,"\u0275\u0275stylePropInterpolate7":ru,"\u0275\u0275stylePropInterpolate8":ou,"\u0275\u0275stylePropInterpolateV":su,"\u0275\u0275styleSanitizer"
1:fc,"\u0275\u0275classProp":gc,"\u0275\u0275select":Dr,"\u0275\u0275advance":Sr,"\u0275\u0275template":fl,"\u0275\u0275text":Mc,"\u0275\u0275textInterpolate":Ac,"\u0275\u0275textInterpolate1":Pc,"\u0275\u0275textInterpolate2":Lc,"\u0275\u0275textInterpolate3":Nc,"\u0275\u0275textInterpolate4":Fc,"\u0275\u0275textInterpolate5":jc,"\u0275\u0275textInterpolate6":Vc,"\u0275\u0275textInterpolate7":Hc,"\u0275\u0275textInterpolate8":Yc,"\u0275\u0275textInterpolateV":Bc,"\u0275\u0275embeddedViewStart":Il,"\u0275\u0275embeddedViewEnd":Rl,"\u0275\u0275i18n":bf,"\u0275\u0275i18nAttributes":wf,"\u0275\u0275i18nExp":Sf,"\u0275\u0275i18nStart":hf,"\u0275\u0275i18nEnd":gf,"\u0275\u0275i18nApply":Df,"\u0275\u0275i18nPostprocess":mf,"\u0275\u0275resolveWindow":cn,"\u0275\u0275resolveDocument":un,"\u0275\u0275resolveBody":dn,"\u0275\u0275setComponentScope":je,"\u0275\u0275setNgModuleScope":Ge,"\u0275\u0275sanitizeHtml":ki,"\u0275\u0275sanitizeStyle":Ii,"\u0275\u0275defaultStyleSanitizer":Ni,"\u0275\u0275sanitizeResourceUrl":Mi,"\u0275\u0275sanitizeScript":Ai,"\u0275\u0275sanitizeUrl":Ri,"\u0275\u0275sanitizeUrlOrResourceUrl":Li}))(),Nm=[],Fm=[];let jm=!1;function Vm(){if(!jm){jm=!0;try{for(let e=Fm.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Fm[e];n.declarations&&n.declarations.every(Hm)&&(Fm.splice(e,1),zm(t,n))}}finally{jm=!1}}}function Hm(e){return Array.isArray(e)?e.every(Hm):!!V(e)}function Ym(e,t={}){Bm(e,t),function(e,t){Fm.push({moduleType:e,ngModule:t})}(e,t)}function Bm(e,t,n=!1){const i=we(t.declarations||Nm);let r=null;Object.defineProperty(e,X,{configurable:!0,get:()=>(null===r&&(r=q().compileNgModule(Lm,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:we(t.bootstrap||Nm).map(V),declarations:i.map(V),imports:we(t.imports||Nm).map(V).map($m),exports:we(t.exports||Nm).map(V).map($m),schemas:t.schemas?we(t.schemas):null,id:t.id||null}),r.schemas||(r.schemas=[])),r)});let o=null;Object.defineProperty(e,R,{get:()=>{if(null===o){const n={name:e.name,type:e,deps:Ts(e),providers:t.providers||Nm,imports:[(t.imports||Nm).map(V),(t.exports||Nm).map(V)]};o=q().compileInjector(Lm,`ng:///${e.name}/\u0275inj.js`,n)}return o},configurable:!1})}let Gm=new Map,Wm=new Map;function Um(){Gm=new Map,Wm=new Map,Fm.length=0}function zm(e,t){const n=we(t.declarations||Nm),i=Km(e);n.forEach(t=>{t.hasOwnProperty(K)?qm(qe(t),i):t.hasOwnProperty($)||t.hasOwnProperty(Q)||(t.ngSelectorScope=e)})}function qm(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(K)?qe(e):Ke(e)).filter(e=>!!e),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(e=>$e(e)),e.schemas=t.schemas,e.tView=null}function Km(e,t=!1){if(!Qm(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const n=Xe(e);if(!t&&null!==n.transitiveCompileScopes)return n.transitiveCompileScopes;const i={schemas:n.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return hn(n.declarations).forEach(e=>{$e(e)?i.compilation.pipes.add(e):i.compilation.directives.add(e)}),hn(n.imports).forEach(e=>{const n=e;if(!Qm(n))throw new Error(`Importing ${n.name} which does not have a \u0275mod property`);const r=Km(n,t);r.exported.directives.forEach(e=>i.compilation.directives.add(e)),r.exported.pipes.forEach(e=>i.compilation.pipes.add(e))}),hn(n.exports).forEach(e=>{const n=e;if(Qm(n)){const e=Km(n,t);e.exported.directives.forEach(e=>{i.compilation.directives.add(e),i.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{i.compilation.pipes.add(e),i.exported.pipes.add(e)})}else $e(n)?i.exported.pipes.add(n):i.exported.directives.add(n)}),t||(n.transitiveCompileScopes=i),i}function $m(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Qm(e){return!!Xe(e)}function Xm(e,t){let n=null;!function(e,t){ka(t)&&(Ta.set(e,t),Oa.add(e))}(e,t),eg(e,t),Object.defineProperty(e,K,{get:()=>{if(null===n){const i=q();if(ka(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}
1`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const r=t.templateUrl||`ng:///${e.name}/template.html`,o=Object.assign(Object.assign({},ng(e,t)),{typeSourceSpan:i.createParseSourceSpan("Component",e.name,r),template:t.template||"",preserveWhitespaces:t.preserveWhitespaces||!1,styles:t.styles||Le,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:t.encapsulation||Me.Emulated,interpolation:t.interpolation,viewProviders:t.viewProviders||null});if(o.usesInheritance&&ig(e),n=i.compileComponent(Lm,r,o),Vm(),void 0!==e.ngSelectorScope){const t=Km(e.ngSelectorScope);qm(n,t)}}return n},configurable:!1})}function Jm(e,t){let n=null;eg(e,t||{}),Object.defineProperty(e,$,{get:()=>{if(null===n){const i=Zm(e,t||{});n=q().compileDirective(Lm,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function Zm(e,t){const n=e&&e.name,i=`ng:///${n}/\u0275dir.js`,r=q(),o=ng(e,t);return o.typeSourceSpan=r.createParseSourceSpan("Directive",n,i),o.usesInheritance&&ig(e),{metadata:o,sourceMapUrl:i}}function eg(e,t){let n=null;Object.defineProperty(e,Z,{get:()=>{if(null===n){const i=Zm(e,t),r=q();n=r.compileFactory(Lm,`ng:///${e.name}/\u0275fac.js`,Object.assign(Object.assign({},i.metadata),{injectFn:"directiveInject",target:r.R3FactoryTarget.Directive}))}return n},configurable:!1})}function tg(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function ng(e,t){const n=xs(),i=n.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:Ts(e),host:t.host||Pe,propMetadata:i,inputs:t.inputs||Le,outputs:t.outputs||Le,queries:og(e,i,sg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!tg(e),exportAs:(r=t.exportAs,void 0===r?null:cg(r)),providers:t.providers||null,viewQueries:og(e,i,ag)};var r}function ig(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)Ke(n)||qe(n)||!dg(n)||Jm(n,null),n=Object.getPrototypeOf(n)}function rg(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?cg(n):V(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static};var n}function og(e,t,n){const i=[];for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];o.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${r}" of `+`"${an(e)}" since the query selector wasn't defined.`);if(o.some(lg))throw new Error("Cannot combine @Input decorators with query decorators");i.push(rg(r,t))}})}return i}function sg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ag(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function lg(e){return"Input"===e.ngMetadataName}function cg(e){return e.split(",").map(e=>e.trim())}const ug=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function dg(e){const t=xs();if(ug.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const i in n){const e=n[i];for(let t=0;t<e.length;t++){const n=e[t],i=n.ngMetadataName;if(lg(n)||sg(n)||ag(n)||"Output"===i||"HostBinding"===i||"HostListener"===i)return!0}}return!1}function hg(e,t){let n=null,i=null;Object.defineProperty(e,Z,{get:()=>{if(null===i){const n=pg(e,t),r=q();i=r.compileFactory(Lm,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:r.R3FactoryTarget.Pipe}))}return i},configurable:!1}),Object.defineProperty(e,Q,{get:()=>{if(null===n){const i=pg(e,t);n=q().compilePipe(Lm,`ng:///${i.name}/\u0275pipe.js`,i)}return n},configurable:!1})}function pg(e,t){return{type:e,typeArgumentCount:0,name:e.name,deps:Ts(e),pipeName:t.name,pure:void 0===t.pure||t.pure}}const fg=d("Directive",(e={})=>e,void 0,void 0,(e,t)=>Dg(e,t)),mg=d("Component",(e={})=>Object.assign({changeDetection:ke.Default},e),fg,void 0,(e,t)=>Sg(e,t)),gg=d("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>xg(e,t)),yg=f("Input",e=>({bindingPropertyName:e})),vg=f("Output",e=>({bindingPropertyName:e})),_g=f("HostBinding",e=>({hostPropertyName:e})),bg=f("HostListener",(e,t)=>({eventName:e,args:t})),wg=Xm,Cg=Jm,Eg=hg,Sg=wg,Dg=Cg,xg=Eg,Tg=d("NgModule",e=>e,void 0,void 0,(e,t)=>kg(e,t)),Og=Ym,kg=Og,Ig=new te("Application Initializer");let Rg=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>
1{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Al(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(de(Ig,8))},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();const Mg=new te("AppId");function Ag(){return`${Lg()}${Lg()}${Lg()}`}const Pg={provide:Mg,useFactory:Ag,deps:[]};function Lg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ng=new te("Platform Initializer"),Fg=new te("Platform ID"),jg=new te("appBootstrapListener"),Vg=new te("Application Packages Root URL");let Hg=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();const Yg=new te("LocaleId"),Bg=new te("DefaultCurrencyCode"),Gg=new te("Translations"),Wg=new te("TranslationsFormat"),Ug=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}(),zg=!0,qg=zg;class Kg{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const $g=function(e){return new Hf(e)},Qg=$g,Xg=function(e){return Promise.resolve($g(e))},Jg=Xg,Zg=function(e){const t=$g(e),n=hn(Xe(e).declarations).reduce((e,t)=>{const n=qe(t);return n&&e.push(new Ip(n)),e},[]);return new Kg(t,n)},ey=Zg,ty=function(e){return Promise.resolve(Zg(e))},ny=ty;let iy=(()=>{class e{constructor(){this.compileModuleSync=Qg,this.compileModuleAsync=Jg,this.compileModuleAndAllComponentsSync=ey,this.compileModuleAndAllComponentsAsync=ny}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();const ry=new te("compilerOptions");class oy{}const sy=(()=>Promise.resolve(0))();function ay(e){"undefined"==typeof Zone?sy.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ly{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dm(!1),this.onMicrotaskEmpty=new dm(!1),this.onStable=new dm(!1),this.onError=new dm(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=U.requestAnimationFrame,t=U.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(U,()=>{e.lastRequestAnimationFrameId=-1,hy(e),dy(e)}),hy(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,i,r,o,s,a)=>{try{return py(e),n.invokeTask(r,o,s,a)}finally{t&&"eventTask"===o.type&&t(),fy(e)}},onInvoke:(t,n,i,r,o,s,a)=>{try{return py(e),t.invoke(i,r,o,s,a)}finally{fy(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,hy(e),dy(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ly.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ly.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}
1run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,uy,cy,cy);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function cy(){}const uy={};function dy(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function hy(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fy(e){e._nesting--,dy(e)}class my{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new dm,this.onMicrotaskEmpty=new dm,this.onStable=new dm,this.onError=new dm}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let gy=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ly.assertNotInAngularZone(),ay(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ay(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(de(ly))},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})(),yy=(()=>{class e{constructor(){this._applications=new Map,wy.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return wy.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();class vy{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function _y(e){wy=e}let by,wy=new vy,Cy=Ey;function Ey(e,t,n){const i=new Hf(n);if(0===Ta.size)return Promise.resolve(i);const r=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(ry,[]).concat(t).map(e=>e.providers));if(0===r.length)return Promise.resolve(i);
1const o=q(),s=Xs.create({providers:r}).get(o.ResourceLoader);return xa(e=>Promise.resolve(s.get(e))).then(()=>i)}let Sy=Dy;function Dy(e){return e.isBoundToModule}const xy=new te("AllowMultipleToken");class Ty{constructor(e,t){this.name=e,this.token=t}}function Oy(e){if(by&&!by.destroyed&&!by.injector.get(xy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");by=e.get(Ay);const t=e.get(Ng,null);return t&&t.forEach(e=>e()),by}function ky(e,t,n=[]){const i=`Platform: ${t}`,r=new te(i);return(t=[])=>{let o=My();if(!o||o.injector.get(xy,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Ns,useValue:"platform"});Oy(Xs.create({providers:e,name:i}))}return Iy(r)}}function Iy(e){const t=My();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Ry(){by&&!by.destroyed&&by.destroy()}function My(){return by&&!by.destroyed?by:null}let Ay=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new my:("zone.js"===e?void 0:e)||new ly({enableLongStackTrace:ei(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),i=[{provide:ly,useValue:n}];return n.run(()=>{const t=Xs.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),o=r.injector.get(Ln,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Ny(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const i=n();return Al(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(o,n,()=>{const e=r.injector.get(Rg);return e.runInitializers(),e.donePromise.then(()=>(qg&&Mf(r.injector.get(Yg,Bp)||Bp),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Py({},t);return Cy(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ly);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${L(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(de(Xs))},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();function Py(e,t){return Array.isArray(t)?t.reduce(Py,e):Object.assign(Object.assign({},e),t)}let Ly=(()=>{class e{constructor(e,t,n,i,r,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ei(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new o.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ly.assertNotInAngularZone(),ay(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ly.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,u.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
1s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Ju?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=Sy(n)?void 0:this._injector.get(ve),r=n.create(Xs.NULL,[],t||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const o=r.injector.get(gy,null);return o&&r.injector.get(yy).registerApplication(r.location.nativeElement,o),this._loadComponent(r),ei()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ny(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(jg,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ny(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(de(ly),de(Hg),de(Xs),de(Ln),de(nd),de(Rg))},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();function Ny(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Fy{}function jy(e){const t=Ff(e);if(!t)throw Yy(e);return t}function Vy(e){const t=Ff(e);if(!t)throw Yy(e);return new Hf(t)}const Hy=Vy;function Yy(e){return new Error(`No module with ID ${e} loaded`)}class By{}const Gy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wy=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Gy}load(e){return!qg&&this._compiler instanceof iy?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("zn8P")(t).then(e=>e[i]).then(e=>Uy(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>Uy(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(de(iy),de(By,8))},e.\u0275prov=S({token:e,factory:e.\u0275fac}),e})();function Uy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class zy extends ps{}class qy extends zy{}class Ky{constructor(e,t){this.name=e,this.callback=t}}class $y{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Qy&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Qy extends $y{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,i){t.childNodes.forEach(t=>{t instanceof Qy&&(n(t)&&i.push(t),e(t,n,i))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,i){t instanceof Qy&&t.childNodes.forEach(t=>{n(t)&&i.push(t),t instanceof Qy&&e(t,n,i)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Qy)}
1triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function Xy(e){return e.map(e=>e.nativeElement)}class Jy{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new Zy(e):null}get injector(){return pu(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(cu(e)||du(e))}get context(){return cu(this.nativeNode)||uu(this.nativeNode)}get listeners(){return yu(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=mu(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let i=n.index+1;for(let r=0;r<n.localNames.length;r+=2)t[n.localNames[r]]=e[i],i++;return t}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=mu(e,!1);if(null===t)return[];const n=t.lView[1],i=n.data[t.nodeIndex],r=[],o=i.directiveEnd;for(let a=65535&i.providerIndexes;a<o;a++){let e=n.data[a];void 0!==(s=e).type&&void 0!==s.template&&void 0!==s.declaredInputs&&(e=e.type),r.push(e)}var s;return r}(this.nativeNode)}}class Zy extends Jy{constructor(e){super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){try{const e=mu(this.nativeNode);return e.lView[1].data[e.nodeIndex].tagName}catch(e){return this.nativeNode.nodeName}}get properties(){const e=mu(this.nativeNode,!1);if(null==e)return{};const t=e.lView,n=t[1].data,i=n[e.nodeIndex],r={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const i=Node.prototype;for(;null!==n&&n!==i;){const i=Object.getOwnPropertyDescriptors(n);for(let n in i)if(!n.startsWith("__")&&!n.startsWith("on")){const i=e[n];ev(i)&&(t[n]=i)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,r),function(e,t,n,i){let r=t.propertyBindings;if(null!==r)for(let o=0;o<r.length;o++){const t=r[o],s=i[t].split("\ufffd"),a=s[0];if(s.length>1){let i=s[1];for(let e=1;e<s.length-1;e++)i+=sn(n[t+e-1])+s[e+1];e[a]=i}else e[a]=n[t]}}(r,i,t,n),r}get attributes(){const e={},t=this.nativeElement;if(!t)return e;const n=mu(t,!1);if(null==n)return{};const i=n.lView[1].data[n.nodeIndex].attrs,r=[];if(i){let t=0;for(;t<i.length;){const n=i[t];if("string"!=typeof n)break;e[n]=i[t+1],r.push(n.toLowerCase()),t+=2}}const o=t.attributes;for(let s=0;s<o.length;s++){const t=o[s],n=t.name.toLowerCase();-1===r.indexOf(n)&&(e[n]=t.value)}return e}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const e={},t=this.nativeElement.className;return(t&&"string"!=typeof t?t.baseVal.split(" "):t.split(" ")).forEach(t=>e[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++)t.push(av(e[n]));return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let i=0;i<t.length;i++)n.push(av(t[i]));return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return tv(this,e,t,!0),t}queryAllNodes(e){const t=[];return tv(this,e,t,!1),t}triggerEventHandler(e,t){const n=this.nativeNode,i=[];this.listeners.forEach(r=>{if(r.name===e){const e=r.callback;e.call(n,t),i.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const r=e("__ngUnwrap__");return-1===i.indexOf(r)&&r.call(n,t)}})}}function ev(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function tv(e,t,n,i){const r=mu(e.nativeNode,!1);
1null!==r?nv(r.lView[1].data[r.nodeIndex],r.lView,t,n,i,e.nativeNode):ov(e.nativeNode,t,n,i)}function nv(e,t,n,i,r,o){const s=Wi(e,t);if(3===e.type||4===e.type){if(rv(s,n,i,r,o),tt(e)){const s=qi(e.index,t);s&&s[1].firstChild&&nv(s[1].firstChild,s,n,i,r,o)}else e.child&&nv(e.child,t,n,i,r,o),s&&ov(s,n,i,r);const a=t[e.index];Ze(a)&&iv(a,n,i,r,o)}else if(0===e.type){const s=t[e.index];rv(s[7],n,i,r,o),iv(s,n,i,r,o)}else if(1===e.type){const s=t[16],a=s[6].projection[e.projection];if(Array.isArray(a))for(let e of a)rv(e,n,i,r,o);else if(a){const e=s[3];nv(e[1].data[a.index],e,n,i,r,o)}}else e.child&&nv(e.child,t,n,i,r,o);if(o!==s){const s=4&e.flags?e.projectionNext:e.next;s&&nv(s,t,n,i,r,o)}}function iv(e,t,n,i,r){for(let o=9;o<e.length;o++){const s=e[o];nv(s[1].node,s,t,n,i,r)}}function rv(e,t,n,i,r){if(r!==e){const r=lv(e);if(!r)return;i&&r instanceof Zy&&t(r)&&-1===n.indexOf(r)?n.push(r):!i&&t(r)&&-1===n.indexOf(r)&&n.push(r)}}function ov(e,t,n,i){const r=e.childNodes,o=r.length;for(let s=0;s<o;s++){const e=r[s],o=lv(e);o&&(i&&o instanceof Zy&&t(o)&&-1===n.indexOf(o)?n.push(o):!i&&t(o)&&-1===n.indexOf(o)&&n.push(o),ov(e,t,n,i))}}const sv=new Map;function av(e){return e instanceof Node?(e.hasOwnProperty("__ng_debug__")||(e.__ng_debug__=e.nodeType==Node.ELEMENT_NODE?new Zy(e):new Jy(e)),e.__ng_debug__):null}const lv=av;function cv(e){return function(e){return sv.get(e)||null}(e)}const uv=function(e){return null};function dv(e){sv.set(e.nativeNode,e)}const hv=Jy,pv=Zy,fv=ky(null,"core",[{provide:Fg,useValue:"unknown"},{provide:Ay,deps:[Xs]},{provide:yy,deps:[]},{provide:Hg,deps:[]}]);function mv(){return kd}function gv(){return Id}function yv(e){return e=e||qg&&"undefined"!=typeof $localize&&$localize.locale||Bp,qg&&Mf(e),e}const vv=Gp,_v=[{provide:Ly,useClass:Ly,deps:[ly,Hg,Xs,Ln,nd,Rg]},{provide:kp,deps:[ly],useFactory:bv},{provide:Rg,useClass:Rg,deps:[[new g,Ig]]},{provide:iy,useClass:iy,deps:[]},Pg,{provide:xd,useFactory:mv,deps:[]},{provide:Td,useFactory:gv,deps:[]},{provide:Yg,useFactory:yv,deps:[[new m(Yg),new g,new v]]},{provide:Bg,useValue:vv}];function bv(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let wv=(()=>{class e{constructor(e){}}return e.\u0275mod=Be({type:e}),e.\u0275inj=x({factory:function(t){return new(t||e)(de(Ly))},providers:_v}),e})();function Cv(e,t,n,i,r,o){e|=1;const{matchedQueries:s,references:a,matchedQueryIds:l}=ph(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?yh(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||$d},provider:null,text:null,query:null,ngContent:null}}function Ev(e,t,n,i,r,o,s=[],a,l,c,u,d){c||(c=$d);const{matchedQueries:h,references:p,matchedQueryIds:f}=ph(n);let m=null,g=null;o&&([m,g]=Sh(o)),a=a||[];const y=[];for(let b=0;b<a.length;b++){const[e,t,n]=a[b],[i,r]=Sh(t);let o=void 0,s=void 0;switch(15&e){case 4:s=n;break;case 1:case 8:o=n}y[b]={flags:e,ns:i,name:r,nonMinifiedName:r,securityContext:o,suffix:s}}l=l||[];const v=[];for(let b=0;b<l.length;b++){const[e,t]=l[b];v[b]={type:0,target:e,eventName:t,propName:null}}const _=(s=s||[]).map(([e,t])=>{const[n,i]=Sh(e);return[n,i,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==Me.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${eh++}`:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:f,references:p,ngContentIndex:i,childCount:r,bindings:y,bindingFlags:Dh(y),outputs:v,element:{ns:m,name:g,attrs:_,template:null,componentProvider:null,componentView:u||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:c||$d},provider:null,text:null,query:null,ngContent:null}}function Sv(e,t,n){const i=n.element,r=e.root.selectorOrNode,o=e.renderer;let s;if(e.parent||!r){s=i.name?o.createElement(i.name,i.ns):o.createComment("");const r=mh(e,t,n);r&&o.appendChild(r,s)}else s=o.selectRootElement(r,!!i.componentRendererType&&i.componentRendererType.encapsulation===Me.ShadowDom);if(i.attrs)for(let a=0;a<i.attrs.length;a++){const[e,t,n]=i.attrs[a];o.setAttribute(s,t,n,e)}return s}function Dv(e,t,n,i){for(let s=0;s<n.outputs.length;s++){const a=n.outputs[s],l=xv(e,n.nodeIndex,(o=a.eventName,(r=a.target)?`${r}:${o}`:o));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const d=u.renderer.listen(c||i,a.eventName,l);e.disposables[n.outputIndex+s]=d}var r,o}function xv(e,t,n){return i=>sh(e,t,n,i)}function Tv(e,t,n,i){if(!nh(e,t,n,i))return!1;const r=t.bindings[n],o=Gd(e,t.nodeIndex),s=o.renderElement,a=r.name;switch(15&r.flags){case 1:!function(e,t,n,i,r,o){const s=t.securityContext;let a=s?e.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;const l=e.renderer;null!=o?l.setAttribute(n,r,a,i):l.removeAttribute(n,r,i)}(e,r,s,r.ns,a,i);break;case 2:!function(e,t,n,i){const r=e.renderer;i?r.addClass(t,n):r.removeClass(t,n)}(e,s,a,i);break;case 4:!function(e,t,n,i,r){let o=e.root.sanitizer.sanitize(Di.STYLE,r);if(null!=o){o=o.toString();const e=t.suffix;null!=e&&(o+=e)}else o=null;const s=e.renderer;null!=o?s.setStyle(n,i,o):s.removeStyle(n,i)}(e,r,s,a,i);break;case 8:!function(e,t,n,i,r){const o=t.securityContext;let s=o?e.root.sanitizer.sanitize(o,r):r;e.renderer.setProperty(n,i,s)}(33554432&t.flags&&32&r.flags?o.componentView:e,r,s,a,i)}return!0}function Ov(e,t,n){let i=[];for(let r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,
1checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:hh(t),bindings:i},ngContent:null}}function kv(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&dh(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let r=0;r<=i;r++){const i=e.def.nodes[r];67108864&i.flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&zd(e,r).setDirty(),!(1&i.flags&&r+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(r+=i.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&zd(e,n).setDirty(),n+=t.childCount}}function Iv(e,t){const n=zd(e,t.nodeIndex);if(!n.dirty)return;let i,r=void 0;if(67108864&t.flags){const n=t.parent.parent;r=Rv(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),i=Wd(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(r=Rv(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(r);const o=t.query.bindings;let s=!1;for(let a=0;a<o.length;a++){const e=o[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,s=!0}i[e.propName]=t}s&&n.notifyOnChanges()}function Rv(e,t,n,i,r){for(let o=t;o<=n;o++){const t=e.def.nodes[o],n=t.matchedQueries[i.id];if(null!=n&&r.push(Mv(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const n=Gd(e,o);if((t.childMatchedQueries&i.filterId)===i.filterId&&(Rv(e,o+1,o+t.childCount,i,r),o+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const o=e[t],s=ah(o);s&&s===n&&Rv(o,0,o.def.nodes.length-1,i,r)}}const s=n.template._projectedViews;if(s)for(let e=0;e<s.length;e++){const t=s[e];Rv(t,0,t.def.nodes.length-1,i,r)}}(t.childMatchedQueries&i.filterId)!==i.filterId&&(o+=t.childCount)}return r}function Mv(e,t,n){if(null!=n)switch(n){case 1:return Gd(e,t.nodeIndex).renderElement;case 0:return new od(Gd(e,t.nodeIndex).renderElement);case 2:return Gd(e,t.nodeIndex).template;case 3:return Gd(e,t.nodeIndex).viewContainer;case 4:return Wd(e,t.nodeIndex).instance}}function Av(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Pv(e,t,n){const i=mh(e,t,n);i&&bh(e,n.ngContent.index,1,i,null,void 0)}function Lv(e,t){return jv(128,e,De(t+1))}function Nv(e,t){return jv(32,e,De(t))}function Fv(e,t){const n=Object.keys(t),i=n.length,r=[];for(let o=0;o<i;o++)r.push(n[o]);return jv(64,e,r)}function jv(e,t,n){const i=[];for(let r=0;r<n.length;r++){const e=n[r];i.push({flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:Dh(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Vv(e,t,n){const i=[];for(let r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Hv(e,t,n){let i;const r=e.renderer;i=r.createText(n.text.prefix);const o=mh(e,t,n);return o&&r.appendChild(o,i),{renderText:i}}function Yv(e,t){return(null!=e?e.toString():"")+t.suffix}function Bv(e,t,n,i){let r=0,o=0,s=0,a=0,l=0,c=null,u=null,d=!1,h=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=c,e.bindingIndex=r,e.outputIndex=o,e.renderParent=u,s|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,d=!1,h=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}
vendor: 22,403 bytes, line 1
1if(Wv(c,e,t.length),r+=e.bindings.length,o+=e.outputs.length,!u&&3&e.flags&&(p=e),20224&e.flags){d||(d=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[Xd(e.provider.token)]=e:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Xd(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,Gv(e)||(u=e);else for(;c&&f===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),c=e,u=c&&Gv(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||$d,updateRenderer:i||$d,handleEvent:(e,n,i,r)=>t[n].element.handleEvent(e,i,r),bindingCount:r,outputCount:o,lastRenderRootNode:p}}function Gv(e){return 0!=(1&e.flags)&&null===e.element.name}function Wv(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Uv(e,t,n,i){const r=Kv(e.root,e.renderer,e,t,n);return $v(r,e.component,i),Qv(r),r}function zv(e,t,n){const i=Kv(e,e.renderer,null,null,t);return $v(i,n,n),Qv(i),i}function qv(e,t,n,i){const r=t.element.componentRendererType;let o;return o=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Kv(e.root,o,e,t.element.componentProvider,n)}function Kv(e,t,n,i,r){const o=new Array(r.nodes.length),s=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:s,initIndex:-1}}function $v(e,t,n){e.component=t,e.context=n}function Qv(e){let t;uh(e)&&(t=Gd(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let r=0;r<n.nodes.length;r++){const o=n.nodes[r];let s;switch(Kd.setCurrentNode(e,r),201347067&o.flags){case 1:const n=Sv(e,t,o);let a=void 0;if(33554432&o.flags){const t=yh(o.element.componentView);a=Kd.createComponentView(e,o,t,n)}Dv(e,a,o,n),s={renderElement:n,componentView:a,viewContainer:null,template:o.element.template?Xh(e,o):void 0},16777216&o.flags&&(s.viewContainer=qh(e,o,s));break;case 2:s=Hv(e,t,o);break;case 512:case 1024:case 2048:case 256:s=i[r],s||4096&o.flags||(s={instance:mp(e,o)});break;case 16:s={instance:gp(e,o)};break;case 16384:s=i[r],s||(s={instance:yp(e,o)}),32768&o.flags&&$v(Gd(e,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new pm;break;case 8:Pv(e,t,o),s=void 0}i[r]=s}o_(e,r_.CreateViewNodes),c_(e,201326592,268435456,0)}function Xv(e){e_(e),Kd.updateDirectives(e,1),s_(e,r_.CheckNoChanges),Kd.updateRenderer(e,1),o_(e,r_.CheckNoChanges),e.state&=-97}function Jv(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Hd(e,0,256),e_(e),Kd.updateDirectives(e,0),s_(e,r_.CheckAndUpdate),c_(e,67108864,536870912,0);let t=Hd(e,256,512);Dp(e,2097152|(t?1048576:0)),Kd.updateRenderer(e,0),o_(e,r_.CheckAndUpdate),c_(e,134217728,536870912,0),t=Hd(e,512,768),Dp(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Hd(e,768,1024)}function Zv(e,t,n,i,r,o,s,a,l,c,u,d,h){return 0===n?function(e,t,n,i,r,o,s,a,l,c,u,d){switch(201347067&t.flags){case 1:return function(e,t,n,i,r,o,s,a,l,c,u,d){const h=t.bindings.length;let p=!1;return h>0&&Tv(e,t,0,n)&&(p=!0),h>1&&Tv(e,t,1,i)&&(p=!0),h>2&&Tv(e,t,2,r)&&(p=!0),h>3&&Tv(e,t,3,o)&&(p=!0),h>4&&Tv(e,t,4,s)&&(p=!0),h>5&&Tv(e,t,5,a)&&(p=!0),h>6&&Tv(e,t,6,l)&&(p=!0),h>7&&Tv(e,t,7,c)&&(p=!0),h>8&&Tv(e,t,8,u)&&(p=!0),h>9&&Tv(e,t,9,d)&&(p=!0),p}(e,t,n,i,r,o,s,a,l,c,u,d);case 2:return function(e,t,n,i,r,o,s,a,l,c,u,d){let h=!1;const p=t.bindings,f=p.length;if(f>0&&nh(e,t,0,n)&&(h=!0),f>1&&nh(e,t,1,i)&&(h=!0),f>2&&nh(e,t,2,r)&&(h=!0),f>3&&nh(e,t,3,o)&&(h=!0),f>4&&nh(e,t,4,s)&&(h=!0),f>5&&nh(e,t,5,a)&&(h=!0),f>6&&nh(e,t,6,l)&&(h=!0),f>7&&nh(e,t,7,c)&&(h=!0),f>8&&nh(e,t,8,u)&&(h=!0),f>9&&nh(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;f>0&&(h+=Yv(n,p[0])),f>1&&(h+=Yv(i,p[1])),f>2&&(h+=Yv(r,p[2])),f>3&&(h+=Yv(o,p[3])),f>4&&(h+=Yv(s,p[4])),f>5&&(h+=Yv(a,p[5])),f>6&&(h+=Yv(l,p[6])),f>7&&(h+=Yv(c,p[7])),f>8&&(h+=Yv(u,p[8])),f>9&&(h+=Yv(d,p[9]));const m=Bd(e,t.nodeIndex).renderText;e.renderer.setValue(m,h)}return h}(e,t,n,i,r,o,s,a,l,c,u,d);case 16384:return function(e,t,n,i,r,o,s,a,l,c,u,d){const h=Wd(e,t.nodeIndex),p=h.instance;let f=!1,m=void 0;const g=t.bindings.length;return g>0&&th(e,t,0,n)&&(f=!0,m=Sp(e,h,t,0,n,m)),g>1&&th(e,t,1,i)&&(f=!0,m=Sp(e,h,t,1,i,m)),g>2&&th(e,t,2,r)&&(f=!0,m=Sp(e,h,t,2,r,m)),g>3&&th(e,t,3,o)&&(f=!0,m=Sp(e,h,t,3,o,m)),g>4&&th(e,t,4,s)&&(f=!0,m=Sp(e,h,t,4,s,m)),g>5&&th(e,t,5,a)&&(f=!0,m=Sp(e,h,t,5,a,m)),g>6&&th(e,t,6,l)&&(f=!0,m=Sp(e,h,t,6,l,m)),g>7&&th(e,t,7,c)&&(f=!0,m=Sp(e,h,t,7,c,m)),g>8&&th(e,t,8,u)&&(f=!0,m=Sp(e,h,t,8,u,m)),g>9&&th(e,t,9,d)&&(f=!0,m=Sp(e,h,t,9,d,m)),m&&p.ngOnChanges(m),65536&t.flags&&Yd(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,i,r,o,s,a,l,c,u,d);case 32:case 64:case 128:return function(e,t,n,i,r,o,s,a,l,c,u,d){const h=t.bindings;let p=!1;const f=h.length;if(f>0&&nh(e,t,0,n)&&(p=!0),f>1&&nh(e,t,1,i)&&(p=!0),f>2&&nh(e,t,2,r)&&(p=!0),f>3&&nh(e,t,3,o)&&(p=!0),f>4&&nh(e,t,4,s)&&(p=!0),f>5&&nh(e,t,5,a)&&(p=!0),f>6&&nh(e,t,6,l)&&(p=!0),f>7&&nh(e,t,7,c)&&(p=!0),f>8&&nh(e,t,8,u)&&(p=!0),f>9&&nh(e,t,9,d)&&(p=!0),p){const p=Ud(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=[],f>0&&m.push(n),f>1&&m.push(i),f>2&&m.push(r),f>3&&m.push(o),f>4&&m.push(s),f>5&&m.push(a),f>6&&m.push(l),f>7&&m.push(c),f>8&&m.push(u),f>9&&m.push(d);break;case 64:m={},f>0&&(m[h[0].name]=n),f>1&&(m[h[1].name]=i),f>2&&(m[h[2].name]=r),f>3&&(m[h[3].name]=o),f>4&&(m[h[4].name]=s),f>5&&(m[h[5].name]=a),f>6&&(m[h[6].name]=l),f>7&&(m[h[7].name]=c),f>8&&(m[h[8].name]=u),f>9&&(m[h[9].name]=d);break;case 128:const e=n;switch(f){case 1:m=e.transform(n);break;case 2:m=e.transform(i);break;case 3:m=e.transform(i,r);break;case 4:m=e.transform(i,r,o);break;case 5:m=e.transform(i,r,o,s);break;case 6:m=e.transform(i,r,o,s,a);break;case 7:m=e.transform(i,r,o,s,a,l);break;case 8:m=e.transform(i,r,o,s,a,l,c);break;case 9:m=e.transform(i,r,o,s,a,l,c,u);break;case 10:m=e.transform(i,r,o,s,a,l,c,u,d)}}p.value=m}return p}(e,t,n,i,r,o,s,a,l,c,u,d);default:throw"unreachable"}}(e,t,i,r,o,s,a,l,c,u,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let r=0;r<n.length;r++)Tv(e,t,r,n[r])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let r=!1;for(let o=0;o<n.length;o++)nh(e,t,o,n[o])&&(r=!0);if(r){let r="";for(let e=0;e<n.length;e++)r+=Yv(n[e],i[e]);r=t.text.prefix+r;const o=Bd(e,t.nodeIndex).renderText;e.renderer.setValue(o,r)}return r}(e,t,n);case 16384:return function(e,t,n){const i=Wd(e,t.nodeIndex),r=i.instance;let o=!1,s=void 0;for(let a=0;a<n.length;a++)th(e,t,a,n[a])&&(o=!0,s=Sp(e,i,t,a,n[a],s));return s&&r.ngOnChanges(s),65536&t.flags&&Yd(e,256,t.nodeIndex)&&r.ngOnInit(),262144&t.flags&&r.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let r=!1;for(let o=0;o<n.length;o++)nh(e,t,o,n[o])&&(r=!0);if(r){const r=Ud(e,t.nodeIndex);let o;switch(201347067&t.flags){case 32:o=n;break;case 64:o={};for(let r=0;r<n.length;r++)o[i[r].name]=n[r];break;case 128:const e=n[0],t=n.slice(1);o=e.transform(...t)}r.value=o}return r}(e,t,n);default:throw"unreachable"}}(e,t,i)}function e_(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const t=Gd(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const i=t[n];i.state|=32,oh(i,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function t_(e,t,n,i,r,o,s,a,l,c,u,d,h){return 0===n?function(e,t,n,i,r,o,s,a,l,c,u,d){const h=t.bindings.length;h>0&&ih(e,t,0,n),h>1&&ih(e,t,1,i),h>2&&ih(e,t,2,r),h>3&&ih(e,t,3,o),h>4&&ih(e,t,4,s),h>5&&ih(e,t,5,a),h>6&&ih(e,t,6,l),h>7&&ih(e,t,7,c),h>8&&ih(e,t,8,u),h>9&&ih(e,t,9,d)}(e,t,i,r,o,s,a,l,c,u,d,h):function(e,t,n){for(let i=0;i<n.length;i++)ih(e,t,i,n[i])}(e,t,i),!1}function n_(e,t){if(zd(e,t.nodeIndex).dirty)throw Fd(Kd.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function i_(e){if(!(128&e.state)){if(s_(e,r_.Destroy),o_(e,r_.Destroy),Dp(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ah(e);if(t){const n=t.template._projectedViews;n&&(Se(n,n.indexOf(e)),Kd.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Gd(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Bd(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&zd(e,n).destroy()}}(e),uh(e)&&e.renderer.destroy(),e.state|=128}}const r_=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function o_(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];33554432&r.flags?a_(Gd(e,i).componentView,t):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function s_(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];if(16777216&r.flags){const n=Gd(e,i).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)a_(n[e],t)}else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function a_(e,t){const n=e.state;switch(t){case r_.CheckNoChanges:0==(128&n)&&(12==(12&n)?Xv(e):64&n&&l_(e,r_.CheckNoChangesProjectedViews));break;case r_.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Xv(e):64&n&&l_(e,t));break;case r_.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Jv(e):64&n&&l_(e,r_.CheckAndUpdateProjectedViews));break;case r_.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Jv(e):64&n&&l_(e,t));break;case r_.Destroy:i_(e);break;case r_.CreateViewNodes:Qv(e)}}function l_(e,t){s_(e,t),o_(e,t)}function c_(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const r=e.def.nodes.length;for(let o=0;o<r;o++){const r=e.def.nodes[o];if(r.flags&t&&r.flags&n)switch(Kd.setCurrentNode(e,r.nodeIndex),i){case 0:Iv(e,r);break;case 1:n_(e,r)}r.childFlags&t&&r.childFlags&n||(o+=r.childCount)}}let u_=!1;function d_(){if(u_)return;u_=!0;const e=ei()?{setCurrentNode:P_,createRootView:p_,createEmbeddedView:m_,createComponentView:g_,createNgModuleRef:y_,overrideProvider:w_,overrideComponentView:C_,clearOverrides:E_,checkAndUpdateView:T_,checkNoChangesView:O_,destroyView:k_,createDebugContext:(e,t)=>new B_(e,t),handleEvent:L_,updateDirectives:N_,updateRenderer:F_}:{setCurrentNode:()=>{},createRootView:h_,createEmbeddedView:Uv,createComponentView:qv,createNgModuleRef:np,overrideProvider:$d,overrideComponentView:$d,clearOverrides:$d,checkAndUpdateView:Jv,checkNoChangesView:Xv,destroyView:i_,createDebugContext:(e,t)=>new B_(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?D_:x_,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?D_:x_,e)};Kd.setCurrentNode=e.setCurrentNode,Kd.createRootView=e.createRootView,Kd.createEmbeddedView=e.createEmbeddedView,Kd.createComponentView=e.createComponentView,Kd.createNgModuleRef=e.createNgModuleRef,Kd.overrideProvider=e.overrideProvider,Kd.overrideComponentView=e.overrideComponentView,Kd.clearOverrides=e.clearOverrides,Kd.checkAndUpdateView=e.checkAndUpdateView,Kd.checkNoChangesView=e.checkNoChangesView,Kd.destroyView=e.destroyView,Kd.resolveDep=Cp,Kd.createDebugContext=e.createDebugContext,Kd.handleEvent=e.handleEvent,Kd.updateDirectives=e.updateDirectives,Kd.updateRenderer=e.updateRenderer,Kd.dirtyParentQueries=kv}function h_(e,t,n,i,r,o){const s=r.injector.get(ld);return zv(f_(e,r,s,t,n),i,o)}function p_(e,t,n,i,r,o){const s=r.injector.get(ld),a=f_(e,r,new z_(s),t,n),l=S_(i);return W_(I_.create,zv,null,[a,l,o])}function f_(e,t,n,i,r){const o=t.injector.get(pd),s=t.injector.get(Ln),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:r,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function m_(e,t,n,i){const r=S_(n);return W_(I_.create,Uv,null,[e,t,r,i])}function g_(e,t,n,i){return n=b_.get(t.element.componentProvider.provider.token)||S_(n),W_(I_.create,qv,null,[e,t,n,i])}function y_(e,t,n,i){return np(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===v_.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const i=v_.get(e.token);3840&e.flags&&i&&(t=!0,n=n||i.deprecatedBehavior)}),e.modules.forEach(e=>{__.forEach((i,r)=>{T(r).providedIn===e&&(t=!0,n=n||i.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const i=e.providers[t];n&&(i.flags|=4096);const r=v_.get(i.token);r&&(i.flags=-3841&i.flags|r.flags,i.deps=fh(r.deps),i.value=r.value)}if(__.size>0){let t=new Set(e.modules);__.forEach((i,r)=>{if(t.has(T(r).providedIn)){let t={token:r,flags:i.flags|(n?4096:0),deps:fh(i.deps),value:i.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Xd(r)]=t}})}}(e=e.factory(()=>$d)),e):e}(i))}const v_=new Map,__=new Map,b_=new Map;function w_(e){let t;v_.set(e.token,e),"function"==typeof e.token&&(t=T(e.token))&&"function"==typeof t.providedIn&&__.set(e.token,e)}function C_(e,t){const n=yh(Wh(t)),i=yh(n.nodes[0].element.componentView);b_.set(e,i)}function E_(){v_.clear(),__.clear(),b_.clear()}function S_(e){if(0===v_.size)return e;const t=function(e){const t=[];let n=null;for(let i=0;i<e.nodes.length;i++){const r=e.nodes[i];1&r.flags&&(n=r),n&&3840&r.flags&&v_.has(r.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>$d);for(let i=0;i<t.length;i++)n(e,t[i]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=v_.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=fh(n.deps),e.value=n.value)}}}}function D_(e,t,n,i,r,o,s,a,l,c,u,d,h){const p=e.def.nodes[t];return Zv(e,p,n,i,r,o,s,a,l,c,u,d,h),224&p.flags?Ud(e,t).value:void 0}function x_(e,t,n,i,r,o,s,a,l,c,u,d,h){const p=e.def.nodes[t];return t_(e,p,n,i,r,o,s,a,l,c,u,d,h),224&p.flags?Ud(e,t).value:void 0}function T_(e){return W_(I_.detectChanges,Jv,null,[e])}function O_(e){return W_(I_.checkNoChanges,Xv,null,[e])}function k_(e){return W_(I_.destroy,i_,null,[e])}const I_=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let R_,M_,A_;function P_(e,t){M_=e,A_=t}function L_(e,t,n,i){return P_(e,t),W_(I_.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function N_(e,t){if(128&e.state)throw Vd(I_[R_]);return P_(e,H_(e,0)),e.def.updateDirectives((function(e,n,i,...r){const o=e.def.nodes[n];return 0===t?j_(e,o,i,r):V_(e,o,i,r),16384&o.flags&&P_(e,H_(e,n)),224&o.flags?Ud(e,o.nodeIndex).value:void 0}),e)}function F_(e,t){if(128&e.state)throw Vd(I_[R_]);return P_(e,Y_(e,0)),e.def.updateRenderer((function(e,n,i,...r){const o=e.def.nodes[n];return 0===t?j_(e,o,i,r):V_(e,o,i,r),3&o.flags&&P_(e,Y_(e,n)),224&o.flags?Ud(e,o.nodeIndex).value:void 0}),e)}function j_(e,t,n,i){if(Zv(e,t,n,...i)){const s=1===n?i[0]:i;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const i=t.bindings[e],a=s[e];8&i.flags&&(n[(r=i.nonMinifiedName,o=void 0,o=r.replace(/[$@]/g,"_"),`ng-reflect-${r=o.replace(Vi,(...e)=>"-"+e[1].toLowerCase())}`)]=Hi(a))}const i=t.parent,a=Gd(e,i.nodeIndex).renderElement;if(i.element.name)for(let t in n){const i=n[t];null!=i?e.renderer.setAttribute(a,t,i):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var r,o}function V_(e,t,n,i){t_(e,t,n,...i)}function H_(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function Y_(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class B_{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,i=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&i;)n=lh(i),i=i.parent;this.elDef=n,this.elView=i}get elOrCompView(){return Gd(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Zh(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){G_(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&G_(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!uh(e);)e=e.parent;return e.parent?Gd(e.parent,lh(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?ch(this.view,this.nodeDef):ch(this.elView,this.elDef)}logError(e,...t){let n,i;2&this.nodeDef.flags?(n=this.view.def,i=this.nodeDef.nodeIndex):(n=this.elView.def,i=this.elDef.nodeIndex);const r=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(n,i);let o=-1;n.factory(()=>(o++,o===r?e.error.bind(e,...t):$d)),o<r&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function G_(e,t,n){for(let i in t.references)n[i]=Mv(e,t,t.references[i])}function W_(e,t,n,i){const r=R_,o=M_,s=A_;try{R_=e;const a=t.apply(n,i);return M_=o,A_=s,R_=r,a}catch(a){if(Mn(a)||!M_)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),jd(e,t),e}(a,U_())}}function U_(){return M_?new B_(M_,A_):null}class z_{constructor(e){this.delegate=e}createRenderer(e,t){return new q_(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class q_{constructor(e){this.delegate=e,this.debugContextFactory=U_,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=lv(e);!function(e){sv.delete(e.nativeNode)}(t),t instanceof $y&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),i=this.createDebugContext(n);if(i){const t=new Qy(n,null,i);t.name=e,dv(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&dv(new $y(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&dv(new $y(t,null,n)),t}appendChild(e,t){const n=lv(e),i=lv(t);n&&i&&n instanceof Qy&&n.addChild(i),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const i=lv(e),r=lv(t),o=lv(n);i&&r&&i instanceof Qy&&i.insertBefore(o,r),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=lv(e),i=lv(t);n&&i&&n instanceof Qy&&n.removeChild(i),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),i=U_();return i&&dv(new Qy(n,null,i)),n}setAttribute(e,t,n,i){const r=lv(e);r&&r instanceof Qy&&(r.attributes[i?i+":"+t:t]=n),this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){const i=lv(e);i&&i instanceof Qy&&(i.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=lv(e);n&&n instanceof Qy&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=lv(e);n&&n instanceof Qy&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,i){const r=lv(e);r&&r instanceof Qy&&(r.styles[t]=n),this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){const i=lv(e);i&&i instanceof Qy&&(i.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const i=lv(e);i&&i instanceof Qy&&(i.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const i=lv(e);i&&i.listeners.push(new Ky(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function K_(e){return d_(),Kd.overrideProvider(e)}function $_(e,t){return d_(),Kd.overrideComponentView(e,t)}function Q_(){return d_(),Kd.clearOverrides()}function X_(e,t,n){return new J_(e,t,n)}
1class J_ extends _e{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){d_();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const r in e.providersByKey)i[r]=e.providersByKey[r];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:i}}(yh(this._ngModuleDefFactory));return Kd.createNgModuleRef(this.moduleType,e||Xs.NULL,this._bootstrapComponents,t)}}},fzPg:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n("wd/R"))},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("2fFW"),r=n("NJ4a");const o={closed:!0,next(e){},error(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete(){}}},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gekB:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,o){var s="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":s=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":s=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":s=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":s=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":s=o?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,o)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_t
1i_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},gjCT:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n("wd/R"))},hKrs:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u043d\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},honF:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u
11010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("wd/R"))},iEDd:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},iYuL:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
vendor: 7,458 bytes, line 1
1split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},jUeY:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",r%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n("wd/R"))},jVdC:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
1));var i=n("HDdC"),r=n("quSY");function o(e,t){return new i.a(n=>{const i=new r.a;let o=0;return i.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},jfSC:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"}
vendor: 5,841 bytes, line 1
1,relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"\u062b\u0627\u0646\u06cc\u0647 d%",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n("wd/R"))},jnO4:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(e){return function(t,n,o,s){var a=i(t),l=r[e][i(t)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},kEOa:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u
109ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kOpN:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},l5ep:function(e,t,n){!function(e){"use strict";
1e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("wd/R"))},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("7o/Q");class r extends i.a{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("7o/Q");function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}class o{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new s(e,this.project,this.thisArg))}}class s extends i.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},lW6c:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var i=n("mrSG"),r=n("9/Zf"),o=n("8LbN"),s=n("KjyA"),a=function(){function e(e,t,n){void 0===t&&(t=new s.a),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop();o&&o.client&&o.client[e]&&(t=o.client)[e].apply(t,i.__spread(n,[o.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e},e.prototype.pushScope=function(){var e=this.getStack(),t=s.a.clone(e.length>0?e[e.length-1].scope:void 0);return this.getStack().push({client:this.getClient(),scope:t}),t},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(r.n)(),o=t;if(!t){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(e){s=e}o={originalException:e,syntheticException:s}}return this._invokeClient("captureException",e,i.__assign({},o,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var o=this._lastEventId=Object(r.n)(),s=n;
1if(!n){var a=void 0;try{throw new Error(e)}catch(l){a=l}s={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,t,i.__assign({},s,{event_id:o})),o},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(r.n)();return this._invokeClient("captureEvent",e,i.__assign({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var o=n.client.getOptions&&n.client.getOptions()||{},s=o.beforeBreadcrumb,a=void 0===s?null:s,l=o.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=Object(r.m)(),d=i.__assign({timestamp:u},e),h=a?Object(r.c)((function(){return a(d,t)})):d;null!==h&&n.scope.addBreadcrumb(h,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=c(this);try{e(this)}finally{c(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return o.a.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=l(),r=i.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);o.a.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function l(){var e=Object(r.g)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function c(e){var t=l(),n=h(t);return p(t,e),n}function u(){var t=l();return d(t)&&!h(t).isOlderThan(3)||p(t,new a),Object(r.j)()?function(t){try{var n=Object(r.d)(e,"domain").active;if(!n)return h(t);if(!d(n)||h(n).isOlderThan(3)){var i=h(t).getStackTop();p(n,new a(i.client,s.a.clone(i.scope)))}return h(n)}catch(o){return h(t)}}(t):h(t)}function d(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function h(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub?e.__SENTRY__.hub:(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new a,e.__SENTRY__.hub)}function p(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}}).call(this,n("3UD+")(e))},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u
1043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n("wd/R"))},lYtQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u
10445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n("wd/R"))},lgnt:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},lyxo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u
10103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("wd/R"))},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("KqfI");function r(...e){return o(e)}function o(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:i.a}},mrSG:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return b}
vendor: 5,001 bytes, line 1
1)),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return E}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function a(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i.throw(e))}catch(t){o(t)}}function l(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}l((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(i){u(o[0][3],i)}var n}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",(function(){return i}))},nVU4:function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("1OTY")),i(n("aEEX")),i(n("L0o8")),i(n("e30y")),i(n("Wkdn"))},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}},nyYc:function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},o1bE:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:4}})}(n("wd/R"))},"p/rL":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("wd/R"))},"q/0M":function(e,t,n){"use strict";function i(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}n.r(t),n.d(t,"LogLevel",(function(){return o}
1)),n.d(t,"Logger",(function(){return l})),n.d(t,"setLogLevel",(function(){return c}));var r=[],o=function(e){return e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT",e}({}),s=o.INFO,a=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var s=(new Date).toISOString();switch(t){case o.DEBUG:case o.VERBOSE:console.log.apply(console,i(["["+s+"]  "+e.name+":"],n));break;case o.INFO:console.info.apply(console,i(["["+s+"]  "+e.name+":"],n));break;case o.WARN:console.warn.apply(console,i(["["+s+"]  "+e.name+":"],n));break;case o.ERROR:console.error.apply(console,i(["["+s+"]  "+e.name+":"],n));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}},l=function(){function e(e){this.name=e,this._logLevel=s,this._logHandler=a,r.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in o))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,i([this,o.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,i([this,o.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,i([this,o.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,i([this,o.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,i([this,o.ERROR],e))},e}();function c(e){r.forEach((function(t){t.logLevel=e}))}},quSY:function(e,t,n){"use strict";var i=n("DH7j"),r=n("XoHu"),o=n("n6bG");const s=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();n.d(t,"a",(function(){return a}));let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(o.a)(a))try{a.call(this)}catch(u){t=u instanceof s?l(u.errors):[u]}if(Object(i.a)(c)){let e=-1,n=c.length;for(;++e<n;){const n=c[e];if(Object(r.a)(n))try{n.unsubscribe()}catch(u){t=t||[],u instanceof s?t=t.concat(l(u.errors)):t.push(u)}}}if(t)throw new s(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function l(e){return e.reduce((e,t)=>e.concat(t instanceof s?t.errors:t),[])}},raLr:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}
vendor: 5,779 bytes, line 1
1function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\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".split("_"),standalone:"\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".split("_")},monthsShort:"\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".split("_"),weekdays:function(e,t){var n={nominative:"\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\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"s+uk":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
1d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},sp3z:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n("wd/R"))},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
1d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tT3J:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("wd/R"))},tUCv:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("wd/R"))},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uEye:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uXwI:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_die
1n\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},w1tV:function(e,t,n){"use strict";var i=n("XNiG"),r=n("HDdC"),o=n("7o/Q"),s=n("quSY");function a(){return function(e){return e.lift(new l(e))}}class l{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new c(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class c extends o.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class u extends r.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return a()(this)}}const d=(()=>{const e=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class h extends i.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function p(){return new i.a}function f(){return e=>{return a()((t=p,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,d);return i.source=e,i.subjectFactory=n,i})(e));var t}}n.d(t,"a",(function(){return f}))},wQk9:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n("wd/R"))},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
vendor: 31,788 bytes, line 1
1function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Et(e,t,n,i,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=p(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var y=r.momentProperties=[];function v(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=f(t)),a(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)a(r=t[i=y[n]])||(e[i]=r);return e}var _=!1;function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function E(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function S(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&E(e[i])!==E(t[i]))&&s++;return s+o}function D(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,o=[],s=0;s<arguments.length;s++){if(i="","object"==typeof arguments[s]){for(var a in i+="\n["+s+"] ",arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];o.push(i)}D(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,O={};function k(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),O[e]||(D(t),O[e]=!0)}function I(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e,t){var n,i=h({},e);for(n in t)d(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)d(e,n)&&!d(t,n)&&s(e[n])&&(i[n]=h({},i[n]));return i}function M(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var A={};function P(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function L(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function N(e){var t,n,i={};for(n in e)d(e,n)&&(t=L(n))&&(i[t]=e[n]);return i}var F={};function j(e,t){F[e]=t}function V(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},G={};function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(G[e]=r),t&&(G[t[0]]=function(){return V(r.apply(this,arguments),t[1],t[2])}),n&&(G[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=z(t,e.localeData()),B[t]=B[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t<n;t++)r[t]=G[r[t]]?G[r[t]]:(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=I(r[i])?r[i].call(t,e):r[i];return o}}(t),B[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(Y.lastIndex=0;n>=0&&Y.test(e);)e=e.replace(Y,i),Y.lastIndex=0,n-=1;return e}var q=/\d/,K=/\d\d/,$=/\d{3}/,Q=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Z=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=I(t)?t:function(e,i){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function fe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=E(e)}),n=0;n<e.length;n++)pe[e[n]]=i}function me(e,t){fe(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function ge(e,t,n){null!=t&&d(pe,e)&&pe[e](t,n._a,n,e)}function ye(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),W(0,["YY",2],0,(function(){return this.year()%100})),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),P("year","y"),j("year",1),ue("Y",oe),ue("YY",J,K),ue("YYYY",ne,Q),ue("YYYYY",ie,X),ue("YYYYYY",ie,X),fe(["YYYYY","YYYYYY"],0),fe("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):E(e)})),fe("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),fe("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return E(e)+(E(e)>68?1900:2e3)};var _e,be=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ee(this,e,n),r.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ee(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ve(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Se(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ve(e)?29:28:31-n%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",(function(){return this.month()+1})),W("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),W("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),P("month","M"),j("month",8),ue("M",J),ue("MM",J,K),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),fe(["M","MM"],(function(e,t){t[1]=E(e)-1})),fe(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[1]=r:f(n).invalidMonth=e}));var De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Te="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Oe(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=_e.call(this._shortMonthsParse,s))?r:null:-1!==(r=_e.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=_e.call(this._shortMonthsParse,s))?r:-1!==(r=_e.call(this._longMonthsParse,s))?r:null:-1!==(r=_e.call(this._longMonthsParse,s))?r:-1!==(r=_e.call(this._shortMonthsParse,s))?r:null}function ke(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=E(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ie(e){return null!=e?(ke(this,e),r.updateOffset(this,!0),this):Ce(this,"Month")}var Re=le,Me=le;function Ae(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=he(i[t]),r[t]=he(r[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Pe(e,t,n,i,r,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,s),a}function Le(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var i=7+t-n;return-(7+Le(e,0,i).getUTCDay()-t)%7+i-1}function Fe(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return a<=0?s=ye(o=e-1)+a:a>ye(e)?(o=e+1,s=a-ye(e)):(o=e,s=a),{year:o,dayOfYear:s}}function je(e,t,n){var i,r,o=Ne(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Ve(r=e.year()-1,t,n):s>Ve(e.year(),t,n)?(i=s-Ve(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ve(e,t,n){var i=Ne(e,t,n),r=Ne(e+1,t,n);return(ye(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),j("week",5),j("isoWeek",5),ue("w",J),ue("ww",J,K),ue("W",J),ue("WW",J,K),me(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=E(e)})),W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ue("d",J),ue("e",J),ue("E",J),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,i){t[i]=E(e)}));var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=_e.call(this._weekdaysParse,s))?r:-1!==(r=_e.call(this._shortWeekdaysParse,s))?r:-1!==(r=_e.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=_e.call(this._shortWeekdaysParse,s))?r:-1!==(r=_e.call(this._weekdaysParse,s))?r:-1!==(r=_e.call(this._minWeekdaysParse,s))?r:null:-1!==(r=_e.call(this._minWeekdaysParse,s))?r:-1!==(r=_e.call(this._weekdaysParse,s))?r:-1!==(r=_e.call(this._shortWeekdaysParse,s))?r:null}var Ue=le,ze=le,qe=le;function Ke(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(s.sort(e),a.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)a[t]=he(a[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function $e(){return this.hours()%12||12}function Qe(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,$e),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+$e.apply(this)+V(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+$e.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),P("hour","h"),j("hour",13),ue("a",Xe),ue("A",Xe),ue("H",J),ue("h",J),ue("k",J),ue("HH",J,K),ue("hh",J,K),ue("kk",J,K),ue("hmm",Z),ue("hmmss",ee),ue("Hmm",Z),ue("Hmmss",ee),fe(["H","HH"],3),fe(["k","kk"],(function(e,t,n){var i=E(e);t[3]=24===i?0:i})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[3]=E(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var i=e.length-2;t[3]=E(e.substr(0,i)),t[4]=E(e.substr(i)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=E(e.substr(0,i)),t[4]=E(e.substr(i,2)),t[5]=E(e.substr(r)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var i=e.length-2;t[3]=E(e.substr(0,i)),t[4]=E(e.substr(i))})),fe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=E(e.substr(0,i)),t[4]=E(e.substr(i,2)),t[5]=E(e.substr(r))}));var Je,Ze=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:Te,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Ge,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{i=Je._abbr,n("RnhZ")("./"+t),ot(i)}catch(r){}return tt[t]}function ot(e,t){var n;return e&&((n=a(t)?at(e):st(e,t))?Je=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function st(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new M(R(i,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function at(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!o(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=it(e[o]).split("-")).length,n=(n=it(e[o+1]))?n.split("-"):null;t>0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&S(r,n,!0)>=t-1)break;t--}o++}return Je}(e)}function lt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Se(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}function ct(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t,n,i,o,s,a=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=ct(t.GG,e._a[0],je(St(),1,4).year),i=ct(t.W,1),((r=ct(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=je(St(),o,s);n=ct(t.gg,e._a[0],c.year),i=ct(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Ve(n,o,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=Fe(n,i,r,o,s),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=ct(e._a[0],i[0]),(e._dayOfYear>ye(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Le(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Le:Pe).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}var dt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((\-?\d+)/i;function yt(e){var t,n,i,r,o,s,a=e._i,l=dt.exec(a)||ht.exec(a);if(l){for(f(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[1])){r=ft[t][0],i=!1!==ft[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){o=(l[2]||" ")+mt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),wt(e)}else e._isValid=!1}var vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,i,r,o,s,a,l,c=vt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){var u=(t=c[3],n=c[2],i=c[5],r=c[6],o=c[7],s=[(a=c[4],l=parseInt(a,10),l<=49?2e3+l:l<=999?1900+l:l),Te.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)],o&&s.push(parseInt(o,10)),s);if(!function(e,t,n){return!e||Be.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return _t[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function wt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,i,o,s,a=""+e._i,l=a.length,c=0;for(i=z(e._f,e._locale).match(H)||[],t=0;t<i.length;t++)(n=(a.match(de(o=i[t],e))||[])[0])&&((s=a.substr(0,a.indexOf(n))).length>0&&f(e).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),c+=n.length),G[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-c,a.length>0&&f(e).unusedInput.push(a),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ut(e),lt(e)}else bt(e);else yt(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||at(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(lt(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,i,r,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],wt(t),m(t)&&(o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,(null==i||o<i)&&(i=o,n=t));h(e,n||t)}(e):n?wt(e):function(e){var t=e._i;a(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),ut(e)):s(t)?function(e){if(!e._d){var t=N(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),ut(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,i,r){var a,l={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=e,l._f=t,l._strict=i,(a=new b(lt(Ct(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function St(e,t,n,i){return Et(e,t,n,i,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Dt=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),xt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Tt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function kt(e){var t=N(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===_e.call(Ot,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Ot.length;++i)if(e[Ot[i]]){if(n)return!1;parseFloat(e[Ot[i]])!==E(e[Ot[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=at(),this._bubble()}function It(e){return e instanceof kt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Mt(e,t){W(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+V(~~(e/60),2)+t+V(~~e%60,2)}))}Mt("Z",":"),Mt("ZZ",""),ue("Z",ae),ue("ZZ",ae),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(ae,e)}));var At=/([\+\-]|\d\d)/gi;function Pt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(At)||["-",0,0],r=60*i[1]+E(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Lt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):St(e).local()}function Nt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var jt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var n,i,r,o,s,a,c=e,u=null;return It(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=jt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:E(u[2])*n,h:E(u[3])*n,m:E(u[4])*n,s:E(u[5])*n,ms:E(Rt(1e3*u[6]))*n}):(u=Vt.exec(e))?c={y:Yt(u[2],n="-"===u[1]?-1:1),M:Yt(u[3],n),w:Yt(u[4],n),d:Yt(u[5],n),h:Yt(u[6],n),m:Yt(u[7],n),s:Yt(u[8],n)}:null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=St(c.from),s=St(c.to),r=o.isValid()&&s.isValid()?(s=Lt(s,o),o.isBefore(s)?a=Bt(o,s):((a=Bt(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),i=new kt(c),It(e)&&d(e,"_locale")&&(i._locale=e._locale),i}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Wt(this,Ht(n="string"==typeof n?+n:n,i),e),this}}function Wt(e,t,n,i){var o=t._milliseconds,s=Rt(t._days),a=Rt(t._months);e.isValid()&&(i=null==i||i,a&&ke(e,Ce(e,"Month")+a*n),s&&Ee(e,"Date",Ce(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Ht.fn=kt.prototype,Ht.invalid=function(){return Ht(NaN)};var Ut=Gt(1,"add"),zt=Gt(-1,"subtract");function qt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=at(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Qt(){return this._locale}function Xt(e,t){return(e%t+t)%t}function Jt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function Zt(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){W(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var o;return null==e?je(this,i,r).year:(t>(o=Ve(e,i,r))&&(t=o),nn.call(this,e,t,n,i,r))}function nn(e,t,n,i,r){var o=Fe(e,t,n,i,r),s=Le(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ue("G",oe),ue("g",oe),ue("GG",J,K),ue("gg",J,K),ue("GGGG",ne,Q),ue("gggg",ne,Q),ue("GGGGG",ie,X),ue("ggggg",ie,X),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=E(e)})),me(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),P("quarter","Q"),j("quarter",7),ue("Q",q),fe("Q",(function(e,t){t[1]=3*(E(e)-1)})),W("D",["DD",2],"Do","date"),P("date","D"),j("date",9),ue("D",J),ue("DD",J,K),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],2),fe("Do",(function(e,t){t[2]=E(e.match(J)[0])}));var rn=we("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),j("dayOfYear",4),ue("DDD",te),ue("DDDD",$),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=E(e)})),W("m",["mm",2],0,"minute"),P("minute","m"),j("minute",14),ue("m",J),ue("mm",J,K),fe(["m","mm"],4);var on=we("Minutes",!1);W("s",["ss",2],0,"second"),P("second","s"),j("second",15),ue("s",J),ue("ss",J,K),fe(["s","ss"],5);var sn,an=we("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),P("millisecond","ms"),j("millisecond",16),ue("S",te,q),ue("SS",te,K),ue("SSS",te,$),sn="SSSS";sn.length<=9;sn+="S")ue(sn,re);function ln(e,t){t[6]=E(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")fe(sn,ln);var cn=we("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var un=b.prototype;function dn(e){return e}un.add=Ut,un.calendar=function(e,t){var n=e||St(),i=Lt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(I(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,St(n)))},un.clone=function(){return new b(this)},un.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Lt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=L(t)){case"year":o=qt(this,i)/12;break;case"month":o=qt(this,i);break;case"quarter":o=qt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:C(o)},un.endOf=function(e){var t;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Zt:Jt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,232 bytes, line 1
1case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Xt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Xt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Xt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},un.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},un.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.fromNow=function(e){return this.from(St(),e)},un.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||St(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.toNow=function(e){return this.to(St(),e)},un.get=function(e){return I(this[e=L(e)])?this[e]():this},un.invalidAt=function(){return f(this).overflow},un.isAfter=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},un.isBefore=function(e,t){var n=w(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},un.isBetween=function(e,t,n,i){var r=w(e)?e:St(e),o=w(t)?t:St(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},un.isSame=function(e,t){var n,i=w(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},un.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},un.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},un.isValid=function(){return m(this)},un.lang=$t,un.locale=Kt,un.localeData=Qt,un.max=xt,un.min=Dt,un.parsingFlags=function(){return h({},f(this))},un.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:F[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=N(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(I(this[e=L(e)]))return this[e](t);return this},un.startOf=function(e){var t;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Zt:Jt;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Xt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Xt(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},un.subtract=zt,un.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},un.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},un.toDate=function(){return new Date(this.valueOf())},un.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 16,053 bytes, line 1
1,un.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},un.toJSON=function(){return this.isValid()?this.toISOString():null},un.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},un.unix=function(){return Math.floor(this.valueOf()/1e3)},un.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},un.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},un.year=be,un.isLeapYear=function(){return ve(this.year())},un.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},un.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},un.quarter=un.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},un.month=Ie,un.daysInMonth=function(){return Se(this.year(),this.month())},un.week=un.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},un.isoWeek=un.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},un.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},un.isoWeeksInYear=function(){return Ve(this.year(),1,4)},un.date=rn,un.day=un.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},un.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},un.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},un.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},un.hour=un.hours=Ze,un.minute=un.minutes=on,un.second=un.seconds=an,un.millisecond=un.milliseconds=cn,un.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Nt(this)},un.utc=function(e){return this.utcOffset(0,e)},un.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},un.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},un.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},un.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},un.isLocal=function(){return!!this.isValid()&&!this._isUTC},un.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},un.isUtc=Ft,un.isUTC=Ft,un.zoneAbbr=function(){return this._isUTC?"UTC":""},un.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},un.dates=x("dates accessor is deprecated. Use date instead.",rn),un.months=x("months accessor is deprecated. Use month instead",Ie),un.years=x("years accessor is deprecated. Use year instead",be),un.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),un.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Ct(e))._a){var t=e._isUTC?p(e._a):St(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hn=M.prototype;function pn(e,t,n,i){var r=at(),o=p().set(i,t);return r[n](o,e)}function fn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=pn(e,i,n,"month");return r}function mn(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var r,o=at(),s=e?o._week.dow:0;if(null!=n)return pn(t,(n+s)%7,i,"day");var a=[];for(r=0;r<7;r++)a[r]=pn(t,(r+s)%7,i,"day");return a}hn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return I(i)?i.call(t,n):i},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=dn,hn.postformat=dn,hn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return I(r)?r(e,t,n,i):r.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)I(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Me),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return je(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},hn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",at);var gn=Math.abs;function yn(e,t,n,i){var r=Ht(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Cn=wn("ms"),En=wn("s"),Sn=wn("m"),Dn=wn("h"),xn=wn("d"),Tn=wn("w"),On=wn("M"),kn=wn("Q"),In=wn("y");function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Mn=Rn("milliseconds"),An=Rn("seconds"),Pn=Rn("minutes"),Ln=Rn("hours"),Nn=Rn("days"),Fn=Rn("months"),jn=Rn("years"),Vn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function Yn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var Bn=Math.abs;function Gn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Bn(this._milliseconds)/1e3,i=Bn(this._days),r=Bn(this._months);e=C(n/60),t=C(e/60),n%=60,e%=60;var o=C(r/12),s=r%=12,a=i,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",p=Gn(this._months)!==Gn(d)?"-":"",f=Gn(this._days)!==Gn(d)?"-":"",m=Gn(this._milliseconds)!==Gn(d)?"-":"";return h+"P"+(o?p+o+"Y":"")+(s?p+s+"M":"")+(a?f+a+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var Un=kt.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Un.add=function(e,t){return yn(this,e,t,1)},Un.subtract=function(e,t){return yn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=L(e))||"quarter"===e||"year"===e)switch(n=this._months+_n(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=Cn,Un.asSeconds=En,Un.asMinutes=Sn,Un.asHours=Dn,Un.asDays=xn,Un.asWeeks=Tn,Un.asMonths=On,Un.asQuarters=kn,Un.asYears=In,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},Un._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*vn(bn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=C(o/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,s+=C(n/24),a+=r=C(_n(s)),s-=vn(bn(r)),i=C(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},Un.clone=function(){return Ht(this)},Un.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=Mn,Un.seconds=An,Un.minutes=Pn,Un.hours=Ln,Un.days=Nn,Un.weeks=function(){return C(this.days()/7)},Un.months=Fn,Un.years=jn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ht(e).abs(),r=Vn(i.as("s")),o=Vn(i.as("m")),s=Vn(i.as("h")),a=Vn(i.as("d")),l=Vn(i.as("M")),c=Vn(i.as("y")),u=r<=Hn.ss&&["s",r]||r<Hn.s&&["ss",r]||o<=1&&["m"]||o<Hn.m&&["mm",o]||s<=1&&["h"]||s<Hn.h&&["hh",s]||a<=1&&["d"]||a<Hn.d&&["dd",a]||l<=1&&["M"]||l<Hn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Yn.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Wn,Un.toString=Wn,Un.toJSON=Wn,Un.locale=Kt,Un.localeData=Qt,Un.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Un.lang=$t,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ue("x",oe),ue("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(E(e))})),r.version="2.24.0",t=St,r.fn=un,r.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return fn(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=g,r.duration=Ht,r.isMoment=w,r.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=at,r.isDuration=It,r.monthsShort=function(e,t){return fn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},r.defineLocale=st,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=(i=rt(e))&&(r=i._config),(n=new M(t=R(r,t))).parentLocale=tt[e],tt[e]=n,ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return T(tt)},r.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},r.normalizeUnits=L,r.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"
1s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=un,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("YuTi")(e))},wj3C:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n("mrSG"),s=n("zVF4"),a=n("S+S0"),l=n("q/0M"),c=((i={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i),u=new s.ErrorFactory("app","Firebase",c),d="@firebase/app",h=((r={})[d]="fire-core",r["@firebase/analytics"]="fire-analytics",r["@firebase/auth"]="fire-auth",r["@firebase/database"]="fire-rtdb",r["@firebase/functions"]="fire-fn",r["@firebase/installations"]="fire-iid",r["@firebase/messaging"]="fire-fcm",r["@firebase/performance"]="fire-perf",r["@firebase/remote-config"]="fire-rc",r["@firebase/storage"]="fire-gcs",r["@firebase/firestore"]="fire-fst",r["fire-js"]="fire-js",r["firebase-wrapper"]="fire-js-all",r),p=new l.Logger("@firebase/app"),f=function(){function e(e,t,n){var i,r,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=s.deepCopy(e),this.container=new a.ComponentContainer(t.name),this._addComponent(new a.Component("app",(function(){return l}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),u=c.next();!u.done;u=c.next())this._addComponent(u.value)}catch(d){i={error:d}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){p.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var m=function e(){var t=function(e){var t={},n=new Map,i={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={}),"object"==typeof r&&null!==r||(r={name:r});var o=r;void 0===o.name&&(o.name="[DEFAULT]");var a=o.name;if("string"!=typeof a||!a)throw u.create("bad-app-name",{appName:String(a)});if(s.contains(t,a))throw u.create("duplicate-app",{appName:a});var l=new e(n,o,i);return t[a]=l,l},app:r,registerVersion:function(e,t,n){var i,r=null!==(i=h[e])&&void 0!==i?i:e;n&&(r+="-"+n);var o=r.match(/\s|\//),s=t.match(/\s|\//);if(o||s){var c=['Unable to register library "'+r+'" with version "'+t+'":'];return o&&c.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),o&&s&&c.push("and"),s&&c.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void p.warn(c.join(" "))}l(new a.Component(r+"-version",(function(){return{library:r,version:t}}),"VERSION"))},apps:null,SDK_VERSION:"7.8.1",INTERNAL:{registerComponent:l,removeApp:function(e){delete t[e]}
1,components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function r(e){if(!s.contains(t,e=e||"[DEFAULT]"))throw u.create("no-app",{appName:e});return t[e]}function l(a){var l,c,d=a.name;if(n.has(d))return p.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===a.type?i[d]:null;if(n.set(d,a),"PUBLIC"===a.type){var h=function(e){if(void 0===e&&(e=r()),"function"!=typeof e[d])throw u.create("invalid-app-argument",{appName:d});return e[d]()};void 0!==a.serviceProps&&s.deepExtend(h,a.serviceProps),i[d]=h,e.prototype[d]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,d);return n.apply(this,a.multipleInstances?e:[])}}try{for(var f=o.__values(Object.keys(t)),m=f.next();!m.done;m=f.next())t[m.value]._addComponent(a)}catch(g){l={error:g}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}return"PUBLIC"===a.type?i[d]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),r.App=e,i}(f);return t.INTERNAL=o.__assign(o.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){s.deepExtend(t,e)},createSubscribe:s.createSubscribe,ErrorFactory:s.ErrorFactory,deepExtend:s.deepExtend}),t}(),g=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t;return"VERSION"===(null===(t=e.getComponent())||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(s.isBrowser()&&void 0!==self.firebase){p.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var y=self.firebase.SDK_VERSION;y&&y.indexOf("LITE")>=0&&p.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var v=m.initializeApp;m.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.isNode()&&p.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),v.apply(void 0,e)};var _=m;!function(e,t){e.INTERNAL.registerComponent(new a.Component("platform-logger",(function(e){return new g(e)}),"PRIVATE")),e.registerVersion(d,"0.5.4",void 0),e.registerVersion("fire-js","")}(_),t.default=_,t.firebase=_},x6pH:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u
105d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n("wd/R"))},x7I3:function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorCode",(function(){return ai})),n.d(t,"EventType",(function(){return li})),n.d(t,"WebChannel",(function(){return ci})),n.d(t,"XhrIo",(function(){return ui})),n.d(t,"createWebChannelTransport",(function(){return si}));var i,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=o||{},s=r;function a(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e,t){e=e.split("."),t=t||s;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function u(){}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function h(e){return"array"==d(e)}function p(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function f(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var m="closure_uid_"+(1e9*Math.random()>>>0),g=0;function y(e,t,n){return e.call.apply(e.bind,arguments)}function v(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function _(e,t,n){return(_=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y:v).apply(null,arguments)}
1function b(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var w=Date.now||function(){return+new Date};function C(e,t){function n(){}n.prototype=t.prototype,e.N=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.xb=function(e,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t.prototype[n].apply(e,r)}}function E(){this.j=this.j,this.i=this.i}E.prototype.j=!1,E.prototype.la=function(){!this.j&&(this.j=!0,this.G(),0)&&(this[m]||(this[m]=++g))},E.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var S=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(a(e))return a(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},D=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var i=e.length,r=a(e)?e.split(""):e,o=0;o<i;o++)o in r&&t.call(n,r[o],o,e)};function x(e){return Array.prototype.concat.apply([],arguments)}function T(e){var t=e.length;if(0<t){for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}return[]}function O(e){return/^[\s\xa0]*$/.test(e)}var k,I=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function R(e,t){return-1!=e.indexOf(t)}function M(e,t){return e<t?-1:e>t?1:0}e:{var A=s.navigator;if(A){var P=A.userAgent;if(P){k=P;break e}}k=""}function L(e,t,n){for(var i in e)t.call(n,e[i],i,e)}function N(e){var t,n={};for(t in e)n[t]=e[t];return n}var F="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function j(e,t){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])e[n]=i[n];for(var o=0;o<F.length;o++)n=F[o],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}}function V(e){return V[" "](e),e}V[" "]=u;var H,Y,B=R(k,"Opera"),G=R(k,"Trident")||R(k,"MSIE"),W=R(k,"Edge"),U=W||G,z=R(k,"Gecko")&&!(R(k.toLowerCase(),"webkit")&&!R(k,"Edge"))&&!(R(k,"Trident")||R(k,"MSIE"))&&!R(k,"Edge"),q=R(k.toLowerCase(),"webkit")&&!R(k,"Edge");function K(){var e=s.document;return e?e.documentMode:void 0}e:{var $="",Q=(Y=k,z?/rv:([^\);]+)(\)|;)/.exec(Y):W?/Edge\/([\d\.]+)/.exec(Y):G?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y):q?/WebKit\/(\S+)/.exec(Y):B?/(?:Version)[ \/]?(\S+)/.exec(Y):void 0);if(Q&&($=Q?Q[1]:""),G){var X=K();if(null!=X&&X>parseFloat($)){H=String(X);break e}}H=$}var J,Z={};function ee(e){return function(e,t){var n=Z;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t()}(e,(function(){for(var t=0,n=I(String(H)).split("."),i=I(String(e)).split("."),r=Math.max(n.length,i.length),o=0;0==t&&o<r;o++){var s=n[o]||"",a=i[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;t=M(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||M(0==s[2].length,0==a[2].length)||M(s[2],a[2]),s=s[3],a=a[3]}while(0==t)}return 0<=t}))}var te=s.document;J=te&&G?K()||("CSS1Compat"==te.compatMode?parseInt(H,10):5):void 0;var ne=!G||9<=Number(J),ie=G&&!ee("9"),re=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{s.addEventListener("test",u,t),s.removeEventListener("test",u,t)}catch(n){}return e}();function oe(e,t){this.type=e,this.a=this.target=t,this.Ia=!0}function se(e,t){if(oe.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(z){e:{try{V(t.nodeName);var r=!0;break e}catch(o){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=a(e.pointerType)?e.pointerType:ae[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}oe.prototype.b=function(){this.Ia=!1},C(se,oe);var ae={2:"touch",3:"pen",4:"mouse"};se.prototype.b=function(){se.N.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,ie)try{(e.ctrlKey||112<=e.keyCode&&123>
1=e.keyCode)&&(e.keyCode=-1)}catch(t){}};var le="closure_listenable_"+(1e6*Math.random()|0),ce=0;function ue(e,t,n,i,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!i,this.da=r,this.key=++ce,this.X=this.Z=!1}function de(e){e.X=!0,e.listener=null,e.proxy=null,e.src=null,e.da=null}function he(e){this.src=e,this.a={},this.b=0}function pe(e,t){var n=t.type;if(n in e.a){var i,r=e.a[n],o=S(r,t);(i=0<=o)&&Array.prototype.splice.call(r,o,1),i&&(de(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function fe(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r];if(!o.X&&o.listener==t&&o.capture==!!n&&o.da==i)return r}return-1}he.prototype.add=function(e,t,n,i,r){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var s=fe(e,t,i,r);return-1<s?(t=e[s],n||(t.Z=!1)):((t=new ue(t,this.src,o,!!i,r)).Z=n,e.push(t)),t};var me="closure_lm_"+(1e6*Math.random()|0),ge={};function ye(e,t,n,i,r){if(i&&i.once)return function e(t,n,i,r,o){if(h(n)){for(var s=0;s<n.length;s++)e(t,n[s],i,r,o);return null}return i=Se(i),t&&t[le]?t.Aa(n,i,f(r)?!!r.capture:!!r,o):ve(t,n,i,!0,r,o)}(e,t,n,i,r);if(h(t)){for(var o=0;o<t.length;o++)ye(e,t[o],n,i,r);return null}return n=Se(n),e&&e[le]?e.za(t,n,f(i)?!!i.capture:!!i,r):ve(e,t,n,!1,i,r)}function ve(e,t,n,i,r,o){if(!t)throw Error("Invalid event type");var s=f(r)?!!r.capture:!!r;if(s&&!ne)return null;var a=Ce(e);if(a||(e[me]=a=new he(e)),(n=a.add(t,n,i,s,o)).proxy)return n;if(i=function(){var e=we,t=ne?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=i,i.src=e,i.listener=n,e.addEventListener)re||(r=s),void 0===r&&(r=!1),e.addEventListener(t.toString(),i,r);else if(e.attachEvent)e.attachEvent(be(t.toString()),i);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(i)}return n}function _e(e){if(!l(e)&&e&&!e.X){var t=e.src;if(t&&t[le])pe(t.c,e);else{var n=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(n,i,e.capture):t.detachEvent?t.detachEvent(be(n),i):t.addListener&&t.removeListener&&t.removeListener(i),(n=Ce(t))?(pe(n,e),0==n.b&&(n.src=null,t[me]=null)):de(e)}}}function be(e){return e in ge?ge[e]:ge[e]="on"+e}function we(e,t){return!!e.X||function(e,t){var n=e.listener,i=e.da||e.src;return e.Z&&_e(e),n.call(i,t)}(e,ne?new se(t,this):t=new se(t||c("window.event"),this))}function Ce(e){return(e=e[me])instanceof he?e:null}var Ee="__closure_events_fn_"+(1e9*Math.random()>>>0);function Se(e){return"function"==d(e)?e:(e[Ee]||(e[Ee]=function(t){return e.handleEvent(t)}),e[Ee])}function De(){E.call(this),this.c=new he(this),this.J=this,this.B=null}function xe(e,t,n,i){if(!(t=e.c.a[String(t)]))return!0;t=t.concat();for(var r=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.X&&s.capture==n){var a=s.listener,l=s.da||s.src;s.Z&&pe(e.c,s),r=!1!==a.call(l,i)&&r}}return r&&0!=i.Ia}C(De,E),De.prototype[le]=!0,(i=De.prototype).addEventListener=function(e,t,n,i){ye(this,e,t,n,i)},i.removeEventListener=function(e,t,n,i){!function e(t,n,i,r,o){if(h(n))for(var s=0;s<n.length;s++)e(t,n[s],i,r,o);else r=f(r)?!!r.capture:!!r,i=Se(i),t&&t[le]?(t=t.c,(n=String(n).toString())in t.a&&-1<(i=fe(s=t.a[n],i,r,o))&&(de(s[i]),Array.prototype.splice.call(s,i,1),0==s.length&&(delete t.a[n],t.b--))):t&&(t=Ce(t))&&(n=t.a[n.toString()],t=-1,n&&(t=fe(n,i,r,o)),(i=-1<t?n[t]:null)&&_e(i))}(this,e,t,n,i)},i.dispatchEvent=function(e){var t,n=this.B;if(n)for(t=[];n;n=n.B)t.push(n);n=this.J;var i=e.type||e;if(a(e))e=new oe(e,n);else if(e instanceof oe)e.target=e.target||n;else{var r=e;j(e=new oe(i,n),r)}if(r=!0,t)for(var o=t.length-1;0<=o;o--){var s=e.a=t[o];r=xe(s,i,!0,e)&&r}if(r=xe(s=e.a=n,i,!0,e)&&r,r=xe(s,i,!1,e)&&r,t)for(o=0;o<t.length;o++)r=xe(s=e.a=t[o],i,!1,e)&&r;return r},i.G=function(){if(De.N.G.call(this),this.c){var e,t=this.c;for(e in t.a){for(var n=t.a[e],i=0;i<n.length;i++)de(n[i]);delete t.a[e],t.b--}}this.B=null},i.za=function(e,t,n,i){return this.c.add(String(e),t,!1,n,i)},i.Aa=function(e,t,n,i){return this.c.add(String(e),t,!0,n,i)};var Te=s.JSON.stringify;function Oe(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function ke(){this.b=this.a=null}
1Oe.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Ie,Re=new Oe((function(){return new Ae}),(function(e){e.reset()}));function Me(){var e=Fe,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Ae(){this.next=this.b=this.a=null}function Pe(e){s.setTimeout((function(){throw e}),0)}function Le(e,t){Ie||function(){var e=s.Promise.resolve(void 0);Ie=function(){e.then(je)}}(),Ne||(Ie(),Ne=!0),Fe.add(e,t)}ke.prototype.add=function(e,t){var n=Re.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ae.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ae.prototype.reset=function(){this.next=this.b=this.a=null};var Ne=!1,Fe=new ke;function je(){for(var e;e=Me();){try{e.a.call(e.b)}catch(n){Pe(n)}var t=Re;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Ne=!1}function Ve(e,t){De.call(this),this.b=e||1,this.a=t||s,this.f=_(this.fb,this),this.g=w()}function He(e){e.ba=!1,e.L&&(e.a.clearTimeout(e.L),e.L=null)}function Ye(e,t,n){if("function"==d(e))n&&(e=_(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=_(e.handleEvent,e)}return 2147483647<Number(t)?-1:s.setTimeout(e,t||0)}function Be(e,t,n){E.call(this),this.f=null!=n?_(e,n):e,this.c=t,this.b=_(this.$a,this),this.a=[]}function Ge(e){e.U=Ye(e.b,e.c),e.f.apply(null,e.a)}function We(e){E.call(this),this.b=e,this.a={}}C(Ve,De),(i=Ve.prototype).ba=!1,i.L=null,i.fb=function(){if(this.ba){var e=w()-this.g;0<e&&e<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-e):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.ba&&(He(this),this.start()))}},i.start=function(){this.ba=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=w())},i.G=function(){Ve.N.G.call(this),He(this),delete this.a},C(Be,E),(i=Be.prototype).ea=!1,i.U=null,i.Ta=function(e){this.a=arguments,this.U?this.ea=!0:Ge(this)},i.G=function(){Be.N.G.call(this),this.U&&(s.clearTimeout(this.U),this.U=null,this.ea=!1,this.a=[])},i.$a=function(){this.U=null,this.ea&&(this.ea=!1,Ge(this))},C(We,E);var Ue=[];function ze(e,t,n,i){h(n)||(n&&(Ue[0]=n.toString()),n=Ue);for(var r=0;r<n.length;r++){var o=ye(t,n[r],i||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function qe(e){L(e.a,(function(e,t){this.a.hasOwnProperty(t)&&_e(e)}),e),e.a={}}function Ke(){}We.prototype.G=function(){We.N.G.call(this),qe(this)},We.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var $e=new De;function Qe(e){oe.call(this,"serverreachability",e)}function Xe(e){$e.dispatchEvent(new Qe($e,e))}function Je(e){oe.call(this,"statevent",e)}function Ze(e){$e.dispatchEvent(new Je($e,e))}function et(e){oe.call(this,"timingevent",e)}function tt(e,t){if("function"!=d(e))throw Error("Fn must not be null and must be a function");return s.setTimeout((function(){e()}),t)}C(Qe,oe),C(Je,oe),C(et,oe);var nt={NO_ERROR:0,gb:1,nb:2,mb:3,jb:4,lb:5,ob:6,La:7,TIMEOUT:8,rb:9},it={ib:"complete",vb:"success",Ma:"error",La:"abort",tb:"ready",ub:"readystatechange",TIMEOUT:"timeout",pb:"incrementaldata",sb:"progress",kb:"downloadprogress",wb:"uploadprogress"};function rt(){}function ot(){}rt.prototype.a=null;var st,at={OPEN:"a",hb:"b",Ma:"c",qb:"d"};function lt(){oe.call(this,"d")}function ct(){oe.call(this,"c")}function ut(){}function dt(e,t,n){this.g=e,this.W=t,this.V=n||1,this.I=new We(this),this.O=ht,this.P=new Ve(e=U?125:void 0),this.h=null,this.b=!1,this.l=this.D=this.f=this.F=this.v=this.R=this.i=null,this.j=[],this.a=null,this.A=0,this.c=this.w=null,this.o=-1,this.m=!1,this.J=0,this.B=null,this.s=this.S=this.H=!1}C(lt,oe),C(ct,oe),C(ut,rt),st=new ut;var ht=45e3,pt={},ft={};function mt(e,t,n){e.F=1,e.f=Ht(At(t)),e.l=n,e.H=!0,yt(e,null)}function gt(e,t,n,i){e.F=1,e.f=Ht(At(t)),e.l=null,e.H=n,yt(e,i)}function yt(e,t){e.v=w(),bt(e),e.D=At(e.f),Vt(e.D,"t",e.V),e.A=0,e.a=e.g.$(e.g.Y()?t:null),0<e.J&&(e.B=new Be(_(e.Ja,e,e.a),e.J)),ze(e.I,e.a,"readystatechange",e.cb),t=e.h?N(e.h):{},e.l?(e.w||(e.w="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.a.ca(e.D,e.w,e.l,t)):(e.w="GET",e.a.ca(e.D,e.w,null,t)),Xe(1)}function vt(e,t,n){for(var i=!0;!e.m&&e.A<n.length;){var r=_t(e,n);if(r==ft){4==t&&(e.c=4,Ze(14),i=!1);break}if(r==pt){e.c=4,Ze(15),i=!1;break}Dt(e,r)}4==t&&0==n.length&&(e.c=1,Ze(16),i=!1),e.b=e.b&&i,i||(St(e),Et(e))}function _t(e,t){var n=e.A,i=t.indexOf("\n",n);return-1==i?ft:(n=Number(t.substring(n,i)),isNaN(n)?pt:(i+=1)+n>t.length?ft:(t=t.substr(i,n),e.A=i+n,t))}function bt(e){e.R=w()+e.O,wt(e,e.O)}function wt(e,t){if(null!=e.i)throw Error("WatchDog timer not null");e.i=tt(_(e.ab,e),t)}
1function Ct(e){e.i&&(s.clearTimeout(e.i),e.i=null)}function Et(e){e.g.Ca()||e.m||e.g.na(e)}function St(e){Ct(e);var t=e.B;t&&"function"==typeof t.la&&t.la(),e.B=null,He(e.P),qe(e.I),e.a&&(t=e.a,e.a=null,t.abort(),t.la())}function Dt(e,t){try{e.g.Fa(e,t),Xe(4)}catch(n){}}function xt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(p(e)||a(e))D(e,t,void 0);else{if(e.K&&"function"==typeof e.K)var n=e.K();else if(e.C&&"function"==typeof e.C)n=void 0;else if(p(e)||a(e)){n=[];for(var i=e.length,r=0;r<i;r++)n.push(r)}else for(r in n=[],i=0,e)n[i++]=r;r=(i=function(e){if(e.C&&"function"==typeof e.C)return e.C();if(a(e))return e.split("");if(p(e)){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}for(i in t=[],n=0,e)t[n++]=e[i];return t}(e)).length;for(var o=0;o<r;o++)t.call(void 0,i[o],n&&n[o],e)}}function Tt(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof Tt)for(n=e.K(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function Ot(e,t){It(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&kt(e))}function kt(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var i=e.a[t];It(e.b,i)&&(e.a[n++]=i),t++}e.a.length=n}if(e.c!=e.a.length){var r={};for(n=t=0;t<e.a.length;)It(r,i=e.a[t])||(e.a[n++]=i,r[i]=1),t++;e.a.length=n}}function It(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(i=dt.prototype).setTimeout=function(e){this.O=e},i.cb=function(e){e=e.target;var t=this.B;t&&3==An(e)?t.Ta():this.Ja(e)},i.Ja=function(e){try{if(e==this.a)e:{var t=An(this.a),n=this.a.ya(),i=this.a.T();if(!(3>t||3==t&&!U&&!this.a.aa())){this.m||4!=t||7==n||Xe(8==n||0>=i?3:2),Ct(this);var r=this.a.T();this.o=r;var o=this.a.aa();if(this.b=200==r){if(this.S&&!this.s){t:{if(this.a){var s=Pn(this.a,"X-HTTP-Initial-Response");if(s&&!O(s)){var a=s;break t}}a=null}if(!a){this.b=!1,this.c=3,Ze(12),St(this),Et(this);break e}this.s=!0,Dt(this,a)}this.H?(vt(this,t,o),U&&this.b&&3==t&&(ze(this.I,this.P,"tick",this.bb),this.P.start())):Dt(this,o),4==t&&St(this),this.b&&!this.m&&(4==t?this.g.na(this):(this.b=!1,bt(this)))}else 400==r&&0<o.indexOf("Unknown SID")?(this.c=3,Ze(12)):(this.c=0,Ze(13)),St(this),Et(this)}}}catch(l){}},i.bb=function(){if(this.a){var e=An(this.a),t=this.a.aa();this.A<t.length&&(Ct(this),vt(this,e,t),this.b&&4!=e&&bt(this))}},i.cancel=function(){this.m=!0,St(this)},i.ab=function(){this.i=null;var e=w();0<=e-this.R?(2!=this.F&&(Xe(3),Ze(17)),St(this),this.c=2,Et(this)):wt(this,this.R-e)},(i=Tt.prototype).C=function(){kt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},i.K=function(){return kt(this),this.a.concat()},i.get=function(e,t){return It(this.b,e)?this.b[e]:t},i.set=function(e,t){It(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},i.forEach=function(e,t){for(var n=this.K(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);e.call(t,o,r,this)}};var Rt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Mt(e,t){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,e instanceof Mt?(this.h=void 0!==t?t:e.h,Pt(this,e.f),this.j=e.j,Lt(this,e.b),Nt(this,e.i),this.a=e.a,Ft(this,en(e.c)),this.g=e.g):e&&(n=String(e).match(Rt))?(this.h=!!t,Pt(this,n[1]||"",!0),this.j=Yt(n[2]||""),Lt(this,n[3]||"",!0),Nt(this,n[4]),this.a=Yt(n[5]||"",!0),Ft(this,n[6]||"",!0),this.g=Yt(n[7]||"")):(this.h=!!t,this.c=new $t(null,this.h))}function At(e){return new Mt(e)}function Pt(e,t,n){e.f=n?Yt(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Lt(e,t,n){e.b=n?Yt(t,!0):t}function Nt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function Ft(e,t,n){t instanceof $t?(e.c=t,function(e,t){t&&!e.f&&(Qt(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Xt(this,t),Zt(this,n,e))}),e)),e.f=t}(e.c,e.h)):(n||(t=Bt(t,qt)),e.c=new $t(t,e.h))}function jt(e,t,n){e.c.set(t,n)}function Vt(e,t,n){h(n)||(n=[String(n)]),Zt(e.c,t,n)}function Ht(e){return jt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36)),e}function Yt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Bt(e,t,n){return a(e)?(e=encodeURI(e).replace(t,Gt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Gt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Mt.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Bt(t,Wt,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(Bt(t,Wt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(Bt(n,"/"==n.charAt(0)?zt:Ut,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",Bt(n,Kt)),e.join("")},Mt.prototype.resolve=function(e){var t=At(this),n=!!e.f;n?Pt(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?Lt(t,e.b):n=null!=e.i;var i=e.a;if(n)Nt(t,e.i);else if(n=!!e.a){if("/"!=i.charAt(0))if(this.b&&!this.a)i="/"+i;else{var r=t.a.lastIndexOf("/");-1!=r&&(i=t.a.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(R(r,"./")||R(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],s=0;s<r.length;){var a=r[s++];"."==a?i&&s==r.length&&o.push(""):".."==a?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&s==r.length&&o.push("")):(o.push(a),i=!0)}i=o.join("/")}else i=r}return n?t.a=i:n=""!==e.c.toString(),n?Ft(t,en(e.c)):n=!!e.g,n&&(t.g=e.g),t};var Wt=/[#\/\?@]/g,Ut=/[#\?:]/g,zt=/[#\?]/g,qt=/[#\?@]/g,Kt=/#/g;function $t(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qt(e){e.a||(e.a=new Tt,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i=e[n].indexOf("="),r=null;if(0<=i){var o=e[n].substring(0,i);r=e[n].substring(i+1)}else o=e[n];t(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Xt(e,t){Qt(e),t=tn(e,t),It(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Ot(e.a,t))}function Jt(e,t){return Qt(e),t=tn(e,t),It(e.a.b,t)}function Zt(e,t,n){Xt(e,t),0<n.length&&(e.c=null,e.a.set(tn(e,t),T(n)),e.b+=n.length)}function en(e){var t=new $t;return t.c=e.c,e.a&&(t.a=new Tt(e.a),t.b=e.b),t}function tn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nn(e){this.a=e,this.b=this.h=null,this.g=!1,this.i=null,this.c=-1,this.l=this.f=null}function rn(e){var t=e.a.F.a;if(null!=t)Ze(4),t?(Ze(10),zn(e.a,e,!1)):(Ze(11),zn(e.a,e,!0));else{e.b=new dt(e,void 0,void 0),e.b.h=e.h,t=Xn(t=e.a,t.Y()?e.f:null,e.i),Ze(4),Vt(t,"TYPE","xmlhttp");var n=e.a.j,i=e.a.I;n&&i&&jt(t,n,i),gt(e.b,t,!1,e.f)}}function on(){this.a=this.b=null}function sn(){this.a=new Tt}function an(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[m]||(e[m]=++g)):t.charAt(0)+e}function ln(e,t){this.b=e,this.a=t}function cn(e){this.g=e||un,e=s.PerformanceNavigationTiming?0<(e=s.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(s.ka&&s.ka.Da&&s.ka.Da()&&s.ka.Da().yb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new sn),this.b=null,this.c=[]}(i=$t.prototype).add=function(e,t){Qt(this),this.c=null,e=tn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this}
1,i.forEach=function(e,t){Qt(this),this.a.forEach((function(n,i){D(n,(function(n){e.call(t,n,i,this)}),this)}),this)},i.K=function(){Qt(this);for(var e=this.a.C(),t=this.a.K(),n=[],i=0;i<t.length;i++)for(var r=e[i],o=0;o<r.length;o++)n.push(t[i]);return n},i.C=function(e){Qt(this);var t=[];if(a(e))Jt(this,e)&&(t=x(t,this.a.get(tn(this,e))));else{e=this.a.C();for(var n=0;n<e.length;n++)t=x(t,e[n])}return t},i.set=function(e,t){return Qt(this),this.c=null,Jt(this,e=tn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},i.get=function(e,t){return e&&0<(e=this.C(e)).length?String(e[0]):t},i.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.K(),n=0;n<t.length;n++){var i=t[n],r=encodeURIComponent(String(i));i=this.C(i);for(var o=0;o<i.length;o++){var s=r;""!==i[o]&&(s+="="+encodeURIComponent(String(i[o]))),e.push(s)}}return this.c=e.join("&")},C((function(){}),(function(){})),(i=nn.prototype).M=null,i.$=function(e){return this.a.$(e)},i.abort=function(){this.b&&(this.b.cancel(),this.b=null),this.c=-1},i.Ca=function(){return!1},i.Fa=function(e,t){if(this.c=e.o,0==this.M){if(!this.a.o&&(e=e.a)){var n=Pn(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&(e=Pn(e,"X-HTTP-Session-Id"))&&(this.a.I=e)}if(t){try{var i=this.a.ja.a.parse(t)}catch(r){return(t=this.a).m=this.c,void $n(t,2)}this.f=i[0]}else(t=this.a).m=this.c,$n(t,2)}else 1==this.M&&(this.g?Ze(6):"11111"==t?(Ze(5),this.g=!0,(!G||10<=Number(J))&&(this.c=200,this.b.cancel(),Ze(11),zn(this.a,this,!0))):(Ze(7),this.g=!1))},i.na=function(){if(this.c=this.b.o,this.b.b)0==this.M?(this.M=1,rn(this)):1==this.M&&(this.g?(Ze(11),zn(this.a,this,!0)):(Ze(10),zn(this.a,this,!1)));else{0==this.M?Ze(8):1==this.M&&Ze(9);var e=this.a;e.m=this.c,$n(e,2)}},i.Y=function(){return this.a.Y()},i.ma=function(){return this.a.ma()},sn.prototype.add=function(e){this.a.set(an(e),e)},sn.prototype.C=function(){return this.a.C()};var un=10;function dn(e,t){!e.a&&(R(t,"spdy")||R(t,"quic")||R(t,"h2"))&&(e.f=e.g,e.a=new sn,e.b&&(mn(e,e.b),e.b=null))}function hn(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function pn(e){return e.b?1:e.a?e.a.a.c:0}function fn(e,t){return e.b?e=e.b==t:e.a?(t=an(t),e=It(e.a.a.b,t)):e=!1,e}function mn(e,t){e.a?e.a.add(t):e.b=t}function gn(e,t){var n;e.b&&e.b==t?e.b=null:((n=e.a)&&(n=an(t),n=It(e.a.a.b,n)),n&&Ot(e.a.a,an(t)))}function yn(e){if(null!=e.b)return e.c.concat(e.b.j);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return D(e.a.C(),(function(e){t=t.concat(e.j)})),t}return T(e.c)}function vn(){}function _n(){this.a=new vn}function bn(e,t,n){var i=n||"";try{xt(e,(function(e,n){var r=e;f(e)&&(r=Te(e)),t.push(i+n+"="+encodeURIComponent(r))}))}catch(r){throw t.push(i+"type="+encodeURIComponent("_badmap")),r}}function wn(e,t,n,i,r){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,r(i)}catch(o){}}cn.prototype.cancel=function(){this.c=yn(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(D(this.a.C(),(function(e){e.cancel()})),function(e){e.b={},e.a.length=0,e.c=0}(this.a.a))},vn.prototype.stringify=function(e){return s.JSON.stringify(e,void 0)},vn.prototype.parse=function(e){return s.JSON.parse(e,void 0)};var Cn=s.JSON.parse;function En(e){De.call(this),this.headers=new Tt,this.H=e||null,this.b=!1,this.s=this.a=null,this.A="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.I=Sn,this.D=this.F=!1}C(En,De);var Sn="",Dn=/^https?$/i,xn=["POST","PUT"];function Tn(e){return"content-type"==e.toLowerCase()}function On(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,kn(e),Rn(e)}function kn(e){e.v||(e.v=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function In(e){if(e.b&&void 0!==o&&(!e.s[1]||4!=An(e)||2!=e.T()))if(e.l&&4==An(e))Ye(e.Ea,0,e);else if(e.dispatchEvent("readystatechange"),4==An(e)){e.b=!1;try{var t,n=e.T();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break e;default:i=!1}if(!(t=i)){var r;if(r=0===n){var a=String(e.A).match(Rt)[1]||null;if(!a&&s.self&&s.self.location){var l=s.self.location.protocol;a=l.substr(0,l.length-1)}r=!Dn.test(a?a.toLowerCase():"")}t=r}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.h=6;try{var c=2<An(e)?e.a.statusText:""}catch(u){c=""}e.f=c+" ["+e.T()+"]",kn(e)}}finally{Rn(e)}}}function Rn(e,t){if(e.a){Mn(e);var n=e.a,i=e.s[0]?u:null;e.a=null,e.s=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){}}}function Mn(e){e.a&&e.D&&(e.a.ontimeout=null),e.m&&(s.clearTimeout(e.m),e.m=null)}function An(e){return e.a?e.a.readyState:0}function Pn(e,t){return e.a?e.a.getResponseHeader(t):null}function Ln(e,t,n){e:{for(i in n){var i=!1;break e}i=!0}if(i)return e;if(n=function(e){var t="";return L(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}
1(n),a(e)){if(t=encodeURIComponent(String(t)),t+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=e.indexOf("#"))&&(n=e.length),0>(i=e.indexOf("?"))||i>n){i=n;var r=""}else r=e.substring(i+1,n);n=(e=[e.substr(0,i),r,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return jt(e,t,n),e}function Nn(e){this.f=[],this.F=new on,this.ga=this.pa=this.B=this.ha=this.a=this.I=this.j=this.V=this.g=this.J=this.i=null,this.Qa=this.P=0,this.Oa=!!c("internalChannelParams.failFast",e),this.ia=this.w=this.s=this.l=this.h=this.c=null,this.oa=!0,this.m=this.ra=this.O=-1,this.S=this.v=this.A=0,this.Na=c("internalChannelParams.baseRetryDelayMs",e)||5e3,this.Ra=c("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Pa=c("internalChannelParams.forwardChannelMaxRetries",e)||2,this.qa=c("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ka=e&&e.zb||void 0,this.D=void 0,this.R=e&&e.supportsCrossDomainXhr||!1,this.H="",this.b=new cn(e&&e.concurrentRequestLimit),this.ja=new _n,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.W=e&&e.fastHandshake||!1)&&!this.o&&(this.o=!0),e&&e.forceLongPolling&&(this.oa=!1),this.fa=void 0}function Fn(e){if(jn(e),3==e.u){var t=e.P++,n=At(e.B);jt(n,"SID",e.H),jt(n,"RID",t),jt(n,"TYPE","terminate"),Bn(e,n),(t=new dt(e,t,void 0)).F=2,t.f=Ht(At(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(t.f.toString(),"")),!n&&s.Image&&((new Image).src=t.f,n=!0),n||(t.a=t.g.$(null),t.a.ca(t.f)),t.v=w(),bt(t)}Qn(e)}function jn(e){e.w&&(e.w.abort(),e.w=null),e.a&&(e.a.cancel(),e.a=null),e.l&&(s.clearTimeout(e.l),e.l=null),qn(e),e.b.cancel(),e.h&&(l(e.h)&&s.clearTimeout(e.h),e.h=null)}function Vn(e,t){e.f.push(new ln(e.Qa++,t)),3==e.u&&Hn(e)}function Hn(e){hn(e.b)||e.h||(e.h=!0,Le(e.Ha,e),e.A=0)}function Yn(e,t){var n;n=t?t.W:e.P++;var i=At(e.B);jt(i,"SID",e.H),jt(i,"RID",n),jt(i,"AID",e.O),Bn(e,i),e.g&&e.i&&Ln(i,e.g,e.i),n=new dt(e,n,e.A+1),null===e.g&&(n.h=e.i),t&&(e.f=t.j.concat(e.f)),t=Gn(e,n,1e3),n.setTimeout(Math.round(.5*e.qa)+Math.round(.5*e.qa*Math.random())),mn(e.b,n),mt(n,i,t)}function Bn(e,t){e.c&&xt({},(function(e,n){jt(t,n,e)}))}function Gn(e,t,n){n=Math.min(e.f.length,n);var i=e.c?_(e.c.Sa,e.c,e):null;e:for(var r=e.f,o=-1;;){var s=["count="+n];-1==o?0<n?s.push("ofs="+(o=r[0].b)):o=0:s.push("ofs="+o);for(var a=!0,l=0;l<n;l++){var c=r[l].b,u=r[l].a;if(0>(c-=o))o=Math.max(0,r[l].b-100),a=!1;else try{bn(u,s,"req"+c+"_")}catch(d){i&&i(u)}}if(a){i=s.join("&");break e}}return e=e.f.splice(0,n),t.j=e,i}function Wn(e){e.a||e.l||(e.S=1,Le(e.Ga,e),e.v=0)}function Un(e){return!(e.a||e.l||3<=e.v||(e.S++,e.l=tt(_(e.Ga,e),Kn(e,e.v)),e.v++,0))}function zn(e,t,n){var i=t.l;i&&dn(e.b,i),e.ia=e.oa&&n,e.m=t.c,e.B=Xn(e,null,e.ha),Hn(e)}function qn(e){null!=e.s&&(s.clearTimeout(e.s),e.s=null)}function Kn(e,t){var n=e.Na+Math.floor(Math.random()*e.Ra);return e.ma()||(n*=2),n*t}function $n(e,t){if(2==t){var n=null;e.c&&(n=null);var i=_(e.eb,e);n||(n=new Mt("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||Pt(n,"https"),Ht(n)),function(e,t){var n=new Ke;if(s.Image){var i=new Image;i.onload=b(wn,n,i,"TestLoadImage: loaded",!0,t),i.onerror=b(wn,n,i,"TestLoadImage: error",!1,t),i.onabort=b(wn,n,i,"TestLoadImage: abort",!1,t),i.ontimeout=b(wn,n,i,"TestLoadImage: timeout",!1,t),s.setTimeout((function(){i.ontimeout&&i.ontimeout()}),1e4),i.src=e}else t(!1)}(n.toString(),i)}else Ze(2);e.u=0,e.c&&e.c.ta(t),Qn(e),jn(e)}function Qn(e){e.u=0,e.m=-1,e.c&&(0==yn(e.b).length&&0==e.f.length||(e.b.c.length=0,T(e.f),e.f.length=0),e.c.sa())}function Xn(e,t,n){var i=function(e){return e instanceof Mt?At(e):new Mt(e,void 0)}(n);if(""!=i.b)t&&Lt(i,t+"."+i.b),Nt(i,i.i);else{var r=s.location;i=function(e,t,n,i){var r=new Mt(null,void 0);return e&&Pt(r,e),t&&Lt(r,t),n&&Nt(r,n),i&&(r.a=i),r}(r.protocol,t?t+"."+r.hostname:r.hostname,+r.port,n)}return e.V&&L(e.V,(function(e,t){jt(i,t,e)})),n=e.I,(t=e.j)&&n&&jt(i,t,n),jt(i,"VER",e.wa),Bn(e,i),i}function Jn(){}function Zn(){if(G&&!(10<=Number(J)))throw Error("Environmental error: no available transport.")}function ei(e,t){De.call(this),this.a=new Nn(t),this.g=e,this.m=t&&t.testUrl?t.testUrl:function(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var i,r=arguments[n];0==r.lastIndexOf("/",0)?t=r:((i=""==t)||(i=0<=(i=t.length-1)&&t.indexOf("/",i)==i),t+=i?r:"/"+r)}return t}(this.g,"test"),this.b=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.xa&&(e?e["X-WebChannel-Client-Profile"]=t.xa:e={"X-WebChannel-Client-Profile":t.xa}),this.a.J=e,(e=t&&t.httpHeadersOverwriteParam)&&!O(e)&&(this.a.g=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.h=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!O(t)&&(this.a.j=t,null!==(e=this.b)&&t in e&&t in(e=this.b)&&delete e[t]),this.f=new ii(this)}function ti(e){lt.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function ni(){ct.call(this),this.status=1}function ii(e){this.a=e}(i=En.prototype).ca=function(e,t,n,i){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.A
1+"; newUri="+e);t=t?t.toUpperCase():"GET",this.A=e,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function(e){var t;return(t=e.a)||(t=e.a={}),t}(this.H?this.H:st),this.a.onreadystatechange=_(this.Ea,this);try{this.w=!0,this.a.open(t,String(e),!0),this.w=!1}catch(o){return void On(this,o)}e=n||"";var r=new Tt(this.headers);i&&xt(i,(function(e,t){r.set(t,e)})),i=function(e){e:{for(var t=Tn,n=e.length,i=a(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e)){t=r;break e}t=-1}return 0>t?null:a(e)?e.charAt(t):e[t]}(r.K()),n=s.FormData&&e instanceof s.FormData,!(0<=S(xn,t))||i||n||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(e,t){this.a.setRequestHeader(t,e)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Mn(this),0<this.o&&((this.D=function(e){return G&&ee(9)&&l(e.timeout)&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=_(this.Ba,this)):this.m=Ye(this.Ba,this.o,this)),this.l=!0,this.a.send(e),this.l=!1}catch(o){On(this,o)}},i.Ba=function(){void 0!==o&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},i.abort=function(e){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rn(this))},i.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Rn(this,!0)),En.N.G.call(this)},i.Ea=function(){this.j||(this.w||this.l||this.g?In(this):this.Za())},i.Za=function(){In(this)},i.T=function(){try{return 2<An(this)?this.a.status:-1}catch(Y){return-1}},i.aa=function(){try{return this.a?this.a.responseText:""}catch(Y){return""}},i.Ua=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Cn(t)}},i.ya=function(){return this.h},i.Xa=function(){return a(this.f)?this.f:String(this.f)},(i=Nn.prototype).wa=8,i.u=1,i.Ca=function(){return 0==this.u},i.Ha=function(e){if(this.h)if(this.h=null,1==this.u){if(!e){this.P=Math.floor(1e5*Math.random());var t,n=new dt(this,e=this.P++,void 0),i=this.i;if(this.J&&(i?j(i=N(i),this.J):i=this.J),null===this.g&&(n.h=i),this.W)e:{for(var r=t=0;r<this.f.length;r++){var o=this.f[r];if(void 0===(o="__data__"in o.a&&a(o=o.a.__data__)?o.length:void 0))break;if(4096<(t+=o)){t=r;break e}if(4096===t||r===this.f.length-1){t=r+1;break e}}t=1e3}else t=1e3;t=Gn(this,n,t),jt(r=At(this.B),"RID",e),jt(r,"CVER",22),this.o&&this.j&&jt(r,"X-HTTP-Session-Id",this.j),Bn(this,r),this.g&&i&&Ln(r,this.g,i),mn(this.b,n),this.W?(jt(r,"$req",t),jt(r,"SID","null"),n.S=!0,mt(n,r,null)):mt(n,r,t),this.u=2}}else 3==this.u&&(e?Yn(this,e):0==this.f.length||hn(this.b)||Yn(this))},i.Ga=function(){this.l=null,this.a=new dt(this,"rpc",this.S),null===this.g&&(this.a.h=this.i),this.a.J=0;var e=At(this.pa);jt(e,"RID","rpc"),jt(e,"SID",this.H),jt(e,"CI",this.ia?"0":"1"),jt(e,"AID",this.O),Bn(this,e),jt(e,"TYPE","xmlhttp"),this.g&&this.i&&Ln(e,this.g,this.i),this.D&&this.a.setTimeout(this.D),gt(this.a,e,!0,this.ga)},i.Fa=function(e,t){if(0!=this.u&&(this.a==e||fn(this.b,e)))if(this.m=e.o,!e.s&&fn(this.b,e)&&3==this.u){try{var n=this.ja.a.parse(t)}catch(o){n=null}if(h(n)&&3==n.length){if(0==(t=n)[0]){e:if(!this.l){if(this.a){if(!(this.a.v+3e3<e.v))break e;qn(this),this.a.cancel(),this.a=null}Un(this),Ze(18)}}else this.ra=t[1],0<this.ra-this.O&&37500>t[2]&&this.ia&&0==this.v&&!this.s&&(this.s=tt(_(this.Ya,this),6e3));if(1>=pn(this.b)&&this.fa){try{this.fa()}catch(o){}this.fa=void 0}}else $n(this,11)}else if((e.s||this.a==e)&&qn(this),!O(t))for(t=n=this.ja.a.parse(t),n=0;n<t.length;n++){var i=t[n];if(this.O=i[0],i=i[1],2==this.u)if("c"==i[0]){this.H=i[1],this.ga=i[2];var r=i[3];null!=r&&(this.wa=r),null!=(i=i[5])&&l(i)&&0<i&&(this.D=1.5*i),this.o&&(i=e.a)&&((r=Pn(i,"X-Client-Wire-Protocol"))&&dn(this.b,r),this.j&&(i=Pn(i,"X-HTTP-Session-Id")))&&(this.I=i,jt(this.B,this.j,i)),this.u=3,this.c&&this.c.va(),i=e,this.pa=Xn(this,this.Y()?this.ga:null,this.ha),i.s?(gn(this.b,i),(r=this.D)&&i.setTimeout(r),i.i&&(Ct(i),bt(i)),this.a=i):Wn(this),0<this.f.length&&Hn(this)}else"stop"!=i[0]&&"close"!=i[0]||$n(this,7);else 3==this.u&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?$n(this,7):Fn(this):"noop"!=i[0]&&this.c&&this.c.ua(i),this.v=0)}},i.Ya=function(){null!=this.s&&(this.s=null,this.a.cancel(),this.a=null,Un(this),Ze(19))},i.na=function(e){var t=null;if(this.a==e){qn(this),this.a=null;var n=2}else{if(!fn(this.b,e))return;t=e.j,gn(this.b,e),n=1}if(this.m=e.o,0!=this.u)if(e.b)1==n?(t=w()-e.v,$e.dispatchEvent(new et($e,e.l?e.l.length:0,t,this.A)),Hn(this)):Wn(this);else{var i=e.c;if(3==i||0==i&&0<this.m||!(1==n&&function(e,t){return!(pn(e.b)>
1=e.b.f-(e.h?1:0)||(e.h?(e.f=t.j.concat(e.f),0):1==e.u||2==e.u||e.A>=(e.Oa?0:e.Pa)||(e.h=tt(_(e.Ha,e,t),Kn(e,e.A)),e.A++,0)))}(this,e)||2==n&&Un(this)))switch(t&&0<t.length&&(e=this.b,e.c=e.c.concat(t)),i){case 1:$n(this,5);break;case 4:$n(this,10);break;case 3:$n(this,6);break;default:$n(this,2)}}},i.eb=function(e){Ze(e?2:1)},i.$=function(e){if(e&&!this.R)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new En(this.Ka)).F=this.R,e},i.ma=function(){return!!this.c&&!0},i.Y=function(){return this.R},(i=Jn.prototype).va=function(){},i.ua=function(){},i.ta=function(){},i.sa=function(){},i.Sa=function(){},Zn.prototype.a=function(e,t){return new ei(e,t)},C(ei,De),(i=ei.prototype).addEventListener=function(e,t,n,i){ei.N.addEventListener.call(this,e,t,n,i)},i.removeEventListener=function(e,t,n,i){ei.N.removeEventListener.call(this,e,t,n,i)},i.Va=function(){this.a.c=this.f,this.l&&(this.a.R=!0);var e=this.a,t=this.m,n=this.g,i=this.b||void 0;Ze(0),e.ha=n,e.V=i||{},e.o&&(e.F.b=[],e.F.a=!1),e.w=new nn(e),null===e.g&&(e.w.h=e.i),n=t,e.g&&e.i&&(n=Ln(t,e.g,e.i)),(e=e.w).i=n,t=Xn(e.a,null,e.i),Ze(3),null!=(n=e.a.F.b)?(e.f=n[0],e.M=1,rn(e)):(Vt(t,"MODE","init"),!e.a.o&&e.a.j&&Vt(t,"X-HTTP-Session-Id",e.a.j),e.b=new dt(e,void 0,void 0),e.b.h=e.h,gt(e.b,t,!1,null),e.M=0)},i.close=function(){Fn(this.a)},i.Wa=function(e){if(a(e)){var t={};t.__data__=e,Vn(this.a,t)}else this.h?((t={}).__data__=Te(e),Vn(this.a,t)):Vn(this.a,e)},i.G=function(){this.a.c=null,delete this.f,Fn(this.a),delete this.a,ei.N.G.call(this)},C(ti,lt),C(ni,ct),C(ii,Jn),ii.prototype.va=function(){this.a.dispatchEvent("a")},ii.prototype.ua=function(e){this.a.dispatchEvent(new ti(e))},ii.prototype.ta=function(e){this.a.dispatchEvent(new ni(e))},ii.prototype.sa=function(){this.a.dispatchEvent("b")};var ri=b((function(e,t){function n(){}n.prototype=e.prototype;var i=new n;return e.apply(i,Array.prototype.slice.call(arguments,1)),i}),Zn);Zn.prototype.createWebChannel=Zn.prototype.a,ei.prototype.send=ei.prototype.Wa,ei.prototype.open=ei.prototype.Va,ei.prototype.close=ei.prototype.close,nt.NO_ERROR=0,nt.TIMEOUT=8,nt.HTTP_ERROR=6,it.COMPLETE="complete",ot.EventType=at,at.OPEN="a",at.CLOSE="b",at.ERROR="c",at.MESSAGE="d",De.prototype.listen=De.prototype.za,En.prototype.listenOnce=En.prototype.Aa,En.prototype.getLastError=En.prototype.Xa,En.prototype.getLastErrorCode=En.prototype.ya,En.prototype.getStatus=En.prototype.T,En.prototype.getResponseJson=En.prototype.Ua,En.prototype.getResponseText=En.prototype.aa,En.prototype.send=En.prototype.ca;var oi={createWebChannelTransport:ri,ErrorCode:nt,EventType:it,WebChannel:ot,XhrIo:En},si=oi.createWebChannelTransport,ai=oi.ErrorCode,li=oi.EventType,ci=oi.WebChannel,ui=oi.XhrIo;t.default=oi},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("HDdC"),r=n("ngJS"),o=n("jZKg");function s(e,t){return t?Object(o.a)(e,t):new i.a(Object(r.a)(e))}},yLV6:function(e,t,n){var i;!function(r,o,s,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),d=Math.round,h=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(w(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function y(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var v=y((function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&void 0===e[i[r]])&&(e[i[r]]=t[i[r]]),r++;return e}),"extend","Use `assign`."),_=y((function(e,t){return v(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&l(i,n)}function w(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function E(e,t){return void 0===e?t:e}function S(e,t,n){g(O(t),(function(t){e.addEventListener(t,n,!1)}))}function D(e,t,n){g(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function x(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}
vendor: 6,667 bytes, line 1
1function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function I(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];k(r,s)<0&&i.push(e[o]),r[o]=s,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function M(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if((i=(n=c[o])?n+r:t)in e)return i;o++}}var A=1;function P(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var L="ontouchstart"in r,N=void 0!==M(r,"PointerEvent"),F=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j=["x","y"],V=["clientX","clientY"];function H(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){C(e.options.enable,[e])&&n.handler(t)},this.init()}function Y(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&t&&i-r==0,s=12&t&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=B(t)),r>1&&!n.firstMultiple?n.firstMultiple=B(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=t.center=G(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=q(a,l),t.distance=z(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var c,u,d=W(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=h(d.x)>h(d.y)?d.x:d.y,t.scale=s?(c=s.pointers,z((u=i)[0],u[1],V)/z(c[0],c[1],V)):1,t.rotation=s?function(e,t){return q(t[1],t[0],V)+q(e[1],e[0],V)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,o,s=e.lastInterval||t,a=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(a>25||void 0===s.velocity)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,u=W(a,l,c);i=u.x,r=u.y,n=h(u.x)>h(u.y)?u.x:u.y,o=U(l,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}(n,t);var f=e.element;x(t.srcEvent.target,f)&&(f=t.srcEvent.target),t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function B(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:G(t),deltaX:e.deltaX,deltaY:e.deltaY}}function G(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:d(n/t),y:d(i/t)}}function W(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:h(e)>=h(t)?e<0?2:4:t<0?8:16}function z(e,t,n){n||(n=j);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function q(e,t,n){return n||(n=j),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler),this.evTarget&&D(this.target,this.evTarget,this.domHandler),this.evWin&&D(P(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function $(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}b($,H,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},X={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Z="pointermove pointerup pointercancel";function ee(){this.evEl=J,this.evWin=Z,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(J="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),b(ee,H,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=Q[i],o=X[e.pointerType]||e.pointerType,s="touch"==o,a=k(t,e.pointerId,"pointerId");1&r&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):12&r&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function ie(e,t){var n=I(e.touches),i=I(e.changedTouches);return 12&t&&(n=R(n.concat(i),"identifier",!0)),[n,i]}b(ne,H,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var re={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function oe(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function se(e,t){var n=I(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=I(e.changedTouches),a=[],l=this.target;if(o=n.filter((function(e){return x(e.target,l)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),12&t&&delete i[s[r].identifier],r++;return a.length?[R(o.concat(a),"identifier",!0),a]:void 0}function ae(){H.apply(this,arguments);var e=w(this.handler,this);this.touch=new oe(this.manager,e),this.mouse=new $(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}
1b(oe,H,{handler:function(e){var t=re[e.type],n=se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}),b(ae,H,{handler:function(e,t,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)le.call(this,t,n);else if(i&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var de=M(u.style,"touchAction"),he=void 0!==de,pe=function(){if(!he)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||r.CSS.supports("touch-action",n)})),e}();function fe(e,t){this.manager=e,this.set(t)}function me(e){this.options=l({},this.defaults,e||{}),this.id=A++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ge(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ye(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ve(e,t){var n=t.manager;return n?n.get(e):e}function _e(){me.apply(this,arguments)}function be(){_e.apply(this,arguments),this.pX=null,this.pY=null}function we(){_e.apply(this,arguments)}function Ce(){me.apply(this,arguments),this._timer=null,this._input=null}function Ee(){_e.apply(this,arguments)}function Se(){_e.apply(this,arguments)}function De(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function xe(e,t){return(t=t||{}).recognizers=E(t.recognizers,xe.defaults.preset),new Te(e,t)}function Te(e,t){var n;this.options=l({},xe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(N?ee:F?oe:L?ae:$))(n,Y),this.touchAction=new fe(this,this.options.touchAction),Oe(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Oe(e,t){var n,i=e.element;i.style&&(g(e.options.cssProps,(function(r,o){n=M(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),he&&this.manager.element.style&&pe[e]&&(this.manager.element.style[de]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(T(e,"none"))return"none";var t=T(e,"pan-x"),n=T(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":T(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=T(i,"none")&&!pe.none,o=T(i,"pan-y")&&!pe["pan-y"],s=T(i,"pan-x")&&!pe["pan-x"];if(r&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!s||!o)return r||o&&6&n||s&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}},me.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)?this:(e=ve(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===k(t,e=ve(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=ve(e,this);var t=k(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+ge(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+ge(n))}
1,tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(_e,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:32}}),b(be,_e,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,s=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return _e.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ye(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(we,_e,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),b(Ce,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),b(Ee,_e,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(Se,_e,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return be.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ye(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(De,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),xe.VERSION="2.0.7",xe.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ee,{enable:!1}],[we,{enable:!1},["rotate"]],[Se,{direction:6}],[be,{direction:6},["swipe"]],[De],[De,{event:"doubletap",taps:2},["tap"]],[Ce]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Te.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=k(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return g(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return g(O(e),(function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(xe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Te,Input:H,TouchAction:fe,TouchInput:oe,MouseInput:$,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:_e,Tap:De,Pan:be,Swipe:Se,Pinch:we,Rotate:Ee,Press:Ce,on:S,off:D,each:g,merge:_,extend:v,assign:l,inherit:b,bindFn:w,prefixed:M}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=xe,void 0===(i=(function(){return xe}).call(t,n,t,e))||(e.exports=i)}(window,document)},yPMs:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return i}))},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i?r[n][0]:t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4t
1s_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var o=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),i>0&&(o+=(""!==o?" ":"")+t[i]+"maH"),r>0&&(o+=(""!==o?" ":"")+t[r]),""===o?"pagh":o}(e);switch(i){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},zUnb:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"FunctionToString",(function(){return Ik})),n.d(i,"InboundFilters",(function(){return Nk})),n("yLV6");var r=n("fXoL");const o={apiKey:"AIzaSyDmhLryTAlVVdumIkefHT5xA-ieM4nH3pI",authDomain:"easiestbudget-8a191.firebaseapp.com",databaseURL:"https://easiestbudget-8a191.firebaseio.com",projectId:"easiestbudget-8a191",storageBucket:"easiestbudget-8a191.appspot.com",messagingSenderId:"558384276158",appId:"1:558384276158:web:dee7394d7b15ef90d634ef"};let s=null;function a(){return s}const l=new r.InjectionToken("DocumentToken");let c=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(r["\u0275\u0275inject"])(h)}const d=new r.InjectionToken("Location Initialized");let h=(()=>{class e extends c{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=a().getLocation(),this._history=a().getHistory()}getBaseHrefFromDOM(){return a().getBaseHref(this._doc)}onPopState(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new h(Object(r["\u0275\u0275inject"])(l))}function m(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function g(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function y(e){return e&&"?"!==e[0]?"?"+e:e}let v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:_,token:e,providedIn:"root"}),e})();function _(e){const t=Object(r["\u0275\u0275inject"])(l).location;return new w(Object(r["\u0275\u0275inject"])(c),t&&t.origin||"")}const b=new r.InjectionToken("appBaseHref");let w=(()=>{class e extends v{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.on
1HashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return m(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+y(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+y(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](c),r["\u0275\u0275inject"](b,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e extends v{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=m(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+y(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+y(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](c),r["\u0275\u0275inject"](b,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),E=(()=>{class e{constructor(e,t){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=g(D(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+y(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,D(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](v),r["\u0275\u0275inject"](c))},e.normalizeQueryParams=y,e.joinWithSlash=m,e.stripTrailingSlash=g,e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:S,token:e,providedIn:"root"}),e})();function S(){return new E(Object(r["\u0275\u0275inject"])(v),Object(r["\u0275\u0275inject"])(c))}function D(e){return e.replace(/\/index.html$/,"")}const x={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},T=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),O=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),k=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function I(e,t){const n=Object(r["\u0275findLocaleData"])(e),i=n[r["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===i){if(t===k.CurrencyDecimal)return n[r["\u0275LocaleDataIndex"].NumberSymbols][k.Decimal];if(t===k.CurrencyGroup)return n[r["\u0275LocaleDataIndex"].NumberSymbols][k.Group]}return i}const R=r["\u0275getLocalePluralCase"],M=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function A(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class P{}let L=(()=>{class e extends P{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(R(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.LOCALE_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();
1function N(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let F=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r["\u0275stringify"])(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class j{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let V=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new j(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new H(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new H(e,r);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);
vendor: 5,228 bytes, line 1
1e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.IterableDiffers))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class H{constructor(e,t){this.record=e,this.view=t}}let Y=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new B,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){G("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){G("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class B{constructor(){this.$implicit=null,this.ngIf=null}}function G(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r["\u0275stringify"])(t)}'.`)}class W{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let U=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),z=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new W(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](U,1))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),q=(()=>{class e{constructor(e,t,n){n._addDefault(new W(e,t))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](U,1))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),K=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),e})();function $(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r["\u0275stringify"])(e)}'`)}class Q{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class X{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const J=new X,Z=new Q;let ee=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r["\u0275looseIdentical"])(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(r["\u0275isPromise"])(t))return J;if(Object(r["\u0275isObservable"])(t))return Z;throw $(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275injectPipeChangeDetectorRef"]())},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"async",type:e,pure:!1}),e})(),te=(()=>{class e{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(t,n,i="symbol",o,s){if(function(e){return null==e||""===e||e!=e}(t))return null;s=s||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(e,t,n="en"){const i=function(e){return Object(r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].Currencies]}(n)[e]||x[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}(a,"symbol"===i?"wide":"narrow",s):i);try{return function(e,t,n,i,o){const s=function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],o=i[1],s=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const e=l.charAt(u);"0"===e?n.minFrac=n.maxFrac=u+1:"#"===e?n.maxFrac=u+1:n.posSuf+=e}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const e=r.length-n.posPre.length-n.posSuf.length,t=o.indexOf("#");n.negPre=o.substr(0,t).replace(/'/g,""),n.negSuf=o.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return Object(r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].NumberFormats][t]}(t,T.Currency),I(t,k.MinusSign));return s.minFrac=function(e){let t;const n=x[e];return n&&(t=n[2]),"number"==typeof t?t:2}(i),s.maxFrac=s.minFrac,function(e,t,n,i,r,o,s=!1){let a="",l=!1;if(isFinite(e)){let c=function(e){let t,n,i,r,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(i=s.search(/e/i))>0?(n<0&&(n=i),n+=+s.slice(i+1),s=s.substring(0,i)):n<0&&(n=s.length),i=0;"0"===s.charAt(i);i++);if(i===(o=s.length))t=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=i,t=[],r=0;i<=o;i++,r++)t[r]=Number(s.charAt(i))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);s&&(c=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(o){const e=o.match(M);if(null===e)throw new Error(`${o} is not a valid digit info`);const t=e[1],n=e[3],i=e[5];null!=t&&(u=A(t)),null!=n&&(d=A(n)),null!=i?h=A(i):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let i=e.digits,r=i.length-e.integerLen;const o=Math.min(Math.max(t,r),n);let s=o+e.integerLen,a=i[s];if(s>0){i.splice(Math.max(e.integerLen,s));for(let e=s;e<i.length;e++)i[e]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,s=o+1),i[0]=0;for(let e=1;e<s;e++)i[e]=0}if(a>=5)if(s-1<0){for(let t=0;t>s;t--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[s-1]++;for(;r<Math.max(0,o);r++)i.push(0);let l=0!==o;const c=t+e.integerLen,u=i.reduceRight((function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),t>=10?1:0}),0);u&&(i.unshift(u),e.integerLen++)}(c,d,h);let p=c.digits,f=c.integerLen;const m=c.exponent;let g=[];for(l=p.every(e=>!e);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?g=p.splice(f,p.length):(g=p,p=[0]);const y=[];for(p.length>=t.lgSize&&y.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)y.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(I(n,i)),g.length&&(a+=I(n,r)+g.join("")),m&&(
1a+=I(n,k.Exponential)+"+"+m)}else a=I(n,k.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,s,t,k.CurrencyGroup,k.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}(t),s,a,n,o)}catch(l){throw $(e,l.message)}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.LOCALE_ID),r["\u0275\u0275directiveInject"](r.DEFAULT_CURRENCY_CODE))},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"currency",type:e,pure:!0}),e})(),ne=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:P,useClass:L}]}),e})();function ie(e){return"browser"===e}function re(e){return"server"===e}let oe=(()=>{class e{}return e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({token:e,providedIn:"root",factory:()=>new se(Object(r["\u0275\u0275inject"])(l),window,Object(r["\u0275\u0275inject"])(r.ErrorHandler))}),e})();class se{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}class ae extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new ae,s||(s=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=ce||(ce=document.querySelector("base"),ce)?ce.getAttribute("href"):null;return null==t?null:(n=t,le||(le=document.createElement("a")),le.setAttribute("href",n),"/"===le.pathname.charAt(0)?le.pathname:"/"+le.pathname);var n}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return N(document.cookie,e)}}let le,ce=null;const ue=new r.InjectionToken("TRANSITION_ID"),de=[{provide:r.APP_INITIALIZER,useFactory:function(e,t,n){return()=>{n.get(r.ApplicationInitStatus).donePromise.then(()=>{const n=a();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>
1t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[ue,l,r.Injector],multi:!0}];class he{static init(){Object(r.setTestabilityGetter)(new he)}addToWindow(e){r["\u0275global"].getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},r["\u0275global"].getAllAngularTestabilities=()=>e.getAllTestabilities(),r["\u0275global"].getAllAngularRootElements=()=>e.getAllRootElements(),r["\u0275global"].frameworkStabilizers||(r["\u0275global"].frameworkStabilizers=[]),r["\u0275global"].frameworkStabilizers.push(e=>{const t=r["\u0275global"].getAllAngularTestabilities();let n=t.length,i=!1;const o=function(t){i=i||t,n--,0==n&&e(i)};t.forEach((function(e){e.whenStable(o)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?a().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const pe=new r.InjectionToken("EventManagerPlugins");let fe=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](pe),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class me{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=a().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let ge=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ye=(()=>{class e extends ge{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>a().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const ve={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_e=/%COMP%/g;function be(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?be(e,r,n):(r=r.replace(_e,e),n.push(r))}return n}function we(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ce=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ee(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Se(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case r.ViewEncapsulation.Native:case r.ViewEncapsulation.ShadowDom:return new De(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=be(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](fe),r["\u0275\u0275inject"](ye),r["\u0275\u0275inject"](r.APP_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Ee{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ve[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}
1" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const r=ve[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=ve[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&r.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&r.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,we(n)):this.eventManager.addEventListener(e,t,we(n))}}class Se extends Ee{constructor(e,t,n,i){super(e),this.component=n;const r=be(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_e,i+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(_e,e)}(i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class De extends Ee{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===r.ViewEncapsulation.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=be(i.id,i.styles,[]);for(let r=0;r<o.length;r++){const e=document.createElement("style");e.textContent=o[r],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let xe=(()=>{class e extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Te=["alt","control","meta","shift"],Oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ke={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ie={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Re=(()=>{class e extends me{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const r=e.parseEventName(n),o=e.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>a().onAndCancel(t,r.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let o="";if(Te.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=r,0!=n.length||0===r.length)return null;const s={};return s.domEventName=i,s.fullKey=o,s}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&ke.hasOwnProperty(t)&&(t=ke[t]))}return Oe[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Te.forEach(i=>{i!=n&&(0,Ie[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Me=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return Object(r["\u0275\u0275inject"])(Ae)},token:e,providedIn:"root"}),e})(),Ae=(()=>{class e extends Me{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.SecurityContext.NONE:return t;case r.SecurityContext.HTML:return Object(r["\u0275allowSanitizationBypassAndThrow"])(t,"HTML")?Object(r["\u0275unwrapSafeValue"])(t):Object(r["\u0275_sanitizeHtml"])(this._doc,String(t));case r.SecurityContext.STYLE:return Object(r["\u0275allowSanitizationBypassAndThrow"])(t,"Style")?Object(r["\u0275unwrapSafeValue"])(t):Object(r["\u0275_sanitizeStyle"])(t);case r.SecurityContext.SCRIPT:if(Object(r["\u0275allowSanitizationBypassAndThrow"])(t,"Script"))return Object(r["\u0275unwrapSafeValue"])(t);throw new Error("unsafe value used in a script context");case r.SecurityContext.URL:return Object(r["\u0275getSanitizationBypassType"])(t),Object(r["\u0275allowSanitizationBypassAndThrow"])(t,"URL")?Object(r["\u0275unwrapSafeValue"])(t):Object(r["\u0275_sanitizeUrl"])(String(t));case r.SecurityContext.RESOURCE_URL:if(Object(r["\u0275allowSanitizationBypassAndThrow"])(t,"ResourceURL"))return Object(r["\u0275unwrapSafeValue"])(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r["\u0275bypassSanitizationTrustHtml"])(e)}bypassSecurityTrustStyle(e){return Object(r["\u0275bypassSanitizationTrustStyle"])(e)}bypassSecurityTrustScript(e){return Object(r["\u0275bypassSanitizationTrustScript"])(e)}bypassSecurityTrustUrl(e){return Object(r["\u0275bypassSanitizationTrustUrl"])(e)}bypassSecurityTrustResourceUrl(e){return Object(r["\u0275bypassSanitizationTrustResourceUrl"])(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return e=Object(r["\u0275\u0275inject"])(r.INJECTOR),new Ae(e.get(l));var e},token:e,providedIn:"root"}),e})();const Pe=[{provide:r.PLATFORM_ID,useValue:"browser"},{provide:r.PLATFORM_INITIALIZER,useValue:function(){ae.makeCurrent(),he.init()},multi:!0},{provide:l,useFactory:function(){return Object(r["\u0275setDocument"])(document),document},deps:[]}],Le=Object(r.createPlatformFactory)(r.platformCore,"browser",Pe),Ne=[[],{provide:r["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:r.ErrorHandler,useFactory:function(){return new r.ErrorHandler},deps:[]},{provide:pe,useClass:xe,multi:!0,deps:[l,r.NgZone,r.PLATFORM_ID]},{provide:pe,useClass:Re,multi:!0,deps:[l]},[],{provide:Ce,useClass:Ce,deps:[fe,ye,r.APP_ID]},{provide:r.RendererFactory2,useExisting:Ce},{provide:ge,useExisting:ye},{provide:ye,useClass:ye,deps:[l]},{provide:r.Testability,useClass:r.Testability,deps:[r.NgZone]},{provide:fe,useClass:fe,deps:[pe,r.NgZone]},[]];let Fe=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:r.APP_ID,useValue:t.appId},{provide:ue,useExisting:r.APP_ID},de]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](e,12))},providers:Ne,imports:[ne,r.ApplicationModule]}),e})();"undefined"!=typeof window&&window;var je=n("z+Ro"),Ve=n("yCtX"),He=n("jZKg");function Ye(...e){let t=e[e.length-1];return Object(je.a)(t)?(e.pop(),Object(He.a)(e,t)):Object(Ve.a)(e)}var Be=n("Cfvw"),Ge=n("XNiG"),We=n("9ppp");class Ue extends Ge.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new We.a;return this._value}next(e){super.next(this._value=e)}}var ze=n("HDdC");const qe=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();var Ke=n("DH7j"),$e=n("l7GE"),Qe=n("ZUHj");const Xe={};class Je{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Ze(e,this.resultSelector))}}class Ze extends $e.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Xe),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;
1n++){const t=e[n];this.add(Object(Qe.a)(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,i,r){const o=this.values,s=this.toRespond?o[n]===Xe?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const et=new ze.a(e=>e.complete());function tt(e){return e?function(e){return new ze.a(t=>e.schedule(()=>t.complete()))}(e):et}function nt(e){return new ze.a(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(Be.a)(n):tt()).subscribe(t)})}var it=n("lJxs"),rt=n("bHdf");function ot(){return Object(rt.a)(1)}var st=n("7o/Q");function at(e,t){return function(n){return n.lift(new lt(e,t))}}class lt{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new ct(e,this.predicate,this.thisArg))}}class ct extends st.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}const ut=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function dt(e){return function(t){return 0===e?tt():t.lift(new ht(e))}}class ht{constructor(e){if(this.total=e,this.total<0)throw new ut}call(e,t){return t.subscribe(new pt(e,this.total))}}class pt extends st.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=t++%n;e.next(i[r])}}e.complete()}}function ft(e=yt){return t=>t.lift(new mt(e))}class mt{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new gt(e,this.errorFactory))}}class gt extends st.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function yt(){return new qe}function vt(e=null){return t=>t.lift(new _t(e))}class _t{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new bt(e,this.defaultValue))}}class bt extends st.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var wt=n("SpAZ");function Ct(e,t){const n=arguments.length>=2;return i=>i.pipe(e?at((t,n)=>e(t,n,i)):wt.a,dt(1),n?vt(t):ft(()=>new qe))}var Et=n("51Dv");function St(e){return function(t){const n=new Dt(e),i=t.lift(n);return n.caught=i}}class Dt{constructor(e){this.selector=e}call(e,t){return t.subscribe(new xt(e,this.selector,this.caught))}}class xt extends $e.a{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new Et.a(this,void 0,void 0);this.add(i);const r=Object(Qe.a)(this,n,void 0,void 0,i);r!==i&&this.add(r)}}}function Tt(e){return t=>0===e?tt():t.lift(new Ot(e))}class Ot{constructor(e){if(this.total=e,this.total<0)throw new ut}call(e,t){return t.subscribe(new kt(e,this.total))}}class kt extends st.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function It(e,t){const n=arguments.length>=2;return i=>i.pipe(e?at((t,n)=>e(t,n,i)):wt.a,Tt(1),n?vt(t):ft(()=>new qe))}var Rt=n("5+tZ");class Mt{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new At(e,this.predicate,this.thisArg,this.source))}}class At extends st.a{constructor(e,t,n,i){super(e),this.predicate=t,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Pt(e,t){return"function"==typeof t?n=>n.pipe(Pt((n,i)=>Object(Be.a)(e(n,i)).pipe(Object(it.a)((e,r)=>t(n,e,i,r))))):t=>t.lift(new Lt(e))}class Lt{constructor(e){this.project=e}call(e,t){return t.subscribe(new Nt(e,this.project))}}class Nt extends $e.a{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}_innerSub(e,t,n){const i=this.innerSubscription;i&&i.unsubscribe();const r=new Et.a(this,t,n),o=this.destination;o.add(r),this.innerSubscription=Object(Qe.a)(this,e,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,i,r){this.destination.next(t)}}
1function Ft(...e){return ot()(Ye(...e))}function jt(...e){const t=e[e.length-1];return Object(je.a)(t)?(e.pop(),n=>Ft(e,n,t)):t=>Ft(e,t)}function Vt(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Ht(e,t,n))}}class Ht{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Yt(e,this.accumulator,this.seed,this.hasSeed))}}class Yt extends st.a{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function Bt(e,t){return Object(Rt.a)(e,t,1)}var Gt=n("mCNh"),Wt=n("KqfI"),Ut=n("n6bG");function zt(e,t,n){return function(i){return i.lift(new qt(e,t,n))}}class qt{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Kt(e,this.nextOrObserver,this.error,this.complete))}}class Kt extends st.a{constructor(e,t,n,i){super(e),this._tapNext=Wt.a,this._tapError=Wt.a,this._tapComplete=Wt.a,this._tapError=n||Wt.a,this._tapComplete=i||Wt.a,Object(Ut.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Wt.a,this._tapError=t.error||Wt.a,this._tapComplete=t.complete||Wt.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}var $t=n("quSY");function Qt(e){return t=>t.lift(new Xt(e))}class Xt{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Jt(e,this.callback))}}class Jt extends st.a{constructor(e,t){super(e),this.add(new $t.a(t))}}class Zt{constructor(e,t){this.id=e,this.url=t}}class en extends Zt{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tn extends Zt{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class nn extends Zt{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rn extends Zt{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class on extends Zt{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sn extends Zt{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class an extends Zt{constructor(e,t,n,i,r){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ln extends Zt{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cn extends Zt{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class dn{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hn{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pn{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fn{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mn{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gn{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let yn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r["\u0275\u0275element"](0,"router-outlet")},directives:function(){return[vr]},encapsulation:2}),e})();class vn{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function _n(e){return new vn(e)}function bn(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wn(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const r={};for(let o=0;o<i.length;o++){const t=i[o],n=e[o];if(t.startsWith(":"))r[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}class Cn{constructor(e,t){this.routes=e,this.module=t}}function En(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];Sn(i,Dn(t,i))}}function Sn(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&En(e.children,t)}function Dn(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function xn(e){const t=e.children&&e.children.map(xn),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=yn),n}function Tn(e,t){const n=Object.keys(e),i=Object.keys(t);if(!n||!i||n.length!=i.length)return!1;let r;for(let o=0;o<n.length;o++)if(r=n[o],!On(e[r],t[r]))return!1;return!0}function On(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every(e=>t.indexOf(e)>-1):e===t}function kn(e){return Array.prototype.concat.apply([],e)}function In(e){return e.length>0?e[e.length-1]:null}function Rn(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Mn(e){return Object(r["\u0275isObservable"])(e)?e:Object(r["\u0275isProm
1ise"])(e)?Object(Be.a)(Promise.resolve(e)):Ye(e)}function An(e,t,n){return n?function(e,t){return Tn(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Fn(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>On(e[n],t[n]))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!Fn(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Fn(n.segments,r))return!1;for(const t in i.children){if(!n.children[t])return!1;if(!e(n.children[t],i.children[t]))return!1}return!0}{const e=r.slice(0,n.segments.length),o=r.slice(n.segments.length);return!!Fn(n.segments,e)&&!!n.children.primary&&t(n.children.primary,i,o)}}(t,n,n.segments)}(e.root,t.root)}class Pn{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_n(this.queryParams)),this._queryParamMap}toString(){return Yn.serialize(this)}}class Ln{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Rn(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bn(this)}}class Nn{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=_n(this.parameters)),this._parameterMap}toString(){return Kn(this)}}function Fn(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function jn(e,t){let n=[];return Rn(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),Rn(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}class Vn{}class Hn{parse(e){const t=new Zn(e);return new Pn(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Bn(t);if(n){const n=t.children.primary?e(t.children.primary,!1):"",i=[];return Rn(t.children,(t,n)=>{"primary"!==n&&i.push(`${n}:${e(t,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=jn(t,(n,i)=>"primary"===i?[e(t.children.primary,!1)]:[`${i}:${e(n,!1)}`]);return`${Bn(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Wn(t)}=${Wn(e)}`).join("&"):`${Wn(t)}=${Wn(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Yn=new Hn;function Bn(e){return e.segments.map(e=>Kn(e)).join("/")}function Gn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wn(e){return Gn(e).replace(/%3B/gi,";")}function Un(e){return Gn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zn(e){return decodeURIComponent(e)}function qn(e){return zn(e.replace(/\+/g,"%20"))}function Kn(e){return`${Un(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Un(e)}=${Un(t[e])}`).join("")}`;var t}const $n=/^[^\/()?;=#]+/;function Qn(e){const t=e.match($n);return t?t[0]:""}const Xn=/^[^=?&#]+/,Jn=/^[^?&#]+/;class Zn{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ln([],{}):new Ln([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Ln(e,t)),n}parseSegment(){const e=Qn(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Nn(zn(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Qn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Qn(this.remaining);e&&(n=e,this.capture(n))}e[zn(t)]=zn(n)}parseQueryParam(e){const t=function(e){const t=e.match(Xn);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Jn);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=qn(t),r=qn(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Qn(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");const o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Ln([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class ei{constructor(e){this._root=e}get root(){return this._root.value}
vendor: 9,976 bytes, line 1
1parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=ti(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=ti(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=ni(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return ni(e,this._root).map(e=>e.value)}}function ti(e,t){if(e===t.value)return t;for(const n of t.children){const t=ti(e,n);if(t)return t}return null}function ni(e,t){if(e===t.value)return[t];for(const n of t.children){const i=ni(e,n);if(i.length)return i.unshift(t),i}return[]}class ii{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ri(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class oi extends ei{constructor(e,t){super(e),this.snapshot=t,di(this,e)}toString(){return this.snapshot.toString()}}function si(e,t){const n=function(e,t){const n=new ci([],{},{},"",{},"primary",t,null,e.root,-1,{});return new ui("",new ii(n,[]))}(e,t),i=new Ue([new Nn("",{})]),r=new Ue({}),o=new Ue({}),s=new Ue({}),a=new Ue(""),l=new ai(i,r,s,a,o,"primary",t,n.root);return l.snapshot=n.root,new oi(new ii(l,[]),n)}class ai{constructor(e,t,n,i,r,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(it.a)(e=>_n(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(it.a)(e=>_n(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function li(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class ci{constructor(e,t,n,i,r,o,s,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_n(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_n(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ui extends ei{constructor(e,t){super(t),this.url=e,di(this,t)}toString(){return hi(this._root)}}function di(e,t){t.value._routerState=e,t.children.forEach(t=>di(e,t))}function hi(e){const t=e.children.length>0?` { ${e.children.map(hi).join(", ")} } `:"";return`${e.value}${t}`}function pi(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Tn(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Tn(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Tn(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Tn(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function fi(e,t){var n,i;return Tn(e.params,t.params)&&Fn(n=e.url,i=t.url)&&n.every((e,t)=>Tn(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||fi(e.parent,t.parent))}function mi(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function gi(e,t,n,i,r){let o={};return i&&Rn(i,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Pn(n.root===e?t:function e(t,n,i){const r={};return Rn(t.children,(t,o)=>{r[o]=t===n?i:e(t,n,i)}),new Ln(t.segments,r)}(n.root,e,t),o,r)}class yi{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&mi(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(i&&i!==In(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vi{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function _i(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:`${e}`}function bi(e,t,n){if(e||(e=new Ln([],{})),0===e.segments.length&&e.hasChildren())return wi(e,t,n);const i=function(e,t,n){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=n.length)return o;const t=e.segments[r],s=_i(n[i]),a=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!Di(s,a,t))return o;i+=2}else{if(!Di(s,{},t))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new Ln(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new Ln(e.segments.slice(i.pathIndex),e.children),wi(t,0,r)}return i.match&&0===r.length?new Ln(e.segments,{}):i.match&&!e.hasChildren()?Ci(e,t,n):i.match?wi(e,0,r):Ci(e,t,n)}function wi(e,t,n){if(0===n.length)return new Ln(e.segments,{});{const i=function(e){return"object"!=typeof e[0]?{primary:e}:void 0===e[0].outlets?{primary:e}:e[0].outlets}(n),r={};return Rn(i,(n,i)=>{null!==n&&(r[i]=bi(e.children[i],t,n))}),Rn(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new Ln(e.segments,r)}}function Ci(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){if("object"==typeof n[r]&&void 0!==n[r].outlets){const e=Ei(n[r].outlets);return new Ln(i,e)}if(0===r&&mi(n[0])){i.push(new Nn(e.segments[t].path,n[0])),r++;continue}const o=_i(n[r]),s=r<n.length-1?n[r+1]:null;o&&s&&mi(s)?(i.push(new Nn(o,Si(s))),r+=2):(i.push(new Nn(o,{})),r++)}return new Ln(i,{})}function Ei(e){const t={};return Rn(e,(e,n)=>{null!==e&&(t[n]=Ci(new Ln([],{}),0,e))}),t}function Si(e){const t={};return Rn(e,(e,n)=>t[n]=`${e}`),t}function Di(e,t,n){return e==n.path&&Tn(t,n.parameters)}class xi{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),pi(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=ri(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),Rn(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const i=ri(e),r=e.value.component?n.children:t;Rn(i,(e,t)=>this.deactivateRouteAndItsChildren(e,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const i=ri(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new mn(e.value.snapshot))}),e.children.length&&this.forwardEvent(new pn(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(pi(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Ti(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Ti(e){pi(e.value),e.children.forEach(Ti)}function Oi(e){return"function"==typeof e}function ki(e){return e instanceof Pn}class Ii{constructor(e){this.segmentGroup=e||null}}class Ri{constructor(e){this.urlTree=e}}function Mi(e){return new ze.a(t=>t.error(new Ii(e)))}function Ai(e){return new ze.a(t=>t.error(new Ri(e)))}function Pi(e){return new ze.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Li{constructor(e,t,n,i,o){this.configLoader=t,this.urlSerializer
1=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(r.NgModuleRef)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(it.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(St(e=>{if(e instanceof Ri)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Ii)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(it.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(St(e=>{if(e instanceof Ii)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new Ln([],{primary:e}):e;return new Pn(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(it.a)(e=>new Ln([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Ye({});const n=[],i=[],r={};return Rn(e,(e,o)=>{const s=t(o,e).pipe(Object(it.a)(e=>r[o]=e));"primary"===o?n.push(s):i.push(s)}),Ye.apply(null,n.concat(i)).pipe(ot(),Ct(),Object(it.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(e,t,i,n))}expandSegment(e,t,n,i,r,o){return Ye(...n).pipe(Object(it.a)(s=>this.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(St(e=>{if(e instanceof Ii)return Ye(null);throw e}))),ot(),It(e=>!!e),St((e,n)=>{if(e instanceof qe||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,i,r))return Ye(new Ln([],{}));throw new Ii(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,i,r,o,s){return Vi(i)!==o?Mi(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Mi(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ai(r):this.lineralizeSegments(n,r).pipe(Object(Rt.a)(n=>{const r=new Ln(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ni(t,i,r);if(!s)return Mi(t);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ai(u):this.lineralizeSegments(i,u).pipe(Object(Rt.a)(i=>this.expandSegment(e,t,n,i.concat(r.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(it.a)(e=>(n._loadedConfig=e,new Ln(i,{})))):Ye(new Ln(i,{}));const{matched:r,consumedSegments:o,lastChild:s}=Ni(t,n,i);if(!r)return Mi(t);const a=i.slice(s);return this.getChildConfig(e,n,i).pipe(Object(Rt.a)(e=>{const n=e.module,i=e.routes,{segmentGroup:r,slicedSegments:s}=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some(n=>ji(e,t,n)&&"primary"!==Vi(n))}(e,n,i)?{segmentGroup:Fi(new Ln(t,function(e,t){const n={};n.primary=t;for(const i of e)""===i.path&&"primary"!==Vi(i)&&(n[Vi(i)]=new Ln([],{}));return n}(i,new Ln(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>ji(e,t,n))}(e,n,i)?{segmentGroup:Fi(new Ln(e.segments,function(e,t,n,i){const r={};for(const o of n)ji(e,t,o)&&!i[Vi(o)]&&(r[Vi(o)]=new Ln([],{}));return Object.assign(Object.assign({},i),r)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,a,i);return 0===s.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(it.a)(e=>new Ln(o,e))):0===i.length&&0===s.length?Ye(new Ln(o,{})):this.expandSegment(n,r,i,s,"primary",!0).pipe(Object(it.a)(e=>new Ln(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Ye(new Cn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Ye(t._loadedConfig):function(e,t,n){const i=t.canLoad;return i&&0!==i.length?Object(Be.a)(i).pipe(Object(it.a)(i=>{const r=e.get(i);let o;if(function(e){return e&&Oi(e.canLoad)}(r))o=r.canLoad(t,n);else{if(!Oi(r))throw new Error("Invalid CanLoad guard");o=r(t,n)}return Mn(o)})).pipe(ot(),(r=e=>!0===e,e=>e.lift(new Mt(r,void 0,e)))):Ye(!0);var r}(e.injector,t,n).pipe(Object(Rt.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(it.a)(e=>(t._loadedConfig=e,e))):function(e){return new ze.a(t=>t.error(bn(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Ye(new Cn([],e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ye(n);if(i.numberOfChildren>1||!i.children.primary)return Pi(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new Pn(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Rn(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let o={};return Rn(t.children,(t,r)=>{o[r]=this.createSegmentGroup(e,t,n,i)}),new Ln(r,o)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Ni(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(t.matcher||wn)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Fi(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Ln(e.segments.concat(t.segments),t.children)}return e}function ji(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Vi(e){return e.outlet||"primary"}class Hi{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Yi{constructor(e,t){this.component=e,this.route=t}}function Bi(e,t,n){const i=e._root;return function e(t,n,i,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=ri(n);
1return t.children.forEach(t=>{!function(t,n,i,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,a=n?n.value:null,l=i?i.getContext(t.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fn(e.url,t.url)||!Tn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fi(e,t)||!Tn(e.queryParams,t.queryParams);case"paramsChange":default:return!fi(e,t)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Hi(r)):(s.data=a.data,s._resolvedData=a._resolvedData),e(t,n,s.component?l?l.children:null:i,r,o),c&&o.canDeactivateChecks.push(new Yi(l&&l.outlet&&l.outlet.component||null,a))}else a&&Wi(n,l,o),o.canActivateChecks.push(new Hi(r)),e(t,null,s.component?l?l.children:null:i,r,o)}(t,s[t.value.outlet],i,r.concat([t.value]),o),delete s[t.value.outlet]}),Rn(s,(e,t)=>Wi(e,i.getContext(t),o)),o}(i,t?t._root:null,n,[i.value])}function Gi(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Wi(e,t,n){const i=ri(e),r=e.value;Rn(i,(e,i)=>{Wi(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Yi(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}const Ui=Symbol("INITIAL_VALUE");function zi(){return Pt(e=>function(...e){let t=null,n=null;return Object(je.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(Ke.a)(e[0])&&(e=e[0]),Object(Ve.a)(e,n).lift(new Je(t))}(...e.map(e=>e.pipe(Tt(1),jt(Ui)))).pipe(Vt((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==Ui)return e;if(i===Ui&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||ki(i))return i}return e},e)},Ui),at(e=>e!==Ui),Object(it.a)(e=>ki(e)?e:!0===e),Tt(1)))}function qi(e,t){return null!==e&&t&&t(new fn(e)),Ye(!0)}function Ki(e,t){return null!==e&&t&&t(new hn(e)),Ye(!0)}function $i(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Ye(i.map(i=>nt(()=>{const r=Gi(i,t,n);let o;if(function(e){return e&&Oi(e.canActivate)}(r))o=Mn(r.canActivate(t,e));else{if(!Oi(r))throw new Error("Invalid CanActivate guard");o=Mn(r(t,e))}return o.pipe(It())}))).pipe(zi()):Ye(!0)}function Qi(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>nt(()=>Ye(t.guards.map(r=>{const o=Gi(r,t.node,n);let s;if(function(e){return e&&Oi(e.canActivateChild)}(o))s=Mn(o.canActivateChild(i,e));else{if(!Oi(o))throw new Error("Invalid CanActivateChild guard");s=Mn(o(i,e))}return s.pipe(It())})).pipe(zi())));return Ye(r).pipe(zi())}class Xi{}class Ji{constructor(e,t,n,i,r,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){try{const e=tr(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new ci([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ii(n,t),r=new ui(this.url,i);return this.inheritParamsAndData(r._root),Ye(r)}catch(e){return new ze.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=li(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=jn(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),i=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${i}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>
1"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,i){for(const o of e)try{return this.processSegmentAgainstRoute(o,t,n,i)}catch(r){if(!(r instanceof Xi))throw r}if(this.noLeftoversInUrl(t,n,i))return[];throw new Xi}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo)throw new Xi;if((e.outlet||"primary")!==i)throw new Xi;let r,o=[],s=[];if("**"===e.path){const o=n.length>0?In(n).parameters:{};r=new ci(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rr(e),i,e.component,e,Zi(t),er(t)+n.length,or(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Xi;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(t.matcher||wn)(n,e,t);if(!i)throw new Xi;const r={};Rn(i.posParams,(e,t)=>{r[t]=e.path});const o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=a.consumedSegments,s=n.slice(a.lastChild),r=new ci(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rr(e),i,e.component,e,Zi(t),er(t)+o.length,or(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=tr(t,o,s,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new ii(r,e)]}if(0===a.length&&0===c.length)return[new ii(r,[])];const u=this.processSegment(a,l,c,"primary");return[new ii(r,u)]}}function Zi(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function er(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function tr(e,t,n,i,r){if(n.length>0&&function(e,t,n){return n.some(n=>nr(e,t,n)&&"primary"!==ir(n))}(e,n,i)){const r=new Ln(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&"primary"!==ir(o)){const n=new Ln([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[ir(o)]=n}return r}(e,t,i,new Ln(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>nr(e,t,n))}(e,n,i)){const o=new Ln(e.segments,function(e,t,n,i,r,o){const s={};for(const a of i)if(nr(e,n,a)&&!r[ir(a)]){const n=new Ln([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[ir(a)]=n}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new Ln(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function nr(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ir(e){return e.outlet||"primary"}function rr(e){return e.data||{}}function or(e){return e.resolve||{}}function sr(e,t,n,i){const r=Gi(e,t,i);return Mn(r.resolve?r.resolve(t,n):r(t,n))}function ar(e){return function(t){return t.pipe(Pt(t=>{const n=e(t);return n?Object(Be.a)(n).pipe(Object(it.a)(()=>t)):Object(Be.a)([t])}))}}class lr{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const cr=new r.InjectionToken("ROUTES");class ur{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(it.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new Cn(kn(i.injector.get(cr)).map(xn),i)}))}loadModuleFactory(e){return"string"==typeof e?Object(Be.a)(this.loader.load(e)):Mn(e()).pipe(Object(Rt.a)(e=>e instanceof r.NgModuleFactory?Ye(e):Object(Be.a)(this.compiler.compileModuleAsync(e))))}}class dr{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function hr(e){throw e}function pr(e,t,n){return t.parse("/")}function fr(e,t){return Ye(null)}let mr=(()=>{class e{constructor(e,t,n,i,o,s,a,l){this.rootComponentType=e,this.urlSerializer
1=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Ge.a,this.errorHandler=hr,this.malformedUriErrorHandler=pr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fr,afterPreactivation:fr},this.urlHandlingStrategy=new dr,this.routeReuseStrategy=new lr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(r.NgModuleRef),this.console=o.get(r["\u0275Console"]);const c=o.get(r.NgZone);this.isNgZoneEnabled=c instanceof r.NgZone,this.resetConfig(l),this.currentUrlTree=new Pn(new Ln([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ur(s,a,e=>this.triggerEvent(new un(e)),e=>this.triggerEvent(new dn(e))),this.routerState=si(this.currentUrlTree,this.rootComponentType),this.transitions=new Ue({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(at(e=>0!==e.id),Object(it.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Pt(e=>{let n=!1,i=!1;return Ye(e).pipe(zt(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Pt(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Ye(e).pipe(Pt(e=>{const n=this.transitions.getValue();return t.next(new en(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?et:[e]}),Pt(e=>Promise.resolve(e)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,s=this.config,function(e){return e.pipe(Pt(e=>function(e,t,n,i,r){return new Li(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,s).pipe(Object(it.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),zt(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return function(o){return o.pipe(Object(Rt.a)(o=>function(e,t,n,i,r="emptyOnly",o="legacy"){return new Ji(e,t,n,i,r,o).recognize()}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe(Object(it.a)(e=>Object.assign(Object.assign({},o),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),zt(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),zt(e=>{const n=new on(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,o,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:s}=e,a=new en(n,this.serializeUrl(i),r,o);t.next(a);const l=si(i,this.rootComponentType).snapshot;return Ye(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),et}),ar(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),zt(e=>{const t=new sn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(it.a)(e=>Object.assign(Object.assign({},e),{guards:Bi(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(Rt.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Ye(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(Be.a)(e).pipe(Object(Rt.a)(e=>function(e,t,n,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;
1return o&&0!==o.length?Ye(o.map(o=>{const s=Gi(o,t,r);let a;if(function(e){return e&&Oi(e.canDeactivate)}(s))a=Mn(s.canDeactivate(e,t,n,i));else{if(!Oi(s))throw new Error("Invalid CanDeactivate guard");a=Mn(s(e,t,n,i))}return a.pipe(It())})).pipe(zi()):Ye(!0)}(e.component,e.route,n,t,i)),It(e=>!0!==e,!0))}(s,i,r,e).pipe(Object(Rt.a)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(Be.a)(t).pipe(Bt(t=>Object(Be.a)([Ki(t.route.parent,i),qi(t.route,i),Qi(e,t.path,n),$i(e,t.route,n)]).pipe(ot(),It(e=>!0!==e,!0))),It(e=>!0!==e,!0))}(i,o,e,t):Ye(n)),Object(it.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),zt(e=>{if(ki(e.guardsResult)){const t=bn(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),zt(e=>{const t=new an(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),at(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new nn(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),ar(e=>{if(e.guards.canActivateChecks.length)return Ye(e).pipe(zt(e=>{const t=new ln(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),(t=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(e){return e.pipe(Object(Rt.a)(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;return r.length?Object(Be.a)(r).pipe(Bt(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Ye({});if(1===r.length){const o=r[0];return sr(e[o],t,n,i).pipe(Object(it.a)(e=>({[o]:e})))}const o={};return Object(Be.a)(r).pipe(Object(Rt.a)(r=>sr(e[r],t,n,i).pipe(Object(it.a)(e=>(o[r]=e,e))))).pipe(Ct(),Object(it.a)(()=>o))}(e._resolve,e,t,i).pipe(Object(it.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),li(e,n).resolve),null)))}(e.route,i,t,n)),function(e,t){return arguments.length>=2?function(n){return Object(Gt.a)(Vt(e,t),dt(1),vt(t))(n)}:function(t){return Object(Gt.a)(Vt((t,n,i)=>e(t,n,i+1)),dt(1))(t)}}((e,t)=>e),Object(it.a)(t=>e)):Ye(e)}))}),zt(e=>{const t=new cn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}));var t,n}),ar(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),Object(it.a)(e=>{const t=function(e,t,n){const i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const o=function(t,n,i){return n.children.map(n=>{for(const r of i.children)if(t.shouldReuseRoute(r.value.snapshot,n.value))return e(t,n,r);return e(t,n)})}(t,n,i);return new ii(r,o)}{const i=t.retrieve(n.value);if(i){const e=i.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,e),e}{const i=new ai(new Ue((r=n.value).url),new Ue(r.params),new Ue(r.queryParams),new Ue(r.fragment),new Ue(r.data),r.outlet,r.component,r),o=n.children.map(n=>e(t,n));return new ii(i,o)}}var r}(e,t._root,n?n._root:void 0);return new oi(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),zt(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,s=e=>this.triggerEvent(e),Object(it.a)(e=>(new xi(o,e.targetRouterState,e.currentRouterState,s).activate(r),e))),zt({next(){
1n=!0},complete(){n=!0}}),Qt(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new nn(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),St(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=ki(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new nn(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new rn(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(o){e.reject(o)}}var r;return et}));var r,o,s}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){En(e),this.config=e.map(xn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:o,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:l}=t;Object(r.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;if(a)switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}else d=s?this.currentUrlTree.queryParams:i||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,i,r){if(0===n.length)return gi(t.root,t.root,t,i,r);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new yi(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return Rn(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new yi(n,t,i)}(n);if(o.toRoot())return gi(t.root,new Ln([],{}),t,i,r);const s=function(e,t,n){if(e.isAbsolute)return new vi(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new vi(n.snapshot._urlSegment,!0,0);const i=mi(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new vi(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?wi(s.segmentGroup,s.index,o.commands):bi(s.segmentGroup,s.index,o.commands);return gi(s.segmentGroup,a,t,i,r)}(c,this.currentUrlTree,e,d,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(r.isDevMode)()&&this.isNgZoneEnabled&&!r.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did 
1you forget to call 'ngZone.run()'?");const n=ki(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(ki(e))return An(this.currentUrlTree,e,t);const n=this.parseUrl(e);return An(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new tn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){const o=this.getTransition();if(o&&"imperative"!==t&&"imperative"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"hashchange"==t&&"popstate"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"popstate"==t&&"hashchange"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);let s,a,l;r?(s=r.resolve,a=r.reject,l=r.promise):l=new Promise((e,t)=>{s=e,a=t});const c=++this.navigationId;return this.setTransition({id:c,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:s,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(e){r["\u0275\u0275invalidFactory"]()},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})();class gr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new yr,this.attachRef=null}}class yr{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new gr,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let vr=(()=>{class e{constructor(e,t,n,i,o){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new _r(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](yr),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275injectAttribute"]("name"),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class _r{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===ai?this.route:e===yr?this.childContexts:this.parent.get(e,t)}}class br{}class wr{preload(e,t){return Ye(null)}}let Cr=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new ur(t,n,t=>e.triggerEvent(new un(t)),t=>e.triggerEvent(new dn(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(at(e=>e instanceof tn),Bt(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.NgModuleRef);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return Object(Be.a)(n).pipe(Object(rt.a)(),Object(it.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(Rt.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](mr),r["\u0275\u0275inject"](r.NgModuleFactoryLoader),r["\u0275\u0275inject"](r.Compiler),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](br))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Er=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof en?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof tn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof gn&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new gn(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(e){r["\u0275\u0275invalidFactory"]()},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})();const Sr=new r.InjectionToken("ROUTER_CONFIGURATION"),Dr=new r.InjectionToken("ROUTER_FORROOT_GUARD"),xr=[E,{provide:Vn,useClass:Hn},{provide:mr,useFactory:function(e,t,n,i,r,o,s,l,c={},u,d){const h=new mr(null,t,n,i,r,o,s,kn(l));if(u&&(h.urlHandlingStrategy=u),d&&(h.routeReuseStrategy=d),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const e=a();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[r.ApplicationRef,Vn,yr,E,r.Injector,r.NgModuleFactoryLoader,r.Compiler,cr,Sr,[class{},new r.Optional],[class{},new r.Optional]]},yr,{provide:ai,useFactory:function(e){return e.routerState.root},deps:[mr]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Cr,wr,class{preload(e,t){return t().pipe(St(()=>Ye(null)))}},{provide:Sr,useValue:{enableTracing:!1}}];function Tr(){return new r.NgProbeToken("Router",mr)}let Or=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[xr,Mr(t),{provide:Dr,useFactory:Rr,deps:[[mr,new r.Optional,new r.SkipSelf]]},{provide:Sr,useValue:n||{}},{provide:v,useFactory:Ir,deps:[c,[new r.Inject(b),new r.Optional],Sr]},{provide:Er,useFactory:kr,deps:[mr,oe,Sr]},{provide:br,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:wr},{provide:r.NgProbeToken,multi:!0,useFactory:Tr},[Ar,{provide:r.APP_INITIALIZER,multi:!0,useFactory:Pr,deps:[Ar]},{provide:Nr,useFactory:Lr,deps:[Ar]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Nr}]]}}static forChild(t){return{ngModule:e,providers:[Mr(t)]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](Dr,8),r["\u0275\u0275inject"](mr,8))}}),e})();function kr(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Er(e,t,n)}function Ir(e,t,n={}){return n.useHash?new C(e,t):new w(e,t)}function Rr(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Mr(e){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:cr,multi:!0,useValue:e}]}let Ar=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Ge.a}appInitializer(){return this.injector.get(d,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(mr),i=this.injector.get(Sr);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Ye(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Sr),n=this.injector.get(Cr),i=this.injector.get(Er),o=this.injector.get(mr),s=this.injector.get(r.ApplicationRef);e===s.components[0]&&(this.isLegacyEnabled(t)?o.initialNavigation():this.isLegacyDisabled(t)&&o.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function Pr(e){return e.appInitializer.bind(e)}function Lr(e){return e.bootstrapListener.bind(e)}const Nr=new r.InjectionToken("Router Initializer");var Fr=n("mrSG"),jr=function(e){return e[e.None=0]="None",e[e.LightRed=1]="LightRed",e[e.LightGreen=2]="LightGreen",e[e.LightBlue=3]="LightBlue",e[e.LightYellow=4]="LightYellow",e[e.LightPink=5]="LightPink",e[e.LightOrange=6]="LightOrange",e[e.LightPurple=7]="LightPurple",e[e.DarkRed=8]="DarkRed",e[e.DarkGreen=9]="DarkGreen",e[e.DarkBlue=10]="DarkBlue",e[e.DarkYellow=11]="DarkYellow",e[e.DarkPink=12]="DarkPink",e[e.DarkOrange=13]="DarkOrange",e[e.DarkPurple=14]="DarkPurple",e[e.Custom=15]="
1Custom",e}({}),Vr=n("wd/R"),Hr=n.n(Vr),Yr=function(e){return e[e.None=0]="None",e[e.Month=1]="Month",e[e.Week=2]="Week",e[e.PayPeriod=3]="PayPeriod",e}({});let Br=(()=>{class e{transform(e){return 0===e?0:e/100}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"dollarsAndCents",type:e,pure:!0}),e})();class Gr extends $t.a{constructor(e,t){super()}schedule(e,t=0){return this}}class Wr extends Gr{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Ur=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class zr extends Ur{constructor(e,t=Ur.now){super(e,()=>zr.delegate&&zr.delegate!==this?zr.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return zr.delegate&&zr.delegate!==this?zr.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const qr=new zr(Wr);function Kr(e,t){return function(e,t=qr){return new ze.a(n=>{let i;return null!=t?t.schedule(()=>{i=e.onSnapshot(n)}):i=e.onSnapshot(n),function(){null!=i&&i()}})}(e,t)}function $r(e,t){return Kr(e,t).pipe(Object(it.a)(e=>({payload:e,type:"query"})))}function Qr(e,t){return new ze.a(t?n=>t.schedule(Xr,0,{error:e,subscriber:n}):t=>t.error(e))}function Xr({error:e,subscriber:t}){t.error(e)}let Jr=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Ye(this.value);case"E":return Qr(this.error);case"C":return tt()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();function Zr(e,t=0){return function(n){return n.lift(new eo(e,t))}}class eo{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new to(e,this.scheduler,this.delay))}}class to extends st.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(to.dispatch,this.delay,new no(e,this.destination)))}_next(e){this.scheduleMessage(Jr.createNext(e))}_error(e){this.scheduleMessage(Jr.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Jr.createComplete()),this.unsubscribe()}}class no{constructor(e,t){this.notification=e,this.destination=t}}function io(e,t){return $r(e,t).pipe(Object(it.a)(e=>e.payload.docChanges().map(e=>({type:e.type,payload:e}))))}function ro(e,t,n){return $r(e,n).pipe(Object(it.a)(e=>e.payload.docChanges()),Vt((e,n)=>function(e,t,n){return t.forEach(t=>{n.indexOf(t.type)>-1&&(e=function(e,t){switch(t.type){case"added":e[t.newIndex]&&e[t.newIndex].doc.ref.isEqual(t.doc.ref)||e.splice(t.newIndex,0,t);break;case"modified":(null==e[t.oldIndex]||e[t.oldIndex].doc.ref.isEqual(t.doc.ref))&&(t.oldIndex!==t.newIndex?(e.splice(t.oldIndex,1),e.splice(t.newIndex,0,t)):e.splice(t.newIndex,1,t));break;case"removed":e[t.oldIndex]&&e[t.oldIndex].doc.ref.isEqual(t.doc.ref)&&e.splice(t.oldIndex,1)}return e}(e,t))}),e}(e,n,t),[]),Object(it.a)(e=>e.map(e=>({type:e.type,payload:e}))))}function oo(e){return e&&0!==e.length||(e=["added","removed","modified"]),e}class so{constructor(e,t,n){this.ref=e,this.query=t,this.afs=n}
1stateChanges(e){return e&&0!==e.length?io(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(it.a)(t=>t.filter(t=>e.indexOf(t.type)>-1)),at(e=>e.length>0)):io(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(e){return this.stateChanges(e).pipe(Vt((e,t)=>[...e,...t],[]))}snapshotChanges(e){const t=oo(e);return ro(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(e={}){return $r(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(it.a)(t=>t.payload.docs.map(t=>e.idField?Object.assign({},t.data(),{[e.idField]:t.id}):t.data())))}get(e){return Object(Be.a)(this.query.get(e)).pipe(Zr(this.afs.schedulers.insideAngular))}add(e){return this.ref.add(e)}doc(e){return new ao(this.ref.doc(e),this.afs)}}class ao{constructor(e,t){this.ref=e,this.afs=t}set(e,t){return this.ref.set(e,t)}update(e){return this.ref.update(e)}delete(){return this.ref.delete()}collection(e,t){const n=this.ref.collection(e),{ref:i,query:r}=Uo(n,t);return new so(i,r,this.afs)}snapshotChanges(){return Kr(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(it.a)(e=>({payload:e,type:"value"}))).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return this.snapshotChanges().pipe(Object(it.a)(e=>e.payload.data()))}get(e){return Object(Be.a)(this.ref.get(e)).pipe(Zr(this.afs.schedulers.insideAngular))}}class lo{constructor(e,t){this.query=e,this.afs=t}stateChanges(e){return e&&0!==e.length?io(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(it.a)(t=>t.filter(t=>e.indexOf(t.type)>-1)),at(e=>e.length>0)):io(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(e){return this.stateChanges(e).pipe(Vt((e,t)=>[...e,...t],[]))}snapshotChanges(e){const t=oo(e);return ro(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return $r(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(it.a)(e=>e.payload.docs.map(e=>e.data())))}get(e){return Object(Be.a)(this.query.get(e)).pipe(Zr(this.afs.schedulers.insideAngular))}}class co extends Wr{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class uo extends zr{}const ho=new uo(co);let po=1;const fo=(()=>Promise.resolve())(),mo={};function go(e){return e in mo&&(delete mo[e],!0)}const yo={setImmediate(e){const t=po++;return mo[t]=!0,fo.then(()=>go(t)&&e()),t},clearImmediate(e){go(e)}};class vo extends Wr{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=yo.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(yo.clearImmediate(t),e.scheduled=void 0)}}class _o extends zr{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i<r&&(e=t.shift()));if(this.active=!1,n){for(;++i<r&&(e=t.shift());)e.unsubscribe();throw n}}}const bo=new _o(vo);function wo(e){return!Object(Ke.a)(e)&&e-parseFloat(e)+1>=0}class Co extends ze.a{constructor(e,t=0,n=bo){super(),this.source=e,this.delayTime=t,this.scheduler=n,(!wo(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=bo)}static create(e,t=0,n=bo){return new Co(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(Co.dispatch,this.delayTime,{source:this.source,subscriber:e})}}class Eo{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new Co(t,this.delay,this.scheduler).subscribe(e)}}function So(){}class Do{constructor(e,t=ho){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,n){const i=this.zone;return this.delegate.schedule((function(t){i.runGuarded(()=>{e.apply(this,[t])})}),t,n)}}class xo{constructor(e){this.zone=e,this.task=null}call(e,t){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",So,{},So,So)),t.pipe(zt(n,n,n)).subscribe(e).add(n)}unscheduleTask(){null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)}}class To{constructor(e){this.ngZone=e,this.outsideAngular=e.runOutsideAngular(()=>new Do(Zone.current)),this.insideAngular=e.run(()=>new Do(Zone.current,qr))}}function Oo(e,t){return function(n){return re(t)&&(n=n.lift(new xo(e.ngZone))),n.pipe(function(e,t=0){return function(n){return n.lift(new E
1o(e,t))}}(e.outsideAngular),Zr(e.insideAngular))}}var ko,Io=n("Wcq6"),Ro=n.n(Io);const Mo=new r.InjectionToken("angularfire2.app.options"),Ao=new r.InjectionToken("angularfire2.app.nameOrConfig"),Po=new r.Version("5.4.2");function Lo(e,t,n){const i="object"==typeof n&&n||{};return i.name=i.name||"string"==typeof n&&n||"[DEFAULT]",Ro.a.apps.filter(e=>e&&e.name===i.name)[0]||t.runOutsideAngular(()=>Ro.a.initializeApp(e,i))}const No={provide:class{},useFactory:Lo,deps:[Mo,r.NgZone,[new r.Optional,Ao]]};let Fo=(()=>{let e=ko=class{constructor(e){Ro.a.registerVersion&&(Ro.a.registerVersion("angularfire",Po.full,e.toString()),Ro.a.registerVersion("angular",r.VERSION.full))}static initializeApp(e,t){return{ngModule:ko,providers:[{provide:Mo,useValue:e},{provide:Ao,useValue:t}]}}};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](r.PLATFORM_ID))},providers:[No]}),e})();const jo=new r.InjectionToken("angularfire2.enableFirestorePersistence"),Vo=new r.InjectionToken("angularfire2.firestore.persistenceSettings"),Ho=jo,Yo=Vo,Bo=new r.InjectionToken("angularfire2.firestore.settings"),Go=parseInt(Ro.a.SDK_VERSION.split(".")[0]),Wo=Go<5||5==Go&&parseInt(Ro.a.SDK_VERSION.split(".")[1])<8?{timestampsInSnapshots:!0}:{};function Uo(e,t=(e=>e)){return{query:t(e),ref:e}}let zo=(()=>{let e=class{constructor(e,t,n,i,r,o,s){this.schedulers=new To(o),this.keepUnstableUntilFirst=Oo(this.schedulers,r),this.firestore=o.runOutsideAngular(()=>{const n=Lo(e,o,t).firestore();return n.settings(i||Wo),n}),this.persistenceEnabled$=n&&!re(r)?o.runOutsideAngular(()=>{try{return Object(Be.a)(this.firestore.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(e){return Ye(!1)}}):Ye(!1)}collection(e,t){let n;n="string"==typeof e?this.firestore.collection(e):e;const{ref:i,query:r}=Uo(n,t);return new so(i,r,this)}collectionGroup(e,t){if(Go<6)throw"collection group queries require Firebase JS SDK >= 6.0";const n=t||(e=>e),i=this.firestore.collectionGroup(e);return new lo(n(i),this)}doc(e){let t;return t="string"==typeof e?this.firestore.doc(e):e,new ao(t,this)}createId(){return this.firestore.collection("_").doc().id}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Mo),r["\u0275\u0275inject"](Ao,8),r["\u0275\u0275inject"](Ho,8),r["\u0275\u0275inject"](Bo,8),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](Yo,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),qo=(()=>{class e{constructor(e){this.afs=e}createExampleBudget(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=this.afs.firestore.batch(),n={nm:"Example Budget",id:this.afs.createId(),usr:e,sort:1,x:!1},i=this.afs.collection(`users/${e}/budgets`).doc(n.id);t.set(i.ref,n);let r={id:this.afs.createId(),nm:"My Checking",bal:5e3,bgt:n.id,icn:"saving-bank",clr:"#000",sort:1},o=this.afs.collection(`users/${e}/budgets/${n.id}/accounts`).doc(r.id);t.set(o.ref,r);let s=this.getSuggestedCategories(n.id),a=1;for(let u of s){u.sort=a++;let i=this.afs.collection(`users/${e}/budgets/${n.id}/categories`).doc(u.id);t.set(i.ref,u)}let l=this.getExampleItems(n,r,s),c=1;for(let u of l){u.sort=c++;let i=this.afs.collection(`users/${e}/budgets/${n.id}/items`).doc(u.id);t.set(i.ref,u)}return yield t.commit(),n.id}))}getSuggestedCategories(e){return[{bg:"#00FF00",bgt:e,clr:"#000000",des:"Income earned jobs.",icn:"cash-payment-person",id:this.afs.createId(),nm:"Work Wages",sort:1,typ:"I"},{bg:"#00FF00",bgt:e,clr:"#000000",des:"Income from tax returns, side-gigs, selling items on eBay, yard sales, etc.",icn:"cash-payment-bill-3",id:this.afs.createId(),nm:"Misc Income",sort:2,typ:"I"},{bgt:e,clr:"#800080",des:"Adults\u2019 clothing/shoes, children\u2019s clothing/shoes.",icn:"shirt-male",id:this.afs.createId(),nm:"Clothing",sort:3,typ:"E"},{bg:"#000000",bgt:e,clr:"#87CEFA",des:"Tuition, fees, books, school supplies.",icn:"people-man-graduate",id:this.afs.createId(),nm:"Education",sort:4,typ:"E"},{bgt:e,clr:"#4B0082",des:"Restaurants, games, movies, concerts, vacations, subscriptions (online, magazines, etc.).",icn:"beach-palm-sunbed",i
1d:this.afs.createId(),nm:"Entertainment",sort:5,typ:"E"},{bgt:e,clr:"#FF00FF",des:"Charities, tithes, offerings.",icn:"gift-box",id:this.afs.createId(),nm:"Gifts/Donations",sort:6,typ:"E"},{bgt:e,clr:"#006400",des:"Food for your home, pet food, kitchen supplies, cleaning supplies, toiletries.",icn:"shopping-cart-empty-1",id:this.afs.createId(),nm:"Food/Supplies",sort:7,typ:"E"},{bg:"#E0FFFF",bgt:e,clr:"#8B4513",des:"Mortgage or rent, property taxes, household repairs, HOA fees.",icn:"house",id:this.afs.createId(),nm:"Housing",sort:8,typ:"E"},{bg:"#E6E6FA",bgt:e,clr:"#000000",des:"Health insurance, homeowner\u2019s or renter\u2019s insurance, home warranty or protection plan, auto insurance, life insurance, disability insurance.",icn:"common-file-award",id:this.afs.createId(),nm:"Insurance",sort:9,typ:"E"},{bg:"#808080",bgt:e,clr:"#FFD700",des:"Land, precious metals, stocks, 401k, IRA.",icn:"gold-bars",id:this.afs.createId(),nm:"Investment Expenses",sort:10,typ:"E"},{bgt:e,clr:"#4682B4",des:"Primary care, dental care, specialty care (dermatologists, orthodontics, optometrists, etc.), urgent care, medications, medical devices.",icn:"medical-hospital-1",id:this.afs.createId(),nm:"Medical/Healthcare",sort:11,typ:"E"},{bgt:e,clr:"#0000FF",des:"Gym memberships, haircuts, salon services, cosmetics, babysitter, subscriptions.",icn:"fitness-weightlift",id:this.afs.createId(),nm:"Personal",sort:12,typ:"E"},{bgt:e,clr:"#FF4500",des:"Emergency fund, other savings.",icn:"saving-piggy-bank",id:this.afs.createId(),nm:"Savings",sort:13,typ:"E"},{bg:"#FFFFFF",bgt:e,clr:"#FF0000",des:"Holidays, birthdays, anniversaries, weddings, funerals.",icn:"christmas-bells",id:this.afs.createId(),nm:"Special Occassions",sort:14,typ:"E"},{bgt:e,clr:"#000000",des:"Car payment, car warranty, public transportation, fuel, tires, maintenance, repairs, parking fees, registration and DMV fees.",icn:"sports-car-2",id:this.afs.createId(),nm:"Transportation",sort:15,typ:"E"},{bgt:e,clr:"#FF0000",des:"Personal loans, student loans, credit cards.",icn:"credit-card",id:this.afs.createId(),nm:"Unsecured Debt",sort:16,typ:"E"},{bg:"#FFFF00",bgt:e,clr:"#000000",des:"Electricity, water, garbage, phones, cable, Internet.",icn:"light-bulb-1",id:this.afs.createId(),nm:"Utilities",sort:17,typ:"E"}]}getExampleItems(e,t,n){return[{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Work Wages"===e.nm).id,id:this.afs.createId(),nm:"Paycheck",sch:[{amt:2500,dys:[4],evy:2,hasEnd:!1,rep:!0,weekly:!0,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Housing"===e.nm).id,id:this.afs.createId(),nm:"Rent",sch:[{amt:1600,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Food/Supplies"===e.nm).id,id:this.afs.createId(),nm:"Weekly Groceries",sch:[{amt:200,dys:[6],evy:1,hasEnd:!1,rep:!0,weekly:!0,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Transportation"===e.nm).id,id:this.afs.createId(),nm:"Gas",sch:[{amt:50,dys:[6],evy:1,hasEnd:!1,rep:!0,weekly:!0,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Utilities"===e.nm).id,id:this.afs.createId(),nm:"Electricity",sch:[{amt:250,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Utilities"===e.nm).id,id:this.afs.createId(),nm:"Water",sch:[{amt:30,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Utilities"===e.nm).id,id:this.afs.createId(),nm:"Mobile Phones",sch:[{amt:170,dts:[11],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Utilities"===e.nm).id,id:this.afs.createId(),nm:"Internet",sch:[{amt:75,dts:[7],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Utilities"===e.nm).id,id:this.afs.createId(),nm:"Trash/Recycling",sch:[{amt:35,dts:[15],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Transportation"===e.nm).id,id:this.afs.createId(),nm:"Car Payment",sch:[{amt:275,dts:[6],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]}
1,{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Insurance"===e.nm).id,id:this.afs.createId(),nm:"Car Insurance",sch:[{amt:285,dts:[10],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Insurance"===e.nm).id,id:this.afs.createId(),nm:"Renters Insurance",sch:[{amt:25,dts:[30],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Insurance"===e.nm).id,id:this.afs.createId(),nm:"Life Insurance",sch:[{amt:50,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Unsecured Debt"===e.nm).id,id:this.afs.createId(),nm:"Credit Card",sch:[{amt:100,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Unsecured Debt"===e.nm).id,id:this.afs.createId(),nm:"Personal Loan",sch:[{amt:150,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Education"===e.nm).id,id:this.afs.createId(),nm:"Student Loan",sch:[{amt:80,dts:[15],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Insurance"===e.nm).id,id:this.afs.createId(),nm:"Medical Insurance",sch:[{amt:500,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Transportation"===e.nm).id,id:this.afs.createId(),nm:"Car Registration",sch:[{amt:150,dts:[1],evy:24,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!1,bgt:e.id,cat:n.find(e=>"Transportation"===e.nm).id,id:this.afs.createId(),nm:"Car Maintenance",sch:[{amt:100,dts:[1],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Entertainment"===e.nm).id,id:this.afs.createId(),nm:"Friday Night Out",sch:[{amt:50,dys:[6],evy:2,hasEnd:!1,rep:!0,weekly:!0,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Entertainment"===e.nm).id,id:this.afs.createId(),nm:"Music Subscription",sch:[{amt:9.99,dts:[5],evy:1,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]},{act:t.id,auto:!0,bgt:e.id,cat:n.find(e=>"Entertainment"===e.nm).id,id:this.afs.createId(),nm:"Bookstore Membership",sch:[{amt:25,dts:[1],evy:12,hasEnd:!1,rep:!0,weekly:!1,beg:Vr().toISOString()}]}]}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](zo))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ko=(()=>{class e{constructor(e,t){this.afs=e,this.exampleBudgetService=t,this.historyItemRowCount=5,this.historySearchText="",this.data={ui:{budgetsLoaded:!1,windowWidth:0,leftPaneWidth:40,rightPaneWidth:60,sideTabIndex:0,mainTabIndex:0,settings:{plnHd:Yr.PayPeriod}},showBusy:!1,user:null,budgets:[],selectedBudget:null,accounts:[],selectedAccount:null,categories:[],selectedCategory:null,selectedCategoryIndex:-1,itemEvents:[],selectedItemEvent:null,changes:[],historyItems:[],selectedHistoryItem:null},this.ui$=new Ue(this.data.ui),this.showBusy$=new Ue(this.data.showBusy),this.user$=new Ue(this.data.user),this.budgets$=new Ue(this.data.budgets),this.selectedBudget$=new Ue(this.data.selectedBudget),this.dashboardData$=new Ue(this.data.dashboardData),this.accounts$=new Ue(this.data.accounts),this.selectedAccount$=new Ue(this.data.selectedAccount),this.categories$=new Ue(this.data.categories),this.selectedCategory$=new Ue(this.data.selectedCategory),this.selectedCategoryIndex$=new Ue(this.data.selectedCategoryIndex),this.items$=new Ue(this.data.items),this.selectedItem$=new Ue(this.data.selectedItem),this.itemEvents$=new Ue(this.data.itemEvents),this.selectedItemEvent$=new Ue(this.data.selectedItemEvent),this.changes$=new Ue(this.data.changes),this.historyItems$=new Ue(this.data.historyItems),this.selectedHistoryItem$=new Ue(this.data.selectedHistoryItem),this.loadCounter=0}get snapshot(){return this.data}get ui(){return this.ui$.asObservable()}patchUI(e){const t=Object.assign(Object.assign({},this.data.ui),e);this.ui$.next(this.data.ui=t)}get user(){return this.user$.asObservable()}getUserDocument(e=null){return this.afs.doc(e?`users/${e}`:`users/${this.data.user.id}`)}selectUser(e){var t,n,i;if(null===(t=this.userSub)||void 0===t||t.unsubscribe(),e){const t=this.getUserDocument(e.uid);null===(n=this.userSub)||void 0===n||n.unsubscribe(),this.userSub=t.valueChanges().subscribe(e=>{this.user$.next(this.data.user=e)}
1);const r=this.getSettingsDocument(e.uid);null===(i=this.settingsSub)||void 0===i||i.unsubscribe(),this.settingsSub=r.valueChanges().subscribe(e=>{this.data.ui.settings=e||{},this.ui$.next(this.data.ui)})}else this.user$.next(this.data.user=null),this.data.ui.settings=null,this.ui$.next(this.data.ui)}saveUserLogin(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const n=this.getUserDocument(e.uid),i={id:e.uid,eml:e.email,nm:e.displayName,prv:t,in:Vr().toISOString()};(yield n.get().toPromise()).exists||(i.up=i.in),yield n.set(this.deleteEmptyFields(i),{merge:!0})}))}saveUser(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=this.getUserDocument(e.id);yield t.set(this.deleteEmptyFields(e),{merge:!0})}))}getSettingsDocument(e){return this.afs.doc(`users/${e}/settings/${e}`)}saveSettings(e,t=!1){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(!this.data.user.id)return;e.id||(e.id=this.data.user.id);const n=this.getSettingsDocument(this.data.user.id);yield n.set(this.deleteEmptyFields(e)),t&&this.runCalculations()}))}patchSettings(e,t=!1){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.saveSettings(Object.assign(Object.assign({},this.data.ui.settings),e),t)}))}get budgets(){return this.budgets$.asObservable()}get budgetsCollectionPath(){return`users/${this.data.user.id}/budgets`}getBudgetsCollection(){return this.budgetsCollection||(this.budgetsCollection=this.afs.collection(this.budgetsCollectionPath,e=>e.where("x","==",!1))),this.budgetsCollection}loadBudgets(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.budgetsSub)||void 0===e||e.unsubscribe(),this.budgetsSub=this.getBudgetsCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){var t;this.budgets$.next(this.data.budgets=e.sort((e,t)=>e.nm.localeCompare(t.nm))),this.data.ui.budgetsLoaded||this.patchUI({budgetsLoaded:!0}),this.data.selectedBudget?yield this.selectBudget(this.data.selectedBudget.id):(null===(t=this.data.ui.settings)||void 0===t?void 0:t.bgt)?yield this.selectBudget(this.data.ui.settings.bgt):this.data.budgets.length&&(yield this.selectBudget(this.data.budgets[0].id))})))}))}selectBudget(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.showBusy$.next(this.data.showBusy=!0),this.selectedBudget$.next(this.data.selectedBudget=e?this.data.budgets.find(t=>t.id===e):null),this.resetItemEvents(),this.resetEventChanges(),this.resetItems(),this.resetCategories(),this.resetAccounts(),this.resetHistory(),this.data.selectedBudget&&(this.loadCounter=0,yield this.loadAccounts(),yield this.loadCategories(),yield this.loadItems(),yield this.loadChanges(),yield this.loadHistoryItems()),this.patchUI({sideTabIndex:0,mainTabIndex:0}),yield this.saveSettings(Object.assign(Object.assign({},this.data.ui.settings),{bgt:e})),this.showBusy$.next(this.data.showBusy=!1)}))}get selectedBudget(){return this.selectedBudget$.asObservable()}saveBudget(e,t,n=!0){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){e.id||(e.id=this.afs.createId(),e.sort=this.data.budgets.length+1,e.x=!1),this.deleteEmptyFields(e);const i=this.afs.doc(`${this.budgetsCollectionPath}/${e.id}`);if(t){if(t.set(i.ref,e),n)throw Error("Cannot select a budget set in a batch.")}else yield i.set(e),n&&(yield this.selectBudget(e.id))}))}deleteBudget(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=this.data.budgets.find(t=>t.id===e);t.x=!0,t.ddt=Vr().toISOString(),t.cdt=Vr().add(30,"days").toISOString();const n=this.getBudgetsCollection().doc(e);yield n.set(t,{merge:!0})}))}get accounts(){return this.accounts$.asObservable()}get accountsCollectionPath(){return`users/${this.data.user.id}/budgets/${this.data.selectedBudget.id}/accounts`}getAccountsCollection(){return this.accountsCollection||(this.accountsCollection=this.afs.collection(this.accountsCollectionPath)),this.accountsCollection}loadAccounts(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.accountsSub)||void 0===e||e.unsubscribe(),this.accountsSub=this.getAccountsCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(e.sort((e,t)=>
1e.sort-t.sort),this.accounts$.next(this.data.accounts=e),this.resolveItemRefs(this.data.items),this.data.selectedAccount){const t=e.find(e=>e.id===this.data.selectedAccount.id);this.selectedAccount$.next(this.data.selectedAccount=t)}else this.data.accounts.length&&this.selectedAccount$.next(this.data.selectedAccount=this.data.accounts[0]);this.loadCounter++,this.runCalculations()})))}))}createFirstAccount(e,t){const n={id:this.afs.createId(),nm:e,bal:t,bgt:this.data.selectedBudget.id,icn:"saving-bank",clr:"#000",sort:1};this.saveAccount(n,null,!0)}selectAccount(e){const t=e&&this.data.accounts.find(t=>t.id===e);this.selectedAccount$.next(this.data.selectedAccount=t)}get selectedAccount(){return this.selectedAccount$.asObservable()}saveAccount(e,t,n=!1){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(!e.id){e.id=this.afs.createId();let t=1;this.data.accounts.forEach(e=>t=Math.max(e.sort,t)),e.sort=t+1}delete e.balFormatted,e=this.deleteEmptyFields(e);const i=this.getAccountsCollection().doc(e.id);if(t){if(t.set(i.ref,e),n)throw Error("Cannot select an account set in a batch.")}else yield i.set(e),n&&this.selectAccount(e.id)}))}deleteAccount(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=this.getAccountsCollection().doc(e);yield t.delete();const n=this.data.items.filter(t=>t.act===e);if(n.length){const e=this.afs.firestore.batch();for(const t of n)t.act="",t.account=null,yield this.saveItem(t,e,!1);yield e.commit()}}))}changeAccountSort(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const n=this.data.accounts.find(t=>t.id===e);if(n){const e=this.data.accounts.indexOf(n),i=t,r=[];this.data.accounts.splice(e,1),this.data.accounts.splice(i,0,n);for(let t=0;t<this.data.accounts.length;t++){const e=this.data.accounts[t];e.sort!==t+1&&(e.sort=t+1,r.push(e))}const o=this.afs.firestore.batch();for(const t of r)yield this.saveAccount(t,o,!1);yield o.commit()}}))}
1resetAccounts(){var e;null===(e=this.accountsSub)||void 0===e||e.unsubscribe(),this.accountsCollection=null,this.selectedAccount$.next(this.data.selectedAccount=null),this.accounts$.next(this.data.accounts=[])}get defaultAccount(){return{nm:"No Account",bal:0,icn:"layout-none",clr:"#ccc"}}get defaultCategory(){return{icn:"layout-none",clr:"#ccc",nm:"No Category",typ:"E"}}get categories(){return this.categories$.asObservable()}get categoriesCollectionPath(){return`users/${this.data.user.id}/budgets/${this.data.selectedBudget.id}/categories`}getCategoriesCollection(){return this.categoriesCollection||(this.categoriesCollection=this.afs.collection(this.categoriesCollectionPath)),this.categoriesCollection}loadCategories(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.categoriesSub)||void 0===e||e.unsubscribe(),this.categoriesSub=this.getCategoriesCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){for(const t of e)t.children=e.filter(e=>e.par===t.id);if(e.sort((e,t)=>e.sort-t.sort),this.categories$.next(this.data.categories=e),this.resolveItemRefs(this.data.items),this.data.selectedCategory){const t=e.find(e=>e.id===this.data.selectedCategory.id);this.selectedCategory$.next(this.data.selectedCategory=t),this.selectedCategoryIndex$.next(t?e.indexOf(t):-1)}else this.data.categories.length&&(this.selectedCategory$.next(this.data.selectedCategory=this.data.categories[0]),this.selectedCategoryIndex$.next(0));this.loadCounter++,this.runCalculations()})))}))}selectCategory(e){const t=e&&this.data.categories.find(t=>t.id===e);if(t){const e=this.data.categories.indexOf(t);this.selectedCategory$.next(this.data.selectedCategory=t),this.selectedCategoryIndex$.next(this.data.selectedCategoryIndex=e)}}get selectedCategory(){return this.selectedCategory$.asObservable()}get selectedCategoryIndex(){return this.selectedCategoryIndex$.asObservable()}saveCategory(e,t=null,n=!0){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(!e.id){e.id=this.afs.createId();let t=1;this.data.categories.forEach(e=>t=Math.max(e.sort,t)),e.sort=t+1}this.deleteEmptyFields(e);const i=this.getCategoriesCollection().doc(e.id);if(t){if(t.set(i.ref,e),n)throw Error("Cannot select a category set in a batch.")}else yield i.set(e),n&&this.selectCategory(e.id)}))}addSuggestedCategories(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=this.exampleBudgetService.getSuggestedCategories(this.data.selectedBudget.id),t=this.afs.firestore.batch();for(const n of e)yield this.saveCategory(n,t,!1);yield t.commit()}))}deleteCategory(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=this.afs.firestore.batch(),n=this.data.items.filter(t=>t.cat===e);for(const e of n)e.cat="",e.category=null,yield this.saveItem(e,t,!1);const i=this.getCategoriesCollection().doc(e);t.delete(i.ref),yield t.commit()}))}changeCategorySort(e,t){var n;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const i=this.data.categories.find(t=>t.id===e);if(i){const e=this.data.categories.indexOf(i),r=t,o=r<e,s=this.data.categories.filter(e=>e.par===i.id);if(0===r)delete i.par;else if(r===this.data.categories.length-1)delete i.par;else{const e=this.data.categories[r+(o?0:1)];if(s.length&&e.par)return void this.categories$.next(this.data.categories);(null===(n=e)||void 0===n?void 0:n.par)!==i.id?i.par=e.par:delete i.par}const a=[];if(this.data.categories.splice(e,1),this.data.categories.splice(r,0,i),s.length){this.data.categories=this.data.categories.filter(e=>e.par!==i.id);const e=this.data.categories.indexOf(i)+1;for(const t of s.reverse())this.data.categories.splice(e,0,t)}for(let t=0;t<this.data.categories.length;t++){const e=this.data.categories[t];e.sort!==t+1&&(e.sort=t+1,a.push(e))}const l=this.afs.firestore.batch();for(const t of a)yield this.saveCategory(t,l,!1);yield l.commit()}}))}makeTopLevelCategory(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=this.data.categories,t=this.data.selectedCategory,n=this.data.selectedCategoryIndex||-1;if(n>0){delete t.par;let i=n;for(let t=n+1;t<e.length&&e[t].par;t++)i=t;
1n===i?yield this.saveCategory(t,null,!1):yield this.changeCategorySort(t.id,i)}}))}makeSubcategory(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=this.data.selectedCategoryIndex||-1;if(e>0){const t=this.data.categories[e-1];this.data.selectedCategory.par=t.par||t.id,yield this.saveCategory(this.data.selectedCategory,null,!1)}}))}resetCategories(){var e;null===(e=this.categoriesSub)||void 0===e||e.unsubscribe(),this.categoriesCollection=null,this.selectedCategory$.next(this.data.selectedCategory=null),this.categories$.next(this.data.categories=[])}get items(){return this.items$.asObservable()}get itemsCollectionPath(){return`users/${this.data.user.id}/budgets/${this.data.selectedBudget.id}/items`}getItemsCollection(){return this.itemsCollection||(this.itemsCollection=this.afs.collection(this.itemsCollectionPath)),this.itemsCollection}loadItems(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.itemsSub)||void 0===e||e.unsubscribe(),this.itemsSub=this.getItemsCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){e.sort((e,t)=>e.sort-t.sort);for(const t of e)for(const e of t.sch||[])e.on&&(e.onDate=Vr(e.on),delete e.on),e.beg&&(e.begDate=Vr(e.beg),delete e.beg),e.end&&(e.endDate=Vr(e.end),delete e.end);if(this.resolveItemRefs(e,!1),this.items$.next(this.data.items=e),this.data.selectedItem){const t=e.find(e=>e.id===this.data.selectedItem.id);this.selectedItem$.next(this.data.selectedItem=t)}else this.data.items.length&&this.selectedItem$.next(this.data.selectedItem=this.data.items[0]);this.loadCounter++,this.runCalculations()})))}))}resolveItemRefs(e,t=!0){for(const n of e||[])n.account=this.data.accounts.find(e=>e.id===n.act)||this.defaultAccount,n.category=this.data.categories.find(e=>e.id===n.cat)||this.defaultCategory;t&&this.items$.next(this.data.items=[...e])}selectItem(e){const t=e&&this.data.items.find(t=>t.id===e);this.selectedItem$.next(this.data.selectedItem=t)}get selectedItem(){return this.selectedItem$.asObservable()}saveItem(e,t=null,n=!0){var i,r;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const o=Object.assign(Object.assign({},e),{account:void 0,category:void 0,des:(null===(i=e.des)||void 0===i?void 0:i.trim())||void 0,sch:e.sch.map(e=>{var t,n,i;const r=Object.assign(Object.assign({},e),{on:e.onDate&&(null===(t=e.onDate)||void 0===t?void 0:t.toISOString()),beg:e.begDate&&(null===(n=e.begDate)||void 0===n?void 0:n.toISOString()),end:e.endDate&&(null===(i=e.endDate)||void 0===i?void 0:i.toISOString())});return delete r.onDate,delete r.begDate,delete r.endDate,this.deleteEmptyFields(r)})});if(!o.id){o.id=this.afs.createId();const e=this.data.categories.find(e=>e.id===o.cat);if("I"===(null===(r=e)||void 0===r?void 0:r.typ)){let e=-1;this.data.items.forEach(t=>e=Math.min(t.sort,e)),o.sort=e-1}else{let e=1;this.data.items.forEach(t=>e=Math.max(t.sort,e)),o.sort=e+1}}this.deleteEmptyFields(o);const s=this.getItemsCollection().doc(o.id);if(t){if(t.set(s.ref,o),n)throw Error("Cannot select an item set in a batch.")}else yield s.set(o),n&&this.selectItem(o.id)}))}deleteItem(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.deleteChangesForItem(e);const t=this.getItemsCollection().doc(e);yield t.delete()}))}deleteChangesForItem(e){var t,n;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const i=this.data.items.find(t=>t.id===e),r=yield this.getChangesCollection().ref.where("itemId","==",e).get(),o=this.afs.firestore.batch();((null===(t=i.res)||void 0===t?void 0:t.length)||(null===(n=i.del)||void 0===n?void 0:n.length))&&(delete i.res,delete i.del,yield this.saveItem(i,o,!1)),r.forEach(e=>o.delete(e.ref)),yield o.commit()}))}changeItemSort(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const n=this.data.items.find(t=>t.id===e);if(n){const e=this.data.items.indexOf(n),i=t,r=[];this.data.items.splice(e,1),this.data.items.splice(i,0,n);for(let t=0;t<this.data.items.length;t++){const e=this.data.items[t];e.sort!==t+1&&(e.sort=t+1,r.push(e))}if(r.length){const e=this.afs.firestore.batch();for(const t of r)yield this.saveItem(t,e,!1);yield e.commit()}}}))}resetItems(){var e;null===(e=this.itemsSub)||void 0===e||e.unsubscribe(),this.itemsCollection=null,this.selectedItem$.next(this.data.selectedItem=null),this.items$.
1next(this.data.items=[])}get itemEvents(){return this.itemEvents$.asObservable()}selectItemEvent(e){const t=e&&this.data.itemEvents.find(t=>t.id===e);this.selectedItemEvent$.next(this.data.selectedItemEvent=t)}get selectedItemEvent(){return this.selectedItemEvent$.asObservable()}deleteChangeForItemEvent(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const n=this.data.changes.find(n=>n.itemId===e&&n.pos===t);if(n){const e=this.getChangesCollection().doc(n.id);yield e.delete()}}))}deleteItemEvent(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){e.item.del||(e.item.del=[]);const t=this.afs.firestore.batch();-1===e.item.del.indexOf(e.pos)&&(e.item.del.push(e.pos),yield this.saveItem(e.item,t,!1));const n=this.data.changes.find(t=>t.itemId===e.item.id&&t.pos===e.pos);if(e.change=n,this.createHistoryItem(e,t,!0),n){const e=this.getChangesCollection().doc(n.id);t.delete(e.ref)}yield t.commit()}))}resolveItemEvent(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=e.account;let n=100*Number(t.bal);"I"===e.category.typ?n+=100*Number(e.amt):n-=100*Number(e.amt),t.bal=n/100;const i=this.afs.firestore.batch();e.item.res=e.item.res?e.item.res.filter(t=>t!==e.pos):[],e.item.res.push(e.pos),yield this.saveItem(e.item,i,!1);const r=this.getAccountsCollection().doc(t.id);i.set(r.ref,t);const o=this.data.changes.find(t=>t.itemId===e.item.id&&t.pos===e.pos);if(e.change=o,this.createHistoryItem(e,i,!1),o){const e=this.getChangesCollection().doc(o.id);i.delete(e.ref)}yield i.commit(),yield this.loadItems()}))}getEventFromItem(e,t,n,i){var r,o,s,a,l,c,u,d,h,p,f,m,g,y,v;const _=this.data.changes.find(t=>t.itemId===e.id&&t.pos===n);return{id:e.id+"-"+n,pos:n,nm:(null===(r=_)||void 0===r?void 0:r.nm)||e.nm,des:(null===(o=_)||void 0===o?void 0:o.des)||e.des,amt:(a=null===(s=_)||void 0===s?void 0:s.amt,null!=a?a:t.amt),sort:(c=null===(l=_)||void 0===l?void 0:l.sort,null!=c?c:e.sort),sts:(null===(u=_)||void 0===u?void 0:u.sts)||"S",adj:(p=null===(h=null===(d=_)||void 0===d?void 0:d.payOn)||void 0===h?void 0:h.diff(i,"days"),null!=p?p:0),totals:[],dueOn:i,payOn:(m=null===(f=_)||void 0===f?void 0:f.payOn,null!=m?m:i.clone()),pdOn:(null===(g=_)||void 0===g?void 0:g.pd)&&Vr(_.pd),item:e,schedule:t,account:(null===(y=_)||void 0===y?void 0:y.act)&&this.data.accounts.find(e=>e.id===_.act)||e.account||this.defaultAccount,category:(null===(v=_)||void 0===v?void 0:v.cat)&&this.data.categories.find(e=>e.id===_.cat)||e.category||this.defaultCategory,change:_}}getChangeFromEvent(e){var t;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let n=this.data.changes.find(t=>t.itemId===e.item.id&&t.pos===e.pos),i=!1;return n?i=!0:n={id:this.afs.createId(),budgetId:this.data.selectedBudget.id,itemId:e.item.id,pos:e.pos},n.nm=e.nm.trim()!==e.item.nm.trim()?e.nm.trim():void 0,n.amt=e.amt!==e.schedule.amt?e.amt:void 0,n.des=e.des&&e.des.trim()!==(e.item.des||"").trim()?e.des.trim():void 0,(null===(t=n.payOn)||void 0===t?void 0:t.isSame(e.dueOn))?delete n.payOn:e.payOn.isSame(e.dueOn)?delete n.payOn:n.payOn=e.payOn,n.sts=e.sts&&"S"!==e.sts?e.sts:void 0,n.pdOn=e.pdOn||void 0,n.act=e.account&&e.account.id!==e.item.act?e.account.id:void 0,n.cat=e.category&&e.category.id!==e.item.cat?e.category.id:void 0,n.nm||n.amt||n.des||n.sts||n.act||n.cat||n.payOn||n.pdOn?n:(i&&(yield this.deleteChangeForItemEvent(n.itemId,n.pos)),null)}))}runCalculations(){this.loadCounter>=4&&this.calculateItemEvents()}calculateItemEvents(e=1){var t,n;let i=[];const r=Vr().endOf("year").add(e,"years");this.data.items.forEach(e=>{let t=[];e.sch.forEach(n=>{if(n.rep){const i=n.evy||1;let o=(n.begDate||Vr()).clone().startOf("day");const s=n.endDate?n.endDate.clone().endOf("day"):r;let a=0;if(n.weekly)a=n.dys.find(e=>e>=o.weekday()+1)||n.dys[0],o.clone().day(a-1).isBefore(o)&&o.add(1,"weeks").day(a-1);else if(!n.weekly){a=n.dts.find(e=>e>=o.date())||n.dts[0];const e=o.clone().daysInMonth();a>e&&(a=e);const t=o.clone().date(a);o.clone().date(a).isBefore(o)?o.add(1,"month").date(a):o=t}const l=o;let c=!1,u=!0;for(;l.isBefore(s)&&!c;
1)((n.weekly?n.dys:n.dts)||[]).forEach(i=>{if(u&&i<a)return;const o=l.clone();if(n.weekly)o.day(i-1);else{const e=o.daysInMonth();i>e&&(i=e),o.date(i)}o.isAfter(r)?c=!0:t.push({item:e,schedule:n,dueOn:o})}),u=!1,l.add(i,n.weekly?"weeks":"months")}else{const i=n.onDate.clone().startOf("day");if(i.isAfter(r))return;t.push({item:e,schedule:n,dueOn:i})}}),t=t.sort((e,t)=>e.dueOn.isBefore(t.dueOn)?-1:t.dueOn.isBefore(e.dueOn)?1:0);let n=1;for(const r of t){const e=r.item.del&&r.item.del.indexOf(n)>-1,t=r.item.res&&r.item.res.indexOf(n)>-1;if(!e&&!t){const e=this.getEventFromItem(r.item,r.schedule,n,r.dueOn);i.push(e)}n++}}),i=i.sort((e,t)=>{var n,i,r,o;return e.payOn.isBefore(t.payOn)?-1:t.payOn.isBefore(e.payOn)?1:e.sort<t.sort?-1:t.sort<e.sort?1:"E"===e.item.category.typ?-1:"I"===t.item.category.typ?1:((null===(n=e.change)||void 0===n?void 0:n.nm)||e.item.nm)<((null===(i=t.change)||void 0===i?void 0:i.nm)||t.item.nm)?-1:((null===(r=t.change)||void 0===r?void 0:r.nm)||t.item.nm)<((null===(o=e.change)||void 0===o?void 0:o.nm)||e.item.nm)?1:0});const o=[];let s=null;const a=[],l=this.data.ui.settings;this.data.accounts.forEach(e=>a.push(100*(e.bal||0)));let c="",u="";if(i.forEach(e=>{var t,n,i;const r=100*(null!=(n=null===(t=e.change)||void 0===t?void 0:t.amt)?n:e.amt||0),d=this.data.accounts.findIndex(t=>t.id===e.account.id);if(a[d]+="I"===e.category.typ?1*r:-1*r,e.totals=[...a],null===(i=l)||void 0===i?void 0:i.plnHd){let t;switch(l.plnHd){case Yr.Month:const n=(e.payOn||e.dueOn).clone().startOf("month");c=`Start of Month: ${n.format("MMM Do YYYY")}`,u=n.format("MMMDDYYYY"),t=n;break;case Yr.Week:const i=(e.payOn||e.dueOn).clone().startOf("week");c=`Start of Week: ${i.format("MMM Do YYYY")}`,u=i.format("MMMDDYYYY"),t=i;break;case Yr.PayPeriod:if("I"===e.category.typ){const n=(e.payOn||e.dueOn).clone();c=`Start of Pay Period: ${n.format("ddd, MMM D YYYY")}`,u=n.format("MMMDDYYYY"),t=n}}if(c&&(!s||s.nm!==c)){s&&(s.diff=s.inc+s.exp);const e={id:u,header:!0,nm:c,payOn:t,sort:0,inc:0,exp:0,diff:0};o.push(e),s=e}s&&("I"===e.item.category.typ?s.inc+=1*r:s.exp+=-1*r),o.push(e)}}),this.data.itemEvents=(null===(t=l)||void 0===t?void 0:t.plnHd)?o:i,(null===(n=l)||void 0===n?void 0:n.plnHd)&&this.itemEvents$.next(this.data.itemEvents.filter(e=>!e.header)),this.itemEvents$.next(this.data.itemEvents),this.data.selectedItemEvent){const e=this.data.itemEvents.find(e=>e.id===this.data.selectedItemEvent.id);this.selectedItemEvent$.next(this.data.selectedItemEvent=e)}}resetItemEvents(){this.itemEvents$.next(this.data.itemEvents=[])}get changes(){return this.changes$.asObservable()}getCountOfItemChanges(e){var t,n;let i=0;const r=this.data.items.find(t=>t.id===e);return r&&((null===(t=r.res)||void 0===t?void 0:t.length)&&(i+=r.res.length),(null===(n=r.del)||void 0===n?void 0:n.length)&&(i+=r.del.length),i+=this.data.changes.filter(t=>t.itemId===e).length),i}get changesCollectionPath(){return`users/${this.data.user.id}/budgets/${this.data.selectedBudget.id}/changes`}getChangesCollection(){return this.changesCollection||(this.changesCollection=this.afs.collection(this.changesCollectionPath)),this.changesCollection}loadChanges(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.changesSub)||void 0===e||e.unsubscribe(),this.changesSub=this.getChangesCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){for(const t of e)t.pay&&(t.payOn=Vr(t.pay),delete t.pay),t.pd&&(t.pdOn=Vr(t.pd));this.changes$.next(this.data.changes=e.sort((e,t)=>e.sort-t.sort)),this.loadCounter++,this.runCalculations()})))}))}createOrPatchChanges(e){var t,n;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const i=this.afs.firestore.batch();for(const r of e){r.id||(r.id=this.afs.createId()),r.pay=null===(t=r.payOn)||void 0===t?void 0:t.toISOString(),delete r.payOn,r.pd=null===(n=r.pdOn)||void 0===n?void 0:n.toISOString(),delete r.pdOn,this.deleteEmptyFields(r);const e=this.getChangesCollection().doc(r.id);i.set(e.ref,r)}yield i.commit()}))}createOrPatchChangeFromEvent(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.getChangeFromEvent(e);t&&("R"!==t.sts?("p"===t.sts&&(t.pdOn||(t.pdOn=Vr())),yield this.createOrPatchChanges([t])):yield this.resolveItemEvent(e))}))}changeItemEventSort(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const n=this.data.itemEvents.indexOf(e);if(n===t)return;const i=e.change||{id:this.afs.createId(),budgetId:this.data.selectedBudget.id,itemId:e.item.id,pos:e.pos};t<n?yield this.moveItemEventUp(e,t,i):yield this.moveItemEventDown(e,t,i)}))}
1moveItemEventUp(e,t,n){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const i=this.data.itemEvents[t],r=[];n.payOn=i.header?i.payOn.clone().subtract(1,"day"):i.payOn,n.sort=i.sort-1;let o=n.sort;for(let e=t-1;e>=0;e--){const t=this.data.itemEvents[e];if(t.header)continue;if(!t.payOn.isSame(n.payOn))break;if(o-=1,t.sort<=o){o=t.sort;continue}const i=t.change||{id:this.afs.createId(),budgetId:this.data.selectedBudget.id,itemId:t.item.id,pos:t.pos};i.sort=t.sort=o,r.push(i)}0===r.length&&e.payOn.toString()===n.payOn.toString()&&e.sort===n.sort?this.runCalculations():(e.payOn=n.payOn,e.sort=n.sort,r.push(n),yield this.createOrPatchChanges(r))}))}moveItemEventDown(e,t,n){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const i=this.data.itemEvents[t],r=[];n.payOn=i.payOn.clone(),n.sort=i.sort+1;let o=n.sort;for(let e=t+1;e<this.data.itemEvents.length;e++){const t=this.data.itemEvents[e];if(t.header)continue;if(!t.payOn.isSame(n.payOn))break;if(o+=1,t.sort>=o){o=t.sort;continue}const i=t.change||{id:this.afs.createId(),budgetId:this.data.selectedBudget.id,itemId:t.item.id,pos:t.pos};i.sort=t.sort=o,r.push(i)}0===r.length&&e.payOn.toString()===n.payOn.toString()&&e.sort===n.sort?this.runCalculations():(e.payOn=n.payOn,e.sort=n.sort,r.push(n),yield this.createOrPatchChanges(r))}))}changeItemEventStatus(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){e.sts=t,e.pdOn=Vr(),this.createOrPatchChangeFromEvent(e)}))}resetEventChanges(){var e;null===(e=this.changesSub)||void 0===e||e.unsubscribe(),this.changesCollection=null,this.changes$.next(this.data.changes=[])}get historyCollectionPath(){return`users/${this.data.user.id}/budgets/${this.data.selectedBudget.id}/history`}getHistoryCollection(){return this.historyCollection||(this.historyCollection=this.afs.collection(this.historyCollectionPath,this.historySearchText?e=>e.where("sts","==","R").where("fullTextIndex","array-contains",this.historySearchText.toLowerCase()).orderBy("dt","desc").limit(this.historyItemRowCount):e=>e.where("sts","==","R").orderBy("dt","desc").limit(this.historyItemRowCount))),this.historyCollection}searchHistory(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.resetHistory(),yield this.loadHistoryItems()}))}changeHistoryRowCount(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.historyItemRowCount=e,yield this.searchHistory()}))}clearHistorySearch(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.historySearchText="",yield this.searchHistory()}))}get historyItems(){return this.historyItems$.asObservable()}buildFullTextIndex(e){const t=(e||"").replace(/\s\s+/g," ").trim().toLowerCase(),n=[];let i=0;for(;i<t.length;){if(" "!==t.substring(i,i+1))for(let e=1;e<=t.length-i;e++)n.push(t.substring(i,i+e));i++}return Array.from(new Set(n))}createHistoryItem(e,t,n){var i,r,o,s;const a=e.item,l=e.change,c=e.schedule,u=`${e.nm} (${e.pos})`,d={id:this.afs.createId(),sts:n?"D":"R",dt:Vr().toISOString(),bgtId:a.bgt,itmId:a.id,pos:e.pos,nm:u,amt:Number(e.amt),due:e.dueOn.toISOString(),pd:null===(i=l)||void 0===i?void 0:i.pd,schAmt:Number(c.amt),schRep:c.rep,schEvy:c.evy,schWeekly:c.weekly,schDts:c.dts&&c.dts.join(","),schDys:c.dys&&c.dys.join(","),schBeg:null===(r=c.begDate)||void 0===r?void 0:r.toISOString(),schOn:null===(o=c.onDate)||void 0===o?void 0:o.toISOString(),schHasEnd:c.hasEnd,schEnd:null===(s=c.endDate)||void 0===s?void 0:s.toISOString(),actId:e.account.id,actNm:e.account.nm,actClr:e.account.clr,actBg:e.account.bg,actIcn:e.account.icn,catId:e.category.id,catTyp:e.category.typ,catNm:e.category.nm,catClr:e.category.clr,catBg:e.category.bg,catIcn:e.category.icn,fullTextIndex:this.buildFullTextIndex(u)},h=this.getHistoryCollection().doc(d.id);t.set(h.ref,this.deleteEmptyFields(d))}loadHistoryItems(){var e;return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){null===(e=this.historyItemsSub)||void 0===e||e.unsubscribe(),this.historyItemsSub=this.getHistoryCollection().valueChanges().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(this.historyItems$.next(this.data.historyItems=e),this.data.selectedHistoryItem){const t=e.find(e=>e.id===this.data.selectedHistoryItem.id);this.selectedHistoryItem$.next(this.data.selectedHistoryItem=t)}else this.data.historyItems.length&&this.selectedHistoryItem$.next(this.data.selectedHistoryItem=this.data.historyItems[0])})))}))}selectHistoryItem(e){const t=e&&this.data.historyItems.find(t=>
1t.id===e);t&&this.selectedHistoryItem$.next(this.data.selectedHistoryItem=t)}get selectedHistoryItem(){return this.selectedHistoryItem$.asObservable()}resetHistory(){var e;null===(e=this.historyItemsSub)||void 0===e||e.unsubscribe(),this.historyCollection=null,this.selectedHistoryItem$.next(this.data.selectedHistoryItem=null),this.historyItems$.next(this.data.historyItems=[])}getItemEventsExportData(e){const t=this.data.accounts,n=[];for(const i of this.data.itemEvents){if(i.header)continue;const r={};for(const n of e){if(!n.headerName)continue;const e=n.headerName,o=i[n.field];switch(n.field){case"amt":let n=Number(o);"E"===i.category.typ&&(n*=-1),r[e]=n;break;case"dueOn":case"payOn":r[e]=Vr(o).format("MM/DD/YYYY");break;case"sts":r[e]="p"===o?"Paid":"Scheduled";break;case"totals":for(let e=0;e<t.length;e++)r[t[e].nm]=(new Br).transform(o[e]);break;default:r[e]=o}}n.push(r)}return n}deleteEmptyFields(e){return Object.keys(e).forEach(t=>null==e[t]&&delete e[t]),e}unsubscribeAll(){var e,t,n,i,r,o,s;null===(e=this.userSub)||void 0===e||e.unsubscribe(),null===(t=this.settingsSub)||void 0===t||t.unsubscribe(),null===(n=this.budgetsSub)||void 0===n||n.unsubscribe(),null===(i=this.accountsSub)||void 0===i||i.unsubscribe(),null===(r=this.categoriesSub)||void 0===r||r.unsubscribe(),null===(o=this.itemsSub)||void 0===o||o.unsubscribe(),null===(s=this.changesSub)||void 0===s||s.unsubscribe(),this.user$.next(null),this.ui$.next({}),this.changes$.next([]),this.selectedItem$.next(null),this.items$.next([]),this.selectedCategory$.next(null),this.categories$.next([]),this.selectedCategoryIndex$.next(0),this.selectedAccount$.next(null),this.accounts$.next([]),this.selectedItemEvent$.next(null),this.itemEvents$.next([]),this.dashboardData$.next(null),this.selectedBudget$.next(null),this.budgets$.next([])}ngOnDestroy(){this.unsubscribeAll()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](zo),r["\u0275\u0275inject"](qo))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function $o(e){return null!=e&&"false"!==`${e}`}function Qo(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function Xo(e){return Array.isArray(e)?e:[e]}function Jo(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Zo(e){return e instanceof r.ElementRef?e.nativeElement:e}function es(e,t,n,i){return Object(Ut.a)(n)&&(i=n,n=void 0),i?es(e,t,n).pipe(Object(it.a)(e=>Object(Ke.a)(e)?i(...e):i(e))):new ze.a(i=>{!function e(t,n,i,r,o){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,i,o),s=()=>e.removeEventListener(n,i,o)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,i),s=()=>e.off(n,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,i),s=()=>e.removeListener(n,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s<a;s++)e(t[s],n,i,r,o)}r.add(s)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)})}var ts=n("VRyK");function ns(e,t){return n=>n.lift(new is(e,t))}class is{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new rs(e,this.compare,this.keySelector))}}class rs extends st.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}class os{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new ss(e,this.durationSelector))}}class ss extends $e.a{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;
1n=t(e)}catch(t){return this.destination.error(t)}const i=Object(Qe.a)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}notifyNext(e,t,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function as(e=0,t,n){let i=-1;return wo(t)?i=Number(t)<1?1:Number(t):Object(je.a)(t)&&(n=t),Object(je.a)(n)||(n=qr),new ze.a(t=>{const r=wo(e)?e:+e-n.now();return n.schedule(ls,r,{index:0,period:i,subscriber:t})})}function ls(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function cs(e,t=qr){return n=()=>as(e,t),function(e){return e.lift(new os(n))};var n}function us(e){return t=>t.lift(new ds(e))}class ds{constructor(e){this.notifier=e}call(e,t){const n=new hs(e),i=Object(Qe.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class hs extends $e.a{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,i,r){this.seenValue=!0,this.complete()}notifyComplete(){}}let ps;n("Ylt2");try{ps="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(JI){ps=!1}let fs,ms=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ie(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!ps)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.PLATFORM_ID,8))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(r.PLATFORM_ID,8))},token:e,providedIn:"root"}),e})(),gs=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();const ys=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vs(){if(fs)return fs;if("object"!=typeof document||!document)return fs=new Set(ys),fs;let e=document.createElement("input");return fs=new Set(ys.filter(t=>(e.setAttribute("type",t),e.type===t))),fs}let _s;function bs(e){return function(){if(null==_s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>_s=!0}))}finally{_s=_s||!1}return _s}()?e:!!e.capture}const ws=new r.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(r.inject)(l)}});let Cs=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new r.EventEmitter,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ws,8))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(ws,8))},token:e,providedIn:"root"}),e})(),Es=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();class Ss{constructor(e=!1,t,n=!0){this._multiple=e,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ge.a,t&&t.length&&(e?t.forEach(e
1=>this._markSelected(e)):this._markSelected(t[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...e){this._verifyValueAssignment(e),e.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...e){this._verifyValueAssignment(e),e.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(e){this.isSelected(e)?this.deselect(e):this.select(e)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(e){return this._selection.has(e)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){if(e.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let Ds=(()=>{class e{constructor(){this._listeners=[]}notify(e,t){for(let n of this._listeners)n(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})(),xs=(()=>{class e{constructor(e,t){this._ngZone=e,this._platform=t,this._scrolled=new Ge.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ze.a(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(cs(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ye()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(at(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_scrollableContainsElement(e,t){let n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>es(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](ms))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(ms))},token:e,providedIn:"root"}),e})(),Ts=(()=>{class e{constructor(e,t){this._platform=e,t.runOutsideAngular(()=>{this._change=e.isBrowser?Object(ts.a)(es(window,"resize"),es(window,"orientationchange")):Ye(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();
1return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cs(e)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ms),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(ms),Object(r["\u0275\u0275inject"])(r.NgZone))},token:e,providedIn:"root"}),e})(),Os=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Es,gs],Es]}),e})();function ks(){throw Error("Host already has a portal attached")}class Is{attach(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&ks(),this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Rs extends Is{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class Ms extends Is{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class As extends Is{constructor(e){super(),this.element=e instanceof r.ElementRef?e.nativeElement:e}}class Ps{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ks(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof Rs?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ms?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof As?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ls extends Ps{constructor(e,t,n,i,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);
1return n.detectChanges(),n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Ns=(()=>{class e extends Ms{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.ViewContainerRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Fs=(()=>{class e extends Ps{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new r.EventEmitter,this.attachDomPortal=e=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](l))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),js=(()=>{class e extends Fs{}return e.\u0275fac=function(t){return Vs(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:Fs,useExisting:e}]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Vs=r["\u0275\u0275getInheritedFactory"](js);let Hs=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();class Ys{constructor(e,t){this._parentInjector=e,this._customTokens=t}get(e,t){const n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}function Bs(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class Gs{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Jo(-this._previousScrollPosition.left),e.style.top=Jo(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}function Ws(){return Error("Scroll strategy has already been attached.")}class Us{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler
1=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){if(this._overlayRef)throw Ws();this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class zs{enable(){}disable(){}attach(){}}function qs(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function Ks(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class $s{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){if(this._overlayRef)throw Ws();this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();qs(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Qs=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new zs,this.close=e=>new Us(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new Gs(this._viewportRuler,this._document),this.reposition=e=>new $s(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](xs),r["\u0275\u0275inject"](Ts),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(xs),Object(r["\u0275\u0275inject"])(Ts),Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();class Xs{constructor(e){if(this.scrollStrategy=new zs,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class Js{constructor(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class Zs{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}function ea(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". `+'Expected "top", "bottom" or "center".')}function ta(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". `+'Expected "start", "end" or "center".')}let na=(()=>{class e{constructor(e){this._attachedOverlays=[],this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEventSubscriptions>0){t[n]._keydownEvents.next(e);break}},this._document=e}ngOnDestroy(){this._detach()}add(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._key
1downListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();const ia=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let ra=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||ia){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),ia?t.setAttribute("platform","test"):e||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](ms))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(l),Object(r["\u0275\u0275inject"])(ms))},token:e,providedIn:"root"}),e})();class oa{constructor(e,t,n,i,r,o,s,a){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=a,this._backdropElement=null,this._backdropClick=new Ge.a,this._attachments=new Ge.a,this._detachments=new Ge.a,this._locationChanges=$t.a.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEventsObservable=new ze.a(e=>{const t=this._keydownEvents.subscribe(e);return this._keydownEventSubscriptions++,()=>{t.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Ge.a,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}
1keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Jo(this._config.width),e.height=Jo(this._config.height),e.minWidth=Jo(this._config.minWidth),e.minHeight=Jo(this._config.minHeight),e.maxWidth=Jo(this._config.maxWidth),e.maxHeight=Jo(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;Xo(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.asObservable().pipe(us(Object(ts.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}class sa{constructor(e,t,n,i,r){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ge.a,this._resizeSubscription=$t.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");
1this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let r;for(let o of this._preferredPositions){let s=this._getOriginPoint(e,o),a=this._getOverlayPoint(s,t,o),l=this._getOverlayFit(a,t,n,o);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:o,origin:s,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:a,originPoint:s,position:o,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&aa(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,t,n,i){let{x:r,y:o}=e,s=this._getOffset(i,"x"),a=this._getOffset(i,"y");s&&(r+=s),a&&(o+=a);let l=0-o,c=o+t.height-n.height,u=this._subtractOverflows(t.width,0-r,r+t.width-n.width),d=this._subtractOverflows(t.height,l,c),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:u==t.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,r=n.right-t.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth,a=e.fitsInViewportHorizontally||null!=s&&s<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}
1_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(e.x+t.width-i.right,0),o=Math.max(e.y+t.height-i.bottom,0),s=Math.max(i.top-n.top-e.y,0),a=Math.max(i.left-n.left-e.x,0);let l=0,c=0;return l=t.width<=i.width?a||-r:e.x<this._viewportMargin?i.left-n.left-e.x:0,c=t.height<=i.height?s||-o:e.y<this._viewportMargin?i.top-n.top-e.y:0,this._previousPushAmount={x:l,y:c},{x:e.x+l,y:e.y+c}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new Zs(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let r,o,s,a,l,c;if("top"===t.overlayY)o=e.y,r=n.height-o+this._viewportMargin;else if("bottom"===t.overlayY)s=n.height-e.y+2*this._viewportMargin,r=n.height-s+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;r=2*t,o=e.y-t,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-i/2)}return{top:o,left:l,bottom:s,right:c,width:a,height:r}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Jo(n.height),i.top=Jo(n.top),i.bottom=Jo(n.bottom),i.width=Jo(n.width),i.left=Jo(n.left),i.right=Jo(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=Jo(e)),r&&(i.maxWidth=Jo(r))}this._lastBoundingBoxSize=n,aa(this._boundingBox.style,i)}_resetBoundingBoxStyles(){aa(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){aa(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();aa(n,this._getExactOverlayY(t,e,i)),aa(n,this._getExactOverlayX(t,e,i))}else n.position="static";let s="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Jo(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Jo(o.maxWidth):r&&(n.maxWidth="")),aa(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=`${this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)}px`:i.top=Jo(r.y),i}_getExactOverlayX(e,t,n){let i,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?r.right=`${this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)}px`:r.left=Jo(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ks(e,n),isOriginOutsideView:qs(e,n),isOverlayClipped:Ks(t,n),isOverlayOutsideView:qs(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>
1e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(e=>{ta("originX",e.originX),ea("originY",e.originY),ta("overlayX",e.overlayX),ea("overlayY",e.overlayY)})}_addPanelClasses(e){this._pane&&Xo(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof r.ElementRef)return e.nativeElement.getBoundingClientRect();if(e instanceof HTMLElement)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function aa(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}class la{constructor(e,t,n,i,r,o,s){this._preferredPositions=[],this._positionStrategy=new sa(n,i,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const r=new Js(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class ca{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}
1apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:o,maxHeight:s}=n,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let ua=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new ca}connectedTo(e,t,n){return new la(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new sa(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Ts),r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](ms),r["\u0275\u0275inject"](ra))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Ts),Object(r["\u0275\u0275inject"])(l),Object(r["\u0275\u0275inject"])(ms),Object(r["\u0275\u0275inject"])(ra))},token:e,providedIn:"root"}),e})(),da=0,ha=(()=>{class e{constructor(e,t,n,i,r,o,s,a,l,c){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=a,this._directionality=l,this._location=c}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Xs(e);return r.direction=r.direction||this._directionality.value,new oa(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id=`cdk-overlay-${da++}`,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(r.ApplicationRef)),new Ls(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Qs),r["\u0275\u0275inject"](ra),r["\u0275\u0275inject"](r.ComponentFactoryResolver),r["\u0275\u0275inject"](ua),r["\u0275\u0275inject"](na),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](Cs),r["\u0275\u0275inject"](E,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const pa=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fa=new r.InjectionToken("cdk-connected-overlay-scroll-strategy");let ma=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),ga=(()=>{class e{constructor(e,t,n,i,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=$t.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.attach=new r.EventEmitter,this.detach=new r.EventEmitter,this.overlayKeydown=new r.EventEmitter,this._templatePortal=new Ms(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$o(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$o(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$o(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$o(e)}get push(){return this._push}set push(e){this._push=$o(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=pa),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),27!==e.keyCode||Bs(e)||(e.preventDefault(),this._detachOverlay())})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Xs({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe(e=>this.positionChange.emit(e)),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ha),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](fa),r["\u0275\u0275directiveInject"](Cs,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[r["\u0275\u0275NgOnChangesFeature"]()]}),e})();const ya={provide:fa,deps:[ha],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let va=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[ha,ya],imports:[[Es,Hs,Os],Os]}),e})();function _a(e,t=qr){return n=>n.lift(new ba(e,t))}
1class ba{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new wa(e,this.dueTime,this.scheduler))}}class wa extends st.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ca,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Ca(e){e.debouncedNext()}let Ea=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Sa=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zo(e);return new ze.a(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ge.a,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream
1:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Ea))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Ea))},token:e,providedIn:"root"}),e})(),Da=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new r.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$o(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qo(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(_a(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Sa),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),xa=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Ea]}),e})();class Ta{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ge.a,this._typeaheadSubscription=$t.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ge.a,this.change=new Ge.a,e instanceof r.QueryList&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){if(this._items.length&&this._items.some(e=>"function"!=typeof e.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zt(e=>this._pressedLetters.push(e)),_a(e),at(()=>this._pressedLetters.length>0),Object(it.a)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,r=t[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}setActiveItem(e){const t=this._activeItemIndex;this.updateActiveItem(e),this._activeItemIndex!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Bs(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof r.QueryList?this._items.toArray():this._items}}class Oa extends Ta{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ka extends Ta{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let Ia=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(JI){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){const e=t&&t.nodeName.toLowerCase();if(-1===Ma(t))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===e)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),r=Ma(e);if(e.hasAttribute("contenteditable"))return-1!==r;if("iframe"===i)return!1;if("audio"===i){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}
1if("video"===i){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}isFocusable(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Ra(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ms))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(ms))},token:e,providedIn:"root"}),e})();function Ra(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ma(e){if(!Ra(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class Aa{constructor(e,t,n,i,r=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], `+`[cdkFocusRegion${e}], `+`[cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute(`cdk-focus-${e}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', `+`use 'cdkFocusRegion${e}' instead. The deprecated `+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute(`cdk-focus-region-${e}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', `+`use 'cdkFocusRegion${e}' instead. The deprecated attribute `+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),Object(r.isDevMode)()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(e)}}let Pa=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new Aa(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Ia),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Ia),Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})(),La=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=$o(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=$o(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Pa),r["\u0275\u0275directiveInject"](l))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),e})();const Na=new r.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Fa=new r.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ja=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,r;return 1===t.length&&"number"==typeof t[0]?r=t[0]:[i,r]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Na,8),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](Fa,8))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Na,8),Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(l),Object(r["\u0275\u0275inject"])(Fa,8))},token:e,providedIn:"root"}),e})(),Va=(()=>{class e{constructor(e,t,n,i){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=n,this._ngZone=i,this._politeness="off"}get politeness(){return this._politeness}set politeness(e){this._politeness="polite"===e||"assertive"===e?e:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const e=this._elementRef.nativeElement.textContent;e!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(e,this._politeness),this._previousAnnouncedText=e)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](ja),r["\u0275\u0275directiveInject"](Sa),r["\u0275\u0275directiveInject"](r.NgZone))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),e})();const Ha=bs({passive:!0,capture:!0});let Ya=(()=>{class e{constructor(e,t){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=e=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=e.composedPath?e.composedPath()[0]:e.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(e,t=!1){if(!this._platform.isBrowser)return Ye(null);const n=Zo(e);if(this._elementInfo.has(n)){let e=this._elementInfo.get(n);return e.checkChildren=t,e.subject.asObservable()}let i={unlisten:()=>{}
1,checkChildren:t,subject:new Ge.a};this._elementInfo.set(n,i),this._incrementMonitoredElementCount();let r=e=>this._onFocus(e,n),o=e=>this._onBlur(e,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",r,!0),n.addEventListener("blur",o,!0)}),i.unlisten=()=>{n.removeEventListener("focus",r,!0),n.removeEventListener("blur",o,!0)},i.subject.asObservable()}stopMonitoring(e){const t=Zo(e),n=this._elementInfo.get(t);n&&(n.unlisten(),n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}focusVia(e,t,n){const i=Zo(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_setClasses(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(e){let t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);if(!n||!n.checkChildren&&t!==e.target)return;let i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,Ha),document.addEventListener("mousedown",this._documentMousedownListener,Ha),document.addEventListener("touchstart",this._documentTouchstartListener,Ha),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Ha),document.removeEventListener("mousedown",this._documentMousedownListener,Ha),document.removeEventListener("touchstart",this._documentTouchstartListener,Ha),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](ms))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(ms))},token:e,providedIn:"root"}),e})(),Ba=(()=>{class e{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new r.EventEmitter,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>this.cdkFocusChange.emit(e))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Ya))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e})();function Ga(e){return 0===e.buttons}let Wa=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=(this._document.defaultView.getComputedStyle(e).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}
1_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ms),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(ms),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})(),Ua=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](Wa))},imports:[[ne,gs,xa]]}),e})();const za=new r.Version("9.0.0");class qa{}function Ka(e,t){return{type:7,name:e,definitions:t,options:{}}}function $a(e,t=null){return{type:4,styles:t,timings:e}}function Qa(e,t=null){return{type:3,steps:e,options:t}}function Xa(e,t=null){return{type:2,steps:e,options:t}}function Ja(e){return{type:6,styles:e,offset:null}}function Za(e,t,n){return{type:0,name:e,styles:t,options:n}}function el(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function tl(e=null){return{type:9,options:e}}function nl(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function il(e){Promise.resolve(null).then(e)}class rl{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){il(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ol{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const r=this.players.length;0==r?il(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;
1this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function sl(){return"undefined"!=typeof process}function al(e){switch(e.length){case 0:return new rl;case 1:return e[0];default:return new ol(e)}}function ll(e,t,n,i,r={},o={}){const s=[],a=[];let l=-1,c=null;if(i.forEach(e=>{const n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach(n=>{let i=n,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),a){case"!":a=r[n];break;case"*":a=o[n];break;default:a=t.normalizeStyleValue(n,i,a,s)}u[i]=a}),i||a.push(u),c=u,l=n}),s.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${s.join(e)}`)}return a}function cl(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&ul(n,"start",e)));break;case"done":e.onDone(()=>i(n&&ul(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&ul(n,"destroy",e)))}}function ul(e,t,n){const i=n.totalTime,r=dl(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function dl(e,t,n,i,r="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function hl(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function pl(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let fl=(e,t)=>!1,ml=(e,t)=>!1,gl=(e,t,n)=>[];const yl=sl();(yl||"undefined"!=typeof Element)&&(fl=(e,t)=>e.contains(t),ml=(()=>{if(yl||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):ml}})(),gl=(e,t,n)=>{let i=[];if(n)i.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&i.push(n)}return i});let vl=null,_l=!1;function bl(e){vl||(vl=("undefined"!=typeof document?document.body:null)||{},_l=!!vl.style&&"WebkitAppearance"in vl.style);let t=!0;return vl.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in vl.style,!t&&_l)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in vl.style),t}const wl=ml,Cl=fl,El=gl;function Sl(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Dl=(()=>{class e{validateStyleProperty(e){return bl(e)}matchesElement(e,t){return wl(e,t)}containsElement(e,t){return Cl(e,t)}query(e,t,n){return El(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,o=[],s){return new rl(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),xl=(()=>{class e{}return e.NOOP=new Dl,e})();function Tl(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ol(parseFloat(t[1]),t[2])}function Ol(e,t){switch(t){case"s":return 1e3*e;default:return e}}function kl(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=Ol(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(r=Ol(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else i=e;if(!n){let n=!1,o=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:o}}(e,t,n)}function Il(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Rl(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Il(e,n);return n}function Ml(e,t,n){return n?t+":"+n+";":""}function Al(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=Ml(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Ml(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Pl(e,t,n){e.style&&(Object.keys(t).forEach(i=>
1{const r=Bl(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),sl()&&Al(e))}function Ll(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Bl(t);e.style[n]=""}),sl()&&Al(e))}function Nl(e){return Array.isArray(e)?1==e.length?e[0]:Xa(e):e}const Fl=new RegExp("{{\\s*(.+?)\\s*}}","g");function jl(e){let t=[];if("string"==typeof e){let n;for(;n=Fl.exec(e);)t.push(n[1]);Fl.lastIndex=0}return t}function Vl(e,t,n){const i=e.toString(),r=i.replace(Fl,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?e:r}function Hl(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Yl=/-+([a-z0-9])/g;function Bl(e){return e.replace(Yl,(...e)=>e[1].toUpperCase())}function Gl(e,t){return 0===e||0===t}function Wl(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let o=t[0],s=[];if(i.forEach(e=>{o.hasOwnProperty(e)||s.push(e),o[e]=n[e]}),s.length)for(var r=1;r<t.length;r++){let n=t[r];s.forEach((function(t){n[t]=zl(e,t)}))}}return t}function Ul(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function zl(e,t){return window.getComputedStyle(e)[t]}function ql(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],o=i[2],s=i[3];t.push(Ql(r,s)),"<"!=o[0]||"*"==r&&"*"==s||t.push(Ql(s,r))}(e,n,t)):n.push(e),n}const Kl=new Set(["true","1"]),$l=new Set(["false","0"]);function Ql(e,t){const n=Kl.has(e)||$l.has(e),i=Kl.has(t)||$l.has(t);return(r,o)=>{let s="*"==e||e==r,a="*"==t||t==o;return!s&&n&&"boolean"==typeof r&&(s=r?Kl.has(e):$l.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?Kl.has(t):$l.has(t)),s&&a}}const Xl=new RegExp("s*:selfs*,?","g");function Jl(e,t,n){return new Zl(e).build(t,n)}class Zl{constructor(e){this._driver=e}build(e,t){const n=new ec(t);return this._resetContextStyleTimingState(n),Ul(this,Nl(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,o.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach(e=>{if(tc(e)){const t=e;Object.keys(t).forEach(e=>{jl(t[e]).forEach(e=>{o.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Hl(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Ul(this,Nl(e.animation),t);return{type:1,matchers:ql(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:nc(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Ul(this,e,t)),options:nc(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Ul(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:nc(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ic(kl(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ic(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||kl(i,t),ic(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Ja({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=Ja(e)}t.currentTime+=n.duration+n.delay;const s=this.visitStyle(r,t);s.isEmptyStep=o,i=s}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);
1return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(tc(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=jl(e);r.length&&r.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let o=!1,s=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(tc(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(tc(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),s=s||c<0||c>1,o=o||c<a,a=c,r.push(c),n});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const d=c-1,h=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,i)=>{const o=u>0?i==d?1:u*i:r[i],s=o*f;t.currentTime=h+p.delay+s,p.duration=s,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Ul(this,Nl(e.animation),t),options:nc(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:nc(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:nc(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Xl,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,hl(t.collectedStyles,t.currentQuerySelector,{});const s=Ul(this,Nl(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:nc(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:kl(e.timings,t.errors,!0);return{type:12,animation:Ul(this,Nl(e.animation),t),timings:n,options:null}}}class ec{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function tc(e){return!Array.isArray(e)&&"object"==typeof e}function nc(e){var t;return e?(e=Il(e)).params&&(e.params=(t=e.params)?Il(t):null):e={},e}function ic(e,t,n){return{duration:e,delay:t,easing:n}}function rc(e,t,n,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class oc{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const sc=new RegExp(":enter","g"),ac=new RegExp(":leave","g");function lc(e,t,n,i,r,o={},s={},a,l,c=[]){return(new cc).buildKeyframes(e,t,n,i,r,o,s,a,l,c)}class cc{buildKeyframes(e,t,n,i,r,o,s,a,l,c=[]){l=l||new oc;const u=new dc(e,t,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),Ul(this,n,u);const d=u.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(s).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([s],null,u.errors,a)}return d.length?d.map(e=>e.buildKeyframes()):[rc(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}
vendor: 3,154 bytes, line 1
1visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?Tl(n.duration):null,o=null!=n.delay?Tl(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Ul(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=uc);const e=Tl(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Ul(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Tl(e.options.delay):0;e.steps.forEach(o=>{const s=t.createSubContext(e.options);r&&s.delayNextStep(r),Ul(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return kl(t.params?Vl(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Tl(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=uc);let o=n;const s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;let a=null;
1s.forEach((n,i)=>{t.currentQueryIndex=i;const s=t.createSubContext(e.options,n);r&&s.delayNextStep(r),n===t.element&&(a=s.currentTimeline),Ul(this,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),s=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Ul(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const uc={};class dc{constructor(e,t,n,i,r,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new hc(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=Tl(n.duration)),null!=n.delay&&(i.delay=Tl(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Vl(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new dc(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=uc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new pc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,o){let s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(sc,"."+this._enterClassName)).replace(ac,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),s.push(...t)}return r||0!=s.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),s}}class hc{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pe
1ndingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new hc(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},o=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]="*"})):Rl(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=Vl(o[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}
1applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const s=Rl(r,!0);Object.keys(s).forEach(n=>{const i=s[n];"!"==i?e.add(n):"*"==i&&t.add(n)}),n||(s.offset=o/this.duration),i.push(s)});const r=e.size?Hl(e.values()):[],o=t.size?Hl(t.values()):[];if(n){const e=i[0],t=Il(e);e.offset=0,t.offset=1,i=[e,t]}return rc(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class pc extends hc{constructor(e,t,n,i,r,o,s=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=n+t,s=t/o,a=Rl(e[0],!1);a.offset=0,r.push(a);const l=Rl(e[0],!1);l.offset=fc(s),r.push(l);const c=e.length-1;for(let i=1;i<=c;i++){let s=Rl(e[i],!1);s.offset=fc((t+s.offset*n)/o),r.push(s)}n=o,t=0,i="",e=r}return rc(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function fc(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class mc{}class gc extends mc{normalizePropertyName(e,t){return Bl(e)}normalizeStyleValue(e,t,n,i){let r="";const o=n.toString().trim();if(yc[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+r}}const yc=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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".split(",")))();function vc(e,t,n,i,r,o,s,a,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const _c={};class bc{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}build(e,t,n,i,r,o,s,a,l,c){const u=[],d=this.ast.options&&this.ast.options.params||_c,h=this.buildStyles(n,s&&s.params||_c,u),p=a&&a.params||_c,f=this.buildStyles(i,p,u),m=new Set,g=new Map,y=new Map,v="void"===i,_={params:Object.assign(Object.assign({},d),p)},b=c?[]:lc(e,t,this.ast.animation,r,o,h,f,_,l,u);let w=0;if(b.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return vc(t,this._triggerName,n,i,v,h,f,[],[],g,y,w,u);b.forEach(e=>{const n=e.element,i=hl(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=hl(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=Hl(m.values());return vc(t,this._triggerName,n,i,v,h,f,b,C,g,y,w)}}class wc{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Il(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}
1),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let o=r[e];o.length>1&&(o=Vl(o,i,t)),n[e]=o})}}),n}}class Cc{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new wc(e.style,e.options&&e.options.params||{})}),Ec(this.states,"true","1"),Ec(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new bc(e,t,this.states))}),this.fallbackTransition=new bc(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ec(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Sc=new oc;class Dc{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=Jl(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=ll(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let o;const s=new Map;if(r?(o=lc(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Sc,i),o.forEach(e=>{const t=hl(s,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);s.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=al(o.map(e=>{const t=s.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const r=dl(t,"","","");return cl(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const xc=[],Tc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class kc{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=Il(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Ic=new kc("void");class Rc{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,jc(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const o=hl(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);const a=hl(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(jc(e,"ng-trigger"),jc(e,"ng-trigger-"+t),a[t]=Ic),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(s);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),o=new Ac(this.id,t,e);let s=this._engine.statesByElement.get(e);s||(jc(e,"ng-trigger"),jc(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));let a=s[t];const l=new kc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[t]=l,a||(a=Ic),"void"!==l.value&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Ll(e,n),Pl(e,i)})}return}const c=hl(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:d}),d||(jc(e,"ng-animate-queued"),o.onStart(()=>{Vc(e,"ng-animate-queued")})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const o=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&al(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,o=this._engine.statesByElement.get(e)[i]||Ic,s=new kc("void"),a=new Ac(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:s,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Tc||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){jc(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(t=>{if(t.name==n.triggerName){const i=dl(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,cl(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>
1{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Mc{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Rc(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(Pc(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Pc(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),jc(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Vc(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(Pc(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return Pc(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);
1t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return al(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Tc,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)jc(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?al(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new oc,i=[],r=new Map,o=[],s=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),h=Fc(d,this.collectedEnterElements),p=new Map;let f=0;h.forEach((e,t)=>{const n="ng-enter"+f++;p.set(t,n),e.forEach(e=>jc(e,n))});const m=[],g=new Set,y=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const e=this.collectedLeaveElements[I],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):y.add(e))}const v=new Map,_=Fc(d,Array.from(g));_.forEach((e,t)=>{const n="ng-leave"+f++;v.set(t,n),e.forEach(e=>jc(e,n))}),e.push(()=>{h.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Vc(e,n))}),_.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>Vc(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const b=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(b.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),d=v.get(r),h=p.get(r),f=this._buildInstruction(e,n,h,d,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>Ll(r,f.fromStyles)),t.onDestroy(()=>Pl(r,f.toStyles)),void i.push(t)):e.isFallbackTransition?(t.onStart(()=>Ll(r,f.fromStyles)),t.onDestroy(()=>Pl(r,f.toStyles)),void i.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>hl(s,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))}));w.push(f)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),b.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,E=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}
vendor: 1,103 bytes, line 1
1),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{hl(C,t,[]).push(e),e.destroy()})});const S=m.filter(e=>Yc(e,a,l)),D=new Map;Nc(D,this.driver,y,l,"*").forEach(e=>{Yc(e,a,l)&&S.push(e)});const x=new Map;h.forEach((e,t)=>{Nc(x,this.driver,new Set(e),a,"!")}),S.forEach(e=>{const t=D.get(e),n=x.get(e);D.set(e,Object.assign(Object.assign({},t),n))});const T=[],O=[],k={};o.forEach(e=>{const{element:t,player:o,instruction:s}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>Pl(t,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);let e=k;if(E.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>E.set(t,e))}const n=this._buildAnimation(o.namespaceId,s,C,r,x,D);if(o.setRealPlayer(n),e===k)T.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=al(t)),i.push(o)}}else Ll(t,s.fromStyles),o.onDestroy(()=>Pl(t,s.toStyles)),O.push(o),c.has(t)&&i.push(o)}),O.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=al(t);e.setRealPlayer(n)}}
1),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let I=0;I<m.length;I++){const e=m[I],t=e.__ng_removed;if(Vc(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(s.size){let t=s.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,".ng-animating",!0);for(let e=0;e<i.length;e++){let t=s.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Hc(this,e,i):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&o.push(t)})}}return(n||i)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const s of t.timelines){const e=s.element,a=e!==i,l=hl(n,e,[]);this._getPreviousPlayers(e,a,r,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Ll(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,o){const s=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,d=t.timelines.map(t=>{const d=t.element;c.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new rl(t.duration,t.delay);const p=d!==a,f=function(e){const t=[];return function e(t,n){for(let i=0;i<t.length;i++){const r=t[i];r instanceof ol?e(r.players,n):n.push(r)}}(e,t),t}((n.get(d)||xc).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===d),m=r.get(d),g=o.get(d),y=ll(0,this._normalizer,0,t.keyframes,m,g),v=this._buildPlayer(t,y,f);if(t.subTimeline&&i&&u.add(d),p){const t=new Ac(e,s,d);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{hl(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>jc(e,"ng-animating"));const h=al(d);return h.onDestroy(()=>{c.forEach(e=>Vc(e,"ng-animating")),Pl(a,t.toStyles)}),u.forEach(e=>{hl(i,e,[]).push(h)}),h}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new rl(e.duration,e.delay)}}class Ac{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new rl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
1h(t=>{this._queuedCallbacks[t].forEach(n=>cl(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){hl(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Pc(e){return e&&1===e.nodeType}function Lc(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Nc(e,t,n,i,r){const o=[];n.forEach(e=>o.push(Lc(e)));const s=[];i.forEach((n,i)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Oc,s.push(i))}),e.set(i,o)});let a=0;return n.forEach(e=>Lc(e,o[a++])),s}function Fc(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let o=r.get(t);if(o)return o;const s=t.parentNode;return o=n.has(s)?s:i.has(s)?1:e(s),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}function jc(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Vc(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Hc(e,t,n){al(n).onDone(()=>e.processLeaveNode(t))}function Yc(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class Bc{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Mc(e,t,n),this._timelineEngine=new Dc(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const o=e+"-"+i;let s=this._triggerCache[o];if(!s){const e=[],t=Jl(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);s=function(e,t){return new Cc(e,t)}(i,t),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,i,s)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=pl(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=pl(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Gc(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Uc(t[0]),t.length>1&&(i=Uc(t[t.length-1]))):t&&(n=Uc(t)),n||i?new Wc(e,n,i):null}let Wc=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Pl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pl(this._element,this._initialStyles),this._endStyles&&(Pl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Ll(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ll(this._element,this._endStyles),this._endStyles=null),Pl(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Uc(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];zc(r)&&(t=t||{},t[r]=e[r])}return t}function zc(e){return"display"===e||"position"===e}class qc{constructor(e,t,n,i,r,o,s){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e
1=>this._handleCallback(e)}apply(){!function(e,t){const n=Zc(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),Jc(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Xc(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Kc(this._element,this._name,"paused")}resume(){Kc(this._element,this._name,"running")}setPosition(e){const t=$c(this._element,this._name);this._position=e*this._duration,Jc(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xc(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Zc(e,"").split(","),i=Qc(n,t);i>=0&&(n.splice(i,1),Jc(e,"",n.join(",")))}(this._element,this._name))}}function Kc(e,t,n){Jc(e,"PlayState",n,$c(e,t))}function $c(e,t){const n=Zc(e,"");return n.indexOf(",")>0?Qc(n.split(","),t):Qc([n],t)}function Qc(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Xc(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Jc(e,t,n,i){const r="animation"+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function Zc(e,t){return e.style["animation"+t]}class eu{constructor(e,t,n,i,r,o,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new qc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:zl(this.element,n))})}this.currentSnapshot=e}}class tu extends rl{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Sl(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e
1=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class nu{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return bl(e)}matchesElement(e,t){return wl(e,t)}containsElement(e,t){return Cl(e,t)}query(e,t,n){return El(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Sl(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const o=document.createElement("style");return o.innerHTML=i,o}animate(e,t,n,i,r,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(e=>e instanceof eu),l={};Gl(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Wl(e,t,l));if(0==n)return new tu(e,c);const u=`gen_css_kf_${this._count++}`,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=Gc(e,t),p=new eu(e,t,u,n,i,r,c,h);return p.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class iu{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:zl(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ru{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ou().toString()),this._cssKeyframesDriver=new nu}validateStyleProperty(e){return bl(e)}matchesElement(e,t){return wl(e,t)}containsElement(e,t){return Cl(e,t)}query(e,t,n){return El(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=o.filter(e=>e instanceof iu);
1Gl(n,i)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Gc(e,t=Wl(e,t=t.map(e=>Rl(e,!1)),l));return new iu(e,t,a,u)}}function ou(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let su=(()=>{class e extends qa{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Xa(e):e;return cu(this._renderer,null,t,"register",[n]),new au(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.RendererFactory2),r["\u0275\u0275inject"](l))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class au extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new lu(this._id,e,t||{},this._renderer)}}class lu{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return cu(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function cu(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}let uu=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new du("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(i,r,e,t.name,t)};return t.data.animation.forEach(o),new hu(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.RendererFactory2),r["\u0275\u0275inject"](Bc),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class du{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}
1listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class hu extends du{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let pu=(()=>{class e extends Bc{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](xl),r["\u0275\u0275inject"](mc))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const fu=new r.InjectionToken("AnimationModuleType"),mu=[{provide:xl,useFactory:function(){return"function"==typeof ou()?new ru:new nu}},{provide:fu,useValue:"BrowserAnimations"},{provide:qa,useClass:su},{provide:mc,useFactory:function(){return new gc}},{provide:Bc,useClass:pu},{provide:r.RendererFactory2,useFactory:function(e,t,n){return new uu(e,t,n)},deps:[Ce,Bc,r.NgZone]}];let gu=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:mu,imports:[Fe]}),e})();const yu=["*",[["mat-option"],["ng-container"]]],vu=["*","mat-option, ng-container"];function _u(e,t){if(1&e&&r["\u0275\u0275element"](0,"mat-pseudo-checkbox",3),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const bu=["*"],wu=new r.Version("9.0.0"),Cu=new r.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Eu=(()=>{class e{constructor(e,t){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checksAreEnabled(){return Object(r.isDevMode)()&&!this._isTestEnv()}_isTestEnv(){const e=this._window;return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle))return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wu.full!==za.full&&console.warn("The Angular Material version ("+wu.full+") does not match the Angular CDK version ("+za.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](Wa),r["\u0275\u0275inject"](Cu,8))},imports:[[Es],Es]}),e})();function Su(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=$o(e)}}}function Du(e,t){return class extends e{constructor(...e){super(...e),this.color=t}
1get color(){return this._color}set color(e){const n=e||t;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function xu(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$o(e)}}}function Tu(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?e:t}}}function Ou(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new Ge.a}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}const ku=new r.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(r.inject)(r.LOCALE_ID)}});class Iu{constructor(){this._localeChanges=new Ge.a}get localeChanges(){return this._localeChanges}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}clampDate(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}const Ru=new r.InjectionToken("mat-date-formats");let Mu;try{Mu="undefined"!=typeof Intl}catch(JI){Mu=!1}let Au=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Pu=function(){var e={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return e[e.FADING_IN]="FADING_IN",e[e.VISIBLE]="VISIBLE",e[e.FADING_OUT]="FADING_OUT",e[e.HIDDEN]="HIDDEN",e}();class Lu{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=Pu.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const Nu={enterDuration:450,exitDuration:400},Fu=bs({passive:!0});class ju{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=e=>{const t=Ga(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))},this._onTouchStart=e=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(e.state===Pu.VISIBLE||e.config.terminateOnPointerUp&&e.state===Pu.FADING_IN)&&e.fadeOut()}))},i.isBrowser&&(this._containerElement=Zo(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Nu),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const o=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,i),s=e-i.left,a=t-i.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${s-o}px`,c.style.top=`${a-o}px`,c.style.height=`${2*o}px`,c.style.width=`${2*o}px`,null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new Lu(this,c,n);return u.state=Pu.FADING_IN,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const e=u===this._mostRecentTransientRipple;u.state=Pu.VISIBLE,n.persistent||e&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(e){const t=this._activeRipples.delete(e);
1if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign(Object.assign({},Nu),e.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",e.state=Pu.FADING_OUT,this._runTimeoutOutsideZone(()=>{e.state=Pu.HIDDEN,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=Zo(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((e,n)=>{t.addEventListener(n,e,Fu)})}),this._triggerElement=t)}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((e,t)=>{this._triggerElement.removeEventListener(t,e,Fu)})}}const Vu=new r.InjectionToken("mat-ripple-global-options");let Hu=(()=>{class e{constructor(e,t,n,i,r){this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new ju(this,t,e,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](ms),r["\u0275\u0275directiveInject"](Vu,8),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e})(),Yu=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Eu,gs],Eu]}),e})(),Bu=(()=>{class e{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](fu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e})(),Gu=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})();class Wu{}const Uu=Su(Wu);let zu=0,qu=(()=>{class e extends Uu{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${zu++}`}}return e.\u0275fac=function(t){return Ku(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(r["\u0275\u0275attribute"]("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),r["\u0275\u0275classProp"]("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:vu,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](yu),r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275projection"](3,1)),2&e&&(r["\u0275\u0275property"]("id",t._labelId),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();
1const Ku=r["\u0275\u0275getInheritedFactory"](qu);let $u=0;class Qu{constructor(e,t=!1){this.source=e,this.isUserInput=t}}const Xu=new r.InjectionToken("MAT_OPTION_PARENT_COMPONENT");let Ju=(()=>{class e{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${$u++}`,this.onSelectionChange=new r.EventEmitter,this._stateChanges=new Ge.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=$o(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||Bs(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Qu(this,e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Xu,8),r["\u0275\u0275directiveInject"](qu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option"],hostVars:12,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("click",(function(e){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(r["\u0275\u0275hostProperty"]("id",t.id),r["\u0275\u0275attribute"]("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),r["\u0275\u0275classProp"]("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:bu,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275template"](0,_u,1,2,"mat-pseudo-checkbox",0),r["\u0275\u0275elementStart"](1,"span",1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"div",2)),2&e&&(r["\u0275\u0275property"]("ngIf",t.multiple),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Y,Hu,Bu],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e})();function Zu(e,t,n){if(n.length){let i=t.toArray(),r=n.toArray(),o=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===r[o]&&o++;return o}return 0}let ed=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Yu,ne,Gu]]}),e})();const td=new r.InjectionToken("mat-label-global-options");
1function nd(e,t){}class id{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const rd={dialogContainer:Ka("dialogContainer",[Za("void, exit",Ja({opacity:0,transform:"scale(0.7)"})),Za("enter",Ja({transform:"none"})),el("* => enter",$a("150ms cubic-bezier(0, 0, 0.2, 1)",Ja({transform:"none",opacity:1}))),el("* => void, * => exit",$a("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ja({opacity:0})))])};function od(){throw Error("Attempting to attach dialog content after content is already attached")}let sd=(()=>{class e extends Ps{constructor(e,t,n,i,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=o,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new r.EventEmitter,this.attachDomPortal=e=>(this._portalOutlet.hasAttached()&&od(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=i}attachComponentPortal(e){return this._portalOutlet.hasAttached()&&od(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached()&&od(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Pa),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](l,8),r["\u0275\u0275directiveInject"](id))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275staticViewQuery"](Fs,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&r["\u0275\u0275componentHostSyntheticListener"]("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(r["\u0275\u0275attribute"]("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),r["\u0275\u0275updateSyntheticHostBinding"]("@dialogContainer",t._state))},features:[r["\u0275\u0275InheritDefinitionFeature"]],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&r["\u0275\u0275template"](0,nd,0,0,"ng-template",0)},directives:[Fs],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rd.dialogContainer]}}),e})(),ad=0;class ld{constructor(e,t,n=`mat-dialog-${ad++}`){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ge.a,this._afterClosed=new Ge.a,this._beforeClosed=new Ge.a,this._state=0,t._id=n,t._animationStateChanged.pipe(at(e=>
1"done"===e.phaseName&&"enter"===e.toState),Tt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(at(e=>"done"===e.phaseName&&"exit"===e.toState),Tt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(at(e=>27===e.keyCode&&!this.disableClose&&!Bs(e))).subscribe(e=>{e.preventDefault(),this.close()})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(at(e=>"start"===e.phaseName),Tt(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},t.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const cd=new r.InjectionToken("MatDialogData"),ud=new r.InjectionToken("mat-dialog-default-options"),dd=new r.InjectionToken("mat-dialog-scroll-strategy"),hd={provide:dd,deps:[ha],useFactory:function(e){return()=>e.scrollStrategies.block()}};let pd=(()=>{class e{constructor(e,t,n,i,r,o,s){this._overlay=e,this._injector=t,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ge.a,this._afterOpenedAtThisLevel=new Ge.a,this._ariaHiddenElements=new Map,this.afterAllClosed=nt(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(jt(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}open(e,t){if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new id)).id&&this.getDialogById(t.id))throw Error(`Dialog with id "${t.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Xs({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=new Ys(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[id,t]])),i=new Rs(sd,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const o=new ld(n,t,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe(()=>{o.disableClose||o.close()}),e instanceof r.TemplateRef)t.attachTemplatePortal(new Ms(e,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,t),r=t.attachComponentPortal(new Rs(e,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=new WeakMap([[sd,n],[cd,e.data],[ld,t]]);return!e.direction||i&&i.get(Cs,null)||r.set(Cs,{value:e.direction,change:Ye()}),new Ys(i||this._injector,r)}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ha),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](E,8),r["\u0275\u0275inject"](ud,8),r["\u0275\u0275inject"](dd),r["\u0275\u0275inject"](e,12),r["\u0275\u0275inject"](ra))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),fd=0,md=(()=>{class e{constructor(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id=`mat-dialog-title-${fd++}`}ngOnInit(){this._dialogRef||(this._dialogRef=function(e,t){let n=e.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(e=>e.id===n.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ld,8),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](pd))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275hostProperty"]("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e})(),gd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e})(),yd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e})(),vd=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[pd,hd],imports:[[ne,va,Hs,Eu],Eu]}),e})();class _d{static validate(e,t=!1,n=!1){return this.validateFormGroup(e.form,t,n)}static logValidationErrors(e){var t="";Object.keys(e.controls).forEach(n=>{var i=e.get(n);if(i&&i.errors){const e=i.errors;null!=e&&Object.keys(e).forEach(r=>{t+=`\nName: ${n}\nIs Invalid: ${i.invalid}\nIs Dirty: ${i.dirty}\nIs Touched: ${i.touched}\nError Key: ${r}\nError Value: ${e[r]}\nErrors: ${JSON.stringify(i.errors)}\n`})}}),t&&(console.log("### Begin Form Errors ###"),console.log(t),console.log("### End Form Errors ###"))}static isFormValid(e){var t=!0;return Object.keys(e.controls).forEach(n=>{var i=e.controls[n];i.controls||(i.markAsTouched(),i.markAsDirty(),i.updateValueAndValidity({onlySelf:!0}),i.disabled||i.valid||(t=!1))}),t}static isFormEmpty(e){var t=!0,n=e.value;return Object.keys(n).forEach(i=>{n[i]&&!e.controls[i].disabled&&(t=!1)}),t}static validateFormGroup(e,t=!1,n=!1){var i=this.isFormValid(e),r=!0;return Object.keys(e.controls).forEach(i=>{var o=e.controls[i];if(o.controls){var s=o;this.validateFormGroup(s,t,n)||t&&this.isFormEmpty(s)?(s.clearValidators(),s.markAsPristine({onlySelf:!0}),s.markAsUntouched({onlySelf:!0})):r=!1}}),!(!i||!r)||(n&&this.logValidationErrors(e),!1)}}function bd(e){let t="";return e&&(t=e.toLocaleString("en-US",{maximumFractionDigits:2,minimumFractionDigits:2}).replace(",","")),t}var wd=n("XoHu");function Cd(...e){if(1===e.length){const t=e[0];if(Object(Ke.a)(t))return Ed(t,null);if(Object(wd.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Ed(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Ed(e=1===e.length&&Object(Ke.a)(e[0])?e[0]:e,null).pipe(Object(it.a)(e=>t(...e)))}return Ed(e,null)}function Ed(e,t){return new ze.a(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a<i;a++){const l=Object(Be.a)(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,s++),r[a]=e},error:e=>n.error(e),complete:()=>
1{o++,o!==i&&c||(s===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}const Sd=new r.InjectionToken("NgValueAccessor"),Dd={provide:Sd,useExisting:Object(r.forwardRef)(()=>xd),multi:!0};let xd=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(e){return t.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([Dd])]}),e})();const Td={provide:Sd,useExisting:Object(r.forwardRef)(()=>kd),multi:!0},Od=new r.InjectionToken("CompositionEventMode");let kd=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=a()?a().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Od,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(e){return t.onTouched()}))("compositionstart",(function(e){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[r["\u0275\u0275ProvidersFeature"]([Td])]}),e})(),Id=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),Rd=(()=>{class e extends Id{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return Md(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1const Md=r["\u0275\u0275getInheritedFactory"](Rd);function Ad(){throw new Error("unimplemented")}class Pd extends Id{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Ad()}get asyncValidator(){return Ad()}}class Ld{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Nd=(()=>{class e extends Ld{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Pd,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Fd=(()=>{class e extends Ld{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1function jd(e){return null==e||0===e.length}const Vd=new r.InjectionToken("NgValidators"),Hd=new r.InjectionToken("NgAsyncValidators"),Yd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Bd{static min(e){return t=>{if(jd(t.value)||jd(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(jd(t.value)||jd(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return jd(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return jd(e.value)?null:Yd.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(jd(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return Bd.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(jd(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Gd);return 0==t.length?null:function(e){return Ud(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(Gd);return 0==t.length?null:function(e){return Cd(function(e,t){return t.map(t=>t(e))}(e,t).map(Wd)).pipe(Object(it.a)(Ud))}}}function Gd(e){return null!=e}function Wd(e){const t=Object(r["\u0275isPromise"])(e)?Object(Be.a)(e):e;if(!Object(r["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Ud(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function zd(e){return e.validate?t=>e.validate(t):e}function qd(e){return e.validate?t=>e.validate(t):e}const Kd={provide:Sd,useExisting:Object(r.forwardRef)(()=>$d),multi:!0};let $d=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(e){return t.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([Kd])]}),e})();const Qd={provide:Sd,useExisting:Object(r.forwardRef)(()=>Jd),multi:!0};let Xd=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Jd=(()=>{class e{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Pd),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Xd),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange()}))("blur",(function(e){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([Qd])]}),e})();const Zd={provide:Sd,useExisting:Object(r.forwardRef)(()=>eh),multi:!0};let eh=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(e){return t.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([Zd])]}),e})();const th='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',nh='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',ih='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class rh{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\
1n\n      Example:\n\n      ${th}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${nh}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${ih}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ${th}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${nh}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(e){console.warn(`\n    It looks like you're using ngModel on the same form field as ${e}. \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"
1===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const oh={provide:Sd,useExisting:Object(r.forwardRef)(()=>sh),multi:!0};let sh=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r["\u0275looseIdentical"]}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(e){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([oh])]}),e})();const ah={provide:Sd,useExisting:Object(r.forwardRef)(()=>lh),multi:!0};let lh=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r["\u0275looseIdentical"]}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",(function(e){return t.onChange(e.target)}))("blur",(function(e){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([ah])]}),e})();function ch(e,t){return[...t.path,e]}function uh(e,t){e||fh(t,"Cannot find control with"),t.valueAccessor||fh(t,"No value accessor for form control with"),e.validator=Bd.compose([e.validator,t.validator]),e.asyncValidator=Bd.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&dh(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&dh(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}
1),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function dh(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hh(e,t){null==e&&fh(t,"Cannot find control with"),e.validator=Bd.compose([e.validator,t.validator]),e.asyncValidator=Bd.composeAsync([e.asyncValidator,t.asyncValidator])}function ph(e){return fh(e,"There is no FormControl instance attached to form control element with")}function fh(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function mh(e){return null!=e?Bd.compose(e.map(zd)):null}function gh(e){return null!=e?Bd.composeAsync(e.map(qd)):null}function yh(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object(r["\u0275looseIdentical"])(t,n.currentValue)}const vh=[xd,eh,$d,sh,lh,Jd];function _h(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function bh(e,t){if(!t)return null;Array.isArray(t)||fh(e,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,r=void 0;return t.forEach(t=>{var o;t.constructor===kd?n=t:(o=t,vh.some(e=>o.constructor===e)?(i&&fh(e,"More than one built-in value accessor matches form control with"),i=t):(r&&fh(e,"More than one custom value accessor matches form control with"),r=t))}),r||i||n||(fh(e,"No valid value accessor for form control with"),null)}function wh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ch(e){const t=Sh(e)?e.validators:e;return Array.isArray(t)?mh(t):t||null}function Eh(e,t){const n=Sh(t)?t.asyncValidators:e;return Array.isArray(n)?gh(n):n||null}function Sh(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Dh{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=Ch(e)}setAsyncValidators(e){this.asyncValidator=Eh(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
vendor: 4,295 bytes, line 1
1markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING";const t=Wd(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof Th?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Oh&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Sh(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class xh extends Dh{constructor(e=null,t,n){super(Ch(t),Eh(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateV
1alueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Th extends Dh{constructor(e,t,n){super(Ch(t),Eh(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof xh?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,i)=>{t=t||this.contains(i)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Oh extends Dh{constructor(e,t,n){super(Ch(t),Eh(n,t)),this.controls=e,this._initOb
1servables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof xh?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const kh={provide:Rd,useExisting:Object(r.forwardRef)(()=>Rh)},Ih=(()=>Promise.resolve(null))();let Rh=(()=>{class e extends Rd{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new Th({},mh(e),gh(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ih.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),uh(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}
1removeControl(e){Ih.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),wh(this._directives,e)})}addFormGroup(e){Ih.then(()=>{const t=this._findContainer(e.path),n=new Th({});hh(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ih.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ih.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_h(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",(function(e){return t.onSubmit(e)}))("reset",(function(e){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([kh]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Mh=(()=>{class e extends Rd{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ch(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return mh(this._validators)}get asyncValidator(){return gh(this._asyncValidators)}_checkParentType(){}}return e.\u0275fac=function(t){return Ah(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ah=r["\u0275\u0275getInheritedFactory"](Mh);class Ph{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${th}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${nh}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${ih}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${nh}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${ih}`)}}const Lh={provide:Rd,useExisting:Object(r.forwardRef)(()=>Nh)};let Nh=(()=>{class e extends Mh{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Rh||Ph.modelGroupParentException()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,5),r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Lh]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Fh={provide:Pd,useExisting:Object(r.forwardRef)(()=>Vh)},jh=(()=>Promise.resolve(null))();let Vh=(()=>{class e extends Pd{constructor(e,t,n,i){super(),this.control=new xh,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=bh(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),yh(e,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ch(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return mh(this._rawValidators)}get asyncValidator(){return gh(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){uh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Nh)&&this._parent instanceof Mh?Ph.formGroupNameException():this._parent instanceof Nh||this._parent instanceof Rh||Ph.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ph.missingNameException()}_updateValue(e){jh.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;jh.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,9),r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10),r["\u0275\u0275directiveInject"](Sd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Fh]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()]}),e})(),Hh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Yh=new r.InjectionToken("NgModelWithFormControlWarning"),Bh={provide:Rd,useExisting:Object(r.forwardRef)(()=>Gh)};let Gh=(()=>{class e extends Rd{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return uh(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
1removeControl(e){wh(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);hh(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);hh(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,_h(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){t.valueAccessor.registerOnChange(()=>ph(t)),t.valueAccessor.registerOnTouched(()=>ph(t)),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&uh(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=mh(this._validators);this.form.validator=Bd.compose([this.form.validator,e]);const t=gh(this._asyncValidators);this.form.asyncValidator=Bd.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||rh.missingFormException()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",(function(e){return t.onSubmit(e)}))("reset",(function(e){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Bh]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()]}),e})();const Wh={provide:Rd,useExisting:Object(r.forwardRef)(()=>Uh)};let Uh=(()=>{class e extends Mh{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){Kh(this._parent)&&rh.groupParentException()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,13),r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Wh]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const zh={provide:Rd,useExisting:Object(r.forwardRef)(()=>qh)};let qh=(()=>{class e extends Rd{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ch(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return mh(this._validators)}get asyncValidator(){return gh(this._asyncValidators)}_checkParentType(){Kh(this._parent)&&rh.arrayParentException()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,13),r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([zh]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Kh(e){return!(e instanceof Uh||e instanceof Gh||e instanceof qh)}const $h={provide:Pd,useExisting:Object(r.forwardRef)(()=>Qh)};let Qh=(()=>{class e extends Pd{constructor(e,t,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=bh(this,i)}set isDisabled(e){rh.disabledAttrWarning()}ngOnChanges(t){var n,i;this._added||this._setUpControl(),yh(t,this.viewModel)&&("formControlName",n=e,this,i=this._ngModelWarningConfig,Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||n._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(rh.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ch(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return mh(this._rawValidators)}get asyncValidator(){return gh(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Uh)&&this._parent instanceof Mh?rh.ngModelGroupException():this._parent instanceof Uh||this._parent instanceof Gh||this._parent instanceof qh||rh.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Rd,13),r["\u0275\u0275directiveInject"](Vd,10),r["\u0275\u0275directiveInject"](Hd,10),r["\u0275\u0275directiveInject"](Sd,10),r["\u0275\u0275directiveInject"](Yh,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([$h]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()]}),e._ngModelWarningSentOnce=!1,e})();const Xh={provide:Vd,useExisting:Object(r.forwardRef)(()=>Jh),multi:!0};let Jh=(()=>{class e{get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!==`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Bd.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([Xh])]}),e})();
1const Zh={provide:Vd,useExisting:Object(r.forwardRef)(()=>ep),multi:!0};let ep=(()=>{class e{ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Bd.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([Zh]),r["\u0275\u0275NgOnChangesFeature"]()]}),e})(),tp=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})(),np=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Th(n,{asyncValidators:r,updateOn:o,validators:i})}control(e,t,n){return new xh(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Oh(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof xh||e instanceof Th||e instanceof Oh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ip=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Xd],imports:[tp]}),e})(),rp=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Yh,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[np,Xd],imports:[tp]}),e})();const op=["underline"],sp=["connectionContainer"],ap=["inputContainer"],lp=["label"];function cp(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"div",14),r["\u0275\u0275element"](2,"div",15),r["\u0275\u0275element"](3,"div",16),r["\u0275\u0275element"](4,"div",17),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",18),r["\u0275\u0275element"](6,"div",15),r["\u0275\u0275element"](7,"div",16),r["\u0275\u0275element"](8,"div",17),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}function up(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",19),r["\u0275\u0275projection"](1,1),r["\u0275\u0275elementEnd"]())}function dp(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275projection"](1,2),r["\u0275\u0275elementStart"](2,"span"),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](e._control.placeholder)}}function hp(e,t){1&e&&r["\u0275\u0275projection"](0,3,["*ngSwitchCase","true"])}function pp(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"span",23),r["\u0275\u0275text"](1," *"),r["\u0275\u0275elementEnd"]())}function fp(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"label",20,21),r["\u0275\u0275listener"]("cdkObserveContent",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().updateOutlineGap()})),r["\u0275\u0275template"](2,dp,4,1,"ng-container",12),r["\u0275\u0275template"](3,hp,1,0,void 0,12),r["\u0275\u0275template"](4,pp,2,0,"span",22),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275classProp"]("mat-empty",e._control.empty&&!e._shouldAlwaysFloat)("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),r["\u0275\u0275property"]("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),r["\u0275\u0275attribute"]("for",e._control.id)("aria-owns",e._control.id),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngSwitchCase",!1),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase",!0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function mp(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",24),r["\u0275\u0275projection"](1,4),r["\u0275\u0275elementEnd"]())}function gp(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",25,26),r["\u0275\u0275element"](2,"span",27),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function yp(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275projection"](1,5),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("@transitionMessages",e._subscriptAnimationState)}}function vp(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",31),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("id",e._hintLabelId),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.hintLabel)}}function _p(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",28),r["\u0275\u0275template"](1,vp,2,2,"div",29),r["\u0275\u0275projection"](2,6),r["\u0275\u0275element"](3,"div",30),r["\u0275\u0275projection"](4,7),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("@transitionMessages",e._subscriptAnimationState),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.hintLabel)}}const bp=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wp=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Cp=0,Ep=(()=>{class e{constructor(){this.id=`mat-error-${Cp++}`}}
1return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("id",t.id)},inputs:{id:"id"}}),e})();const Sp={transitionMessages:Ka("transitionMessages",[Za("enter",Ja({opacity:1,transform:"translateY(0%)"})),el("void => enter",[Ja({opacity:0,transform:"translateY(-100%)"}),$a("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Dp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})();function xp(e){return Error(`A hint was already declared for 'align="${e}"'.`)}let Tp=0,Op=(()=>{class e{constructor(){this.align="start",this.id=`mat-hint-${Tp++}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(r["\u0275\u0275attribute"]("id",t.id)("align",null),r["\u0275\u0275classProp"]("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),e})(),kp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-label"]]}),e})(),Ip=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-placeholder"]]}),e})(),Rp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matPrefix",""]]}),e})(),Mp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matSuffix",""]]}),e})(),Ap=0;class Pp{constructor(e){this._elementRef=e}}const Lp=Du(Pp,"primary"),Np=new r.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Fp=(()=>{class e extends Lp{constructor(e,t,n,i,r,o,s,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=r,this._platform=o,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ge.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Ap++}`,this._labelId=`mat-form-field-label-${Ap++}`,this._labelOptions=n||{},this.floatLabel=this._labelOptions.float||"auto",this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$o(e)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(jt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(us(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(us(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(ts.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(us(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}
1ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,es(this._label.nativeElement,"transitionend").pipe(Tt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let e,t;this._hintChildren.forEach(n=>{if("start"===n.align){if(e||this.hintLabel)throw xp("start");e=n}else if("end"===n.align){if(t)throw xp("end");t=n}})}}_syncDescribedByIds(){if(this._control){let e=[];
1if("hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(r),s=this._getStartEnd(e.children[0].getBoundingClientRect());let a=0;for(const t of e.children)a+=t.offsetWidth;t=s-o-5,n=a>0?.75*a+10:0}for(let s=0;s<r.length;s++)r[s].style.width=`${t}px`;for(let s=0;s<o.length;s++)o[s].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](td,8),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](Np,8),r["\u0275\u0275directiveInject"](ms),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(r["\u0275\u0275contentQuery"](n,Dp,!0),r["\u0275\u0275staticContentQuery"](n,Dp,!0),r["\u0275\u0275contentQuery"](n,kp,!0),r["\u0275\u0275staticContentQuery"](n,kp,!0),r["\u0275\u0275contentQuery"](n,Ip,!0),r["\u0275\u0275contentQuery"](n,Ep,!0),r["\u0275\u0275contentQuery"](n,Op,!0),r["\u0275\u0275contentQuery"](n,Rp,!0),r["\u0275\u0275contentQuery"](n,Mp,!0)),2&e&&(r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._controlNonStatic=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._controlStatic=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._labelChildNonStatic=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._labelChildStatic=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._placeholderChild=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._errorChildren=i),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._hintChildren=i),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._prefixChildren=i),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](op,!0),r["\u0275\u0275staticViewQuery"](sp,!0),r["\u0275\u0275viewQuery"](ap,!0),r["\u0275\u0275viewQuery"](lp,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.underlineRef=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._connectionContainerRef=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._inputContainerRef=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat)("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:wp,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](bp),r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1,2),r["\u0275\u0275listener"]("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),r["\u0275\u0275template"](3,cp,9,0,"ng-container",3),r["\u0275\u0275template"](4,up,2,0,"div",4),r["\u0275\u0275elementStart"](5,"div",5,6),r["\u0275\u0275projection"](7),r["\u0275\u0275elementStart"](8,"span",7),r["\u0275\u0275template"](9,fp,5,16,"label",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,mp,2,0,"div",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](11,gp,3,4,"div",10),r["\u0275\u0275elementStart"](12,"div",11),r["\u0275\u0275template"](13,yp,2,1,"div",12),r["\u0275\u0275template"](14,_p,5,2,"div",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf","outline"==t.appearance),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t._prefixChildren.length),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngIf",t._hasFloatingLabel()),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t._suffixChildren.length),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","outline"!=t.appearance),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitch",t._getDisplayedMessages()),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase","error"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase","hint"))}
1,directives:[Y,U,z,Da],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px
1)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Sp.transitionMessages]},changeDetection:0}),e})(),jp=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne,xa]]}),e})();const Vp=bs({passive:!0});let Hp=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return et;const t=Zo(e),n=this._monitoredElements.get(t);if(n)return n.subject.asObservable();const i=new Ge.a,r="cdk-text-field-autofilled",o=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>i.next({target:e.target,isAutofilled:!1}))):(t.classList.add(r),this._ngZone.run(()=>i.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,Vp),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:i,unlisten:()=>{t.removeEventListener("animationstart",o,Vp)}}),i.asObservable()}stopMonitoring(e){const t=Zo(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}
1ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ms),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(ms),Object(r["\u0275\u0275inject"])(r.NgZone))},token:e,providedIn:"root"}),e})(),Yp=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[gs]]}),e})();const Bp=new r.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),Gp=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Wp=0;class Up{constructor(e,t,n,i){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=i}}const zp=Ou(Up);let qp=(()=>{class e extends zp{constructor(e,t,n,i,r,o,s,a,l){super(o,i,r,n),this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=a,this._uid=`mat-input-${Wp++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Ge.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>vs().has(e));const c=this._elementRef.nativeElement;this._inputValueAccessor=s||c,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=$o(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=$o(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&vs().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=$o(e)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){if(Gp.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m
1s),r["\u0275\u0275directiveInject"](Pd,10),r["\u0275\u0275directiveInject"](Rh,8),r["\u0275\u0275directiveInject"](Gh,8),r["\u0275\u0275directiveInject"](Au),r["\u0275\u0275directiveInject"](Bp,10),r["\u0275\u0275directiveInject"](Hp),r["\u0275\u0275directiveInject"](r.NgZone))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("blur",(function(e){return t._focusChanged(!1)}))("focus",(function(e){return t._focusChanged(!0)}))("input",(function(e){return t._onInput()})),2&e&&(r["\u0275\u0275hostProperty"]("disabled",t.disabled)("required",t.required),r["\u0275\u0275attribute"]("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),r["\u0275\u0275classProp"]("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:Dp,useExisting:e}]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()]}),e})(),Kp=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Au],imports:[[ne,Yp,jp],Yp,jp]}),e})();const $p={provide:Vd,useExisting:Object(r.forwardRef)(()=>Qp),multi:!0};let Qp=(()=>{class e{set money(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){const t=(e&&e.value||"").toString().trim();return this._enabled?!t||/^-?\d{1,9}(\.\d{2})?$/.test(t)?null:{money:"Examples: 100 or 100.10"}:null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","money","","formControlName",""],["","money","","formControl",""],["","money","","ngModel",""]],inputs:{money:"money"},features:[r["\u0275\u0275ProvidersFeature"]([$p])]}),e})();const Xp={provide:r.APP_BOOTSTRAP_LISTENER,useFactory:function(e,t){return()=>{if(ie(t)){const t=Array.from(e.querySelectorAll(`[class*=${Jp}]`)),n=/\bflex-layout-.+?\b/g;t.forEach(e=>{e.classList.contains(`${Jp}ssr`)&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(n,"")})}}},deps:[l,r.PLATFORM_ID],multi:!0},Jp="flex-layout-";let Zp=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Xp]}),e})();class ef{constructor(e=!1,t="all",n="",i="",r=0){this.matches=e,this.mediaQuery=t,this.mqAlias=n,this.suffix=i,this.priority=r,this.property=""}clone(){return new ef(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let tf=(()=>{class e{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,n){const i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const n=this.stylesheet.get(e);let i="";if(n){const e=n.get(t);"number"!=typeof e&&"string"!=typeof e||(i=e+"")}return i}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();const nf={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},rf=new r.InjectionToken("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>nf}),of=new r.InjectionToken("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),sf=new r.InjectionToken("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function af(e,t){return e=e?e.clone():new ef,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}const lf=["row","column","row-reverse","column-reverse"];function cf(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}let uf=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.styleBuilder=t,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={}
1,this.destroySubject=new Ge.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const n=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const n=this.styleBuilder,i=n.shouldCache;let r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[n,i]=this.styler.getFlowDirection(e);if(!i&&t){const t=function(e){let[t,n,i]=function(e){e=e?e.toLowerCase():"";let[t,n,i]=e.split(" ");return lf.find(e=>e===t)||(t=lf[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[t,cf(n),!!i]}(e);return function(e,t=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(t,n,i)}(n);this.styler.applyStyleToElements(t,[e])}return n.trim()}return"row"}applyStyleToElement(e,t,n=this.nativeElement){this.styler.applyStyleToElement(n,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.addStyles(e)}}return e.\u0275fac=function(e){r["\u0275\u0275invalidFactory"]()},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275NgOnChangesFeature"]()]}),e})();const df=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],hf="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",pf="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",ff="(orientation: portrait) and (min-width: 840px)",mf="(orientation: landscape) and (min-width: 1280px)",gf={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:`${hf} , ${pf}`,WEB:`${ff}, ${mf} `,HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:`${hf} `,WEB_PORTRAIT:`${ff}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)]",TABLET_LANDSCAPE:`${pf}`,WEB_LANDSCAPE:`${mf}`},yf=[{alias:"handset",priority:2e3,mediaQuery:gf.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:gf.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:gf.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:gf.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:gf.TABLET},{alias:"tablet.portrait",priority:2100,mediaQuery:gf.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:gf.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:gf.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:gf.WEB_PORTRAIT,overlapping:!0}],vf=/(\.|-|_)/g;function _f(e){let t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}const bf=new r.InjectionToken("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const e=Object(r.inject)(sf),t=Object(r.inject)(rf),n=[].concat.apply([],(e||[]).map(e=>Array.isArray(e)?e:[e]));return function(e,t=[]){const n={};
1return e.forEach(e=>{n[e.alias]=e}),t.forEach(e=>{n[e.alias]?function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(let n of t)if(null!=n)for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t])}(n[e.alias],e):n[e.alias]=e}),(i=Object.keys(n).map(e=>n[e])).forEach(e=>{e.suffix||(e.suffix=e.alias.replace(vf,"|").split("|").map(_f).join(""),e.overlapping=!!e.overlapping)}),i;var i}((t.disableDefaultBps?[]:df).concat(t.addOrientationBps?yf:[]),n)}});function wf(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function Cf(e,t){return(e.priority||0)-(t.priority||0)}let Ef=(()=>{class e{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Cf)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias==e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery==e)}get overlappings(){return this.items.filter(e=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,t){let n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](bf))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(bf))},token:e,providedIn:"root"}),e})(),Sf=(()=>{class e{constructor(e,t,n){this._zone=e,this._platformId=t,this._document=n,this.source=new Ue(new ef(!0)),this.registry=new Map,this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,n)=>{t.matches&&e.push(n)}),e}isActive(e){const t=this.registry.get(e);return!!t&&t.matches}observe(e,t=!1){if(e&&e.length){const n=this._observable$.pipe(at(n=>!t||e.indexOf(n.mediaQuery)>-1)),i=new ze.a(t=>{const n=this.registerQuery(e);if(n.length){const e=n.pop();n.forEach(e=>{t.next(e)}),this.source.next(e)}t.complete()});return Object(ts.a)(i,n)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],n=[];return function(e,t){const n=e.filter(e=>!Df[e]);if(n.length>0){const e=n.join(", ");try{const i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(t.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${e} {.fx-query-test{ }}
1\n`)),t.head.appendChild(i),n.forEach(e=>Df[e]=i)}catch(i){console.error(i)}}}(t,this._document),t.forEach(e=>{let t=this.registry.get(e);t||(t=this.buildMQL(e),t.addListener(t=>{this._zone.run(()=>this.source.next(new ef(t.matches,e)))}),this.registry.set(e,t)),t.matches&&n.push(new ef(!0,e))}),n}buildMQL(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}(e,ie(this._platformId))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(r.PLATFORM_ID),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();const Df={},xf={alias:"print",mediaQuery:"print",priority:1e3};let Tf=(()=>{class e{constructor(e,t,n){this.breakpoints=e,this.layoutConfig=t,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.isPrinting=!1,this.queue=new Of,this.deactivations=[]}withPrintQuery(e){return[...e,"print"]}isPrintEvent(e){return e.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(wf)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),af(e,t)}registerBeforeAfterPrintHooks(e){this._document.defaultView&&!this.registeredBeforeAfterPrintHooks&&(this.registeredBeforeAfterPrintHooks=!0,this._document.defaultView.addEventListener("beforeprint",()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new ef(!0,"print"))),e.updateStyles())}),this._document.defaultView.addEventListener("afterprint",()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())}))}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):t.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(e),e.updateStyles()):this.collectActivations(t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(wf))}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Ef),r["\u0275\u0275inject"](rf),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Ef),Object(r["\u0275\u0275inject"])(rf),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();class Of{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(xf),e.sort(wf),e.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}function kf(e){for(let t in e){let n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}let If=(()=>{class e{constructor(e,t,n,i){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=n,this.layoutConfig=i}applyStyleToElement(e,t,n=null){let i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:kf(t),this._applyMultiValueStyleToElement(i,e)}applyStyleToElements(e,t=[]){const n=this.layoutConfig.disableVendorPrefixes?e:kf(e);
1t.forEach(e=>{this._applyMultiValueStyleToElement(n,e)})}getFlowDirection(e){let t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||re(this._platformId)&&this._serverModuleLoaded?t:""]}lookupAttributeValue(e,t){return e.getAttribute(t)||""}lookupInlineStyle(e,t){return ie(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}lookupStyle(e,t,n=!1){let i="";return e&&((i=this.lookupInlineStyle(e,t))||(ie(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(n=>{const i=e[n],r=Array.isArray(i)?i:[i];r.sort();for(let e of r)e=e?e+"":"",ie(this._platformId)||!this._serverModuleLoaded?ie(this._platformId)?t.style.setProperty(n,e):this._setServerStyle(t,n,e):this._serverStylesheet.addStyleToElement(t,n,e)})}_setServerStyle(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}_getServerStyle(e,t){return this._readStyleAttribute(e)[t]||""}_readStyleAttribute(e){const t={},n=e.getAttribute("style");if(n){const e=n.split(/;+/g);for(let n=0;n<e.length;n++){const i=e[n].trim();if(i.length>0){const e=i.indexOf(":");if(-1===e)throw new Error(`Invalid CSS style: ${i}`);t[i.substr(0,e).trim()]=i.substr(e+1).trim()}}}return t}_writeStyleAttribute(e,t){let n="";for(const i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](tf),r["\u0275\u0275inject"](of),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](rf))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(tf),Object(r["\u0275\u0275inject"])(of),Object(r["\u0275\u0275inject"])(r.PLATFORM_ID),Object(r["\u0275\u0275inject"])(rf))},token:e,providedIn:"root"}),e})();class Rf{constructor(){this.shouldCache=!0}sideEffect(e,t,n){}}function Mf(e,t="1",n="1"){let i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=Af(e.substring(r).trim());let t=e.substr(0,r).trim().split(" ");2==t.length&&(i[0]=t[0],i[1]=t[1])}else if(0==r)i[2]=Af(e.trim());else{let r=e.split(" ");i=3===r.length?r:[t,n,e]}return i}function Af(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Pf=(()=>{class e{constructor(e,t,n){this.matchMedia=e,this.breakpoints=t,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Ge.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);t&&((e=af(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(wf),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(wf),this.updateStyles()))}init(e,t,n,i,r=[]){Lf(this.updateMap,e,t,n),Lf(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}getValue(e,t,n){const i=this.elementMap.get(e);if(i){const e=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(e)return e.get(t)}}hasValue(e,t){const n=this.elementMap.get(e);if(n){const e=this.getActivatedValues(n,t);if(e)return void 0!==e.get(t)||!1}return!1}setValue(e,t,n,i){let r=this.elementMap.get(e);if(r){const o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe(at(n=>n.element===e&&n.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const n=new Set(this.elementKeyMap.get(t));let i=this.getActivatedValues(e);i&&i.forEach((e,i)=>{this.updateElement(t,i,e),n.delete(i)}
1),n.forEach(n=>{if(i=this.getActivatedValues(e,n),i){const e=i.get(n);this.updateElement(t,n,e)}else this.clearElement(t,n)})})}clearElement(e,t){const n=this.clearMap.get(e);if(n){const i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,n){const i=this.updateMap.get(e);if(i){const r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(e=>e.unsubscribe()),this.watcherMap.delete(e));const n=this.elementMap.get(e);n&&(n.forEach((e,t)=>n.delete(t)),this.elementMap.delete(e))}triggerUpdate(e,t){const n=this.elementMap.get(e);if(n){const i=this.getActivatedValues(n,t);i&&(t?this.updateElement(e,t,i.get(t)):i.forEach((t,n)=>this.updateElement(e,n,t)))}}buildElementKeyMap(e,t){let n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}watchExtraTriggers(e,t,n){if(n&&n.length){let i=this.watcherMap.get(e);if(i||(i=new Map,this.watcherMap.set(e,i)),!i.get(t)){const r=Object(ts.a)(...n).subscribe(()=>{const n=this.getValue(e,t);this.updateElement(e,t,n)});i.set(t,r)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let i=0;i<this.activatedBreakpoints.length;i++){const n=e.get(this.activatedBreakpoints[i].alias);if(n&&(void 0===t||n.has(t)))return n}const n=e.get("");return void 0===t||n&&n.has(t)?n:void 0}observeActivations(){const e=this.breakpoints.items.map(e=>e.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(zt(this.hook.interceptEvents(this)),at(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Sf),r["\u0275\u0275inject"](Ef),r["\u0275\u0275inject"](Tf))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Sf),Object(r["\u0275\u0275inject"])(Ef),Object(r["\u0275\u0275inject"])(Tf))},token:e,providedIn:"root"}),e})();function Lf(e,t,n,i){if(void 0!==i){let r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}let Nf=(()=>{class e extends uf{constructor(e,t,n,i,r,o,s){super(e,null,t,n),this.ngClassInstance=s,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new F(i,r,e,o)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](Pf),r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](F,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{klass:["class","klass"]},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Ff=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let jf=(()=>{class e extends Nf{constructor(){super(...arguments),this.inputs=Ff}}return e.\u0275fac=function(t){return Vf(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1const Vf=r["\u0275\u0275getInheritedFactory"](jf);class Hf{constructor(e,t,n=!0){this.key=e,this.value=t,this.key=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=this.value.replace(/;/,"")}}function Yf(e){let t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function Bf(e){const[t,...n]=e.split(":");return new Hf(t,n.join(":"))}function Gf(e,t){return t.key&&(e[t.key]=t.value),e}let Wf=(()=>{class e extends uf{constructor(e,t,n,i,r,o,s,a,l){super(e,null,t,n),this.sanitizer=i,this.ngStyleInstance=s,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new K(e,r,o)),this.init();const c=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(c),this.isServer=a&&re(l)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=e=>this.sanitizer.sanitize(r.SecurityContext.STYLE,e)||"";if(e)switch(Yf(e)){case"string":return Kf(function(e,t=";"){return String(e).trim().split(t).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return Kf(e,t);case"set":default:return function(e,t){let n=[];return"set"===Yf(e)?e.forEach(e=>n.push(e)):Object.keys(e).forEach(t=>{n.push(`${t}:${e[t]}`)}),function(e,t){return e.map(Bf).filter(e=>!!e).map(e=>(t&&(e.value=t(e.value)),e)).reduce(Gf,{})}(n,t)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](Pf),r["\u0275\u0275directiveInject"](Me),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](K,10),r["\u0275\u0275directiveInject"](of),r["\u0275\u0275directiveInject"](r.PLATFORM_ID))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Uf=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let zf=(()=>{class e extends Wf{constructor(){super(...arguments),this.inputs=Uf}}return e.\u0275fac=function(t){return qf(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const qf=r["\u0275\u0275getInheritedFactory"](zf);function Kf(e,t){return e.map(Bf).filter(e=>!!e).map(e=>(t&&(e.value=t(e.value)),e)).reduce(Gf,{})}let $f=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Zp]]}),e})();function Qf(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"a",8),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.$implicit;return r["\u0275\u0275nextContext"](2).changeIcon(i)})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit;r["\u0275\u0275classMap"]("square budget-icon icon-grid-item icon-"+e.icon),r["\u0275\u0275property"]("title",e.name)}}function Xf(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",5),r["\u0275\u0275elementStart"](1,"div",6),r["\u0275\u0275template"](2,Qf,1,3,"a",7),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",e.defaultIcons)}}const Jf=function(e,t,n){return{"background-color":e,color:t,border:n}};let Zf=(()=>{class e{constructor(){this.iconChanged=new r.EventEmitter,this.show=!1,this.selectedIcon=null,this.unselectedIcon={name:"Unselected",icon:"layout-none"},this.unselectedColor="#CCCCCC",this.unselectedBg="#FFFFFF",this.defaultIcons=[{name:"Layout none",icon:"layout-none"},{name:"Saving bank",icon:"saving-bank"},{name:"Saving piggy bank",icon:"saving-piggy-bank"},{name:"Business deal handshake",icon:"business-deal-handshake"},{name:"Family baby change diaper",icon:"family-baby-change-diaper"},{name:"Credit card",icon:"credit-card"},{name:"School building",icon:"school-building"},{name:"Show person",icon:"show-person"},{name:"Fitness weightlift",icon:"fitness-weightlift"},{name:"Dresser",icon:"dresser"},{name:"Gift box",icon:"gift-box"},{name:"Christmas bells",icon:"christmas-bells"},{name:"House",icon:"house"},{name:"Cash payment bag",icon:"cash-payment-bag-2"},{name:"Legal scale unequal",icon:"legal-scale-unequal"},{name:"Medical hospital",icon:"medical-hospital-1"},{name:"Cash payment bill",icon:"cash-payment-bill-3"},{name:"Shopping cart empty",icon:"shopping-cart-empty-1"},{name:"Screen",icon:"screen"},{name:"Cash payment person",icon:"cash-payment-person"},{name:"School teacher correct",icon:"school-teacher-correct"},{name:"Baggage plane",icon:"baggage-plane"},{name:"Light bulb",icon:"light-bulb-1"},{name:"Beach palm sunbed",icon:"beach-palm-sunbed"},{name:"Car repair fluid",icon:"car-repair-fluid-1"},{name:"Real estate action house dollar",icon:"real-estate-action-house-dollar"},{name:"Real estate action house download",icon:"real-estate-action-house-download"}
1,{name:"Real estate action house wrench",icon:"real-estate-action-house-wrench"},{name:"Real estate action house settings",icon:"real-estate-action-house-settings-1"},{name:"Sports car",icon:"sports-car-2"},{name:"Car sports",icon:"car-sports"},{name:"Car actions settings",icon:"car-actions-settings"},{name:"Bus",icon:"bus-2"},{name:"Gas",icon:"gas-f"},{name:"Car tool steering wheel",icon:"car-tool-steering-wheel"},{name:"Car repair fluid",icon:"car-repair-fluid"},{name:"Car repair tire",icon:"car-repair-tire"},{name:"Parking p",icon:"parking-p-1"},{name:"Vegetables plate",icon:"vegetables-plate"},{name:"Pets paw can",icon:"pets-paw-can"},{name:"Kitchenware ladle spaghetti",icon:"kitchenware-ladle-spaghetti"},{name:"Cleaning woman",icon:"cleaning-woman-1"},{name:"Toilet paper",icon:"toilet-paper"},{name:"Clean car charging cable",icon:"clean-car-charging-cable"},{name:"Water fountain drop",icon:"water-fountain-drop"},{name:"Bin alternate",icon:"bin-2-alternate"},{name:"Phone retro",icon:"phone-retro-1"},{name:"Movies home",icon:"movies-home"},{name:"Wifi monitor",icon:"wifi-monitor-1"},{name:"Shirt male",icon:"shirt-male"},{name:"Tux",icon:"tux"},{name:"Shirt plain",icon:"shirt-plain"},{name:"Medical personnel doctor",icon:"medical-personnel-doctor"},{name:"Dentistry tooth shield",icon:"dentistry-tooth-shield-1"},{name:"View",icon:"view-1"},{name:"Medical personnel hat",icon:"medical-personnel-hat"},{name:"Mortar pestle",icon:"mortar-pestle"},{name:"Disability wheelchair",icon:"disability-wheelchair"},{name:"Insurance hand",icon:"insurance-hand"},{name:"Insurance umbrella heart",icon:"insurance-umbrella-heart"},{name:"Gymnastics weightlifting",icon:"gymnastics-weightlifting"},{name:"Hair dress cut",icon:"hair-dress-cut"},{name:"Hair dress chair",icon:"hair-dress-chair-1"},{name:"Make up eye",icon:"make-up-eye"},{name:"Baby mother",icon:"baby-mother"},{name:"Lock unlock",icon:"lock-unlock"},{name:"Accounting document",icon:"accounting-document"},{name:"Credit card 1 alternate",icon:"credit-card-1-alternate"},{name:"Outdoors tree valley",icon:"outdoors-tree-valley"},{name:"Gold bars",icon:"gold-bars"},{name:"Saving bull increase",icon:"saving-bull-increase"},{name:"Single neutral actions graduate",icon:"single-neutral-actions-graduate"},{name:"People man graduate",icon:"people-man-graduate"},{name:"Book library",icon:"book-library"},{name:"Content notebook pencil",icon:"content-notebook-pencil"},{name:"Cash payment bag",icon:"cash-payment-bag-1"},{name:"Saving bank cash",icon:"saving-bank-cash"},{name:"Check payment sign",icon:"check-payment-sign"},{name:"Christmas bells",icon:"christmas-bells-1"},{name:"Cake birthday",icon:"cake-birthday"},{name:"Wedding bride groom",icon:"wedding-bride-groom"},{name:"Amusement park disneyland",icon:"amusement-park-disneyland"},{name:"Style three pin restaurant",icon:"style-three-pin-restaurant"},{name:"Controls movie play",icon:"controls-movie-play"},{name:"Concert couple duet",icon:"concert-couple-duet"},{name:"Beach parasol water",icon:"beach-parasol-water-1"},{name:"Fast food double burger",icon:"fast-food-double-burger"},{name:"Beer mug",icon:"beer-mug"},{name:"Cocktail martini",icon:"cocktail-martini"},{name:"Fruit apple",icon:"fruit-apple"},{name:"Fruit banana",icon:"fruit-banana-1"},{name:"Barbecue grill",icon:"barbecue-grill"},{name:"Asian food rice",icon:"asian-food-rice"},{name:"Seasoning chilli",icon:"seasoning-chilli"},{name:"Seafood crab",icon:"seafood-crab"},{name:"Chef gear hat moustache",icon:"chef-gear-hat-moustache"},{name:"Ice cream cone",icon:"ice-cream-cone"},{name:"Bed single",icon:"bed-single"},{name:"Asian interior bonsai tree",icon:"asian-interior-bonsai-tree-1"},{name:"Shelf books",icon:"shelf-books"},{name:"Chair director",icon:"chair-director"},{name:"Armchair",icon:"armchair"},{name:"Camera flash",icon:"camera-flash"},{name:"Music note",icon:"music-note-2"},{name:"Music clef sheet",icon:"music-clef-sheet"},{name:"Music book note",icon:"music-book-note"},{name:"Radio stereo",icon:"radio-stereo-1"},{name:"Equalizer stereo",icon:"equalizer-stereo"},{name:"Equalizer",icon:"equalizer-2"},{name:"CD play",icon:"cd-play"},{name:"Headphones cable",icon:"headphones-cable"},{name:"Microphone alternate",icon:"microphone-alternate"},{name:"Microphone karaoke",icon:"microphone-karaoke"},{name:"Microphone podcast laptop",icon:"microphone-podcast-laptop"},{name:"Instrument piano",icon:"instrument-piano"},{name:"Instrument trumpet",icon:"instrument-trumpet-1"},{name:"Instrument drums",icon:"instrument-drums"},{name:"Movies audience",icon:"movies-audience"},{name:"Movies set equipment",icon:"movies-set-equipment"},{name:"Modern tv flat screen",icon:"modern-tv-flat-screen"},{name:"Common file text star",icon:"common-file-text-star"},{name:"Common file text cash",icon:"common-file-text-cash"},{name:"Common file text lock",icon:"common-file-text-lock"},{name:"Common file award",icon:"common-file-award"},{name:"Multiple home",icon:"multiple-home"},{name:"Multiple circle",icon:"multiple-circle"},{name:"Phone landline",icon:"phone-landline"},{name:"Mobile phone",icon:"mobile-phone-2"},{name:"Trends hot flame",icon:"trends-hot-flame"},{name:"Love it alternate",icon:"love-it-alternate"},{name:"Ranking winner medal",icon:"ranking-winner-medal"},{name:"Award badge star",icon:"award-badge-star-1"},{name:"Certified certificate",icon:"certified-certificate"},{name:"Certified diploma",icon:"certified-diploma-2"},{name:"Vip crown queen",icon:"vip-crown-queen-2"},{name:"Plane",icon:"plane"},{name:"Plane take off",icon:"plane-take-off"},{name:"Plane trip international",icon:"plane-trip-international"},{name:"Plane board",icon:"plane-board"},{name:"Plane boarding pass",icon:"plane-boarding-pass-1"},{name:"Security officer luggage",icon:"security-officer-luggage"},{name:"Passport globe",icon:"passport-globe"},{name:"Baggage cart",icon:"baggage-cart-1"},{name:"Reception hotel",icon:"reception-hotel"},{name:"Room service bring plate",icon:"room-service-bring-plate"},{name:"Room service food",icon:"room-service-food"},{name:"Bathroom shower",icon:"bathroom-shower"},{name:"Car garage",icon:"car-garage-2"},{name:"Spa lotus",icon:"spa-lotus-1"},{name:"Spa stone",icon:"spa-stone-1"},{name:"Spa board",icon:"spa-board"},{name:"Sauna heat person",icon:"sauna-heat-person"},{name:"Hotel bunk bed",icon:"hotel-bunk-bed"},{name:"Toilet seat",icon:"toilet-seat"},{name:"Cleaning man",icon:"cleaning-man"},{name:"Cleaning vacuum",icon:"cleaning-vacuum-2"},{name:"Laundry iron board",icon:"laundry-iron-board"},{name:"Swimming pool person",icon:"swimming-pool-person"},{name:"Family child teeter",icon:"family-child-teeter"},{name:"Family baby",icon:"family-baby"},{name:"Family child play",icon:"family-child-play"},{name:"Family child jumping rope",icon:"family-child-jumping-rope"},{name:"Disability walking help",icon:"disability-walking-help"},{name:"Disability wheelchair",icon:"disability-wheelchair-1"}
1,{name:"Disability sit cane",icon:"disability-sit-cane"},{name:"Disability walking aid",icon:"disability-walking-aid"},{name:"Disability braille",icon:"disability-braille"},{name:"Disability hearing aid",icon:"disability-hearing-aid"},{name:"Disability pregant",icon:"disability-pregant"},{name:"Dress",icon:"dress-1"},{name:"Footwear heels",icon:"footwear-heels-1"},{name:"Footwear flip flops",icon:"footwear-flip-flops"},{name:"Footwear sneakers",icon:"footwear-sneakers"},{name:"Footwear boots female",icon:"footwear-boots-female"},{name:"Clothes design sewing machine",icon:"clothes-design-sewing-machine"},{name:"Clothes design needle yarn",icon:"clothes-design-needle-yarn"},{name:"Accessories earrings oriental",icon:"accessories-earrings-oriental"},{name:"Accessories necklace",icon:"accessories-necklace-1"},{name:"Glasses retro",icon:"glasses-retro"},{name:"Glasses sun circle",icon:"glasses-sun-circle"},{name:"Hardware hammer nail",icon:"hardware-hammer-nail"},{name:"Power tools drill",icon:"power-tools-drill"},{name:"Tools flattener triangle",icon:"tools-flattener-triangle"},{name:"Tools wench",icon:"tools-wench"},{name:"Tools screwdriver",icon:"tools-screwdriver-1"},{name:"Clamps expand",icon:"clamps-expand"},{name:"Measure ruler divider",icon:"measure-ruler-divider"},{name:"Safety helmet mine",icon:"safety-helmet-mine"},{name:"Farming field sun",icon:"farming-field-sun"},{name:"Farming barn sun",icon:"farming-barn-sun"},{name:"Farming farmer",icon:"farming-farmer"},{name:"Agriculture machine tractor",icon:"agriculture-machine-tractor-2"},{name:"Gardening tools",icon:"gardening-tools"},{name:"Gardening watering can",icon:"gardening-watering-can"},{name:"Outdoors sun plants",icon:"outdoors-sun-plants"},{name:"Tree christmas",icon:"tree-christmas"},{name:"Flower",icon:"flower-2"},{name:"Outdoors water sun",icon:"outdoors-water-sun"},{name:"Dog leash",icon:"dog-leash"},{name:"Cat sitting",icon:"cat-sitting"},{name:"Parrot",icon:"parrot-1"},{name:"Livestock cow body",icon:"livestock-cow-body"},{name:"Livestock sheep body alternate",icon:"livestock-sheep-body-alternate"},{name:"Giraffe body",icon:"giraffe-body"},{name:"Elephant",icon:"elephant"},{name:"Monkey",icon:"monkey-2"},{name:"Marine mammal dolphin",icon:"marine-mammal-dolphin"},{name:"Whale body",icon:"whale-body"},{name:"Marine mammal turtle",icon:"marine-mammal-turtle-1"},{name:"Shark",icon:"shark-1"},{name:"Shell",icon:"shell-1"},{name:"Hospital bedroom nurse",icon:"hospital-bedroom-nurse"},{name:"Dentistry tooth",icon:"dentistry-tooth"},{name:"Ambulance car",icon:"ambulance-car"},{name:"Ambulance helicopter",icon:"ambulance-helicopter"},{name:"Pill clock",icon:"pill-clock"},{name:"School book apple",icon:"school-book-apple"},{name:"Study owl",icon:"study-owl"},{name:"Read human",icon:"read-human"},{name:"Science molecules",icon:"science-molecules"},{name:"Lab flask experiment",icon:"lab-flask-experiment"},{name:"Space rocket",icon:"space-rocket-2"},{name:"Space rocket launch",icon:"space-rocket-launch"},{name:"Science fiction ufo",icon:"science-fiction-ufo"},{name:"Astronomy planet ring star",icon:"astronomy-planet-ring-star"},{name:"Astronomy telescope",icon:"astronomy-telescope"},{name:"Religion islam pray",icon:"religion-islam-pray"},{name:"Religion grave",icon:"religion-grave"},{name:"Religion islam",icon:"religion-islam"},{name:"Religion hexagram",icon:"religion-hexagram"},{name:"Religion shinto",icon:"religion-shinto"},{name:"Engagement ring",icon:"engagement-ring-1"},{name:"Wedding cake heart",icon:"wedding-cake-heart"},{name:"Couple man man",icon:"couple-man-man-1"},{name:"Wedding couple",icon:"wedding-couple"},{name:"Toys teddy bear",icon:"toys-teddy-bear-1"},{name:"Toys car push",icon:"toys-car-push"},{name:"Toys beach ball",icon:"toys-beach-ball"},{name:"Educative toys alphabet",icon:"educative-toys-alphabet"},{name:"Baby care trolley",icon:"baby-care-trolley"},{name:"Christmas door wreath",icon:"christmas-door-wreath"},{name:"Christmas tree",icon:"christmas-tree"},{name:"Christmas snowflake",icon:"christmas-snowflake"},{name:"Christmas sugar cane",icon:"christmas-sugar-cane"},{name:"Halloween pumpkin",icon:"halloween-pumpkin"},{name:"Halloween bat",icon:"halloween-bat"}
1,{name:"Halloween cauldron mix",icon:"halloween-cauldron-mix"},{name:"Easter egg ribbon",icon:"easter-egg-ribbon"},{name:"Easter egg basket",icon:"easter-egg-basket"},{name:"Fitness bicycle",icon:"fitness-bicycle-1"},{name:"Fitness dumbbell",icon:"fitness-dumbbell"},{name:"Soccer player ball",icon:"soccer-player-ball"},{name:"American football ball",icon:"american-football-ball-1"},{name:"Volleyball net",icon:"volleyball-net"},{name:"Tennis racquet ball",icon:"tennis-racquet-ball"},{name:"Golf hole aim",icon:"golf-hole-aim"},{name:"Bowling set",icon:"bowling-set"},{name:"Pool black ball",icon:"pool-black-ball"},{name:"Archery person",icon:"archery-person"},{name:"Shooting rifle target",icon:"shooting-rifle-target"},{name:"Shooting rifle",icon:"shooting-rifle"},{name:"Gymnastics horse",icon:"gymnastics-horse"},{name:"Swimming jump",icon:"swimming-jump"},{name:"Skiing cross country",icon:"skiing-cross-country"},{name:"Skateboard person",icon:"skateboard-person"},{name:"Martial arts swords",icon:"martial-arts-swords"},{name:"Climbing mountain",icon:"climbing-mountain"},{name:"Dancing ballet",icon:"dancing-ballet"},{name:"Boxing boxer bag",icon:"boxing-boxer-bag"},{name:"Skiing ice skates",icon:"skiing-ice-skates"},{name:"Diving oxygen",icon:"diving-oxygen"},{name:"Diving mask fish",icon:"diving-mask-fish"},{name:"Nautic sports surfing water",icon:"nautic-sports-surfing-water"},{name:"Sailing boat",icon:"sailing-boat-2"},{name:"Sailing boat water",icon:"sailing-boat-water-1"},{name:"Canoe",icon:"canoe-1"},{name:"Canoe person",icon:"canoe-person"},{name:"Fishing lure",icon:"fishing-lure"},{name:"Fishing fish",icon:"fishing-fish"},{name:"Outdoors camp fire",icon:"outdoors-camp-fire"},{name:"Camping rv",icon:"camping-rv"},{name:"Camping tent sleep",icon:"camping-tent-sleep"},{name:"Card game dice",icon:"card-game-dice"},{name:"Chess figures",icon:"chess-figures"},{name:"Casino chip",icon:"casino-chip-5"},{name:"Party balloons",icon:"party-balloons"},{name:"Amusement park ferris wheel",icon:"amusement-park-ferris-wheel"},{name:"Circus tent",icon:"circus-tent-1"},{name:"Show theater masks",icon:"show-theater-masks"},{name:"Show hat magician",icon:"show-hat-magician"},{name:"Ticket movie",icon:"ticket-movie"},{name:"Museum person",icon:"museum-person"},{name:"Farmer's market kiosk",icon:"farmers-market-kiosk"},{name:"Scooter",icon:"scooter"},{name:"Scooter sport",icon:"scooter-sport"},{name:"Taxi",icon:"taxi"},{name:"Car",icon:"car-1"},{name:"Car",icon:"car-4"},{name:"Car truck",icon:"car-truck"},{name:"Adventure car truck",icon:"adventure-car-truck-1"},{name:"Bus",icon:"bus"},{name:"Railroad train",icon:"railroad-train-1"},{name:"Car insurance hands",icon:"car-insurance-hands"},{name:"Gas load",icon:"gas-load"},{name:"Sea transport boat",icon:"sea-transport-boat"},{name:"Aircraft chopper",icon:"aircraft-chopper-1"},{name:"Maps mark",icon:"maps-mark"},{name:"Real estate favorite hold house",icon:"real-estate-favorite-hold-house-1"},{name:"Real estate deal shake",icon:"real-estate-deal-shake"},{name:"Real estate sign building rent",icon:"real-estate-sign-building-rent"},{name:"Real estate sign rent",icon:"real-estate-sign-rent"}]}ngOnInit(){const e=this.defaultIcons.find(e=>e.icon===this.icon);this.selectedIcon=e||this.unselectedIcon}toggleIcons(){this.show=!this.show}changeIcon(e){this.selectedIcon=e,this.iconChanged.emit(this.selectedIcon.icon),this.show=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["icon-picker"]],inputs:{heading:"heading",color:"color",bg:"bg",icon:"icon"},outputs:{iconChanged:"iconChanged"},decls:7,vars:11,consts:[[1,"summary-info",3,"click"],[1,"info"],[1,"style"],["href","JavaScript:;",2,"margin-top","0",3,"title","ngStyle"],["class","opened",4,"ngIf"],[1,"opened"],[1,"icons"],["href","JavaScript:;",3,"title","class","click",4,"ngFor","ngForOf"],["href","JavaScript:;",3,"title","click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",0),r["\u0275\u0275listener"]("click",(function(e){return t.toggleIcons()})),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275elementStart"](3,"p",2),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"a",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](6,Xf,3,1,"div",4),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](t.heading),r["\u0275\u0275advance"](1),r["\u0275\u0275classMapInterpolate1"]("square budget-icon icon-",t.selectedIcon.icon,""),r["\u0275\u0275property"]("title",t.selectedIcon.name)("ngStyle",r["\u0275\u0275pureFunction3"](7,Jf,t.bg||t.unselectedBg,t.color||t.unselectedColor,"1px solid "+t.color||!1)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.show))},directives:[K,zf,Y,V],styles:["p[_ngcontent-%COMP%]{margin:0}.summary-info[_ngcontent-%COMP%]{display:-webkit-box;display:flex;box-sizing:border-box;margin-top:10px;margin-bottom:10px;height:32px}.info[_ngcontent-%COMP%]{width:calc(100% - 28px)}p.style[_ngcontent-%COMP%]{font:inherit;line-height:28px;vertical-align:middle}.square[_ngcontent-%COMP%]{-webkit-box-flex:32px;flex:32px;-webkit-box-flex:0;flex-grow:0;flex-shrink:0;top:0;height:32px;width:32px;margin:5px 3px 5px 5px;box-sizing:border-box;text-decoration:none;cursor:pointer!important}.opened[_ngcontent-%COMP%]{background:var(--bg-color);padding:10px;border-radius:10px;border:1px solid var(--accent-color);margin-top:5px}.icons[_ngcontent-%COMP%]{display:-webkit-box;display:flex;flex-wrap:wrap;justify-content:space-around}.icon-wrapper[_ngcontent-%COMP%]{text-align:center}.icon-grid-item[_ngcontent-%COMP%], a.budget-icon[_ngcontent-%COMP%]{color:var(--font-color)}a.budget-icon[_ngcontent-%COMP%]{pointer-events:auto!important;background-color:var(--bg-color);border:1px solid var(--font-color)}a.budget-icon.icon-grid-item[_ngcontent-%COMP%]{background-color:var(--bg-color)!important;color:var(--font-color)!important;border:none}"]}),e})();const em=function(e){return{background:e}};function tm(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"a",9),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.$implicit;return r["\u0275\u0275nextContext"](2).changeColor(i)})),r["\u0275\u0275elementEnd"]()}2&e&&r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](1,em,t.$implicit))}function nm(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",6),r["\u0275\u0275elementStart"](1,"div",7),r["\u0275\u0275template"](2,tm,1,3,"a",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",e.defaultColors)}}let im=(()=>{class e{constructor(){this.colorChanged=new r.EventEmitter,this.show=!1}ngOnInit(){this.defaultColors=["#FFBFBF","#FFCCBF","#FFD9BF","#F
1FE6BF","#FFF2BF","#FFFFBF","#F2FFBF","#E5FFBF","#D9FFBF","#CCFFBF","#BFFFBF","#BFFFCC","#BFFFD9","#BFFFE6","#BFFFF2","#BFFFFF","#BFF2FF","#BFE5FF","#BFD9FF","#BFCCFF","#BFBFFF","#CCBFFF","#D9BFFF","#E6BFFF","#F2BFFF","#FFBFFF","#FFBFF2","#FFBFE5","#FFBFD9","#FFBFCC","#FF0000","#FF3300","#FF6600","#FF9900","#FFCC00","#FFFF00","#CCFF00","#99FF00","#66FF00","#33FF00","#00FF00","#00FF33","#00FF66","#00FF99","#00FFCC","#00FFFF","#00CCFF","#0099FF","#0066FF","#0033FF","#0000FF","#3300FF","#6600FF","#9900FF","#CC00FF","#FF00FF","#FF00CC","#FF0099","#FF0066","#FF0033","#000","#222","#383838","#535152","#6C6C6C","#8B8B8B","#B1B1B3","#C4C4C4","#DCDCDC","#FFF"]}toggleColors(){this.show=!this.show}changeColor(e){this.color=e,this.colorChanged.emit(this.color),this.show=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["color-picker"]],inputs:{heading:"heading",color:"color"},outputs:{colorChanged:"colorChanged"},decls:7,vars:5,consts:[[1,"color-picker"],[1,"summary-info",3,"click"],[1,"info"],[1,"style"],["href","JavaScript:;",1,"circle",2,"margin","3px","margin-top","0",3,"ngStyle"],["class","opened",4,"ngIf"],[1,"opened"],[1,"colors"],["href","JavaScript:;","class","circle",3,"ngStyle","click",4,"ngFor","ngForOf"],["href","JavaScript:;",1,"circle",3,"ngStyle","click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275listener"]("click",(function(e){return t.toggleColors()})),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"p",3),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"a",4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](6,nm,3,1,"div",5),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate"](t.heading),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](3,em,t.color)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.show))},directives:[K,zf,Y,V],styles:["p[_ngcontent-%COMP%]{margin:0}.summary-info[_ngcontent-%COMP%]{display:-webkit-box;display:flex;box-sizing:border-box;margin-top:10px}.info[_ngcontent-%COMP%]{width:calc(100% - 32px)}p.style[_ngcontent-%COMP%]{font:inherit;line-height:32px;vertical-align:middle}.circle[_ngcontent-%COMP%]{-webkit-box-flex:32px;flex:32px;-webkit-box-flex:0;flex-grow:0;flex-shrink:0;height:32px;width:32px;margin:5px;box-sizing:border-box;border-radius:100%;border:1px solid #dadada;box-shadow:0 2px 4px 0 rgba(0,0,0,.14);cursor:pointer;text-decoration:none}.opened[_ngcontent-%COMP%]{background:var(--bg-color);padding:10px;border-radius:10px;border:1px solid var(--accent-color);margin-top:5px}.colors[_ngcontent-%COMP%]{display:-webkit-box;display:flex;flex-wrap:wrap;justify-content:space-around}"]}),e})();const rm=["mat-button",""],om=["*"],sm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class am{constructor(e){this._elementRef=e}}const lm=Du(Su(xu(am)));let cm=(()=>{class e extends lm{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of sm)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",t){this._focusMonitor.focusVia(this._getHostElement(),e,t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Ya),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Hu,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.ripple=n.first)},hostVars:3,hostBindings:function(e,t){2&e&&(r["\u0275\u0275attribute"]("disabled",t.disabled||null),r["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r["\u0275\u0275InheritDefinitionFeature"]],attrs:rm,ngContentSelectors:om,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275elementStart"](0,"span",0),r["\u0275\u0275projection"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"div",1),r["\u0275\u0275element"](3,"div",2)),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("mat-button-ripple-round",t.isRoundButton||t.isIconButton),r["\u0275\u0275property"]("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Hu],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),e})(),um=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne,Yu,Eu],Eu]}),e})();const dm=["theForm"];function hm(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function pm(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](19);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.errors.money)}}function fm(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}let mm=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t,this.title="",this.isSaving=!1,this.data.isCancel=!1,this.data.account.balFormatted=bd(this.data.account.bal),this.title=this.data.isNew?"Edit Account":"Add Account"}onColorChanged(e){this.data.account.clr=e}onBgColorChanged(e){this.data.account.bg=e}onIconChanged(e){this.data.account.icn=e}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}save(){_d.validate(this.theForm)&&(this.isSaving=!0,this.data.isCancel=!1,this.data.account.bal=Number(this.data.account.balFormatted),this.dialogRef.close(this.data))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-account-dialog"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](dm,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.theForm=n.first)},decls:30,vars:15,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["theForm","ngForm"],["mat-dialog-content",""],[1,"input-row"],[2,"width","100%"],["name","name","matInput","","placeholder","Account name","maxlength","50","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["name","ngModel"],[4,"ngIf"],["rows","3","name","description","matInput","","placeholder","Notes (optional)","autocomplete","off","maxlength","250",3,"ngModel","ngModelChange"],["description","ngModel"],["matPrefix",""],["name","balance","matInput","","placeholder","Balance","type","text","money","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["balance","ngModel"],[3,"heading","icon","color","bg","iconChanged"],[3,"heading","color","colorChanged"],["mat-dialog-actions",""],["mat-button","","type","button",3,"click"],["mat-button","","type","submit"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"form",1,2),r["\u0275\u0275listener"]("ngSubmit",(function(e){return t.save()})),r["\u0275\u0275elementStart"](4,"div",3),r["\u0275\u0275elementStart"](5,"div",4),r["\u0275\u0275elementStart"](6,"mat-form-field",5),r["\u0275\u0275elementStart"](7,"input",6,7),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.account.nm=e})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,hm,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"mat-form-field",5),r["\u0275\u0275elementStart"](11,"textarea",9,10),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.account.de
1s=e})),r["\u0275\u0275text"](13,"            "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"div",4),r["\u0275\u0275elementStart"](15,"mat-form-field",5),r["\u0275\u0275elementStart"](16,"span",11),r["\u0275\u0275text"](17,"$\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"input",12,13),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.account.balFormatted=e})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](20,pm,2,1,"mat-error",8),r["\u0275\u0275template"](21,fm,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"icon-picker",14),r["\u0275\u0275listener"]("iconChanged",(function(e){return t.onIconChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](23,"color-picker",15),r["\u0275\u0275listener"]("colorChanged",(function(e){return t.onColorChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](24,"color-picker",15),r["\u0275\u0275listener"]("colorChanged",(function(e){return t.onBgColorChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"div",16),r["\u0275\u0275elementStart"](26,"button",17),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](27,"Cancel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](28,"button",18),r["\u0275\u0275text"](29,"Save"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](8),n=r["\u0275\u0275reference"](19);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.title),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",t.data.account.nm),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.isSaving&&!e.pristine&&(null==e.errors?null:e.errors.required)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.data.account.des),r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngModel",t.data.account.balFormatted),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.isSaving&&!n.pristine&&(null==n.errors?null:n.errors.money)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!t.isSaving&&!n.pristine&&(null==n.errors?null:n.errors.required)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("heading","Account Icon")("icon",t.data.account.icn)("color",t.data.account.clr)("bg",t.data.account.bg),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("heading"," Icon Color")("color",t.data.account.clr),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("heading"," Icon Background Color")("color",t.data.account.bg)}},directives:[md,Hh,Fd,Rh,gd,Fp,qp,kd,ep,Jh,Nd,Vh,Y,Rp,Qp,Zf,im,yd,cm,Ep],styles:[""]}),e})(),gm=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.data.isDeletion=!1,this.dialogRef.close(this.data)}delete(){this.data.isDeletion=!0,this.dialogRef.close(this.data)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-delete-dialog"]],decls:9,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"mat-typography",2,"min-height","50px"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",2),r["\u0275\u0275elementStart"](5,"button",3),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](6,"Cancel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"button",4),r["\u0275\u0275listener"]("click",(function(e){return t.delete()})),r["\u0275\u0275text"](8,"Yes - Delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.data.title),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" ",t.data.message,"\n"))},directives:[md,gd,yd,cm],styles:[""]}),e})();var ym=n("w1tV");class vm{}class _m{}class bm{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>
vendor: 6,812 bytes, line 1
1{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof bm?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new bm;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof bm?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class wm{encodeKey(e){return Cm(e)}encodeValue(e){return Cm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Cm(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Em{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new wm,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const i=e.indexOf("="),[r,o]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Em({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function Sm(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Dm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function xm(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Tm{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new bm),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new Em,this.urlWithParams=t}serializeBody(){return null===this.body?null:Sm(this.body)||Dm(this.body)||xm(this.body)||"string"==typeof this.body?this.body:this.body instanceof Em?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:xm(this.body)?null:Dm(this.body)?this.body.type||null:Sm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Em?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Tm(t,n,r,{params:l,headers:a,reportProgress:s,responseType:i,withCredentials:o})}}const Om=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.Re
1sponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class km{constructor(e,t=200,n="OK"){this.headers=e.headers||new bm,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class Im extends km{constructor(e={}){super(e),this.type=Om.ResponseHeader}clone(e={}){return new Im({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Rm extends km{constructor(e={}){super(e),this.type=Om.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Rm({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Mm extends km{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Am(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Pm=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof Tm)i=e;else{let r=void 0;r=n.headers instanceof bm?n.headers:new bm(n.headers);let o=void 0;n.params&&(o=n.params instanceof Em?n.params:new Em({fromObject:n.params})),i=new Tm(e,t,void 0!==n.body?n.body:null,{headers:r,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Ye(i).pipe(Bt(e=>this.handler.handle(e)));if(e instanceof Tm||"events"===n.observe)return r;const o=r.pipe(at(e=>e instanceof Rm));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe(Object(it.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return o.pipe(Object(it.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return o.pipe(Object(it.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return o.pipe(Object(it.a)(e=>e.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Em).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Am(n,t))}post(e,t,n={}){return this.request("POST",e,Am(n,t))}put(e,t,n={}){return this.request("PUT",e,Am(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](vm))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Lm{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Nm=new r.InjectionToken("HTTP_INTERCEPTORS");let Fm=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const jm=/^\)\]\}',?\n/;class Vm{}let Hm=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Ym=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new ze.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEac
vendor: 4,459 bytes, line 1
1h((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",o=new bm(n.getAllResponseHeaders()),s=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new Im({headers:o,status:t,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(jm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Rm({body:l,headers:i,status:r,statusText:s,url:a||void 0})),t.complete()):t.error(new Mm({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=e=>{const{url:i}=o(),r=new Mm({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let l=!1;const c=i=>{l||(t.next(o()),l=!0);let r={type:Om.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:Om.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:Om.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),e.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Vm))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Bm=new r.InjectionToken("XSRF_COOKIE_NAME"),Gm=new r.InjectionToken("XSRF_HEADER_NAME");class Wm{}let Um=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=N(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](Bm))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),zm=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Wm),r["\u0275\u0275inject"](Gm))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),qm=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Nm,[]);this.chain=e.reduceRight((e,t)=>new Lm(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](_m),r["\u0275\u0275inject"](r.Injector))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Km=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:zm,useClass:Fm}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Bm,useValue:t.cookieName}:[],t.headerName?{provide:Gm,useValue:t.headerName}:[]]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[zm,{provide:Nm,useExisting:zm,multi:!0},{provide:Wm,useClass:Um},{provide:Bm,useValue:"XSRF-TOKEN"},{provide:Gm,useValue:"X-XSRF-TOKEN"}
1]}),e})(),$m=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Pm,{provide:vm,useClass:qm},Ym,{provide:_m,useExisting:Ym},Hm,{provide:Vm,useExisting:Hm}],imports:[[Km.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();const Qm=["*"];function Xm(e){return Error(`Unable to find icon with the name "${e}"`)}function Jm(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${e}".`)}function Zm(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${e}".`)}class eg{constructor(e,t){this.options=t,e.nodeName?this.svgElement=e:this.url=e}}let tg=(()=>{class e{constructor(e,t,n,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,i){return this._addSvgIconConfig(e,t,new eg(n,i))}addSvgIconLiteralInNamespace(e,t,n,i){const o=this._sanitizer.sanitize(r.SecurityContext.HTML,n);if(!o)throw Zm(n);const s=this._createSvgElementForSingleIcon(o,i);return this._addSvgIconConfig(e,t,new eg(s,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new eg(t,n))}addSvgIconSetLiteralInNamespace(e,t,n){const i=this._sanitizer.sanitize(r.SecurityContext.HTML,t);if(!i)throw Zm(t);const o=this._svgElementFromString(i);return this._addSvgIconSetConfig(e,new eg(o,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,e);if(!t)throw Jm(e);const n=this._cachedIconsByUrl.get(t);return n?Ye(ng(n)):this._loadSvgIconFromConfig(new eg(e)).pipe(zt(e=>this._cachedIconsByUrl.set(t,e)),Object(it.a)(e=>ng(e)))}getNamedSvgIcon(e,t=""){const n=ig(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Qr(Xm(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgElement?Ye(ng(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(zt(t=>e.svgElement=t),Object(it.a)(e=>ng(e)))}_getSvgFromIconSetConfigs(e,t){const n=this._extractIconWithNameFromAnySet(e,t);return n?Ye(n):Cd(t.filter(e=>!e.svgElement).map(e=>this._loadSvgIconSetFromConfig(e).pipe(St(t=>{const n=`Loading icon set URL: ${this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,e.url)} failed: ${t.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n),Ye(null)})))).pipe(Object(it.a)(()=>{const n=this._extractIconWithNameFromAnySet(e,t);if(!n)throw Xm(e);return n}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.svgElement){const t=this._extractSvgIconFromSet(i.svgElement,e,i.options);if(t)return t}}return null}_loadSvgIconFromConfig(e){return this._fetchUrl(e.url).pipe(Object(it.a)(t=>this._createSvgElementForSingleIcon(t,e.options)))}_loadSvgIconSetFromConfig(e){return e.svgElement?Ye(e.svgElement):this._fetchUrl(e.url).pipe(Object(it.a)(t=>(e.svgElement||(e.svgElement=this._svgElementFromString(t)),e.svgElement)))}_createSvgElementForSingleIcon(e,t){const n=this._svgElementFromString(e);return this._setSvgAttributes(n,t),n}_extractSvgIconFromSet(e,t,n){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(e){const t=this._svgElementFromString("<svg></svg>"),n=e.attributes;for(let i=0;i<n.length;i++){const{name:e,value:r}=n[i];"id"!==e&&t.setAttribute(e,r)}for(let i=0;i<e.childNodes.length;i++)e.childNodes[i].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[i].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchUrl(e){if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==e)throw Error(`Cannot fetch icon from URL "${e}".`);const t=this._sanitizer.sanitize(r.SecurityContext.RESOURCE_URL,e);if(!t)throw Jm(e);const n=this._inProgressUrlFetches.get(t);if(n)return n;const i=this._httpClient.get(t,{responseType:"text"}).pipe(Qt(()=>this._inProgressUrlFetches.delete(t)),Object(ym.a)());return this._inProgressUrlFetches.set(t,i),i}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(ig(e,t),n),this}_addSvgIconSetConfig(e,t){const n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Pm,8),r["\u0275\u0275inject"](Me),r["\u0275\u0275inject"](l,8),r["\u0275\u0275inject"](r.ErrorHandler,8))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(Pm,8),Object(r["\u0275\u0275inject"])(Me),Object(r["\u0275\u0275inject"])(l,8),Object(r["\u0275\u0275inject"])(r.ErrorHandler,8))},token:e,providedIn:"root"}),e})();function ng(e){return e.cloneNode(!0)}function ig(e,t){return e+":"+t}class rg{constructor(e){this._elementRef=e}}const og=Du(rg),sg=new r.InjectionToken("mat-icon-location",{providedIn:"root",factory:function(){const e=Object(r.inject)(l),t=e?e.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),ag=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],lg=ag.map(e=>`[${e}]`).join(", "),cg=/^url\(['"]?#(.*?)['"]?\)$/;let ug=(()=>{class e extends og{constructor(e,t,n,i,r){super(e),this._iconRegistry=t,this._location=i,this._errorHandler=r,this._inline=!1,n||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=$o(e)}get fontSet(){return this._fontSet}set fontSet(e){this._fontSet=this._cleanupFontValue(e)}get fontIcon(){return this._fontIcon}set fontIcon(e){this._fontIcon=this._cleanupFontValue(e)}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnChanges(e){const t=e.svgIcon;
1if(t)if(this.svgIcon){const[e,t]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(t,e).pipe(Tt(1)).subscribe(e=>this._setSvgElement(e),n=>{const i=`Error retrieving icon ${e}:${t}! ${n.message}`;this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i)})}else t.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&this._location&&e.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let n=0;n<t.length;n++)t[n].textContent+=" ";if(this._location){const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t)}this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((t,n)=>{t.forEach(t=>{n.setAttribute(t.name,`url('${e}#${t.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(lg),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<t.length;i++)ag.forEach(e=>{const r=t[i],o=r.getAttribute(e),s=o?o.match(cg):null;if(s){let t=n.get(r);t||(t=[],n.set(r,t)),t.push({name:e,value:s[1]})}})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](tg),r["\u0275\u0275injectAttribute"]("aria-hidden"),r["\u0275\u0275directiveInject"](sg,8),r["\u0275\u0275directiveInject"](r.ErrorHandler,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()],ngContentSelectors:Qm,decls:1,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275projection"](0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),dg=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Eu],Eu]}),e})();const hg=["input"],pg=function(){return{enterDuration:150}},fg=["*"],mg=new r.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),gg=new r.InjectionToken("mat-checkbox-click-action");let yg=0;const vg={provide:Sd,useExisting:Object(r.forwardRef)(()=>Eg),multi:!0},_g=function(){var e={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return e[e.Init]="Init",e[e.Checked]="Checked",e[e.Unchecked]="Unchecked",e[e.Indeterminate]="Indeterminate",e}();class bg{}class wg{constructor(e){this._elementRef=e}}const Cg=Tu(Du(xu(Su(wg))));let Eg=(()=>{class e extends Cg{constructor(e,t,n,i,o,s,a,l){super(e),this._changeDetectorRef=t,this._focusMonitor=n,this._ngZone=i,this._clickAction=s,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++yg}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.EventEmitter,this.indeterminateChange=new r.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=_g.Init,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(o)||0,this._focusMonitor.monitor(e,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),t.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$o(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=$o(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=$o(e),t&&(this._transitionCheckState(this._indeterminate?_g.Indeterminate:this.checked?_g.Checked:_g.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new bg;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}toggle(){this.checked=!this.checked}_onInputClick(e){e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?_g.Checked:_g.Unchecked),this._emitChangeEvent())}focus(e="keyboard",t){this._focusMonitor.focusVia(this._inputElement,e,t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let n="";switch(e){case _g.Init:if(t===_g.Checked)n="unchecked-checked";else{if(t!=_g.Indeterminate)return"";n="unchecked-indeterminate"}break;case _g.Unchecked:n=t===_g.Checked?"unchecked-checked":"unchecked-indeterminate";break;case _g.Checked:n=t===_g.Unchecked?"checked-unchecked":"checked-indeterminate";break;case _g.Indeterminate:n=t===_g.Checked?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ya),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275injectAttribute"]("tabindex"),r["\u0275\u0275directiveInject"](gg,8),r["\u0275\u0275directiveInject"](fu,8),r["\u0275\u0275directiveInject"](mg,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](hg,!0),r["\u0275\u0275viewQuery"](Hu,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._inputElement=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(r["\u0275\u0275hostProperty"]("id",t.id),r["\u0275\u0275attribute"]("tabindex",null),r["\u0275\u0275classProp"]("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r["\u0275\u0275ProvidersFeature"]([vg]),r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:fg,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275elementStart"](0,"label",0,1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"input",3,4),r["\u0275\u0275listener"]("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",5),r["\u0275\u0275element"](6,"div",6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](7,"div",7),r["\u0275\u0275elementStart"](8,"div",8),r["\u0275\u0275namespaceSVG"](),r["\u0275\u0275elementStart"](9,"svg",9),r["\u0275\u0275element"](10,"path",10),r["\u0275\u0275elementEnd"](),r["\u0275\u0275namespaceHTML"](),r["\u0275\u0275element"](11,"div",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"span",12,13),r["\u0275\u0275listener"]("cdkObserveContent",(function(e){return t._onLabelTextChange()})),r["\u0275\u0275elementStart"](14,"span",14),r["\u0275\u0275text"](15,"\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275projection"](16),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](1),n=r["\u0275\u0275reference"](13);r["\u0275\u0275attribute"]("for",t.inputId),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),r["\u0275\u0275attribute"]("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r["\u0275\u0275pureFunction0"](18,pg))}},directives:[Hu,Da],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}
150%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;
1transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),Sg=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})(),Dg=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne,Yu,Eu,xa,Sg],Eu,Sg]}),e})();const xg=["theForm"];function Tg(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",3),r["\u0275\u0275elementStart"](2,"button",4),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().createExampleBudget()})),r["\u0275\u0275text"](3," Create Example Budget "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"p",5),r["\u0275\u0275text"](5," I want to see how this thing works. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",6),r["\u0275\u0275elementStart"](7,"button",7),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().showCustomBudget()})),r["\u0275\u0275text"](8," Create Custom Budget "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"p",5),r["\u0275\u0275text"](10," I'm ready to add income and expenses. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}function Og(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",20),r["\u0275\u0275elementStart"](1,"a",21),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).hideCustomBudget()})),r["\u0275\u0275elementStart"](2,"mat-icon",22),r["\u0275\u0275text"](3,"arrow_back"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4,"Go back "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}function kg(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function Ig(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function Rg(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){r["\u0275\u0275nextContext"]();const e=r["\u0275\u0275reference"](9);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.errors.money)}}function Mg(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function Ag(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"mat-form-field",23),r["\u0275\u0275elementStart"](2,"input",24,14),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).data.accountName=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](4,Ig,2,0,"mat-error",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"mat-form-field",25),r["\u0275\u0275elementStart"](6,"span",26),r["\u0275\u0275text"](7,"$\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"input",27,28),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).data.accountBalance=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,Rg,2,1,"mat-error",15),r["\u0275\u0275template"](11,Mg,2,0,"mat-error",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"div"),r["\u0275\u0275elementStart"](13,"mat-checkbox",29),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).data.useSuggestedCategories=t})),r["\u0275\u0275text"](14,"Start with suggested categories"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"div",30),r["\u0275\u0275text"](16," Recommended to save you time. 
1(You will be able to add, edit and delete these categories.) "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](3),t=r["\u0275\u0275reference"](9),n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.data.accountName),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngModel",n.data.accountBalance),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==t?null:null==t.errors?null:t.errors.money),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==t?null:null==t.errors?null:t.errors.required),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.data.useSuggestedCategories)}}function Pg(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",31),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).cancel()})),r["\u0275\u0275text"](1,"Cancel"),r["\u0275\u0275elementEnd"]()}}function Lg(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"button",32),r["\u0275\u0275text"](1," Save "),r["\u0275\u0275elementEnd"]())}function Ng(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"button",33),r["\u0275\u0275text"](1," Get Started! "),r["\u0275\u0275elementEnd"]())}function Fg(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"form",8,9),r["\u0275\u0275listener"]("ngSubmit",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().save()})),r["\u0275\u0275elementStart"](2,"div",10),r["\u0275\u0275template"](3,Og,5,0,"div",11),r["\u0275\u0275pipe"](4,"async"),r["\u0275\u0275elementStart"](5,"mat-form-field",12),r["\u0275\u0275elementStart"](6,"input",13,14),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.budget.nm=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](8,kg,2,0,"mat-error",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,Ag,17,6,"ng-container",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",16),r["\u0275\u0275template"](11,Pg,2,0,"button",17),r["\u0275\u0275template"](12,Lg,2,0,"button",18),r["\u0275\u0275template"](13,Ng,2,0,"ng-template",null,19,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](7),t=r["\u0275\u0275reference"](14),n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",0===r["\u0275\u0275pipeBind1"](4,7,n.dataService.budgets).length),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",n.data.budget.nm),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.data.isNew),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",n.data.allowCancel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.data.allowCancel)("ngIfElse",t)}}let jg=(()=>{class e{constructor(e,t,n,i){this.dataService=e,this.exampleService=t,this.dialogRef=n,this.data=i,this.title="",this.createCustomBudget=!1,this.title=this.data.isNew?this.data.allowCancel?"Add Budget":"Create Your First Budget":"Edit Budget"}ngOnInit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){}))}showCustomBudget(){this.createCustomBudget=!0}hideCustomBudget(){this.createCustomBudget=!1}createExampleBudget(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.cancel();const e=yield this.exampleService.createExampleBudget(this.dataService.snapshot.user.id);this.dataService.selectBudget(e),window.setTimeout(()=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.dataService.patchSettings({plnHd:Yr.PayPeriod},!0)})),1e3)}))}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}save(){_d.validate(this.theForm)&&(this.data.isCancel=!1,this.dialogRef.close(this.data))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](qo),r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-budget-dialog"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](xg,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.theForm=n.first)},decls:7,vars:5,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["customBudget",""],[2,"text-align","center"],["mat-button","",2,"margin","auto","font-size","larger",3,"click"],[1,"hint-text",2,"text-align","center","margin-top","10px","padding","5px"],[2,"text-align","center","margin-top","35px"],["mat-button","",1,"secondary-button",2,"margin","auto","font-size","larger",3,"click"],[3,"ngSubmit"],["theForm","ngForm"],["mat-dialog-content",""],["style","margin-top:2px;margin-bottom:20px",4,"ngIf"],["hintLabel","The name that you will use to identify this budget. Example: My Budget",2,"width","100%","margin-bottom","26px"],["name","nm","matInput","","placeholder","Budget name","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["name","ngModel"],[4,"ngIf"],["mat-dialog-actions","",2,"margin-top","10px"],["mat-button","","type","button",3,"click",4,"ngIf"],["mat-button","","type","submit",4,"ngIf","ngIfElse"],["getStarted",""],[2,"margin-top","2px","margin-bottom","20px"],["href","javascript:;",2,"margin-left","-10px",3,"click"],["aria-hidden","false","aria-label","Delete Account",2,"position","relative","top","3px"],["hintLabel","The name of your bank or other account. Example: My Tin Can",2,"width","100%","margin-bottom","25px"],["name","name","matInput","","placeholder","Account name","maxlength","50","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["hintLabel","The current balance in your account. Example: 100.50",2,"width","100%","margin-bottom","25px"],["matPrefix",""],["name","balance","matInput","","placeholder","Account balance","type","text","money","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["balance","ngModel"],["name","suggested",3,"ngModel","ngModelChange"],[1,"hint-text",2,"padding-left","24px","margin-top","-5px"],["mat-button","","type","button",3,"click"],["mat-button","","type","submit"],["mat-button","","type","submit",2,"margin","auto","font-size","larger"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](2,"br"),r["\u0275\u0275template"](3,Tg,11,0,"div",1),r["\u0275\u0275pipe"](4,"async"),r["\u0275\u0275template"](5,Fg,15,9,"ng-template",null,2,r["\u0275\u0275templateRefExtractor"])),2&e){const e=r["\u0275\u0275reference"](6);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.title),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.createCustomBudget&&0===r["\u0275\u0275pipeBind1"](4,3,t.dataService.budgets).length)("ngIfElse",e)}},directives:[md,Y,cm,Hh,Fd,Rh,gd,Fp,qp,kd,Jh,Nd,Vh,yd,ug,Ep,ep,Rp,Qp,Eg],pipes:[ee],styles:[""]}),e})();const Vg=["input"],Hg=function(){return{enterDuration:150}},Yg=["*"],Bg=new r.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let Gg=0;const Wg={provide:Sd,useExisting:Object(r.forwardRef)(()=>zg),multi:!0};class Ug{constructor(e,t){this.source=e,this.value=t}}let zg=(()=>{class e{constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${Gg++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.EventEmitter}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=$o(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$o(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}
1_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(e=>{e.checked=this.value===e.value,e.checked&&(this._selected=e)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Ug(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&r["\u0275\u0275contentQuery"](n,$g,!0),2&e&&r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Wg])]}),e})();class qg{constructor(e){this._elementRef=e}}const Kg=xu(Tu(qg));let $g=(()=>{class e extends Kg{constructor(e,t,n,i,o,s,a){super(t),this._changeDetector=n,this._focusMonitor=i,this._radioDispatcher=o,this._animationMode=s,this._providerOverride=a,this._uniqueId=`mat-radio-${++Gg}`,this.id=this._uniqueId,this.change=new r.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._removeUniqueSelectionListener=o.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=$o(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){const t=$o(e);this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$o(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Ug(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputChange(e){e.stopPropagation();const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](zg,8),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ya),r["\u0275\u0275directiveInject"](Ds),r["\u0275\u0275directiveInject"](fu,8),r["\u0275\u0275directiveInject"](Bg,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-radio-button"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Vg,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._inputElement=n.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("focus",(function(e){return t._inputElement.nativeElement.focus()})),2&e&&(r["\u0275\u0275attribute"]("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r["\u0275\u0275classProp"]("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Yg,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["mat-ripple","",1,"mat-radio-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275elementStart"](0,"label",0,1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275element"](3,"div",3),r["\u0275\u0275element"](4,"div",4),r["\u0275\u0275elementStart"](5,"div",5),r["\u0275\u0275element"](6,"div",6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"input",7,8),r["\u0275\u0275listener"]("change",(function(e){return t._onInputChange(e)}
1))("click",(function(e){return t._onInputClick(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",9),r["\u0275\u0275elementStart"](10,"span",10),r["\u0275\u0275text"](11,"\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275projection"](12),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](1);r["\u0275\u0275attribute"]("for",t.inputId),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r["\u0275\u0275pureFunction0"](18,Hg)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),r["\u0275\u0275attribute"]("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),r["\u0275\u0275advance"](2),r["\u0275\u0275classProp"]("mat-radio-label-before","before"==t.labelPosition)}},directives:[Hu],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e})(),Qg=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne,Yu,Eu],Eu]}),e})();const Xg=["theForm"];function Jg(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}let Zg=(()=>{class e{constructor(e,t){this.dialogRef=e,this.data=t,this.title="",this.data.isCancel=!1,this.title=this.data.isNew?"Edit Category":"Add Category"}onColorChanged(e){this.data.category.clr=e}onBgColorChanged(e){this.data.category.bg=e}onIconChanged(e){this.data.category.icn=e}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}save(){_d.validate(this.theForm)&&(this.data.isCancel=!1,this.dialogRef.close(this.data))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-category-dialog"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Xg,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.theForm=n.first)},decls:33,vars:13,consts:[["mat-dialog-title",""],[3,"ngSubmit"],["theForm","ngForm"],["mat-dialog-content",""],[1,"input-row"],[2,"width","100%"],["name","name","matInput","","placeholder","Category name","maxlength","50","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["name","ngModel"],[4,"ngIf"],["rows","3","name","description","matInput","","placeholder","Notes (optional)","autocomplete","off","maxlength","250",3,"ngModel","ngModelChange"],["description","ngModel"],[2,"margin-top","20px","margin-bottom","30px"],["name","typ","matInput","",3,"ngModel","ngModelChange"],["type","ngModel"],["value","E"],["value","I"],[3,"heading","icon","color","bg","iconChanged"],[3,"heading","color","colorChanged"],["mat-dialog-actions",""],["mat-button","","type","button",3,"click"],["mat-button","","type","submit"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"form",1,2),r["\u0275\u0275listener"]("ngSubmit",(function(e){return t.save()})),r["\u0275\u0275elementStart"](4,"div",3),r["\u0275\u0275elementStart"](5,"div",4),r["\u0275\u0275elementStart"](6,"mat-form-field",5),r["\u0275\u0275elementStart"](7,"input",6,7),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.category.nm=e})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,Jg,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"mat-form-field",5),r["\u0275\u0275elementStart"](11,"textarea",9,10),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.category.des=e})),r["\u0275\u0275text"](13,"            "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"div",11),r["\u0275\u0275elementStart"](15,"label"),r["\u0275\u0275text"](16,"Type: "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"mat-radio-group",12,13),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.data.category.typ=e})),r["\u0275\u0275text"](19," \xa0 "),r["\u0275\u0275elementStart"](20,"mat-radio-button",14),r["\u0275\u0275text"](21,"Expense"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](22," \xa0 "),r["\u0275\u0275elementStart"](23,"mat-radio-button",15),r["\u0275\u0275text"](24,"Income"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"icon-picker",16),r["\u0275\u0275listener"]("iconChanged",(function(e){return t.onIconChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](26,"color-picker",17),r["\u0275\u0275listener"]("colorChanged",(function(e){return t.onColorChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"color-picker",17),r["\u0275\u0275listener"]("colorChanged",(function(e){return t.onBgColorChanged(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](28,"div",18),r["\u0275\u0275elementStart"](29,"button",19),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](30,"Cancel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](31,"button",20),r["\u0275\u0275text"](32,"Save"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](8);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.title),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",t.data.category.nm),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!e.pristine&&(null==e.errors?null:e.errors.required)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.data.category.des),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngModel",t.data.category.typ),r["\u0275\u0275advance"](8),r["\u0275\u0275property"]("heading","Category Icon")("icon",t.data.category.icn)("color",t.data.category.clr)("bg",t.data.category.bg),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("heading"," Icon Color")("color",t.data.category.clr),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("heading"," Icon Backgroun
1d Color")("color",t.data.category.bg)}},directives:[md,Hh,Fd,Rh,gd,Fp,qp,kd,ep,Jh,Nd,Vh,Y,zg,$g,Zf,im,yd,cm,Ep],styles:[""]}),e})();const ey=["row","column","row-reverse","column-reverse"];function ty(e){e=e?e.toLowerCase():"";let[t,n,i]=e.split(" ");return ey.find(e=>e===t)||(t=ey[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[t,iy(n),!!i]}function ny(e){let[t]=ty(e);return t.indexOf("row")>-1}function iy(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}let ry=(()=>{class e extends Rf{buildStyles(e){return function(e){let[t,n,i]=ty(e);return function(e,t=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(t,n,i)}(e)}}return e.\u0275fac=function(t){return oy(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();const oy=r["\u0275\u0275getInheritedFactory"](ry),sy=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let ay=(()=>{class e extends uf{constructor(e,t,n,i){super(e,n,t,i),this.DIRECTIVE_KEY="layout",this.styleCache=u
1y,this.init()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](ry),r["\u0275\u0275directiveInject"](Pf))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),ly=(()=>{class e extends ay{constructor(){super(...arguments),this.inputs=sy}}return e.\u0275fac=function(t){return cy(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const cy=r["\u0275\u0275getInheritedFactory"](ly),uy=new Map,dy={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let hy=(()=>{class e extends Rf{constructor(e){super(),this._styler=e}buildStyles(e,t){return e.endsWith(wy)?function(e,t){let n="0px",i="0px";return"rtl"===t?i="-"+e:n="-"+e,{margin:`0px ${n} ${"-"+e} ${i}`}}(e=e.slice(0,e.indexOf(wy)),t.directionality):{}}sideEffect(e,t,n){const i=n.items;if(e.endsWith(wy)){const t=function(e,t){let n="0px",i="0px";return"rtl"===t?i=e:n=e,{padding:`0px ${n} ${e} ${i}`}}(e=e.slice(0,e.indexOf(wy)),n.directionality);this._styler.applyStyleToElements(t,n.items)}else{const t=i.pop(),r=function(e,t){const n=Cy(t.directionality,t.layout),i=Object.assign({},dy);return i[n]=e,i}(e,n);this._styler.applyStyleToElements(r,i),this._styler.applyStyleToElements(dy,[t])}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](If))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(If))},token:e,providedIn:"root"}),e})();const py=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let fy=(()=>{class e extends uf{constructor(e,t,n,i,r,o){super(e,r,i,o),this.zone=t,this.directionality=n,this.styleUtils=i,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new Ge.a;const s=[this.directionality.change,this.observerSubject.asObservable()];this.init(s),this.marshal.trackValue(this.nativeElement,"layout").pipe(us(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,t=[];for(let n=e.length;n--;)t[n]=e[n];return t}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const t=e.value.split(" ");this.layout=t[0],ey.find(e=>e===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const t=this.childrenNodes.filter(e=>1===e.nodeType&&this.willDisplay(e)).sort((e,t)=>{const n=+this.styler.lookupStyle(e,"order"),i=+this.styler.lookupStyle(t,"order");return isNaN(n)||isNaN(i)||n===i?0:n>i?1:-1});if(t.length>0){const n=this.directionality.value,i=this.layout;"row"===i&&"rtl"===n?this.styleCache=yy:"row"===i&&"rtl"!==n?this.styleCache=_y:"column"===i&&"rtl"===n?this.styleCache=vy:"column"===i&&"rtl"!==n&&(this.styleCache=by),this.addStyles(e,{directionality:n,items:t,layout:i})}}clearStyles(){const e=Object.keys(this.mru).length>0,t=e?"padding":Cy(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[t]:""},this.childrenNodes)}willDisplay(e){const t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(e=>e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](Cs),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](hy),r["\u0275\u0275directiveInject"](Pf))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),my=(()=>{class e extends fy{constructor(){super(...arguments),this.inputs=py}}return e.\u0275fac=function(t){return gy(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm"
1:"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const gy=r["\u0275\u0275getInheritedFactory"](my),yy=new Map,vy=new Map,_y=new Map,by=new Map,wy=" grid";function Cy(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function Ey(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(let n of t)if(null!=n)for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}let Sy=(()=>{class e extends Rf{constructor(e){super(),this.layoutConfig=e}buildStyles(e,t){let[n,i,...r]=e.split(" "),o=r.join(" ");const s=t.direction.indexOf("column")>-1?"column":"row",a=ny(s)?"max-width":"max-height",l=ny(s)?"min-width":"min-height",c=String(o).indexOf("calc")>-1,u=c||"auto"===o,d=String(o).indexOf("%")>-1&&!c,h=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1;let p=c||h;n="0"==n?0:n,i="0"==i?0:i;const f=!n&&!i;let m={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":const e=!1!==this.layoutConfig.useColumnBasisZero;o="row"===s?"0%":e?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,o="auto";break;case"grow":o="100%";break;case"noshrink":i=0,o="auto";break;case"auto":break;case"none":n=0,i=0,o="auto";break;default:p||d||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),m=Ey(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":p?o:"100%"}:{flex:`${n} ${i} ${p?o:"100%"}`})}return m.flex||m["flex-grow"]||(m=Ey(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":o}:{flex:`${n} ${i} ${o}`})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[l]=f||p&&n?o:null,m[a]=f||!u&&i?o:null),m[l]||m[a]?t.hasWrap&&(m[c?"flex-basis":"flex"]=m[a]?c?m[a]:`${n} ${i} ${m[a]}`:c?m[l]:`${n} ${i} ${m[l]}`):m=Ey(g,c?{"flex-grow":n,"flex-shrink":i,"flex-basis":o}:{flex:`${n} ${i} ${o}`}),Ey(m,{"box-sizing":"border-box"})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](rf))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(rf))},token:e,providedIn:"root"}),e})();const Dy=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let xy=(()=>{class e extends uf{constructor(e,t,n,i,r){super(e,i,t,r),this.layoutConfig=n,this.DIRECTIVE_KEY="flex",this.direction="",this.wrap=!1,this.flexGrow="1",this.flexShrink="1",this.init(),this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(us(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(us(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}onLayoutChange(e){const t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}updateWithValue(e){this.direction||(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent));const t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=Ry:n&&!i?this.styleCache=ky:!n&&i?this.styleCache=My:n||i||(this.styleCache=Iy);const r=Mf(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const t=Mf(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](rf),r["\u0275\u0275directiveInject"](Sy),r["\u0275\u0275directiveInject"](Pf))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Ty=(()=>{class e extends xy{constructor(){super(...arguments),this.inputs=Dy}}return e.\u0275fac=function(t){return Oy(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1const Oy=r["\u0275\u0275getInheritedFactory"](Ty),ky=new Map,Iy=new Map,Ry=new Map,My=new Map,Ay={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let Py=(()=>{class e extends Rf{buildStyles(e){return Ay}}return e.\u0275fac=function(t){return Ly(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Ly=r["\u0275\u0275getInheritedFactory"](Py);let Ny=(()=>{class e extends uf{constructor(e,t,n,i){super(e,n,t,i),this.styleCache=Fy,this.addStyles("")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](Py),r["\u0275\u0275directiveInject"](Pf))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Fy=new Map;let jy=(()=>{class e extends Rf{buildStyles(e,t){const n={},[i,r]=e.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return Ey(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===r?ny(t.layout)?null:"100%":null,"max-height":"stretch"===r&&ny(t.layout)?"100%":null})}}return e.\u0275fac=function(t){return Vy(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Vy=r["\u0275\u0275getInheritedFactory"](jy),Hy=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Yy=(()=>{class e extends uf{constructor(e,t,n,i){super(e,n,t,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(us(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=Ky:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=Qy:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=$y:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=Xy:"column-reverse"!==t||n||(this.styleCache=qy):this.styleCache=Uy:this.styleCache=zy:this.styleCache=Wy,this.addStyles(e,{layout:t,inline:n})}onLayoutChange(e){const t=e.value.split(" ");this.layout=t[0],this.inline=e.value.includes("inline"),ey.find(e=>e===this.layout)||(this.layout="row"),this.triggerUpdate()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](If),r["\u0275\u0275directiveInject"](jy),r["\u0275\u0275directiveInject"](Pf))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),By=(()=>{class e extends Yy{constructor(){super(...arguments),this.inputs=Hy}}return e.\u0275fac=function(t){return Gy(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm"
1:"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Gy=r["\u0275\u0275getInheritedFactory"](By),Wy=new Map,Uy=new Map,zy=new Map,qy=new Map,Ky=new Map,$y=new Map,Qy=new Map,Xy=new Map;let Jy=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Zp,Es]]}),e})();const Zy=["trigger"],ev=["panel"];function tv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.placeholder||"\xa0")}}function nv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.triggerValue||"\xa0")}}function iv(e,t){1&e&&r["\u0275\u0275projection"](0,0,["*ngSwitchCase","true"])}function rv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span",9),r["\u0275\u0275template"](1,nv,2,1,"span",10),r["\u0275\u0275template"](2,iv,1,0,void 0,11),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngSwitch",!!e.customTrigger),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngSwitchCase",!0)}}function ov(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",12),r["\u0275\u0275elementStart"](1,"div",13,14),r["\u0275\u0275listener"]("@transformPanel.done",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._handleKeydown(t)})),r["\u0275\u0275projection"](3,1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("@transformPanelWrap",void 0),r["\u0275\u0275advance"](1),r["\u0275\u0275classMapInterpolate1"]("mat-select-panel ",e._getPanelTheme(),""),r["\u0275\u0275styleProp"]("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),r["\u0275\u0275property"]("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing")}}const sv=[[["mat-select-trigger"]],"*"],av=["mat-select-trigger","*"],lv={transformPanelWrap:Ka("transformPanelWrap",[el("* => void",nl("@transformPanel",[tl()],{optional:!0}))]),transformPanel:Ka("transformPanel",[Za("void",Ja({transform:"scaleY(0.8)",minWidth:"100%",opacity:0}
1)),Za("showing",Ja({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Za("showing-multiple",Ja({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),el("void => *",$a("120ms cubic-bezier(0, 0, 0.2, 1)")),el("* => void",$a("100ms 25ms linear",Ja({opacity:0})))])};let cv=0;const uv=new r.InjectionToken("mat-select-scroll-strategy"),dv={provide:uv,deps:[ha],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class hv{constructor(e,t){this.source=e,this.value=t}}class pv{constructor(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const fv=xu(Tu(Su(Ou(pv))));let mv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-select-trigger"]]}),e})(),gv=(()=>{class e extends fv{constructor(e,t,n,i,o,s,a,l,c,u,d,h,p){super(o,i,a,l,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=n,this._dir=s,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=p,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(e,t)=>e===t,this._uid=`mat-select-${cv++}`,this._destroy=new Ge.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Ge.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=nt(()=>{const e=this.options;return e?e.changes.pipe(jt(e),Pt(()=>Object(ts.a)(...e.map(e=>e.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(Tt(1),Pt(()=>this.optionSelectionChanges))}),this.openedChange=new r.EventEmitter,this._openedStream=this.openedChange.pipe(at(e=>e),Object(it.a)(()=>{}
1)),this._closedStream=this.openedChange.pipe(at(e=>!e),Object(it.a)(()=>{})),this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=$o(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=$o(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$o(e)}get compareWith(){return this._compareWith}set compareWith(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){e!==this._value&&(this.writeValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qo(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ss(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ns(),us(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(us(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(us(this._destroy)).subscribe(e=>{e.added.forEach(e=>e.select()),e.removed.forEach(e=>e.deselect())}),this.options.changes.pipe(jt(null),us(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.options&&this._setSelectionByValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(e=>e.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Bs(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;36===t||35===t?(36===t?r.setFirstItemActive():r.setLastItemActive(),e.preventDefault()):r.onKeydown(e);const i=this.selected;i&&n!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(36===n||35===n)e.preventDefault(),36===n?t.setFirstItemActive():t.setLastItemActive();else if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Bs(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();const t=this.options.some(e=>!e.disabled&&!e.selected);
1this.options.forEach(e=>{e.disabled||(t?e.select():e.deselect())})}else{const n=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==n&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Tt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach(e=>this._selectValue(e)),this._sortValues()}else{this._selectionModel.clear();const t=this._selectValue(e);t?this._keyManager.setActiveItem(t):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(t=>{try{return null!=t.value&&this._compareWith(t.value,e)}catch(n){return Object(r.isDevMode)()&&console.warn(n),!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Oa(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(us(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(us(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Object(ts.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(us(e)).subscribe(e=>{this._onSelect(e.source,e.isUserInput),e.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(ts.a)(...this.options.map(e=>e._stateChanges)).pipe(us(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(e,t){const n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new hv(this,t)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(e=>e.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const e=this._keyManager.activeItemIndex||0,t=Zu(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=function(e,t,n,i){const r=e*t;return r<n?r:r+t>n+256?Math.max(0,r-256+t):n}(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop)}focus(e){this._elementRef.nativeElement.focus(e)}_getOptionIndex(e){return this.options.reduce((t,n,i)=>void 0===t?e===n?i:void 0:t,void 0)}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),i=t*e-n;let r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Zu(r,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(e,t,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}
1_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else{let e=this._selectionModel.selected[0]||this.options.first;r=e&&e.group?32:16}n||(r*=-1);const o=0-(e.left+r-(n?i:0)),s=e.right+r-t.width+(n?0:i);o>0?r+=o+8:s>0&&(r-=s+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,o=Math.floor(256/i);let s;return this._disableOptionCentering?0:(s=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-o))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*s-r))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;s>r?this._adjustPanelUp(s,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,n){const i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ts),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](Au),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](Rh,8),r["\u0275\u0275directiveInject"](Gh,8),r["\u0275\u0275directiveInject"](Fp,8),r["\u0275\u0275directiveInject"](Pd,10),r["\u0275\u0275injectAttribute"]("tabindex"),r["\u0275\u0275directiveInject"](uv),r["\u0275\u0275directiveInject"](ja))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(r["\u0275\u0275contentQuery"](n,mv,!0),r["\u0275\u0275contentQuery"](n,Ju,!0),r["\u0275\u0275contentQuery"](n,qu,!0)),2&e&&(r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.customTrigger=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.options=i),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.optionGroups=i))},viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](Zy,!0),r["\u0275\u0275viewQuery"](ev,!0),r["\u0275\u0275viewQuery"](ga,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.trigger=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.panel=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(e){return t._onFocus()}))("blur",(function(e){return t._onBlur()})),2&e&&(r["\u0275\u0275attribute"]("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),r["\u0275\u0275classProp"]("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:Dp,useExisting:e},{provide:Xu,useExisting:e}]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()],ngContentSelectors:av,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(r["\u0275\u0275projectionDef"](sv),r["\u0275\u0275elementStart"](0,"div",0,1),r["\u0275\u0275listener"]("click",(function(e){return t.toggle(
1)})),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275template"](4,tv,2,1,"span",3),r["\u0275\u0275template"](5,rv,3,2,"span",4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"div",5),r["\u0275\u0275element"](7,"div",6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](8,ov,4,10,"ng-template",7),r["\u0275\u0275listener"]("backdropClick",(function(e){return t.close()}))("attach",(function(e){return t._onAttached()}))("detach",(function(e){return t.close()}))),2&e){const e=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngSwitch",t.empty),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase",!0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase",!1),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[ma,U,z,ga,q,F],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[lv.transformPanelWrap,lv.transformPanel]},changeDetection:0}),e})(),yv=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[dv],imports:[[ne,va,ed,Eu],jp,ed,Eu]}),e})();const vv=function(e){return["budget-icon","icon",e]},_v=function(e,t,n){return{color:e,"background-color":t,border:n}};let bv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["budget-icon"]],inputs:{name:"name",icon:"icon",color:"color",background:"background"},decls:1,vars:9,consts:[[3,"title","ngClass","ngStyle"]],template:function(e,t){1&e&&r["\u0275\u0275element"](0,"span",0),2&e&&r["\u0275\u0275property"]("title",t.name)("ngClass",r["\u0275\u0275pureFunction1"](3,vv,"icon-"+t.icon||!1))("ngStyle",r["\u0275\u0275pureFunction3"](5,_v,t.color||"#000",t.background||"#fff","1px solid"+t.color||!1))},directives:[F,jf,K,zf],encapsulation:2}),e})();const wv=["mat-calendar-body",""];function Cv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"tr",2),r["\u0275\u0275elementStart"](1,"td",3),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275styleProp"]("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),r["\u0275\u0275attribute"]("colspan",e.numCols),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.label," ")}}function Ev(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"td",7),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275styleProp"]("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),r["\u0275\u0275attribute"]("colspan",e._firstRowOffset),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Sv(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"td",8),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.$implicit;return r["\u0275\u0275nextContext"](2)._cellClicked(i)})),r["\u0275\u0275elementStart"](1,"div",9),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=r["\u0275\u0275nextContext"]().index,o=r["\u0275\u0275nextContext"]();r["\u0275\u0275styleProp"]("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),r["\u0275\u0275classProp"]("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(i,n)),r["\u0275\u0275property"]("ngClass",e.cssClasse
1s)("tabindex",o._isActiveCell(i,n)?0:-1),r["\u0275\u0275attribute"]("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-selected",o.selectedValue===e.value),r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("mat-calendar-body-selected",o.selectedValue===e.value)("mat-calendar-body-today",o.todayValue===e.value),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.displayValue," ")}}function Dv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"tr",4),r["\u0275\u0275template"](1,Ev,2,6,"td",5),r["\u0275\u0275template"](2,Sv,3,20,"td",6),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=t.index,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",0===n&&i._firstRowOffset),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e)}}function xv(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"th",5),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275attribute"]("aria-label",e.long),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.narrow)}}const Tv=["*"];function Ov(e,t){}function kv(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mat-month-view",5),r["\u0275\u0275listener"]("activeDateChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().activeDate=t}))("selectedChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._dateSelected(t)}))("_userSelection",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._userSelected()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Iv(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mat-year-view",6),r["\u0275\u0275listener"]("activeDateChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().activeDate=t}))("monthSelected",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._goToDateInView(t,"month")})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)}}function Rv(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mat-multi-year-view",7),r["\u0275\u0275listener"]("activeDateChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().activeDate=t}))("yearSelected",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._goToDateInView(t,"year")})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)}}const Mv=["button"];function Av(e,t){1&e&&(r["\u0275\u0275namespaceSVG"](),r["\u0275\u0275elementStart"](0,"svg",3),r["\u0275\u0275element"](1,"path",4),r["\u0275\u0275elementEnd"]())}const Pv=[[["","matDatepickerToggleIcon",""]]],Lv=["[matDatepickerToggleIcon]"];function Nv(e){return Error(`MatDatepicker: No provider found for ${e}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let Fv=(()=>{class e{constructor(){this.changes=new Ge.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 
1years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();class jv{constructor(e,t,n,i,r={}){this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=i,this.cssClasses=r}}let Vv=(()=>{class e{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new r.EventEmitter}_cellClicked(e){e.enabled&&this.selectedValueChange.emit(e.value)}ngOnChanges(e){const t=e.numCols,{rows:n,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),!t&&this._cellWidth||(this._cellWidth=`${100/i}%`)}_isActiveCell(e,t){let n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()})})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[r["\u0275\u0275NgOnChangesFeature"]()],attrs:wv,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell","role","button",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell","role","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,Cv,3,6,"tr",0),r["\u0275\u0275template"](1,Dv,3,2,"tr",1)),2&e&&(r["\u0275\u0275property"]("ngIf",t._firstRowOffset<t.labelMinRequiredCells),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.rows))},directives:[Y,V,F],styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n"],encapsulation:2,changeDetection:0}),e})(),Hv=(()=>{class e{constructor(e,t,n,i){if(this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=$t.a.EMPTY,this.selectedChange=new r.EventEmitter,this._userSelection=new r.EventEmitter,this.activeDateChange=new r.EventEmitter,!this._dateAdapter)throw Nv("DateAdapter");if(!this._dateFormats)throw Nv("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}
1get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){if(this._selectedDate!=e){const t=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(t,n,e);this.selectedChange.emit(i)}this._userSelection.emit()}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),e.preventDefault()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((e,n)=>({long:e,narrow:t[n]}));this._weekdays=n.slice(e).concat(n.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(e),o=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(e):void 0;this._weeks[this._weeks.length-1].push(new jv(n+1,t[n],o,r,s))}}_shouldEnableDate(e){return!!e&&(!this.dateFilter||this.dateFilter(e))&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ru,8),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Cs,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-month-view"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Vv,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"table",0),r["\u0275\u0275elementStart"](1,"thead",1),r["\u0275\u0275elementStart"](2,"tr"),r["\u0275\u0275template"](3,xv,2,2,"th",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"tr"),r["\u0275\u0275element"](5,"th",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"tbody",4),r["\u0275\u0275listener"]("selectedValueChange",(function(e){return t._dateSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngForOf",t._weekdays),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("selectedValue",t._selectedDate)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[V,Vv],encapsulation:2,changeDetection:0}),e})(),Yv=(()=>{class e{constructor(e,t,n){if(this._changeDetectorRef=e,this._dateAdapter=t,this._dir=n,this._rerenderSubscription=$t.a.EMPTY,this.selectedChange=new r.EventEmitter,this.yearSelected=new r.EventEmitter,this.activeDateChange=new r.EventEmitter,!this._dateAdapter)throw Nv("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Bv(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}
1get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const e=this._dateAdapter.getYear(this._activeDate)-Gv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,n=[];t<24;t++)n.push(e+t),4==n.length&&(this._years.push(n.map(e=>this._createCellForYear(e))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let t=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));this.selectedChange.emit(this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Gv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Gv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_getActiveCell(){return Gv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){let t=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return new jv(e,t,t,this._shouldEnableYear(e))}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Cs,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-multi-year-view"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Vv,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:6,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","selectedValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"table",0),r["\u0275\u0275elementStart"](1,"thead",1),r["\u0275\u0275elementStart"](2,"tr"),r["\u0275\u0275element"](3,"th",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"tbody",3),r["\u0275\u0275listener"]("selectedValueChange",(function(e){return t._yearSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("rows",t._years)("todayValue",t._todayYear)("selectedValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},directives:[Vv],encapsulation:2,changeDetection:0}),e})();function Bv(e,t,n,i,r){const o=e.getYear(t),s=e.getYear(n),a=Wv(e,i,r);return Math.floor((o-a)/24)===Math.floor((s-a)/24)}function Gv(e,t,n,i){return((e.getYear(t)-Wv(e,n,i))%24+24)%24}function Wv(e,t,n){let i=0;return n?i=e.getYear(n)-24+1:t&&(i=e.getYear(t)),i}let Uv=(()=>{class e{constructor(e,t,n,i){if(this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=$t.a.EMPTY,this.selectedChange=new r.EventEmitter,this.monthSelected=new r.EventEmitter,this.activeDateChange=new r.EventEmitter,!this._dateAdapter)throw Nv("DateAdapter");if(!this._dateFormats)throw Nv("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}
1get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(t);const n=this._dateAdapter.getNumDaysInMonth(t);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),this._dateFormats.display.monthYearA11yLabel);return new jv(e,t.toLocaleUpperCase(),n,this._shouldEnableMonth(e))}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ru,8),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Cs,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-year-view"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Vv,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:8,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"table",0),r["\u0275\u0275elementStart"](1,"thead",1),r["\u0275\u0275elementStart"](2,"tr"),r["\u0275\u0275element"](3,"th",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"tbody",3),r["\u0275\u0275listener"]("selectedValueChange",(function(e){return t._monthSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("selectedValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},directives:[Vv],encapsulation:2,changeDetection:0}),e})(),zv=(()=>{class e{constructor(e,t,n,i,r){this._intl=e,this.calendar=t,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const e=this._dateAdapter.getYear(this.calendar.activeDate)-Gv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1
1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):Bv(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Fv),r["\u0275\u0275directiveInject"](Object(r.forwardRef)(()=>qv)),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Ru,8),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Tv,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"button",2),r["\u0275\u0275listener"]("click",(function(e){return t.currentPeriodClicked()})),r["\u0275\u0275text"](3),r["\u0275\u0275element"](4,"div",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](5,"div",4),r["\u0275\u0275projection"](6),r["\u0275\u0275elementStart"](7,"button",5),r["\u0275\u0275listener"]("click",(function(e){return t.previousClicked()})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"button",6),r["\u0275\u0275listener"]("click",(function(e){return t.nextClicked()})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275attribute"]("aria-label",t.periodButtonLabel),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",t.periodButtonText," "),r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("mat-calendar-invert","month"!=t.calendar.currentView),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("disabled",!t.previousEnabled()),r["\u0275\u0275attribute"]("aria-label",t.prevButtonLabel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",!t.nextEnabled()),r["\u0275\u0275attribute"]("aria-label",t.nextButtonLabel))},directives:[cm,Va],encapsulation:2,changeDetection:0}),e})(),qv=(()=>{class e{constructor(e,t,n,i){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new r.EventEmitter,this.yearSelected=new r.EventEmitter,this.monthSelected=new r.EventEmitter,this._userSelection=new r.EventEmitter,this.stateChanges=new Ge.a,
1!this._dateAdapter)throw Nv("DateAdapter");if(!this._dateFormats)throw Nv("MAT_DATE_FORMATS");this._intlChanges=e.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new Rs(this.headerComponent||zv),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const e=this._getCurrentViewComponent();e&&(this._changeDetectorRef.detectChanges(),e._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(e){e&&!this._dateAdapter.sameDate(e,this.selected)&&this.selectedChange.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_userSelected(){this._userSelection.emit()}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Fv),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Ru,8),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-calendar"]],viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](Hv,!0),r["\u0275\u0275viewQuery"](Uv,!0),r["\u0275\u0275viewQuery"](Yv,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.monthView=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.yearView=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[r["\u0275\u0275NgOnChangesFeature"]()],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,Ov,0,0,"ng-template",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275template"](2,kv,1,6,"mat-month-view",2),r["\u0275\u0275template"](3,Iv,1,5,"mat-year-view",3),r["\u0275\u0275template"](4,Rv,1,5,"mat-multi-year-view",4),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("cdkPortalOutlet",t._calendarHeaderPortal),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitch",t.currentView),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase","month"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase","year"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngSwitchCase","multi-year"))},directives:[Fs,Ba,U,z,Hv,Uv,Yv],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}
1.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),e})();const Kv={transformPanel:Ka("transformPanel",[Za("void",Ja({opacity:0,transform:"scale(1, 0.8)"})),el("void => enter",$a("120ms cubic-bezier(0, 0, 0.2, 1)",Ja({opacity:1,transform:"scale(1, 1)"}))),el("* => void",$a("100ms linear",Ja({opacity:0})))]),fadeInCalendar:Ka("fadeInCalendar",[Za("void",Ja({opacity:0})),Za("enter",Ja({opacity:1})),el("void => *",$a("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let $v=0;const Qv=new r.InjectionToken("mat-datepicker-scroll-strategy"),Xv={provide:Qv,deps:[ha],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};class Jv{constructor(e){this._elementRef=e}}const Zv=Du(Jv);let e_=(()=>{class e extends Zv{constructor(e){super(e)}ngAfterViewInit(){this._calendar.focusActiveCell()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](qv,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){2&e&&(r["\u0275\u0275updateSyntheticHostBinding"]("@transformPanel","enter"),r["\u0275\u0275classProp"]("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[r["\u0275\u0275InheritDefinitionFeature"]],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-calendar",0),r["\u0275\u0275listener"]("selectedChange",(function(e){return t.datepicker.select(e)}))("yearSelected",(function(e){return t.datepicker._selectYear(e)}))("monthSelected",(function(e){return t.datepicker._selectMonth(e)}))("_userSelection",(function(e){return t.datepicker.close()})),r["\u0275\u0275elementEnd"]()),2&e&&r["\u0275\u0275property"]("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._minDate)("maxDate",t.datepicker._maxDate)("dateFilter",t.datepicker._dateFilter)("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t.datepicker._selected)("dateClass",t.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[qv,La,F],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[Kv.transformPanel,Kv.fadeInCalendar]},changeDetection:0}),e})(),t_=(()=>{class e{constructor(e,t,n,i,o,s,a,l){if(this._dialog=e,this._overlay=t,this._ngZone=n,this._viewContainerRef
1=i,this._dateAdapter=s,this._dir=a,this._document=l,this.startView="month",this._touchUi=!1,this.yearSelected=new r.EventEmitter,this.monthSelected=new r.EventEmitter,this.openedStream=new r.EventEmitter,this.closedStream=new r.EventEmitter,this._opened=!1,this.id=`mat-datepicker-${$v++}`,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=$t.a.EMPTY,this._disabledChange=new Ge.a,this._selectedChanged=new Ge.a,!this._dateAdapter)throw Nv("DateAdapter");this._scrollStrategy=o}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=$o(e)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(e){const t=$o(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))}get opened(){return this._opened}set opened(e){e?this.open():this.close()}get _selected(){return this._validSelected}set _selected(e){this._validSelected=e}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null)}select(e){let t=this._selected;this._selected=e,this._dateAdapter.sameDate(t,this._selected)||this._selectedChanged.next(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_registerInput(e){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe(e=>this._selected=e)}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(e_,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new Rs(e_,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const e=new Xs({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(ts.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(at(e=>
127===e.keyCode||this._datepickerInput&&e.altKey&&38===e.keyCode))).subscribe(e=>{e&&e.preventDefault(),this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_setColor(){const e=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=e),this._dialogRef&&(this._dialogRef.componentInstance.color=e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](pd),r["\u0275\u0275directiveInject"](ha),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](Qv),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](l,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),e})();const n_={provide:Sd,useExisting:Object(r.forwardRef)(()=>o_),multi:!0},i_={provide:Vd,useExisting:Object(r.forwardRef)(()=>o_),multi:!0};class r_{constructor(e,t){this.target=e,this.targetElement=t,this.value=this.target.value}}let o_=(()=>{class e{constructor(e,t,n,i){if(this._elementRef=e,this._dateAdapter=t,this._dateFormats=n,this._formField=i,this.dateChange=new r.EventEmitter,this.dateInput=new r.EventEmitter,this._valueChange=new r.EventEmitter,this._disabledChange=new r.EventEmitter,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=$t.a.EMPTY,this._localeSubscription=$t.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!this.min||!t||this._dateAdapter.compareDate(this.min,t)<=0?null:{matDatepickerMin:{min:this.min,actual:t}}},this._maxValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!this.max||!t||this._dateAdapter.compareDate(this.max,t)>=0?null:{matDatepickerMax:{max:this.max,actual:t}}},this._filterValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return this._dateFilter&&t&&!this._dateFilter(t)?{matDatepickerFilter:!0}:null},this._validator=Bd.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Nv("DateAdapter");if(!this._dateFormats)throw Nv("MAT_DATE_FORMATS");this._localeSubscription=t.localeChanges.subscribe(()=>{this.value=this.value})}set matDatepicker(e){e&&(this._datepicker=e,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(e=>{this.value=e,this._cvaOnChange(e),this._onTouched(),this.dateInput.emit(new r_(this,this._elementRef.nativeElement)),this.dateChange.emit(new r_(this,this._elementRef.nativeElement))}))}set matDatepickerFilter(e){this._dateFilter=e,this._validatorOnChange()}get value(){return this._value}set value(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);const t=this.value;this._value=e,this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)}get min(){return this._min}set min(e){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._val
1idatorOnChange()}get max(){return this._max}set max(e){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(e){const t=$o(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t)),t&&n.blur&&n.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(e){this.value=e}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){this._datepicker&&e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=!n||this._dateAdapter.isValid(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this._value)?t!==this._lastValueValid&&this._validatorOnChange():(this._value=n,this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new r_(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new r_(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Iu,8),r["\u0275\u0275directiveInject"](Ru,8),r["\u0275\u0275directiveInject"](Fp,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",(function(e){return t._onInput(e.target.value)}))("change",(function(e){return t._onChange()}))("blur",(function(e){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)})),2&e&&(r["\u0275\u0275hostProperty"]("disabled",t.disabled),r["\u0275\u0275attribute"]("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[r["\u0275\u0275ProvidersFeature"]([n_,i_,{provide:Bp,useExisting:e}])]}),e})(),s_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matDatepickerToggleIcon",""]]}),e})(),a_=(()=>{class e{constructor(e,t,n){this._intl=e,this._changeDetectorRef=t,this._stateChanges=$t.a.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=$o(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker._disabledChange:Ye(),t=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Ye(),n=this.datepicker?Object(ts.a)(this.datepicker.openedStream,this.datepicker.closedStream):Ye();this._stateChanges.unsubscribe(),this._stateChanges=Object(ts.a)(this._intl.changes,e,t,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Fv),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275injectAttribute"]("tabindex"))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-datepicker-toggle"]],c
1ontentQueries:function(e,t,n){var i;1&e&&r["\u0275\u0275contentQuery"](n,s_,!0),2&e&&r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._customIcon=i.first)},viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Mv,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("focus",(function(e){return t._button.focus()})),2&e&&(r["\u0275\u0275attribute"]("tabindex",t.disabled?null:-1),r["\u0275\u0275classProp"]("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[r["\u0275\u0275NgOnChangesFeature"]()],ngContentSelectors:Lv,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](Pv),r["\u0275\u0275elementStart"](0,"button",0,1),r["\u0275\u0275listener"]("click",(function(e){return t._open(e)})),r["\u0275\u0275template"](2,Av,2,0,"svg",2),r["\u0275\u0275projection"](3),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("disabled",t.disabled)("disableRipple",t.disableRipple),r["\u0275\u0275attribute"]("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t._customIcon))},directives:[cm,Y],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e})(),l_=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[Fv,Xv],imports:[[ne,um,vd,va,Ua,Hs]]}),e})();function c_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",11),r["\u0275\u0275elementStart"](2,"span",4),r["\u0275\u0275text"](3,"on\xa0 "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"input",12),r["\u0275\u0275element"](5,"mat-datepicker-toggle",13),r["\u0275\u0275element"](6,"mat-datepicker",null,14),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](7);r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("matDatepicker",e),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("for",e)}}function u_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",15),r["\u0275\u0275element"](2,"input",16),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}function d_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",17),r["\u0275\u0275elementStart"](2,"mat-select",18),r["\u0275\u0275elementStart"](3,"mat-option",8),r["\u0275\u0275text"](4,"week/s"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"mat-option",8),r["\u0275\u0275text"](6,"month/s"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("value",!0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",!1))}function h_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.day),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function p_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",19),r["\u0275\u0275elementStart"](1,"mat-form-field",20),r["\u0275\u0275elementStart"](2,"span",4),r["\u0275\u0275text"](3,"on\xa0 "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"mat-select",21),r["\u0275\u0275template"](5,h_,2,2,"mat-option",22),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngForOf",e.weekdays)}}function f_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.date),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.name)}}function m_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",23),r["\u0275\u0275elementStart"](2,"span",4),r["\u0275\u0275text"](3,"on the\xa0 "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"mat-select",24),r["\u0275\u0275template"](5,f_,2,2,"mat-option",22),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngForOf",e.monthDates)}}function g_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",11),r["\u0275\u0275elementStart"](2,"span",4),r["\u0275\u0275text"](3,"from\xa0 "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](4,"input",25),r["\u0275\u0275element"](5,"mat-datepicker-toggle",13),r["\u0275\u0275element"](6,"mat-datepicker",null,26),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](7);r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("matDatepicker",e),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("for",e)}}function y_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",27),r["\u0275\u0275elementStart"](2,"mat-select",28),r["\u0275\u0275elementStart"](3,"mat-option",8),r["\u0275\u0275text"](4,"forever"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"mat-option",8),r["\u0275\u0275text"](6,"until"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("value",!1),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",!0))}function v_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"mat-form-field",29),r["\u0275\u0275element"](2,"input",30),r["\u0275\u0275element"](3,"mat-datepicker-toggle",13),r["\u0275\u0275element"](4,"mat-datepicker",null,31),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](5);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("matDatepicker",e),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("for",e)}}let __=(()=>{class e{constructor(){this.adjustedPayPeriods=[],this.monthDates=[],this.weekdays=[]}ngOnInit(){this.adjustedPayPeriods=[];for(let e=0;e<=365;e++)this.adjustedPayPeriods.push(e);this.weekdays=[{day:1,name:"Sun"},{day:2,name:"Mon"},{day:3,name:"Tue"},{day:4,name:"Wed"},{day:5,name:"Thu"},{day:6,name:"Fri"},{day:7,name:"Sat"}];for(let e=1;e<=31;e++){let t="th";if(e<=3||e>=20&&e<=23||31===e){const n=e.toString();switch(n[n.length-1]){case"1":case"31":t="st";break;case"2":t="nd";break;case"3":t="rd"}}e>=29&&(t+="/last"),this.monthDates.push({date:e,name:e+t})}}getWeekdayNames(e){let t=(e||[]).map(e=>this.weekdays.find(t=>t.day===e).name).join(", "),n=t.lastIndexOf(",");return n>
1-1&&(t=t.substring(0,n)+" &"+t.substring(n+1)),t}getMonthDateNames(e){let t=(e||[]).map(e=>this.monthDates.find(t=>t.date===e).name).join(", "),n=t.lastIndexOf(",");return n>-1&&(t=t.substring(0,n)+" &"+t.substring(n+1)),t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-schedule-form"]],inputs:{scheduleFormGroup:"scheduleFormGroup"},decls:22,vars:11,consts:[[3,"formGroup"],[1,"input-row"],[2,"float","left","margin-right","10px"],["floatLabel","never",2,"width","125px"],["matPrefix",""],["formControlName","amt","matInput","","placeholder","0.00","money","","required","","autocomplete","off"],["floatLabel","never",2,"width","65px"],["formControlName","rep","required",""],[3,"value"],["style","float:left;margin-right:10px",4,"ngIf"],["class","weekdays","style","float:left;margin-right:10px",4,"ngIf"],["floatLabel","never",2,"width","165px"],["formControlName","onDate","matInput","","placeholder","\xa0\xa0date","autocomplete","off","required","",2,"text-align","center",3,"matDatepicker"],["matSuffix","",3,"for"],["onPicker",""],["floatLabel","never",2,"width","45px","text-align","center"],["type","number","matInput","","formControlName","evy","placeholder","?","autocomplete","off","required",""],["floatLabel","never",2,"width","100px"],["formControlName","weekly","required","",2,"text-align","center"],[1,"weekdays",2,"float","left","margin-right","10px"],["floatLabel","never",1,"schedule-weekdays",2,"width","145px"],["formControlName","dys","placeholder","weekdays","multiple","","required",""],[3,"value",4,"ngFor","ngForOf"],["floatLabel","never",2,"width","180px"],["formControlName","dts","placeholder","dates","multiple","","required","",2,"text-align","center"],["formControlName","begDate","matInput","","placeholder","\xa0start date","autocomplete","off","required","",2,"text-align","center",3,"matDatepicker"],["begPicker",""],["floatLabel","never",2,"width","80px"],["formControlName","hasEnd","required",""],["floatLabel","never",2,"width","120px"],["formControlName","endDate","matInput","","placeholder","\xa0end date","autocomplete","off","required","",2,"text-align","center",3,"matDatepicker"],["endPicker",""]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"fieldset",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"mat-form-field",3),r["\u0275\u0275elementStart"](4,"span",4),r["\u0275\u0275text"](5,"Pay\xa0$\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](6,"input",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"div",2),r["\u0275\u0275elementStart"](8,"mat-form-field",6),r["\u0275\u0275elementStart"](9,"mat-select",7),r["\u0275\u0275elementStart"](10,"mat-option",8),r["\u0275\u0275text"](11,"once"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"mat-option",8),r["\u0275\u0275text"](13,"every"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,c_,8,2,"div",9),r["\u0275\u0275template"](15,u_,3,0,"div",9),r["\u0275\u0275template"](16,d_,7,2,"div",9),r["\u0275\u0275template"](17,p_,6,1,"div",10),r["\u0275\u0275template"](18,m_,6,1,"div",9),r["\u0275\u0275template"](19,g_,8,2,"div",9),r["\u0275\u0275template"](20,y_,7,2,"div",9),r["\u0275\u0275template"](21,v_,6,2,"div",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("formGroup",t.scheduleFormGroup),r["\u0275\u0275advance"](10),r["\u0275\u0275property"]("value",!1),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",!0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.scheduleFormGroup.controls.rep.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value&&t.scheduleFormGroup.controls.weekly.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value&&!t.scheduleFormGroup.controls.weekly.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.scheduleFormGroup.controls.rep.value&&t.scheduleFormGroup.controls.hasEnd.value))},directives:[Fd,Gh,Fp,Rp,kd,qp,Nd,Qh,Qp,Jh,gv,Ju,Y,o_,a_,Mp,t_,$d,V],styles:["./schedule-form.component.scss"]}),e})();function b_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1," Please correct form errors. "),r["\u0275\u0275elementEnd"]())}function w_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function C_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,w_,2,0,"div",3),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("nm"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function E_(e,t){1&e&&r["\u0275\u0275element"](0,"span",26)}function S_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",23),r["\u0275\u0275element"](1,"budget-icon",24),r["\u0275\u0275template"](2,E_,1,0,"span",25),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("name",e.nm)("icon",e.icn||"layout-none")("color",e.clr||"#ccc")("background",e.bg),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.par),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.nm," ")}}function D_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function x_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,D_,2,0,"div",3),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("cat"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function T_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]().$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.nm)}}function O_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",23),r["\u0275\u0275element"](1,"budget-icon",27),r["\u0275\u0275text"](2," \xa0 "),r["\u0275\u0275template"](3,T_,2,1,"span",3),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("name",e.nm)("icon",e.icn||"layout-none")("color",e.clr||"#ccc")("background",e.bg),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e)}}function k_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function I_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,k_,2,0,"div",3),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("act"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function R_(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",28),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().addSchedule()})),r["\u0275\u0275elementStart"](1,"mat-icon",29),r["\u0275\u0275text"](2,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3," Add "),r["\u0275\u0275elementEnd"]()}}function M_(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",30),r["\u0275\u0275text"](1),r["\u0275\u0275elementStart"](2,"a",31),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().clearScheduleEventChanges()})),r["\u0275\u0275text"](3,"clear the changes"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4," to re-enable editing. "),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate2"](" Schedules are disabled because ",e.changeCount," ",1===e.changeCount?"event has":"events have"," been modified. You can ")}}function A_(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",21),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"](2).index;return r["\u0275\u0275nextContext"]().deleteSchedule(n)})),r["\u0275\u0275elementStart"](1,"mat-icon",35),r["\u0275\u0275text"](2,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3," Remove"),r["\u0275\u0275elementEnd"]()}}function P_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275template"](1,A_,4,0,"button",34),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.frm.get("sch").controls.length>1)}}function L_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",32),r["\u0275\u0275elementStart"](2,"div",6),r["\u0275\u0275element"](3,"a
1pp-schedule-form",33),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](4,P_,2,1,"div",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=t.index,n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("scheduleFormGroup",n.frm.get("sch").controls[e]),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.changeCount<=0)}}let N_=(()=>{class e{constructor(e,t,n,i){this.formBuilder=e,this.dialogRef=t,this.dataService=n,this.data=i,this.title="",this.valid=!0,this.changes=[],this.subscriptions=[],this.sortedCategories=[],this.sortedAccounts=[],this.suppressValueChangeSubscriptions=!1,this.data.isCancel=!1}ngOnInit(){this.frm=this.createItemFormGroup(this.data.item),this.data.isNew?(this.title="Edit Item",this.bindExistingSchedules()):(this.title="Add Item",this.addSchedule()),this.sortedAccounts=this.dataService.snapshot.accounts.sort((e,t)=>e.nm>t.nm?1:-1),this.sortedCategories=this.dataService.snapshot.categories.sort((e,t)=>e.nm>t.nm?1:-1)}checkForEventChanges(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.changeCount=this.dataService.getCountOfItemChanges(this.data.item.id)}))}clearScheduleEventChanges(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){confirm("Are you sure you want to clear all changes to this item's scheduled events?")&&(yield this.dataService.deleteChangesForItem(this.data.item.id),delete this.data.item.res,delete this.data.item.del,this.changeCount=this.dataService.getCountOfItemChanges(this.data.item.id))}))}createItemFormGroup(e){return this.formBuilder.group({nm:[e?e.nm:"",Bd.required],des:[e?e.des:""],act:[e?e.act:"",Bd.required],cat:[e?e.cat:"",Bd.required],auto:[!!e.auto],sch:this.formBuilder.array([])})}createScheduleFormGroup(e){e.amtFormatted=bd(e.amt);let t=this.formBuilder.group({amt:[{value:e.amtFormatted||"",disabled:this.changeCount>0},Bd.required],rep:[{value:!!e.rep,disabled:this.changeCount>0},Bd.required],onDate:[{value:e.onDate||"",disabled:this.changeCount>0},Bd.required],evy:[{value:e.evy||"",disabled:this.changeCount>0},[Bd.required,Bd.min(1),Bd.max(999)]],weekly:[{value:!!e.weekly,disabled:this.changeCount>0},Bd.required],dys:[{value:e.dys||"",disabled:this.changeCount>0},Bd.required],dts:[{value:e.dts||"",disabled:this.changeCount>0},Bd.required],begDate:[{value:e.begDate||"",disabled:this.changeCount>0},Bd.required],hasEnd:[{value:!!e.hasEnd,disabled:this.changeCount>0},Bd.required],endDate:[{value:e.endDate||"",disabled:this.changeCount>0},Bd.required]});this.updateScheduleValidators(t),t.get("rep").valueChanges.subscribe(()=>{this.suppressValueChangeSubscriptions||this.updateScheduleValidators(t)}),t.get("weekly").valueChanges.subscribe(()=>{this.suppressValueChangeSubscriptions||this.updateScheduleValidators(t)}),t.get("hasEnd").valueChanges.subscribe(()=>{this.suppressValueChangeSubscriptions||this.updateScheduleValidators(t)});let n=this.dataService.changes.subscribe(()=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.checkForEventChanges(),this.updateScheduleValidators(t)})));this.subscriptions.push(n);let i=this.dataService.items.subscribe(()=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.checkForEventChanges(),this.updateScheduleValidators(t)})));return this.subscriptions.push(i),t}updateScheduleValidators(e){this.suppressValueChangeSubscriptions=!0;let t=e.get("amt"),n=e.get("rep"),i=e.get("onDate"),r=e.get("evy"),o=e.get("weekly"),s=e.get("hasEnd"),a=e.get("dys"),l=e.get("dts"),c=e.get("begDate"),u=e.get("endDate");this.changeCount>0?(t.disable(),n.disable(),i.disable(),r.disable(),o.disable(),s.disable(),a.disable(),l.disable(),c.disable(),u.disable()):(t.enabled||t.enable(),n.enabled||n.enable(),n.value||i.enabled?n.value&&i.enabled&&i.disable():i.enable(),n.value&&!r.enabled?r.enable():!n.value&&r.enabled&&r.disable(),n.value&&!o.enabled?o.enable():!n.value&&o.enabled&&o.disable(),n.value&&o.value&&!a.enabled?a.enable():n.value&&o.value||!a.enabled||a.disable(),!n.value||o.value||l.enabled?n.value&&!o.value||!l.enabled||l.disable():l.enable(),n.value&&!c.enabled?c.enable():!n.value&&c.enabled&&c.disable(),n.value&&!s.enabled?s.enable():!n.value&&s.enabled&&s.disable(),n.value&&s.value&&!u.enabled?u.enable():n.value&&s.value||!u.enabled||u.disable()),this.suppressValueChangeSubscriptions=!1}bindExistingSchedules(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.checkForEventChanges();for(let e of this.data.item.sch){let t=this.createScheduleFormGroup(e);this.frm.get("sch").push(t)}}))}addSchedule(){let e={rep:!1,evy:1,weekly:!1,hasEnd:!1};this.data.item.sch.push(e);let t=this.createScheduleFormGroup(e);this.frm.get("sch").push(t)}deleteSchedule(e){this.frm.get("sch").removeAt(e)}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}areControlsValid(e){let t=!0;return Object.keys(e).forEach(n=>{const i=e[n].errors;
1null!=i&&(t=!1,Object.keys(i).forEach(e=>{console.log("Key control: "+n+", keyError: "+e+", err value: ",i[e])}))}),t}save(){this.valid=!0,this.frm.markAllAsTouched(),this.frm.updateValueAndValidity(),this.areControlsValid(this.frm.controls)||(this.valid=!1);for(let e of this.frm.get("sch").controls)e.markAllAsTouched(),e.updateValueAndValidity(),this.areControlsValid(e.controls)||(this.valid=!1);if(this.valid){this.data.item=Object.assign(Object.assign({},this.data.item),this.frm.value);for(let e=0;e<this.data.item.sch.length;e++){let t=this.frm.get("sch").controls[e],n=Object.assign(Object.assign({},t.value),{amt:Number(t.value.amt)});this.data.item.sch[e]=n}this.data.isCancel=!1,this.dialogRef.close(this.data)}}ngOnDestroy(){if(this.subscriptions.length>0)for(let e of this.subscriptions)e&&e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](np),r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-item-dialog"]],decls:41,vars:11,consts:[["mat-dialog-title",""],["novalidate","",3,"formGroup","ngSubmit"],["mat-dialog-content",""],[4,"ngIf"],["fxLayout","column"],[1,"input-row"],["fxFlex",""],[2,"width","100%"],["name","itemName","matInput","","formControlName","nm","placeholder","Item name","maxlength","50","cdkFocusInitial","","required","","autocomplete","off"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","20px","fxLayoutGap.lt-sm","0px",1,"input-row"],["placeholder","Category","formControlName","cat","required",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","Account","formControlName","act","required",""],["name","autopay","formControlName","auto"],[1,"hint-text",2,"padding-left","24px","margin-top","-5px"],["rows","3","matInput","","formControlName","des","placeholder","Notes (optional)","autocomplete","off","maxlength","250"],[2,"margin","5px 0 10px 0"],["mat-button","","type","button","style","position:relative;top:-5px;margin-left:10px",3,"click",4,"ngIf"],["class","mat-typography",4,"ngIf"],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","type","button",3,"click"],["mat-button","","type","submit"],[3,"value"],[2,"margin-right","10px",3,"name","icon","color","background"],["class","nested-category",4,"ngIf"],[1,"nested-category"],[3,"name","icon","color","background"],["mat-button","","type","button",2,"position","relative","top","-5px","margin-left","10px",3,"click"],["aria-hidden","false","aria-label","Add"],[1,"mat-typography"],["href","javascript:;",3,"click"],["fxLayout","column","fxLayoutGap","5px","fxLayoutAlign","left"],[3,"scheduleFormGroup"],["mat-button","","type","button",3,"click",4,"ngIf"],["aria-hidden","false","aria-label","Delete"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"form",1),r["\u0275\u0275listener"]("ngSubmit",(function(e){return t.save()})),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275template"](4,b_,2,0,"mat-error",3),r["\u0275\u0275elementStart"](5,"div",4),r["\u0275\u0275elementStart"](6,"div",5),r["\u0275\u0275elementStart"](7,"div",6),r["\u0275\u0275elementStart"](8,"mat-form-field",7),r["\u0275\u0275element"](9,"input",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](10,C_,2,1,"mat-error",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](11,"div",9),r["\u0275\u0275elementStart"](12,"div",6),r["\u0275\u0275elementStart"](13,"mat-form-field"),r["\u0275\u0275elementStart"](14,"mat-select",10),r["\u0275\u0275template"](15,S_,4,7,"mat-option",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,x_,2,1,"mat-error",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"div",6),r["\u0275\u0275elementStart"](18,"mat-form-field"),r["\u0275\u0275elementStart"](19,"mat-select",12),r["\u0275\u0275template"](20,O_,4,6,"mat-option",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,I_,2,1,"mat-error",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"div",5),r["\u0275\u0275elementStart"](23,"mat-checkbox",13),r["\u0275\u0275text"](24,"Autopay"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](25,"div",14),r["\u0275\u0275text"](26," Check this if payments are made automatically on the due date. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](27,"div",5),r["\u0275\u0275elementStart"](28,"mat-form-field",6),r["\u0275\u0275elementStart"](29,"textarea",15),r["\u0275\u0275text"](30,"                    "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](31,"h2",16),r["\u0275\u0275text"](32,"Schedules "),r["\u0275\u0275template"](33,R_,4,0,"button",17),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](34,M_,5,2,"div",18),r["\u0275\u0275template"](35,L_,5,2,"div",19),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"div",20),r["\u0275\u0275elementStart"](37,"button",21),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](38,"Cancel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](39,"button",22),r["\u0275\u0275text"](40,"Save"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.title),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("formGroup",t.frm),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.valid),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngIf",t.frm.get("nm").invalid&&t.frm.get("nm").touched),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngForOf",t.sortedCategories),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.frm.get("cat").invalid&&t.frm.get("cat").touched),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngForOf",t.sortedAccounts),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.frm.get("act").invalid&&t.frm.get("act").touched),r["\u0275\u0275advance"](12),r["\u0275\u0275property"]("ngIf",t.changeCount<=0&&t.frm.get("sch").controls.length<5),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.changeCount>0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.frm.get("sch").controls))},directives:[md,Hh,Fd,Gh,gd,Y,ly,Ty,Fp,qp,kd,Nd,Qh,ep,Jh,my,gv,V,Eg,yd,cm,Ep,Ju,bv,ug,By,__],styles:[""]}),e})(),F_=(()=>{class e{transform(e){let t="",n=e%10,i=e%100;return!e||e<1?e.toString():(t=1===n&&11!==i?"st":2===n&&12!==i?"nd":3===n&&13!==i?"rd":"th",e+t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"ordinal",type:e,pure:!0}),e})();function j_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1," Please correct form errors. "),r["\u0275\u0275elementEnd"]())}function V_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function H_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,V_,2,0,"div",5),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("nm"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function Y_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.frm.get("amt").errors.money," ")}}function B_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function G_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,Y_,2,1,"div",5),r["\u0275\u0275template"](2,B_,2,0,"div",5),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();var n;const t=null==(n=e.frm.get("amt"))?null:null==n.errors?null:n.errors.money;var i;const o=null==(i=e.frm.get("amt"))?null:null==i.errors?null:i.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",o)}}function W_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function U_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,W_,2,0,"div",5),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("payOn"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function z_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]().$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.nm)}}function q_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",36),r["\u0275\u0275element"](1,"budget-icon",37),r["\u0275\u0275text"](2," \xa0 "),r["\u0275\u0275template"](3,z_,2,1,"span",5),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("name",e.nm)("icon",e.icn)("color",e.clr)("background",e.bg),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e)}}function K_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function $_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,K_,2,0,"div",5),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("act"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function Q_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]().$implicit;r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.nm)}}function X_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",36),r["\u0275\u0275element"](1,"budget-icon",37),r["\u0275\u0275text"](2," \xa0 "),r["\u0275\u0275template"](3,Q_,2,1,"span",5),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e.id),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("name",e.nm)("icon",e.icn)("color",e.clr)("background",e.bg),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e)}}function J_(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1," Required "),r["\u0275\u0275elementEnd"]())}function Z_(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275template"](1,J_,2,0,"div",5),r["\u0275\u0275elementEnd"]()),2&e){var n;const e=null==(n=r["\u0275\u0275nextContext"]().frm.get("cat"))?null:null==n.errors?null:n.errors.required;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e)}}function eb(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"span",38),r["\u0275\u0275text"](2,"Scheduled"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](3,": A payment still needs to be made on the scheduled due date (or after the due date if it's a late payment). "),r["\u0275\u0275elementEnd"]())}function tb(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"p"),r["\u0275\u0275elementStart"](2,"span",38),r["\u0275\u0275text"](3,"Paid/Spent"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4,": A payment was made (or money was spent) but the amount has not yet been deducted from your actual account balance. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"p"),r["\u0275\u0275text"](6," When saved, this event will show a checkmark in the "),r["\u0275\u0275elementStart"](7,"span",39),r["\u0275\u0275text"](8,"Paid"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](9," column of the "),r["\u0275\u0275elementStart"](10,"span",39),r["\u0275\u0275text"](11,"Planner"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](12,", and the amount will continue to be included in the budget calculations. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}function nb(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"p"),r["\u0275\u0275elementStart"](2,"span",38),r["\u0275\u0275text"](3,"Resolved"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4,": The amount for this item has been added or subtracted to/from your actual account balance. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"p"),r["\u0275\u0275text"](6," When saved, this event will be removed from the "),r["\u0275\u0275elementStart"](7,"span",39),r["\u0275\u0275text"](8,"Planner"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](9," so it is no longer included in the budget calculations, and then added to your history report. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"p"),r["\u0275\u0275text"](11," * The amount will also be added or subtracted to/from your account balance in the accounts tab. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}let ib=(()=>{class e{constructor(e,t,n,i,r){this.formBuilder=e,this.dialogRef=t,this.dataService=n,this.dialogService=i,this.data=r,this.title="",this.valid=!0,this.title="Edit Item Event",this.data.isCancel=!1,this.frm=this.createItemFormGroup(this.data.itemEvent)}createItemFormGroup(e){return e.amtFormatted=bd(e.amt),this.formBuilder.group({nm:[e.nm,Bd.required],des:[e?e.des:""],amt:[e.amtFormatted,[Bd.required,new Qp]],act:[e.account?e.account.id:"",Bd.required],cat:[e.category?e.category.id:"",Bd.required],sts:[e.sts,Bd.required],payOn:[e.payOn,Bd.required]})}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}save(){if(this.valid=!0,this.frm.markAllAsTouched(),this.frm.updateValueAndValidity(),this.frm.valid||(this.valid=!1),this.valid){let e=Object.assign({},this.frm.value);e.act&&(e.account=this.dataService.snapshot.accounts.find(t=>
1t.id===e.act),delete e.act),e.cat&&(e.category=this.dataService.snapshot.categories.find(t=>t.id===e.cat),delete e.cat),this.data.itemEvent=Object.assign(Object.assign(Object.assign({},this.data.itemEvent),e),{amt:Number(e.amt)}),this.data.isCancel=!1,this.dialogRef.close(this.data)}}editItem(){this.cancel(),this.dialogService.showItemDialog(this.dataService.snapshot.selectedItemEvent.item)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](np),r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-item-event-dialog"]],decls:69,vars:22,consts:[["mat-dialog-title",""],[1,"mat-typography","hint-text",2,"margin-bottom","20px"],["href","javascript:;",3,"click"],["novalidate","",3,"formGroup","ngSubmit"],["mat-dialog-content",""],[4,"ngIf"],["fxLayout","column"],[1,"input-row"],[2,"width","100%"],["matInput","","formControlName","nm","placeholder","Name *","maxlength","50","autocomplete","off","cdkFocusInitial",""],["fxLayout","row","fxLayout.lt-sm","column wrap","fxLayoutGap","20px","fxLayoutGap.lt-sm","0px",1,"input-row"],["fxFlex","calc(50% - 20px)","fxFlex.lt-sm","100%"],["matPrefix",""],["placeholder","Amount","formControlName","amt","matInput","","money","","required","","autocomplete","off"],["formControlName","payOn","matInput","","placeholder","Pay On","autocomplete","off","required","",3,"matDatepicker"],["matSuffix","",3,"for"],["touchUi",""],["onPicker",""],["placeholder","Account","formControlName","act","required",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","Category","formControlName","cat","required",""],["fxLayout","row","fxLayout.lt-sm","column wrap","fxLayoutGap","20px","fxLayoutGap.lt-sm","0px",1,"input-row",2,"margin-top","20px","margin-bottom","15px"],["fxFlex","width:calc(40% - 10px)","fxFlex.lt-sm","100%"],["matInput","","formControlName","sts","required",""],["fxLayout","column","fxLayoutGap","20px",2,"margin-top","15px"],["value","S"],["value","P"],["title","Mark as paid and keep in the planner until resolved."],["value","R"],["title","Remove from the planner so it is not included in the calculations, and deduct it from the account balance."],["fxFlex","width:calc(60% - 10px)","fxFlex.lt-sm","100%",1,"mat-typography","hint-text",2,"padding-top","20px"],["fxFlex","",2,"width","100%"],["rows","6","matInput","","formControlName","des","placeholder","Notes (optional)","autocomplete","off","maxlength","250"],["mat-dialog-actions",""],["mat-button","","type","button",3,"click"],["mat-button","","type","submit"],[3,"value"],[3,"name","icon","color","background"],[1,"bold"],[1,"italic"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"h1",0),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275text"](3),r["\u0275\u0275pipe"](4,"ordinal"),r["\u0275\u0275elementStart"](5,"a",2),r["\u0275\u0275listener"]("click",(function(e){return t.editItem()})),r["\u0275\u0275text"](6,"Edit the item or schedule instead."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"form",3),r["\u0275\u0275listener"]("ngSubmit",(function(e){return t.save()})),r["\u0275\u0275elementStart"](8,"div",4),r["\u0275\u0275template"](9,j_,2,0,"mat-error",5),r["\u0275\u0275elementStart"](10,"div",6),r["\u0275\u0275elementStart"](11,"div",7),r["\u0275\u0275elementStart"](12,"mat-form-field",8),r["\u0275\u0275element"](13,"input",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,H_,2,1,"mat-error",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"div",10),r["\u0275\u0275elementStart"](16,"div",11),r["\u0275\u0275elementStart"](17,"mat-form-field",8),r["\u0275\u0275elementStart"](18,"span",12),r["\u0275\u0275text"](19,"$\xa0"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](20,"input",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,G_,3,2,"mat-error",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"div",11),r["\u0275\u0275elementStart"](23,"mat-form-field",8),r["\u0275\u0275element"](24,"input",14),r["\u0275\u0275element"](25,"mat-datepicker-toggle",15),r["\u0275\u0275element"](26,"mat-datepicker",16,17),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](28,U_,2,1,"mat-error",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](29,"div",10),r["\u0275\u0275elementStart"](30,"div",11),r["\u0275\u0275elementStart"](31,"mat-form-field",8),r["\u0275\u0275elementStart"](32,"mat-select",18),r["\u0275\u0275template"](33,q_,4,6,"mat-option",19),r["\u0275\u0275pipe"](34,"async"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](35,$_,2,1,"mat-error",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"div",11),r["\u0275\u0275elementStart"](37,"mat-form-field",8),r["\u0275\u0275elementStart"](38,"mat-select",20),r["\u0275\u0275template"](39,X_,4,6,"mat-option",19),r["\u0275\u0275pipe"](40,"async"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](41,Z_,2,1,"mat-error",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](42,"div",21),r["\u0275\u0275elementStart"](43,"div",22),r["\u0275\u0275elementStart"](44,"label"),r["\u0275\u0275text"](45,"Status: "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](46,"mat-radio-group",23),r["\u0275\u0275elementStart"](47,"div",24),r["\u0275\u0275elementStart"](48,"mat-radio-button",25),r["\u0275\u0275text"](49,"Scheduled"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](50,"mat-radio-button",26),r["\u0275\u0275elementStart"](51,"span",27),r["\u0275\u0275text"](52,"Paid/Spent"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](53,"mat-radio-button",28),r["\u0275\u0275elementStart"](54,"span",29),r["\u0275\u0275text"](55,"Resolved"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](56,"div",30),r["\u0275\u0275template"](57,eb,4,0,"div",5),r["\u0275\u0275template"](58,tb,13,0,"div",5),r["\u0275\u0275template"](59,nb,12,0,"div",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](60,"div",7),r["\u0275\u0275elementStart"](61,"mat-form-field",31),r["\u0275\u0275elementStart"](62,"textarea",32),r["\u0275\u0275text"](63,"                    "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](64,"div",33),r["\u0275\u0275elementStart"](65,"button",34),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](66,"Cancel"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](67,"button",35),r["\u0275\u0275text"](68,"Save"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](27);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.title),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" This is the ",r["\u0275\u0275pipeBind1"](4,16,t.data.itemEvent.pos)," event occurrence. "),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("formGroup",t.frm),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!t.valid),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngIf",t.frm.get("nm").invalid&&t.frm.get("nm").touched),r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngIf",t.frm.get("amt").invalid&&t.frm.get("amt").touched),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("matDatepicker",e),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("for",e),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.frm.get("payOn").invalid&&t.frm.get("payOn").touched),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pipeBind1"](34,18,t.dataService.accounts)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.frm.get("act").invalid&&t.frm.get("act").touched),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pipeBind1"](40,20,t.dataService.categories)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.frm.get("cat").invalid&&t.frm.get("cat").touched),r["\u0275\u0275advance"](16),r["\u0275\u0275property"]("ngIf","S"===t.frm.controls.sts.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","P"===t.frm.controls.sts.value),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","R"===t.frm.controls.sts.value)}},directives:[md,Hh,Fd,Gh,gd,Y,ly,Fp,qp,kd,Nd,Qh,ep,my,Ty,Rp,Qp,Jh,o_,a_,Mp,t_,gv,V,zg,$g,yd,cm,Ep,Ju,bv],pipes:[F_,ee],styles:[""]}),e})(),rb=(()=>{let e=class{constructor(e,t,n,i){const r=Oo(new To(i),n);this.auth=i.runOutsideAngular(()=>Lo(e,i,t).auth()),this.authState=new ze.a(e=>i.runOutsideAngular(()=>this.auth.onAuthStateChanged(e))).pipe(r),this.user=new ze.a(e=>i.runOutsideAngular(()=>this.auth.onIdTokenChanged(e))).pipe(r),this.idToken=this.user.pipe(Pt(e=>e?Object(Be.a)(e.getIdToken()):Ye(null))),this.idTokenResult=this.user.pipe(Pt(e=>e?Object(Be.a)(e.getIdTokenResult()):Ye(null)))}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Mo),r["\u0275\u0275inject"](Ao,8),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const ob=["toast-component",""];
1function sb(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",5),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().remove()})),r["\u0275\u0275elementStart"](1,"span",6),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}function ab(e,t){if(1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("[",e.duplicatesCount+1,"]")}}function lb(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275template"](2,ab,2,1,"ng-container",4),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](e.options.titleClass),r["\u0275\u0275attribute"]("aria-label",e.title),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.title," "),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.duplicatesCount)}}function cb(e,t){if(1&e&&r["\u0275\u0275element"](0,"div",7),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](e.options.messageClass),r["\u0275\u0275property"]("innerHTML",e.message,r["\u0275\u0275sanitizeHtml"])}}function ub(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](e.options.messageClass),r["\u0275\u0275attribute"]("aria-label",e.message),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.message," ")}}function db(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",9),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275styleProp"]("width",e.width+"%")}}class hb{constructor(e,t,n,i,r,o){this.toastId=e,this.config=t,this.message=n,this.title=i,this.toastType=r,this.toastRef=o,this._onTap=new Ge.a,this._onAction=new Ge.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}}const pb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},fb=new r.InjectionToken("ToastConfig");class mb{constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){const e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class gb extends class{attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}}{constructor(e,t,n){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=n}attachComponentPortal(e,t){const n=this._componentFactoryResolver.resolveComponentFactory(e.component);let i;return i=n.create(e.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let yb=(()=>{let e=class{constructor(e){this._document=e}
1ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();class vb{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let _b=(()=>{let e=class{constructor(e,t,n,i){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=i,this._paneElements=new Map}create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(e){return new gb(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new vb(this._createPortalHost(e))}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](yb),r["\u0275\u0275inject"](r.ComponentFactoryResolver),r["\u0275\u0275inject"](r.ApplicationRef),r["\u0275\u0275inject"](l))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(yb),Object(r["\u0275\u0275inject"])(r.ComponentFactoryResolver),Object(r["\u0275\u0275inject"])(r.ApplicationRef),Object(r["\u0275\u0275inject"])(l))},token:e,providedIn:"root"}),e})();class bb{constructor(e){this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new Ge.a,this._activate=new Ge.a,this._manualClose=new Ge.a,this._resetTimeout=new Ge.a,this._countDuplicate=new Ge.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class wb{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===hb?this._toastPackage:this._parentInjector.get(e,t,n)}}let Cb=(()=>{let e=class{constructor(e,t,n,i,r){this.overlay=t,this._injector=n,this.sanitizer=i,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,t,n={},i=""){return this._preBuildNotification(i,e,t,this.applyConfig(n))}success(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))}error(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))}info(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))}warning(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))}clear(e){for(const t of this.toasts)if(void 0!==e){if(t.toastId===e)return void t.toastRef.manualClose()}else t.toastRef.manualClose()}remove(e){const t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const e=this.toasts[this.currentlyActive].toastRef;e.isInactive()||(this.currentlyActive=this.currentlyActive+1,e.activate())}return!0}findDuplicate(e,t,n){for(const i of this.toasts)if(i.message===e)return i.toastRef.onDuplicate(t,n),i;return null}applyConfig(e={}){return Object.assign(Object.assign({},this.toastrConfig),e)}_findToast(e){for(let t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}_preBuildNotification(e,t,n,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,t,n,i)):this._buildNotification(e,t,n,i)}_buildNotification(e,t,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(t,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if(t&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=t;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=t;t&&i.enableHtml&&(l=this.sanitizer.sanitize(r.SecurityContext.HTML,t));const c=new bb(a),u=new hb(this.index,i,l,n,e,c),d=new wb(u,this._injector),h=new mb(i.toastComponent,d),p=a.attach(h,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const f={toastId:this.index,message:t||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:p};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}}
1;return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](fb),r["\u0275\u0275inject"](_b),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](Me),r["\u0275\u0275inject"](r.NgZone))},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e(Object(r["\u0275\u0275inject"])(fb),Object(r["\u0275\u0275inject"])(_b),Object(r["\u0275\u0275inject"])(r.INJECTOR),Object(r["\u0275\u0275inject"])(Me),Object(r["\u0275\u0275inject"])(r.NgZone))},token:e,providedIn:"root"}),e})(),Eb=(()=>{let e=class{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Cb),r["\u0275\u0275directiveInject"](hb),r["\u0275\u0275directiveInject"](r.NgZone))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("click",(function(e){return t.tapToast()}))("mouseenter",(function(e){return t.stickAround()}))("mouseleave",(function(e){return t.delayedHideToast()})),2&e&&(r["\u0275\u0275updateSyntheticHostBinding"]("@flyInOut",t.state),r["\u0275\u0275classMap"](t.toastClasses),r["\u0275\u0275styleProp"]("display",t.displayStyle))},attrs:ob,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,sb,3,0,"button",0),r["\u0275\u0275template"](1,lb,3,5,"div",1),r["\u0275\u0275template"](2,cb,1,3,"div",2),r["\u0275\u0275template"](3,ub,2,4,"div",3),r["\u0275\u0275template"](4,db,2,2,"div",4)),2&e&&(r["\u0275\u0275property"]("ngIf",t.options.closeButton),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.title),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.message&&t.options.enableHtml),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.message&&!t.options.enableHtml),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.options.progressBar))},directives:[Y],encapsulation:2,data:{animation:[Ka("flyInOut",[Za("inactive",Ja({opacity:0}
1)),Za("active",Ja({opacity:1})),Za("removed",Ja({opacity:0})),el("inactive => active",$a("{{ easeTime }}ms {{ easing }}")),el("active => removed",$a("{{ easeTime }}ms {{ easing }}"))])]}}),e})();var Sb;const Db=Object.assign(Object.assign({},pb),{toastComponent:Eb});let xb=(()=>{let e=Sb=class{static forRoot(e={}){return{ngModule:Sb,providers:[{provide:fb,useValue:{default:Db,config:e}}]}}};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne]]}),e})(),Tb=(()=>{class e{constructor(e,t,n,i){this.afAuth=e,this.data=t,this.router=n,this.toast=i}validatePassword(e){return new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})").test(e)}subscribeToFbUserChanges(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.authStateSub&&this.authStateSub.unsubscribe(),this.authStateSub=this.afAuth.authState.subscribe(e=>{this.fbUser=e,this.data.selectUser(e&&e.emailVerified?e:null)})}))}signUp(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{const n=yield this.afAuth.auth.createUserWithEmailAndPassword(e,t);return n.user&&(this.fbUser=n.user,this.subscribeToFbUserChanges(),this.sendVerificationEmail()),!!n.user}catch(n){return this.toast.error(n.message),!1}}))}signIn(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{const n=yield this.afAuth.auth.signInWithEmailAndPassword(e,t);if(n.user&&(this.fbUser=n.user,this.subscribeToFbUserChanges(),!n.user.emailVerified))return this.toast.error("Email not verified."),this.router.navigate(["/reverifyemail"]),!1;if(!n.user)return this.toast.error("User could not be retrieved."),!1;const i=n.user.providerData[0].providerId;return yield this.data.saveUserLogin(n.user,i),this.data.selectUser(n.user),this.router.navigate(["/home"]),!0}catch(n){if(!n.code||"auth/user-not-found"!==n.code&&"auth/wrong-password"!==n.code){if(!n.code||"auth/network-request-failed"!==n.code)return this.toast.error(n.message),!1;this.toast.error("Unable to connect. Please check your internet connection. This may also happen if you're using a work computer with a firewall that blocks access to the Google Firebase service.")}else this.toast.error("Incorrect email address or password.")}}))}sendVerificationEmail(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{yield this.fbUser.sendEmailVerification(),this.toast.success("A verification link was sent to your email."),this.router.navigate(["/signin"])}catch(e){this.toast.error(e.message)}}))}verifyEmail(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(!e||!t)return!1;try{const n=yield this.afAuth.auth.checkActionCode(e);return!!(n&&n.data&&n.data.email&&n.operation&&"VERIFY_EMAIL"==n.operation&&t.toLowerCase()==(n.data.email||"").toLowerCase())&&(yield this.afAuth.auth.applyActionCode(e),!0)}catch(n){return this.toast.error("auth/invalid-action-code"===n.code?"The link is invalid because it is malformed, expired, or has already been used.":n.message),!1}}))}resetPasswordInit(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{return yield this.afAuth.auth.sendPasswordResetEmail(e,{url:"https://easiestbudget.com/signin"}),!0}catch(t){if(console.log(t),"auth/user-not-found"!==t.code)return this.toast.error(t.message),!1;this.toast.error("No user found with that email.")}}))}verifyPasswordReset(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){if(!e)return!1;try{return this.verifiedPwdResetEmail=yield this.afAuth.auth.verifyPasswordResetCode(e),this.verifiedPwdResetOobCode=e,!0}catch(t){return this.toast.error("auth/invalid-action-code"===t.code?"The link is invalid because it is malformed, expired, or has already been used.":t.message),!1}}))}resetPassword(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{return yield this.afAuth.auth.confirmPasswordReset(this.verifiedPwdResetOobCode,e),!0}catch(t){return this.toast.error(t.message),!1}}))}recoverEmail(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){}))}validateOobLink(e,t){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{if(e&&t){if("VERIFYEMAIL"==e.toUpperCase()){let e="";window.localStorage&&(e=(window.localStorage.getItem("emailForSignIn")||"").trim().toLowerCase());var n=yield this.afAuth.auth.checkActionCode(t);n.data.email.toLowerCase()!==e&&(e=(window.prompt("Please enter the email address that you are verifying.")||"").trim()),0===e.length||n.data.email.toLowerCase()!==e?this.toast.error("Your email could not be verified. You can retry by clicking the link in your email again."):(yield this.verifyEmail(t,e))&&(window.localStorage&&window.localStorage.removeItem("emailForSignIn"),this.toast.success("Your email is now verified!")),this.router.navigate(["/signin"])}"RESETPASSWORD"==e.toUpperCase()&&((yield this.verifyPasswordReset(t))?this.router.navigate(["/resetpassword"]):this.router.navigate(["/signin"]))}}catch(i){this.toast.error(i.message),this.router.navigate(["/signin"])}}))}signOut(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){try{this.authStateSub&&this.authStateSub.unsubscribe(),this.data.ngOnDestroy(),yield this.afAuth.auth.signOut(),location.reload(!0)}catch(e){console.log(e)}}))}getToken(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){return this.afAuth.auth.currentUser.getIdToken(!1)}))}ngOnDestroy(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.authStateSub&&this.authStateSub.unsubscribe()}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](rb),r["\u0275\u0275inject"](Ko),r["\u0275\u0275inject"](mr),r["\u0275\u0275inject"](Cb))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ob(e,t){1&e&&r["\u0275\u0275projection"](0)}const kb=["*"];function Ib(e,t){}const Rb=function(e){return{animationDuration:e}},Mb=function(e,t){return{value:e,params:t}},Ab=["tabBodyWrapper"],Pb=["tabHeader"];
1function Lb(e,t){}function Nb(e,t){if(1&e&&r["\u0275\u0275template"](0,Lb,0,0,"ng-template",9),2&e){const e=r["\u0275\u0275nextContext"]().$implicit;r["\u0275\u0275property"]("cdkPortalOutlet",e.templateLabel)}}function Fb(e,t){if(1&e&&r["\u0275\u0275text"](0),2&e){const e=r["\u0275\u0275nextContext"]().$implicit;r["\u0275\u0275textInterpolate"](e.textLabel)}}function jb(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",6),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.$implicit,o=t.index,s=r["\u0275\u0275nextContext"](),a=r["\u0275\u0275reference"](1);return s._handleClick(i,a,o)})),r["\u0275\u0275elementStart"](1,"div",7),r["\u0275\u0275template"](2,Nb,1,1,"ng-template",8),r["\u0275\u0275template"](3,Fb,1,1,"ng-template",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275classProp"]("mat-tab-label-active",i.selectedIndex==n),r["\u0275\u0275property"]("id",i._getTabLabelId(n))("disabled",e.disabled)("matRippleDisabled",e.disabled||i.disableRipple),r["\u0275\u0275attribute"]("tabIndex",i._getTabIndex(e,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.templateLabel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.templateLabel)}}function Vb(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mat-tab-body",10),r["\u0275\u0275listener"]("_onCentered",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._setTabBodyWrapperHeight(t)})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=t.index,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275classProp"]("mat-tab-body-active",i.selectedIndex==n),r["\u0275\u0275property"]("id",i._getTabContentId(n))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",i.animationDuration),r["\u0275\u0275attribute"]("aria-labelledby",i._getTabLabelId(n))}}const Hb=["tabListContainer"],Yb=["tabList"],Bb=["nextPaginator"],Gb=["previousPaginator"],Wb=new r.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return e=>({left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"})}});let Ub=(()=>{class e{constructor(e,t,n,i){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=n,this._animationMode=i}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](Wb),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e})(),zb=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.TemplateRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matTabContent",""]]}),e})(),qb=(()=>{class e extends Ns{}return e.\u0275fac=function(t){return Kb(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1const Kb=r["\u0275\u0275getInheritedFactory"](qb);class $b{}const Qb=Su($b),Xb=new r.InjectionToken("MAT_TAB_GROUP");let Jb=(()=>{class e extends Qb{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ge.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){e&&(this._templateLabel=e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ms(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](Xb,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(r["\u0275\u0275contentQuery"](n,qb,!0),r["\u0275\u0275staticContentQuery"](n,zb,!0,r.TemplateRef)),2&e&&(r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.templateLabel=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275staticViewQuery"](r.TemplateRef,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]()],ngContentSelectors:kb,decls:1,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275template"](0,Ob,1,0,"ng-template"))},encapsulation:2}),e})();const Zb={translateTab:Ka("translateTab",[Za("center, void, left-origin-center, right-origin-center",Ja({transform:"none"})),Za("left",Ja({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Za("right",Ja({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),el("* => left, * => right, left => center, right => center",$a("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),el("void => left-origin-center",[Ja({transform:"translate3d(-100%, 0, 0)"}),$a("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),el("void => right-origin-center",[Ja({transform:"translate3d(100%, 0, 0)"}),$a("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ew=(()=>{class e extends Fs{constructor(e,t,n,i){super(e,t,i),this._host=n,this._centeringSub=$t.a.EMPTY,this._leavingSub=$t.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(jt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](Object(r.forwardRef)(()=>nw)),r["\u0275\u0275directiveInject"](l))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matTabBodyHost",""]],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),tw=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._dir=t,this._dirChangeSubscription=$t.a.EMPTY,this._translateTabComplete=new Ge.a,this._onCentering=new r.EventEmitter,this._beforeCentering=new r.EventEmitter,this._afterLeavingCenter=new r.EventEmitter,this._onCentered=new r.EventEmitter(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(e=>{this._computePositionAnimationState(e),n.markForCheck()})),this._translateTabComplete.pipe(ns((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{this._isCenterPosition(e.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(e.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left"
1:"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e})(),nw=(()=>{class e extends tw{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](js,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[r["\u0275\u0275InheritDefinitionFeature"]],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0,1),r["\u0275\u0275listener"]("@translateTab.start",(function(e){return t._onTranslateTabStarted(e)}))("@translateTab.done",(function(e){return t._translateTabComplete.next(e)})),r["\u0275\u0275template"](2,Ib,0,0,"ng-template",2),r["\u0275\u0275elementEnd"]()),2&e&&r["\u0275\u0275property"]("@translateTab",r["\u0275\u0275pureFunction2"](3,Mb,t._position,r["\u0275\u0275pureFunction1"](1,Rb,t.animationDuration)))},directives:[ew],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Zb.translateTab]}}),e})();const iw=new r.InjectionToken("MAT_TABS_CONFIG");let rw=0;class ow{}class sw{constructor(e){this._elementRef=e}}const aw=Du(xu(sw),"primary");let lw=(()=>{class e extends aw{constructor(e,t,n,i){super(e),this._changeDetectorRef=t,this._animationMode=i,this._tabs=new r.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=$t.a.EMPTY,this._tabLabelSubscription=$t.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new r.EventEmitter,this.focusChange=new r.EventEmitter,this.animationDone=new r.EventEmitter,this.selectedTabChange=new r.EventEmitter(!0),this._groupId=rw++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$o(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Qo(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;t||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then(()=>
1{this._tabs.forEach((t,n)=>t.isActive=n===e),t||this.selectedIndexChange.emit(e)})}this._tabs.forEach((t,n)=>{t.position=n-e,null==this._selectedIndex||0!=t.position||t.origin||(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const e=this._tabs.toArray();for(let t=0;t<e.length;t++)if(e[t].isActive){this._indexToSelect=this._selectedIndex=t;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(jt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(e=>!e._closestTabGroup||e._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new ow;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(ts.a)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,n){e.disabled||(this.selectedIndex=t.focusIndex=n)}_getTabIndex(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](iw,8),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),cw=(()=>{class e extends lw{constructor(e,t,n,i){super(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](iw,8),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var i;1&e&&r["\u0275\u0275contentQuery"](n,Jb,!0),2&e&&r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._allTabs=i)},viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](Ab,!0),r["\u0275\u0275viewQuery"](Pb,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._tabBodyWrapper=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:Xb,useExisting:e}]),r["\u0275\u0275InheritDefinitionFeature"]],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-tab-header",0,1),r["\u0275\u0275listener"]("indexFocused",(function(e){return t._focusChanged(e)}))("selectFocusedIndex",(function(e){return t.selectedIndex=e})),r["\u0275\u0275template"](2,jb,4,14,"div",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"div",3,4),r["\u0275\u0275template"](5,Vb,1,8,"mat-tab-body",5),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275property"]("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t._tabs),r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===t._animationMode),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",t._tabs)
1)},directives:function(){return[gw,V,hw,Hu,Ba,Y,Fs,nw]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e})();class uw{}const dw=Su(uw);let hw=(()=>{class e extends dw{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r["\u0275\u0275attribute"]("aria-disabled",!!t.disabled),r["\u0275\u0275classProp"]("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const pw=bs({passive:!0});let fw=(()=>{class e{constructor(e,t,n,i,o,s,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=n,this._dir=i,this._ngZone=o,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ge.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ge.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new r.EventEmitter,this.indexFocused=new r.EventEmitter,o.runOutsideAngular(()=>{es(e.nativeElement,"mouseleave").pipe(us(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Qo(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){es(this._previousPaginator.nativeElement,"touchstart",pw).pipe(us(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),es(this._nextPaginator.nativeElement,"touchstart",pw).pipe(us(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ye(null),t=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ka(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(ts.a)(e,t,this._items.changes).pipe(us(this._destroyed)).subscribe(()=>{n(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(us(this._destroyed)).subscribe(e=>{this.indexFocused.emit(e),this._setTabFocus(e)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Bs(e))switch(e.keyCode){case 36:this._keyManager.setFirstItemActive(),e.preventDefault();break;case 35:this._keyManager.setLastItemActive(),e.preventDefault();break;
1case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e);break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t=this._platform,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,t&&(t.TRIDENT||t.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=t.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=i,s=o+r):(s=this._tabList.nativeElement.offsetWidth-i,o=s-r);const a=this.scrollDistance,l=this.scrollDistance+n;o<a?this.scrollDistance-=a-o+60:s>l&&(this.scrollDistance+=s-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),as(650,100).pipe(us(Object(ts.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:t,distance:n}=this._scrollHeader(e);(0===n||n>=t)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ts),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](ms),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{disablePagination:"disablePagination"}}),e})(),mw=(()=>{class e extends fw{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$o(e)}_itemSelected(e){e.preventDefault()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ts),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](m
1s),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,inputs:{disableRipple:"disableRipple"},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),gw=(()=>{class e extends mw{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o,s)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](Ts),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](ms),r["\u0275\u0275directiveInject"](fu,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&r["\u0275\u0275contentQuery"](n,hw,!1),2&e&&r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275staticViewQuery"](Ub,!0),r["\u0275\u0275staticViewQuery"](Hb,!0),r["\u0275\u0275staticViewQuery"](Yb,!0),r["\u0275\u0275viewQuery"](Bb,!0),r["\u0275\u0275viewQuery"](Gb,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._inkBar=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._tabListContainer=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._tabList=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._nextPaginator=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:kb,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275elementStart"](0,"div",0,1),r["\u0275\u0275listener"]("click",(function(e){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(e){return t._stopInterval()})),r["\u0275\u0275element"](2,"div",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"div",3,4),r["\u0275\u0275listener"]("keydown",(function(e){return t._handleKeydown(e)})),r["\u0275\u0275elementStart"](5,"div",5,6),r["\u0275\u0275listener"]("cdkObserveContent",(function(e){return t._onContentChanges()})),r["\u0275\u0275elementStart"](7,"div",7),r["\u0275\u0275projection"](8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](9,"mat-ink-bar"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",8,9),r["\u0275\u0275listener"]("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(e){return t._handlePaginatorClick("after")}))("touchend",(function(e){return t._stopInterval()})),r["\u0275\u0275element"](12,"div",2),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275classProp"]("mat-tab-header-pagination-disabled",t._disableScrollBefore),r["\u0275\u0275property"]("matRippleDisabled",t._disableScrollBefore||t.disableRipple),r["\u0275\u0275advance"](5),r["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===t._animationMode),r["\u0275\u0275advance"](5),r["\u0275\u0275classProp"]("mat-tab-header-pagination-disabled",t._disableScrollAfter),r["\u0275\u0275property"]("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Hu,Da,Ub],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;
1cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e})(),yw=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne,Eu,Hs,Yu,xa,Ua],Eu]}),e})();const vw=["theForm"];function _w(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",14),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).resetPassword()})),r["\u0275\u0275text"](1," Send Reset Password Link "),r["\u0275\u0275elementEnd"]()}}function bw(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",10),r["\u0275\u0275text"](1," Password Reset Link Sent "),r["\u0275\u0275elementEnd"]())}function ww(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",9),r["\u0275\u0275elementStart"](1,"form"),r["\u0275\u0275elementStart"](2,"h3"),r["\u0275\u0275text"](3,"Change Password"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"p",10),r["\u0275\u0275text"](5," You can change your password by sending a reset password link to your email at "),r["\u0275\u0275elementStart"](6,"span",11),r["\u0275\u0275text"](7),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](8,". "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,_w,2,0,"button",12),r["\u0275\u0275template"](10,bw,2,0,"div",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](7),r["\u0275\u0275textInterpolate"](e.auth.fbUser.email),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",!e.passwordResetLinkSent),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.passwordResetLinkSent)}}function Cw(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",9),r["\u0275\u0275elementStart"](1,"h3"),r["\u0275\u0275text"](2,"Delete Account"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p",10),r["\u0275\u0275text"](4," If you no longer want to use EasiestBudget.com, you can delete your entire account permanently. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"h3"),r["\u0275\u0275text"](6,"Warning"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"p",10),r["\u0275\u0275text"](8," When an account is deleted, all associated data (budgets, preferences, etc.) are lost forever and can not be restored. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"button",15),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().deleteAccount()})),r["\u0275\u0275text"](10," Delete My Account Permanently "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}let Ew=(()=>{class e{constructor(e,t,n,i,r,o){this.dialogRef=e,this.auth=t,this.dataService=n,this.dialogService=i,this.toast=r,this.data=o,this.title="",this.passwordResetLinkSent=!1,this.data.isCancel=!1,this.title="User Account"}resetPassword(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){(yield this.auth.resetPasswordInit(this.auth.fbUser.email))&&(this.passwordResetLinkSent=!0,this.toast.success("A password reset link has been sent to your email address."))}))}deleteAccount(){this.dialogService.showUserDeleteDialog(this.cancel.bind(this))}cancel(){this.data.isCancel=!0,this.dialogRef.close(this.data)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ld),r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw),r["\u0275\u0275directiveInject"](Cb),r["\u0275\u0275directiveInject"](cd))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-settings-dialog"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](vw,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.theForm=n.first)},decls:12,vars:1,consts:[["fxLayout","column","fxFlexFill",""],["mat-dialog-title",""],["mat-dialog-content","",1,"secondary-tabs",2,"min-height","425px"],[2,"height","100%"],["label","Change Password"],["matTabContent",""],["label","Delete Account"],["mat-dialog-actions",""],["mat-button","","type","button",3,"click"],[1,"mat-tab-content"],[1,"mat-typography"],[2,"font-weight","bold"],["mat-button","",3,"click",4,"ngIf"],["class","mat-typography",4,"ngIf"],["mat-button","",3,"click"],["mat-button","",1,"button-danger",3,"click"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"h1",1),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275elementStart"](4,"mat-tab-group",3),r["\u0275\u0275elementStart"](5,"mat-tab",4),r["\u0275\u0275template"](6,ww,11,3,"ng-template",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"mat-tab",6),r["\u0275\u0275template"](8,Cw,11,0,"ng-template",5),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",7),r["\u0275\u0275elementStart"](10,"button",8),r["\u0275\u0275listener"]("click",(function(e){return t.cancel()})),r["\u0275\u0275text"](11,"Close"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](t.title))},directives:[ly,Ny,md,gd,cw,Jb,zb,yd,cm,Hh,Fd,Rh,Y],styles:[""]}),e})(),Sw=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.auth=t,this.data=n,this.dialog=i,this.toast=r}showBudgetDialog(e,t=!0){this.dialog.open(jg,{width:"375px",disableClose:!t,data:{isNew:!e,allowCancel:t,useSuggestedCategories:!0,budget:e?Object.assign({},e):{id:"",nm:"",usr:this.data.snapshot.user.id}}}).afterClosed().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.saveBudget(t.budget,null,!0),t.isNew&&(this.data.createFirstAccount(t.accountName,Number(t.accountBalance)),window.setTimeout(()=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t.useSuggestedCategories?(this.data.patchUI({sideTabIndex:1}),yield this.data.addSuggestedCategories(),window.setTimeout(()=>{this.data.patchUI({sideTabIndex:t.useSuggestedCategories?2:1})},1e3)):this.data.patchUI({sideTabIndex:t.useSuggestedCategories?2:1})})),1e3)))})))}showBudgetDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete Budget",message:`Are you sure you want to delete "${e.nm}"?`}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.data.deleteBudget(e.id))})))}showAccountDialog(e){this.dialog.open(mm,{width:"350px",data:{isNew:!!e,account:e?Object.assign({},e):{id:"",bgt:this.data.snapshot.selectedBudget.id,nm:"",des:"",bal:0,sort:0}}}).afterClosed().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.saveAccount(t.account,null,!0))})))}showAccountDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete Account",message:`Are you sure you want to delete "${e.nm}"?`}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.data.deleteAccount(e.id))})))}showCategoryDialog(e){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.dialog.open(Zg,{width:"455px",data:{isNew:!!e,category:e?Object.assign({},e):{id:"",bgt:this.data.snapshot.selectedBudget.id,nm:"",des:"",typ:"E",clr:"#CCCCCC",icn:"",sort:0}}}).afterClosed().pipe(Tt(1)).subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.saveCategory(t.category,null,!0))})))}))}
1showCategoryDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete Category",message:`Are you sure you want to delete "${e.nm}"?`}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.data.deleteCategory(e.id))})))}showItemDialog(e){this.dialog.open(N_,{width:"500px",data:{isNew:!!e,item:e?Object.assign(Object.assign({},e),{sch:[...e.sch]}):{id:"",bgt:this.data.snapshot.selectedBudget.id,nm:"",cat:"",act:"",sort:0,sch:[]}}}).afterClosed().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.saveItem(t.item,null,!0))})))}showItemDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete Item",message:`Are you sure you want to delete "${e.nm}"?`}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.data.deleteItem(e.id))})))}showItemEventDialog(e,t){let n=this.data.snapshot.itemEvents.find(n=>n.item&&n.item.id===e&&n.pos===t);this.dialog.open(ib,{width:"500px",data:{itemEvent:n}}).afterClosed().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.createOrPatchChangeFromEvent(t.itemEvent))})))}showItemEventDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete Item",message:`Are you sure you want to delete "${e.nm}"?`}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.data.deleteItemEvent(e))})))}showHistoryItemDialog(e){}showSettingsDialog(){this.dialog.open(Ew,{width:"90%",maxWidth:"500px",data:{}}).afterClosed().subscribe(e=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){let t=e;t&&!t.isCancel&&(yield this.data.patchSettings(Object.assign({},t.settings)))})))}showUserDeleteDialog(e){this.dialog.open(gm,{width:"250px",data:{isDeletion:!1,title:"Delete User Account",message:"Are you sure you want to permanently delete your user account and all of your data?"}}).afterClosed().subscribe(t=>Object(Fr.__awaiter)(this,void 0,void 0,(function*(){t&&t.isDeletion&&(yield this.auth.fbUser.delete(),this.toast.success("User account deleted."),this.auth.signOut(),e&&e(),this.router.navigate(["/signin"]))})))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](mr),r["\u0275\u0275inject"](Tb),r["\u0275\u0275inject"](Ko),r["\u0275\u0275inject"](pd),r["\u0275\u0275inject"](Cb))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Dw=(()=>{class e{constructor(e,t){this.document=e,this.data=t,this.defaultTheme=jr.LightBlue,this.defaultDarkTheme={error:"#E60000",background:"black",toolbarBackground:"#212121",accent:"#3266a8",accentFont:"white",font:"#9BBBDC",disabled:"#888888",negativeNumberBackground:"#212121",negativeNumberFont:"#E60000",negativeNumberFontHover:"white",rowBorder:"#424242",rowHeaderBackground:"#212121",rowHeaderFont:"#CCCCCC"},this.defaultLightTheme={error:"#E60000",background:"white",toolbarBackground:"#ccc",accent:"#3266a8",accentFont:"white",font:"black",disabled:"#686868",negativeNumberBackground:"#ccc",negativeNumberFont:"#E60000",negativeNumberFontHover:"white",rowBorder:"#424242",rowHeaderBackground:"#ccc",rowHeaderFont:"black"},this.isDarkTheme$=new Ue(this.isDarkTheme),this.uiSub=t.ui.subscribe(e=>{e.settings&&e.settings.theme&&e.settings.theme!==this.lastTheme&&(this.lastTheme=e.settings.theme,this.setTheme(e.settings.theme||this.defaultTheme))})}setTheme(e,t=!1){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.isDarkTheme$.next(this.isDarkTheme=e>=8);const n=this.data.snapshot.ui.settings;if(t&&n&&n.theme)return;const i=this.getThemeColors(e);this.document.documentElement.style.setProperty("--error-color",i.error),this.document.documentElement.style.setProperty("--bg-color",i.background),this.document.documentElement.style.setProperty("--accent-color",i.accent),this.document.documentElement.style.setProperty("--accent-font-color",i.accentFont),this.document.documentElement.style.setProperty("--font-color",i.font),this.document.documentElement.style.setProperty("--toolbar-bg-color",i.toolbarBackgroun
1d),this.document.documentElement.style.setProperty("--disabled-color",i.disabled),this.document.documentElement.style.setProperty("--negative-number-bg-color",i.negativeNumberBackground),this.document.documentElement.style.setProperty("--negative-number-color",i.negativeNumberFont),this.document.documentElement.style.setProperty("--negative-number-hover-color",i.negativeNumberFontHover),this.document.documentElement.style.setProperty("--row-border-color",i.rowBorder),this.document.documentElement.style.setProperty("--row-header-bg-color",i.rowHeaderBackground),this.document.documentElement.style.setProperty("--row-header-font-color",i.rowHeaderFont),t||(n&&n.theme!==e&&(yield this.data.patchSettings({theme:e,isDarkTheme:e>=8})),window.localStorage&&window.localStorage.setItem("theme",JSON.stringify(e)))}))}getThemeColors(e){let t={error:"#E60000",background:"white",toolbarBackground:"#ccc",font:"black",rowHeaderFont:"black",negativeNumberBackground:"#ccc",rowHeaderBackground:"#ccc",accent:"#3266a8",accentFont:"white",disabled:"#888888",negativeNumberFont:"#FF0000",negativeNumberFontHover:"white",rowBorder:"#424242"};switch(e>=jr.DarkRed&&e<=jr.DarkPurple&&(t=Object.assign(Object.assign({},t),{background:"black",toolbarBackground:"#212121",font:"#9BBBDC",rowHeaderFont:"#CCCCCC",negativeNumberBackground:"#212121",rowHeaderBackground:"#212121"})),e){case jr.LightRed:t=Object.assign(Object.assign({},t),{accent:"red",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.LightGreen:t=Object.assign(Object.assign({},t),{accent:"green",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.LightBlue:t=Object.assign(Object.assign({},t),{accent:"#3266a8",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.LightYellow:t=Object.assign(Object.assign({},t),{accent:"yellow",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.LightPink:t=Object.assign(Object.assign({},t),{accent:"pink",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.LightOrange:t=Object.assign(Object.assign({},t),{accent:"orange",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.LightPurple:t=Object.assign(Object.assign({},t),{accent:"purple",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.DarkRed:t=Object.assign(Object.assign({},t),{accent:"red",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.DarkGreen:t=Object.assign(Object.assign({},t),{accent:"green",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.DarkBlue:t=Object.assign(Object.assign({},t),{accent:"#3266a8",accentFont:"white",negativeNumberFontHover:"white"});break;case jr.DarkYellow:t=Object.assign(Object.assign({},t),{accent:"yellow",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.DarkPink:t=Object.assign(Object.assign({},t),{accent:"pink",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.DarkOrange:t=Object.assign(Object.assign({},t),{accent:"orange",accentFont:"black",negativeNumberFontHover:"black"});break;case jr.DarkPurple:t=Object.assign(Object.assign({},t),{accent:"purple",accentFont:"white",negativeNumberFontHover:"white"})}return t}ngOnDestroy(){this.uiSub&&this.uiSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](Ko))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function xw(e,t=qr){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new Tw(i,t))}class Tw{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Ow(e,this.delay,this.scheduler))}}class Ow extends st.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Ow.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new kw(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Jr.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Jr.createComplete()),this.unsubscribe()}}class kw{constructor(e,t){this.time=e,this.notification=t}}const Iw=["mat-menu-item",""],Rw=["*"];function Mw(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275listener"]("keydown",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._handleKeydown(t)}))("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().closed.emit
1("click")}))("@transformMenu.start",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]()._onAnimationDone(t)})),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),r["\u0275\u0275attribute"]("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Aw={transformMenu:Ka("transformMenu",[Za("void",Ja({opacity:0,transform:"scale(0.8)"})),el("void => enter",Qa([nl(".mat-menu-content, .mat-mdc-menu-content",$a("100ms linear",Ja({opacity:1}))),$a("120ms cubic-bezier(0, 0, 0.2, 1)",Ja({transform:"scale(1)"}))])),el("* => void",$a("100ms 25ms linear",Ja({opacity:0})))]),fadeInItems:Ka("fadeInItems",[Za("showing",Ja({opacity:1})),el("void => *",[Ja({opacity:0}),$a("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Pw=(()=>{class e{constructor(e,t,n,i,r,o,s){this._template=e,this._componentFactoryResolver=t,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Ge.a}attach(e={}){this._portal||(this._portal=new Ms(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ls(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275directiveInject"](r.ApplicationRef),r["\u0275\u0275directiveInject"](r.Injector),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](l),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["ng-template","matMenuContent",""]]}),e})();const Lw=new r.InjectionToken("MAT_MENU_PANEL");class Nw{}const Fw=xu(Su(Nw));let jw=(()=>{class e extends Fw{constructor(e,t,n,i){super(),this._elementRef=e,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new Ge.a,this._focused=new Ge.a,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.monitor(this._elementRef,!1),i&&i.addItem&&i.addItem(this),this._document=t}focus(e="program",t){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3;let n="";if(e.childNodes){const i=e.childNodes.length;for(let r=0;r<i;r++)e.childNodes[r].nodeType===t&&(n+=e.childNodes[r].textContent)}return n.trim()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](l),r["\u0275\u0275directiveInject"](Ya),r["\u0275\u0275directiveInject"](Lw,8))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["","mat-menu-item",""]],hostVars:10,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("click",(function(e){return t._checkDisabled(e)}))("mouseenter",(function(e){return t._handleMouseEnter()})),2&e&&(r["\u0275\u0275attribute"]("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),r["\u0275\u0275classProp"]("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[r["\u0275\u0275InheritDefinitionFeature"]],attrs:Iw,ngContentSelectors:Rw,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275projection"](0),r["\u0275\u0275element"](1,"div",0)),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[Hu],encapsulation:2,changeDetection:0}),e})();const Vw=new r.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Hw=0,Yw=(()=>{class e{constructor(e,t,n){this._elementRef=e,this._ngZone=t,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.QueryList,this._tabSubscription=$t.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ge.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.EventEmitter,this.close=this.closed,this.panelId=`mat-menu-panel-${Hw++}`}get xPosition(){return this._xPosition}set xPosition(e){"before"!==e&&"after"!==e&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n      Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){"above"!==e&&"below"!==e&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n      Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=$o(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$o(e)}set panelClass(e){const t=this._previousPanelClass;
1t&&t.length&&t.split(" ").forEach(e=>{this._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(e=>{this._classList[e]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ka(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jt(this._directDescendantItems),Pt(e=>Object(ts.a)(...e.map(e=>e._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(jt(this._directDescendantItems),Pt(e=>Object(ts.a)(...e.map(e=>e._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,n=this._keyManager;switch(t){case 27:Bs(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Bs(e)||(36===t?n.setFirstItemActive():n.setLastItemActive(),e.preventDefault());break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(Tt(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let e=this._directDescendantItems.first._getHostElement().parentElement;for(;e;){if("menu"===e.getAttribute("role")){e.focus();break}e=e.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=`mat-elevation-z${Math.min(4+e,24)}`,n=Object.keys(this._classList).find(e=>e.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}setPositionClasses(e=this.xPosition,t=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(jt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(e=>e._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](Vw))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,contentQueries:function(e,t,n){var i;1&e&&(r["\u0275\u0275contentQuery"](n,Pw,!0),r["\u0275\u0275contentQuery"](n,jw,!0),r["\u0275\u0275contentQuery"](n,jw,!1)),2&e&&(r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.lazyContent=i.first),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._allItems=i),r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](r.TemplateRef,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e})(),Bw=(()=>{class e extends Yw{}return e.\u0275fac=function(t){return Gw(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();
1const Gw=r["\u0275\u0275getInheritedFactory"](Bw);let Ww=(()=>{class e extends Bw{constructor(e,t,n){super(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](Vw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:Lw,useExisting:Bw},{provide:Bw,useExisting:e}]),r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Rw,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275template"](0,Mw,3,6,"ng-template"))},directives:[F],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Aw.transformMenu,Aw.fadeInItems]},changeDetection:0}),e})();const Uw=new r.InjectionToken("mat-menu-scroll-strategy"),zw={provide:Uw,deps:[ha],useFactory:function(e){return()=>e.scrollStrategies.reposition()}},qw=bs({passive:!0});let Kw=(()=>{class e{constructor(e,t,n,i,o,s,a,l){this._overlay=e,this._element=t,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=$t.a.EMPTY,this._hoverSubscription=$t.a.EMPTY,this._menuCloseSubscription=$t.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new r.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.EventEmitter,this.onMenuClose=this.menuClosed,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,qw),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.asObservable().subscribe(e=>{this._destroyMenu(),"click"!==e&&"tab"!==e||!this._parentMenu||this._parentMenu.closed.emit(e)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qw),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}
1openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig();this._setPosition(t.positionStrategy),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Bw&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e="program",t){this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof Bw?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(at(e=>"void"===e.toState),Tt(1),us(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach()),this._restoreFocus()}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu="matMenu"></mat-menu>\n      <button [matMenuTriggerFor]="menu"></button>')}()}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Xs({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(e=>{this.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[i,r],[a,l]=[t,n],c=0;this.triggersSubmenu()?(l=t="before"===this.menu.xPosition?"start":"end",n=a="end"===t?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(o="top"===i?"bottom":"top",s="top"===r?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:o,overlayX:l,overlayY:i,offsetY:c},{originX:t,originY:s,overlayX:a,overlayY:r,offsetY:-c},{originX:n,originY:s,overlayX:l,overlayY:r,offsetY:-c}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Ye(),i=this._parentMenu?this._parentMenu._hovered().pipe(at(e=>e!==this._menuItemInstance),at(()=>this._menuOpen)):Ye();return Object(ts.a)(e,n,i,t)}_handleMousedown(e){Ga(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(at(e=>e===this._menuItemInstance&&!e.disabled),xw(0,bo)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Bw&&this.menu._isAnimating?this.menu._animationDone.pipe(Tt(1),xw(0,bo),us(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ms(this.menu.templateRef,this._viewContainerRef)),this._portal}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](ha),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](Uw),r["\u0275\u0275directiveInject"](Bw,8),r["\u0275\u0275directiveInject"](jw,10),r["\u0275\u0275directiveInject"](Cs,8),r["\u0275\u0275directiveInject"](Ya))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("mousedown",(function(e){return t._handleMousedown(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("click",(function(e){return t._handleClick(e)})),2&e&&r["\u0275\u0275attribute"]("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e})(),$w=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[zw],imports:[Eu]}),e})(),Qw=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[zw],imports:[[ne,Eu,Yu,va,$w],$w]}),e})();const Xw=["gutterEls"];function Jw(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",2,3),r["\u0275\u0275listener"]("mousedown",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().startDragging(t,2*n+1,n+1)}))("touchstart",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().startDragging(t,2*n+1,n+1)}))("mouseup",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().clickGutter(t,n+1)}))("touchend",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]().index;return r["\u0275\u0275nextContext"]().clickGutter(t,n+1)})),r["\u0275\u0275element"](2,"div",4),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]().index,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275styleProp"]("flex-basis",t.gutterSize,"px")("order",2*e+1)}}function Zw(e,t){1&e&&r["\u0275\u0275template"](0,Jw,3,4,"div",1),2&e&&r["\u0275\u0275property"]("ngIf",!1===t.last)}const eC=["*"];function tC(e){return void 0!==e.changedTouches&&e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:void 0!==e.clientX&&void 0!==e.clientY?{x:e.clientX,y:e.clientY}:null}function nC(e,t){const n=e.nativeElement.getBoundingClientRect();return"horizontal"===t?n.width:n.height}function iC(e){return"boolean"==typeof e?e:"false"!==e}function rC(e,t){return null==e?t:(e=Number(e),!isNaN(e)&&e>=0?e:t)}function oC(e,t){if("percent"===e){const e=t.reduce((e,t)=>
1null!==t?e+t:e,0);return t.every(e=>null!==e)&&e>99.9&&e<100.1}if("pixel"===e)return 1===t.filter(e=>null===e).length}function sC(e){return null===e.size?null:!0===e.component.lockSize?e.size:null===e.component.minSize?null:e.component.minSize>e.size?e.size:e.component.minSize}function aC(e){return null===e.size?null:!0===e.component.lockSize?e.size:null===e.component.maxSize?null:e.component.maxSize<e.size?e.size:e.component.maxSize}function lC(e,t,n,i){return t.reduce((t,n)=>{const r=function(e,t,n,i){return 0===n?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:t.sizePercentAtStart,pixelRemain:0}:0===t.sizePixelAtStart&&n<0?{areaSnapshot:t,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:n}:"percent"===e?function(e,t,n){const i=(e.sizePixelAtStart+t)/n*100;if(t>0){if(null!==e.area.maxSize&&i>e.area.maxSize){const i=e.area.maxSize/100*n;return{areaSnapshot:e,pixelAbsorb:i,percentAfterAbsorption:e.area.maxSize,pixelRemain:e.sizePixelAtStart+t-i}}return{areaSnapshot:e,pixelAbsorb:t,percentAfterAbsorption:i>100?100:i,pixelRemain:0}}if(t<0){if(null!==e.area.minSize&&i<e.area.minSize){const i=e.area.minSize/100*n;return{areaSnapshot:e,pixelAbsorb:i,percentAfterAbsorption:e.area.minSize,pixelRemain:e.sizePixelAtStart+t-i}}return i<0?{areaSnapshot:e,pixelAbsorb:-e.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:t+e.sizePixelAtStart}:{areaSnapshot:e,pixelAbsorb:t,percentAfterAbsorption:i,pixelRemain:0}}}(t,n,i):"pixel"===e?function(e,t,n){const i=e.sizePixelAtStart+t;return t>0?null!==e.area.maxSize&&i>e.area.maxSize?{areaSnapshot:e,pixelAbsorb:e.area.maxSize-e.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:i-e.area.maxSize}:{areaSnapshot:e,pixelAbsorb:t,percentAfterAbsorption:-1,pixelRemain:0}:t<0?null!==e.area.minSize&&i<e.area.minSize?{areaSnapshot:e,pixelAbsorb:e.area.minSize+t-i,percentAfterAbsorption:-1,pixelRemain:i-e.area.minSize}:i<0?{areaSnapshot:e,pixelAbsorb:-e.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:t+e.sizePixelAtStart}:{areaSnapshot:e,pixelAbsorb:t,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(t,n):void 0}(e,n,t.remain,i);return t.list.push(r),t.remain=r.pixelRemain,t},{remain:n,list:[]})}function cC(e,t){"percent"===e?t.areaSnapshot.area.size=t.percentAfterAbsorption:"pixel"===e&&null!==t.areaSnapshot.area.size&&(t.areaSnapshot.area.size=t.areaSnapshot.sizePixelAtStart+t.pixelAbsorb)}let uC=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.elRef=t,this.cdRef=n,this.renderer=i,this._direction="horizontal",this._unit="percent",this._gutterSize=11,this._gutterStep=1,this._restrictMove=!1,this._useTransition=!1,this._disabled=!1,this._dir="ltr",this._gutterDblClickDuration=0,this.dragStart=new r.EventEmitter(!1),this.dragEnd=new r.EventEmitter(!1),this.gutterClick=new r.EventEmitter(!1),this.gutterDblClick=new r.EventEmitter(!1),this.dragProgressSubject=ne
1w Ge.a,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hidedAreas=[],this._clickTimeout=null,this.direction=this._direction}set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${"vertical"===this._direction?"horizontal":"vertical"}`),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,`as-${"pixel"===this._unit?"percent":"pixel"}`),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=rC(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=rC(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=iC(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=iC(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=iC(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=rC(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ze.a(e=>this.transitionEndSubscriber=e).pipe(_a(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const t={component:e,order:0,size:0,minSize:null,maxSize:null};!0===e.visible?(this.displayedAreas.push(t),this.build(!0,!0)):this.hidedAreas.push(t)}removeArea(e){if(this.displayedAreas.some(t=>t.component===e)){const t=this.displayedAreas.find(t=>t.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(t),1),this.build(!0,!0)}else if(this.hidedAreas.some(t=>t.component===e)){const t=this.hidedAreas.find(t=>t.component===e);this.hidedAreas.splice(this.hidedAreas.indexOf(t),1)}}updateArea(e,t,n){!0===e.visible&&this.build(t,n)}showArea(e){const t=this.hidedAreas.find(t=>t.component===e);if(void 0===t)return;const n=this.hidedAreas.splice(this.hidedAreas.indexOf(t),1);this.displayedAreas.push(...n),this.build(!0,!0)}hideArea(e){const t=this.displayedAreas.find(t=>t.component===e);if(void 0===t)return;const n=this.displayedAreas.splice(this.displayedAreas.indexOf(t),1);n.forEach(e=>{e.order=0,e.size=0}),this.hidedAreas.push(...n),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const t=e.map(e=>rC(e,null));return!1!==oC(this.unit,t)&&(this.displayedAreas.forEach((e,n)=>e.component._size=t[n]),this.build(!1,!0),!0)}build(e,t){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(e=>null!==e.component.order)&&this.displayedAreas.sort((e,t)=>e.component.order-t.component.order),this.displayedAreas.forEach((e,t)=>{e.order=2*t,e.component.setStyleOrder(e.order)})),!0===t){const e=oC(this.unit,this.displayedAreas.map(e=>e.component.size));switch(this.unit){case"percent":{const t=100/this.displayedAreas.length;this.displayedAreas.forEach(n=>{n.size=e?n.component.size:t,n.minSize=sC(n),n.maxSize=aC(n)});break}case"pixel":if(e)this.displayedAreas.forEach(e=>{e.size=e.component.size,e.minSize=sC(e),e.maxSize=aC(e)});else{const e=this.displayedAreas.filter(e=>null===e.component.size);if(0===e.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((e,t)=>{e.size=0===t?null:e.component.size,e.minSize=0===t?null:sC(e),e.maxSize=0===t?null:aC(e)});else if(e.length>1){let e=!1;this.displayedAreas.forEach(t=>{null===t.component.size?!1===e?(t.size=null,t.minSize=null,t.maxSize=null,e=!0):(t.size=100,t.minSize=null,t.maxSize=null):(t.size=t.component.size,t.minSize=sC(t),t.maxSize=aC(t))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(t=>{t.component.setStyleFlex(0,0,`calc( ${t.size}% - ${t.size/100*e}px )`,null!==t.minSize&&t.minSize===t.size,null!==t.maxSize&&t.maxSize===t.size)})}
1else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,t){const n=tC(e);this.startPoint&&this.startPoint.x===n.x&&this.startPoint.y===n.y&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",t),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",t),this.stopDragging()},this.gutterDblClickDuration))}startDragging(e,t,n){e.preventDefault(),e.stopPropagation(),this.startPoint=tC(e),null!==this.startPoint&&!0!==this.disabled&&(this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:nC(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(e=>{const n={area:e,sizePixelAtStart:nC(e.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?e.size:-1};e.order<t?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[n]:this.snapshot.areasBeforeGutter.unshift(n):e.order>t&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[n]):this.snapshot.areasAfterGutter.push(n))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((e,t)=>e+t.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)))}dragEvent(e){if(e.preventDefault(),e.stopPropagation(),null!==this._clickTimeout&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging)return;if(this.endPoint=tC(e),null===this.endPoint)return;let t="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(t=-t);const n=Math.round(t/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let i=lC(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),r=lC(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==i.remain&&0!==r.remain?Math.abs(i.remain)===Math.abs(r.remain)||(Math.abs(i.remain)>Math.abs(r.remain)?r=lC(this.unit,this.snapshot.areasAfterGutter,n+i.remain,this.snapshot.allAreasSizePixel):i=lC(this.unit,this.snapshot.areasBeforeGutter,-(n-r.remain),this.snapshot.allAreasSizePixel)):0!==i.remain?r=lC(this.unit,this.snapshot.areasAfterGutter,n+i.remain,this.snapshot.allAreasSizePixel):0!==r.remain&&(i=lC(this.unit,this.snapshot.areasBeforeGutter,-(n-r.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const e=[...i.list,...r.list],t=e.find(e=>0!==e.percentAfterAbsorption&&e.percentAfterAbsorption!==e.areaSnapshot.area.minSize&&e.percentAfterAbsorption!==e.areaSnapshot.area.maxSize);t&&(t.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-e.filter(e=>e!==t).reduce((e,t)=>e+t.percentAfterAbsorption,0))}i.list.forEach(e=>cC(this.unit,e)),r.list.forEach(e=>cC(this.unit,e)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(e
1=>e.component.unlockEvents());this.dragListeners.length>0;){const e=this.dragListeners.pop();e&&e()}this.isDragging=!1,!this.endPoint||this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y||this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null})})}}notify(e,t){const n=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:t,sizes:n}):"end"===e?this.dragEnd.emit({gutterNum:t,sizes:n}):"click"===e?this.gutterClick.emit({gutterNum:t,sizes:n}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:t,sizes:n}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(n)):"progress"===e&&this.dragProgressSubject.next({gutterNum:t,sizes:n})}ngOnDestroy(){this.stopDragging()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["as-split"]],viewQuery:function(e,t){var n;1&e&&r["\u0275\u0275viewQuery"](Xw,!0),2&e&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.gutterEls=n)},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick",transitionEnd:"transitionEnd"},exportAs:["asSplit"],ngContentSelectors:eC,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275projection"](0),r["\u0275\u0275template"](1,Zw,1,1,"ng-template",0)),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.displayedAreas))},directives:[V,Y],styles:['[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%]    >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%]    >.as-split-area.as-hidden{flex:0 1 0!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%]    >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;
1cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]   .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%]    >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%]    >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]   .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url("")}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging)    >.as-split-area, .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%]{transition:flex-basis .3s}'],changeDetection:0}),e})(),dC=(()=>{class e{constructor(e,t,n,i){this.ngZone=e,this.elRef=t,this.renderer=n,this.split=i,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(e){this._order=rC(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=rC(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=rC(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=rC(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=iC(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=iC(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",e=>{"flex-basis"===e.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,t,n,i,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",t),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",n),!0===i?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",e=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",e=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](uC))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),e})(),hC=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}static forChild(){return{ngModule:e,providers:[]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[ne]]}),e})();class pC{static CurrencyCellRenderer(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}).format(e.value)}}function fC(e,t){if(1&e&&r["\u0275\u0275element"](0,"budget-icon",1),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("name",e.account.nm)("icon",e.account.icn||"layout-none")("color",e.account.clr||"#ccc")("background",e.account.bg)}}let mC=(()=>{class e{agInit(e){this.account=e.data}refresh(e){return this.account=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["account-icon-renderer"]],decls:1,vars:1,consts:[[3,"name","icon","color","background",4,"ngIf"],[3,"name","icon","color","background"]],template:function(e,t){1&e&&r["\u0275\u0275template"](0,fC,1,4,"budget-icon",0),2&e&&r["\u0275\u0275property"]("ngIf",t.account)},directives:[Y,bv],encapsulation:2}),e})();const gC=["*",[["mat-toolbar-row"]]],yC=["*","mat-toolbar-row"];class vC{constructor(e){this._elementRef=e}}const _C=Du(vC);let bC=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e})(),wC=(()=>{class e extends _C{constructor(e,t,n){super(e),this._platform=t,this._document=n}ngAfterViewInit(){Object(r.isDevMode)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(e=>!(e.classList&&e.classList.contains("mat-toolbar-row"))).filter(e=>e.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(e=>!(!e.textContent||!e.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m
1s),r["\u0275\u0275directiveInject"](l))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&r["\u0275\u0275contentQuery"](n,bC,!0),2&e&&r["\u0275\u0275queryRefresh"](i=r["\u0275\u0275loadQuery"]())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:yC,decls:2,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](gC),r["\u0275\u0275projection"](0),r["\u0275\u0275projection"](1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),e})(),CC=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Eu],Eu]}),e})();var EC=n("nVU4");function SC(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"ag-grid-angular",10,11),r["\u0275\u0275listener"]("selectionChanged",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onSelectionChanged()}))("rowDoubleClicked",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onRowDoubleClicked()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("gridOptions",e.gridOptions)}}function DC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",13),r["\u0275\u0275elementStart"](1,"p"),r["\u0275\u0275text"](2," Click "),r["\u0275\u0275elementStart"](3,"mat-icon",14),r["\u0275\u0275text"](4,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](5," on the toolbar above to add your accounts. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"p"),r["\u0275\u0275text"](7," An account can be the name of a bank where you keep your money, or something as simple as a tin can. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}function xC(e,t){if(1&e&&(r["\u0275\u0275template"](0,DC,8,0,"div",12),r["\u0275\u0275pipe"](1,"async")),2&e){const e=r["\u0275\u0275nextContext"]();var n;const t=0===(null==(n=r["\u0275\u0275pipeBind1"](1,1,e.data.accounts))?null:n.length);r["\u0275\u0275property"]("ngIf",t)}}let TC=(()=>{class e{constructor(e,t){this.data=e,this.dialogService=t}ngOnInit(){this.gridOptions={suppressCellSelection:!0,suppressMovableColumns:!0,rowDragManaged:!0,animateRows:!0,rowSelection:"single",defaultColDef:{editable:!1,suppressNavigable:!0,cellClass:"no-border"},stopEditingWhenGridLosesFocus:!0,pagination:!1,getRowNodeId:e=>e.id},this.gridOptions.deltaRowDataMode=!0,this.gridOptions.getRowNodeId=e=>e.id,this.gridOptions.onRowDragMove=this.rowDragMove.bind(this),this.gridOptions.onRowDragEnd=this.rowDragEnd.bind(this),this.gridOptions.onDragStopped=this.dragStopped.bind(this),this.gridOptions.columnDefs=[{headerName:"",valueGetter:e=>{const t=e.data;return(t.nm||"")+":"+(t.icn||"")+":"+(t.clr||"")+":"+(t.bg||"")+":"+(t.sort||"0")},field:"icn",rowDrag:!0,cellRendererFramework:mC,width:50,minWidth:50,maxWidth:50},{headerName:"Account",field:"nm",minWidth:80},{headerName:"Balance",field:"bal",type:"numericColumn",cellRenderer:pC.CurrencyCellRenderer,width:140,minWidth:140}],this.gridOptions.onGridReady=e=>{this.gridApi=e.api,e.api.sizeColumnsToFit(),this.resizeFunction=function(){setTimeout((function(){e.api.sizeColumnsToFit()}))},window.addEventListener("resize",this.resizeFunction),this.sub=this.data.accounts.subscribe(t=>{e.api.setRowData(t),e.api.refreshCells({columns:["nm"],force:!0})}),this.uiSub=this.data.ui.subscribe(e=>{this.gridApi.sizeColumnsToFit()}),this.selectGridRow(this.data.snapshot.selectedAccount)},this.selectedAccountSub=this.data.selectedAccount.subscribe(e=>{this.selectGridRow(e)})}selectGridRow(e){this.gridApi&&(e?this.gridApi.getRowNode(e.id).setSelected(!0,!0,
1!1):this.gridApi.getSelectedNodes().forEach(e=>{e.setSelected(!1,!0,!1)}))}onSelectionChanged(){let e=this.gridApi.getSelectedRows();e.length&&this.data.selectAccount(e[0].id)}onRowDoubleClicked(){this.dialogService.showAccountDialog(this.data.snapshot.selectedAccount)}rowDragMove(e){this.lastRowDragMoveEvent=e}rowDragEnd(e){this.lastRowDragMoveEvent=null,this.handleDragEndOrStopped(e.node.data,e.overIndex)}dragStopped(){this.lastRowDragMoveEvent&&this.handleDragEndOrStopped(this.lastRowDragMoveEvent.node.data,this.lastRowDragMoveEvent.overIndex),this.lastRowDragMoveEvent=null}handleDragEndOrStopped(e,t){this.data.changeAccountSort(e.id,t),this.data.selectAccount(e.id)}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.uiSub&&this.uiSub.unsubscribe(),this.selectedAccountSub&&this.selectedAccountSub.unsubscribe(),window.removeEventListener("resize",this.resizeFunction)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-account-list"]],decls:18,vars:13,consts:[["fxLayout","column","fxFlexFill","","height","100%"],[1,"tab-header-toolbar"],["mat-button","","title","Add account",3,"disabled","click"],["aria-hidden","false","aria-label","Add account"],["mat-button","","title","Edit account",3,"disabled","click"],["aria-hidden","false","aria-label","Edit account"],["mat-button","","title","Delete account",3,"disabled","click"],["aria-hidden","false","aria-label","Delete account"],["style","height:100%","class","ag-theme-material",3,"gridOptions","selectionChanged","rowDoubleClicked",4,"ngIf","ngIfElse"],["emptyAccounts",""],[1,"ag-theme-material",2,"height","100%",3,"gridOptions","selectionChanged","rowDoubleClicked"],["accountsGrid",""],["class","mat-typography mat-tab-content",4,"ngIf"],[1,"mat-typography","mat-tab-content"],["role","img",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"mat-toolbar",1),r["\u0275\u0275elementStart"](2,"button",2),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showAccountDialog()})),r["\u0275\u0275pipe"](3,"async"),r["\u0275\u0275elementStart"](4,"mat-icon",3),r["\u0275\u0275text"](5,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",4),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showAccountDialog(t.data.snapshot.selectedAccount)})),r["\u0275\u0275pipe"](7,"async"),r["\u0275\u0275elementStart"](8,"mat-icon",5),r["\u0275\u0275text"](9,"edit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"button",6),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showAccountDeleteDialog(t.data.snapshot.selectedAccount)})),r["\u0275\u0275pipe"](11,"async"),r["\u0275\u0275elementStart"](12,"mat-icon",7),r["\u0275\u0275text"](13,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,SC,2,1,"ag-grid-angular",8),r["\u0275\u0275pipe"](15,"async"),r["\u0275\u0275template"](16,xC,2,3,"ng-template",null,9,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](17);var n;const i=null==(n=r["\u0275\u0275pipeBind1"](15,11,t.data.accounts))?null:n.length;r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](3,5,t.data.selectedBudget)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](7,7,t.data.selectedAccount)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](11,9,t.data.selectedAccount)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",i)("ngIfElse",e)}},directives:[ly,Ny,wC,cm,ug,Y,EC.AgGridAngular],pipes:[ee],encapsulation:2}),e})();function OC(e,t){if(1&e&&r["\u0275\u0275element"](0,"budget-icon",1),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("name",e.category.nm)("icon",e.category.icn||"layout-none")("color",e.category.clr||"#ccc")("background",e.category.bg)}}let kC=(()=>{class e{constructor(e){this.dataService=e}agInit(e){this.category=e.data}refresh(e){return this.category=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["category-icon-renderer"]],decls:1,vars:1,consts:[[3,"name","icon","color","background",4,"ngIf"],[3,"name","icon","color","background"]],template:function(e,t){1&e&&r["\u0275\u0275template"](0,OC,1,4,"budget-icon",0),2&e&&r["\u0275\u0275property"]("ngIf",t.category)},directives:[Y,bv],encapsulation:2}),e})();function IC(e,t){1&e&&r["\u0275\u0275element"](0,"span",2)}function RC(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275template"](1,IC,1,0,"span",1),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.category.par),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",e.category.nm,"\n")}}let MC=(()=>{class e{constructor(e){this.dialogService=e}agInit(e){this.rowIndex=e.rowIndex,this.category=e.data}refresh(e){return this.rowIndex=e.rowIndex,this.category=e.data,!1}clicked(){this.dialogService.showCategoryDialog(this.category)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Sw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["category-name-renderer"]],decls:1,vars:1,consts:[[4,"ngIf"],["class","nested-category",4,"ngIf"],[1,"nested-category"]],template:function(e,t){1&e&&r["\u0275\u0275template"](0,RC,3,2,"span",0),2&e&&r["\u0275\u0275property"]("ngIf",t.category)},directives:[Y],encapsulation:2}),e})();function AC(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"button",11),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.makeSubcategory()})),r["\u0275\u0275pipe"](2,"async"),r["\u0275\u0275elementStart"](3,"mat-icon",12),r["\u0275\u0275text"](4,"subdirectory_arrow_right"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",13),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.makeTopLevelCategory()})),r["\u0275\u0275elementStart"](6,"mat-icon",14),r["\u0275\u0275text"](7,"subdirectory_arrow_left"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=t.ngIf,n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",0===r["\u0275\u0275pipeBind1"](2,2,n.data.selectedCategoryIndex)||(null==e?null:e.par)||(null==e?null:null==e.children?null:e.children.length)>0),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!(null!=e&&e.par))}}function PC(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"ag-grid-angular",15,16),r["\u0275\u0275listener"]("selectionChanged",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onSelectionChanged()}))("rowDoubleClicked",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onRowDoubleClicked()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("gridOptions",e.gridOptions)}}function LC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",17),r["\u0275\u0275elementStart"](1,"p"),r["\u0275\u0275text"](2," Click "),r["\u0275\u0275elementStart"](3,"mat-icon",18),r["\u0275\u0275text"](4,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](5," on the toolbar above to add your categories. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"p"),r["\u0275\u0275text"](7,' Categories are just groupings for your income and expenses. Some examples would be: "Housing", "Utilities", "Medical", and "Education". '),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}let NC=(()=>{class e{constructor(e,t){this.data=e,this.dialogService=t}ngOnInit(){this.gridOptions={suppressCellSelection:!0,suppressMovableColumns:!0,rowDragManaged:!0,animateRows:!0,rowSelection:"single",defaultColDef:{editable:!1,suppressNavigable:!0,cellClass:"no-border"},stopEditingWhenGridLosesFocus:!0,pagination:!1,getRowNodeId:e=>e.id},this.gridOptions.deltaRowDataMode=!0,this.gridOptions.getRowNodeId=e=>e.id,this.gridOptions.onRowDragMove=this.rowDragMove.bind(this),this.gridOptions.onRowDragEnd=this.rowDragEnd.bind(this),this.gridOptions.onDragStopped=this.dragStopped.bind(this),this.gridOptions.columnDefs=[{headerName:"",valueGetter:e=>{const t=e.data;return(t.nm||"")+":"+(t.icn||"")+":"+(t.clr||"")+":"+(t.bg||"")+":"+(t.sort||"0")+":"+(t.par||"")},rowDrag:!0,cellRendererFramework:kC,width:50,minWidth:50,maxWidth:50},{headerName:"Category",field:"nm",cellRendererFramework:MC,minWidth:120},{headerName:"Type",field:"type",minWidth:80,maxWidth:80,valueGetter:function(e){return"I"===e.data.typ?"Income":"Expense"}}],this.gridOptions.onGridReady=e=>{this.gridApi=e.api,e.api.sizeColumnsToFit(),this.resizeFunction=function(){setTimeout((function(){e.api.sizeColumnsToFit()}))},window.addEventListener("resize",this.resizeFunction),this.sub=this.data.categories.subscribe(t=>{e.api.setRowData(t),e.api.refreshCells({columns:["nm"],force:!0})}),this.uiSub=this.data.ui.subscribe(e=>{this.gridApi.sizeColumnsToFit()}),this.selectGridRow(this.data.snapshot.selectedCategory)},this.selectedCategorySub=this.data.selectedCategory.subscribe(e=>{this.selectGridRow(e)})}selectGridRow(e){this.gridApi&&(e?this.gridApi.getRowNode(e.id).setSelected(!0,!0,
1!1):this.gridApi.getSelectedNodes().forEach(e=>{e.setSelected(!1,!0,!1)}))}onSelectionChanged(){let e=this.gridApi.getSelectedRows();e.length&&e[0]!==this.data.snapshot.selectedCategory&&this.data.selectCategory(e[0].id)}onRowDoubleClicked(){this.dialogService.showCategoryDialog(this.data.snapshot.selectedCategory)}rowDragMove(e){this.lastRowDragMoveEvent=e}rowDragEnd(e){this.lastRowDragMoveEvent=null,this.handleDragEndOrStopped(e.node.data,e.overIndex)}dragStopped(){this.lastRowDragMoveEvent&&this.handleDragEndOrStopped(this.lastRowDragMoveEvent.node.data,this.lastRowDragMoveEvent.overIndex),this.lastRowDragMoveEvent=null}handleDragEndOrStopped(e,t){this.data.changeCategorySort(e.id,t),this.data.selectCategory(e.id)}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.uiSub&&this.uiSub.unsubscribe(),this.selectedCategorySub&&this.selectedCategorySub.unsubscribe(),window.removeEventListener("resize",this.resizeFunction)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-category-list"]],decls:20,vars:16,consts:[["fxLayout","column","fxFlexFill","","height","100%"],[1,"tab-header-toolbar"],["mat-button","","title","Add category",3,"disabled","click"],["aria-hidden","false","aria-label","Add category"],["mat-button","","title","Edit category",3,"disabled","click"],["aria-hidden","false","aria-label","Edit category"],["mat-button","","title","Delete category",3,"disabled","click"],["aria-hidden","false","aria-label","Delete category"],[4,"ngIf"],["style","height:100%","class","ag-theme-material",3,"gridOptions","selectionChanged","rowDoubleClicked",4,"ngIf","ngIfElse"],["emptyCategories",""],["mat-button","","title","Make subcategory",3,"disabled","click"],["aria-hidden","false","aria-label","Make subcategory",2,"line-height","25px","vertical-align","middle"],["mat-button","","title","Make top-level category",3,"disabled","click"],["aria-hidden","false","aria-label","Make top-level category",2,"line-height","25px","vertical-align","middle"],[1,"ag-theme-material",2,"height","100%",3,"gridOptions","selectionChanged","rowDoubleClicked"],["categoriesGrid",""],[1,"mat-typography","mat-tab-content"],["role","img",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"mat-toolbar",1),r["\u0275\u0275elementStart"](2,"button",2),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showCategoryDialog()})),r["\u0275\u0275pipe"](3,"async"),r["\u0275\u0275elementStart"](4,"mat-icon",3),r["\u0275\u0275text"](5,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",4),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showCategoryDialog(t.data.snapshot.selectedCategory)})),r["\u0275\u0275pipe"](7,"async"),r["\u0275\u0275elementStart"](8,"mat-icon",5),r["\u0275\u0275text"](9,"edit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"button",6),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showCategoryDeleteDialog(t.data.snapshot.selectedCategory)})),r["\u0275\u0275pipe"](11,"async"),r["\u0275\u0275elementStart"](12,"mat-icon",7),r["\u0275\u0275text"](13,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,AC,8,4,"ng-container",8),r["\u0275\u0275pipe"](15,"async"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,PC,2,1,"ag-grid-angular",9),r["\u0275\u0275pipe"](17,"async"),r["\u0275\u0275template"](18,LC,8,0,"ng-template",null,10,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](19);var n;const i=null==(n=r["\u0275\u0275pipeBind1"](17,14,t.data.categories))?null:n.length;r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](3,6,t.data.selectedBudget)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](7,8,t.data.selectedCategory)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](11,10,t.data.selectedCategory)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](15,12,t.data.selectedCategory)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",i)("ngIfElse",e)}},directives:[ly,Ny,wC,cm,ug,Y,EC.AgGridAngular],pipes:[ee],encapsulation:2}),e})();function FC(e,t){if(1&e&&r["\u0275\u0275element"](0,"budget-icon",1),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("name",e.item.category.nm)("icon",e.item.category.icn||"layout-none")("color",e.item.category.clr||"#ccc")("background",e.item.category.bg)}}let jC=(()=>{class e{agInit(e){this.item=e.data}refresh(e){return this.item=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["item-icon-renderer"]],decls:1,vars:1,consts:[[3,"name","icon","color","background",4,"ngIf"],[3,"name","icon","color","background"]],template:function(e,t){1&e&&r["\u0275\u0275template"](0,FC,1,4,"budget-icon",0),2&e&&r["\u0275\u0275property"]("ngIf",null==t.item?null:t.item.category)},directives:[Y,bv],encapsulation:2}),e})();function VC(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"ag-grid-angular",10,11),r["\u0275\u0275listener"]("selectionChanged",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onSelectionChanged()}))("rowDoubleClicked",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().onRowDoubleClicked()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("gridOptions",e.gridOptions)}}function HC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",12),r["\u0275\u0275elementStart"](1,"p"),r["\u0275\u0275text"](2," Once you have added your accounts and categories, click "),r["\u0275\u0275elementStart"](3,"mat-icon",13),r["\u0275\u0275text"](4,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](5," on the toolbar above to add your items. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"p"),r["\u0275\u0275text"](7," Items are either "),r["\u0275\u0275elementStart"](8,"span",14),r["\u0275\u0275text"](9,"income"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](10," (like paychecks and tax returns) or "),r["\u0275\u0275elementStart"](11,"span",14),r["\u0275\u0275text"](12,"expenses"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](13," (like bills and groceries). "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}let YC=(()=>{class e{constructor(e,t){this.data=e,this.dialogService=t}ngOnInit(){this.gridOptions={suppressCellSelection:!0,suppressMovableColumns:!0,rowDragManaged:!0,animateRows:!0,rowSelection:"single",defaultColDef:{editable:!1,suppressNavigable:!0,cellClass:"no-border"},stopEditingWhenGridLosesFocus:!0,pagination:!1,getRowNodeId:e=>e.id},this.gridOptions.deltaRowDataMode=!0,this.gridOptions.getRowNodeId=e=>e.id,this.gridOptions.onRowDragMove=this.rowDragMove.bind(this),this.gridOptions.onRowDragEnd=this.rowDragEnd.bind(this),this.gridOptions.onDragStopped=this.dragStopped.bind(this),this.gridOptions.columnDefs=[{headerName:"",valueGetter:e=>{const t=e.data.category;return t?(t.sort||"")+":"+(t.nm||"")+":"+(t.icn||"")+":"+(t.clr||"")+":"+(t.bg||""):""},rowDrag:!0,cellRendererFramework:jC,width:50,minWidth:50,maxWidth:50},{headerName:"Item",field:"nm",minWidth:80}],this.gridOptions.onGridReady=e=>{this.gridApi=e.api,e.api.sizeColumnsToFit(),this.resizeFunction=function(){setTimeout((function(){e.api.sizeColumnsToFit()}))},window.addEventListener("resize",this.resizeFunction),this.sub=this.data.items.subscribe(t=>{e.api.setRowData(t),e.api.refreshCells({columns:["nm"],force:!0})}),this.uiSub=this.data.ui.subscribe(e=>{this.gridApi.sizeColumnsToFit()}),this.selectGridRow(this.data.snapshot.selectedItem)},this.selectedItemSub=this.data.selectedItem.subscribe(e=>{this.selectGridRow(e)})}selectGridRow(e){this.gridApi&&(e?this.gridApi.getRowNode(e.id).setSelected(!0,!0,
1!1):this.gridApi.getSelectedNodes().forEach(e=>{e.setSelected(!1,!0,!1)}))}onSelectionChanged(){let e=this.gridApi.getSelectedRows();e.length&&this.data.selectItem(e[0].id)}onRowDoubleClicked(){this.dialogService.showItemDialog(this.data.snapshot.selectedItem)}rowDragMove(e){this.lastRowDragMoveEvent=e}rowDragEnd(e){this.lastRowDragMoveEvent=null,this.handleDragEndOrStopped(e.node.data,e.overIndex)}dragStopped(){this.lastRowDragMoveEvent&&this.handleDragEndOrStopped(this.lastRowDragMoveEvent.node.data,this.lastRowDragMoveEvent.overIndex),this.lastRowDragMoveEvent=null}handleDragEndOrStopped(e,t){this.data.changeItemSort(e.id,t),this.data.selectItem(e.id)}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.uiSub&&this.uiSub.unsubscribe(),this.selectedItemSub&&this.selectedItemSub.unsubscribe(),window.removeEventListener("resize",this.resizeFunction)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-item-list"]],decls:18,vars:13,consts:[["fxLayout","column","fxFlexFill","","height","100%"],[1,"tab-header-toolbar"],["mat-button","","title","Add item",3,"disabled","click"],["aria-hidden","false","aria-label","Add item"],["mat-button","","title","Edit item",3,"disabled","click"],["aria-hidden","false","aria-label","Edit item"],["mat-button","","title","Delete item",3,"disabled","click"],["aria-hidden","false","aria-label","Delete item"],["style","height:100%","class","ag-theme-material",3,"gridOptions","selectionChanged","rowDoubleClicked",4,"ngIf","ngIfElse"],["emptyItems",""],[1,"ag-theme-material",2,"height","100%",3,"gridOptions","selectionChanged","rowDoubleClicked"],["itemsGrid",""],[1,"mat-typography","mat-tab-content"],["aria-hidden","false","aria-label","Add Item","role","img",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],[2,"font-weight","bold"]],template:function(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"mat-toolbar",1),r["\u0275\u0275elementStart"](2,"button",2),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showItemDialog()})),r["\u0275\u0275pipe"](3,"async"),r["\u0275\u0275elementStart"](4,"mat-icon",3),r["\u0275\u0275text"](5,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"button",4),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showItemDialog(t.data.snapshot.selectedItem)})),r["\u0275\u0275pipe"](7,"async"),r["\u0275\u0275elementStart"](8,"mat-icon",5),r["\u0275\u0275text"](9,"edit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"button",6),r["\u0275\u0275listener"]("click",(function(e){return t.dialogService.showItemDeleteDialog(t.data.snapshot.selectedItem)})),r["\u0275\u0275pipe"](11,"async"),r["\u0275\u0275elementStart"](12,"mat-icon",7),r["\u0275\u0275text"](13,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,VC,2,1,"ag-grid-angular",8),r["\u0275\u0275pipe"](15,"async"),r["\u0275\u0275template"](16,HC,14,0,"ng-template",null,9,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](17);var n;const i=null==(n=r["\u0275\u0275pipeBind1"](15,11,t.data.items))?null:n.length;r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](3,5,t.data.selectedBudget)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](7,7,t.data.selectedItem)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!r["\u0275\u0275pipeBind1"](11,9,t.data.selectedItem)),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",i)("ngIfElse",e)}},directives:[ly,Ny,wC,cm,ug,Y,EC.AgGridAngular],pipes:[ee],encapsulation:2}),e})();function BC(e,t){if(1&e&&r["\u0275\u0275element"](0,"budget-icon",2),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("name",null==e.itemEvent?null:e.itemEvent.category.nm)("icon",(null==e.itemEvent?null:e.itemEvent.category.icn)||"layout-none")("color",(null==e.itemEvent?null:e.itemEvent.category.clr)||"#ccc")("background",null==e.itemEvent?null:e.itemEvent.category.bg)}}function GC(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",3),r["\u0275\u0275elementStart"](1,"div",4),r["\u0275\u0275elementStart"](2,"h4"),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",5),r["\u0275\u0275text"](5," Income"),r["\u0275\u0275element"](6,"br"),r["\u0275\u0275text"](7),r["\u0275\u0275pipe"](8,"currency"),r["\u0275\u0275pipe"](9,"dollarsAndCents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",5),r["\u0275\u0275text"](11," Expenses"),r["\u0275\u0275element"](12,"br"),r["\u0275\u0275text"](13),r["\u0275\u0275pipe"](14,"currency"),r["\u0275\u0275pipe"](15,"dollarsAndCents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"div",5),r["\u0275\u0275text"](17," Difference"),r["\u0275\u0275element"](18,"br"),r["\u0275\u0275text"](19),r["\u0275\u0275pipe"](20,"currency"),r["\u0275\u0275pipe"](21,"dollarsAndCents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](e.itemEvent.nm),r["\u0275\u0275advance"](4),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](8,4,r["\u0275\u0275pipeBind1"](9,6,e.itemEvent.inc))," "),r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](14,8,r["\u0275\u0275pipeBind1"](15,10,e.itemEvent.exp))," "),r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind1"](20,12,r["\u0275\u0275pipeBind1"](21,14,e.itemEvent.diff))," ")}}let WC=(()=>{class e{constructor(){}agInit(e){this.itemEvent=e.data}refresh(e){return this.itemEvent=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["item-event-icon-renderer"]],decls:2,vars:2,consts:[[3,"name","icon","color","background",4,"ngIf"],["class","table-container",4,"ngIf"],[3,"name","icon","color","background"],[1,"table-container"],[1,"table-cell",2,"min-width","150px"],[1,"table-cell","details"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,BC,1,4,"budget-icon",0),r["\u0275\u0275template"](1,GC,22,16,"div",1)),2&e&&(r["\u0275\u0275property"]("ngIf",null==t.itemEvent?null:t.itemEvent.category),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.itemEvent&&t.itemEvent.header))},directives:[Y,bv],pipes:[te,Br],encapsulation:2}),e})();function UC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",2),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}let zC=(()=>{class e{constructor(){}agInit(e){this.itemEvent=e.data}refresh(e){return this.itemEvent=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["item-event-paid-renderer"]],decls:2,vars:1,consts:[[2,"height","100%"],["style","vertical-align:middle","aria-hidden","false","aria-label","Paid",4,"ngIf"],["aria-hidden","false","aria-label","Paid",2,"vertical-align","middle"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275template"](1,UC,2,0,"mat-icon",1),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","P"===(null==t.itemEvent?null:t.itemEvent.sts)))},directives:[Y,ug],encapsulation:2}),e})();function qC(e,t){1&e&&r["\u0275\u0275element"](0,"span",2)}let KC=(()=>{class e{constructor(){}agInit(e){this.itemEvent=e.data}refresh(e){return this.itemEvent=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["item-event-due-renderer"]],decls:3,vars:2,consts:[[2,"height","100%"],["style","margin-left:10px;
1vertical-align:middle","class","icon-science-fiction-robot","title","Autopay",4,"ngIf"],["title","Autopay",1,"icon-science-fiction-robot",2,"margin-left","10px","vertical-align","middle"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275text"](1),r["\u0275\u0275template"](2,qC,1,0,"span",1),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",t.itemEvent.dueOn.format("MM/DD/YYYY")," "),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.itemEvent.item.auto))},directives:[Y],encapsulation:2}),e})();var $C=n("Iab2");let QC=(()=>{class e{constructor(){}exportToCsvFile(e,t){const n=(e,t)=>null===t?"":t,i=Object.keys(e[0]);let r=e.map(e=>i.map(t=>JSON.stringify(e[t],n)).join(","));r.unshift(i.join(","));let o=r.join("\r\n");var s=new Blob([o],{type:"text/csv"});Object($C.saveAs)(s,`${t}.csv`)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function XC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",20),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function JC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",20),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function ZC(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",20),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function eE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",20),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function tE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"ag-grid-angular",21,22),r["\u0275\u0275listener"]("selectionChanged",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).onSelectionChanged()}))("rowDoubleClicked",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).onRowDoubleClicked()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("gridOptions",e.gridOptions)}}function nE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",23),r["\u0275\u0275text"](1," Once you have added your accounts, categories and items, your planner will appear here. "),r["\u0275\u0275elementEnd"]())}function iE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",1),r["\u0275\u0275elementStart"](1,"mat-toolbar",2),r["\u0275\u0275elementStart"](2,"button",3),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.dialogService.showItemEventDialog(n.data.snapshot.selectedItemEvent.item.id,n.data.snapshot.selectedItemEvent.pos)})),r["\u0275\u0275elementStart"](3,"mat-icon",4),r["\u0275\u0275text"](4,"edit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",5),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.dialogService.showItemEventDeleteDialog(n.data.snapshot.selectedItemEvent)})),r["\u0275\u0275elementStart"](6,"mat-icon",6),r["\u0275\u0275text"](7,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"button",7),r["\u0275\u0275pipe"](9,"async"),r["\u0275\u0275elementStart"](10,"mat-icon"),r["\u0275\u0275text"](11,"view_agenda"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"mat-menu",null,8),r["\u0275\u0275elementStart"](14,"button",9),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.data.patchSettings({plnHd:n.plannerHeaderType.PayPeriod},!0)})),r["\u0275\u0275elementStart"](15,"span",10),r["\u0275\u0275text"](16,"Pay Period Headers"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,XC,2,0,"mat-icon",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"button",9),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.data.patchSettings({plnHd:n.plannerHeaderType.Week},!0)})),r["\u0275\u0275elementStart"](19,"span",10),r["\u0275\u0275text"](20,"Week Headers"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,JC,2,0,"mat-icon",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"button",9),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.data.patchSettings({plnHd:n.plannerHeaderType.Month},!0)})),r["\u0275\u0275elementStart"](23,"span",10),r["\u0275\u0275text"](24,"Month Headers"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](25,ZC,2,0,"mat-icon",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](26,"button",9),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.data.patchSettings({plnHd:n.plannerHeaderType.None},!0)})),r["\u0275\u0275elementStart"](27,"span",10),r["\u0275\u0275text"](28,"No Headers"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](29,eE,2,0,"mat-icon",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](30,"button",12),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().exportToCsv()})),r["\u0275\u0275pipe"](31,"async"),r["\u0275\u0275element"](32,"mat-icon",13),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](33,"button",14),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().changeStatusToPaid()})),r["\u0275\u0275elementStart"](34,"mat-icon",15),r["\u0275\u0275text"](35,"check"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"button",16),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().changeStatusToResolved()})),r["\u0275\u0275elementStart"](37,"mat-icon",17),r["\u0275\u0275text"](38,"check_circle"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](39,tE,2,1,"ag-grid-angular",18),r["\u0275\u0275pipe"](40,"async"),r["\u0275\u0275template"](41,nE,2,0,"ng-template",null,19,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.ngIf,s=r["\u0275\u0275reference"](13),a=r["\u0275\u0275reference"](42),l=r["\u0275\u0275nextContext"]();var n;const c=!(null!=(n=r["\u0275\u0275pipeBind1"](9,13,l.data.itemEvents))&&n.length);var i;const u=!(null!=(i=r["\u0275\u0275pipeBind1"](31,15,l.data.itemEvents))&&i.length);var o;const d=null==(o=r["\u0275\u0275pipeBind1"](40,17,l.data.itemEvents))?null:o.length;r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("disabled",!l.selectedItemEvent||l.selectedItemEvent.header),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("disabled",!l.selectedItemEvent||l.selectedItemEvent.header),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("matMenuTriggerFor",s)("disabled",c),r["\u0275\u0275advance"](9),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.plnHd)===l.plannerHeaderType.PayPeriod),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.plnHd)===l.plannerHeaderType.Week),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.plnHd)===l.plannerHeaderType.Month),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.plnHd)===l.plannerHeaderType.None),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",u),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("disabled",!l.selectedItemEvent||"P"===l.selectedItemEvent.sts),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("disabled",!l.selectedItemEvent),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",d)("ngIfElse",a)}}let rE=(()=>{class e{constructor(e,t,n){this.data=e,this.dialogService=t,this.exportService=n,this.filterActive=!1,this.gridData=[],this.plannerHeaderType=Yr}ngOnInit(){this.setGridOptions(),this.selectedItemEventSub=this.data.selectedItemEvent.subscribe(e=>{this.selectedItemEvent=e,this.selectGridRow(e)})}setGridOptions(){this.gridOptions={columnDefs:this.getColumnDefs(),deltaRowDataMode:!0,getRowNodeId:e=>e.id,rowSelection:"single",rowDragManaged:!0,onRowDragMove:this.rowDragMove.bind(this),onRowDragEnd:this.rowDragEnd.bind(this),onDragStopped:this.dragStopped.bind(this),animateRows:!0,suppressCellSelection:!0,suppressMovableColumns:!0,suppressScrollOnNewData:!0,defaultColDef:{sortable:!1,editable:!1,suppressNavigable:!0,cellClass:"no-border",resizable:!0}},this.gridOptions.onGridReady=e=>{this.gridApi=e.api,this.itemEventsSub=this.data.itemEvents.subscribe(t=>{this.gridData=[...t],e.api.setRowData(this.gridData)}),this.accountsSub=this.data.accounts.subscribe(e=>{this.gridOptions.api&&this.gridOptions.api.setColumnDefs(this.getColumnDefs())}),this.selectGridRow(this.selectedItemEvent)}}selectGridRow(e){this.gridApi&&(e?this.gridApi.getRowNode(e.id).setSelected(!0,!0,
1!1):this.gridApi.getSelectedNodes().forEach(e=>{e.setSelected(!1,!0,!1)}))}onSelectionChanged(){let e=this.gridApi.getSelectedRows();e.length&&this.data.selectItemEvent(e[0].id)}onRowDoubleClicked(){const e=this.data.snapshot.selectedItemEvent;e&&e.item&&this.dialogService.showItemEventDialog(e.item.id,e.pos)}getColumnDefs(){let e=[{headerName:"",valueGetter:e=>{const t=e.data.category;return t?(t.sort||"")+":"+(t.nm||"")+":"+(t.icn||"")+":"+(t.clr||"")+":"+(t.bg||""):""},rowDrag:e=>!e.data.header,colSpan:t=>t.data.header?e.length:1,cellRendererFramework:WC,cellClassRules:{"item-event-header":"data.header"},width:50,minWidth:50,maxWidth:50},{headerName:"Item",field:"nm",cellRenderer:e=>{let t=e.data;return`${t.nm} (${t.pos}${t.schedule.rep?"":"-once"})`},minWidth:80},{headerName:"Amount",field:"amt",type:"numericColumn",cellRenderer:e=>{let t=e.data,n=100*t.amt;return"E"===t.category.typ&&(n*=-1),pC.CurrencyCellRenderer({value:0===n?0:n/100})},width:110},{headerName:"Due on",field:"dueOn",cellRendererFramework:KC,width:110},{headerName:"Pay on",field:"payOn",cellRenderer:e=>e.value.format("MM/DD/YYYY"),width:100},{headerName:"Paid",field:"sts",cellRendererFramework:zC,width:65}];for(let t=0;t<this.data.snapshot.accounts.length;t++){let n=this.data.snapshot.accounts[t];e.push({headerName:n.nm,field:"totals",type:"numericColumn",cellClass:"item-event-account",cellClassRules:{negative:e=>e.value&&e.value.length&&e.value[t]<0,current:e=>e.data.account.id===n.id},cellRenderer:e=>{if(e.value&&e.value.length){let n=e.value[t];return pC.CurrencyCellRenderer({value:0===n?0:n/100})}return""},width:120})}return e}exportToCsv(){this.exportService.exportToCsvFile(this.data.getItemEventsExportData(this.getColumnDefs()),`${this.data.snapshot.selectedBudget.nm}-${Vr().format("YYYY-MM-DD-HH-MM-SS")}`)}changeStatusToPaid(){this.selectedItemEvent&&this.data.changeItemEventStatus(this.selectedItemEvent,"P")}changeStatusToResolved(){this.selectedItemEvent&&this.data.changeItemEventStatus(this.selectedItemEvent,"R")}rowDragMove(e){this.lastRowDragMoveEvent=e}rowDragEnd(e){this.lastRowDragMoveEvent=null,this.handleDragEndOrStopped(e.node.data,e.overIndex)}dragStopped(){this.lastRowDragMoveEvent&&this.handleDragEndOrStopped(this.lastRowDragMoveEvent.node.data,this.lastRowDragMoveEvent.overIndex),this.lastRowDragMoveEvent=null}handleDragEndOrStopped(e,t){this.data.changeItemEventSort(e,t),this.data.selectItemEvent(e.id)}ngOnDestroy(){this.itemEventsSub&&this.itemEventsSub.unsubscribe(),this.accountsSub&&this.itemEventsSub.unsubscribe(),this.selectedItemEventSub&&this.selectedItemEventSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw),r["\u0275\u0275directiveInject"](QC))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-item-event-list"]],decls:2,vars:3,consts:[["fxLayout","column","fxFlexFill","","height","100%",4,"ngIf"],["fxLayout","column","fxFlexFill","","height","100%"],[1,"tab-header-toolbar"],["mat-button","","title","Edit item event",3,"disabled","click"],["aria-hidden","false","aria-label","Edit item event"],["mat-button","","title","Delete item event",3,"disabled","click"],["aria-hidden","false","aria-label","Delete item event"],["mat-button","","aria-label","Select header type","title","Select header type",3,"matMenuTriggerFor","disabled"],["headerTypeMenu","matMenu"],["mat-menu-item","",3,"click"],[2,"margin-right","10px"],["aria-label","Selected",4,"ngIf"],["mat-button","","title","Export to CSV file",3,"disabled","click"],["aria-hidden","false","aria-label","Export to CSV file","svgIcon","file-download"],["mat-button","","title","Change status to paid",3,"disabled","click"],["aria-hidden","false","aria-label","Change status to paid"],["mat-button","","title","Resolve and move to history",3,"disabled","click"],["aria-hidden","false","aria-label","Resolve and move to history"],["class","ag-theme-material","style","height:100%",3,"gridOptions","selectionChanged","rowDoubleClicked",4,"ngIf","ngIfElse"],["plannerHelp",""],["aria-label","Selected"],[1,"ag-theme-material",2,"height","100%",3,"gridOptions","selectionChanged","rowDoubleClicked"],["
1itemsGrid",""],[1,"mat-typography","mat-tab-content"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,iE,43,19,"div",0),r["\u0275\u0275pipe"](1,"async")),2&e&&r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](1,1,t.data.ui))},directives:[Y,ly,Ny,wC,cm,ug,Kw,Ww,jw,EC.AgGridAngular],pipes:[ee],encapsulation:2}),e})(),oE=(()=>{class e{constructor(){}agInit(e){this.historyItem=e.data}refresh(e){return this.historyItem=e.data,!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-history-icon-renderer"]],decls:1,vars:4,consts:[[3,"name","icon","color","background"]],template:function(e,t){1&e&&r["\u0275\u0275element"](0,"budget-icon",0),2&e&&r["\u0275\u0275property"]("name",null==t.historyItem?null:t.historyItem.catNm)("icon",(null==t.historyItem?null:t.historyItem.catIcn)||"layout-none")("color",(null==t.historyItem?null:t.historyItem.catClr)||"#ccc")("background",null==t.historyItem?null:t.historyItem.catBg)},directives:[bv],encapsulation:2}),e})();function sE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"ag-grid-angular",15,16),r["\u0275\u0275listener"]("selectionChanged",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).onSelectionChanged()}))("rowDoubleClicked",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).onRowDoubleClicked()})),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("gridOptions",e.gridOptions)}}function aE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",18),r["\u0275\u0275text"](1," No search results. "),r["\u0275\u0275elementEnd"]())}function lE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",18),r["\u0275\u0275text"](1," No history yet. Your history is created when you resolve item events in the planner. "),r["\u0275\u0275elementEnd"]())}function cE(e,t){if(1&e&&(r["\u0275\u0275template"](0,aE,2,0,"div",17),r["\u0275\u0275template"](1,lE,2,0,"div",17)),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("ngIf",e.data.historySearchText),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.data.historySearchText)}}function uE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",1),r["\u0275\u0275elementStart"](1,"mat-toolbar",2),r["\u0275\u0275elementStart"](2,"mat-form-field",3),r["\u0275\u0275elementStart"](3,"mat-select",4),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.historyItemRowCount=t}))("selectionChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.changeHistoryRowCount(t.value)})),r["\u0275\u0275elementStart"](4,"mat-option",5),r["\u0275\u0275text"](5,"5 rows"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"mat-option",5),r["\u0275\u0275text"](7,"10 rows"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"mat-option",5),r["\u0275\u0275text"](9,"25 rows"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"mat-option",5),r["\u0275\u0275text"](11,"50 rows"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"mat-form-field",6),r["\u0275\u0275elementStart"](13,"input",7,8),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().data.historySearchText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](15,"button",9),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().search()})),r["\u0275\u0275elementStart"](16,"mat-icon",10),r["\u0275\u0275text"](17,"search"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"button",11),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().clearSearch()})),r["\u0275\u0275elementStart"](19,"mat-icon",12),r["\u0275\u0275text"](20,"clear"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](21,sE,2,1,"ag-grid-angular",13),r["\u0275\u0275pipe"](22,"async"),r["\u0275\u0275template"](23,cE,2,2,"ng-template",null,14,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](24),t=r["\u0275\u0275nextContext"]();var n;const i=null==(n=r["\u0275\u0275pipeBind1"](22,8,t.data.historyItems))?null:n.length;r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",t.data.historyItemRowCount),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("value",5),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",10),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",25),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("value",50),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",t.data.historySearchText),r["\u0275\u0275advance"](8),r["\u0275\u0275property"]("ngIf",i)("ngIfElse",e)}}let dE=(()=>{class e{constructor(e,t,n,i,r,o){this.data=e,this.auth=t,this.toast=n,this.router=i,this.dialogService=r,this.exportService=o,this.filterActive=!1,this.gridData=[]}ngOnInit(){this.setGridOptions(),this.selectedHistoryItemEventSub=this.data.selectedHistoryItem.subscribe(e=>{this.selectedHistoryItem=e,this.selectGridRow(e)})}setGridOptions(){this.gridOptions={columnDefs:this.getColumnDefs(),deltaRowDataMode:!0,getRowNodeId:e=>e.id,rowSelection:"single",rowDragManaged:!0,animateRows:!0,suppressCellSelection:!0,suppressMovableColumns:!0,suppressScrollOnNewData:!0,defaultColDef:{sortable:!1,editable:!1,suppressNavigable:!0,cellClass:"no-border",resizable:!0}},this.gridOptions.onGridReady=e=>{this.gridApi=e.api,this.historyItemsSub=this.data.historyItems.subscribe(t=>{this.gridData=[...t],e.api.setRowData(this.gridData)}),this.accountsSub=this.data.accounts.subscribe(e=>{this.gridOptions.api&&this.gridOptions.api.setColumnDefs(this.getColumnDefs())}),this.selectGridRow(this.selectedHistoryItem)}}selectGridRow(e){this.gridApi&&(e?this.gridApi.getRowNode(e.id).setSelected(!0,!0,
1!1):this.gridApi.getSelectedNodes().forEach(e=>{e.setSelected(!1,!0,!1)}))}onSelectionChanged(){let e=this.gridApi.getSelectedRows();e.length&&this.data.selectItemEvent(e[0].id)}onRowDoubleClicked(){const e=this.data.snapshot.selectedHistoryItem;e&&e.dt&&this.dialogService.showHistoryItemDialog(e)}getColumnDefs(){return[{headerName:"",cellRendererFramework:oE,width:50,minWidth:50,maxWidth:50},{headerName:"Item",field:"nm",cellRenderer:e=>`${e.data.nm}`,minWidth:80},{headerName:"Amount",field:"amt",type:"numericColumn",cellRenderer:pC.CurrencyCellRenderer,width:110},{headerName:"Due",field:"due",cellRenderer:e=>e.value?Vr(e.value).format("MM/DD/YYYY"):"",width:100},{headerName:"Paid",field:"pd",cellRenderer:e=>e.value?Vr(e.value).format("MM/DD/YYYY"):"",width:100},{headerName:"Resolved",field:"dt",cellRenderer:e=>e.value?Vr(e.value).format("MM/DD/YYYY"):"",width:100}]}search(){this.data.historySearchText?this.data.searchHistory():this.clearSearch()}clearSearch(){this.data.clearHistorySearch()}ngOnDestroy(){this.historyItemsSub&&this.historyItemsSub.unsubscribe(),this.accountsSub&&this.historyItemsSub.unsubscribe(),this.selectedHistoryItemEventSub&&this.selectedHistoryItemEventSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Cb),r["\u0275\u0275directiveInject"](mr),r["\u0275\u0275directiveInject"](Sw),r["\u0275\u0275directiveInject"](QC))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-history-list"]],decls:2,vars:3,consts:[["fxLayout","column","fxFlexFill","","height","100%",4,"ngIf"],["fxLayout","column","fxFlexFill","","height","100%"],[1,"tab-header-toolbar"],["floatLabel","never",2,"width","100px"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value"],["floatLabel","never",2,"width","150px","margin-left","15px"],["name","search","matInput","","placeholder","Search","maxlength","30","cdkFocusInitial","","autocomplete","off",2,"max-width","200px",3,"ngModel","ngModelChange"],["name","ngModel"],["mat-button","","type","button","title","Search history",2,"min-width","25px",3,"click"],["aria-hidden","false","aria-label","Search History"],["mat-button","","type","button","title","Clear search",2,"min-width","25px",3,"click"],["aria-hidden","false","aria-label","Clear Search"],["class","ag-theme-material","style","height:100%",3,"gridOptions","selectionChanged","rowDoubleClicked",4,"ngIf","ngIfElse"],["historyHelp",""],[1,"ag-theme-material",2,"height","100%",3,"gridOptions","selectionChanged","rowDoubleClicked"],["itemsGrid",""],["class","mat-typography mat-tab-content",4,"ngIf"],[1,"mat-typography","mat-tab-content"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,uE,25,10,"div",0),r["\u0275\u0275pipe"](1,"async")),2&e&&r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](1,1,t.data.ui))},directives:[Y,ly,Ny,wC,Fp,gv,Nd,Vh,Ju,qp,kd,ep,cm,ug,EC.AgGridAngular],pipes:[ee],encapsulation:2}),e})();const hE=["split"],pE=["leftPane"],fE=["rightPane"];function mE(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"mat-option",33),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;r["\u0275\u0275property"]("value",e),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](e.nm)}}const gE=function(){return[]};function yE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mat-select",31),r["\u0275\u0275listener"]("selectionChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).data.selectBudget(t.value.id)})),r["\u0275\u0275pipe"](1,"async"),r["\u0275\u0275template"](2,mE,2,2,"mat-option",32),r["\u0275\u0275pipe"](3,"async"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("ngModel",r["\u0275\u0275pipeBind1"](1,2,e.data.selectedBudget)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pipeBind1"](3,4,e.data.budgets)||r["\u0275\u0275pureFunction0"](6,gE))}}function vE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"button",34),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.ngIf;return r["\u0275\u0275nextContext"](2).dialogService.showBudgetDialog(i)})),r["\u0275\u0275elementStart"](2,"mat-icon",35),r["\u0275\u0275text"](3,"edit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](4," Edit "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",36),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](e);const i=t.ngIf;return r["\u0275\u0275nextContext"](2).dialogService.showBudgetDeleteDialog(i)})),r["\u0275\u0275elementStart"](6,"mat-icon",37),r["\u0275\u0275text"](7,"delete"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](8," Delete "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=t.ngIf;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",!e),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("disabled",!e)}}function _E(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function bE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function wE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function CE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function EE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function SE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function DE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function xE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function TE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function OE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function kE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function IE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function RE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function ME(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function AE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function PE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-icon",38),r["\u0275\u0275text"](1,"check"),r["\u0275\u0275elementEnd"]())}function LE(e,t){1&e&&r["\u0275\u0275element"](0,"app-account-list")}function NE(e,t){if(1&e&&r["\u0275\u0275template"](0,LE,1,0,"app-account-list",15),2&e){const e=r["\u0275\u0275nextContext"](2).ngIf;r["\u0275\u0275property"]("ngIf",0===e.sideTabIndex)}}function FE(e,t){1&e&&r["\u0275\u0275element"](0,"app-category-list")}function jE(e,t){if(1&e&&r["\u0275\u0275template"](0,FE,1,0,"app-category-list",15),2&e){const e=r["\u0275\u0275nextContext"](2).ngIf;r["\u0275\u0275property"]("ngIf",1===e.sideTabIndex)}}function VE(e,t){1&e&&r["\u0275\u0275element"](0,"app-item-list")}function HE(e,t){if(1&e&&r["\u0275\u0275template"](0,VE,1,0,"app-item-list",15),2&e){const e=r["\u0275\u0275nextContext"](2).ngIf;r["\u0275\u0275property"]("ngIf",2===e.sideTabIndex)}}function YE(e,t){1&e&&r["\u0275\u0275element"](0,"app-item-event-list")}function BE(e,t){if(1&e&&r["\u0275\u0275template"](0,YE,1,0,"app-item-event-list",15),2&e){const e=r["\u0275\u0275nextContext"](3).ngIf;r["\u0275\u0275property"]("ngIf",3===e.sideTabIndex)}}function GE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-tab",54),r["\u0275\u0275template"](1,BE,1,1,"ng-template",48),r["\u0275\u0275elementEnd"]())}function WE(e,t){1&e&&r["\u0275\u0275element"](0,"app-history-list")}function UE(e,t){if(1&e&&r["\u0275\u0275template"](0,WE,1,0,"app-history-list",15),2&e){const e=r["\u0275\u0275nextContext"](3).ngIf;r["\u0275\u0275property"]("ngIf",4===e.sideTabIndex)}}function zE(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-tab",55),r["\u0275\u0275template"](1,UE,1,1,"ng-template",48),r["\u0275\u0275elementEnd"]())}function qE(e,t){1&e&&r["\u0275\u0275element"](0,"app-item-event-list")}function KE(e,t){1&e&&r["\u0275\u0275element"](0,"app-history-list")}function $E(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"as-split-area",56,57),r["\u0275\u0275elementStart"](2,"section",45),r["\u0275\u0275elementStart"](3,"mat-tab-group",58),r["\u0275\u0275listener"]("selectedTabChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](3).data.patchUI({mainTabIndex:t.index})})),r["\u0275\u0275elementStart"](4,"mat-tab",54),r["\u0275\u0275template"](5,qE,1,0,"ng-template",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](6,"mat-tab",55),r["\u0275\u0275template"](7,KE,1,0,"ng-template",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](2).ngIf;r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("selectedIndex",e.mainTabIndex)}}function QE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"main",39),r["\u0275\u0275elementStart"](1,"div",40),r["\u0275\u0275elementStart"](2,"as-split",41,42),r["\u0275\u0275listener"]("dragEnd",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).dragEnd("percent",t)})),r["\u0275\u0275elementStart"](4,"as-split-area",43,44),r["\u0275\u0275elementStart"](6,"section",45),r["\u0275\u0275elementStart"](7,"mat-tab-group",46),r["\u0275\u0275listener"]("selectedTabChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](2).data.patchUI({sideTabIndex:t.index})})),r["\u0275\u0275elementStart"](8,"mat-tab",47),r["\u0275\u0275template"](9,NE,1,1,"ng-template",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"mat-tab",49),r["\u0275\u0275template"](11,jE,1,1,"ng-template",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"mat-tab",50),r["\u0275\u0275template"](13,HE,1,1,"ng-template",48),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](14,GE,2,0,"mat-tab",51),r["\u0275\u0275template"](15,zE,2,0,"mat-tab",52),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,$E,8,1,"as-split-area",53),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"]().ngIf,t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("selectedIndex",e.sideTabIndex),r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngIf",e.windowWidth<=t.MOBILE_BREAKPOINT),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.windowWidth<=t.MOBILE_BREAKPOINT),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.windowWidth>=t.MOBILE_BREAKPOINT)}}function XE(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"body",1),r["\u0275\u0275elementStart"](1,"div",2),r["\u0275\u0275elementStart"](2,"div"),r["\u0275\u0275element"](3,"img",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"div",4),r["\u0275\u0275elementStart"](5,"div",5),r["\u0275\u0275elementStart"](6,"div",6),r["\u0275\u0275template"](7,yE,4,7,"mat-select",7),r["\u0275\u0275pipe"](8,"async"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",8),r["\u0275\u0275elementStart"](10,"div",9),r["\u0275\u0275elementStart"](11,"button",10),r["\u0275\u0275elementStart"](12,"mat-icon",11),r["\u0275\u0275text"](13,"more_vert"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"mat-menu",null,12),r["\u0275\u0275elementStart"](16,"button",13),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().dialogService.showBudgetDialog()})),r["\u0275\u0275elementStart"](17,"mat-icon",14),r["\u0275\u0275text"](18,"add"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](19," Add "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](20,vE,9,2,"ng-container",15),r["\u0275\u0275pipe"](21,"async"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](22,"div",9),r["\u0275\u0275elementStart"](23,"button",16),r["\u0275\u0275elementStart"](24,"mat-icon",17),r["\u0275\u0275text"](25,"format_paint"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](26,"mat-menu",null,18),r["\u0275\u0275elementStart"](28,"button",19),r["\u0275\u0275elementStart"](29,"span",20),r["\u0275\u0275text"](30,"Light Theme"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](31,_E,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](32,"button",19),r["\u0275\u0275elementStart"](33,"span",20),r["\u0275\u0275text"](34,"Dark Theme"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](35,bE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](36,"mat-menu",null,22),r["\u0275\u0275elementStart"](38,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightRed)})),r["\u0275\u0275elementStart"](39,"label",20),r["\u0275\u0275text"](40,"Red Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](41,wE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](42,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightGreen)})),r["\u0275\u0275elementStart"](43,"label",20),r["\u0275\u0275text"](44,"Green Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](45,CE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](46,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightBlue)})),r["\u0275\u0275elementStart"](47,"label",20),r["\u0275\u0275text"](48,"Blue Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](49,EE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](50,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightYellow)})),r["\u0275\u0275elementStart"](51,"label",20),r["\u0275\u0275text"](52,"Yellow Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](53,SE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](54,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightPink)})),r["\u0275\u0275elementStart"](55,"label",20),r["\u0275\u0275text"](56,"Pink Acce
1nts"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](57,DE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](58,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightOrange)})),r["\u0275\u0275elementStart"](59,"label",20),r["\u0275\u0275text"](60,"Orange Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](61,xE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](62,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.LightPurple)})),r["\u0275\u0275elementStart"](63,"label",20),r["\u0275\u0275text"](64,"Purple Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](65,TE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](66,"mat-menu",null,24),r["\u0275\u0275elementStart"](68,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkRed)})),r["\u0275\u0275elementStart"](69,"label",20),r["\u0275\u0275text"](70,"Red Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](71,OE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](72,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkGreen)})),r["\u0275\u0275elementStart"](73,"label",20),r["\u0275\u0275text"](74,"Green Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](75,kE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](76,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkBlue)})),r["\u0275\u0275elementStart"](77,"label",20),r["\u0275\u0275text"](78,"Blue Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](79,IE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](80,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkYellow)})),r["\u0275\u0275elementStart"](81,"label",20),r["\u0275\u0275text"](82,"Yellow Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](83,RE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](84,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkPink)})),r["\u0275\u0275elementStart"](85,"label",20),r["\u0275\u0275text"](86,"Pink Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](87,ME,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](88,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkOrange)})),r["\u0275\u0275elementStart"](89,"label",20),r["\u0275\u0275text"](90,"Orange Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](91,AE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](92,"button",23),r["\u0275\u0275listener"]("click",(function(t){r["\u0275\u0275restoreView"](e);const n=r["\u0275\u0275nextContext"]();return n.themeService.setTheme(n.themes.DarkPurple)})),r["\u0275\u0275elementStart"](93,"label",20),r["\u0275\u0275text"](94,"Purple Accents"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](95,PE,2,0,"mat-icon",21),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](96,"div",9),r["\u0275\u0275elementStart"](97,"button",25),r["\u0275\u0275elementStart"](98,"mat-icon",26),r["\u0275\u0275text"](99,"person"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](100,"mat-menu",null,27),r["\u0275\u0275elementStart"](102,"button",23),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().dialogService.showSettingsDialog()})),r["\u0275\u0275elementStart"](103,"mat-icon",28),r["\u0275\u0275text"](104,"settings"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](105,"span"),r["\u0275\u0275text"](106,"User Account"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](107,"button",23),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().auth.signOut()})),r["\u0275\u0275elementStart"](108,"mat-icon",29),r["\u0275\u0275text"](109,"logout"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](110,"span"),r["\u0275\u0275text"](111,"Logout"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](112,QE,17,4,"main",30),r["\u0275\u0275pipe"](113,"async"),r["\u0275\u0275elementEnd"]()}if(2&e){const e=t.ngIf,n=r["\u0275\u0275reference"](15),i=r["\u0275\u0275reference"](27),o=r["\u0275\u0275reference"](37),s=r["\u0275\u0275reference"](67),a=r["\u0275\u0275reference"](101),l=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275propertyInterpolate1"]("src","assets/eb-logo-sm",null!=l.themeService&&l.themeService.isDarkTheme?"-dark":"",".png?v=2",r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](8,25,l.data.budgets).length),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("matMenuTriggerFor",n),r["\u0275\u0275advance"](9),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](21,27,l.data.selectedBudget)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("matMenuTriggerFor",i),r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("matMenuTriggerFor",o),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",!(null!=e&&null!=e.settings&&e.settings.isDarkTheme)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("matMenuTriggerFor",s),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.settings?null:e.settings.isDarkTheme),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightRed),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightGreen),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightBlue),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightYellow),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightPink),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightOrange),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.LightPurple),r["\u0275\u0275advance"](6),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkRed),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkGreen),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkBlue),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkYellow),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkPink),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkOrange),r["\u0275\u0275advance"](4),r["\u0275\u0275property"]("ngIf",(null==e?null:null==e.settings?null:e.settings.theme)&&e.settings.theme===l.themes.DarkPurple),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("matMenuTriggerFor",a),r["\u0275\u0275advance"](15),r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](113,29,l.data.budgets).length)}}let JE=(()=>{class e{constructor(e,t,n,i){this.data=e,this.dialogService=t,this.auth=n,this.themeService=i,this.firstBudgetDialogShown=!1,this.windowWidth=0,this.tabGroupHeight=null,this.MOBILE_BREAKPOINT=768,this.themes=jr,this.JSON=JSON}ngOnInit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.data.loadBudgets(),this.resizeFunction=()=>{this.data.patchUI({windowWidth:window.innerWidth})},window.addEventListener("resize",this.resizeFunction),this.resizeFunction(),this.uiSub=this.data.ui.subscribe(e=>{this.firstBudgetDialogShown||!e.budgetsLoaded||this.data.snapshot.budgets.length?this.data.snapshot.budgets.length>0&&(this.firstBudgetDialogShown=!1):(this.firstBudgetDialogShown=!0,this.dialogService.showBudgetDialog(null,!1))})}))}offset(e){var t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}dragEnd(e,{sizes:t}){this.data.patchUI({leftPaneWidth:t[0],rightPaneWidth:t[1]})}ngOnDestroy(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.uiSub&&this.uiSub.unsubscribe(),window.removeEventListener("resize",this.resizeFunction)}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](Sw),r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Dw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["budget-workspace"]],viewQuery:function(e,t){var n;1&e&&(r["\u0275\u0275viewQuery"](hE,!0),r["\u0275\u0275viewQuery"](pE,!0),r["\u0275\u0275viewQuery"](fE,!0)),2&e&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.split=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.leftPane=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(t.rightPane=n.first))},decls:2,vars:3,consts:[["class","layout dark-theme","style","min-width: 320px;
1",4,"ngIf"],[1,"layout","dark-theme",2,"min-width","320px"],[1,"toolbar-content"],[2,"margin-right","5px","height","40px","width","40px",3,"src"],[2,"width","100%","text-align","left"],[2,"display","table","width","100%","max-width","300px"],[1,"mat-form-field",2,"display","table-cell","padding-right","10px"],["placeholder","Select a budget",3,"ngModel","selectionChange",4,"ngIf"],[2,"display","table-cell","text-align","left","padding-left","10px"],[1,"page-menu-icon"],["mat-icon-button","","aria-label","Budget actions menus",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","Budget list actions"],["menu","matMenu"],["mat-menu-item","","title","Add Budget",3,"click"],["aria-hidden","false","aria-label","Add Budget",2,"vertical-align","middle"],[4,"ngIf"],["mat-icon-button","","aria-label","Theme menu",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","Select theme"],["darkTheme","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],[2,"margin-right","10px"],["aria-label","Selected",4,"ngIf"],["lightThemeChoices","matMenu"],["mat-menu-item","",3,"click"],["darkThemeChoices","matMenu"],["mat-icon-button","","aria-label","User actions menu",3,"matMenuTriggerFor"],["aria-hidden","false","aria-label","Person menu"],["userMenu","matMenu"],["aria-hidden","false","aria-label","User Account",2,"vertical-align","middle"],["aria-hidden","false","aria-label","Logout",2,"vertical-align","middle"],["class","page-content","style","height: 100%;",4,"ngIf"],["placeholder","Select a budget",3,"ngModel","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-menu-item","","title","Edit Budget",3,"disabled","click"],["aria-hidden","false","aria-label","Edit Budget",2,"vertical-align","middle"],["mat-menu-item","","title","Delete Budget",3,"disabled","click"],["aria-hidden","false","aria-label","Delete Budget",2,"vertical-align","middle"],["aria-label","Selected"],[1,"page-content",2,"height","100%"],[1,"ex-percent",2,"width","100%"],["unit","percent",3,"dragEnd"],["split","asSplit"],["size","30"],["leftPane","asSplitArea"],[2,"height","100%","width","100%"],[2,"height","100%",3,"selectedIndex","selectedTabChange"],["label","Accounts"],["matTabContent","","style","height: 100%;"],["label","Categories"],["label","Items"],["label","Planner",4,"ngIf"],["label","History",4,"ngIf"],["size","70",4,"ngIf"],["label","Planner"],["label","History"],["size","70"],["rightPane","asSplitArea"],["dynamicHeight","true",2,"height","100%",3,"selectedIndex","selectedTabChange"]],template:function(e,t){1&e&&(r["\u0275\u0275template"](0,XE,114,31,"body",0),r["\u0275\u0275pipe"](1,"async")),2&e&&r["\u0275\u0275property"]("ngIf",r["\u0275\u0275pipeBind1"](1,1,t.data.ui))},directives:[Y,cm,Kw,ug,Ww,jw,gv,Nd,Vh,V,Ju,uC,dC,cw,Jb,zb,TC,NC,YC,rE,dE],pipes:[ee],styles:[".btns[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;flex-wrap:wrap}"]}),e})(),ZE=(()=>{class e{constructor(e,t,n){this.auth=e,this.data=t,this.router=n}canActivate(e,t){const n=t.url.toLowerCase();return n.startsWith("/reverifyemail")?Ye(!!this.auth.fbUser).pipe(zt(e=>this.router.navigate(["/signin"]))):this.data.user.pipe(Tt(1),Object(it.a)(e=>n.startsWith("/signin")?!e:n.startsWith("/home")?!!e:!!n.startsWith("/validate")||void 0),zt(e=>{n.startsWith("/signin")&&!e?this.router.navigate(["/home"]):e||this.router.navigate(["/signin"])}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Tb),r["\u0275\u0275inject"](Ko),r["\u0275\u0275inject"](mr))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const eS=function(e){return{color:e}};let tS=(()=>{class e{constructor(e){this.theme=e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Dw))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-page-header"]],decls:5,vars:4,consts:[[1,"toolbar-content"],[2,"height","40px","width","40px",3,"src"],[2,"text-align","left","width","100%","font-size","25px",3,"ngStyle"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div"),r["\u0275\u0275element"](2,"img",1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275text"](4," Easiest Budget "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](2),r["\u0275\u0275propertyInterpolate1"]("src","assets/eb-logo-sm",null!=t.theme&&t.theme.isDarkTheme?"-dark":"",".png?v=2",r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](2,eS,null!=t.theme&&t.theme.isDarkTheme?"#FEB201":"#0026FF")))},directives:[K,zf],styles:[""]}),e})(),nS=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-spinner"]],decls:4,vars:0,consts:[[2,"height","100%","display","flex","align-items","center","justify-content","center"],[2,"font-size","30px","padding","30px"],["type","image/svg+xml","data","assets/loading/gears-spinner.svg"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"object",2),r["\u0275\u0275text"](3," Loading "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())},styles:[""]}),e})();function iS(e,t){1&e&&r["\u0275\u0275element"](0,"app-spinner")}function rS(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"h1"),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"button",9),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).auth.signOut()})),r["\u0275\u0275text"](4," Logout "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275nextContext"](4);r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"]("Welcome ",e.user.eml,"")}}function oS(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"h2"),r["\u0275\u0275text"](2,"Please verify your email."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p"),r["\u0275\u0275text"](4," Didn't receive an email? "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"button",9),r["\u0275\u0275listener"]("click",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).resendVerificationEmail()}
1)),r["\u0275\u0275text"](6," Resend Verification Email "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}function sS(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"h2"),r["\u0275\u0275text"](2,"Verification email resent."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p",10),r["\u0275\u0275text"](4," Please check your email at "),r["\u0275\u0275elementStart"](5,"span",11),r["\u0275\u0275text"](6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](7,". "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](4);r["\u0275\u0275advance"](6),r["\u0275\u0275textInterpolate"](e.user.eml)}}function aS(e,t){if(1&e&&(r["\u0275\u0275template"](0,rS,5,1,"div",8),r["\u0275\u0275template"](1,oS,7,0,"div",8),r["\u0275\u0275template"](2,sS,8,1,"div",8)),2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275property"]("ngIf",e.isEmailVerified),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.isEmailVerified&&!e.verificationEmailResent),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.isEmailVerified&&e.verificationEmailResent)}}function lS(e,t){1&e&&r["\u0275\u0275template"](0,aS,3,3,"ng-template",null,7,r["\u0275\u0275templateRefExtractor"])}function cS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required "),r["\u0275\u0275elementEnd"]())}function uS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required "),r["\u0275\u0275elementEnd"]())}function dS(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"form",17),r["\u0275\u0275listener"]("submit",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signIn()})),r["\u0275\u0275elementStart"](1,"h1"),r["\u0275\u0275text"](2,"Sign-In"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p",10),r["\u0275\u0275elementStart"](4,"span",18),r["\u0275\u0275text"](5,"New User?"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](6,"br"),r["\u0275\u0275text"](7," Click the Sign-Up tab to create a 100% free account. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"div",19),r["\u0275\u0275elementStart"](9,"mat-form-field",20),r["\u0275\u0275elementStart"](10,"input",21,22),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signInEmailText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](12,cS,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](13,"mat-form-field",20),r["\u0275\u0275elementStart"](14,"input",23,24),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signInPasswordText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](16,uS,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"button",25),r["\u0275\u0275elementStart"](18,"span"),r["\u0275\u0275text"](19,"Sign-In"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](20,"p",26),r["\u0275\u0275elementStart"](21,"a",27),r["\u0275\u0275text"](22,"Forgot your password?"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](11),t=r["\u0275\u0275reference"](15),n=r["\u0275\u0275nextContext"](4);r["\u0275\u0275advance"](10),r["\u0275\u0275property"]("ngModel",n.signInEmailText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",n.signInPasswordText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==t?null:null==t.errors?null:t.errors.required)}}function hS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function pS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function fS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required "),r["\u0275\u0275elementEnd"]())}const mS=function(e){return{loud:e}};function gS(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"form",17),r["\u0275\u0275listener"]("submit",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signUp()})),r["\u0275\u0275elementStart"](1,"h1"),r["\u0275\u0275text"](2,"Sign-Up"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p",10),r["\u0275\u0275text"](4," Quick and easy sign-up. An email and password is all you need to get started. Your account will always be 100% free! "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",19),r["\u0275\u0275elementStart"](6,"mat-form-field",20),r["\u0275\u0275elementStart"](7,"input",28,29),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signUpEmailText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](9,hS,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"div",30),r["\u0275\u0275text"](11," Password must be 8-20 characters long and contain at least 1 lowercase letter, 1 uppercase letter, 1 number and one of these special characters: !@#$%^&. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"mat-form-field",20),r["\u0275\u0275elementStart"](13,"input",31,32),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).signUpPasswordText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](15,pS,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"mat-form-field",20),r["\u0275\u0275elementStart"](17,"input",33,34),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).confirmPwdText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](19,fS,2,0,"mat-error",8),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](20,"mat-checkbox",35),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"](4).acceptTerms=t})),r["\u0275\u0275text"](21,"I accept the "),r["\u0275\u0275elementStart"](22,"a",36),r["\u0275\u0275text"](23,"Terms and Conditions"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](24," and "),r["\u0275\u0275elementStart"](25,"a",37),r["\u0275\u0275text"](26,"Privacy Policy"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](27,". "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](28,"br"),r["\u0275\u0275elementStart"](29,"button",38),r["\u0275\u0275elementStart"](30,"span"),r["\u0275\u0275text"](31,"Sign-Up"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](8),t=r["\u0275\u0275reference"](14),n=r["\u0275\u0275reference"](18),i=r["\u0275\u0275nextContext"](4);r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngModel",i.signUpEmailText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](9,mS,i.pwdHelpLoud)),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngModel",i.signUpPasswordText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==t?null:null==t.errors?null:t.errors.required),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",i.confirmPwdText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==n?null:null==n.errors?null:n.errors.required),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngModel",i.acceptTerms),r["\u0275\u0275advance"](9),r["\u0275\u0275property"]("disabled",!i.acceptTerms)}}function yS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"mat-tab-group",13),r["\u0275\u0275elementStart"](2,"mat-tab",14),r["\u0275\u0275template"](3,dS,23,4,"ng-template",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"mat-tab",16),r["\u0275\u0275template"](5,gS,32,11,"ng-template",15),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())}function vS(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",39),r["\u0275\u0275elementStart"](1,"h2",40),r["\u0275\u0275text"](2,"Account Created"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"p"),r["\u0275\u0275text"](4," Your free account has been successfully created. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"p"),r["\u0275\u0275text"](6," A verification email has been sent to: "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"p"),r["\u0275\u0275elementStart"](8,"span",18),r["\u0275\u0275text"](9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](10,"p"),r["\u0275\u0275text"](11," Please open the email and click the verification link to sign-in for the first time. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"p"),r["\u0275\u0275text"](13," Thank y
1ou for using "),r["\u0275\u0275elementStart"](14,"span",18),r["\u0275\u0275text"](15,"EasiestBudget.com"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](16,"! "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](17,"p"),r["\u0275\u0275text"](18," Now stop worrying and start budgeting! :) "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275nextContext"](3);r["\u0275\u0275advance"](9),r["\u0275\u0275textInterpolate"](e.signUpEmailText)}}function _S(e,t){if(1&e&&(r["\u0275\u0275template"](0,yS,6,0,"div",8),r["\u0275\u0275template"](1,vS,19,1,"div",12)),2&e){const e=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("ngIf",!e.signedUp),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.signedUp)}}function bS(e,t){}function wS(e,t){if(1&e&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275elementStart"](1,"div",3),r["\u0275\u0275elementStart"](2,"div",4),r["\u0275\u0275template"](3,lS,2,0,void 0,0),r["\u0275\u0275template"](4,_S,2,2,"ng-template",null,5,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](6,bS,0,0,"ng-template",null,6,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](5),t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.user)("ngIfElse",e)}}let CS=(()=>{class e{constructor(e,t,n,i,r,o){this.afAuth=e,this.auth=t,this.data=n,this.router=i,this.route=r,this.toast=o,this.pwdText="",this.confirmPwdText="",this.pwdHelpLoud=!1,this.signedIn=!1,this.signedUp=!1,this.loading=!0,this.loadingUser=!0,this.isEmailVerified=!1,this.verificationEmailResent=!1,this.signInEmailText="",this.signInPasswordText="",this.signUpEmailText="",this.signUpPasswordText="",this.acceptTerms=!1}ngOnInit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.authStateSub=this.afAuth.authState.subscribe(e=>{this.isEmailVerified=e&&e.emailVerified}),this.userSub=this.data.user.subscribe(e=>{this.user=e,e&&e.id?(this.signedUp=!0,this.router.navigate(["/home"])):this.loadingUser=!1});const e=this.route.snapshot.queryParamMap,t=e.get("mode"),n=e.get("oobCode");if(t&&n){let e="";window.localStorage&&(e=window.localStorage.getItem("emailForSignIn")),0===e.length&&(e=(window.prompt("Please enter the email address that you are verifying.")||"").trim()),t&&"VERIFYEMAIL"==t.toUpperCase()&&(yield this.auth.verifyEmail(n,e))&&(window.localStorage&&window.localStorage.removeItem("emailForSignIn"),this.isEmailVerified=!0)}this.loading=!1}))}signIn(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=(this.signInEmailText||"").trim(),t=(this.signInPasswordText||"").trim();e&&t?(yield this.auth.signIn(e,t))&&(this.signedIn=!0):this.toast.error("Enter a valid email and passsword.")}))}signUp(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=(this.signUpEmailText||"").trim(),t=(this.signUpPasswordText||"").trim();this.pwdHelpLoud=!1,e&&t?t.length<8?this.toast.error("Passsword must be at least 8 characters long."):this.auth.validatePassword(t)?t!==this.confirmPwdText.trim()?this.toast.error("Password and Confirm Password do not match."):(this.signedUp=yield this.auth.signUp(e,t),this.signedUp&&(window.localStorage&&window.localStorage.setItem("emailForSignIn",e),this.toast.success("Account Created"))):(this.pwdHelpLoud=!0,this.toast.error("Password is not strong enough.")):this.toast.error("Enter a valid email and passsword.")}))}resendVerificationEmail(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.auth.sendVerificationEmail(),this.verificationEmailResent=!0}))}ngOnDestroy(){this.userSub&&this.userSub.unsubscribe(),this.authStateSub&&this.authStateSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](rb),r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](mr),r["\u0275\u0275directiveInject"](ai),r["\u0275\u0275directiveInject"](Cb))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-sign-in"]],decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],["loginForm",""],[1,"page-centered-outer"],[1,"page-centered-inner"],[1,"mat-card","auth-form-container","mat-typography"],["unauthenticated",""],["notverified",""],["authenticated",""],[4,"ngIf"],["mat-button","",3,"click"],[1,"mat-typography"],[1,"font-weight:bold"],["class","auth-message mat-typography","style","font-size: larger;",4,"ngIf"],[2,"height","100%"],["label","Sign-In"],["matTabContent","","style","height: 100%;"],["label","Sign-Up"],["autocomplete","off",1,"auth-form",2,"min-width","auto",3,"submit"],[2,"font-weight","bold"],["fxLayout","column","fxLayoutGap","15px"],[2,"width","100%"],["name","signInEmail","type","email","matInput","","placeholder","Email address","maxlength","100","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["signInEmail","ngModel"],["name","signInPassword","type","password","matInput","","placeholder","Password","minLength","8","maxlength","20","required","","autocomplete","off",3,"ngModel","ngModelChange"],["signInPassword","ngModel"],["mat-button","","type","submit"],[1,"secondary-actions","mat-typography"],["href","/app/forgotpassword"],["name","signUpEmail","type","email","matInput","","placeholder","Email address","maxlength","100","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["eml","ngModel"],[1,"mat-typography","pwd-help",3,"ngClass"],["name","signUpPassword","type","password","matInput","","placeholder","Password","minLength","8","maxlength","20","required","","autocomplete","off",3,"ngModel","ngModelChange"],["pwd","ngModel"],["name","confirmPwd","type","password","matInput","","placeholder","Confirm Password","minLength","8","maxlength","20","required","","autocomplete","off",3,"ngModel","ngModelChange"],["confirmPwd","ngModel"],["name","acceptTerms",1,"mat-typography",3,"ngModel","ngModelChange"],["href","https://www.iubenda.com/terms-and-conditions/96531187","target","_blank","title","Terms and Conditions"],["href","https://www.iubenda.com/privacy-policy/96531187","target","_blank","title","Privacy Policy"],["mat-button","","type","submit",3,"disabled"],[1,"auth-message","mat-typography",2,"font-size","larger"],[2,"text-align","center"]],template:function(e,t){if(1&e&&(r["\u0275\u0275element"](0,"app-page-header"),r["\u0275\u0275template"](1,iS,1,0,"app-spinner",0),r["\u0275\u0275template"](2,wS,8,2,"ng-template",null,1,r["\u0275\u0275templateRefExtractor"])),2&e){const e=r["\u0275\u0275reference"](3);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.loading||t.loadingUser)("ngIfElse",e)}},directives:[tS,Y,nS,cm,cw,Jb,zb,Hh,Fd,Rh,ly,my,Fp,qp,kd,ep,Jh,Nd,Vh,Ep,F,jf,Eg],styles:[".pwd-help.loud[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff;padding:5px;border-radius:5px}a[_ngcontent-%COMP%]{padding:0}"]}),e})();function ES(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function SS(e,t){if(1&e){const e=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"p",7),r["\u0275\u0275text"](2," Enter your account's email address below, then click the button to send a password reset link to your email. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"div",8),r["\u0275\u0275elementStart"](4,"mat-form-field",9),r["\u0275\u0275elementStart"](5,"input",10,11),r["\u0275\u0275listener"]("ngModelChange",(function(t){return r["\u0275\u0275restoreView"](e),r["\u0275\u0275nextContext"]().emailText=t})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](7,ES,2,0,"mat-error",4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"button",12),r["\u0275\u0275elementStart"](9,"span"),r["\u0275\u0275text"](10,"Send Reset Link"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=r["\u0275\u0275reference"](6),t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](5),r["\u0275\u0275property"]("ngModel",t.emailText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required)}}function DS(e,t){1&e&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275elementStart"](1,"p",7),r["\u0275\u0275text"](2," A password reset link has been sent to your email address. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementContainerEnd"]())}let xS=(()=>{class e{constructor(e){this.auth=e,this.resetLinkSent=!1}ngOnInit(){}submit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){this.emailText&&((this.emailText||"").trim(),(yield this.auth.resetPasswordInit(this.emailText))&&(this.resetLinkSent=!0))}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Tb))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-forgot-password"]],decls:12,vars:2,consts:[[1,"page-centered-outer"],[1,"page-centered-inner"],[1,"mat-card","auth-form-container","mat-typography"],["autocomplete","off",1,"auth-form",3,"submit"],[4,"ngIf"],[1,"mat-typography","secondary-actions"],["href","/app/signin"],[1,"mat-typography"],["fxLayout","column","fxLayoutGap","15px"],[2,"width","100%"],["name","email","type","email","matInput","","placeholder","Email address","maxlength","100","cdkFocusInitial","","required","","autocomplete","off",3,"ngModel","ngModelChange"],["email","ngModel"],["mat-button","","type","submit"]],template:function(e,t){1&e&&(r["\u0275\u0275element"](0,"app-page-header"),r["\u0275\u0275elementStart"](1,"div",0),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275elementStart"](4,"form",3),r["\u0275\u0275listener"]("submit",(function(e){return t.submit()})),r["\u0275\u0275elementStart"](5,"h1"),r["\u0275\u0275text"](6,"Forgot Password"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](7,SS,11,2,"ng-container",4),r["\u0275\u0275template"](8,DS,3,0,"ng-container",4),r["\u0275\u0275elementStart"](9,"p",5),r["\u0275\u0275elementStart"](10,"a",6),r["\u0275\u0275text"](11,"Return to 
1sign-in page"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](7),r["\u0275\u0275property"]("ngIf",!t.resetLinkSent),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.resetLinkSent))},directives:[tS,Hh,Fd,Rh,Y,ly,my,Fp,qp,kd,ep,Jh,Nd,Vh,cm,Ep],styles:[""]}),e})(),TS=(()=>{class e{constructor(e,t,n){this.auth=e,this.data=t,this.route=n}ngOnInit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){const e=this.route.snapshot.queryParamMap,t=e.get("mode"),n=e.get("oobCode");yield this.auth.validateOobLink(t,n)}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Ko),r["\u0275\u0275directiveInject"](ai))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-validate-link"]],decls:2,vars:0,template:function(e,t){1&e&&(r["\u0275\u0275element"](0,"app-page-header"),r["\u0275\u0275element"](1,"app-spinner"))},directives:[tS,nS],styles:[""]}),e})();function OS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}function kS(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"mat-error"),r["\u0275\u0275text"](1,"Required"),r["\u0275\u0275elementEnd"]())}const IS=[{path:"",redirectTo:"signin",pathMatch:"prefix"},{path:"login",redirectTo:"signin",pathMatch:"prefix"},{path:"signin",component:CS,canActivate:[ZE]},{path:"forgotpassword",component:xS},{path:"resetpassword",component:(()=>{class e{constructor(e,t,n){this.auth=e,this.router=t,this.toast=n}ngOnInit(){}submit(){this.pwdText.trim()!==this.confirmPwdText.trim()&&this.toast.error("Password and Confirm Password do not match."),this.auth.resetPassword(this.pwdText)&&(this.toast.success("Your password has been changed. You can now login with your new password"),this.router.navigate(["/signin"]))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](mr),r["\u0275\u0275directiveInject"](Cb))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-reset-password"]],decls:21,vars:4,consts:[[1,"page-centered-outer"],[1,"page-centered-inner"],[1,"mat-card","auth-form-container","mat-typography"],["autocomplete","off",1,"auth-form",3,"submit"],[1,"mat-typography"],["fxLayout","column","fxLayoutGap","15px"],[2,"width","100%"],["name","pwd","type","password","matInput","","placeholder","Password","minLength","8","maxlength","20","required","","autocomplete","off",3,"ngModel","ngModelChange"],["pwd","ngModel"],[4,"ngIf"],["name","confirmPwd","type","password","matInput","","placeholder","Confirm Password","minLength","8","maxlength","20","required","","autocomplete","off",3,"ngModel","ngModelChange"],["confirmPwd","ngModel"],["mat-button","","type","submit"]],template:function(e,t){if(1&e&&(r["\u0275\u0275element"](0,"app-page-header"),r["\u0275\u0275elementStart"](1,"div",0),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275elementStart"](4,"form",3),r["\u0275\u0275listener"]("submit",(function(e){return t.submit()})),r["\u0275\u0275elementStart"](5,"h1"),r["\u0275\u0275text"](6,"Reset Password"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"p",4),r["\u0275\u0275text"](8," Enter your new password. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](9,"div",5),r["\u0275\u0275elementStart"](10,"mat-form-field",6),r["\u0275\u0275elementStart"](11,"input",7,8),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.pwdText=e})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](13,OS,2,0,"mat-error",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"mat-form-field",6),r["\u0275\u0275elementStart"](15,"input",10,11),r["\u0275\u0275listener"]("ngModelChange",(function(e){return t.confirmPwdText=e})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](17,kS,2,0,"mat-error",9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](18,"button",12),r["\u0275\u0275elementStart"](19,"span"),r["\u0275\u0275text"](20,"Submit"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e){const e=r["\u0275\u0275reference"](12),n=r["\u0275\u0275reference"](16);r["\u0275\u0275advance"](11),r["\u0275\u0275property"]("ngModel",t.pwdText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==e?null:null==e.errors?null:e.errors.required),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngModel",t.confirmPwdText),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",null==n?null:null==n.errors?null:n.errors.required)}},directives:[tS,Hh,Fd,Rh,ly,my,Fp,qp,kd,ep,Jh,Nd,Vh,Y,cm,Ep],styles:[""]}),e})()},{path:"validate",component:TS},{path:"reverifyemail",component:(()=>{class e{constructor(e,t){this.auth=e,this.toast=t}ngOnInit(){this.email=this.auth.fbUser.email}submit(){return Object(Fr.__awaiter)(this,void 0,void 0,(function*(){yield this.auth.sendVerificationEmail()}))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](Tb),r["\u0275\u0275directiveInject"](Cb))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-reverify-email"]],decls:18,vars:1,consts:[[1,"page-centered-outer"],[1,"page-centered-inner"],[1,"mat-card","auth-form-container","mat-typography"],[1,"auth-form",2,"font-size","larger",3,"submit"],[1,"mat-typography"],[2,"font-weight","bold"],["fxLayout","column","fxLayoutGap","15px"],["mat-button","","type","submit"]],template:function(e,t){1&e&&(r["\u0275\u0275element"](0,"app-page-header"),r["\u0275\u0275elementStart"](1,"div",0),r["\u0275\u0275elementStart"](2,"div",1),r["\u0275\u0275elementStart"](3,"div",2),r["\u0275\u0275elementStart"](4,"form",3),r["\u0275\u0275listener"]("submit",(function(e){return t.submit()})),r["\u0275\u0275elementStart"](5,"h1"),r["\u0275\u0275text"](6,"Verify Email"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"p",4),r["\u0275\u0275text"](8," Your account exists and you are signed-in, but your email address at "),r["\u0275\u0275elementStart"](9,"span",5),r["\u0275\u0275text"](10),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](11," has not yet been verified. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"p",4),r["\u0275\u0275text"](13," To continue using this application, please verify your email by clicking the button below, then opening the email that you receive and clicking the verification link. "),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"div",6),r["\u0275\u0275elementStart"](15,"button",7),r["\u0275\u0275elementStart"](16,"span"),r["\u0275\u0275text"](17,"Send Verification Link"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](10),r["\u0275\u0275textInterpolate"](t.email))},directives:[tS,Hh,Fd,Rh,ly,my,cm],styles:[""]}),e})(),canActivate:[ZE]},{path:"home",component:JE,canActivate:[ZE]}];let RS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Or.forRoot(IS)],Or]}),e})();var MS;n("6Joi");let AS=(()=>{let e=MS=class{static enablePersistence(e){return{ngModule:MS,providers:[{provide:jo,useValue:!0},{provide:Vo,useValue:e}]}}};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[zo]}),e})();var PS=n("wj3C"),LS=n.n(PS);(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},n=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,e];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}return globalThis}(this);function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function r(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}!function(e,i){if(i){var r=n;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];s in r||(r[s]={}),r=r[s]}(i=i(o=r[e=e[e.length-1]]))!=o&&null!=i&&t(r,e,{configurable:!0,writable:!0,value:i})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function i(){this.a=null}function o(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;i.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var s=n.setTimeout;i.prototype.c=function(e){s(e,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}}
1,t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.o(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.u(e):this.h(e)}},t.prototype.u=function(e){var t=void 0;try{t=e.then}catch(n){return void this.g(n)}"function"==typeof t?this.v(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)a.b(this.a[e]);this.a=null}};var a=new i;return t.prototype.o=function(e){var t=this.f();e.La(t.resolve,t.reject)},t.prototype.v=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(i){n.reject(i)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(n){o(n)}}:t}var r,o,s=new t((function(e,t){r=e,o=t}));return this.La(i(e,r),i(n,o)),s},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.La=function(e,t){function n(){switch(i.b){case 1:e(i.c);break;case 2:t(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?a.b(n):this.a.push(n)},t.resolve=o,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=r(e),s=i.next();!s.done;s=i.next())o(s.value).La(t,n)}))},t.all=function(e){var n=r(e),i=n.next();return i.done?o([]):new t((function(e,t){function r(t){return function(n){s[t]=n,0==--a&&e(s)}}var s=[],a=0;do{s.push(void 0),a++,o(i.value).La(r(s.length-1),t),i=n.next()}while(!i.done)}))},t}));var o=o||{},s=this||self;function a(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}var c=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function h(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function p(e){return null===e}function f(e){return"array"==h(e)}function m(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function g(e){return"function"==h(e)}function y(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var v="closure_uid_"+(1e9*Math.random()>>>0),_=0;function b(e,t,n){return e.call.apply(e.bind,arguments)}function w(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function C(e,t,n){return(C=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:w).apply(null,arguments)}function E(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var S=Date.now||function(){return+new Date};function D(e,t){function n(){}n.prototype=t.prototype,e.qb=t.prototype,e.prototype=new n,e.prototype.constructor=e}function x(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(t){return!1}}function T(e){if(Error.captureStackTrace)Error.captureStackTrace(this,T);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function O(e,t){for(var n="",i=(e=e.split("%s")).length-1,r=0;r<i;r++)n+=e[r]+(r<t.length?t[r]:"%s");T.call(this,n+e[i])}function k(e,t){throw new O("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function I(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function R(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function M(){this.b=this.a=null}D(T,Error),T.prototype.name="CustomError",D(O,T),O.prototype.name="AssertionError",I.prototype.get=function(){if(0<this.b){this.b
1--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var A=new I((function(){return new L}),(function(e){e.reset()}));function P(){var e=Ye,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function L(){this.next=this.b=this.a=null}function N(e,t){e:{try{var n=e&&e.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||s).Element&&i.Location){var r=i;break e}}catch(a){}r=null}if(r&&void 0!==r[t]&&(!e||!(e instanceof r[t])&&(e instanceof r.Location||e instanceof r.Element))){if(y(e))try{var o=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(a){o="<object could not be stringified>"}else o=void 0===e?"undefined":null===e?"null":typeof e;k("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}M.prototype.add=function(e,t){var n=A.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},L.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},L.prototype.reset=function(){this.next=this.b=this.a=null};var F=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(a(e))return a(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},j=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var i=e.length,r=a(e)?e.split(""):e,o=0;o<i;o++)o in r&&t.call(n,r[o],o,e)},V=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=Array(n),r=a(e)?e.split(""):e,o=0;o<n;o++)o in r&&(i[o]=t.call(void 0,r[o],o,e));return i},H=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,i=a(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e))return!0;return!1};function Y(e,t){return 0<=F(e,t)}function B(e,t){var n;return(n=0<=(t=F(e,t)))&&Array.prototype.splice.call(e,t,1),n}function G(e,t){!function(e,t){for(var n=a(e)?e.split(""):e,i=e.length-1;0<=i;--i)i in n&&t.call(void 0,n[i],i,e)}(e,(function(n,i){t.call(void 0,n,i,e)&&Array.prototype.splice.call(e,i,1)}))}function W(e){return Array.prototype.concat.apply([],arguments)}function U(e){var t=e.length;if(0<t){for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}return[]}function z(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function q(e){for(var t in e)return!1;return!0}function K(e){var t,n={};for(t in e)n[t]=e[t];return n}var $="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Q(e,t){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])e[n]=i[n];for(var o=0;o<$.length;o++)n=$[o],Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}}function X(e,t){this.a=e===ee&&t||"",this.b=Z}function J(e){return e instanceof X&&e.constructor===X&&e.b===Z?e.a:(k("expected object of type Const, got '"+e+"'"),"type_error:Const")}X.prototype.qa=!0,X.prototype.pa=function(){return this.a},X.prototype.toString=function(){return"Const{"+this.a+"}"};var Z={},ee={},te=new X(ee,"");function ne(){this.a="",this.b=ae}function ie(e){return e instanceof ne&&e.constructor===ne&&e.b===ae?e.a:(k("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function re(e,t){var n=J(e);if(!se.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return le(e=n.replace(oe,(function(e,i){if(!Object.prototype.hasOwnProperty.call(t,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[i])instanceof X?J(e):encodeURIComponent(String(e))})))}ne.prototype.qa=!0,ne.prototype.pa=function(){return this.a.toString()},ne.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var oe=/%{(\w+)}/g,se=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,ae={};function le(e){var t=new ne;return t.a=e,t}var ce=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ue=/&/g,de=/</g,he=/>/g,pe=/"/g,fe=/'/g,me=/\x00/g,ge=/[\x00&<>"']/;function ye(e,t){return-1!=e.indexOf(t)}function ve(e,t){return e<t?-1:e>t?1:0}function _e(){this.a="",this.b=Se}function be(e){return e instanceof _e&&e.constructor===_e&&e.b===Se?e.a:(k("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}_e.prototype.qa=!0,_e.prototype.pa=function(){return this.a.toString()},_e.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var we=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ce(e){return e instanceof _e?e:(e="object"==typeof e&&e.qa?e.pa():String(e),we.test(e)||(e="about:invalid#zClosurez"),De(e))}var Ee,Se={};function De(e){var t=new _e;return t.a=e,t}De("about:blank");e:{var xe=s.navigator;if(xe){var Te=xe.userAgent;if(Te){Ee=Te;break e}}Ee=""}function Oe(e){return ye(Ee,e)}function ke(){this.a="",this.b=Re}function Ie(e){return e instanceof ke&&e.constructor===ke&&e.b===Re?e.a:(k("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}ke.prototype.qa=!0,ke.prototype.pa=function(){return this.a.toString()},ke.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Re={};function Me(e){var t=new ke;return t.a=e,t}Me("<!DOCTYPE html>");var Ae,Pe,Le=Me("");function Ne(e,t){for(var n=e.split("%s"),i="",r=Array.prototype.slice.call(arguments,1
1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function Fe(e){return ge.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ue,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(de,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(he,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(pe,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(fe,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(me,"&#0;"))),e}function je(e){s.setTimeout((function(){throw e}),0)}function Ve(e,t){Pe||function(){if(s.Promise&&s.Promise.resolve){var e=s.Promise.resolve(void 0);Pe=function(){e.then(Be)}}else Pe=function(){var e=Be;!g(s.setImmediate)||s.Window&&s.Window.prototype&&!Oe("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(Ae||(Ae=function(){var e=s.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!Oe("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",function(e){var t=le(J(te));N(e,"HTMLIFrameElement"),e.src=ie(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Ie(Le)),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=C((function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),void 0!==e&&!Oe("Trident")&&!Oe("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).yb;n.yb=null,e()}},function(e){i.next={yb:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){s.setTimeout(e,0)}}()),Ae(e)):s.setImmediate(e)}}(),He||(Pe(),He=!0),Ye.add(e,t)}Me("<br>");var He=!1,Ye=new M;function Be(){for(var e;e=P();){try{e.a.call(e.b)}catch(t){je(t)}R(A,e)}He=!1}function Ge(e,t){if(this.a=We,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){nt(n,Ue,e)}),(function(e){if(!(e instanceof ct))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}nt(n,ze,e)}))}catch(i){nt(this,ze,i)}}var We=0,Ue=2,ze=3;function qe(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}qe.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ke=new I((function(){return new qe}),(function(e){e.reset()}));function $e(e,t,n){var i=Ke.get();return i.g=e,i.b=t,i.f=n,i}function Qe(e){if(e instanceof Ge)return e;var t=new Ge(d);return nt(t,Ue,e),t}function Xe(e){return new Ge((function(t,n){n(e)}))}function Je(e,t,n){it(e,t,n,null)||Ve(E(t,e))}function Ze(e){return new Ge((function(t){var n=e.length,i=[];if(n)for(var r=function(e,r,o){n--,i[e]=r?{Gb:!0,value:o}:{Gb:!1,reason:o},0==n&&t(i)},o=0;o<e.length;o++)Je(e[o],E(r,o,!0),E(r,o,!1));else t(i)}))}function et(e,t){e.b||e.a!=Ue&&e.a!=ze||rt(e),e.f?e.f.next=t:e.b=t,e.f=t}function tt(e,t,n,i){var r=$e(null,null,null);return r.a=new Ge((function(e,o){r.g=t?function(n){try{var r=t.call(i,n);e(r)}catch(s){o(s)}}:e,r.b=n?function(t){try{var r=n.call(i,t);void 0===r&&t instanceof ct?o(t):e(r)}catch(s){o(s)}}:o})),r.a.c=e,et(e,r),r.a}function nt(e,t,n){e.a==We&&(e===n&&(t=ze,n=new TypeError("Promise cannot resolve to itself")),e.a=1,it(n,e.Oc,e.Pc,e)||(e.i=n,e.a=t,e.c=null,rt(e),t!=ze||n instanceof ct||function(e,t){e.g=!0,Ve((function(){e.g&&lt.call(null,t)}))}(e,n)))}function it(e,t,n,i){if(e instanceof Ge)return et(e,$e(t||d,n||null,i)),!0;if(x(e))return e.then(t,n,i),!0;if(y(e))try{var r=e.then;if(g(r))return function(e,t,n,i,r){function o(e){s||(s=!0,i.call(r,e))}var s=!1;try{t.call(e,(function(e){s||(s=!0,n.call(r,e))}),o)}catch(a){o(a)}}(e,r,t,n,i),!0}catch(o){return n.call(i,o),!0}return!1}function rt(e){e.h||(e.h=!0,Ve(e.Zb,e))}function ot(e){var t=null;return e.b&&(e.b=(t=e.b).next,t.next=null),e.b||(e.f=null),t}function st(e,t,n,i){if(n==ze&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,at(t,n,i);else try{t.c?t.g.call(t.f):at(t,n,i)}catch(r){lt.call(null,r)}R(Ke,t)}function at(e,t,n){t==Ue?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}Ge.prototype.then=function(e,t,n){return tt(this,g(e)?e:null,g(t)?t:null,n)}
1,Ge.prototype.$goog_Thenable=!0,(e=Ge.prototype).ka=function(e,t){return(e=$e(e,e,t)).c=!0,et(this,e),this},e.s=function(e,t){return tt(this,null,e,t)},e.cancel=function(e){this.a==We&&Ve((function(){!function e(t,n){if(t.a==We)if(t.c){var i=t.c;if(i.b){for(var r=0,o=null,s=null,a=i.b;a&&(a.c||(r++,a.a==t&&(o=a),!(o&&1<r)));a=a.next)o||(s=a);o&&(i.a==We&&1==r?e(i,n):(s?((r=s).next==i.f&&(i.f=r),r.next=r.next.next):ot(i),st(i,o,ze,n)))}t.c=null}else nt(t,ze,n)}(this,new ct(e))}),this)},e.Oc=function(e){this.a=We,nt(this,Ue,e)},e.Pc=function(e){this.a=We,nt(this,ze,e)},e.Zb=function(){for(var e;e=ot(this);)st(this,e,this.a,this.i);this.h=!1};var lt=je;function ct(e){T.call(this,e)}function ut(){0!=dt&&(ht[this[v]||(this[v]=++_)]=this),this.va=this.va,this.la=this.la}D(ct,T),ct.prototype.name="cancel";var dt=0,ht={};function pt(e){if(!e.va&&(e.va=!0,e.za(),0!=dt)){var t=e[v]||(e[v]=++_);if(0!=dt&&e.la&&0<e.la.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete ht[t]}}function ft(e){return ft[" "](e),e}ut.prototype.va=!1,ut.prototype.za=function(){if(this.la)for(;this.la.length;)this.la.shift()()},ft[" "]=d;var mt,gt,yt=Oe("Opera"),vt=Oe("Trident")||Oe("MSIE"),_t=Oe("Edge"),bt=_t||vt,wt=Oe("Gecko")&&!(ye(Ee.toLowerCase(),"webkit")&&!Oe("Edge"))&&!(Oe("Trident")||Oe("MSIE"))&&!Oe("Edge"),Ct=ye(Ee.toLowerCase(),"webkit")&&!Oe("Edge");function Et(){var e=s.document;return e?e.documentMode:void 0}e:{var St="",Dt=(gt=Ee,wt?/rv:([^\);]+)(\)|;)/.exec(gt):_t?/Edge\/([\d\.]+)/.exec(gt):vt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(gt):Ct?/WebKit\/(\S+)/.exec(gt):yt?/(?:Version)[ \/]?(\S+)/.exec(gt):void 0);if(Dt&&(St=Dt?Dt[1]:""),vt){var xt=Et();if(null!=xt&&xt>parseFloat(St)){mt=String(xt);break e}}mt=St}var Tt,Ot={};function kt(e){return function(e,t){var n=Ot;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t()}(e,(function(){for(var t=0,n=ce(String(mt)).split("."),i=ce(String(e)).split("."),r=Math.max(n.length,i.length),o=0;0==t&&o<r;o++){var s=n[o]||"",a=i[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;t=ve(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||ve(0==s[2].length,0==a[2].length)||ve(s[2],a[2]),s=s[3],a=a[3]}while(0==t)}return 0<=t}))}Tt=s.document&&vt?Et():void 0;var It=Object.freeze||function(e){return e},Rt=!vt||9<=Number(Tt),Mt=vt&&!kt("9"),At=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{s.addEventListener("test",d,t),s.removeEventListener("test",d,t)}catch(n){}return e}();function Pt(e,t){this.type=e,this.b=this.target=t,this.Mb=!0}function Lt(e,t){if(Pt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(wt){e:{try{ft(t.nodeName);var r=!0;break e}catch(o){}r=!1}r||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=a(e.pointerType)?e.pointerType:Nt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Pt.prototype.preventDefault=function(){this.Mb=!1},D(Lt,Pt);var Nt=It({2:"touch",3:"pen",4:"mouse"});Lt.prototype.preventDefault=function(){Lt.qb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Mt)try{(e.ctrlKey||112<=e.keyCode&&123>
1=e.keyCode)&&(e.keyCode=-1)}catch(t){}},Lt.prototype.f=function(){return this.a};var Ft="closure_listenable_"+(1e6*Math.random()|0),jt=0;function Vt(e,t,n,i,r){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!i,this.Pa=r,this.key=++jt,this.ta=this.Ka=!1}function Ht(e){e.ta=!0,e.listener=null,e.proxy=null,e.src=null,e.Pa=null}function Yt(e){this.src=e,this.a={},this.b=0}function Bt(e,t){var n=t.type;n in e.a&&B(e.a[n],t)&&(Ht(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function Gt(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r];if(!o.ta&&o.listener==t&&o.capture==!!n&&o.Pa==i)return r}return-1}Yt.prototype.add=function(e,t,n,i,r){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var s=Gt(e,t,i,r);return-1<s?(t=e[s],n||(t.Ka=!1)):((t=new Vt(t,this.src,o,!!i,r)).Ka=n,e.push(t)),t};var Wt="closure_lm_"+(1e6*Math.random()|0),Ut={};function zt(e,t,n,i,r){if(i&&i.once)Kt(e,t,n,i,r);else if(f(t))for(var o=0;o<t.length;o++)zt(e,t[o],n,i,r);else n=rn(n),e&&e[Ft]?sn(e,t,n,y(i)?!!i.capture:!!i,r):qt(e,t,n,!1,i,r)}function qt(e,t,n,i,r,o){if(!t)throw Error("Invalid event type");var s=y(r)?!!r.capture:!!r,a=tn(e);if(a||(e[Wt]=a=new Yt(e)),!(n=a.add(t,n,i,s,o)).proxy)if(i=function(){var e=en,t=Rt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=i,i.src=e,i.listener=n,e.addEventListener)At||(r=s),void 0===r&&(r=!1),e.addEventListener(t.toString(),i,r);else if(e.attachEvent)e.attachEvent(Xt(t.toString()),i);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(i)}}function Kt(e,t,n,i,r){if(f(t))for(var o=0;o<t.length;o++)Kt(e,t[o],n,i,r);else n=rn(n),e&&e[Ft]?an(e,t,n,y(i)?!!i.capture:!!i,r):qt(e,t,n,!0,i,r)}function $t(e,t,n,i,r){if(f(t))for(var o=0;o<t.length;o++)$t(e,t[o],n,i,r);else i=y(i)?!!i.capture:!!i,n=rn(n),e&&e[Ft]?(e=e.u,(t=String(t).toString())in e.a&&-1<(n=Gt(o=e.a[t],n,i,r))&&(Ht(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--))):e&&(e=tn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=Gt(t,n,i,r)),(n=-1<e?t[e]:null)&&Qt(n))}function Qt(e){if("number"!=typeof e&&e&&!e.ta){var t=e.src;if(t&&t[Ft])Bt(t.u,e);else{var n=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(n,i,e.capture):t.detachEvent?t.detachEvent(Xt(n),i):t.addListener&&t.removeListener&&t.removeListener(i),(n=tn(t))?(Bt(n,e),0==n.b&&(n.src=null,t[Wt]=null)):Ht(e)}}}function Xt(e){return e in Ut?Ut[e]:Ut[e]="on"+e}function Jt(e,t,n,i){var r=!0;if((e=tn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.ta&&(o=Zt(o,i),r=r&&!1!==o)}return r}function Zt(e,t){var n=e.listener,i=e.Pa||e.src;return e.Ka&&Qt(e),n.call(i,t)}function en(e,t){if(e.ta)return!0;if(!Rt){if(!t)e:{t=["window","event"];for(var n=s,i=0;i<t.length;i++)if(null==(n=n[t[i]])){t=null;break e}t=n}if(t=new Lt(i=t,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){e:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break e}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=t.b;r;r=r.parentNode)i.push(r);for(e=e.type,r=i.length-1;0<=r;r--){t.b=i[r];var o=Jt(i[r],e,!0,t);n=n&&o}for(r=0;r<i.length;r++)t.b=i[r],o=Jt(i[r],e,!1,t),n=n&&o}return n}return Zt(e,new Lt(t,this))}function tn(e){return(e=e[Wt])instanceof Yt?e:null}var nn="__closure_events_fn_"+(1e9*Math.random()>>>0);function rn(e){return g(e)?e:(e[nn]||(e[nn]=function(t){return e.handleEvent(t)}),e[nn])}function on(){ut.call(this),this.u=new Yt(this),this.Sb=this,this.Xa=null}function sn(e,t,n,i,r){e.u.add(String(t),n,!1,i,r)}function an(e,t,n,i,r){e.u.add(String(t),n,!0,i,r)}function ln(e,t,n,i){if(!(t=e.u.a[String(t)]))return!0;t=t.concat();for(var r=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.ta&&s.capture==n){var a=s.listener,l=s.Pa||s.src;s.Ka&&Bt(e.u,s),r=!1!==a.call(l,i)&&r}}return r&&0!=i.Mb}function cn(e,t,n){if(g(e))n&&(e=C(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=C(e.handleEvent,e)}return 2147483647<Number(t)?-1:s.setTimeout(e,t||0)}function un(e){var t=null;return new Ge((function(n,i){-1==(t=cn((function(){n(void 0)}),e))&&i(Error("Failed to schedule timer."))})).s((function(e){throw s.clearTimeout(t),e}))}function dn(e){if(e.U&&"function"==typeof e.U)return e.U();if(a(e))return e.split("");
1if(m(e)){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}for(i in t=[],n=0,e)t[n++]=e[i];return t}function hn(e){if(e.X&&"function"==typeof e.X)return e.X();if(!e.U||"function"!=typeof e.U){if(m(e)||a(e)){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var i in t=[],n=0,e)t[n++]=i;return t}}function pn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(e)if(e instanceof pn)for(n=e.X(),i=0;i<n.length;i++)this.set(n[i],e.get(n[i]));else for(i in e)this.set(i,e[i])}function fn(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var i=e.a[t];mn(e.b,i)&&(e.a[n++]=i),t++}e.a.length=n}if(e.c!=e.a.length){var r={};for(n=t=0;t<e.a.length;)mn(r,i=e.a[t])||(e.a[n++]=i,r[i]=1),t++;e.a.length=n}}function mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}D(on,ut),on.prototype[Ft]=!0,on.prototype.addEventListener=function(e,t,n,i){zt(this,e,t,n,i)},on.prototype.removeEventListener=function(e,t,n,i){$t(this,e,t,n,i)},on.prototype.dispatchEvent=function(e){var t,n=this.Xa;if(n)for(t=[];n;n=n.Xa)t.push(n);n=this.Sb;var i=e.type||e;if(a(e))e=new Pt(e,n);else if(e instanceof Pt)e.target=e.target||n;else{var r=e;Q(e=new Pt(i,n),r)}if(r=!0,t)for(var o=t.length-1;0<=o;o--){var s=e.b=t[o];r=ln(s,i,!0,e)&&r}if(r=ln(s=e.b=n,i,!0,e)&&r,r=ln(s,i,!1,e)&&r,t)for(o=0;o<t.length;o++)r=ln(s=e.b=t[o],i,!1,e)&&r;return r},on.prototype.za=function(){if(on.qb.za.call(this),this.u){var e,t=this.u;for(e in t.a){for(var n=t.a[e],i=0;i<n.length;i++)Ht(n[i]);delete t.a[e],t.b--}}this.Xa=null},(e=pn.prototype).U=function(){fn(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},e.X=function(){return fn(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(e,t){return mn(this.b,e)?this.b[e]:t},e.set=function(e,t){mn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},e.forEach=function(e,t){for(var n=this.X(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);e.call(t,o,r,this)}};var gn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function yn(e,t){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,e instanceof yn?(this.h=void 0!==t?t:e.h,vn(this,e.f),this.i=e.i,this.b=e.b,_n(this,e.l),this.c=e.c,bn(this,Vn(e.a)),this.g=e.g):e&&(n=String(e).match(gn))?(this.h=!!t,vn(this,n[1]||"",!0),this.i=Dn(n[2]||""),this.b=Dn(n[3]||"",!0),_n(this,n[4]),this.c=Dn(n[5]||"",!0),bn(this,n[6]||"",!0),this.g=Dn(n[7]||"")):(this.h=!!t,this.a=new An(null,this.h))}
1function vn(e,t,n){e.f=n?Dn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function _n(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.l=t}else e.l=null}function bn(e,t,n){t instanceof An?(e.a=t,function(e,t){t&&!e.f&&(Pn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Nn(this,t),jn(this,n,e))}),e)),e.f=t}(e.a,e.h)):(n||(t=xn(t,Rn)),e.a=new An(t,e.h))}function wn(e,t,n){e.a.set(t,n)}function Cn(e,t){return e.a.get(t)}function En(e){return e instanceof yn?new yn(e):new yn(e,void 0)}function Sn(e,t){var n=new yn(null,void 0);return vn(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function Dn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function xn(e,t,n){return a(e)?(e=encodeURI(e).replace(t,Tn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Tn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}yn.prototype.toString=function(){var e=[],t=this.f;t&&e.push(xn(t,On,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(xn(t,On,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(xn(n,"/"==n.charAt(0)?In:kn,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",xn(n,Mn)),e.join("")},yn.prototype.resolve=function(e){var t=new yn(this),n=!!e.f;n?vn(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.l;var i=e.c;if(n)_n(t,e.l);else if(n=!!e.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=t.c.lastIndexOf("/");-1!=r&&(i=t.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(ye(r,"./")||ye(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],s=0;s<r.length;){var a=r[s++];"."==a?i&&s==r.length&&o.push(""):".."==a?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&s==r.length&&o.push("")):(o.push(a),i=!0)}i=o.join("/")}else i=r}return n?t.c=i:n=""!==e.a.toString(),n?bn(t,Vn(e.a)):n=!!e.g,n&&(t.g=e.g),t};var On=/[#\/\?@]/g,kn=/[#\?:]/g,In=/[#\?]/g,Rn=/[#\?@]/g,Mn=/#/g;function An(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Pn(e){e.a||(e.a=new pn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var i=e[n].indexOf("="),r=null;if(0<=i){var o=e[n].substring(0,i);r=e[n].substring(i+1)}else o=e[n];t(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Ln(e){var t=hn(e);if(void 0===t)throw Error("Keys are undefined");var n=new An(null,void 0);e=dn(e);for(var i=0;i<t.length;i++){var r=t[i],o=e[i];f(o)?jn(n,r,o):n.add(r,o)}return n}function Nn(e,t){Pn(e),t=Hn(e,t),mn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,mn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&fn(e)))}function Fn(e,t){return Pn(e),t=Hn(e,t),mn(e.a.b,t)}function jn(e,t,n){Nn(e,t),0<n.length&&(e.c=null,e.a.set(Hn(e,t),U(n)),e.b+=n.length)}function Vn(e){var t=new An;return t.c=e.c,e.a&&(t.a=new pn(e.a),t.b=e.b),t}function Hn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}(e=An.prototype).add=function(e,t){Pn(this),this.c=null,e=Hn(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(e,t){Pn(this),this.a.forEach((function(n,i){j(n,(function(n){e.call(t,n,i,this)}),this)}),this)},e.X=function(){Pn(this);for(var e=this.a.U(),t=this.a.X(),n=[],i=0;i<t.length;i++)for(var r=e[i],o=0;o<r.length;o++)n.push(t[i]);return n},e.U=function(e){Pn(this);var t=[];if(a(e))Fn(this,e)&&(t=W(t,this.a.get(Hn(this,e))));else{e=this.a.U();for(var n=0;n<e.length;n++)t=W(t,e[n])}return t},e.set=function(e,t){return Pn(this),this.c=null,Fn(this,e=Hn(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},e.get=function(e,t){return e&&0<(e=this.U(e)).length?String(e[0]):t},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.X(),n=0;n<t.length;n++){var i=t[n],r=encodeURIComponent(String(i));i=this.U(i);for(var o=0;o<i.length;o++){var s=r;""!==i[o]&&(s+="="+encodeURIComponent(String(i[o]))),e.push(s)}}return this.c=e.join("&")};var Yn=!vt||9<=Number(Tt);function Bn(e){var t=document;return a(e)?t.getElementById(e):e}function Gn(e,t){z(t,(function(t,n){t&&"object"==typeof t&&t.qa&&(t=t.pa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:Wn.hasOwnProperty(n)?e.setAttribute(Wn[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var Wn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
1nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Un(e,t,n){function i(n){n&&t.appendChild(a(n)?e.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];!m(o)||y(o)&&0<o.nodeType?i(o):j(zn(o)?U(o):o,i)}}function zn(e){if(e&&"number"==typeof e.length){if(y(e))return"function"==typeof e.item||"string"==typeof e.item;if(g(e))return"function"==typeof e.item}return!1}function qn(e){var t=[];return function e(t,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(f(n)){var r=n;n=r.length,i.push("[");for(var o="",s=0;s<n;s++)i.push(o),e(t,r[s],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(s=n[r])&&(i.push(o),Xn(r,i),i.push(":"),e(t,s,i),o=",");return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":Xn(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new Kn,e,t),t.join("")}function Kn(){}var $n={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Qn=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Xn(e,t){t.push('"',e.replace(Qn,(function(e){var t=$n[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),$n[e]=t),t})),'"')}function Jn(){var e=gi();return vt&&!!Tt&&11==Tt||/Edge\/\d+/.test(e)}function Zn(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function ei(e,t){t=t||s.window;var n="about:blank";e&&(n=be(Ce(e)).toString()),t.location.href=n}function ti(e){return!!((e=(e||gi()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function ni(e){e=e||s.window;try{e.close()}catch(t){}}function ii(e,t,n){var i=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(s in t={width:t,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=gi().toLowerCase(),i&&(t.target=i,ye(n,"crios/")&&(t.target="_blank")),pi(gi())==hi&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),i=window,t=n instanceof _e?n:Ce(void 0!==n.href?n.href:String(n)),n=e.target||n.target,r=[],e)switch(s){case"width":case"height":case"top":case"left":r.push(s+"="+e[s]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(s+"="+(e[s]?1:0))}var s=r.join(",");if((Oe("iPhone")&&!Oe("iPod")&&!Oe("iPad")||Oe("iPad")||Oe("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(N(s=i.document.createElement("A"),"HTMLAnchorElement"),t instanceof _e||t instanceof _e||(t="object"==typeof t&&t.qa?t.pa():String(t),we.test(t)||(t="about:invalid#zClosurez"),t=De(t)),s.href=be(t),s.setAttribute("target",n),e.noreferrer&&s.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),s.dispatchEvent(e),s={}):e.noreferrer?(s=i.open("",n,s),e=be(t).toString(),s&&(bt&&ye(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),s.opener=null,e=Me('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Fe(e)+'">'),s.document.write(Ie(e)),s.document.close())):(s=i.open(be(t).toString(),n,s))&&e.noopener&&(s.opener=null),s)try{s.focus()}catch(a){}return s}var ri=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,oi=/^[^@]+@[^@]+$/;function si(){var e=null;return new Ge((function(t){"complete"==s.document.readyState?t():(e=function(){t()},Kt(window,"load",e))})).s((function(t){throw $t(window,"load",e),t}))}function ai(e){return e=e||gi(),!("file:"!==wi()&&"ionic:"!==wi()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function li(){var e=s.window;try{return!(!e||e==e.top)}catch(t){return!1}}function ci(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.importScripts}
1function ui(){return LS.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":LS.a.INTERNAL.hasOwnProperty("node")?"Node":ci()?"Worker":"Browser"}function di(){var e=ui();return"ReactNative"===e||"Node"===e}var hi="Firefox";function pi(e){var t=e.toLowerCase();return ye(t,"opera/")||ye(t,"opr/")||ye(t,"opios/")?"Opera":ye(t,"iemobile")?"IEMobile":ye(t,"msie")||ye(t,"trident/")?"IE":ye(t,"edge/")?"Edge":ye(t,"firefox/")?hi:ye(t,"silk/")?"Silk":ye(t,"blackberry")?"Blackberry":ye(t,"webos")?"Webos":!ye(t,"safari/")||ye(t,"chrome/")||ye(t,"crios/")||ye(t,"android")?!ye(t,"chrome/")&&!ye(t,"crios/")||ye(t,"edge/")?ye(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":"Chrome":"Safari"}var fi={Wc:"FirebaseCore-web",Yc:"FirebaseUI-web"};function mi(e,t){t=t||[];var n,i=[],r={};for(n in fi)r[fi[n]]=!0;for(n=0;n<t.length;n++)void 0!==r[t[n]]&&(delete r[t[n]],i.push(t[n]));return i.sort(),(t=i).length||(t=["FirebaseCore-web"]),"Browser"===(i=ui())?i=pi(r=gi()):"Worker"===i&&(i=pi(r=gi())+"-"+i),i+"/JsCore/"+e+"/"+t.join(",")}function gi(){return s.navigator&&s.navigator.userAgent||""}function yi(e,t){e=e.split("."),t=t||s;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function vi(){try{var e=s.localStorage,t=xi();if(e)return e.setItem(t,"1"),e.removeItem(t),!Jn()||!!s.indexedDB}catch(n){return ci()&&!!s.indexedDB}return!1}function _i(){return(bi()||"chrome-extension:"===wi()||ai())&&!di()&&vi()&&!ci()}function bi(){return"http:"===wi()||"https:"===wi()}function wi(){return s.location&&s.location.protocol||null}function Ci(e){return!ti(e=e||gi())&&pi(e)!=hi}function Ei(e){return void 0===e?null:qn(e)}function Si(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!=e[t]&&(n[t]=e[t]);return n}function Di(e){if(null!==e)return JSON.parse(e)}function xi(e){return e||Math.floor(1e9*Math.random()).toString()}function Ti(e){return"Safari"!=pi(e=e||gi())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Oi(){var e=s.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function ki(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=gi(),t=ui(),this.b=ti(e)||"ReactNative"===t}function Ii(){var e=s.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function Ri(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(n){}return null}function Mi(){return!(!yi("fireauth.oauthhelper",s)&&!yi("fireauth.iframe",s))}ki.prototype.get=function(){var e=s.navigator;return!e||"boolean"!=typeof e.onLine||!bi()&&"chrome-extension:"!==wi()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ai,Pi={};function Li(e){Pi[e]||(Pi[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var Ni={};Object.defineProperty(Ni,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Ni,"abcd",{configurable:!0,enumerable:!0,value:2}),Ai=2==Ni.abcd}catch(gt){Ai=!1}function Fi(e,t,n){Ai?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function ji(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Fi(e,n,t[n])}function Vi(e){var t={};return ji(t,e),t}function Hi(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Fi(t,n,Hi(e[n]));return t}function Yi(e){var t={},n=e[Gi],i=e[Wi];if(!(e=e[Ui])||e!=Bi&&!n)throw Error("Invalid provider user info!");t[qi]=i||null,t[zi]=n||null,Fi(this,$i,e),Fi(this,Ki,Hi(t))}var Bi="EMAIL_SIGNIN",Gi="email",Wi="newEmail",Ui="requestType",zi="email",qi="fromEmail",Ki="data",$i="operation";function Qi(e,t){this.code=Ji+e,this.message=t||Zi[e]||""}function Xi(e){var t=e&&e.code;return t?new Qi(t.substring(Ji.length),e.message):null}D(Qi,Error),Qi.prototype.A=function(){return{code:this.code,message:this.message}},Qi.prototype.toJSON=function(){return this.A()};var Ji="auth/",Zi={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invali
1d-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};
1function er(e){var t=Cn(e=En(e),tr)||null,n=Cn(e,nr)||null,i=Cn(e,or)||null;if(i=i&&ar[i]||null,!t||!n||!i)throw new Qi("argument-error",tr+", "+nr+"and "+or+" are required in a valid action code URL.");ji(this,{apiKey:t,operation:i,code:n,continueUrl:Cn(e,ir)||null,languageCode:Cn(e,rr)||null,tenantId:Cn(e,sr)||null})}var tr="apiKey",nr="oobCode",ir="continueUrl",rr="languageCode",or="mode",sr="tenantId",ar={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",signIn:Bi,verifyEmail:"VERIFY_EMAIL"};function lr(e){try{return new er(e)}catch(t){return null}}function cr(e){var t=e[fr];if(void 0===t)throw new Qi("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new Qi("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[ur];if(n&&"object"==typeof n){t=n[yr];var i=n[mr];if(n=n[gr],"string"==typeof t&&t.length){if(this.a=t,void 0!==i&&"boolean"!=typeof i)throw new Qi("argument-error",mr+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new Qi("argument-error",gr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new Qi("argument-error",yr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new Qi("missing-android-pkg-name")}}else if(void 0!==n)throw new Qi("argument-error",ur+" property must be a non null object when specified.");if(this.f=null,(t=e[pr])&&"object"==typeof t){if("string"==typeof(t=t[vr])&&t.length)this.f=t;else if(void 0!==t)throw new Qi("argument-error",vr+" property must be a non empty string when specified.")}else if(void 0!==t)throw new Qi("argument-error",pr+" property must be a non null object when specified.");if(void 0!==(t=e[hr])&&"boolean"!=typeof t)throw new Qi("argument-error",hr+" property must be a boolean when specified.");if(this.c=!!t,void 0!==(e=e[dr])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new Qi("argument-error",dr+" property must be a non empty string when specified.");this.i=e||null}var ur="android",dr="dynamicLinkDomain",hr="handleCodeInApp",pr="iOS",fr="url",mr="installApp",gr="minimumVersion",yr="packageName",vr="bundleId";function _r(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var br=null,wr=null;function Cr(e){this.f=e.sub,S(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.c=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Er(e){return(e=Sr(e))&&e.sub&&e.iss&&e.aud&&e.exp?new Cr(e):null}function Sr(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(function(e){var t="";return function(e,t){function n(t){for(;i<e.length;){var n=e.charAt(i++),r=wr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!br){br={},wr={};for(var e=0;65>e;e++)br[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),wr[br[e]]=e,62<=e&&(wr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e)]=e)}}();for(var i=0;;){var r=n(-1),o=n(0),s=n(64),a=n(64);if(64===a&&-1===r)break;t(r<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){t+=String.fromCharCode(e)})),t}(e))}catch(i){}return null}Cr.prototype.R=function(){return this.c},Cr.prototype.g=function(){return this.b};var Dr,xr={bd:{cb:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://securetoken.googleapis.com/v1/token",id:"p"},dd:{cb:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",ib:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},ed:{cb:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",ib:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};function Tr(e){for(var t in xr)if(xr[t].id===e)return{firebaseEndpoint:(e=xr[t]).cb,secureTokenEndpoint:e.ib};return null}Dr=Tr("__EID__")?"__EID__":void 0;var Or="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),kr=["client_id","response_type","scope","redirect_uri","state"],Ir={Xc:{Ea:"locale",sa:700,ra:600,Fa:"facebook.com",Qa:kr}
1,Zc:{Ea:null,sa:500,ra:750,Fa:"github.com",Qa:kr},$c:{Ea:"hl",sa:515,ra:680,Fa:"google.com",Qa:kr},fd:{Ea:"lang",sa:485,ra:705,Fa:"twitter.com",Qa:Or},Vc:{Ea:"locale",sa:600,ra:600,Fa:"apple.com",Qa:[]}};function Rr(e){for(var t in Ir)if(Ir[t].Fa==e)return Ir[t];return null}function Mr(e){var t={};t["facebook.com"]=Fr,t["google.com"]=Vr,t["github.com"]=jr,t["twitter.com"]=Hr;var n=e&&e[Pr];try{if(n)return t[n]?new t[n](e):new Nr(e);if(void 0!==e[Ar])return new Lr(e)}catch(i){}return null}var Ar="idToken",Pr="providerId";function Lr(e){var t=e[Pr];if(!t&&e[Ar]){var n=Er(e[Ar]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Fi(this,"providerId",t),Fi(this,"isNewUser",n)}function Nr(e){Lr.call(this,e),Fi(this,"profile",Hi((e=Di(e.rawUserInfo||"{}"))||{}))}function Fr(e){if(Nr.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function jr(e){if(Nr.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Fi(this,"username",this.profile&&this.profile.login||null)}function Vr(e){if(Nr.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Hr(e){if(Nr.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Fi(this,"username",e.screenName||null)}function Yr(e){var t=En(e),n=Cn(t,"link"),i=Cn(En(n),"link");return t=Cn(t,"deep_link_id"),Cn(En(t),"link")||t||i||n||e}function Br(){}function Gr(e,t){return e.then((function(e){if(e[ks]){var n=Er(e[ks]);if(!n||t!=n.f)throw new Qi("user-mismatch");return e}throw new Qi("user-mismatch")})).s((function(e){throw e&&e.code&&e.code==Ji+"user-not-found"?new Qi("user-mismatch"):e}))}function Wr(e,t){if(!t)throw new Qi("internal-error","failed to construct a credential");this.a=t,Fi(this,"providerId",e),Fi(this,"signInMethod",e)}function Ur(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function zr(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new Wr(e.providerId,e.pendingToken)}catch(t){}return null}function qr(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Fi(this,"idToken",t.idToken),t.accessToken&&Fi(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Fi(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new Qi("internal-error","failed to construct a credential");Fi(this,"accessToken",t.oauthToken),Fi(this,"secret",t.oauthTokenSecret)}Fi(this,"providerId",e),Fi(this,"signInMethod",n)}function Kr(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Ln(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function $r(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new qr(e.providerId,t,e.signInMethod)}catch(n){}}return null}function Qr(e,t){this.Fc=t||[],ji(this,{providerId:e,isOAuthProvider:!0}),this.zb={},this.eb=(Rr(e)||{}).Ea||null,this.bb=null}function Xr(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new Qi("argument-error",'SAML provider IDs must be prefixed with "saml."');Qr.call(this,e,[])}function Jr(e){Qr.call(this,e,kr),this.a=[]}function Zr(){Jr.call(this,"facebook.com")}function eo(e){if(!e)throw new Qi("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new Zr).credential({accessToken:t})}function to(){Jr.call(this,"github.com")}function no(e){if(!e)throw new Qi("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return y(e)&&(t=e.accessToken),(new to).credential({accessToken:t})}function io(){Jr.call(this,"google.com"),this.ya("profile")}function ro(e,t){var n=e;return y(e)&&(n=e.idToken,t=e.accessToken),(new io).credential({idToken:n,accessToken:t})}function oo(){Qr.call(this,"twitter.com",Or)}function so(e,t){var n=e;if(y(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new Qi("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new qr("twitter.com",n,"twitter.com")}
1function ao(e,t,n){this.a=e,this.c=t,Fi(this,"providerId","password"),Fi(this,"signInMethod",n===co.EMAIL_LINK_SIGN_IN_METHOD?co.EMAIL_LINK_SIGN_IN_METHOD:co.EMAIL_PASSWORD_SIGN_IN_METHOD)}function lo(e){return e&&e.email&&e.password?new ao(e.email,e.password,e.signInMethod):null}function co(){ji(this,{providerId:"password",isOAuthProvider:!1})}function uo(e,t){if(!(t=ho(t)))throw new Qi("argument-error","Invalid email link!");return new ao(e,t.code,co.EMAIL_LINK_SIGN_IN_METHOD)}function ho(e){return(e=lr(e=Yr(e)))&&e.operation===Bi?e:null}function po(e){if(!(e.Va&&e.Ua||e.Ha&&e.ba))throw new Qi("internal-error");this.a=e,Fi(this,"providerId","phone"),Fi(this,"signInMethod","phone")}function fo(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return j(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new po(t)}return null}function mo(e){return e.a.Ha&&e.a.ba?{temporaryProof:e.a.Ha,phoneNumber:e.a.ba}:{sessionInfo:e.a.Va,code:e.a.Ua}}function go(e){try{this.a=e||LS.a.auth()}catch(t){throw new Qi("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}ji(this,{providerId:"phone",isOAuthProvider:!1})}function yo(e,t){if(!e)throw new Qi("missing-verification-id");if(!t)throw new Qi("missing-verification-code");return new po({Va:e,Ua:t})}function vo(e){if(e.temporaryProof&&e.phoneNumber)return new po({Ha:e.temporaryProof,ba:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,i=e&&e.oauthTokenSecret,r=e&&e.nonce,o=e&&e.oauthIdToken,s=e&&e.pendingToken;try{switch(t){case"google.com":return ro(o,n);case"facebook.com":return eo(n);case"github.com":return no(n);case"twitter.com":return so(n,i);default:return n||i||o||s?s?0==t.indexOf("saml.")?new Wr(t,s):new qr(t,{pendingToken:s,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new Jr(t).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(a){return null}}function _o(e){if(!e.isOAuthProvider)throw new Qi("invalid-oauth-provider")}function bo(e,t,n,i,r,o,s){if(this.c=e,this.b=t||null,this.g=n||null,this.f=i||null,this.i=o||null,this.h=s||null,this.a=r||null,!this.g&&!this.a)throw new Qi("invalid-auth-event");if(this.g&&this.a)throw new Qi("invalid-auth-event");if(this.g&&!this.f)throw new Qi("invalid-auth-event")}function wo(e){return(e=e||{}).type?new bo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&Xi(e.error),e.postBody,e.tenantId):null}function Co(){this.b=null,this.a=[]}D(Nr,Lr),D(Fr,Nr),D(jr,Nr),D(Vr,Nr),D(Hr,Nr),Wr.prototype.na=function(e){return qs(e,Ur(this))},Wr.prototype.b=function(e,t){var n=Ur(this);return n.idToken=t,Ks(e,n)},Wr.prototype.f=function(e,t){return Gr($s(e,Ur(this)),t)},Wr.prototype.A=function(){return{providerId:this.providerId,sign
1InMethod:this.signInMethod,pendingToken:this.a}},qr.prototype.na=function(e){return qs(e,Kr(this))},qr.prototype.b=function(e,t){var n=Kr(this);return n.idToken=t,Ks(e,n)},qr.prototype.f=function(e,t){return Gr($s(e,Kr(this)),t)},qr.prototype.A=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},Qr.prototype.Ga=function(e){return this.zb=K(e),this},D(Xr,Qr),D(Jr,Qr),Jr.prototype.ya=function(e){return Y(this.a,e)||this.a.push(e),this},Jr.prototype.Hb=function(){return U(this.a)},Jr.prototype.credential=function(e,t){var n;if(!(n=y(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new Qi("argument-error","credential failed: must provide the ID token and/or the access token.");return new qr(this.providerId,n,this.providerId)},D(Zr,Jr),Fi(Zr,"PROVIDER_ID","facebook.com"),Fi(Zr,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),D(to,Jr),Fi(to,"PROVIDER_ID","github.com"),Fi(to,"GITHUB_SIGN_IN_METHOD","github.com"),D(io,Jr),Fi(io,"PROVIDER_ID","google.com"),Fi(io,"GOOGLE_SIGN_IN_METHOD","google.com"),D(oo,Qr),Fi(oo,"PROVIDER_ID","twitter.com"),Fi(oo,"TWITTER_SIGN_IN_METHOD","twitter.com"),ao.prototype.na=function(e){return this.signInMethod==co.EMAIL_LINK_SIGN_IN_METHOD?Sa(e,ia,{email:this.a,oobCode:this.c}):Sa(e,ba,{email:this.a,password:this.c})},ao.prototype.b=function(e,t){return this.signInMethod==co.EMAIL_LINK_SIGN_IN_METHOD?Sa(e,ra,{idToken:t,email:this.a,oobCode:this.c}):Sa(e,fa,{idToken:t,email:this.a,password:this.c})},ao.prototype.f=function(e,t){return Gr(this.na(e),t)},ao.prototype.A=function(){return{email:this.a,password:this.c,signInMethod:this.signInMethod}},ji(co,{PROVIDER_ID:"password"}),ji(co,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),ji(co,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),po.prototype.na=function(e){return e.Wa(mo(this))},po.prototype.b=function(e,t){var n=mo(this);return n.idToken=t,Sa(e,Ca,n)},po.prototype.f=function(e,t){var n=mo(this);return n.operation="REAUTH",Gr(e=Sa(e,Ea,n),t)},po.prototype.A=function(){var e={providerId:"phone"};
1return this.a.Va&&(e.verificationId=this.a.Va),this.a.Ua&&(e.verificationCode=this.a.Ua),this.a.Ha&&(e.temporaryProof=this.a.Ha),this.a.ba&&(e.phoneNumber=this.a.ba),e},go.prototype.Wa=function(e,t){var n=this.a.b;return Qe(t.verify()).then((function(i){if(!a(i))throw new Qi("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":return function(e,t){return Sa(e,ha,t)}(n,{phoneNumber:e,recaptchaToken:i}).then((function(e){return"function"==typeof t.reset&&t.reset(),e}),(function(e){throw"function"==typeof t.reset&&t.reset(),e}));default:throw new Qi("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},ji(go,{PROVIDER_ID:"phone"}),ji(go,{PHONE_SIGN_IN_METHOD:"phone"}),bo.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},bo.prototype.R=function(){return this.h},bo.prototype.A=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.A()}};var Eo,So=null;function Do(e){var t="unauthorized-domain",n=void 0,i=En(e);e=i.b,"chrome-extension"==(i=i.f)?n=Ne("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==i||"https"==i?n=Ne("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",Qi.call(this,t,n)}function xo(e,t,n){Qi.call(this,e,n),(e=t||{}).Ab&&Fi(this,"email",e.Ab),e.ba&&Fi(this,"phoneNumber",e.ba),e.credential&&Fi(this,"credential",e.credential),e.Qb&&Fi(this,"tenantId",e.Qb)}function To(e){if(e.code){var t=e.code||"";0==t.indexOf(Ji)&&(t=t.substring(Ji.length));var n={credential:vo(e),Qb:e.tenantId};if(e.email)n.Ab=e.email;else if(e.phoneNumber)n.ba=e.phoneNumber;else if(!n.credential)return new Qi(t,e.message||void 0);return new xo(t,n,e.message)}return null}function Oo(){}function ko(){}function Io(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var i=t[n];try{return new ActiveXObject(i),e.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Ro(){}function Mo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=C(this.fc,this),this.a.onerror=C(this.Ib,this),this.a.onprogress=C(this.gc,this),this.a.ontimeout=C(this.kc,this)}function Ao(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function Po(e,t,n){this.reset(e,t,n,void 0,void 0)}function Lo(e){this.f=e,this.b=this.c=this.a=null}function No(e,t){this.name=e,this.value=t}D(Do,Qi),D(xo,Qi),xo.prototype.A=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.A();return t&&Q(e,t),e},xo.prototype.toJSON=function(){return this.A()},Oo.prototype.c=null,D(ko,Oo),ko.prototype.a=function(){var e=Io(this);return e?new ActiveXObject(e):new XMLHttpRequest},ko.prototype.b=function(){var e={};return Io(this)&&(e[0]=!0,e[1]=!0),e},Eo=new ko,D(Ro,Oo),Ro.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Mo;throw Error("Unsupported browser")},Ro.prototype.b=function(){return{}},(e=Mo.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},e.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},e.fc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ao(this,4)},e.Ib=function(){this.status=500,this.response=this.responseText="",Ao(this,4)},e.kc=function(){this.Ib()},e.gc=function(){this.status=200,Ao(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Po.prototype.a=null,Po.prototype.reset=function(e,t,n,i,r){i||S(),delete this.a},No.prototype.toString=function(){return this.name};var Fo=new No("SEVERE",1e3),jo=new No("WARNING",900),Vo=new No("CONFIG",700),Ho=new No("FINE",500);Lo.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(k("Root logger has no level set."),null)}(this).value)for(g(t)&&(t=t()),e=new Po(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var Yo={},Bo=null;function Go(e){var t;if(Bo||(Bo=new Lo(""),Yo[""]=Bo,Bo.c=Vo),!(t=Yo[e])){t=new Lo(e);var n=e.lastIndexOf("."),i=e.substr(n+1);(n=Go(e.substr(0,n))).b||(n.b={}),n.b[i]=t,t.a=n,Yo[e]=t}return t}function Wo(e,t){e&&e.log(Ho,t,void 0)}function Uo(e){this.f=e}function zo(e){on.call(this),this.o=e,this.readyState=qo,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=Go("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}D(Uo,Oo),Uo.prototype.a=function(){return new zo(this.f)},Uo.prototype.b=function(e){return function(){return e}}({}),D(zo,on);var qo=0;function Ko(e){e.c.read().then(e.ec.bind(e)).catch(e.Oa.bind(e))}function $o(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,Qo(e)}function Qo(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Xo(e){on.call(this),this.headers=new pn,this.B=e||null,this.c=!1,this.w=this.a=null,this.h=this.O=this.l="",this.f=this.J=this.i=this.I=!1,this.g=0,this.o=null,this.m=Jo,this.v=this.P=!1}(e=zo.prototype).open=function(e,t){if(this.readyState!=qo)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,Qo(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
1e&&(t.body=e),this.o.fetch(new Request(this.g,t)).then(this.jc.bind(this),this.Oa.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,$o(this,!1)),this.readyState=qo},e.jc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,Qo(this)),this.a&&(this.readyState=3,Qo(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.hc.bind(this),this.Oa.bind(this)):void 0!==s.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,Ko(this)):e.text().then(this.ic.bind(this),this.Oa.bind(this)))))},e.ec=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?$o(this,!0):Qo(this),3==this.readyState&&Ko(this)}},e.ic=function(e){this.a&&(this.response=this.responseText=e,$o(this,!0))},e.hc=function(e){this.a&&(this.response=e,$o(this,!0))},e.Oa=function(e){var t=this.h;t&&t.log(jo,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&$o(this,!0)},e.setRequestHeader=function(e,t){this.i.append(e,t)},e.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(jo,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(jo,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)e.push((n=n.value)[0]+": "+n[1]),n=t.next();return e.join("\r\n")},D(Xo,on);var Jo="";Xo.prototype.b=Go("goog.net.XhrIo");var Zo=/^https?$/i,es=["POST","PUT"];function ts(e){return"content-type"==e.toLowerCase()}function ns(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,is(e),os(e)}function is(e){e.I||(e.I=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function rs(e){if(e.c&&void 0!==o)if(e.w[1]&&4==as(e)&&2==ls(e))Wo(e.b,cs(e,"Local request error detected and ignored"));else if(e.i&&4==as(e))cn(e.Lb,0,e);else if(e.dispatchEvent("readystatechange"),4==as(e)){Wo(e.b,cs(e,"Request complete")),e.c=!1;try{var t,n=ls(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break e;default:i=!1}if(!(t=i)){var r;if(r=0===n){var a=String(e.l).match(gn)[1]||null;if(!a&&s.self&&s.self.location){var l=s.self.location.protocol;a=l.substr(0,l.length-1)}r=!Zo.test(a?a.toLowerCase():"")}t=r}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<as(e)?e.a.statusText:""}catch(u){Wo(e.b,"Can not get status: "+u.message),c=""}e.h=c+" ["+ls(e)+"]",is(e)}}finally{os(e)}}}function os(e,t){if(e.a){ss(e);var n=e.a,i=e.w[0]?d:null;e.a=null,e.w=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){(e=e.b)&&e.log(Fo,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function ss(e){e.a&&e.v&&(e.a.ontimeout=null),e.o&&(s.clearTimeout(e.o),e.o=null)}function as(e){return e.a?e.a.readyState:0}function ls(e){try{return 2<as(e)?e.a.status:-1}catch(t){return-1}}function cs(e,t){return t+" ["+e.O+" "+e.l+" "+ls(e)+"]"}function us(e){var t=ws;this.g=[],this.v=t,this.o=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.w=this.i=!1,this.h=0,this.b=null,this.l=0}function ds(e,t,n){e.a=!0,e.c=n,e.f=!t,ms(e)}function hs(e){if(e.a){if(!e.u)throw new gs(e);e.u=!1}}function ps(e,t,n,i){e.g.push([t,n,i]),e.a&&ms(e)}function fs(e){return H(e.g,(function(e){return g(e[1])}))}function ms(e){if(e.h&&e.a&&fs(e)){var t=e.h,n=_s[t];n&&(s.clearTimeout(n.a),delete _s[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var i=n=!1;e.g.length&&!e.i;){var r=e.g.shift(),o=r[0],a=r[1];if(r=r[2],o=e.f?a:o)try{var l=o.call(r||e.o,t);void 0!==l&&(e.f=e.f&&(l==t||l instanceof Error),e.c=t=l),(x(t)||"function"==typeof s.Promise&&t instanceof s.Promise)&&(i=!0,e.i=!0)}catch(c){t=c,e.f=!0,fs(e)||(n=!0)}}e.c=t,i&&(l=C(e.m,e,!0),i=C(e.m,e,!1),t instanceof us?(ps(t,l,i),t.w=!0):t.then(l,i)),n&&(t=new vs(t),_s[t.a]=t,e.h=t.a)}function gs(){T.call(this)}function ys(){T.call(this)}function vs(e){this.a=s.setTimeout(C(this.c,this),0),this.b=e}(e=Xo.prototype).Ia=function(){void 0!==o&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Wo(this.b,cs(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(Wo(this.b,cs(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),os(this))},e.za=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),os(this,!0)),Xo.qb.za.call(this)},e.Lb=function(){this.va||(this.J||this.i||this.f?rs(this):this.yc())},e.yc=function(){rs(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Jo:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(Fo,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return Wo(this.b,"Can not get response: "+t.message),null}},us.prototype.cancel=function(e){if(this.a)this.c instanceof us&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.v?this.v.call(this.o,this):this.u=!0,this.a||(e=new ys(this),hs(this),ds(this,!1,e))}},us.prototype.m=function(e,t){this.i=!1,ds(this,e,t)},us.prototype.then=function(e,t,n){var i,r,o=new Ge((function(e,t){i=e,r=t}));return ps(this,i,(function(e){e instanceof ys?o.cancel():r(e)})),o.then(e,t,n)}
1,us.prototype.$goog_Thenable=!0,D(gs,T),gs.prototype.message="Deferred has already fired",gs.prototype.name="AlreadyCalledError",D(ys,T),ys.prototype.message="Deferred was canceled",ys.prototype.name="CanceledError",vs.prototype.c=function(){throw delete _s[this.a],this.b};var _s={};function bs(e){var t={},n=t.document||document,i=ie(e).toString(),r=document.createElement("SCRIPT"),o={Nb:r,Ia:void 0},a=new us(o),l=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(l=window.setTimeout((function(){Cs(r,!0);var e=new Ds(Ss,"Timeout reached for loading script "+i);hs(a),ds(a,!1,e)}),d),o.Ia=l),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Cs(r,t.gd||!1,l),hs(a),ds(a,!0,null))},r.onerror=function(){Cs(r,!0,l);var e=new Ds(Es,"Error while loading script "+i);hs(a),ds(a,!1,e)},Q(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),Gn(r,o),function(e,t){N(e,"HTMLScriptElement"),e.src=ie(t),null===u&&(u=(t=(t=s.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=u)&&e.setAttribute("nonce",t)}(r,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(r),a}function ws(){if(this&&this.Nb){var e=this.Nb;e&&"SCRIPT"==e.tagName&&Cs(e,!0,this.Ia)}}function Cs(e,t,n){null!=n&&s.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Es=0,Ss=1;function Ds(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),T.call(this,n),this.code=e}function xs(e){this.f=e}function Ts(e,t,n){if(this.c=e,this.l=(e=t||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.u=e.secureTokenTimeout||Is,this.g=K(e.secureTokenHeaders||Rs),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.firebaseTimeout||Ms,this.a=K(e.firebaseHeaders||As),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==ui(),!(n=s.XMLHttpRequest||n&&LS.a.INTERNAL.node&&LS.a.INTERNAL.node.XMLHttpRequest)&&!ci())throw new Qi("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=ci()?new Uo(self):di()?new xs(n):new Ro,this.b=null}D(Ds,T),D(xs,Oo),xs.prototype.a=function(){return new this.f},xs.prototype.b=function(){return{}};var Os,ks="idToken",Is=new ki(3e4,6e4),Rs={"Content-Type":"application/x-www-form-urlencoded"},Ms=new ki(3e4,6e4),As={"Content-Type":"application/json"};function Ps(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function Ls(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function Ns(e,t,n,i,r,o,a){(function(){var e=gi();return!((e="Chrome"!=pi(e)?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e||vt&&Tt&&!(9<Tt))})()||ci()?e=C(e.o,e):(Os||(Os=new Ge((function(e,t){!function(e,t){((window.gapi||{}).client||{}).request?e():(s[js]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){ps(e,null,t,void 0)}(bs(re(Fs,{onload:js})),(function(){t(Error("CORS_UNSUPPORTED"))})))}(e,t)}))),e=C(e.m,e)),e(t,n,i,r,o,a)}Ts.prototype.R=function(){return this.b},Ts.prototype.o=function(e,t,n,i,r,o){if(ci()&&(void 0===s.fetch||void 0===s.Headers||void 0===s.Request))throw new Qi("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var l=new Xo(this.f);if(o){l.g=Math.max(0,o);var c=setTimeout((function(){l.dispatchEvent("timeout")}),o)}sn(l,"complete",(function(){c&&clearTimeout(c);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return Wo(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(n){e=null}t&&t(e)})),an(l,"ready",(function(){c&&clearTimeout(c),pt(this)})),an(l,"timeout",(function(){c&&clearTimeout(c),pt(this),t&&t(null)})),function(e,t,n,i,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.O=n,e.I=!1,e.c=!0,e.a=e.B?e.B.a():Eo.a(),e.w=function(e){return e.c||(e.c=e.b())}(e.B?e.B:Eo),e.a.onreadystatechange=C(e.Lb,e);try{Wo(e.b,cs(e,"Opening Xhr")),e.J=!0,e.a.open(n,String(t),!0),e.J=!1}catch(l){return Wo(e.b,cs(e,"Error opening Xhr: "+l.message)),void ns(e,l)}t=i||"";var o=new pn(e.headers);r&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(m(e)||a(e))j(e,t,void 0);else for(var n=hn(e),i=dn(e),r=i.length,o=0;o<r;o++)t.call(void 0,i[o],n&&n[o],e)}(r,(function(e,t){o.set(t,e)})),r=function(e){e:{for(var t=ts,n=e.length,i=a(e)?e.split(""):e,r=0;r<n;r++)if(r in i&&t.call(void 0,i[r],r,e)){t=r;break e}t=-1}return 0>t?null:a(e)?e.charAt(t):e[t]}(o.X()),i=s.FormData&&t instanceof s.FormData,!Y(es,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.P&&(e.a.withCredentials=e.P);try{ss(e),0<e.g&&(e.v=function(e){return vt&&kt(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),Wo(e.b,cs(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.v)),e.v?(e.a.timeout=e.g,e.a.ontimeout=C(e.Ia,e)):e.o=cn(e.Ia,e.g,e)),Wo(e.b,cs(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(l){Wo(e.b,cs(e,"Send error: "+l.message)),ns(e,l)}}(l,e,n,i,r)};var Fs=new X(ee,"https://apis.google.com/js/client.js?onload=%{onload}"),js="__fcb"+Math.floor(1e6*Math.random()).toString();function Vs(e){if(!a(e=e.email)||!oi.test(e))throw new Qi("invalid-email")}function Hs(e){"email"in e&&Vs(e)}
1function Ys(e){if(!e[ks])throw new Qi("internal-error")}function Bs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new Qi("internal-error")}else{if(!e.sessionInfo)throw new Qi("missing-verification-id");if(!e.code)throw new Qi("missing-verification-code")}}Ts.prototype.m=function(e,t,n,i,r){var o=this;Os.then((function(){window.gapi.client.setApiKey(o.c);var s=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:i,headers:r,authType:"none",callback:function(e){window.gapi.auth.setToken(s),t&&t(e)}})})).s((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Ts.prototype.ob=function(){return Sa(this,ma,{})},Ts.prototype.rb=function(e,t){return Sa(this,pa,{idToken:e,email:t})},Ts.prototype.sb=function(e,t){return Sa(this,fa,{idToken:e,password:t})};var Gs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function Ws(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new Qi("internal-error")}function Us(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&Fn(e=new An(e.postBody),"nonce")&&(t.nonce=e.get("nonce"))),t}function zs(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=To(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=To(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=To(e)):e.errorMessage&&(t=Da(e.errorMessage)),t)throw t;if(!e[ks])throw new Qi("internal-error")}function qs(e,t){return t.returnIdpCredential=!0,Sa(e,ga,t)}function Ks(e,t){return t.returnIdpCredential=!0,Sa(e,va,t)}function $s(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Sa(e,ya,t)}function Qs(e){if(!e.oobCode)throw new Qi("invalid-action-code")}(e=Ts.prototype).tb=function(e,t){var n={idToken:e},i=[];return z(Gs,(function(e,r){var o=t[r];null===o?i.push(e):r in t&&(n[r]=o)})),i.length&&(n.deleteAttribute=i),Sa(this,pa,n)},e.kb=function(e,t){return Q(e={requestType:"PASSWORD_RESET",email:e},t),Sa(this,la,e)},e.lb=function(e,t){return Q(e={requestType:"EMAIL_SIGNIN",email:e},t),Sa(this,sa,e)},e.jb=function(e,t){return Q(e={requestType:"VERIFY_EMAIL",idToken:e},t),Sa(this,aa,e)},e.Wa=function(e){return Sa(this,wa,e)},e.ab=function(e,t){return Sa(this,da,{oobCode:e,newPassword:t})},e.Ma=function(e){return Sa(this,Js,{oobCode:e})},e.Ya=function(e){return Sa(this,Xs,{oobCode:e})};var Xs={endpoint:"setAccountInfo",D:Qs,fa:"email",F:!0},Js={endpoint:"resetPassword",D:Qs,K:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t)throw new Qi("internal-error")},F:!0},Zs={endpoint:"signupNewUser",D:function(e){if(Vs(e),!e.password)throw new Qi("weak-password")},K:Ys,T:!0,F:!0},ea={endpoint:"createAuthUri",F:!0},ta={endpoint:"deleteAccount",V:["idToken"]},na={endpoint:"setAccountInfo",V:["idToken","deleteProvider"],D:function(e){if(!f(e.deleteProvider))throw new Qi("internal-error")}},ia={endpoint:"emailLinkSignin",V:["email","oobCode"],D:Vs,K:Ys,T:!0,F:!0},ra={endpoint:"emailLinkSignin",V:["idToken","email","oobCode"],D:Vs,K:Ys,T:!0},oa={endpoint:"getAccountInfo"},sa={endpoint:"getOobConfirmationCode",V:["requestType"],D:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new Qi("internal-error");Vs(e)},fa:"email",F:!0},aa={endpoint:"getOobConfirmationCode",V:["idToken","requestType"],D:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new Qi("internal-error")},fa:"email",F:!0},la={endpoint:"getOobConfirmationCode",V:["requestType"],D:function(e){if("PASSWORD_RESET"!=e.requestType)throw new Qi("internal-error");Vs(e)},fa:"email",F:!0},ca={wb:!0,endpoint:"getProjectConfig",Kb:"GET"},ua={wb:!0,endpoint:"getRecaptchaParam",Kb:"GET",K:function(e){if(!e.recaptchaSiteKey)throw new Qi("internal-error")}},da={endpoint:"resetPassword",D:Qs,fa:"email",F:!0},ha={endpoint:"sendVerificationCode",V:["phoneNumber","recaptchaToken"],fa:"sessionInfo",F:!0},pa={endpoint:"setAccountInfo",V:["idToken"],D:Hs,T:!0},fa={endpoint:"setAccountInfo",V:["idToken"],D:function(e){if(Hs(e),!e.password)throw new Qi("weak-password")},K:Ys,T:!0},ma={endpoint:"signupNewUser",K:Ys,T:!0,F:!0},ga={endpoint:"verifyAssertion",D:Ws,Ra:Us,K:zs,T:!0,F:!0},ya={endpoint:"verifyAssertion",D:Ws,Ra:Us,K:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new Qi("user-not-found");if(e.errorMessage)throw Da(e.errorMessage);
1if(!e[ks])throw new Qi("internal-error")},T:!0,F:!0},va={endpoint:"verifyAssertion",D:function(e){if(Ws(e),!e.idToken)throw new Qi("internal-error")},Ra:Us,K:zs,T:!0},_a={endpoint:"verifyCustomToken",D:function(e){if(!e.token)throw new Qi("invalid-custom-token")},K:Ys,T:!0,F:!0},ba={endpoint:"verifyPassword",D:function(e){if(Vs(e),!e.password)throw new Qi("wrong-password")},K:Ys,T:!0,F:!0},wa={endpoint:"verifyPhoneNumber",D:Bs,K:Ys,F:!0},Ca={endpoint:"verifyPhoneNumber",D:function(e){if(!e.idToken)throw new Qi("internal-error");Bs(e)},K:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",To(e);Ys(e)}},Ea={Yb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",D:Bs,K:Ys,F:!0};function Sa(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var i=e[t[n]];if(null==i||""===i)return!1}return!0}(n,t.V))return Xe(new Qi("internal-error"));var i,r=t.Kb||"POST";return Qe(n).then(t.D).then((function(){return t.T&&(n.returnSecureToken=!0),t.F&&e.b&&void 0===n.tenantId&&(n.tenantId=e.b),function(e,t,n,i,r,o){var s=En(e.h+t);wn(s,"key",e.c),o&&wn(s,"cb",S().toString());var a="GET"==n;if(a)for(var l in i)i.hasOwnProperty(l)&&wn(s,l,i[l]);return new Ge((function(t,o){Ns(e,s.toString(),(function(e){e?e.error?o(xa(e,r||{})):t(e):o(new Qi("network-request-failed"))}),n,a?void 0:qn(Si(i)),e.a,e.i.get())}))}(e,t.endpoint,r,n,t.Yb,t.wb||!1)})).then((function(e){return i=e,t.Ra?t.Ra(n,i):i})).then(t.K).then((function(){if(!t.fa)return i;if(!(t.fa in i))throw new Qi("internal-error");return i[t.fa]}))}function Da(e){return xa({error:{errors:[{message:e}],code:400,message:e}})}function xa(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new Qi(i[n]):null)return n;for(var r in n=e.error&&e.error.message||"",Q(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,i)if(0===n.indexOf(r))return new Qi(i[r],t);return!t&&e&&(t=Ei(e)),new Qi("internal-error",t)}function Ta(e){this.b=e,this.a=null,this.gb=function(e){return(Ra||(Ra=new Ge((function(e,t){function n(){Oi(),yi("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Oi(),t(Error("Network Error"))},timeout:ka.get()})}if(yi("gapi.iframes.Iframe"))e();else if(yi("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();s[i]=function(){yi("gapi.load")?n():t(Error("Network Error"))},Qe(bs(i=re(Oa,{onload:i}))).s((function(){t(Error("Network Error"))}))}})).s((function(e){throw Ra=null,e})))).then((function(){return new Ge((function(t,n){yi("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:yi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(i){function r(){clearTimeout(o),t()}e.a=i,e.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),Ia.get());i.ping(r).then(r,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var Oa=new X(ee,"https://apis.google.com/js/api.js?onload=%{onload}"),ka=new ki(3e4,6e4),Ia=new ki(5e3,15e3),Ra=null;function Ma(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=Sn(this.i,"/__/auth/iframe"),wn(this.a,"apiKey",this.g),wn(this.a,"appName",this.h),this.b=null,this.c=[]}function Aa(e,t,n,i,r){this.o=e,this.m=t,this.c=n,this.u=i,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function Pa(e){try{return LS.a.app(e).auth().Ca()}catch(t){return[]}}function La(e,t,n,i,r){this.u=e,this.f=t,this.b=n,this.c=i||null,this.h=r||null,this.m=this.o=this.v=null,this.g=[],this.l=this.a=null}function Na(e){var t=Zn();return function(e){return Sa(e,ca,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=En(t),i=n.f;n=n.b;for(var r=0;r<e.length;r++){var o=e[r],s=n,a=i;if(0==o.indexOf("chrome-extension://")?s=En(o).b==s&&"chrome-extension"==a:"http"!=a&&"https"!=a?s=!1:ri.test(o)?s=s==o:(o=o.split(".").join("\\."),s=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(s)),s){e=!0;break e}}e=!1}if(!e)throw new Do(Zn())}))}function Fa(e){return e.l?e.l:(e.l=si().then((function(){if(!e.o){var t=e.c,n=e.h,i=Pa(e.b),r=new Ma(e.u,e.f,e.b);r.f=t,r.b=n,r.c=U(i||[]),e.o=r.toString()}e.i=new Ta(e.o),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.gb.then((function(){e.a.register("authEvent",t,yi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.i,(function(t){var n={};if(t&&t.authEvent){var i=!1;for(t=wo(t.authEvent),n=0;n<e.g.length;n++)i=e.g[n](t)||i;return(n={}).status=i?"ACK":"ERROR",Qe(n)}return n.status="ERROR",Qe(n)}))}(e)})),e.l)}function ja(e){return e.m||(e.v=e.c?mi(e.c,Pa(e.b)):null,e.m=new Ts(e.f,Tr(e.h),e.v)),e.m}function Va(e,t,n,i,r,o,s,a,l,c,u){return(e=new Aa(e,t,n,i,r)).l=o,e.g=s,e.i=a,e.b=K(l||null),e.f=c,e.nb(u).toString()}
1function Ha(e){if(this.a=e||LS.a.INTERNAL.reactNative&&LS.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new Qi("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Ya(e){this.b=e,this.a={},this.f=C(this.c,this)}Ma.prototype.toString=function(){return this.f?wn(this.a,"v",this.f):Nn(this.a.a,"v"),this.b?wn(this.a,"eid",this.b):Nn(this.a.a,"eid"),this.c.length?wn(this.a,"fw",this.c.join(",")):Nn(this.a.a,"fw"),this.a.toString()},Aa.prototype.nb=function(e){return this.h=e,this},Aa.prototype.toString=function(){var e=Sn(this.o,"/__/auth/handler");if(wn(e,"apiKey",this.m),wn(e,"appName",this.c),wn(e,"authType",this.u),this.a.isOAuthProvider){var t=this.a;try{var n=LS.a.app(this.c).auth().ha()}catch(a){n=null}for(var i in t.bb=n,wn(e,"providerId",this.a.providerId),n=Si((t=this.a).zb))n[i]=n[i].toString();i=t.Fc,n=K(n);for(var r=0;r<i.length;r++){var o=i[r];o in n&&delete n[o]}t.eb&&t.bb&&!n[t.eb]&&(n[t.eb]=t.bb),q(n)||wn(e,"customParameters",Ei(n))}if("function"==typeof this.a.Hb&&(t=this.a.Hb()).length&&wn(e,"scopes",t.join(",")),this.l?wn(e,"redirectUrl",this.l):Nn(e.a,"redirectUrl"),this.g?wn(e,"eventId",this.g):Nn(e.a,"eventId"),this.i?wn(e,"v",this.i):Nn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Cn(e,s)&&wn(e,s,this.b[s]);return this.h?wn(e,"tid",this.h):Nn(e.a,"tid"),this.f?wn(e,"eid",this.f):Nn(e.a,"eid"),(s=Pa(this.c)).length&&wn(e,"fw",s.join(",")),e.toString()},(e=La.prototype).Fb=function(e,t,n){var i=new Qi("popup-closed-by-user"),r=new Qi("web-storage-unsupported"),o=this,s=!1;return this.ia().then((function(){(function(e){var t={type:"webStorageSupport"};return Fa(e).then((function(){return function(e,t){return e.gb.then((function(){return new Ge((function(n){e.a.send(t.type,t,n,yi("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.i,t)})).then((function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(e&&ni(e),t(r),s=!0)}))})).s((function(){})).then((function(){if(!s)return function(e){return new Ge((function(t){return function n(){un(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!s)return un(n).then((function(){t(i)}))}))},e.Ob=function(){var e=gi();return!Ci(e)&&!Ti(e)},e.Jb=function(){return!1},e.Db=function(e,t,n,i,r,o,s,a){if(!e)return Xe(new Qi("popup-blocked"));if(s&&!Ci())return this.ia().s((function(t){ni(e),r(t)})),i(),Qe();this.a||(this.a=Na(ja(this)));var l=this;return this.a.then((function(){var t=l.ia().s((function(t){throw ni(e),r(t),t}));return i(),t})).then((function(){_o(n),s||ei(Va(l.u,l.f,l.b,t,n,null,o,l.c,void 0,l.h,a),e)})).s((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},e.Eb=function(e,t,n,i){this.a||(this.a=Na(ja(this)));var r=this;return this.a.then((function(){_o(t),ei(Va(r.u,r.f,r.b,e,t,Zn(),n,r.c,void 0,r.h,i))})).s((function(e){throw"auth/network-request-failed"==e.code&&(r.a=null),e}))},e.ia=function(){var e=this;return Fa(this).then((function(){return e.i.gb})).s((function(){throw e.a=null,new Qi("network-request-failed")}))},e.Rb=function(){return!0},e.Aa=function(e){this.g.push(e)},e.Na=function(e){G(this.g,(function(t){return t==e}))},(e=Ha.prototype).get=function(e){return Qe(this.a.getItem(e)).then((function(e){return e&&Di(e)}))},e.set=function(e,t){return Qe(this.a.setItem(e,Ei(t)))},e.S=function(e){return Qe(this.a.removeItem(e))},e.$=function(){},e.ea=function(){};var Ba,Ga=[];function Wa(e,t,n){q(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function Ua(e){this.a=e}function za(e){this.c=e,this.b=!1,this.a=[]}function qa(e,t,n,i){var r,o,s,a,l=n||{},c=null;if(e.b)return Xe(Error("connection_unavailable"));var u=i?800:50,d="undefined"!=typeof MessageChannel?new MessageChannel:null;return new Ge((function(n,i){d?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),s=setTimeout((function(){i(Error("unsupported_event"))}),u),e.a.push(c={messageChannel:d,onMessage:o=function(e){e.data.eventId===r&&("ack"===e.data.status?(clearTimeout(s),a=setTimeout((function(){i(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(a),void 0!==e.data.response?n(e.data.response):i(Error("unknown_error"))):(clearTimeout(s),clearTimeout(a),i(Error("invalid_response"))))}}),d.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:r,data:l},[d.port2])):i(Error("connection_unavailable"))})).then((function(t){return Ka(e,c),t})).s((function(t){throw Ka(e,c),t}))}function Ka(e,t){if(t){var n=t.messageChannel;n&&(n.port1.removeEventListener("message",t.onMessage),n.port1.close()),G(e.a,(function(e){return e==t}))}}function $a(){if(!Xa())throw new Qi("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=s.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var e=this;ci()&&self?(this.l=function(){var e=ci()?self:null;if(j(Ga,(function(n){n.b==e&&(t=n)})),!t){var t=new Ya(e);Ga.push(t)}return t}(),Wa(this.l,"keyChanged",(function(t,n){return nl(e).then((function(t){return 0<t.length&&j(e.a,(function(e){e(t)})),{keyProcessed:Y(t,n.key)}}))})),Wa(this.l,"ping",(function(){return Qe(["keyChanged"])}))):function(){var e=s.navigator;return e&&e.serviceWorker?Qe().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).s((function(){return null})):Qe(null)}().then((function(t){(e.h=t)&&(e.g=new za(new Ua(t)),qa(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&Y(t[0].value,"keyChanged")&&(e.o=!0)})).s((function(){})))}))}function Qa(e){return e.m||(e.m=function e(t){return new Ge((function(n,i){var r=t.u.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(t){}i(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){i(t)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(r):function(e){return new Ge((function(t,n){var i=e.u.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){t()},i.onerror=function(e){n(Error(e.target.error))}}))}(t).then((function(){return e(t)})).then((function(e){n(e)})).s((function(e){i(e)}))}}))}(e)),e.m}function Xa(){try{return!!s.indexedDB}catch(gt){return!1}}function Ja(e){return e.objectStore("firebaseLocalStorage")}function Za(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function el(e){return new Ge((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function tl(e,t){return e.g&&e.h&&function(){var e=s.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?qa(e.g,"keyChanged",{key:t},e.o).then((function(){})).s((function(){})):Qe()}function nl(e){return Qa(e).then((function(e){var t=Ja(Za(e,!1));return t.getAll?el(t.getAll()):new Ge((function(e,n){var i=[],r=t.openCursor();r.onsuccess=function(t){(t=t.target.result)?(i.push(t.value),t.continue()):e(i)},r.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},i=[];if(0==e.b){for(i=0;i<t.length;i++)n[t[i].fbase_key]=t[i].value;i=function e(t,n){var i,r=[];for(i in t)i in n?typeof t[i]!=typeof n[i]?r.push(i):"object"==typeof t[i]&&null!=t[i]&&null!=n[i]?0<e(t[i],n[i]).length&&r.push(i):t[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in t||r.push(i);return r}(e.c,n),e.c=n}return i}))}function il(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function rl(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Qe().then((function(){if(Xa()){var e=xi(),i="__sak"+e;return Ba||(Ba=new $a),(n=Ba).set(i,e).then((function(){return n.get(i)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.S(i)})).then((function(){return n})).s((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.$((function(e){j(t.a,(function(t){t(e)}))})),e}))}function ol(){this.a={},this.type="inMemory"}function sl(){if(!function(){var e="Node"==ui();
1if(!(e=al()||e&&LS.a.INTERNAL.node&&LS.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==ui())throw new Qi("internal-error","The LocalStorage compatibility library was not found.");throw new Qi("web-storage-unsupported")}this.a=al()||LS.a.INTERNAL.node.localStorage,this.type="localStorage"}function al(){try{var e=s.localStorage,t=xi();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function ll(){this.type="nullStorage"}function cl(){if(!function(){var e="Node"==ui();if(!(e=ul()||e&&LS.a.INTERNAL.node&&LS.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==ui())throw new Qi("internal-error","The SessionStorage compatibility library was not found.");throw new Qi("web-storage-unsupported")}this.a=ul()||LS.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function ul(){try{var e=s.sessionStorage,t=xi();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function dl(){var e={};e.Browser=fl,e.Node=ml,e.ReactNative=gl,e.Worker=yl,this.a=e[ui()]}Ya.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,i=this.a[t];if(i&&0<i.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var r=[];j(i,(function(t){r.push(Qe().then((function(){return t(e.origin,e.data.data)})))})),Ze(r).then((function(i){var r=[];j(i,(function(e){r.push({fulfilled:e.Gb,value:e.value,reason:e.reason?e.reason.message:void 0})})),j(r,(function(e){for(var t in e)void 0===e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:r})}))}},Ua.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},za.prototype.close=function(){for(;0<this.a.length;)Ka(this,this.a[0]);this.b=!0},(e=$a.prototype).set=function(e,t){var n,i=!1,r=this;return Qa(this).then((function(t){return el((t=Ja(Za(n=t,!0))).get(e))})).then((function(o){var s=Ja(Za(n,!0));return o?(o.value=t,el(s.put(o))):(r.b++,i=!0,(o={}).fbase_key=e,o.value=t,el(s.add(o)))})).then((function(){return r.c[e]=t,tl(r,e)})).ka((function(){i&&r.b--}))},e.get=function(e){return Qa(this).then((function(t){return el(Ja(Za(t,!1)).get(e))})).then((function(e){return e&&e.value}))},e.S=function(e){var t=!1,n=this;return Qa(this).then((function(i){return t=!0,n.b++,el(Ja(Za(i,!0)).delete(e))})).then((function(){return delete n.c[e],tl(n,e)})).ka((function(){t&&n.b--}))},e.$=function(e){0==this.a.length&&function(e){il(e),function t(){e.f=setTimeout((function(){e.i=nl(e).then((function(t){0<t.length&&j(e.a,(function(e){e(t)}))})).then((function(){t()})).s((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},e.ea=function(e){G(this.a,(function(t){return t==e})),0==this.a.length&&il(this)},(e=rl.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},e.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},e.S=function(e){return this.b.then((function(t){return t.S(e)}))},e.$=function(e){this.a.push(e)},e.ea=function(e){G(this.a,(function(t){return t==e}))},(e=ol.prototype).get=function(e){return Qe(this.a[e])},e.set=function(e,t){return this.a[e]=t,Qe()},e.S=function(e){return delete this.a[e],Qe()},e.$=function(){},e.ea=function(){},(e=sl.prototype).get=function(e){var t=this;return Qe().then((function(){return Di(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return Qe().then((function(){var i=Ei(t);null===i?n.S(e):n.a.setItem(e,i)}))},e.S=function(e){var t=this;return Qe().then((function(){t.a.removeItem(e)}))},e.$=function(e){s.window&&zt(s.window,"storage",e)},e.ea=function(e){s.window&&$t(s.window,"storage",e)},(e=ll.prototype).get=function(){return Qe(null)},e.set=function(){return Qe()},e.S=function(){return Qe()},e.$=function(){},e.ea=function(){},(e=cl.prototype).get=function(e){var t=this;return Qe().then((function(){return Di(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return Qe().then((function(){var i=Ei(t);null===i?n.S(e):n.a.setItem(e,i)}))},e.S=function(e){var t=this;return Qe().then((function(){t.a.removeItem(e)}))},e.$=function(){},e.ea=function(){};var hl,pl,fl={C:sl,Ta:cl},ml={C:sl,Ta:cl},gl={C:Ha,Ta:ll},yl={C:sl,Ta:ll},vl={ad:"local",NONE:"none",cd:"session"};function _l(){var e=!(Ti(gi())||!li()),t=Ci(),n=vi();this.m=e,this.h=t,this.l=n,this.a={},hl||(hl=new dl),e=hl;try{this.g=!Jn()&&Mi()||!s.indexedDB?new e.a.C:new rl(ci()?new ol:new e.a.C)}catch(i){this.g=new ol,this.h=!0}try{this.i=new e.a.Ta}catch(i){this.i=new ol}this.u=new ol,this.f=C(this.Pb,this),this.b={}}function bl(){return pl||(pl=new _l),pl}function wl(e,t){switch(t){case"session":return e.i;case"none":return e.u;default:return e.g}}function Cl(e,t){return"firebase:"+e.name+(t?":"+t:"")}function El(e,t,n){return n=Cl(t,n),"local"==t.C&&(e.b[n]=null),wl(e,t.C).S(n)}function Sl(e){e.c&&(clearInterval(e.c),e.c=null)}function Dl(e){this.a=e,this.b=bl()}(e=_l.prototype).get=function(e,t){return wl(this,e.C).get(Cl(e,t))},e.set=function(e,t,n){var i=Cl(e,n),r=this,o=wl(this,e.C);return o.set(i,t).then((function(){return o.get(i)})).then((function(t){"local"==e.C&&(r.b[i]=t)}))},e.addListener=function(e,t,n){e=Cl(e,t),this.l&&(this.b[e]=s.localStorage.getItem(e)),q(this.a)&&(wl(this,"local").$(this.f),this.h||(Jn()||!Mi())&&s.indexedDB||!this.l||function(e){
1Sl(e),e.c=setInterval((function(){for(var t in e.a){var n=s.localStorage.getItem(t),i=e.b[t];n!=i&&(e.b[t]=n,n=new Lt({type:"storage",key:t,target:window,oldValue:i,newValue:n,a:!0}),e.Pb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},e.removeListener=function(e,t,n){e=Cl(e,t),this.a[e]&&(G(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),q(this.a)&&(wl(this,"local").ea(this.f),Sl(this))},e.Pb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=s.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.$a(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?wl(this,"local").ea(this.f):Sl(this),this.m)if(n=s.localStorage.getItem(t),(i=e.a.newValue)!==n)null!==i?s.localStorage.setItem(t,i):s.localStorage.removeItem(t);else if(this.b[t]===i&&void 0===e.a.a)return;var o=this;n=function(){void 0===e.a.a&&o.b[t]===s.localStorage.getItem(t)||(o.b[t]=s.localStorage.getItem(t),o.$a(t))},vt&&Tt&&10==Tt&&s.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else j(e,C(this.$a,this))},e.$a=function(e){this.a[e]&&j(this.a[e],(function(e){e()}))};var xl,Tl={name:"authEvent",C:"local"};function Ol(){this.a=bl()}function kl(e,t){this.b=Il,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0!==xl||(xl=s.Int32Array?new Int32Array(Fl):Fl),this.reset()}D(kl,(function(){this.b=-1}));for(var Il=64,Rl=Il-1,Ml=[],Al=0;Al<Rl;Al++)Ml[Al]=0;var Pl=W(128,Ml);function Ll(e){for(var t=e.f,n=e.l,i=0,r=0;r<t.length;)n[i++]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],r=4*i;for(t=16;64>t;t++){var o=(0|n[t-16])+(((r=0|n[t-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,s=(0|n[t-7])+(((i=0|n[t-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[t]=o+s|0}i=0|e.a[0],r=0|e.a[1];var a=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var h=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&a^r&a)|0;s=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((s=(s=c&u^~c&d)+(0|xl[t])|0)+(0|n[t])|0)|0,o=d,d=u,u=c,c=l+s|0,l=a,a=r,r=i,i=s+h|0}e.a[0]=e.a[0]+i|0,e.a[1]=e.a[1]+r|0,e.a[2]=e.a[2]+a|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+o|0}function Nl(e,t,n){void 0===n&&(n=t.length);var i=0,r=e.c;if(a(t))for(;i<n;)e.f[r++]=t.charCodeAt(i++),r==e.b&&(Ll(e),r=0);else{if(!m(t))throw Error("message must be string or array");for(;i<n;){var o=t[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[r++]=o,r==e.b&&(Ll(e),r=0)}}e.c=r,e.g+=n}kl.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):U(this.h)};var Fl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function jl(){kl.call(this,8,Vl)}D(jl,kl);var Vl=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Hl(e,t,n,i,r){this.u=e,this.i=t,this.l=n,this.m=i||null,this.o=r||null,this.h=t+":"+n,this.v=new Ol,this.g=new Dl(this.h),this.f=null,this.b=[],this.a=this.c=null}function Yl(e){return new Qi("invalid-cordova-configuration",e)}function Bl(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(i){}}function Gl(e){return e.f||(e.f=e.ia().then((function(){return new Ge((function(t){e.Aa((function n(i){return t(i),e.Na(n),!1})),function(e){function t(t){i=!0,r&&r.cancel(),Wl(e).then((function(i){var r=n;if(i&&t&&t.url){var o=null;-1!=(r=Yr(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Di(Cn(o=En(r),"firebaseError")||null))?Xi(o):null)?new bo(i.
1c,i.b,null,null,o,null,i.R()):new bo(i.c,i.b,r,i.f,null,null,i.R())),r=o||n}Bl(e,r)}))}var n=new bo("unknown",null,null,null,new Qi("no-auth-event")),i=!1,r=un(500).then((function(){return Wl(e).then((function(){i||Bl(e,n)}))})),o=s.handleOpenURL;s.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(yi("BuildInfo.packageName",s).toLowerCase()+"://")&&t({url:e}),"function"==typeof o)try{o(e)}catch(n){console.error(n)}},So||(So=new Co),function(e){var t=So;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=yi("universalLinks.subscribe",s))&&e(null,t.b))}(t)}(e)}))}))),e.f}function Wl(e){var t=null;return function(e){return e.b.get(Tl,e.a).then((function(e){return wo(e)}))}(e.g).then((function(n){return t=n,El((n=e.g).b,Tl,n.a)})).then((function(){return t}))}function Ul(e){this.a=e,this.b=bl()}(e=Hl.prototype).ia=function(){return this.Da?this.Da:this.Da=(ai(void 0)?si().then((function(){return new Ge((function(e,t){var n=s.document,i=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(i),e()}),!1)}))})):Xe(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof yi("universalLinks.subscribe",s))throw Yl("cordova-universal-links-plugin-fix is not installed");if(void 0===yi("BuildInfo.packageName",s))throw Yl("cordova-plugin-buildinfo is not installed");if("function"!=typeof yi("cordova.plugins.browsertab.openUrl",s))throw Yl("cordova-plugin-browsertab is not installed");if("function"!=typeof yi("cordova.InAppBrowser.open",s))throw Yl("cordova-plugin-inappbrowser is not installed")}),(function(){throw new Qi("cordova-not-ready")}))},e.Fb=function(e,t){return t(new Qi("operation-not-supported-in-this-environment")),Qe()},e.Db=function(){return Xe(new Qi("operation-not-supported-in-this-environment"))},e.Rb=function(){return!1},e.Ob=function(){return!0},e.Jb=function(){return!0},e.Eb=function(e,t,n,i){if(this.c)return Xe(new Qi("redirect-operation-pending"));var r=this,o=s.document,a=null,l=null,c=null,u=null;return this.c=Qe().then((function(){return _o(t),Gl(r)})).then((function(){return function(e,t,n,i,r){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new bo(t,i,null,o,new Qi("no-auth-event"),null,r),l=yi("BuildInfo.packageName",s);if("string"!=typeof l)throw new Qi("invalid-cordova-configuration");var c=yi("BuildInfo.displayName",s),u={};if(gi().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=l;else{if(!gi().toLowerCase().match(/android/))return Xe(new Qi("operation-not-supported-in-this-environment"));u.apn=l}c&&(u.appDisplayName=c),o=function(e){var t=new jl;Nl(t,e),e=[];var n=8*t.g;Nl(t,Pl,56>t.c?56-t.c:t.b-(t.c-56));for(var i=63;56<=i;i--)t.f[i]=255&n,n/=256;for(Ll(t),i=n=0;i<t.i;i++)for(var r=24;0<=r;r-=8)e[n++]=t.a[i]>>r&255;return function(e){return V(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}(o),u.sessionId=o;var d=Va(e.u,e.i,e.l,t,n,null,i,e.m,u,e.o,r);return e.ia().then((function(){var t=e.h;return e.v.a.set(Tl,a.A(),t)})).then((function(){var t=yi("cordova.plugins.browsertab.isAvailable",s);if("function"!=typeof t)throw new Qi("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!=typeof(n=yi("cordova.plugins.browsertab.openUrl",s)))throw new Qi("invalid-cordova-configuration");n(d)}else{if("function"!=typeof(n=yi("cordova.InAppBrowser.open",s)))throw new Qi("invalid-cordova-configuration");t=gi(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,e,t,n,i)})).then((function(){return new Ge((function(e,t){l=function(){var t=yi("cordova.plugins.browsertab.close",s);return e(),"function"==typeof t&&t(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Aa(l),u=function(){Ii()&&c()},o.addEventListener("resume",c=function(){a||(a=un(2e3).then((function(){t(new Qi("redirect-cancelled-by-user"))})))},!1),gi().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",u,!1)})).s((function(e){return Wl(r).then((function(){throw e}))}))})).ka((function(){c&&o.removeEventListener("resume",c,!1),u&&o.removeEventListener("visibilitychange",u,!1),a&&a.cancel(),l&&r.Na(l),r.c=null}))},e.Aa=function(e){this.b.push(e),Gl(this).s((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new bo("unknown",null,null,null,new Qi("no-auth-event")),e(t))}))},e.Na=function(e){G(this.b,(function(t){return t==e}))};var zl={name:"pendingRedirect",C:"session"};function ql(e){return El(e.b,zl,e.a)}function Kl(e,t,n){this.i={},this.v=0,this.B=e,this.u=t,this.m=n,this.h=[],this.f=!1,this.l=C(this.o,this),this.b=new lc,this.w=new pc,this.g=new Ul(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.w,this.c.linkViaPopup=this.w,this.c.reauthViaPopup=this.w,this.a=$l(this.B,this.u,this.m,Dr)}function $l(e,t,n,i){var r=LS.a.SDK_VERSION||null;return ai()?new Hl(e,t,n,r,i):new La(e,t,n,r,i)}function Ql(e){e.f||(e.f=!0,e.a.Aa(e.l));var t=e.a;return e.a.ia().s((function(n){throw e.a==t&&e.reset(),n}))}function Xl(e){e.a.Ob()&&Ql(e).s((function(t){var n=new bo("unknown",null,null,null,new Qi("operation-not-supported-in-this-environment"));ic(t)&&e.o(n)})),e.a.Jb()||cc(e.b)}function Jl(e,t){Y(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(zl,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?ql(e.g).then((function(){Ql(e).s((function(t){var n=new bo("unknown",null,null,null,new Qi("operation-not-supported-in-this-environment"));ic(t)&&e.o(n)}))})):Xl(e)})).s((function(){Xl(e)}))}function Zl(e,t){G(e.h,(function(e){return e==t}))}Kl.prototype.reset=function(){this.f=!1,this.a.Na(this.l),this.a=$l(this.B,this.u,this.m),this.i={}},Kl.prototype.o=function(e){if(!e)throw new Qi("invalid-auth-event");
1if(6e5<=S()-this.v&&(this.i={},this.v=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.xb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,i),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.v=S())),t=!0;break}}return cc(this.b),t};var ec=new ki(2e3,1e4),tc=new ki(3e4,6e4);function nc(e,t,n,i,r,o,s){return e.a.Db(t,n,i,(function(){e.f||(e.f=!0,e.a.Aa(e.l))}),(function(){e.reset()}),r,o,s)}function ic(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function rc(e,t,n,i,r){var o;return function(e){return e.b.set(zl,"pending",e.a)}(e.g).then((function(){return e.a.Eb(t,n,i,r).s((function(t){if(ic(t))throw new Qi("operation-not-supported-in-this-environment");return o=t,ql(e.g).then((function(){throw o}))})).then((function(){return e.a.Rb()?new Ge((function(){})):ql(e.g).then((function(){return e.oa()})).then((function(){})).s((function(){}))}))}))}function oc(e,t,n,i,r){return e.a.Fb(i,(function(e){t.ja(n,null,e,r)}),ec.get())}Kl.prototype.oa=function(){return this.b.oa()};var sc={};function ac(e,t,n){var i=t+":"+n;return sc[i]||(sc[i]=new Kl(e,t,n)),sc[i]}function lc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function cc(e){e.g||(e.g=!0,hc(e,!1,null,null))}function uc(e){e.g&&!e.i&&hc(e,!1,null,null)}function dc(e,t){if(e.b=function(){return Qe(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function hc(e,t,n,i){t?i?function(e,t){if(e.b=function(){return Xe(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,i):dc(e,n):dc(e,{user:null}),e.f=[],e.c=[]}function pc(){}function fc(){this.vb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.vb},set:function(e){this.vb=e},enumerable:!1})}function mc(e,t){this.a=t,Fi(this,"verificationId",e)}function gc(e,t,n,i){return new go(e).Wa(t,n).then((function(e){return new mc(e,i)}))}function yc(e){var t=Sr(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new Qi("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");ji(this,{token:e,expirationTime:Ri(1e3*t.exp),authTime:Ri(1e3*t.auth_time),issuedAtTime:Ri(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,claims:t})}function vc(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function _c(e){this.f=e,this.b=this.a=null,this.c=0}function bc(e,t){var n=t[ks],i=t.refreshToken;t=wc(t.expiresIn),e.b=n,e.c=t,e.a=i}function wc(e){return S()+1e3*parseInt(e,10)}function Cc(e,t){this.a=e||null,this.b=t||null,ji(this,{lastSignInTime:Ri(t||null),creationTime:Ri(e||null)})}function Ec(e,t,n,i,r,o){ji(this,{uid:e,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:t})}function Sc(e,t){for(var n in Pt.call(this,e),t)this[n]=t[n]}function Dc(e,t,n){this.I=[],this.l=e.apiKey,this.m=e.appName,this.o=e.authDomain||null,e=LS.a.SDK_VERSION?mi(LS.a.SDK_VERSION):null,this.a=new Ts(this.l,Tr(Dr),e),this.b=new _c(this.a),Mc(this,t[ks]),bc(this.b,t),Fi(this,"refreshToken",this.b.a),Lc(this,n||{}),on.call(this),this.J=!1,this.o&&_i()&&(this.i=ac(this.o,this.l,this.m)),this.O=[],this.h=null,this.w=function(e){return new vc((function(){return e.G(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=e.b.c-S()-3e5;return 0<t?t:0}))}(this),this.W=C(this.Ja,this);var i=this;this.ga=null,this.xa=function(e){i.ua(e.g)},this.Z=null,this.P=[],this.wa=function(e){Tc(i,e.c)},this.Y=null}function xc(e,t){e.Z&&$t(e.Z,"languageCodeChanged",e.xa),(e.Z=t)&&zt(t,"languageCodeChanged",e.xa)}function Tc(e,t){e.P=t,Ls(e.a,LS.a.SDK_VERSION?mi(LS.a.SDK_VERSION,e.P):null)}function Oc(e,t){e.Y&&$t(e.Y,"frameworkChanged",e.wa),(e.Y=t)&&zt(t,"frameworkChanged",e.wa)}function kc(e){try{return LS.a.app(e.m).auth()}catch(t){throw new Qi("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Ic(e){e.B||e.w.b||(e.w.start(),$t(e,"tokenChanged",e.W),zt(e,"tokenChanged",e.W))}function Rc(e){$t(e,"tokenChanged",e.W),e.w.stop()}function Mc(e,t){e.ma=t,Fi(e,"_lat",t)}function Ac(e){for(var t=[],n=0;n<e.O.length;n++)t.push(e.O[n](e));return Ze(t).then((function(){return e}))}function Pc(e){e.i&&!e.J&&(e.J=!0,Jl(e.i,e))}function Lc(e,t){ji(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new Cc(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Nc(){}function Fc(e){return Qe().then((function(){if(e.B)throw new Qi("app-deleted")}))}function jc(e){return V(e.providerData,(function(e){return e.providerId}))}function Vc(e,t){t&&(Hc(e,t.providerId),e.providerData.push(t))}function Hc(e,t){G(e.providerData,(function(e){return e.providerId==t}))}function Yc(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Fi(e,t,n)}function Bc(e,t){e!=t&&(ji(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),Fi(e,"metadata",t.metadata?function(e){return new Cc(e.a,e.b)}(t.metadata):new Cc),j(t.providerData,(function(t){Vc(e,t)})),function(e,t){e.b=t.b,e.a=t.a,e.c=t.c}(e.b,t.b),Fi(e,"refreshToken",e.b.a))}function Gc(e){return e.G().then((function(t){var n=e.isAnonymous;return function(e,t){return Sa(e.a,oa,{idToken:t}).then(C(e.zc,e))}(e,t).then((function(){return n||Yc(e,"isAnonymous",!1),t}))}))}function Wc(e,t){t[ks]&&e.ma!=t[ks]&&(bc(e.b,t),e.dispatchEvent(new Sc("tokenChanged")),Mc(e,t[ks]),Yc(e,"refreshToken",e.b.a))}function Uc(e,t){return Gc(e).then((function(){if(Y(jc(e),t))return Ac(e).then((function(){throw new Qi("provider-already-linked")}))}))}
1function zc(e,t,n){return Vi({user:e,credential:vo(t),additionalUserInfo:t=Mr(t),operationType:n})}function qc(e,t){return Wc(e,t),e.reload().then((function(){return e}))}function Kc(e,t,n,i,r){if(!_i())return Xe(new Qi("operation-not-supported-in-this-environment"));if(e.h&&!r)return Xe(e.h);var o=Rr(n.providerId),s=xi(e.uid+":::"),a=null;(!Ci()||li())&&e.o&&n.isOAuthProvider&&(a=Va(e.o,e.l,e.m,t,n,null,s,LS.a.SDK_VERSION||null,null,null,e.tenantId));var l=ii(a,o&&o.sa,o&&o.ra);return i=i().then((function(){if(Qc(e),!r)return e.G().then((function(){}))})).then((function(){return nc(e.i,l,t,n,s,!!a,e.tenantId)})).then((function(){return new Ge((function(n,i){e.ja(t,null,new Qi("cancelled-popup-request"),e.g||null),e.f=n,e.v=i,e.g=s,e.c=oc(e.i,e,t,l,s)}))})).then((function(e){return l&&ni(l),e?Vi(e):null})).s((function(e){throw l&&ni(l),e})),Xc(e,i,r)}function $c(e,t,n,i,r){if(!_i())return Xe(new Qi("operation-not-supported-in-this-environment"));if(e.h&&!r)return Xe(e.h);var o=null,s=xi(e.uid+":::");return i=i().then((function(){if(Qc(e),!r)return e.G().then((function(){}))})).then((function(){return e.ca=s,Ac(e)})).then((function(t){return e.da&&(t=(t=e.da).b.set(eu,e.A(),t.a)),t})).then((function(){return rc(e.i,t,n,s,e.tenantId)})).s((function(t){if(o=t,e.da)return tu(e.da);throw o})).then((function(){if(o)throw o})),Xc(e,i,r)}function Qc(e){if(!e.i||!e.J){if(e.i&&!e.J)throw new Qi("internal-error");throw new Qi("auth-domain-config-required")}}function Xc(e,t,n){var i=function(e,t,n){return e.h&&!n?(t.cancel(),Xe(e.h)):t.s((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new Sc("userInvalidated")),e.h=t),t}))}(e,t,n);return e.I.push(i),i.ka((function(){B(e.I,i)})),i}function Jc(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!(e.stsTokenManager&&e.stsTokenManager.accessToken&&e.stsTokenManager.expirationTime))return null;n[ks]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null,n.expiresIn=(e.stsTokenManager.expirationTime-S())/1e3;var i=new Dc(t,n,e);return e.providerData&&j(e.providerData,(function(e){e&&Vc(i,Vi(e))})),e.redirectEventId&&(i.ca=e.redirectEventId),i}function Zc(e){this.a=e,this.b=bl()}lc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},lc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,i=e.b,r=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!r&&!o),"unknown"!=n||r||o?e.a?(hc(this,!0,null,e.a),Qe()):t.Ba(n,i)?function(e,t,n){n=n.Ba(t.c,t.b);var i=t.g,r=t.f,o=t.i,s=t.R(),a=!!t.c.match(/Redirect$/);n(i,r,s,o).then((function(t){hc(e,a,t,null)})).s((function(t){hc(e,a,null,t)}))}(this,e,t):Xe(new Qi("invalid-auth-event")):(hc(this,!1,null,null),Qe())}else Xe(new Qi("invalid-auth-event"))},lc.prototype.oa=function(){var e=this;return new Ge((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new Qi("timeout");e.a&&e.a.cancel(),e.a=un(tc.get()).then((function(){e.b||(e.g=!0,hc(e,!0,null,t))}))}(e))}))},pc.prototype.h=function(e,t){if(e){var n=e.c,i=e.b;e.a?(t.ja(e.c,null,e.a,e.b),Qe()):t.Ba(n,i)?function(e,t){var n=e.b,i=e.c;t.Ba(i,n)(e.g,e.f,e.R(),e.i).then((function(e){t.ja(i,e,null,n)})).s((function(e){t.ja(i,null,e,n)}))}(e,t):Xe(new Qi("invalid-auth-event"))}else Xe(new Qi("invalid-auth-event"))},mc.prototype.confirm=function(e){return e=yo(this.verificationId,e),this.a(e)},vc.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=un(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=s.document,t=null;return Ii()||!e?Qe():new Ge((function(n){t=function(){Ii()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).s((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).s((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},vc.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},_c.prototype.A=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},_c.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Xe(new Qi("user-token-expired")):e||!this.b||S()>this.c-3e4?this.a?function(e,t){return function(e,t){return new Ge((function(n,i){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?Ns(e,e.l+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?i(xa(e)):e.access_token&&e.refresh_token?n(e):i(new Qi("internal-error")):i(new Qi("network-request-failed"))}),"POST",Ln(t).toString(),e.g,e.u.get()):i(new Qi("internal-error"))}))}(e.f,t).then((function(t){return e.b=t.access_token,e.c=wc(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}})).s((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}(this,{grant_type:"refresh_token",refresh_token:this.a}):Qe(null):Qe({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Cc.prototype.A=function(){return{lastLoginAt:this.b,createdAt:this.a}},D(Sc,Pt),D(Dc,on),Dc.prototype.ua=function(e){this.ga=e,Ps(this.a,e)},Dc.prototype.ha=function(){return this.ga},Dc.prototype.Ca=function(){return U(this.P)},Dc.prototype.Ja=function(){this.w.b&&(this.w.stop(),this.w.start())},Fi(Dc.prototype,"providerId","firebase"),(e=Dc.prototype).reload=function(){var e=this;return Xc(this,Fc(this).then((function(){return Gc(e).then((function(){return Ac(e)})).then(Nc)})))},e.dc=function(e){return this.G(e).then((function(e){return new yc(e)}))},e.G=function(e){var t=this;return Xc(this,Fc(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new Qi("internal-error");
1return e.accessToken!=t.ma&&(Mc(t,e.accessToken),t.dispatchEvent(new Sc("tokenChanged"))),Yc(t,"refreshToken",e.refreshToken),e.accessToken})))},e.zc=function(e){if(!(e=e.users)||!e.length)throw new Qi("internal-error");Lc(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?V(e,(function(e){return new Ec(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Vc(this,t[n]);Yc(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length))},e.Ac=function(e){return Li("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.hb(e)},e.hb=function(e){var t=this,n=null;return Xc(this,e.f(this.a,this.uid).then((function(e){return Wc(t,e),n=zc(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},e.rc=function(e){return Li("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.fb(e)},e.fb=function(e){var t=this,n=null;return Xc(this,Uc(this,e.providerId).then((function(){return t.G()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=zc(t,e,"link"),qc(t,e)})).then((function(){return n})))},e.sc=function(e,t){var n=this;return Xc(this,Uc(this,"phone").then((function(){return gc(kc(n),e,t,C(n.fb,n))})))},e.Bc=function(e,t){var n=this;return Xc(this,Qe().then((function(){return gc(kc(n),e,t,C(n.hb,n))})),!0)},e.rb=function(e){var t=this;return Xc(this,this.G().then((function(n){return t.a.rb(n,e)})).then((function(e){return Wc(t,e),t.reload()})))},e.Sc=function(e){var t=this;return Xc(this,this.G().then((function(n){return e.b(t.a,n)})).then((function(e){return Wc(t,e),t.reload()})))},e.sb=function(e){var t=this;return Xc(this,this.G().then((function(n){return t.a.sb(n,e)})).then((function(e){return Wc(t,e),t.reload()})))},e.tb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Fc(this);var t=this;return Xc(this,this.G().then((function(n){return t.a.tb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Wc(t,e),Yc(t,"displayName",e.displayName||null),Yc(t,"photoURL",e.photoUrl||null),j(t.providerData,(function(e){"password"===e.providerId&&(Fi(e,"displayName",t.displayName),Fi(e,"photoURL",t.photoURL))})),Ac(t)})).then(Nc))},e.Qc=function(e){var t=this;return Xc(this,Gc(this).then((function(n){return Y(jc(t),e)?function(e,t,n){return Sa(e,na,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return j(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),j(jc(t),(function(e){n[e]||Hc(t,e)})),n[go.PROVIDER_ID]||Fi(t,"phoneNumber",null),Ac(t)})):Ac(t).then((function(){throw new Qi("no-such-provider")}))})))},e.delete=function(){var e=this;return Xc(this,this.G().then((function(t){return Sa(e.a,ta,{idToken:t})})).then((function(){e.dispatchEvent(new Sc("userDeleted"))}))).then((function(){for(var t=0;t<e.I.length;t++)e.I[t].cancel("app-deleted");xc(e,null),Oc(e,null),e.I=[],e.B=!0,Rc(e),Fi(e,"refreshToken",null),e.i&&Zl(e.i,e)}))},e.xb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.ca||null)==t||"reauthViaRedirect"==e&&(this.ca||null)==t)},e.ja=function(e,t,n,i){"linkViaPopup"!=e&&"reauthViaPopup"!=e||i!=(this.g||null)||(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},e.Ba=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?C(this.Bb,this):"reauthViaPopup"==e&&t==(this.g||null)?C(this.Cb,this):"linkViaRedirect"==e&&(this.ca||null)==t?C(this.Bb,this):"reauthViaRedirect"==e&&(this.ca||null)==t?C(this.Cb,this):null},e.tc=function(e){var t=this;return Kc(this,"linkViaPopup",e,(function(){return Uc(t,e.providerId).then((function(){return Ac(t)}))}),!1)},e.Cc=function(e){return Kc(this,"reauthViaPopup",e,(function(){return Qe()}),!0)},e.uc=function(e){var t=this;return $c(this,"linkViaRedirect",e,(function(){return Uc(t,e.providerId)}),!1)},e.Dc=function(e){return $c(this,"reauthViaRedirect",e,(function(){return Qe()}),!0)},e.Bb=function(e,t,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Xc(this,this.G().then((function(n){return Ks(r.a,{requestUri:e,postBody:i,sessionId:t,idToken:n})})).then((function(e){return o=zc(r,e,"link"),qc(r,e)})).then((function(){return o}
1)))},e.Cb=function(e,t,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Xc(this,Qe().then((function(){return Gr($s(r.a,{requestUri:e,sessionId:t,postBody:i,tenantId:n}),r.uid)})).then((function(e){return o=zc(r,e,"reauthenticate"),Wc(r,e),r.h=null,r.reload()})).then((function(){return o})),!0)},e.jb=function(e){var t=this,n=null;return Xc(this,this.G().then((function(t){return n=t,void 0===e||q(e)?{}:_r(new cr(e))})).then((function(e){return t.a.jb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},e.toJSON=function(){return this.A()},e.A=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.A(),redirectEventId:this.ca||null};return this.metadata&&Q(e,this.metadata.A()),j(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),e};var eu={name:"redirectUser",C:"session"};function tu(e){return El(e.b,eu,e.a)}function nu(e){this.a=e,this.b=bl(),this.c=null,this.f=function(e){var t=ou("local"),n=ou("session"),i=ou("none");return function(e,t,n){var i=Cl(t,n),r=wl(e,t.C);return e.get(t,n).then((function(o){var a=null;try{a=Di(s.localStorage.getItem(i))}catch(l){}if(a&&!o)return s.localStorage.removeItem(i),e.set(t,a,n);a&&o&&"localStorage"!=r.type&&s.localStorage.removeItem(i)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(r){return r?n:e.b.get(i,e.a).then((function(n){return n?i:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(ru,e.a).then((function(e){return e?ou(e):t}))}))}))})).then((function(t){return e.c=t,iu(e,t.C)})).s((function(){e.c||(e.c=t)}))}(this),this.b.addListener(ou("local"),this.a,C(this.g,this))}function iu(e,t){var n,i=[];for(n in vl)vl[n]!==t&&i.push(El(e.b,ou(vl[n]),e.a));return i.push(El(e.b,ru,e.a)),function(e){return new Ge((function(t,n){var i=e.length,r=[];if(i)for(var o=function(e,n){i--,r[e]=n,0==i&&t(r)},s=function(e){n(e)},a=0;a<e.length;a++)Je(e[a],E(o,a),s);else t(r)}))}(i)}nu.prototype.g=function(){var e=this,t=ou("local");cu(this,(function(){return Qe().then((function(){return e.c&&"local"!=e.c.C?e.b.get(t,e.a):null})).then((function(n){if(n)return iu(e,"local").then((function(){e.c=t}))}))}))};var ru={name:"persistence",C:"session"};function ou(e){return{name:"authUser",C:e}}function su(e,t){return cu(e,(function(){return e.b.set(e.c,t.A(),e.a)}))}function au(e){return cu(e,(function(){return El(e.b,e.c,e.a)}))}function lu(e,t){return cu(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),Jc(e||{})}))}))}function cu(e,t){return e.f=e.f.then(t,t),e.f}function uu(e){if(this.l=!1,Fi(this,"settings",new fc),Fi(this,"app",e),!vu(this).options||!vu(this).options.apiKey)throw new Qi("invalid-api-key");e=LS.a.SDK_VERSION?mi(LS.a.SDK_VERSION):null,this.b=new Ts(vu(this).options&&vu(this).options.apiKey,Tr(Dr),e),this.O=[],this.m=[],this.J=[],this.Ub=LS.a.INTERNAL.createSubscribe(C(this.oc,this)),this.W=void 0,this.Vb=LS.a.INTERNAL.createSubscribe(C(this.pc,this)),gu(this,null),this.h=new nu(vu(this).options.apiKey+":"+vu(this).name),this.w=new Zc(vu(this).options.apiKey+":"+vu(this).name),this.Y=Cu(this,function(e){var t=vu(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(eu,e.a).then((function(e){return e&&t&&(e.authDomain=t),Jc(e||{})}))}(e.w,vu(e).options.authDomain).then((function(t){return(e.B=t)&&(t.da=e.w),tu(e.w)}));return Cu(e,t)}(e).then((function(){return lu(e.h,t)})).then((function(t){return t?(t.da=e.w,e.B&&(e.B.ca||null)==(t.ca||null)?t:t.reload().then((function(){return su(e.h,t).then((function(){return t}))})).s((function(n){return"auth/network-request-failed"==n.code?t:au(e.h)}))):null})).then((function(t){gu(e,t||null)}));return Cu(e,n)}(this)),this.i=Cu(this,function(e){return e.Y.then((function(){return fu(e)})).s((function(){})).then((function(){if(!e.l)return e.ma()})).s((function(){})).then((function(){if(!e.l){e.ga=!0;var t=e.h;t.b.addListener(ou("local"),t.a,e.ma)}}))}(this)),this.ga=!1,this.ma=C(this.Nc,this),this.ub=C(this.aa,this),this.wa=C(this.bc,this),this.xa=C(this.mc,this),this.Ja=C(this.nc,this),this.a=null,function(e){var t=vu(e).options.authDomain,n=vu(e).options.apiKey;t&&_i()&&(e.Tb=e.Y.then((function(){if(!e.l){if(e.a=ac(t,n,vu(e).name),Jl(e.a,e),_u(e)&&Pc(_u(e)),e.B){Pc(e.B);var i=e.B;i.ua(e.ha()),xc(i,e),Tc(i=e.B,e.I),Oc(i,e),e.B=null}return e.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=C(this.delete,this),this.INTERNAL.logFramework=C(this.vc,this),this.o=0,on.
1call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ha()},set:function(e){this.ua(e)},enumerable:!1}),e.Z=null,Object.defineProperty(e,"ti",{get:function(){return this.R()},set:function(e){this.nb(e)},enumerable:!1}),e.P=null}(this),this.I=[]}function du(e){Pt.call(this,"languageCodeChanged"),this.g=e}function hu(e){Pt.call(this,"frameworkChanged"),this.c=e}function pu(e){return e.Tb||Xe(new Qi("auth-domain-config-required"))}function fu(e){if(!_i())return Xe(new Qi("operation-not-supported-in-this-environment"));var t=pu(e).then((function(){return e.a.oa()})).then((function(e){return e?Vi(e):null}));return Cu(e,t)}function mu(e,t){var n={};return n.apiKey=vu(e).options.apiKey,n.authDomain=vu(e).options.authDomain,n.appName=vu(e).name,e.Y.then((function(){return function(e,t,n,i){var r=new Dc(e,t);return n&&(r.da=n),i&&Tc(r,i),r.reload().then((function(){return r}))}(n,t,e.w,e.Ca())})).then((function(t){return _u(e)&&t.uid==_u(e).uid?(Bc(_u(e),t),e.aa(t)):(gu(e,t),Pc(t),e.aa(t))})).then((function(){wu(e)}))}function gu(e,t){_u(e)&&(function(e,t){G(e.O,(function(e){return e==t}))}(_u(e),e.ub),$t(_u(e),"tokenChanged",e.wa),$t(_u(e),"userDeleted",e.xa),$t(_u(e),"userInvalidated",e.Ja),Rc(_u(e))),t&&(t.O.push(e.ub),zt(t,"tokenChanged",e.wa),zt(t,"userDeleted",e.xa),zt(t,"userInvalidated",e.Ja),0<e.o&&Ic(t)),Fi(e,"currentUser",t),t&&(t.ua(e.ha()),xc(t,e),Tc(t,e.I),Oc(t,e))}function yu(e,t){var n=null,i=null;return Cu(e,t.then((function(t){return n=vo(t),i=Mr(t),mu(e,t)})).then((function(){return Vi({user:_u(e),credential:n,additionalUserInfo:i,operationType:"signIn"})})))}function vu(e){return e.app}function _u(e){return e.currentUser}function bu(e){return _u(e)&&_u(e)._lat||null}function wu(e){if(e.ga){for(var t=0;t<e.m.length;t++)e.m[t]&&e.m[t](bu(e));if(e.W!==e.getUid()&&e.J.length)for(e.W=e.getUid(),t=0;t<e.J.length;t++)e.J[t]&&e.J[t](bu(e))}}function Cu(e,t){return e.O.push(t),t.ka((function(){B(e.O,t)})),t}function Eu(){}function Su(){this.a={},this.b=1e12}nu.prototype.mb=function(e){var t=null,n=this;return function(e){var t=new Qi("invalid-persistence-type"),n=new Qi("unsupported-persistence-type");e:{for(i in vl)if(vl[i]==e){var i=!0;break e}i=!1}if(!i||"string"!=typeof e)throw t;switch(ui()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;default:if(!vi()&&"none"!==e)throw n}}(e),cu(this,(function(){return e!=n.c.C?n.b.get(n.c,n.a).then((function(i){return t=i,iu(n,e)})).then((function(){if(n.c=ou(e),t)return n.b.set(n.c,t,n.a)})):Qe()}))},D(uu,on),D(du,Pt),D(hu,Pt),(e=uu.prototype).mb=function(e){return Cu(this,e=this.h.mb(e))},e.ua=function(e){this.Z===e||this.l||(this.Z=e,Ps(this.b,this.Z),this.dispatchEvent(new du(this.ha())))},e.ha=function(){return this.Z},e.Tc=function(){var e=s.navigator;this.ua(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},e.vc=function(e){this.I.push(e),Ls(this.b,LS.a.SDK_VERSION?mi(LS.a.SDK_VERSION,this.I):null),this.dispatchEvent(new hu(this.I))},e.Ca=function(){return U(this.I)},e.nb=function(e){this.P===e||this.l||(this.P=e,this.b.b=this.P)},e.R=function(){return this.P},e.toJSON=function(){return{apiKey:vu(this).options.apiKey,authDomain:vu(this).options.authDomain,appName:vu(this).name,currentUser:_u(this)&&_u(this).A()}},e.xb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},e.ja=function(e,t,n,i){"signInViaPopup"==e&&this.g==i&&(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},e.Ba=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?C(this.ac,this):null},e.ac=function(e,t,n,i){var r=this;e={requestUri:e,postBody:i,sessionId:t,tenantId:n},this.c&&(this.c.cancel(),this.c=null);var o=null,s=null,a=qs(r.b,e).then((function(e){return o=vo(e),s=Mr(e),e}));return Cu(this,e=r.Y.then((function(){return a})).then((function(e){return mu(r,e)})).then((function(){return Vi({user:_u(r),credential:o,additionalUserInfo:s,operationType:"signIn"})})))},e.Lc=function(e){if(!_i())return Xe(new Qi("operation-not-supported-in-this-environment"));var t=this,n=Rr(e.providerId),i=xi(),r=null;(!Ci()||li())&&vu(this).options.authDomain&&e.isOAuthProvider&&(r=Va(vu(this).options.authDomain,vu(this).options.apiKey,vu(this).name,"signInViaPopup",e,null,i,LS.a.SDK_VERSION||null,null,null,this.R()));var o=ii(r,n&&n.sa,n&&n.ra);return Cu(this,n=pu(this).then((function(n){return nc(n,o,"signInViaPopup",e,i,!!r,t.R())})).then((function(){return new Ge((function(e,n){t.ja("signInViaPopup",null,new Qi("cancelled-popup-request"),t.g),t.f=e,t.v=n,t.g=i,t.c=oc(t.a,t,"signInViaPopup",o,i)}))})).then((function(e){return o&&ni(o),e?Vi(e):null})).s((function(e){throw o&&ni(o),e}
1)))},e.Mc=function(e){if(!_i())return Xe(new Qi("operation-not-supported-in-this-environment"));var t=this;return Cu(this,pu(this).then((function(){return function(e){return cu(e,(function(){return e.b.set(ru,e.c.C,e.a)}))}(t.h)})).then((function(){return rc(t.a,"signInViaRedirect",e,void 0,t.R())})))},e.oa=function(){var e=this;return fu(this).then((function(t){return e.a&&uc(e.a.b),t})).s((function(t){throw e.a&&uc(e.a.b),t}))},e.Rc=function(e){if(!e)return Xe(new Qi("null-user"));if(this.P!=e.tenantId)return Xe(new Qi("tenant-id-mismatch"));var t=this,n={};n.apiKey=vu(this).options.apiKey,n.authDomain=vu(this).options.authDomain,n.appName=vu(this).name;var i=function(e,t,n,i){t=t||{apiKey:e.l,authDomain:e.o,appName:e.m};var r=e.b,o={};return o[ks]=r.b,o.refreshToken=r.a,o.expiresIn=(r.c-S())/1e3,t=new Dc(t,o),n&&(t.da=n),i&&Tc(t,i),Bc(t,e),t}(e,n,t.w,t.Ca());return Cu(this,this.i.then((function(){if(vu(t).options.apiKey!=e.l)return i.reload()})).then((function(){return _u(t)&&e.uid==_u(t).uid?(Bc(_u(t),e),t.aa(e)):(gu(t,i),Pc(i),t.aa(i))})).then((function(){wu(t)})))},e.pb=function(){var e=this;return Cu(this,this.i.then((function(){return e.a&&uc(e.a.b),_u(e)?(gu(e,null),au(e.h).then((function(){wu(e)}))):Qe()})))},e.Nc=function(){var e=this;return lu(this.h,vu(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=_u(e)&&t){n=_u(e).uid;var i=t.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Bc(_u(e),t),_u(e).G();(_u(e)||t)&&(gu(e,t),t&&(Pc(t),t.da=e.w),e.a&&Jl(e.a,e),wu(e))}}))},e.aa=function(e){return su(this.h,e)},e.bc=function(){wu(this),this.aa(_u(this))},e.mc=function(){this.pb()},e.nc=function(){this.pb()},e.oc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(_u(t))}))},e.pc=function(e){var t=this;!function(e,t){e.J.push(t),Cu(e,e.i.then((function(){!e.l&&Y(e.J,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(bu(e)))})))}(this,(function(){e.next(_u(t))}))},e.xc=function(e,t,n){var i=this;return this.ga&&Promise.resolve().then((function(){g(e)?e(_u(i)):g(e.next)&&e.next(_u(i))})),this.Ub(e,t,n)},e.wc=function(e,t,n){var i=this;return this.ga&&Promise.resolve().then((function(){i.W=i.getUid(),g(e)?e(_u(i)):g(e.next)&&e.next(_u(i))})),this.Vb(e,t,n)},e.cc=function(e){var t=this;return Cu(this,this.i.then((function(){return _u(t)?_u(t).G(e).then((function(e){return{accessToken:e}})):null})))},e.Hc=function(e){var t=this;return this.i.then((function(){return yu(t,Sa(t.b,_a,{token:e}))})).then((function(e){var n=e.user;return Yc(n,"isAnonymous",!1),t.aa(n),e}))},e.Ic=function(e,t){var n=this;return this.i.then((function(){return yu(n,Sa(n.b,ba,{email:e,password:t}))}))},e.Xb=function(e,t){var n=this;return this.i.then((function(){return yu(n,Sa(n.b,Zs,{email:e,password:t}))}))},e.Sa=function(e){var t=this;return this.i.then((function(){return yu(t,e.na(t.b))}))},e.Gc=function(e){return Li("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Sa(e)},e.ob=function(){var e=this;return this.i.then((function(){var t=_u(e);
1if(t&&t.isAnonymous){var n=Vi({providerId:null,isNewUser:!1});return Vi({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return yu(e,e.b.ob()).then((function(t){var n=t.user;return Yc(n,"isAnonymous",!0),e.aa(n),t}))}))},e.getUid=function(){return _u(this)&&_u(this).uid||null},e.Wb=function(e){this.addAuthTokenListener(e),this.o++,0<this.o&&_u(this)&&Ic(_u(this))},e.Ec=function(e){var t=this;j(this.m,(function(n){n==e&&t.o--})),0>this.o&&(this.o=0),0==this.o&&_u(this)&&Rc(_u(this)),this.removeAuthTokenListener(e)},e.addAuthTokenListener=function(e){var t=this;this.m.push(e),Cu(this,this.i.then((function(){t.l||Y(t.m,e)&&e(bu(t))})))},e.removeAuthTokenListener=function(e){G(this.m,(function(t){return t==e}))},e.delete=function(){this.l=!0;for(var e=0;e<this.O.length;e++)this.O[e].cancel("app-deleted");return this.O=[],this.h&&(e=this.h).b.removeListener(ou("local"),e.a,this.ma),this.a&&(Zl(this.a,this),uc(this.a.b)),Promise.resolve()},e.$b=function(e){return Cu(this,function(e,t){return Sa(e,ea,{identifier:t,continueUri:bi()?Zn():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.b,e))},e.qc=function(e){return!!ho(e)},e.lb=function(e,t){var n=this;return Cu(this,Qe().then((function(){var e=new cr(t);if(!e.c)throw new Qi("argument-error",hr+" must be true when sending sign in link to email");return _r(e)})).then((function(t){return n.b.lb(e,t)})).then((function(){})))},e.Uc=function(e){return this.Ma(e).then((function(e){return e.data.email}))},e.ab=function(e,t){return Cu(this,this.b.ab(e,t).then((function(){})))},e.Ma=function(e){return Cu(this,this.b.Ma(e).then((function(e){return new Yi(e)})))},e.Ya=function(e){return Cu(this,this.b.Ya(e).then((function(){})))},e.kb=function(e,t){var n=this;return Cu(this,Qe().then((function(){return void 0===t||q(t)?{}:_r(new cr(t))})).then((function(t){return n.b.kb(e,t)})).then((function(){})))},e.Kc=function(e,t){return Cu(this,gc(this,e,t,C(this.Sa,this)))},e.Jc=function(e,t){var n=this;return Cu(this,Qe().then((function(){var i=t||Zn(),r=uo(e,i);if(!(i=ho(i)))throw new Qi("argument-error","Invalid email link!");if(i.tenantId!==n.R())throw new Qi("tenant-id-mismatch");return n.Sa(r)})))},Eu.prototype.render=function(){},Eu.prototype.reset=function(){},Eu.prototype.getResponse=function(){},Eu.prototype.execute=function(){};var Du=null;function xu(e,t){return(t=Tu(t))&&e.a[t]||null}function Tu(e){return(e=void 0===e?1e12:e)?e.toString():null}function Ou(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=Bn(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():zt(this.f,"click",this.i)}function ku(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Iu(){}Su.prototype.render=function(e,t){return this.a[this.b.toString()]=new Ou(e,t),this.b++},Su.prototype.reset=function(e){var t=xu(this,e);e=Tu(e),t&&e&&(t.delete(),delete this.a[e])},Su.prototype.getResponse=function(e){return(e=xu(this,e))?e.getResponse():null},Su.prototype.execute=function(e){(e=xu(this,e))&&e.execute()},Ou.prototype.getResponse=function(){return ku(this),this.b},Ou.prototype.execute=function(){ku(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(i){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(i){}e.h&&e.execute()}),6e4)}),500))},Ou.prototype.delete=function(){ku(this),this.g=!0,clearTimeout(this.a),this.a=null,$t(this.f,"click",this.i)},Iu.prototype.g=function(){return Du||(Du=new Su),Qe(Du)},Iu.prototype.c=function(){};var Ru=null;function Mu(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Au=new X(ee,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Pu=new ki(3e4,6e4);Mu.prototype.g=function(e){var t=this;return new Ge((function(n,i){var r=setTimeout((function(){i(new Qi("network-request-failed"))}),Pu.get());!s.grecaptcha||e!==t.f&&!t.b?(s[t.a]=function(){if(s.grecaptcha){t.f=e;var o=s.grecaptcha.render;s.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(r),n(s.grecaptcha)}else clearTimeout(r),i(new Qi("internal-error"));delete s[t.a]},Qe(bs(re(Au,{onload:t.a,hl:e||""}))).s((function(){clearTimeout(r),i(new Qi("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),n(s.grecaptcha))}))},Mu.prototype.c=function(){this.b--};var Lu=null;function Nu(e,t,n,i,r,o,a){if(Fi(this,"type","recaptcha"),this.c=this.f=null,this.B=!1,this.u=t,this.g=null,a?(Ru||(Ru=new Iu),a=Ru):(Lu||(Lu=new Mu),a=Lu),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Vu])throw new Qi("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Hu],!s.document)throw new Qi("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!Bn(t)||!this.i&&Bn(t).hasChildNodes())throw new Qi("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Ts(e,o||null,r||null),this.v=i||function(){return null};var l=this;this.l=[];var c=this.a[Fu];this.a[Fu]=function(e){if(Yu(l,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=yi(c,s);"function"==typeof t&&t(e)}};var u=this.a[ju];this.a[ju]=function(){if(Yu(l,null),"function"==typeof u)u();else if("string"==typeof u){var e=yi(u,s);"function"==typeof e&&e()}}}var Fu="callback",ju="expired-callback",Vu="sitekey",Hu="size";function Yu(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(i){}}function Bu(e,t){return e.h.push(t),t.ka((function(){B(e.h,t)})),t}function Gu(e){if(e.B)throw new Qi("internal-error","RecaptchaVerifier instance has been destroyed.")}function Wu(e,t,n){var i=!1;try{this.b=n||LS.a.app()}catch(s){throw new Qi("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new Qi("invalid-api-key");n=this.b.options.apiKey;var r=this,o=null;try{o=this.b.auth().Ca()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}o=LS.a.SDK_VERSION?mi(LS.a.SDK_VERSION,o):null,Nu.call(this,n,e,t,(function(){try{var e=r.b.auth().ha()}catch(t){e=null}return e}),o,Tr(Dr),i)}function Uu(e,t,n,i){e:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,s=0;s<t.length;s++)if(t[s].optional)o=!0;else{if(o)throw new Qi("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=t.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r
1+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=t[r].optional&&void 0===n[r],!t[r].N(n[r])&&!o){if(t=t[r],0>r||r>=zu.length)throw new Qi("internal-error","Argument validator received an unsupported number of arguments.");n=zu[r],i=(i?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.M+".";break e}i=null}}if(i)throw new Qi("argument-error",e+" failed: "+i)}(e=Nu.prototype).Da=function(){var e=this;return this.f?this.f:this.f=Bu(this,Qe().then((function(){if(bi()&&!ci())return si();throw new Qi("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.v())})).then((function(t){return e.g=t,Sa(e.o,ua,{})})).then((function(t){e.a[Vu]=t.recaptchaSiteKey})).s((function(t){throw e.f=null,t})))},e.render=function(){Gu(this);var e=this;return Bu(this,this.Da().then((function(){if(null===e.c){var t=e.u;if(!e.i){var n=Bn(t);t=function(e,t,n){var i=arguments,r=document,o=String(i[0]),s=i[1];if(!Yn&&s&&(s.name||s.type)){if(o=["<",o],s.name&&o.push(' name="',Fe(s.name),'"'),s.type){o.push(' type="',Fe(s.type),'"');var l={};Q(l,s),delete l.type,s=l}o.push(">"),o=o.join("")}return o=r.createElement(o),s&&(a(s)?o.className=s:f(s)?o.className=s.join(" "):Gn(o,s)),2<i.length&&Un(r,o,i),o}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},e.verify=function(){Gu(this);var e=this;return Bu(this,this.render().then((function(t){return new Ge((function(n){var i=e.g.getResponse(t);if(i)n(i);else{var r=function(t){t&&(function(e,t){G(e.l,(function(e){return e==t}))}(e,r),n(t))};e.l.push(r),e.i&&e.g.execute(e.c)}}))})))},e.reset=function(){Gu(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Gu(this),this.B=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=Bn(this.u);for(var t;t=e.firstChild;)e.removeChild(t)}},D(Wu,Nu);var zu="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function qu(e,t){return{name:e||"",M:"a valid string",optional:!!t,N:a}}function Ku(e,t){return{name:e||"",M:"a boolean",optional:!!t,N:l}}function $u(e,t){return{name:e||"",M:"a valid object",optional:!!t,N:y}}function Qu(e,t){return{name:e||"",M:"a function",optional:!!t,N:g}}function Xu(e,t){return{name:e||"",M:"null",optional:!!t,N:p}}function Ju(e){return{name:e?e+"Credential":"credential",M:e?"a valid "+e+" credential":"a valid credential",optional:!1,N:function(t){return!!t&&!(!t.na||e&&t.providerId!==e)}}}function Zu(){return{name:"applicationVerifier",M:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,N:function(e){return!!(e&&a(e.type)&&g(e.verify))}}}function ed(e,t,n,i){return{name:n||"",M:e.M+" or "+t.M,optional:!!i,N:function(n){return e.N(n)||t.N(n)}}}function td(e,t){for(var n in t){var i=t[n].name;e[i]=rd(i,e[n],t[n].j)}}function nd(e,t){for(var n in t){var i=t[n].name;i!==n&&Object.defineProperty(e,i,{get:E((function(e){return this[e]}),n),set:E((function(e,t,n,i){Uu(e,[n],[i],!0),this[t]=i}),i,n,t[n].Za),enumerable:!0})}}function id(e,t,n,i){e[t]=rd(t,n,i)}function rd(e,t,n){function i(){var e=Array.prototype.slice.call(arguments);return Uu(o,n,e),t.apply(this,e)}if(!n)return t;var r,o=function(e){return(e=e.split("."))[e.length-1]}(e);for(r in t)i[r]=t[r];for(r in t.prototype)i.prototype[r]=t.prototype[r];return i}td(uu.prototype,{Ya:{name:"applyActionCode",j:[qu("code")]},Ma:{name:"checkActionCode",j:[qu("code")]},ab:{name:"confirmPasswordReset",j:[qu("code"),qu("newPassword")]},Xb:{name:"createUserWithEmailAndPassword",j:[qu("email"),qu("password")]},$b:{name:"fetchSignInMethodsForEmail",j:[qu("email")]},oa:{name:"getRedirectResult",j:[]},qc:{name:"isSignInWithEmailLink",j:[qu("emailLink")]},wc:{name:"onAuthStateChanged",j:[ed($u(),Qu(),"nextOrObserver"),Qu("opt_error",!0),Qu("opt_completed",!0)]},xc:{name:"onIdTokenChanged",j:[ed($u(),Qu(),"nextOrObserver"),Qu("opt_error",!0),Qu("opt_completed",!0)]},kb:{name:"sendPasswordResetEmail",j:[qu("email"),ed($u("opt_actionCodeSettings",!0),Xu(null,!0),"opt_actionCodeSettings",!0)]},lb:{name:"sendSignInLinkToEmail",j:[qu("email"),$u("actionCodeSettings")]},mb:{name:"setPersistence",j:[qu("persistence")]},Gc:{name:"signInAndRetrieveDataWithCredential",j:[Ju()]},ob:{name:"signInAnonymously",j:[]},Sa:{name:"signInWithCredential",j:[Ju()]},Hc:{name:"signInWithCustomToken",j:[qu("token")]},Ic:{name:"signInWithEmailAndPassword",j:[qu("email"),qu("password")]},Jc:{name:"signInWithEmailLink",j:[qu("email"),qu("emailLink",!0)]},Kc:{name:"signInWithPhoneNumber",j:[qu("phoneNumber"),Zu()]},Lc:{name:"signInWithPopup",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"signInWithRedirect",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Rc:{name:"updateCurrentUser",j:[ed({name:"user",M:"an instance of Firebase User",optional:!1,N:function(e){return!!(e&&e instanceof Dc)}},Xu(),"user")]},pb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[qu(null,!0)]},Tc:{name:"useDeviceLanguage",j:[]},Uc:{name:"verifyPasswordResetCode",j:[qu("code")]}}),nd(uu.prototype,{lc:{name:"languageCode",Za:ed(qu(),Xu(),"languageCode")},ti:{name:"tenantId",Za:ed(qu(),Xu(),"tenantId")}}),(uu.Persistence=vl).LOCAL="local",uu.Persistence.SESSION="session",uu.Persistence.NONE="none",td(Dc.prototype,{delete:{name:"delete",j:[]},dc:{name:"getIdTokenResult",j:[Ku("opt_forceRefresh",!0)]},G:{name:"getIdToken",j:[Ku("opt_forceRefresh",!0)]},rc:{name:"linkAndRetrieveDataWithCredential",j:[Ju()]},fb:{name:"linkWithCredential",j:[Ju()]},sc:{name:"linkWithPhoneNumber",j:[qu("phoneNumber"),Zu()]},tc:{name:"linkWithPopup",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},uc:{name:"linkWithRedirect",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ac:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Ju()]},hb:{name:"reauthenticateWithCredential",j:[Ju()]},Bc:{name:"reauthenticateWithPhoneNumber",j:[qu("phoneNumber"),Zu()]},Cc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",M:"a valid Auth provider",optional:!1,N:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},jb:{name:"sendEmailVerification",j:[ed($u("opt_actionCodeSettings",!0),Xu(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[qu(null,!0)]},Qc:{name:"unlink",j:[qu("provider")]}
1,rb:{name:"updateEmail",j:[qu("email")]},sb:{name:"updatePassword",j:[qu("password")]},Sc:{name:"updatePhoneNumber",j:[Ju("phone")]},tb:{name:"updateProfile",j:[$u("profile")]}}),td(Su.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),td(Eu.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),td(Ge.prototype,{ka:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),nd(fc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",Za:Ku("appVerificationDisabledForTesting")}}),td(mc.prototype,{confirm:{name:"confirm",j:[qu("verificationCode")]}}),id(Br,"fromJSON",(function(e){e=a(e)?JSON.parse(e):e;for(var t,n=[$r,lo,fo,zr],i=0;i<n.length;i++)if(t=n[i](e))return t;return null}),[ed(qu(),$u(),"json")]),id(co,"credential",(function(e,t){return new ao(e,t)}),[qu("email"),qu("password")]),td(ao.prototype,{A:{name:"toJSON",j:[qu(null,!0)]}}),td(Zr.prototype,{ya:{name:"addScope",j:[qu("scope")]},Ga:{name:"setCustomParameters",j:[$u("customOAuthParameters")]}}),id(Zr,"credential",eo,[ed(qu(),$u(),"token")]),id(co,"credentialWithLink",uo,[qu("email"),qu("emailLink")]),td(to.prototype,{ya:{name:"addScope",j:[qu("scope")]},Ga:{name:"setCustomParameters",j:[$u("customOAuthParameters")]}}),id(to,"credential",no,[ed(qu(),$u(),"token")]),td(io.prototype,{ya:{name:"addScope",j:[qu("scope")]},Ga:{name:"setCustomParameters",j:[$u("customOAuthParameters")]}}),id(io,"credential",ro,[ed(qu(),ed($u(),Xu()),"idToken"),ed(qu(),Xu(),"accessToken",!0)]),td(oo.prototype,{Ga:{name:"setCustomParameters",j:[$u("customOAuthParameters")]}}),id(oo,"credential",so,[ed(qu(),$u(),"token"),qu("secret",!0)]),td(Jr.prototype,{ya:{name:"addScope",j:[qu("scope")]},credential:{name:"credential",j:[ed(qu(),ed($u(),Xu()),"optionsOrIdToken"),ed(qu(),Xu(),"accessToken",!0)]},Ga:{name:"setCustomParameters",j:[$u("customOAuthParameters")]}}),td(qr.prototype,{A:{name:"toJSON",j:[qu(null,!0)]}}),td(Wr.prototype,{A:{name:"toJSON",j:[qu(null,!0)]}}),id(go,"credential",yo,[qu("verificationId"),qu("verificationCode")]),td(go.prototype,{Wa:{name:"verifyPhoneNumber",j:[qu("phoneNumber"),Zu()]}}),td(po.prototype,{A:{name:"toJSON",j:[qu(null,!0)]}}),td(Qi.prototype,{toJSON:{name:"toJSON",j:[qu(null,!0)]}}),td(xo.prototype,{toJSON:{name:"toJSON",j:[qu(null,!0)]}}),td(Do.prototype,{toJSON:{name:"toJSON",j:[qu(null,!0)]}}),td(Wu.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),id(er,"parseLink",lr,[qu("link")]),function(){if(void 0===LS.a||!LS.a.INTERNAL||!LS.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Bi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:uu,AuthCredential:Br,Error:Qi};id(e,"EmailAuthProvider",co,[]),id(e,"FacebookAuthProvider",Zr,[]),id(e,"GithubAuthProvider",to,[]),id(e,"GoogleAuthProvider",io,[]),id(e,"TwitterAuthProvider",oo,[]),id(e,"OAuthProvider",Jr,[qu("providerId")]),id(e,"SAMLAuthProvider",Xr,[qu("providerId")]),id(e,"PhoneAuthProvider",go,[{name:"auth",M:"an instance of Firebase Auth",optional:!0,N:function(e){return!!(e&&e instanceof uu)}}]),id(e,"RecaptchaVerifier",Wu,[ed(qu(),{name:"",M:"an HTML element",optional:!1,N:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),$u("recaptchaParameters",!0),{name:"app",M:"an instance of Firebase App",optional:!0,N:function(e){return!!(e&&e instanceof LS.a.app.App)}}]),id(e,"ActionCodeURL",er,[]),LS.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new uu(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),LS.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:C((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:C(e.cc,e),addAuthTokenListener:C(e.Wb,e),removeAuthTokenListener:C(e.Ec,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}
1),LS.a.registerVersion("@firebase/auth","0.13.5"),LS.a.INTERNAL.extendNamespace({User:Dc})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});let NS=(()=>{let e=class{};return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[rb]}),e})(),FS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Zp]]}),e})(),jS=(()=>{class e{constructor(e,t){re(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,n=[]){return{ngModule:e,providers:t.serverLoaded?[{provide:rf,useValue:Object.assign(Object.assign({},nf),t)},{provide:sf,useValue:n,multi:!0},{provide:of,useValue:!0}]:[{provide:rf,useValue:Object.assign(Object.assign({},nf),t)},{provide:sf,useValue:n,multi:!0}]}}}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)(r["\u0275\u0275inject"](of),r["\u0275\u0275inject"](r.PLATFORM_ID))},imports:[[Jy,$f,FS],Jy,$f,FS]}),e})(),VS=(()=>{class e{constructor(e){this.http=e,this.currentHash="bd24da2dd7f486b03039",setTimeout(()=>{Object(r.isDevMode)()||this.initVersionCheck()},1e3)}initVersionCheck(e=18e4){this.checkVersion(),setInterval(()=>{this.checkVersion()},e)}checkVersion(){const e={headers:new bm({"Content-Type":"application/json"})};this.http.get("version.json?t="+(new Date).getTime(),e).pipe(It()).subscribe(e=>{const t=e.hashes;-1===t.indexOf(this.currentHash)?(console.log("Application version has changed."),console.log("current hash: "+this.currentHash),console.log("hashes:"),console.log(t),alert("A new version of this application is available. Your browser will now refresh to get the new version."),location.reload(!0)):console.log("The application version is current.")},e=>{console.error(e,"Could not get the application version")})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](Pm))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function HS(e,t){1&e&&r["\u0275\u0275element"](0,"app-spinner")}let YS=(()=>{class e{constructor(e,t,n,i,r){this.matIconRegistry=e,this.domSanitizer=t,this.router=n,this.themeService=i,this.versionCheck=r,this.loading=!1,this.router.events.subscribe(e=>{switch(!0){case e instanceof en:this.loading=!0;break;case e instanceof tn:case e instanceof nn:case e instanceof rn:this.loading=!1}})}ngOnInit(){let e=this.themeService.defaultTheme;if(window.localStorage){var t=window.localStorage.getItem("theme");t&&(e=JSON.parse(t))}this.themeService.setTheme(e,!0);let n=Object(r.isDevMode)()?"../../assets/icons":"../../app/assets/icons";[{path:"auth-services",name:"facebook"},{path:"auth-services",name:"game-center"},{path:"auth-services",name:"github"},{path:"auth-services",name:"google"},{path:"auth-services",name:"microsoft"},{path:"auth-services",name:"play-games"},{path:"auth-services",name:"twitter"},{path:"auth-services",name:"yahoo"},{path:"streamline",name:"file-download"},{path:"streamline",name:"header"}].forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(`${n}/${e.path}/${e.name}.svg`))})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](tg),r["\u0275\u0275directiveInject"](Me),r["\u0275\u0275directiveInject"](mr),r["\u0275\u0275directiveInject"](Dw),r["\u0275\u0275directiveInject"](VS))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["app-root"]],decls:2,vars:1,consts:[[4,"ngIf"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"router-outlet"),r["\u0275\u0275template"](1,HS,1,0,"app-spinner",0),r["\u0275\u0275elementEnd"]()),2&e&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.loading))},directives:[vr,Y,nS],encapsulation:2}),e})(),BS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)}}),e})(),GS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[BS,Yu,Eu,xa],BS,Eu]}),e})(),WS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[Eu],Eu]}),e})();const US=Hr.a||Vr,zS=new r.InjectionToken("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function(){return{useUtc:!1}}});function qS(e,t){const n=Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}let KS=(()=>{class e extends Iu{constructor(e,t){super(),this._options=t,this.setLocale(e||US.locale())}setLocale(e){super.setLocale(e);let t=US.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:qS(31,e=>this.createDate(2017,0,e+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,n){if(t<0||t>11)throw Error(`Invalid month index "${t}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);const i=this._createMoment({year:e,month:t,date:n}).locale(this.locale);if(!i.isValid())throw Error(`Invalid date "${n}" for month with index "${t}".`);return i}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){if(e=this.clone(e),!this.isValid(e))throw Error("MomentDateAdapter: Cannot format invalid date.");return e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,US.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return US.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return US.invalid()}_createMoment(e,t,n){const{strict:i,useUtc:r}=this._options||{};return r?US.utc(e,t,n,i):US(e,t,n,i)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](ku,8),r["\u0275\u0275inject"](zS,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),$S=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:Iu,useClass:KS,deps:[ku,zS]}]}),e})();const QS={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let XS=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:Ru,useValue:QS}],imports:[[$S]]}),e})();var JS,ZS=function(){function e(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=e),void 0===n&&(n=e),void 0===i&&(i=t),this.top=e,this.right=t,this.bottom=n,this.left=i}return e.prototype.clear=function(){this.top=this.right=this.bottom=this.left=0},e}(),eD=function(){function e(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.isValid=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.dilate=function(e){this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e},e.prototype.containsPoint=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.render=function(t,n){void 0===n&&(n=e.noParams),t.save(),n.resetTransform&&t.setTransform(1,0,0,1,0,0),t.strokeStyle=n.strokeStyle||"cyan",t.lineWidth=n.lineWidth||1,t.strokeRect(this.x,this.y,this.width,this.height),n.label&&(t.fillStyle=n.fillStyle||"black",t.textBaseline="bottom",t.fillText(n.label,this.x,this.y)),t.restore(
1)},e.noParams={},e}(),tD=function(){function e(e){void 0===e&&(e=[1,0,0,1,0,0]),this.elements=e}return e.prototype.setElements=function(e){var t=this.elements;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],this},e.prototype.setIdentityElements=function(){var e=this.elements;return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,this},Object.defineProperty(e.prototype,"identity",{get:function(){var e=this.elements;return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.elements[0]},set:function(e){this.elements[0]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.elements[1]},set:function(e){this.elements[1]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.elements[2]},set:function(e){this.elements[2]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.elements[3]},set:function(e){this.elements[3]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function(){return this.elements[4]},set:function(e){this.elements[4]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function(){return this.elements[5]},set:function(e){this.elements[5]=e},enumerable:!0,configurable:!0}),e.prototype.AxB=function(e,t,n){var i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=t[0],u=t[1],d=t[2],h=t[3],p=t[4],f=t[5];
1(n=n||e)[0]=i*c+o*u,n[1]=r*c+s*u,n[2]=i*d+o*h,n[3]=r*d+s*h,n[4]=i*p+o*f+a,n[5]=r*p+s*f+l},e.prototype.multiplySelf=function(e){return this.AxB(this.elements,e.elements),this},e.prototype.multiply=function(t){var n=new Array(6);return this.AxB(this.elements,t.elements,n),new e(n)},e.prototype.preMultiplySelf=function(e){return this.AxB(e.elements,this.elements,this.elements),this},e.prototype.inverse=function(){var t=this.elements,n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=1/(n*o-i*r);return new e([o*=l,-(i*=l),-(r*=l),n*=l,r*a-o*s,i*s-n*a])},e.prototype.inverseTo=function(e){var t=this.elements,n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=1/(n*o-i*r);return e.setElements([o*=l,-(i*=l),-(r*=l),n*=l,r*a-o*s,i*s-n*a]),this},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],s=e[5],a=1/(t*r-n*i);return t*=a,n*=a,i*=a,e[0]=r*=a,e[1]=-n,e[2]=-i,e[3]=t,e[4]=i*s-r*o,e[5]=n*o-t*s,this},e.prototype.clone=function(){return new e(this.elements.slice())},e.prototype.transformPoint=function(e,t){var n=this.elements;return{x:e*n[0]+t*n[2]+n[4],y:e*n[1]+t*n[3]+n[5]}},e.prototype.transformBBox=function(e,t,n){void 0===t&&(t=0);var i,r,o=this.elements,s=o[0],a=o[1],l=o[2],c=o[3],u=.5*e.width,d=.5*e.height,h=e.x+u,p=e.y+d;if(t){u-=t,d-=t;var f=Math.sqrt(s*s+l*l),m=Math.sqrt(a*a+c*c);i=Math.abs(u*s)+Math.abs(d*l)+Math.abs(f*t),r=Math.abs(u*a)+Math.abs(d*c)+Math.abs(m*t)}else i=Math.abs(u*s)+Math.abs(d*l),r=Math.abs(u*a)+Math.abs(d*c);return n||(n=new eD(0,0,0,0)),n.x=h*s+p*l+o[4]-i,n.y=h*a+p*c+o[5]-r,n.width=i+i,n.height=r+r,n},e.prototype.toContext=function(e){if(!this.identity){var t=this.elements;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},e.flyweight=function(t){return t?e.matrix.setElements(t instanceof e?t.elements:t):e.matrix.setIdentityElements(),e.matrix},e.matrix=new e,e}();function nD(e){var t=e.constructor,n=t.className;if(!n)throw new Error("The "+t+" is missing the 'className' property.");return n+"-"+(t.id=(t.id||0)+1)}!function(e){e[e.All=0]="All",e[e.None=1]="None"}(JS||(JS={}));var iD=function(){function e(){this.id=nD(this),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new tD,this.inverseMatrix=new tD,this._dirtyTransform=!1,this._scalingX=1,this._scalingY=1,this._scalingCenterX=null,this._scalingCenterY=null,this._rotationCenterX=null,this._rotationCenterY=null,this._rotation=0,this._translationX=0,this._translationY=0,this._dirty=!0,this._visible=!0,this.pointerEvents=JS.All}return e.isNode=function(e){return!!e&&void 0!==e.matrix},e.prototype._setScene=function(e){this._scene=e;for(var t=this.children,n=t.length,i=0;i<n;i++)t[i]._setScene(e)},Object.defineProperty(e.prototype,"scene",{get:function(){return this._scene},enumerable:!0,configurable:!0}),e.prototype._setParent=function(e){this._parent=e},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),e.prototype.countChildren=function(t){if(void 0===t&&(t=e.MAX_SAFE_INTEGER),t<=0)return 0;for(var n=this.children,i=n.length,r=i,o=0;o<i;o++)r+=n[o].countChildren(t-1);return r},e.prototype.append=function(t){e.isNode(t)&&(t=[t]);for(var n=t.length,i=0;i<n;i++){var r=t[i];if(r.parent)throw new Error(r+" already belongs to another parent: "+r.parent+".");
1if(r.scene)throw new Error(r+" already belongs a scene: "+r.scene+".");if(this.childSet[r.id])throw new Error("Duplicate "+r.constructor.name+" node: "+r);this._children.push(r),this.childSet[r.id]=!0,r._setParent(this),r._setScene(this.scene)}this.dirty=!0},e.prototype.appendChild=function(e){if(e.parent)throw new Error(e+" already belongs to another parent: "+e.parent+".");if(e.scene)throw new Error(e+" already belongs a scene: "+e.scene+".");if(this.childSet[e.id])throw new Error("Duplicate "+e.constructor.name+" node: "+e);return this._children.push(e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0,e},e.prototype.removeChild=function(e){if(e.parent===this){var t=this.children.indexOf(e);if(t>=0)return this._children.splice(t,1),delete this.childSet[e.id],e._setParent(void 0),e._setScene(void 0),this.dirty=!0,e}throw new Error("The node to be removed is not a child of this node.")},e.prototype.insertBefore=function(e,t){var n=e.parent;if(e.parent&&e.parent.removeChild(e),t&&t.parent===this){var i=this.children.indexOf(t);if(!(i>=0))throw new Error(t+" has "+n+" as the parent, but is not in its list of children.");this._children.splice(i,0,e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0}else this.append(e);return e},Object.defineProperty(e.prototype,"nextSibling",{get:function(){var e=this.parent;if(e){var t=e.children,n=t.indexOf(this);if(n>=0&&n<=t.length-1)return t[n+1]}},enumerable:!0,configurable:!0}),e.prototype.transformPoint=function(e,t){for(var n=tD.flyweight(this.matrix),i=this.parent;i;)n.preMultiplySelf(i.matrix),i=i.parent;return n.invertSelf().transformPoint(e,t)},e.prototype.inverseTransformPoint=function(e,t){for(var n=tD.flyweight(this.matrix),i=this.parent;i;)n.preMultiplySelf(i.matrix),i=i.parent;return n.transformPoint(e,t)},Object.defineProperty(e.prototype,"dirtyTransform",{get:function(){return this._dirtyTransform},set:function(e){this._dirtyTransform=e,e&&(this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this._scalingX},set:function(e){this._scalingX!==e&&(this._scalingX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this._scalingY},set:function(e){this._scalingY!==e&&(this._scalingY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function(){return this._scalingCenterX},set:function(e){this._scalingCenterX!==e&&(this._scalingCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function(){return this._scalingCenterY},set:function(e){this._scalingCenterY!==e&&(this._scalingCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function(){return this._rotationCenterX},set:function(e){this._rotationCenterX!==e&&(this._rotationCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function(){return this._rotationCenterY},set:function(e){this._rotationCenterY!==e&&(this._rotationCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function(){return this.rotation/Math.PI*180},set:function(e){this.rotation=e/180*Math.PI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this._translationX},set:function(e){this._translationX!==e&&(this._translationX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this._translationY},set:function(e){this._translationY!==e&&(this._translationY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),e.prototype.isPointInNode=function(e,t){return!1},e.prototype.pickNode=function(e,t){if(this.visible&&this.pointerEvents!==JS.None&&this.isPointInNode(e,t)){var n=this.children;if(n.length)for(var i=n.length-1;i>=0;i--){var r=n[i].pickNode(e,t);if(r)return r}else if(!this.isContainerNode)return this}},e.prototype.computeBBox=function(){},e.prototype.computeBBoxCenter=function(){var e=this.computeBBox&&this.computeBBox();return e?[e.x+.5*e.width,e.y+.5*e.height]:[0,0]},e.prototype.computeTransformMatrix=function(){var e,t,n=[0,0],i=n[0],r=n[1],o=this.scalingX,s=this.scalingY;1===o&&1===s?(e=0,t=0):(e=null===this.scalingCenterX?i:this.scalingCenterX,t=null===this.scalingCenterY?r:this.scalingCenterY);var a,l,c=this.rotation,u=Math.cos(c),d=Math.sin(c);0===c?(a=0,l=0):(a=null===this.rotationCenterX?i:this.rotationCenterX,l=null===this.rotationCenterY?r:this.rotationCenterY);var h=this.translationX,p=this.translationY,f=e*(1-o)-a,m=t*(1-s)-l;this.dirtyTransform=!1,this.matrix.setElements([u*o,d*o,-d*s,u*s,u*f-d*m+a+h,d*f+u*m+l+p]).inverseTo(this.inverseMatrix)},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){this._dirty=e,e&&(this.parent?this.parent.dirty=!0:this.scene&&(this.scene.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e}();function rD(e,t){var n=Object.create(e);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}
1var oD,sD=(oD=function(e,t){return(oD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.lastInstanceId=0,n._fillOpacity=1,n._strokeOpacity=1,n._fill=t.defaultStyles.fill,n._stroke=t.defaultStyles.stroke,n._strokeWidth=t.defaultStyles.strokeWidth,n._lineDash=t.defaultStyles.lineDash,n._lineDashOffset=t.defaultStyles.lineDashOffset,n._lineCap=t.defaultStyles.lineCap,n._lineJoin=t.defaultStyles.lineJoin,n._opacity=t.defaultStyles.opacity,n.onShadowChange=function(){n.dirty=!0},n._fillShadow=t.defaultStyles.fillShadow,n._strokeShadow=t.defaultStyles.strokeShadow,n}return sD(t,e),t.createInstance=function(e){var t=Object.create(e);return t._setParent(void 0),t.id=e.id+"-Instance-"+String(++e.lastInstanceId),t},t.prototype.restoreOwnStyles=function(){for(var e=this.constructor.defaultStyles,t=Object.getOwnPropertyNames(e),n=0,i=t.length;n<i;n++){var r=t[n];this[r]=e[r]}},t.prototype.restoreAllStyles=function(){var e=this.constructor.defaultStyles;for(var t in e)this[t]=e[t]},t.prototype.restoreOverriddenStyles=function(){var e=this.constructor.defaultStyles,t=Object.getPrototypeOf(e);for(var n in e)e.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(this[n]=e[n])},Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDash",{get:function(){return this._lineDash},set:function(e){var t=this._lineDash;if(t!==e){if(t&&e&&t.length===e.length){for(var n=!0,i=e.length,r=0;r<i;r++)if(t[r]!==e[r]){n=!1;break}if(n)return}this._lineDash=e,this.dirty=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDashOffset",{get:function(){return this._lineDashOffset},set:function(e){this._lineDashOffset!==e&&(this._lineDashOffset=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this._lineCap},set:function(e){this._lineCap!==e&&(this._lineCap=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(e){e=Math.min(1,Math.max(0,e)),this._opacity!==e&&(this._opacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillShadow",{get:function(){return this._fillShadow},set:function(e){var t=this._fillShadow;t!==e&&(t&&t.removeEventListener("change",this.onShadowChange),e&&e.addEventListener("change",this.onShadowChange),this._fillShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeShadow",{get:function(){return this._strokeShadow},set:function(e){var t=this._strokeShadow;t!==e&&(t&&t.removeEventListener("change",this.onShadowChange),e&&e.addEventListener("change",this.onShadowChange),this._strokeShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.fillStroke=function(e){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var n=this.fillShadow;n&&n.enabled&&(e.shadowColor=n.color,e.shadowOffsetX=n.xOffset*t,e.shadowOffsetY=n.yOffset*t,e.shadowBlur=n.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.strokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}},t.prototype.isPointInNode=function(e,t){return this.isPointInPath(e,t)},t.defaultStyles=rD({},{fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0,strokeShadow:void 0}),t}(iD),lD=function(){function e(e,t,n){void 0===e&&(e=window.document),void 0===t&&(t=600),void 0===n&&(n=300),this._container=void 0,this._pixelRatio=NaN,this.document=e,this.element=e.createElement("canvas"),this.element.style.userSelect="none",this.element.style.display="block",this.context=this.element.getContext("2d"),this.updatePixelRatio(0,!1),this.resize(this._width=t,this._height=n)}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){this._container!==e&&(this.remove(),e&&e.appendChild(this.element),this._container=e)},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this.element.parentNode;null!=e&&e.removeChild(this.element)},e.prototype.destroy=function(){this.element.remove(),this._canvas=void 0,Object.freeze(this)},e.prototype.toImage=function(){var e=this.document.createElement("img");return e.src=this.getDataURL(),e},e.prototype.getDataURL=function(e){return this.element.toDataURL(e)},e.prototype.download=function(e){e=((e||"").trim()||"image")+".png";var t=this.getDataURL("image/png"),n=this.document;if(navigator.msSaveOrOpenBlob){for(var i=atob(t.split(",")[1]),r=[],o=0,s=i.length;o<s;o++)r.push(i.charCodeAt(o));var a=new Blob([new Uint8Array(r)],{type:"image/png"});navigator.msSaveOrOpenBlob(a,e)}else{var l=n.createElement("a");l.href=t,l.download=e,l.style.display="none",n.body.appendChild(l),l.click(),n.body.removeChild(l)}}
1,Object.defineProperty(e.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!0,configurable:!0}),e.prototype.updatePixelRatio=function(t,n){void 0===t&&(t=0),void 0===n&&(n=!0);var i=t||window.devicePixelRatio;if(i!==this.pixelRatio){var r=this.element,o=this.context,s=e.makeHdpiOverrides(i);for(var a in s)s.hasOwnProperty(a)&&(o["$"+a]||(o["$"+a]=o[a]),o[a]=s[a]);if(n){var l=r.width/this.pixelRatio,c=r.height/this.pixelRatio;r.width=Math.round(l*i),r.height=Math.round(c*i),r.style.width=Math.round(l)+"px",r.style.height=Math.round(c)+"px",o.resetTransform()}this._pixelRatio=i}},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t,n){var i=this;this._width=e,this._height=t,requestAnimationFrame((function(){var r=i.element,o=i.context,s=i.pixelRatio;r.width=Math.round(e*s),r.height=Math.round(t*s),r.style.width=Math.round(e)+"px",r.style.height=Math.round(t)+"px",o.resetTransform(),n&&n()}))},Object.defineProperty(e,"textMeasuringContext",{get:function(){if(this._textMeasuringContext)return this._textMeasuringContext;var e=document.createElement("canvas");return this._textMeasuringContext=e.getContext("2d")},enumerable:!0,configurable:!0}),Object.defineProperty(e,"svgText",{get:function(){if(this._svgText)return this._svgText;var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("width","100"),t.setAttribute("height","100"),t.classList?t.classList.add("text-measuring-svg"):t.setAttribute("class","text-measuring-svg"),t.style.position="absolute",t.style.top="-1000px",t.style.visibility="hidden";var n=document.createElementNS(e,"text");return n.setAttribute("x","0"),n.setAttribute("y","30"),n.setAttribute("text","black"),t.appendChild(n),document.body.appendChild(t),this._svgText=n,n},enumerable:!0,configurable:!0}),Object.defineProperty(e,"has",{get:function(){return this._has?this._has:this._has=Object.freeze({textMetrics:void 0!==this.textMeasuringContext.measureText("test").actualBoundingBoxDescent&&!/Firefox\/\d+(.\d)+/.test(window.navigator.userAgent),getTransform:void 0!==this.textMeasuringContext.getTransform})},enumerable:!0,configurable:!0}),e.measureText=function(e,t,n,i){var r=this.textMeasuringContext;return r.font=t,r.textBaseline=n,r.textAlign=i,r.measureText(e)},e.getTextSize=function(e,t){if(this.has.textMetrics){var n=this.textMeasuringContext;n.font=t;var i=n.measureText(e);return{width:i.width,height:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}return this.measureSvgText(e,t)},e.measureSvgText=function(e,t){var n=this.textSizeCache,i=n[t];if(i){var r=i[e];if(r)return r}else n[t]={};var o=this.svgText;o.style.font=t,o.textContent=e;var s=o.getBBox(),a={width:s.width,height:s.height};return n[t][e]=a,a},e.makeHdpiOverrides=function(e){var t=0;return{save:function(){this.$save(),t++},restore:function(){t>0&&(this.$restore(),t--)},setTransform:function(t,n,i,r,o,s){this.$setTransform(t*e,n*e,i*e,r*e,o*e,s*e)},resetTransform:function(){this.$setTransform(e,0,0,e,0,0),this.save(),t=0}}},e.textSizeCache={},e}(),cD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),uD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n._x=0,n._y=0,n.lineBreakRegex=/\r?\n/g,n.lines=[],n._text="",n._dirtyFont=!0,n._fontSize=10,n._fontFamily="sans-serif",n._textAlign=t.defaultStyles.textAlign,n._textBaseline=t.defaultStyles.textBaseline,n._lineHeight=14,n}return cD(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.splitText=function(){this.lines=this._text.split(this.lineBreakRegex)},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){var t=String(e);this._text!==t&&(this._text=t,this.splitText(),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.dirtyFont&&(this.dirtyFont=!1,this._font=[this.fontStyle||"",this.fontWeight||"",this.fontSize+"px",this.fontFamily].join(" ").trim()),this._font},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyFont",{get:function(){return this._dirtyFont},set:function(e){this._dirtyFont!==e&&(this._dirtyFont=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){isFinite(e)||(e=10),this._fontSize!==e&&(this._fontSize=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function(){return this._textAlign},set:function(e){this._textAlign!==e&&(this._textAlign=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){return lD.has.textMetrics?this.getPre
1ciseBBox():this.getApproximateBBox()},t.prototype.getPreciseBBox=function(){var e=lD.measureText(this.text,this.font,this.textBaseline,this.textAlign);return new eD(this.x-e.actualBoundingBoxLeft,this.y-e.actualBoundingBoxAscent,e.width,e.actualBoundingBoxAscent+e.actualBoundingBoxDescent)},t.prototype.getApproximateBBox=function(){var e=lD.getTextSize(this.text,this.font),t=this.x,n=this.y;switch(this.textAlign){case"end":case"right":t-=e.width;break;case"center":t-=e.width/2}switch(this.textBaseline){case"alphabetic":n-=.7*e.height;break;case"middle":n-=.45*e.height;break;case"ideographic":n-=e.height;break;case"hanging":n-=.2*e.height;break;case"bottom":n-=e.height}return new eD(t,n,e.width,e.height)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),i=this.computeBBox();return!!i&&i.containsPoint(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){if(this.lines.length){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);var t=this.opacity,n=this.fill,i=this.stroke,r=this.strokeWidth;t<1&&(e.globalAlpha=t),e.font=this.font,e.textAlign=this.textAlign,e.textBaseline=this.textBaseline;var o=this.scene.canvas.pixelRatio||1;if(n){e.fillStyle=n;var s=this.fillShadow,a=this.text,l=this.x,c=this.y;s&&s.enabled&&(e.shadowColor=s.color,e.shadowOffsetX=s.xOffset*o,e.shadowOffsetY=s.yOffset*o,e.shadowBlur=s.blur*o),e.fillText(a,l,c)}if(i&&r){e.strokeStyle=i,e.lineWidth=r;var u=this,d=u.lineDash,h=u.lineDashOffset,p=u.lineCap,f=u.lineJoin,m=u.strokeShadow;a=u.text,l=u.x,c=u.y,d&&e.setLineDash(d),h&&(e.lineDashOffset=h),p&&(e.lineCap=p),f&&(e.lineJoin=f),m&&m.enabled&&(e.shadowColor=m.color,e.shadowOffsetX=m.xOffset*o,e.shadowOffsetY=m.yOffset*o,e.shadowBlur=m.blur*o),e.strokeText(a,l,c)}this.dirty=!1}},t.className="Text",t.defaultStyles=rD(aD.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),t}(aD),dD=function(){return(dD=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},hD=function(){function e(){this.allPropertyListeners=new Map,this.allEventListeners=new Map}return e.prototype.addPropertyListener=function(e,t,n){void 0===n&&(n=this);var i=this.allPropertyListeners,r=i.get(e);if(r||(r=new Map,i.set(e,r)),!r.has(t)){var o=new Set;r.set(t,o)}r.get(t).add(n)},e.prototype.removePropertyListener=function(e,t,n){void 0===n&&(n=this);var i=this.allPropertyListeners.get(e);if(i)if(t){var r=i.get(t);r.delete(n),r.size||i.delete(t)}else i.clear()},e.prototype.notifyPropertyListeners=function(e,t,n){var i=this,r=this.allPropertyListeners.get(e);r&&r.forEach((function(r,o){r.forEach((function(r){return o.call(r,{type:e,source:i,value:n,oldValue:t})}))}))},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=this);var i=this.allEventListeners,r=i.get(e);if(r||(r=new Map,i.set(e,r)),!r.has(t)){var o=new Set;r.set(t,o)}r.get(t).add(n)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=this);var i=this.allEventListeners.get(e);if(i)if(t){var r=i.get(t);r.delete(n),r.size||i.delete(t)}else i.clear()},e.prototype.notifyEventListeners=function(e){var t=this,n=this.allEventListeners;e.forEach((function(e){var i=n.get(e);i&&i.forEach((function(n,i){n.forEach((function(n){return i.call(n,{type:e,source:t})}))}))}))},e.prototype.fireEvent=function(e){var t=this,n=this.allEventListeners.get(e.type);n&&n.forEach((function(n,i){n.forEach((function(n){return i.call(n,dD(dD({},e),{source:t}))}))}))},e.privateKeyPrefix="_",e}();function pD(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){var i=hD.privateKeyPrefix+n,r=i+"Events";t[n]||(e&&(t[r]=e),Object.defineProperty(t,n,{set:function(e){var t;if((t=this[i])!==e||"object"==typeof e&&null!==e){this[i]=e,this.notifyPropertyListeners(n,t,e);var o=this[r];o&&this.notifyEventListeners(o)}},get:function(){return this[i]},enumerable:!0,configurable:!0}))}}var fD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mD=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gD=function(e){function t(){var t=e.call(this)||this;t.node=new uD,t.enabled=!0,t.padding=new ZS(10);var n=t.node;return n.textAlign="center",n.textBaseline="top",n.pointerEvents=JS.None,t}return fD(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.node.text},set:function(e){this.node.text!==e&&(this.node.text=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this.node.fontStyle},set:function(e){this.node.fontStyle!==e&&(this.node.fontStyle=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this.node.fontWeight},set:function(e){this.node.fontWeight!==e&&(this.node.fontWeight=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this.node.fontSize},set:function(e){this.node.fontSize!==e&&(this.node.fontSize=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.node.fontFamily},set:function(e){this.node.fontFamily!==e&&(this.node.fontFamily=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.node.fill},set:function(e){this.node.fill!==e&&(this.node.fill=e,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),mD([pD("change")],t.prototype,"enabled",void 0),mD([pD("change")],t.prototype,"padding",void 0),t}
1(hD),yD=function(){function e(){this.index=new Map,this.ordinalRange=[],this._domain=[],this._range=[0,1],this._bandwidth=1,this._paddingInner=0,this._paddingOuter=0,this._round=!1,this._align=.5}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){var t=this._domain;t.length=0,this.index=new Map;var n=this.index;e.forEach((function(e){void 0===n.get(e)&&n.set(e,t.push(e)-1)})),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range[0]=e[0],this._range[1]=e[1],this.rescale()},enumerable:!0,configurable:!0}),e.prototype.ticks=function(){return this._domain},e.prototype.convert=function(e){var t=this.index.get(e);if(void 0===t)return NaN;var n=this.ordinalRange[t];return void 0===n?NaN:n},Object.defineProperty(e.prototype,"bandwidth",{get:function(){return this._bandwidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._paddingInner},set:function(e){e=Math.max(0,Math.min(1,e)),this._paddingInner=e,this._paddingOuter=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(e){this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(e){this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{get:function(){return this._round},set:function(e){this._round=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){var e,t=this._domain.length;if(t){var n=this._range,i=n[0],r=n[1],o=r<i;o&&(i=(e=[r,i])[0],r=e[1]);var s=(r-i)/Math.max(1,t-this._paddingInner+2*this._paddingOuter);this._round&&(s=Math.floor(s)),i+=(r-i-s*(t-this._paddingInner))*this._align,this._bandwidth=s*(1-this._paddingInner),this._round&&(i=Math.round(i),this._bandwidth=Math.round(this._bandwidth));for(var a=[],l=0;l<t;l++)a.push(i+s*l);this.ordinalRange=o?a.reverse():a}},e}(),vD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t}return vD(t,e),t.prototype.isPointInNode=function(e,t){return!0},t.prototype.computeBBox=function(){var e=1/0,n=-1/0,i=1/0,r=-1/0;return this.dirtyTransform&&this.computeTransformMatrix(),this.children.forEach((function(o){if(o.visible){var s=o.computeBBox();if(s){if(!(o instanceof t)){o.dirtyTransform&&o.computeTransformMatrix();for(var a=tD.flyweight(o.matrix),l=o.parent;l;)a.preMultiplySelf(l.matrix),l=l.parent;a.transformBBox(s,0,s)}var c=s.x,u=s.y;c<e&&(e=c),u<i&&(i=u),c+s.width>n&&(n=c+s.width),u+s.height>r&&(r=u+s.height)}}})),new eD(e,i,n-e,r-i)},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);for(var t=this.children,n=t.length,i=0;i<n;i++){e.save();var r=t[i];r.visible&&r.render(e),e.restore()}},t.className="Group",t}(iD),bD=function(){function e(e,t){this.next=null,this.scene=e.scene,this.parent=e,this.datum=t}return e.prototype.appendChild=function(e){if(null===this.next)return this.parent.insertBefore(e,null);if(!iD.isNode(this.next))throw new Error(this.next+" is not a Node.");return this.parent.insertBefore(e,this.next)},e.prototype.insertBefore=function(e,t){return this.parent.insertBefore(e,t)},e}(),wD=function(){function e(e,t){this.groups=e,this.parents=t}return e.select=function(t){return new e([["function"==typeof t?t():t]],[void 0])},e.selectAll=function(t){return new e([null==t?[]:t],[void 0])},e.prototype.append=function(e){return this.select((function(t){return t.appendChild(new e)}))},e.prototype.appendFn=function(e){return this.select((function(t,n,i,r){return t.appendChild(e(t,n,i,r))}))},e.prototype.select=function(t){for(var n=this.groups,i=n.length,r=[],o=0;o<i;o++)for(var s=n[o],a=s.length,l=r[o]=new Array(a),c=0;c<a;c++){var u=s[c];if(u){var d=t(u,u.datum,c,s);d&&(d.datum=u.datum),l[c]=d}}return new e(r,this.parents)},e.prototype.selectByClass=function(e){return this.select((function(t){if(iD.isNode(t))for(var n=t.children,i=n.length,r=0;r<i;r++){var o=n[r];if(o instanceof e)return o}}))},e.prototype.selectByTag=function(e){return this.select((function(t){if(iD.isNode(t))for(var n=t.children,i=n.length,r=0;r<i;r++){var o=n[r];if(o.tag===e)return o}}))},e.prototype.selectAllByClass=function(e){return this.selectAll((function(t){var n=[];if(iD.isNode(t))for(var i=t.children,r=i.length,o=0;o<r;o++){var s=i[o];s instanceof e&&n.push(s)}return n}))},e.prototype.selectAllByTag=function(e){return this.selectAll((function(t){var n=[];if(iD.isNode(t))for(var i=t.children,r=i.length,o=0;o<r;o++){var s=i[o];s.tag===e&&n.push(s)}return n}))},e.prototype.selectNone=function(){return[]},e.prototype.selectAll=function(t){t||(t=this.selectNone);for(var n=[],i=[],r=this.groups,o=r.length,s=0;s<o;s++)for(var a=r[s],l=a.length,c=0;c<l;c++){var u=a[c];u&&(n.push(t(u,u.datum,c,a)),i.push(u))}return new e(n,i)},e.prototype.each=function(e){for(var t=this.groups,n=t.length,i=0;i<n;i++)for(var r=t[i],o=r.length,s=0;s<o;s++){var a=r[s];a&&e(a,a.datum,s,r)}return this},e.prototype.remove=function(){return this.each((function(e){if(iD.isNode(e)){var t=e.parent;t&&t.removeChild(e)}}))},e.prototype.merge=function(t){for(var n=this.groups,i=t.groups,r=n.length,o=Math.min(r,i.length),s=new Array(r),a=0;a<o;a++)for(var l=n[a],c=i[a],u=l.length,d=s[a]=new Array(u),h=0;h<u;h++)d[h]=l[h]||c[h]||void 0;for(;a<r;a++)s[a]=n[a];return new e(s,this.parents)},e.prototype.node=function(){for(var e=this.groups,t=e.length,n=0;n<t;n++)for(var i=e[n],r=i.length,o=0;o<r;o++){var s=i[o];if(s)return s}return null},e.prototype.attr=function(e,t){return this.each((function(n){n[e]=t})),this},e.prototype.attrFn=function(e,t){return this.each((function(n,i,r,o){n[e]=t(n,i,r,o)})),this},e.prototype.call=function(e){return e(this),this},Object.defineProperty(e.prototype,"size",{get:function(){var e=0;return this.each((function(){return e++})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=[];return this.each((function(t,n){return e.push(n)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enter",{get:function(){return new e(this.enterGroups?this.enterGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exit",{get:function(){return new e(this.exitGroups?this.exitGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),e.prototype.setDatum=function(e){return this.each((function(t){t.datum=e}))}
1,Object.defineProperty(e.prototype,"datum",{get:function(){var e=this.node();return e?e.datum:null},enumerable:!0,configurable:!0}),e.prototype.setData=function(t,n){if("function"!=typeof t){var i=t;t=function(){return i}}for(var r=this.groups,o=this.parents,s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),u=0;u<s;u++){var d=r[u],h=o[u];if(!h)throw new Error("Group #"+u+" has no parent: "+d);var p=d.length,f=t(h,h.datum,u,o),m=f.length,g=l[u]=new Array(m),y=a[u]=new Array(m),v=c[u]=new Array(p);n?this.bindKey(h,d,g,y,v,f,n):this.bindIndex(h,d,g,y,v,f);for(var _=0,b=0;_<m;_++){var w=g[_];if(w){_>=b&&(b=_+1);for(var C=void 0;!(C=y[b])&&b<m;)b++;w.next=C||null}}}var E=new e(a,o);return E.enterGroups=l,E.exitGroups=c,E},e.prototype.bindIndex=function(e,t,n,i,r,o){for(var s=t.length,a=o.length,l=0;l<a;l++)(c=t[l])?(c.datum=o[l],i[l]=c):n[l]=new bD(e,o[l]);for(;l<s;l++){var c;(c=t[l])&&(r[l]=c)}},e.prototype.bindKey=function(t,n,i,r,o,s,a){for(var l=n.length,c=s.length,u=new Array(l),d={},h=0;h<l;h++)(f=n[h])&&((p=u[h]=e.keyPrefix+a(f,f.datum,h,n))in d?o[h]=f:d[p]=f);for(h=0;h<c;h++){var p;(f=d[p=e.keyPrefix+a(t,s[h],h,s)])?(r[h]=f,f.datum=s[h],d[p]=void 0):i[h]=new bD(t,s[h])}for(h=0;h<l;h++){var f;(f=n[h])&&d[u[h]]===f&&(o[h]=f)}},e.keyPrefix="$",e}(),CD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ED=function(e){function t(){var t=e.call(this)||this;return t._x1=0,t._y1=0,t._x2=0,t._y2=0,t.restoreOwnStyles(),t}return CD(t,e),Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1!==e&&(this._x1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1!==e&&(this._y1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2!==e&&(this._x2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2!==e&&(this._y2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){return new eD(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)},t.prototype.isPointInPath=function(e,t){return!1},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);var t=this.x1,n=this.y1,i=this.x2,r=this.y2;if(t===i){var o=Math.round(t)+Math.floor(this.strokeWidth)%2/2;t=o,i=o}else if(n===r){var s=Math.round(n)+Math.floor(this.strokeWidth)%2/2;n=s,r=s}e.beginPath(),e.moveTo(t,n),e.lineTo(i,r),this.fillStroke(e),this.dirty=!1},t.className="Line",t.defaultStyles=rD(aD.defaultStyles,{fill:void 0,strokeWidth:1}),t}(aD),SD=2*Math.PI;function DD(e){return e%=SD,(e+=SD)%SD}function xD(e){return e/180*Math.PI}var TD=Math.sign?Math.sign:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1};function OD(e,t,n,i,r,o,s,a){var l=(n-e)*(a-o)-(i-t)*(s-r);if(0===l)return null;var c=((s-r)*(t-o)-(e-r)*(a-o))/l,u=((n-e)*(t-o)-(i-t)*(e-r))/l;return c>=0&&c<=1&&u>=0&&u<=1?{x:e+c*(n-e),y:t+c*(i-t)}:null}function kD(e,t,n,i,r,o,s,a,l,c,u,d){for(var h=[],p=c-d,f=u-l,m=l*(d-c)-c*(u-l),g=ID(e,n,r,s),y=ID(t,i,o,a),v=function(e,t,n,i){if(0===e)return function(e,t,n){if(0===e)return function(e,t){var n=-t/e;return 0!==e&&n>=0&&n<=1?[n]:[]}(t,n);var i=t*t-4*e*n,r=[];if(0===i){var o=-t/(2*e);o>=0&&o<=1&&r.push(o)}else if(i>0){var s=Math.sqrt(i),a=(-t-s)/(2*e),l=(-t+s)/(2*e);a>=0&&a<=1&&r.push(a),l>=0&&l<=1&&r.push(l)}return r}(t,n,i);var r=t/e,o=n/e,s=(3*o-r*r)/9,a=(9*r*o-i/e*27-2*r*r*r)/54,l=s*s*s+a*a,c=[];if(l>=0){var u=Math.sqrt(l),d=TD(a+u)*Math.pow(Math.abs(a+u),1/3),h=TD(a-u)*Math.pow(Math.abs(a-u),1/3),p=Math.abs(Math.sqrt(3)*(d-h)/2),f=-1/3*r+(d+h);if(f>=0&&f<=1&&c.push(f),0===p){var m=-1/3*r-(d+h)/2;m>=0&&m<=1&&c.push(m)}}else{var g=Math.acos(a/Math.sqrt(-s*s*s)),y=1/3*r,v=2*Math.sqrt(-s),_=v*Math.cos(1/3*g)-y,b=v*Math.cos(1/3*(g+2*Math.PI))-y,w=v*Math.cos(1/3*(g+4*Math.PI))-y;_>=0&&_<=1&&c.push(_),b>=0&&b<=1&&c.push(b),w>=0&&w<=1&&c.push(w)}return c}(p*g[0]+f*y[0],p*g[1]+f*y[1],p*g[2]+f*y[2],p*g[3]+f*y[3]+m),_=0;_<v.length;_++){var b,w=v[_],C=w*w,E=w*C,S=g[0]*E+g[1]*C+g[2]*w+g[3],D=y[0]*E+y[1]*C+y[2]*w+y[3];(b=l!==u?(S-l)/(u-l):(D-c)/(d-c))>=0&&b<=1&&h.push({x:S,y:D})}return h}function ID(e,t,n,i){return[3*t-e-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}var RD=function(){function e(){this.commands=[],this.params=[],this._closedPath=!1}return e.prototype.moveTo=function(e,t){this.xy?(this.xy[0]=e,this.xy[1]=t):this.xy=[e,t],this.commands.push("M"),this.params.push(e,t)},e.prototype.lineTo=function(e,t){this.xy?(this.commands.push("L"),this.params.push(e,t),this.xy[0]=e,this.xy[1]=t):this.moveTo(e,t)},e.prototype.rect=function(e,t,n,i){this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.closePath()},e.prototype.arcTo=function(e,t,n,i,r,o,s){var a=this.xy;if(a){e<0&&(e=-e),t<0&&(t=-t);var l=a[0],c=a[1],u=(l-o)/2,d=(c-s)/2,h=Math.sin(n),p=Math.cos(n),f=p*u+h*d,m=-h*u+p*d,g=f/e,y=m/t,v=g*g+y*y,_=(l+o)/2,b=(c+s)/2,w=0,C=0;v>=1?(e*=v=Math.sqrt(v),t*=v):(v=Math.sqrt(1/v-1),i===r&&(v=-v),_+=p*(w=v*e*y)-h*(C=-v*t*g),b+=h*w+p*C);var E=Math.atan2((m-C)/t,(f-w)/e),S=Math.atan2((-m-C)/t,(-f-w)/e)-E;this.cubicArc(_,b,e,t,n,E,E+S,1-r)}},e.prototype.arcToAlt=function(e,t,n,i,r,o,s){if(this.xy){e<0&&(e=-e),t<0&&(t=-t);var a=(this.xy[0]-o)/2,l=(this.xy[1]-s)/2,c=Math.sin(n),u=Math.cos(n),d=u*a+c*l,h=-c*a+u*l,p=e*e*h*h,f=t*t*d*d,m=(i===r?0:1)*Math.sqrt((e*e*t*t-p-f)/(p+f))*e*h/t;Math.acos((d-m)/e/((d-m)/e))}},e.cubicArc=function(e,t,n,i,r,o,s,a,l,c){if(c){var u=a;a=l,l=u}var d=t.length,h=.5522847498307935,p=Math.sin(a),f=Math.cos(a),m=Math.sin(s),g=Math.cos(s),y=Math.PI/2,v=g*f*r-m*p*o,_=m*f*r+g*p*o,b=-g*p*r-m*f*o,w=-m*p*r+g*f*o;for((l-=a)<0&&(l+=2*Math.PI),e.push("M"),t.push(v+n,_+i);l>=y;){l-=y,e.push("C");var C=b+n;t.push(v+b*h+n,_+w*h+i,v*h+b+n,_*h+w+i,Math.abs(C)<1e-8?0:C,w+i),u=v,v=b,b=-u,u=_,_=w,w=-u}if(l){var E=4/3*Math.tan(l/4),S=Math.sin(l),D=Math.cos(l),x=D+E*S,T=S-E*D;
1e.push("C"),C=v*D+b*S+n,t.push(v+b*E+n,_+w*E+i,v*x+b*T+n,_*x+w*T+i,Math.abs(C)<1e-8?0:C,_*D+w*S+i)}if(c)for(var O=d,k=t.length-2;O<k;O+=2,k-=2)u=t[O],t[O]=t[k],t[k]=u,u=t[O+1],t[O+1]=t[k+1],t[k+1]=u},e.prototype.cubicArc=function(t,n,i,r,o,s,a,l){var c=this.commands,u=this.params,d=c.length;e.cubicArc(c,u,t,n,i,r,o,s,a,l);var h=u[u.length-2],p=u[u.length-1];this.xy?(c[d]="L",this.xy[0]=h,this.xy[1]=p):this.xy=[h,p]},e.prototype.deCasteljau=function(e,t){var n=e.length;if(n<2||n%2==1)throw new Error("Fewer than two points or not an even count.");if(2===n||0===t)return e.slice(0,2);if(1===t)return e.slice(-2);for(var i=[],r=n-2,o=0;o<r;o+=2)i.push((1-t)*e[o]+t*e[o+2],(1-t)*e[o+1]+t*e[o+3]);return this.deCasteljau(i,t)},e.prototype.approximateCurve=function(e,t){var n=this.deCasteljau(e,0);this.moveTo(n[0],n[1]);for(var i=1/t,r=i;r<=1;r+=i){var o=this.deCasteljau(e,r);this.lineTo(o[0],o[1])}},e.prototype.quadraticCurveTo=function(e,t,n,i){this.xy||this.moveTo(e,t),this.cubicCurveTo((this.xy[0]+2*e)/3,(this.xy[1]+2*t)/3,(2*e+n)/3,(2*t+i)/3,n,i)},e.prototype.cubicCurveTo=function(e,t,n,i,r,o){this.xy||this.moveTo(e,t),this.commands.push("C"),this.params.push(e,t,n,i,r,o),this.xy[0]=r,this.xy[1]=o},Object.defineProperty(e.prototype,"closedPath",{get:function(){return this._closedPath},enumerable:!0,configurable:!0}),e.prototype.closePath=function(){this.xy&&(this.xy=void 0,this.commands.push("Z"),this._closedPath=!0)},e.prototype.clear=function(){this.commands.length=0,this.params.length=0,this.xy=void 0,this._closedPath=!1},e.prototype.isPointInPath=function(e,t){for(var n=this.commands,i=this.params,r=n.length,o=NaN,s=NaN,a=0,l=0,c=0,u=0,d=0;u<r;u++)switch(n[u]){case"M":isNaN(o)||OD(o,s,a,l,-1e4,-1e4,e,t)&&c++,o=a=i[d++],s=l=i[d++];break;case"L":OD(a,l,a=i[d++],l=i[d++],-1e4,-1e4,e,t)&&c++;break;case"C":c+=kD(a,l,i[d++],i[d++],i[d++],i[d++],a=i[d++],l=i[d++],-1e4,-1e4,e,t).length;break;case"Z":isNaN(o)||OD(o,s,a,l,-1e4,-1e4,e,t)&&c++}return c%2==1}
1,e.fromString=function(t){var n=new e;return n.setFromString(t),n},e.parseSvgPath=function(t){return t.trim().split(e.splitCommandsRe).map((function(t){var n=t.match(e.matchParamsRe);return{command:t.substr(0,1),params:n?n.map(parseFloat):[]}}))},e.prettifySvgPath=function(t){return e.parseSvgPath(t).map((function(e){return e.command+e.params.join(",")})).join("\n")},e.prototype.setFromString=function(t){var n,i,r,o,s,a=this;function l(){s.match(e.quadraticCommandRe)||(r=n,o=i)}function c(){s.match(e.cubicCommandRe)||(r=n,o=i)}this.clear(),e.parseSvgPath(t).forEach((function(e){var t=e.params,u=t.length,d=0;switch(e.command){case"M":for(a.moveTo(n=t[d++],i=t[d++]);d<u;)a.lineTo(n=t[d++],i=t[d++]);break;case"m":for(a.moveTo(n+=t[d++],i+=t[d++]);d<u;)a.lineTo(n+=t[d++],i+=t[d++]);break;case"L":for(;d<u;)a.lineTo(n=t[d++],i=t[d++]);break;case"l":for(;d<u;)a.lineTo(n+=t[d++],i+=t[d++]);break;case"C":for(;d<u;)a.cubicCurveTo(t[d++],t[d++],r=t[d++],o=t[d++],n=t[d++],i=t[d++]);break;case"c":for(;d<u;)a.cubicCurveTo(n+t[d++],i+t[d++],r=n+t[d++],o=i+t[d++],n+=t[d++],i+=t[d++]);break;case"S":for(c();d<u;)a.cubicCurveTo(n+n-r,i+i-o,r=t[d++],o=t[d++],n=t[d++],i=t[d++]);break;case"s":for(c();d<u;)a.cubicCurveTo(n+n-r,i+i-o,r=n+t[d++],o=i+t[d++],n+=t[d++],i+=t[d++]);break;case"Q":for(;d<u;)a.quadraticCurveTo(r=t[d++],o=t[d++],n=t[d++],i=t[d++]);break;case"q":for(;d<u;)a.quadraticCurveTo(r=n+t[d++],o=i+t[d++],n+=t[d++],i+=t[d++]);break;case"T":for(l();d<u;)a.quadraticCurveTo(r=n+n-r,o=i+i-o,n=t[d++],i=t[d++]);break;case"t":for(l();d<u;)a.quadraticCurveTo(r=n+n-r,o=i+i-o,n+=t[d++],i+=t[d++]);break;case"A":for(;d<u;)a.arcTo(t[d++],t[d++],t[d++]*Math.PI/180,t[d++],t[d++],n=t[d++],i=t[d++]);break;case"a":for(;d<u;)a.arcTo(t[d++],t[d++],t[d++]*Math.PI/180,t[d++],t[d++],n+=t[d++],i+=t[d++]);break;case"Z":case"z":a.closePath();break;case"H":for(;d<u;)a.lineTo(n=t[d++],i);break;case"h":for(;d<u;)a.lineTo(n+=t[d++],i);break;case"V":for(;d<u;)a.lineTo(n,i=t[d++]);break;case"v":for(;d<u;)a.lineTo(n,i+=t[d++])}s=e.command}))},e.prototype.toString=function(){for(var e=this.commands,t=this.params,n=e.length,i=[],r=0,o=0;r<n;r++)switch(e[r]){case"M":i.push("M"+t[o++]+","+t[o++]);break;case"L":i.push("L"+t[o++]+","+t[o++]);break;case"C":i.push("C"+t[o++]+","+t[o++]+" "+t[o++]+","+t[o++]+" "+t[o++]+","+t[o++]);break;case"Z":i.push("Z")}return i.join("")},e.prototype.toPrettyString=function(){return e.prettifySvgPath(this.toString())},e.prototype.toSvg=function(){return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 50 50" version="1.1" xmlns="'+e.xmlns+'">\n    <path d="'+this.toString()+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toDebugSvg=function(){var t=e.prettifySvgPath(this.toString());return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="'+e.xmlns+'">\n    <path d="'+t+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toCubicPaths=function(){var e,t,n,i,r,o=[],s=this.params,a=0;return this.commands.forEach((function(l){switch(l){case"M":e=[t=i=s[a++],n=r=s[a++]],o.push(e);break;case"L":var c=s[a++],u=s[a++];e.push((i+i+c)/3,(r+r+u)/3,(i+c+c)/3,(r+u+u)/3,i=c,r=u);break;case"C":e.push(s[a++],s[a++],s[a++],s[a++],i=s[a++],r=s[a++]);break;case"Z":e.push((i+i+t)/3,(r+r+n)/3,(i+t+t)/3,(r+n+n)/3,i=t,r=n)}})),o},e.cubicPathToString=function(e){var t=e.length;if(!(t%2==0&&(t/2-1)/2>=1))throw new Error("Invalid path.");return"M"+e.slice(0,2).join(",")+"C"+e.slice(2).join(",")},e.splitCommandsRe=/(?=[AaCcHhLlMmQqSsTtVvZz])/g,e.matchParamsRe=/-?[0-9]*\.?\d+/g,e.quadraticCommandRe=/[QqTt]/,e.cubicCommandRe=/[CcSs]/,e.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>',e.xmlns="http://www.w3.org/2000/svg",e}(),MD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),AD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new RD,t._dirtyPath=!0,t._svgPath="",t}return MD(t,e),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"svgPath",{get:function(){return this._svgPath},set:function(e){this._svgPath!==e&&(this._svgPath=e,this.path.setFromString(e),this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.path.closedPath&&this.path.isPointInPath(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.updatePath=function(){},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.dirtyPath&&(this.updatePath(),this.dirtyPath=!1),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Path",t}(aD);function PD(e,t,n){return void 0===n&&(n=1e-10),Math.abs(e-t)<n}function LD(e,t){void 0===t&&(t=2);var n=Math.floor(Math.log(Math.abs(e))/Math.LN10);return n>=0||!isFinite(n)?e.toFixed(t):e.toFixed(Math.abs(n)-1+t)}var ND,FD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(e){e[e.Open=0]="Open",e[e.Chord=1]="Chord",e[e.Round=2]="Round"}(ND||(ND={}));var jD,VD=function(e){function t(){var t=e.call(this)||this;return t._centerX=0,t._centerY=0,t._radiusX=10,t._radiusY=10,t._startAngle=0,t._endAngle=2*Math.PI,t._counterClockwise=!1,t._type=ND.Open,t.restoreOwnStyles(),t}return FD(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusX",{get:function(){return this._radiusX},set:function(e){this._radiusX!==e&&(this._radiusX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){return this._radiusY},set:function(e){this._radiusY!==e&&(this._radiusY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPie",{get:function(){return PD(DD(this.startAngle),DD(this.endAngle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counterClockwise",{get:function(){return this._counterClockwise},set:function(e){this._counterClockwise!==e&&(this._counterClockwise=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type!==e&&(this._type=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.cubicArc(this.centerX,this.centerY,this.radiusX,this.radiusY,0,this.startAngle,this.endAngle,this.counterClockwise?1:0),this.type===ND.Chord?e.closePath():this.type!==ND.Round||this.fullPie||(e.lineTo(this.centerX,this.centerY),e.closePath())},t.prototype.computeBBox=function(){return new eD(this.centerX-this.radiusX,this.centerY-this.radiusY,2*this.radiusX,2*this.radiusY)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),i=this.computeBBox();return this.type!==ND.Open&&i.containsPoint(n.x,n.y)&&this.path.isPointInPath(n.x,n.y)},t.className="Arc",t.defaultStyles=rD(aD.defaultStyles,{lineWidth:1,fillStyle:null}),t}(AD);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(jD||(jD={}));var HD,YD,BD=function(){this.width=1,this.size=6,this.color="rgba(195, 195, 195, 1)",this.count=10},GD=function(){function e(){this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)",this.rotation=0,this.mirrored=!1,this.parallel=!1}return Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format!==e&&(this._format=e,this.onFormatChange&&this.onFormatChange(e))},enumerable:!0,configurable:!0}),e}(),WD=function(){function e(e){this.lineNode=new ED,this.group=new _D,this.line={width:1,color:"rgba(195, 195, 195, 1)"},this.tick=new BD,this.label=new GD,this.translation={x:0,y:0},this.rotation=0,this._title=void 0,this._gridLength=0,this.gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.scale=e,this.groupSelection=wD.select(this.group).selectAll(),this.label.onFormatChange=this.onTickFormatChange.bind(this),this.group.append(this.lineNode),this.onTickFormatChange()}return Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e},enumerable:!0,configurable:!0}),e.prototype.onTickFormatChange=function(e){e?this.scale.tickFormat&&(this.tickFormatter=this.scale.tickFormat(10,e)):this.tickFormatter=this.scale.tickFormat?this.scale.tickFormat(10,void 0):void 0},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&this.group.removeChild(t.node),e&&(e.node.rotation=-Math.PI/2,this.group.appendChild(e.node)),this._title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.groupSelection=this.groupSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(e){this._radialGrid!==e&&(this._radialGrid=e,this.groupSelection=this.groupSelection.remove().setData([]))},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this,n=t.group,i=t.scale,r=t.tick,o=t.label,s=t.gridStyle,a=xD(this.rotation),l=o.parallel,c=DD(xD(o.rotation));n.translationX=this.translation.x,n.translationY=this.translation.y,n.rotation=a;var u=(i.bandwidth||0)/2,d=o.mirrored?1:-1,h=DD(a),p=!c&&h>=0&&h<=Math.PI?-1:1,f=DD(a-Math.PI/2),m=!c&&f>=0&&f<=Math.PI?-1:1,g=c>=0&&c<=Math.PI?-1:1,y=i.ticks(this.tick.count),v=this.groupSelection.setData(y);v.exit.remove();var _=v.enter.append(_D);_.append(ED).each((function(e){return e.tag=jD.Tick})),this.gridLength&&(this.radialGrid?_.append(VD).each((function(e){return e.tag=jD.GridLine})):_.append(ED).each((function(e){return e.tag=jD.GridLine}))),_.append(uD);var b,w=v.merge(_);
1if(w.attrFn("translationY",(function(e,t){return Math.round(i.convert(t)+u)})),w.selectByTag(jD.Tick).each((function(e){e.strokeWidth=r.width,e.stroke=r.color})).attr("x1",d*r.size).attr("x2",0).attr("y1",0).attr("y2",0),this.gridLength&&s.length){var C=s.length,E=void 0;if(this.radialGrid){var S=(b=xD(this.gridLength),b%=SD,(b+=SD)!==SD&&(b%=SD),b);E=w.selectByTag(jD.GridLine).each((function(e,t){var n=Math.round(i.convert(t)+u);e.centerX=0,e.centerY=i.range[0]-n,e.endAngle=S,e.radiusX=n,e.radiusY=n}))}else E=w.selectByTag(jD.GridLine).each((function(t){t.x1=0,t.x2=-d*e.gridLength,t.y1=0,t.y2=0,t.visible=Math.abs(t.parent.translationY-i.range[0])>1}));E.each((function(e,t,n){var i=s[n%C];e.stroke=i.stroke,e.strokeWidth=r.width,e.lineDash=i.lineDash,e.fill=void 0}))}var D=this.tickFormatter,x=y.fractionDigits>=0?y.fractionDigits:0,T=w.selectByClass(uD).each((function(e,t,n){e.fontStyle=o.fontStyle,e.fontWeight=o.fontWeight,e.fontSize=o.fontSize,e.fontFamily=o.fontFamily,e.fill=o.color,e.textBaseline=l&&!c?d*p==-1?"hanging":"bottom":"middle",e.text=o.formatter?o.formatter({value:x>=0?t:String(t),index:n,fractionDigits:x,formatter:D}):x?t.toFixed(x):D?D(t):String(t),e.textAlign=l?c?d*g==-1?"end":"start":"center":d*m==-1?"end":"start"})),O=d*(r.size+o.padding),k=l?p*Math.PI/2:-1===m?Math.PI:0;T.each((function(e){e.x=O,e.rotationCenterX=O,e.rotation=k+c})),this.groupSelection=w;var I=this.lineNode;I.x1=0,I.x2=0,I.y1=i.range[0],I.y2=i.range[i.range.length-1],I.strokeWidth=this.line.width,I.stroke=this.line.color,I.visible=y.length>0;var R=this.title,M=!1;if(R&&R.enabled){M=!0;var A=R.padding.bottom,P=R.node,L=this.computeBBox({excludeTitle:!0}),N=-1===d&&h>Math.PI&&h<2*Math.PI?-1:1;P.rotation=N*d*Math.PI/2,P.x=N*d*(I.y1+I.y2)/2,P.y=-1===d?N*(-A-L.width+Math.max(L.x+L.width,0)):-A-L.width-Math.min(L.x,0),P.textBaseline=1===N?"bottom":"top"}R&&(R.node.visible=M)},e.prototype.computeBBox=function(e){var t=this.title,n=this.lineNode,i=this.groupSelection.selectByClass(uD),r=1/0,o=-1/0,s=1/0,a=-1/0;if(i.each((function(e){e.computeTransformMatrix();var t=tD.flyweight(e.matrix),n=e.parent;n.computeTransformMatrix(),t.preMultiplySelf(n.matrix);var i=e.computeBBox();if(i){var l=t.transformBBox(i);r=Math.min(r,l.x),o=Math.max(o,l.x+l.width),s=Math.min(s,l.y),a=Math.max(a,l.y+l.height)}})),t&&t.enabled&&(!e||!e.excludeTitle)){var l=t.node;l.computeTransformMatrix();var c=tD.flyweight(l.matrix),u=l.computeBBox();if(u){var d=c.transformBBox(u);r=Math.min(r,d.x),o=Math.max(o,d.x+d.width),s=Math.min(s,d.y),a=Math.max(a,d.y+d.height)}}return r=Math.min(r,0),o=Math.max(o,0),s=Math.min(s,n.y1,n.y2),a=Math.max(a,n.y1,n.y2),new eD(r,s,o-r,a-s)},e}(),UD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function zD(e){return e===HD.X?HD.Y:HD.X}!function(e){e.X="x",e.Y="y"}(HD||(HD={})),function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.Angle="angle",e.Radius="radius"}(YD||(YD={}));var qD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.keys=[],t.boundSeries=[],t}return UD(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){if(this._position!==e)switch(this._position=e,e){case YD.Top:this.direction=HD.X,this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case YD.Right:this.direction=HD.Y,this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case YD.Bottom:this.direction=HD.X,this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case YD.Left:this.direction=HD.Y,this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1}},enumerable:!0,configurable:!0}),t}(WD),KD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$D=function(e){function t(){var t=new yD;return t.paddingInner=.2,t.paddingOuter=.3,e.call(this,t)||this}
1return KD(t,e),t.className="CategoryAxis",t.type="category",t}(qD);function QD(e,t){for(var n=0,i=e.length;n<i;n++){var r=e[n];if(t(r,n,e))return r}}function XD(e){for(var t,n,i,r=e.length,o=-1;++o<r;)if(null!=(t=e[o])&&t>=t&&isFinite(t))for(n=i=t;++o<r;)null!=(t=e[o])&&isFinite(t)&&(n>t&&(n=t),i<t&&(i=t));return void 0===n||void 0===i?void 0:[n,i]}function JD(e){var t=XD(e);if(void 0!==t){var n=t[0],i=t[1],r=n instanceof Date?n.getTime():n,o=i instanceof Date?i.getTime():i;return"number"==typeof r&&isFinite(r)&&"number"==typeof o&&isFinite(o)?[r,o]:void 0}}function ZD(e){for(var t=0,n=0,i=0,r=e;i<r.length;i++){var o=r[i];o<0?t+=o:n+=o}return{min:t,max:n}}function ex(e){for(var t=0,n=0,i=0,r=e;i<r.length;i++){var o=r[i];o.min<t&&(t=o.min),o.max>n&&(n=o.max)}return{min:t,max:n}}var tx=function(){function e(e,t,n){void 0===e&&(e=""),void 0===n&&(n=0),this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.screenX=0,this.screenY=0,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.label=e,this.parent=t,this.depth=t?t.depth+1:0,this.number=n}return e.prototype.getLeftSibling=function(){return this.number>0&&this.parent?this.parent.children[this.number-1]:void 0},e.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},e.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},e.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},e.prototype.getSiblings=function(){var e=this;return this.parent?this.parent.children.filter((function(t,n){return n!==e.number})):[]},e}();function nx(e,t,n){var i=n/(t.number-e.number);t.change-=i,t.shift+=n,e.change+=i,t.prelim+=n,t.mod+=n}function ix(e,t,n){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:n}var rx=function(){function e(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return e.prototype.update=function(e,t){var n=t(e),i=n.x,r=n.y;i>this.right&&(this.right=i),i<this.left&&(this.left=i),r>this.bottom&&(this.bottom=r),r<this.top&&(this.top=r)},e}();var ox,sx=function(){function e(){this.dimensions=new rx,this.leafCount=0,this.nodes=[],this.leafNodes=[],this.nonLeafNodes=[],this.depth=0}return e.prototype.update=function(e){this.dimensions.update(e,(function(e){return{x:e.x,y:e.y}})),e.children.length?this.nonLeafNodes.push(e):(this.leafCount++,this.leafNodes.push(e)),e.depth>this.depth&&(this.depth=e.depth),this.nodes.push(e)},e.prototype.resize=function(e,t,n,i,r){void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=!1);var o=this.leafCount-1,s=this.depth,a=this.dimensions,l=1,c=1;e>0&&o&&(l=e/o/((a.right-a.left)/o),r&&(l=-l)),t>0&&s&&(c=t/s/((a.bottom-a.top)/s));var u=new rx;this.nodes.forEach((function(e){e.screenX=e.x*l,e.screenY=e.y*c,u.update(e,(function(e){return{x:e.screenX,y:e.screenY}}))}));var d=-u.left,h=-u.top;this.nodes.forEach((function(e){e.screenX+=d+n,e.screenY+=h+i}))},e}(),ax=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),lx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.grid=!1,t}return ax(t,e),t}(GD),cx=function(e){function t(){var t=e.call(this,new yD)||this;t.id=nD(t),t.tickScale=new yD,t.group=new _D,t.longestSeparatorLength=0,t.translation={x:0,y:0},t.rotation=0,t.line={width:1,color:"rgba(195, 195, 195, 1)"},t.label=new lx,t.labelColor="rgba(87, 87, 87, 1)";var n=t.group,i=t.scale,r=t.tickScale;return i.paddingOuter=.1,i.paddingInner=2*i.paddingOuter,r.paddingInner=1,r.paddingOuter=0,t.gridLineSelection=wD.select(n).selectAll(),t.axisLineSelection=wD.select(n).selectAll(),t.separatorSelection=wD.select(n).selectAll(),t.labelSelection=wD.select(n).selectAll(),t}return ax(t,e),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e;var t,n,i=function(e,t){void 0===t&&(t=!0);var n=new tx,i=0;return t&&e.forEach((function(e){return i=Math.max(i,e.labels.length)})),e.forEach((function(e){if(t)for(;e.labels.length<i;)e.labels.unshift("");!function(e,t){var n=t.labels.slice().reverse(),i=n.length-1;
1n.forEach((function(t,n){var r=e.children,o=QD(r,(function(e){return e.label===t})),s=n!==i;if(o&&s)e=o;else{var a=new tx(t,e);a.number=r.length,r.push(a),s&&(e=a)}}))}(n,e)})),n}(e);this.tickTreeLayout=(t=i,n=new sx,function e(t,n){var i=t.children;if(i.length){var r=i[0];i.forEach((function(t){e(t,n),r=function(e,t,n){var i=e.getLeftSibling();if(i){for(var r=e,o=e,s=i,a=o.getLeftmostSibling(),l=o.mod,c=r.mod,u=s.mod,d=a.mod;s.nextRight()&&o.nextLeft();){s=s.nextRight(),o=o.nextLeft(),a=a.nextLeft(),(r=r.nextRight()).ancestor=e;var h=s.prelim+u-(o.prelim+l)+n;h>0&&(nx(ix(s,e,t),e,h),l+=h,c+=h),u+=s.mod,l+=o.mod,d+=a.mod,c+=r.mod}s.nextRight()&&!r.nextRight()?(r.thread=s.nextRight(),r.mod+=u-c):(o.nextLeft()&&!a.nextLeft()&&(a.thread=o.nextLeft(),a.mod+=l-d),t=e)}return t}(t,r,n)})),function(e){var t=e.children;if(t)for(var n=0,i=0,r=t.length-1;r>=0;r--){var o=t[r];o.prelim+=n,o.mod+=n,n+=o.shift+(i+=o.change)}}(t);var o=(i[0].prelim+i[i.length-1].prelim)/2;(s=t.getLeftSibling())?(t.prelim=s.prelim+n,t.mod=t.prelim-o):t.prelim=o}else{var s=t.getLeftSibling();t.prelim=s?s.prelim+n:0}}(t,1),function e(t,n,i){t.x=t.prelim+n,t.y=t.depth,i.update(t),t.children.forEach((function(r){return e(r,n+t.mod,i)}))}(t,-t.prelim,n),function e(t){var n=t.children,i=0;n.forEach((function(t){e(t),t.children.length?i+=t.leafCount:i++})),t.leafCount=i,n.length?(t.subtreeLeft=n[0].subtreeLeft,t.subtreeRight=n[t.children.length-1].subtreeRight,t.x=(t.subtreeLeft+t.subtreeRight)/2):(t.subtreeLeft=t.x,t.subtreeRight=t.x)}(t),n);var r=e.slice();r.push(""),this.tickScale.domain=r,this.resizeTickTree()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e,this.tickScale.range=e,this.resizeTickTree()},enumerable:!0,configurable:!0}),t.prototype.resizeTickTree=function(){var e=this.scale,t=e.domain.length?[e.convert(e.domain[0]),e.convert(e.domain[e.domain.length-1])]:e.range,n=this.tickTreeLayout,i=this.lineHeight;n&&n.resize(Math.abs(t[1]-t[0]),n.depth*i,(Math.min(t[0],t[1])||0)+(e.bandwidth||0)/2,-n.depth*i,t[1]-t[0]<0)},Object.defineProperty(t.prototype,"lineHeight",{get:function(){return 1.5*this.label.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineSelection=this.gridLineSelection.remove().setData([]),this.labelSelection=this.labelSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),t.prototype.update=function(){var e=this,t=this.group,n=this.scale,i=this.label,r=this.tickScale,o=n.range[0],s=n.range[1],a=Math.abs(s-o)/n.domain.length||0,l=i.parallel,c=xD(this.rotation),u=Math.abs(Math.cos(c))<1e-8,d=DD(xD(this.label.rotation));t.translationX=this.translation.x,t.translationY=this.translation.y,t.rotation=c;var h=this.title;h&&(h.node.visible=!1);var p=this.lineHeight,f=this.tickTreeLayout,m=n.ticks(),g=f?f.nodes:[],y=!!f&&f.depth>1,v=r.ticks(),_=i.mirrored?1:-1,b=DD(c),w=!d&&b>=0&&b<=Math.PI?-1:1,C=DD(c-Math.PI/2),E=!d&&C>=0&&C<=Math.PI?-1:1,S=this.gridLineSelection.setData(this.gridLength?v:[]);S.exit.remove();var D=S.enter.append(ED),x=S.merge(D),T=this.labelSelection.setData(g);T.exit.remove();var O=T.enter.append(uD),k=T.merge(O),I=i.formatter,R=0;k.each((function(e,t,n){e.fontStyle=i.fontStyle,e.fontWeight=i.fontWeight,e.fontSize=i.fontSize,e.fontFamily=i.fontFamily,e.fill=i.color,e.textBaseline=-1===w?"bottom":"hanging",h&&0===n?(e.text=h.text,e.fontSize=h.fontSize,e.fontStyle=h.fontStyle,e.fontWeight=h.fontWeight,e.fontFamily=h.fontFamily,e.textBaseline="hanging",e.visible=m.length>0):e.text=I?I({value:String(t.label),index:n}):String(t.label),e.textAlign="center",e.translationX=t.screenY-.25*i.fontSize,e.translationY=t.screenX;var r=e.computeBBox();r&&r.width>R&&(R=r.width)}));var M=_*i.padding,A=l?w*Math.PI/2:-1===E?Math.PI:0,P=this.label.grid,L=[];k.each((function(t,n,i){if(t.x=M,t.rotationCenterX=M,n.children.length?(t.translationX-=R-p+e.label.padding,t.rotation=u?A:-Math.PI/2):(t.rotation=d,t.textAlign="end",t.textBaseline="middle"),n.parent&&y){var r=n.children.length?n.screenX-n.leafCount*a/2:n.screenX-a/2;if(n.children.length){var o=-R-2*e.label.padding+n.screenY;L.push({y:r,x1:o+p,x2:o,toString:function(){return String(i)}})}else(n.number!==n.children.length-1||P)&&L.push({y:r,x1:0,x2:-R-2*e.label.padding,toString:function(){return String(i)}})}}));var N=0;
1L.forEach((function(e){return N=Math.min(N,e.x2)})),this.longestSeparatorLength=Math.abs(N),L.push({y:Math.max(o,s),x1:0,x2:N,toString:function(){return String(L.length)}});var F=this.separatorSelection.setData(L);F.exit.remove();var j=F.enter.append(ED),V=F.merge(j);this.separatorSelection=V,V.each((function(t,n){t.x1=n.x1,t.x2=n.x2,t.y1=n.y,t.y2=n.y,t.stroke=e.tick.color,t.fill=void 0,t.strokeWidth=1})),this.gridLineSelection=x,this.labelSelection=k;for(var H=f?f.depth+1:1,Y=[],B=0;B<H;B++)Y.push(B);var G=this.axisLineSelection.setData(Y);G.exit.remove();var W=G.enter.append(ED),U=G.merge(W);if(this.axisLineSelection=U,U.each((function(t,n,i){var r=i>0?-R-2*e.label.padding-(i-1)*p:0;t.x1=r,t.x2=r,t.y1=o,t.y2=s,t.strokeWidth=e.line.width,t.stroke=e.line.color,t.visible=m.length>0&&(0===i||P&&y)})),this.gridLength){var z=this.gridStyle,q=z.length;x.each((function(t,n,i){var s=Math.round(r.convert(n));t.x1=0,t.x2=-_*e.gridLength,t.y1=s,t.y2=s,t.visible=Math.abs(t.parent.translationY-o)>1;var a=z[i%q];t.stroke=a.stroke,t.strokeWidth=e.tick.width,t.lineDash=a.lineDash,t.fill=void 0}))}},t.prototype.computeBBox=function(e){var t=!e||!e.excludeTitle,n=1/0,i=-1/0,r=1/0,o=-1/0;return this.labelSelection.each((function(e,s,a){if(a>0||t){e.computeTransformMatrix();var l=tD.flyweight(e.matrix),c=e.computeBBox();if(c){var u=l.transformBBox(c);n=Math.min(n,u.x),i=Math.max(i,u.x+u.width),r=Math.min(r,u.y),o=Math.max(o,u.y+u.height)}}})),new eD(n,r,Math.max(i-n,this.longestSeparatorLength),o-r)},t.className="GroupedCategoryAxis",t.type="groupedCategory",t}(qD),ux=function(){function e(e,t,n){var i=this;void 0===e&&(e=window.document),this.id=nD(this),this._dirty=!1,this.animationFrameId=0,this._root=null,this._frameIndex=0,this._renderFrameIndex=!1,this.render=function(){var e=i.ctx,t=i.root;i.animationFrameId=0,!t||t.visible?(e.clearRect(0,0,i.width,i.height),t&&(e.save(),t.visible&&t.render(e),e.restore()),i._frameIndex++,i.renderFrameIndex&&(e.fillStyle="white",e.fillRect(0,0,40,15),e.fillStyle="black",e.fillText(i.frameIndex.toString(),0,10)),i.dirty=!1):i.dirty=!1},this.canvas=new lD(e,t,n),this.ctx=this.canvas.context}return Object.defineProperty(e.prototype,"container",{get:function(){return this.canvas.container},set:function(e){this.canvas.container=e},enumerable:!0,configurable:!0}),e.prototype.download=function(e){this.canvas.download(e)},e.prototype.getDataURL=function(e){return this.canvas.getDataURL(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){var n=this;this.canvas.resize(e,t,(function(){return n.dirty=!0}))},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){e&&!this._dirty&&(this.animationFrameId=requestAnimationFrame(this.render)),this._dirty=e},enumerable:!0,configurable:!0}),e.prototype.cancelRender=function(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=0,this._dirty=!1)},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(e){e!==this._root&&(this._root&&this._root._setScene(void 0),this._root=e,e&&(null===e.parent&&e.scene&&e.scene!==this&&(e.scene.root=null),e._setScene(this)),this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.appendPath=function(e){var t=this.ctx,n=e.commands,i=e.params,r=n.length,o=0;t.beginPath();for(var s=0;s<r;s++)switch(n[s]){case"M":t.moveTo(i[o++],i[o++]);break;case"L":t.lineTo(i[o++],i[o++]);break;case"C":t.bezierCurveTo(i[o++],i[o++],i[o++],i[o++],i[o++],i[o++]);break;case"Z":t.closePath()}},Object.defineProperty(e.prototype,"frameIndex",{get:function(){return this._frameIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderFrameIndex",{get:function(){return this._renderFrameIndex},set:function(e){this._renderFrameIndex!==e&&(this._renderFrameIndex=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.className="Scene",e}(),dx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(e){e[e.Content=0]="Content",e[e.Border=1]="Border"}(ox||(ox={}));var hx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._x=0,t._y=0,t._width=10,t._height=10,t._radius=0,t._crisp=!1,t.effectiveStrokeWidth=aD.defaultStyles.strokeWidth,t._sizing=ox.Content,t}return dx(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width}
1,set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},set:function(e){this._radius!==e&&(this._radius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crisp",{get:function(){return this._crisp},set:function(e){this._crisp!==e&&(this._crisp=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.crisp||this.sizing===ox.Border?this.dirtyPath=!0:(this.effectiveStrokeWidth=e,this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizing",{get:function(){return this._sizing},set:function(e){this._sizing!==e&&(this._sizing=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.sizing===ox.Border,t=this.path;t.clear();var n,i=this.x,r=this.y,o=this.width,s=this.height;if(e){var a=o/2,l=s/2;n=Math.min(this.strokeWidth,a,l),i=Math.min(i+n/2,i+a),r=Math.min(r+n/2,r+l),o=Math.max(o-n,0),s=Math.max(s-n,0)}else n=this.strokeWidth;if(this.effectiveStrokeWidth=n,this.crisp&&!e){var c=Math.floor(n)%2/2;t.rect(Math.floor(i)+c,Math.floor(r)+c,Math.floor(o)+Math.floor(i%1+o%1),Math.floor(s)+Math.floor(r%1+s%1))}else t.rect(i,r,o,s)},t.prototype.computeBBox=function(){return new eD(this.x,this.y,this.width,this.height)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.computeBBox().containsPoint(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.fillStroke=function(e){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var n=this.fillShadow;n&&n.enabled&&(e.shadowColor=n.color,e.shadowOffsetX=n.xOffset*t,e.shadowOffsetY=n.yOffset*t,e.shadowBlur=n.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.effectiveStrokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.effectiveStrokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}},t.className="Rect",t}(AD),px=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),fx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._x=0,t._y=0,t._size=12,t}return px(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this._size!==e&&(this._size=Math.abs(e),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){var e=this.size,t=e/2;return new eD(this.x-t,this.y-t,e,e)},t}(AD),mx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mx(t,e),t.prototype.updatePath=function(){var e=this.path,t=this.x,n=this.y,i=this.size/2;e.clear(),e.moveTo(t-i,n-i),e.lineTo(t+i,n-i),e.lineTo(t+i,n+i),e.lineTo(t-i,n+i),e.closePath()},t.className="Square",t}(fx),yx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vx=function(e){function t(){var t=e.call(this)||this;t.label=new uD,t._marker=new gx,t._markerSize=15,t._spacing=8;var n=t.label;return n.textBaseline="middle",n.fontSize=12,n.fontFamily="Verdana, sans-serif",n.fill="black",n.y=lD.has.textMetrics?1:0,t.append([t.marker,n]),t.update(
1),t}return yx(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this.label.fontStyle},set:function(e){this.label.fontStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this.label.fontWeight},set:function(e){this.label.fontWeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this.label.fontSize},set:function(e){this.label.fontSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.label.fontFamily},set:function(e){this.label.fontFamily=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.label.fill},set:function(e){this.label.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this.removeChild(this._marker),this._marker=e,this.appendChild(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerFill",{get:function(){return this.marker.fill},set:function(e){this.marker.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStroke",{get:function(){return this.marker.stroke},set:function(e){this.marker.stroke=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this.marker.strokeWidth},set:function(e){this.marker.strokeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerFillOpacity",{get:function(){return this.marker.fillOpacity},set:function(e){this.marker.fillOpacity=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeOpacity",{get:function(){return this.marker.strokeOpacity},set:function(e){this.marker.strokeOpacity=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.marker.opacity},set:function(e){this.marker.opacity=e,this.label.opacity=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this._spacing},set:function(e){this._spacing!==e&&(this._spacing=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.update=function(){var e=this.markerSize;this.marker.size=e,this.label.x=e/2+this.spacing},t.className="MarkerLabel",t}(_D),_x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _x(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,i=this.size/2;n.clear(),n.cubicArc(e,t,i,i,0,0,2*Math.PI,0),n.closePath()},t.className="Circle",t}(fx),wx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wx(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,i=this.size/4.2;n.clear(),n.moveTo(e-=i,t),n.lineTo(e-=i,t-=i),n.lineTo(e+=i,t-=i),n.lineTo(e+=i,t+=i),n.lineTo(e+=i,t-=i),n.lineTo(e+=i,t+=i),n.lineTo(e-=i,t+=i),n.lineTo(e+=i,t+=i),n.lineTo(e-=i,t+=i),n.lineTo(e-=i,t-=i),n.lineTo(e-=i,t+=i),n.lineTo(e-=i,t-=i),n.closePath()},t.className="Cross",t}(fx),Ex=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ex(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,i=this.size/2;n.clear(),n.moveTo(e,t-=i),n.lineTo(e+=i,t+=i),n.lineTo(e-=i,t+=i),n.lineTo(e-=i,t-=i),n.lineTo(e+=i,t-=i),n.closePath()},t.className="Diamond",t}(fx),Dx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dx(t,e),t.prototype.rad=function(e){return e/180*Math.PI},t.prototype.updatePath=function(){var e=this.x,t=this.path,n=this.rad,i=this.size/4,r=this.y+i/2;t.clear(),t.cubicArc(e-i,r-i,i,i,0,n(130),n(330),0),t.cubicArc(e+i,r-i,i,i,0,n(220),n(50),0
1),t.lineTo(e,r+i),t.closePath()},t.className="Heart",t}(fx),Tx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ox=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tx(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,i=this.size/3,r=i/2;n.clear(),n.moveTo(e-=r,t-=r),n.lineTo(e,t-=i),n.lineTo(e+=i,t),n.lineTo(e,t+=i),n.lineTo(e+=i,t),n.lineTo(e,t+=i),n.lineTo(e-=i,t),n.lineTo(e,t+=i),n.lineTo(e-=i,t),n.lineTo(e,t-=i),n.lineTo(e-=i,t),n.lineTo(e,t-=i),n.closePath()},t.className="Plus",t}(fx),kx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ix=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kx(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,i=1.1*this.size;n.clear(),n.moveTo(e,t-=.48*i),n.lineTo(e+=.5*i,t+=.87*i),n.lineTo(e-=i,t),n.closePath()},t.className="Triangle",t}(fx);function Rx(e){if(void 0===e&&(e=gx),"string"==typeof e)switch(e){case"circle":return bx;case"cross":return Cx;case"diamond":return Sx;case"heart":return xx;case"plus":return Ox;case"triangle":return Ix;default:return gx}return"function"==typeof e?e:gx}var Mx,Ax,Px=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Lx=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(Mx||(Mx={})),function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left"}(Ax||(Ax={}));var Nx,Fx,jx=function(e){function t(){var t=e.call(this)||this;return t.id=nD(t),t.group=new _D,t.itemSelection=wD.select(t.group).selectAll(),t.oldSize=[0,0],t.data=[],t.enabled=!0,t.orientation=Mx.Vertical,t.position=Ax.Right,t.spacing=20,t.layoutHorizontalSpacing=16,t.layoutVerticalSpacing=8,t.itemSpacing=8,t.markerSize=15,t.strokeWidth=1,t.color="black",t.fontSize=12,t.fontFamily="Verdana, sans-serif",t._size=[0,0],t.addPropertyListener("data",t.onDataChange),t.addPropertyListener("enabled",t.onEnabledChange),t.addPropertyListener("position",t.onPositionChange),t.addPropertyListener("markerShape",t.onMarkerShapeChange),t.addEventListener("change",t.update),t}return Px(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.onDataChange=function(e){this.group.visible=e.value.length>0&&this.enabled},t.prototype.onEnabledChange=function(e){this.group.visible=e.value&&this.data.length>0},t.prototype.onPositionChange=function(e){switch(e.value){case"right":case"left":this.orientation=Mx.Vertical;break;case"bottom":case"top":this.orientation=Mx.Horizontal}},t.prototype.onMarkerShapeChange=function(){this.itemSelection=this.itemSelection.setData([]),this.itemSelection.exit.remove()},t.prototype.performLayout=function(e,t){var n=this,i=this.markerShape,r=this.layoutHorizontalSpacing,o=this.layoutVerticalSpacing,s=this.itemSelection.setData(this.data,(function(e,t){var n=Rx(i||t.marker.shape);return t.id+"-"+t.itemId+"-"+n.name}));s.exit.remove();var a=s.enter.append(vx).each((function(e,t){var n=Rx(i||t.marker.shape);e.marker=new n}
1)),l=this.itemSelection=s.merge(a),c=l.size,u=[];l.each((function(e,t){e.markerSize=n.markerSize,e.fontStyle=n.fontStyle,e.fontWeight=n.fontWeight,e.fontSize=n.fontSize,e.fontFamily=n.fontFamily,e.text=t.label.text,e.spacing=n.itemSpacing,u.push(e.computeBBox())}));var d=u.length&&u[0].height,h=0,p=0,f=0,m=0;switch(this.orientation){case Mx.Horizontal:if(!(isFinite(e)&&e>0))return!1;h=0;var g=0;do{var y=0;g=0,p=0,h++;for(var v=0;v<c;)(w=u[v]).width>p&&(p=w.width),++v%h==0&&(y+=p,p=0,g++);v%h!=0&&(y+=p,g++),f=y+(g-1)*r}while(f>e&&g>1);m=d*h+(h-1)*o;break;case Mx.Vertical:if(!(isFinite(t)&&t>0))return!1;h=2*c;do{h=(h>>1)+h%2,p=0,y=0;var _=0,b=0;for(v=0;v<c;){var w=u[v];b||(_+=w.height),w.width>p&&(p=w.width),++v%h==0&&(y+=p,p=0,b++)}v%h!=0&&(y+=p,b++),f=y+(b-1)*r,m=_+(h-1)*o}while(m>t&&h>1)}var C=(e-f)/2,E=(t-m)/2,S=0,D=0;p=0,l.each((function(e,t,n){e.translationX=Math.floor(C+S),e.translationY=Math.floor(E+D);var i=u[n];i.width>p&&(p=i.width),(n+1)%h==0?(S+=p+r,D=0,p=0):D+=i.height+o})),this.update();var x=this._size,T=this.oldSize;x[0]=f,x[1]=m,x[0]===T[0]&&x[1]===T[1]||(T[0]=x[0],T[1]=x[1])},t.prototype.update=function(){var e=this;this.itemSelection.each((function(t,n){var i=n.marker;t.markerFill=i.fill,t.markerStroke=i.stroke,t.markerStrokeWidth=e.strokeWidth,t.markerFillOpacity=i.fillOpacity,t.markerStrokeOpacity=i.strokeOpacity,t.opacity=n.enabled?1:.5,t.color=e.color}))},t.prototype.getDatumForPoint=function(e,t){var n=this.group.pickNode(e,t);if(n&&n.parent)return n.parent.datum},t.className="Legend",Lx([pD("layoutChange")],t.prototype,"data",void 0),Lx([pD("layoutChange")],t.prototype,"enabled",void 0),Lx([pD("layoutChange")],t.prototype,"orientation",void 0),Lx([pD("layoutChange")],t.prototype,"position",void 0),Lx([pD("layoutChange")],t.prototype,"spacing",void 0),Lx([pD("layoutChange")],t.prototype,"layoutHorizontalSpacing",void 0),Lx([pD("layoutChange")],t.prototype,"layoutVerticalSpacing",void 0),Lx([pD("layoutChange")],t.prototype,"itemSpacing",void 0),Lx([pD("layoutChange")],t.prototype,"markerShape",void 0),Lx([pD("layoutChange")],t.prototype,"markerSize",void 0),Lx([pD("change")],t.prototype,"strokeWidth",void 0),Lx([pD("change")],t.prototype,"color",void 0),Lx([pD("layoutChange")],t.prototype,"fontStyle",void 0),Lx([pD("layoutChange")],t.prototype,"fontWeight",void 0),Lx([pD("layoutChange")],t.prototype,"fontSize",void 0),Lx([pD("layoutChange")],t.prototype,"fontFamily",void 0),t}(hD),Vx=function(){function e(){}return e.init=function(){var e=this,t=window.ResizeObserver;t?this.resizeObserver=new t((function(t){for(var n=0,i=t;n<i.length;n++){var r=i[n],o=r.contentRect,s=o.width,a=o.height;e.checkSize(e.elements.get(r.target),r.target,s,a)}})):window.setInterval((function(){e.elements.forEach((function(t,n){e.checkSize(t,n,n.clientWidth?n.clientWidth:0,n.clientHeight?n.clientHeight:0)}))}),100),this.ready=!0},e.checkSize=function(e,t,n,i){e&&(e.size&&n===e.size.width&&i===e.size.height||(e.size={width:n,height:i},e.cb(e.size,t)))},e.observe=function(e,t){this.ready||this.init(),this.unobserve(e),this.resizeObserver&&this.resizeObserver.observe(e),this.elements.set(e,{cb:t})},e.unobserve=function(e){this.resizeObserver&&this.resizeObserver.unobserve(e),this.elements.delete(e)},e.elements=new Map,e.requestAnimationFrameId=0,e.ready=!1,e}(),Hx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Yx=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Bx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=nD(t),t.group=new _D,t.directions=[HD.X,HD.Y],t.tooltipEnabled=!0,t.data=void 0,t.visible=!0,t.showInLegend=!0,t.scheduleLayout=function(){t.fireEvent({type:"layoutChange"})},t.scheduleData=function(){t.fireEvent({type:"dataChange"})},t}return Hx(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!0,configurable:!0}),t.prototype.getKeys=function(e){var t=this,n=this.directionKeys,i=n&&n[e],r=[];
1return i&&i.forEach((function(e){var n=t[e];n&&(Array.isArray(n)?r.push.apply(r,n):r.push(n))})),r},t.prototype.getNodeData=function(){return[]},t.prototype.fireNodeClickEvent=function(e){},t.prototype.toggleSeriesItem=function(e,t){this.visible=t},t.prototype.onHighlightChange=function(){},t.prototype.fixNumericExtent=function(e,t){if(!e)return[0,1];var n=e[0],i=e[1];return n===i&&(n-=1,i+=1),isFinite(n)&&isFinite(i)||(n=0,i=1),[n,i]},Yx([pD("dataChange")],t.prototype,"data",void 0),Yx([pD("dataChange")],t.prototype,"visible",void 0),Yx([pD("layoutChange")],t.prototype,"showInLegend",void 0),t}(hD),Gx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Wx=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ux=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.shape=bx,t.size=8,t.minSize=8,t.strokeWidth=1,t}return Gx(t,e),Wx([pD("change")],t.prototype,"enabled",void 0),Wx([pD("change")],t.prototype,"shape",void 0),Wx([pD("change")],t.prototype,"size",void 0),Wx([pD("change")],t.prototype,"minSize",void 0),Wx([pD("change")],t.prototype,"fill",void 0),Wx([pD("change")],t.prototype,"stroke",void 0),Wx([pD("change")],t.prototype,"strokeWidth",void 0),t}(hD),zx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qx=function(e){function t(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.directionKeys=((t={})[HD.X]=["xKey"],t[HD.Y]=["yKey"],t),n}return zx(t,e),t}(Bx),Kx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zx(t,e),t}(Ux),$x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qx=function(){return(Qx=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Xx=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Jx=function(e){function t(n){void 0===n&&(n=window.document);var i=e.call(this)||this;i.id=nD(i),i.background=new hx,i.legend=new jx,i.legendAutoPadding=new ZS,i.captionAutoPadding=0,i._container=void 0,i._data=[],i._autoSize=!1,i.padding=new ZS(20),i._axes=[],i._series=[],i._axesChanged=!1,i._seriesChanged=!1,i.layoutCallbackId=0,i._performLayout=function(){var e;i.layoutCallbackId=0,i.pendingSize&&((e=i.scene).resize.apply(e,i.pendingSize),i.pendingSize=void 0),i.background.width=i.width,i.background.height=i.height,i.performLayout(),i.layoutPending||i.fireEvent({type:"layoutDone"})},i.dataCallbackId=0,i.onMouseMove=function(e){var t,n=i.lastPick,r=i.tooltipTracking,o=i.pickSeriesNode(e.offsetX,e.offsetY);if(o&&o.node instanceof aD){var s=o.node;if(t=s.datum,n&&n.datum===t&&(n.node=s),!s.datum.point||!r)return void(n&&n.node===s?o.series.tooltipEnabled&&i.showTooltip(e):i.onSeriesD
1atumPick(e,s.datum,s))}var a=!1;if(r){var l=i.pickClosestSeriesNodeDatum(e.offsetX,e.offsetY);if(l&&l.point){var c=l.point,u=i.scene.canvas,d=l.series.group.inverseTransformPoint(c.x,c.y),h=u.element.getBoundingClientRect();i.onSeriesDatumPick({pageX:Math.round(h.left+window.pageXOffset+d.x),pageY:Math.round(h.top+window.pageYOffset+d.y)},l,t===l?o.node:void 0)}else a=!0}!n||!a&&r||(i.dehighlightDatum(),i.hideTooltip(),i.lastPick=void 0)},i.onMouseOut=function(e){i.toggleTooltip(!1)},i.onClick=function(e){i.checkSeriesNodeClick(),i.checkLegendClick(e)},i._tooltipClass=t.defaultTooltipClass,i.tooltipTracking=!0;var r=new _D,o=i.background;o.fill="white",r.appendChild(o);var s=i._element=n.createElement("div");s.style.boxSizing="border-box",s.style.overflow="hidden",s.style.height="100%";var a=new ux(n);i.scene=a,a.root=r,a.container=s,i.autoSize=!0;var l=i.legend;if(l.addEventListener("layoutChange",i.onLayoutChange,i),l.addPropertyListener("position",i.onLegendPositionChange,i),i.tooltipElement=n.createElement("div"),i.tooltipClass="",n.body.appendChild(i.tooltipElement),t.tooltipDocuments.indexOf(n)<0){var c=n.createElement("style");c.innerHTML='\n.ag-chart-tooltip {\n    display: none;\n    position: absolute;\n    user-select: none;\n    pointer-events: none;\n    white-space: nowrap;\n    z-index: 99999;\n    font: 12px Verdana, sans-serif;\n    color: black;\n    background: rgb(244, 244, 244);\n    border-radius: 5px;\n    box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25);\n}\n\n.ag-chart-tooltip-visible {\n    display: table;\n}\n\n.ag-chart-tooltip-title {\n    font-weight: bold;\n    padding: 7px;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n    color: white;\n    background-color: #888888;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n}\n\n.ag-chart-tooltip-content {\n    padding: 7px;\n    line-height: 1.7em;\n    border-bottom-left-radius: 5px;\n    border-bottom-right-radius: 5px;\n}\n\n.ag-chart-tooltip-arrow::before {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 6px solid #989898;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: #989898;\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n\n.ag-chart-tooltip-arrow::after {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 5px solid black;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: rgb(244, 244, 244);\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n',n.head.insertBefore(c,n.head.querySelector("style")),t.tooltipDocuments.push(n)}return i.setupDomListeners(a.canvas.element),i.addPropertyListener("title",i.onCaptionChange),i.addPropertyListener("subtitle",i.onCaptionChange),i.addEventListener("layoutChange",(function(){return i.layoutPending=!0})),i}return $x(t,e),Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(e){if(this._container!==e){var t=this.element.parentNode;null!=t&&t.removeChild(this.element),e&&e.appendChild(this.element),this._container=e}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.series.forEach((function(t){return t.data=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pendingSize?this.pendingSize[0]:this.scene.width},set:function(e){this.autoSize=!1,this.width!==e&&(this.pendingSize=[e,this.height],this.fireEvent({type:"layoutChange"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pendingSize?this.pendingSize[1]:this.scene.height},set:function(e){this.autoSize=!1,this.height!==e&&(this.pendingSize=[this.width,e],this.fireEvent({type:"layoutChange"}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoSize",{get:function(){return this._autoSize},set:function(e){if(this._autoSize!==e)if(this._autoSize=e,e){var t=this;Vx.observe(this.element,(function(e){e.width===t.width&&e.height===t.height||(t.pen
1dingSize=[e.width,e.height],t.fireEvent({type:"layoutChange"}))})),this.element.style.display="block"}else Vx.unobserve(this.element),this.element.style.display="inline-block"},enumerable:!0,configurable:!0}),t.prototype.download=function(e){this.scene.download(e)},t.prototype.destroy=function(){var e=this.tooltipElement.parentNode;e&&e.removeChild(this.tooltipElement),Vx.unobserve(this.element),this.container=void 0,this.cleanupDomListeners(this.scene.canvas.element),this.scene.container=void 0},t.prototype.onLayoutChange=function(){this.layoutPending=!0},t.prototype.onLegendPositionChange=function(){this.legendAutoPadding.clear(),this.layoutPending=!0},t.prototype.onCaptionChange=function(e){var t=e.value,n=e.oldValue;n&&(n.removeEventListener("change",this.onLayoutChange,this),this.scene.root.removeChild(n.node)),t&&(t.addEventListener("change",this.onLayoutChange,this),this.scene.root.appendChild(t.node))},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axes",{get:function(){return this._axes},set:function(e){var t=this,n=this.scene.root;this._axes.forEach((function(e){return n.removeChild(e.group)})),this._axes=e.filter((function(e){return!e.linkedTo})).concat(e.filter((function(e){return e.linkedTo}))),this._axes.forEach((function(e){return n.insertBefore(e.group,t.seriesRoot)})),this.axesChanged=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){return t.addSeries(e)}))},enumerable:!0,configurable:!0}),t.prototype.scheduleLayout=function(){this.layoutPending=!0},t.prototype.scheduleData=function(){this.dehighlightDatum(),this.dataPending=!0},t.prototype.addSeries=function(e,t){var n=this.series,i=this.seriesRoot;if(n.indexOf(e)<0){var r=t?n.indexOf(t):-1;return r>=0?(n.splice(r,0,e),i.insertBefore(e.group,t.group)):(n.push(e),i.append(e.group)),this.initSeries(e),this.seriesChanged=!0,this.axesChanged=!0,!0}return!1},t.prototype.initSeries=function(e){e.chart=this,e.data||(e.data=this.data),e.addEventListener("layoutChange",this.scheduleLayout,this),e.addEventListener("dataChange",this.scheduleData,this),e.addEventListener("legendChange",this.updateLegend,this),e.addEventListener("nodeClick",this.onSeriesNodeClick,this)},t.prototype.freeSeries=function(e){e.chart=void 0,e.removeEventListener("layoutChange",this.scheduleLayout,this),e.removeEventListener("dataChange",this.scheduleData,this),e.removeEventListener("legendChange",this.updateLegend,this),e.removeEventListener("nodeClick",this.onSeriesNodeClick,this)},t.prototype.addSeriesAfter=function(e,t){var n=this.series,i=this.seriesRoot;if(n.indexOf(e)<0){var r=t?this.series.indexOf(t):-1;r>=0?(r+1<n.length?i.insertBefore(e.group,n[r+1].group):i.append(e.group),this.initSeries(e),n.splice(r+1,0,e)):(n.length>0?i.insertBefore(e.group,n[0].group):i.append(e.group),this.initSeries(e),n.unshift(e)),this.seriesChanged=!0,this.axesChanged=!0}return!1},t.prototype.removeSeries=function(e){var t=this.series.indexOf(e);return t>=0&&(this.series.splice(t,1),this.freeSeries(e),this.seriesRoot.removeChild(e.group),this.seriesChanged=!0,!0)},t.prototype.removeAllSeries=function(){var e=this;this.series.forEach((function(t){e.freeSeries(t),e.seriesRoot.removeChild(t.group)})),this._series=[],this.seriesChanged=!0},t.prototype.assignSeriesToAxes=function(){var e=this;this.axes.forEach((function(t){var n=t.direction+"Axis",i=[];e.series.forEach((function(e){e[n]===t&&i.push(e)})),t.boundSeries=i})),this.seriesChanged=!1},t.prototype.assignAxesToSeries=function(e){var t=this;void 0===e&&(e=!1);var n={};this.axes.forEach((function(e){var t=e.direction;(n[t]||(n[t]=[])).push(e)})),this.series.forEach((function(i){if(i.directions.forEach((function(r){var o=r+"Axis";if(!i[o]||e){var s=n[r];if(s){var a=t.findMatchingAxis(s,i.getKeys(r));a&&(i[o]=a)}}})),i instanceof qx){if(!i.xAxis)return void console.warn("Could not find a matching xAxis for the "+i.id+" series.");if(!i.yAxis)return void console.warn("Could not find a matching yAxis for the "+i.id+" series.")}})),this.axesChanged=!1},t.prototype.findMatchingAxis=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.keys;if(!r.length)return i;if(t)for(var o=0;o<t.length;o++)if(r.indexOf(t[o])>=0)return i}},Object.defineProperty(t.prototype,"axesChanged",{get:function(){return this._axesChanged},set:function(e){this._axesChanged=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seriesChanged",{get:function(){return this._seriesChanged},set:function(e){this._seriesChanged=e,e&&(this.dataPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutPending",{get:function(){return!!this.layoutCallbackId},set:function(e){e?this.layoutCallbackId||this.dataPending||(this.layoutCallbackId=requestAnimationFrame(this._performLayout)):this.layoutCallbackId&&(cancelAnimationFrame(this.layoutCallbackId),this.layoutCallbackId=0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataPending",{get:function(){return!!this.dataCallbackId},set:function(e){var t=this;this.dataCallbackId&&(clearTimeout(this.dataCallbackId),this.dataCallbackId=0),e&&(this.dataCallbackId=window.setTimeout((function(){t.dataPending=!1,t.processData()}),0))},enumerable:!0,configurable:!0}),t.prototype.processData=function(){this.layoutPending=!1,this.axesChanged&&(this.assignAxesToSeries(!0),this.assignSeriesToAxes()),this.seriesChanged&&this.assignSeriesToAxes(),this.series.filter((function(e){return e.visible}
1)).forEach((function(e){return e.processData()})),this.updateLegend(),this.layoutPending=!0},t.prototype.updateLegend=function(){var e=[];this.series.filter((function(e){return e.showInLegend})).forEach((function(t){return t.listSeriesItems(e)})),this.legend.data=e},t.prototype.positionCaptions=function(){var e=this.title,t=this.subtitle,n=!1,i=!1,r=10;if(e&&e.enabled){e.node.x=this.width/2,e.node.y=r,n=!0;var o=e.node.computeBBox();if(o&&(r=o.y+o.height),t&&t.enabled){t.node.x=this.width/2,t.node.y=r+10,i=!0;var s=t.node.computeBBox();s&&(r=s.y+s.height)}}e&&(e.node.visible=n),t&&(t.node.visible=i),this.captionAutoPadding=Math.floor(r)},t.prototype.positionLegend=function(){if(this.legend.enabled&&this.legend.data.length){var e,t=this.legend,n=this.captionAutoPadding,i=this.legendAutoPadding,r=this.width,o=this.height-n,s=t.group,a=t.spacing,l=0,c=0;switch(t.position){case"bottom":t.performLayout(r-2*a,0),l=(r-(e=s.computeBBox()).width)/2-e.x,c=n+o-e.height-e.y-a,i.bottom=e.height;break;case"top":t.performLayout(r-2*a,0),l=(r-(e=s.computeBBox()).width)/2-e.x,c=n+a-e.y,i.top=e.height;break;case"left":t.performLayout(0,o-2*a),l=a-(e=s.computeBBox()).x,c=n+(o-e.height)/2-e.y,i.left=e.width;break;default:t.performLayout(0,o-2*a),l=r-(e=s.computeBBox()).width-e.x-a,c=n+(o-e.height)/2-e.y,i.right=e.width}s.translationX=Math.floor(l+s.translationX),s.translationY=Math.floor(c+s.translationY)}},t.prototype.setupDomListeners=function(e){e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mouseout",this.onMouseOut),e.addEventListener("click",this.onClick)},t.prototype.cleanupDomListeners=function(e){e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseout",this.onMouseMove),e.removeEventListener("click",this.onClick)},t.prototype.pickSeriesNode=function(e,t){for(var n=this.series,i=void 0,r=n.length-1;r>=0;r--){var o=n[r];if(i=o.group.pickNode(e,t))return{series:o,node:i}}},t.prototype.pickClosestSeriesNodeDatum=function(e,t){if(this.seriesRect&&this.seriesRect.containsPoint(e,t)){for(var n,i=this.series,r=1/0,o=function(o){var s=i[o];if(!s.visible)return"continue";var a=s.group.transformPoint(e,t);s.getNodeData().forEach((function(e){if(e.point){var t,i,o=(t=a,i=e.point,Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2)));o<r&&(r=o,n=e)}}))},s=i.length-1;s>=0;s--)o(s);return n||void 0}},t.prototype.checkSeriesNodeClick=function(){var e=this.lastPick;if(e&&e.node){var t=this.lastPick.datum;t.series.fireNodeClickEvent(t)}},t.prototype.onSeriesNodeClick=function(e){this.fireEvent(Qx(Qx({},e),{type:"seriesNodeClick"}))},t.prototype.checkLegendClick=function(e){var t=this.legend.getDatumForPoint(e.offsetX,e.offsetY);if(t){var n=t.id,i=t.itemId,r=t.enabled,o=QD(this.series,(function(e){return e.id===n}));o&&(o.toggleSeriesItem(i,!r),r&&this.hideTooltip())}},t.prototype.onSeriesDatumPick=function(e,t,n){this.lastPick&&this.dehighlightDatum(),this.lastPick={datum:t,node:n},this.highlightDatum(t);var i=t.series.tooltipEnabled&&t.series.getTooltipHtml(t);i&&this.showTooltip(e,i)},t.prototype.highlightDatum=function(e){this.highlightedDatum=e,this.series.forEach((function(e){return e.onHighlightChange()}))},t.prototype.dehighlightDatum=function(){this.highlightedDatum&&(this.highlightedDatum=void 0,this.series.forEach((function(e){return e.onHighlightChange()})))},Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(e){this._tooltipClass!==e&&(this._tooltipClass=e,this.toggleTooltip())},enumerable:!0,configurable:!0}),t.prototype.toggleTooltip=function(e){!e&&this.lastPick&&(this.dehighlightDatum(),this.lastPick=void 0),this.updateTooltipClass(e)},t.prototype.updateTooltipClass=function(e,n){var i=[t.defaultTooltipClass,this.tooltipClass];!0===e&&i.push(t.defaultTooltipClass+"-visible"),!0!==n&&i.push(t.defaultTooltipClass+"-arrow"),this.tooltipElement.setAttribute("class",i.join(" "))},t.prototype.showTooltip=function(e,t){var n=this.tooltipElement,i=this.container;if(void 0!==t)n.innerHTML=t;else if(!n.innerHTML)return;t&&this.toggleTooltip(!0);var r=e.pageX-n.clientWidth/2,o=e.pageY-n.clientHeight-8;if(i){var s=n.getBoundingClientRect(),a=window.innerWidth-s.width;r<0?(r=0,this.updateTooltipClass(!0,!0)):r>a&&(r=a,this.updateTooltipClass(!0,!0))}n.style.left=r+"px",n.style.top=o+"px"},t.prototype.hideTooltip=function(){this.toggleTooltip(!1)},t.defaultTooltipClass="ag-chart-tooltip",t.tooltipDocuments=[],Xx([pD("layoutChange")],t.prototype,"padding",void 0),Xx([pD("layoutChange")],t.prototype,"title",void 0),Xx([pD("layoutChange")],t.prototype,"subtitle",void 0),t}
1(hD),Zx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),eT=function(e){function t(t){void 0===t&&(t=window.document);var n=e.call(this,t)||this;n._seriesRoot=new _D,n.scene.root.visible=!1;var i=n.scene.root;return i.append(n._seriesRoot),i.append(n.legend.group),n}return Zx(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this._seriesRoot},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending){this.scene.root.visible=!0;var e=this.axes,t=this.legend,n=new eD(0,0,this.width,this.height);if(this.positionCaptions(),this.positionLegend(),t.enabled&&t.data.length){var i=this.legendAutoPadding,r=this.legend.spacing;switch(n.x+=i.left,n.y+=i.top,n.width-=i.left+i.right,n.height-=i.top+i.bottom,this.legend.position){case"right":n.width-=r;break;case"bottom":n.height-=r;break;case"left":n.x+=r,n.width-=r;break;case"top":n.y+=r,n.height-=r}}var o=this.captionAutoPadding,s=this.padding;this.updateAxes(),n.x+=s.left,n.width-=s.left+s.right,n.y+=s.top+o,n.height-=s.top+o+s.bottom,e.forEach((function(e){e.group.visible=!0;var t=Math.floor(e.computeBBox().width);switch(e.position){case YD.Top:n.y+=t,n.height-=t,e.translation.y=Math.floor(n.y+1),e.label.mirrored=!0;break;case YD.Right:n.width-=t,e.translation.x=Math.floor(n.x+n.width),e.label.mirrored=!0;break;case YD.Bottom:n.height-=t,e.translation.y=Math.floor(n.y+n.height+1);break;case YD.Left:n.x+=t,n.width-=t,e.translation.x=Math.floor(n.x)}})),e.forEach((function(e){switch(e.position){case YD.Top:e.translation.x=Math.floor(n.x),e.range=[0,n.width],e.gridLength=n.height;break;case YD.Right:e.translation.y=Math.floor(n.y),e.range=e instanceof $D||e instanceof cx?[0,n.height]:[n.height,0],e.gridLength=n.width;break;case YD.Bottom:e.translation.x=Math.floor(n.x),e.range=[0,n.width],e.gridLength=n.height;break;case YD.Left:e.translation.y=Math.floor(n.y),e.range=e instanceof $D||e instanceof cx?[0,n.height]:[n.height,0],e.gridLength=n.width}})),this.seriesRect=n,this.series.forEach((function(e){e.group.translationX=Math.floor(n.x),e.group.translationY=Math.floor(n.y),e.update()})),this.axes.forEach((function(e){return e.update()}))}},t.prototype.initSeries=function(t){e.prototype.initSeries.call(this,t),t.addEventListener("dataProcessed",this.updateAxes,this)},t.prototype.freeSeries=function(t){e.prototype.freeSeries.call(this,t),t.removeEventListener("dataProcessed",this.updateAxes,this)},t.prototype.updateAxes=function(){this.axes.forEach((function(e){var t,n=e.direction,i=e.boundSeries;if(e.linkedTo)e.domain=e.linkedTo.domain;else{var r=[];i.filter((function(e){return e.visible})).forEach((function(e){r.push(e.getDomain(n))}));var o=(t=new Array).concat.apply(t,r);e.domain=JD(o)||o}e.update()}))},t.className="CartesianChart",t.type="cartesian",t}(Jx),tT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),nT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tT(t,e),t.prototype.updateAxes=function(){this.axes.forEach((function(e){var t,n=e.direction,i=[],r=void 0;e.boundSeries.filter((function(e){return e.visible})).forEach((function(e){if(n===HD.X)if(void 0===r){var t=e.getDomain(n);i.push(t),r="number"==typeof t[0]}else r&&i.push(e.getDomain(n));else i.push(e.getDomain(n))}));var o=(t=new Array).concat.apply(t,i);e.domain=JD(o)||o,e.update()}))},t}(eT),iT={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},rT=iT,oT=((Nx=new Map).set("borneo",iT),Nx.set("material",{fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]}),Nx.set("pastel",{fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]}),Nx.set("bright",{fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]}),Nx.set("flat",{fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]}),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),sT=function(e){function t(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.directionKeys=((t={})[HD.X]=["angleKey"],t[HD.Y]=["radiusKey"],t),n.centerX=0,n.centerY=0,n.radius=0,n}return oT(t,e),t}(Bx),aT=(oT((function(){return null!==Fx&&Fx.apply(this,arguments)||this}),Fx=Ux),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),lT=function(e){function t(t){void 0===t&&(t=window.document);var n=e.call(this,t)||this;return n.padding=new ZS(40),n.scene.root.append(n.legend.group),n}return aT(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.scene.root},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){var e=new eD(0,0,this.width,this.height);this.positionCaptions(),this.positionLegend();var t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var n=this.legendAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var i=this.legend.spacing;switch(this.legend.position){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var r=this.padding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom,this.seriesRect=e;var o=e.x+e.width/2,s=e.y+e.height/2,a=Math.min(e.width,e.height)/2;
1this.series.forEach((function(e){e instanceof sT&&(e.centerX=o,e.centerY=s,e.radius=a,e.update())}))},t.className="PolarChart",t.type="polar",function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([pD("layoutChange")],t.prototype,"padding",void 0),t}(Jx);function cT(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,i=void 0;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(i=n;0!=i--;)if(!cT(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e);if((n=r.length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){var o=r[i];if(!cT(e[o],t[o]))return!1}return!0}return e!=e&&t!=t}var uT,dT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),hT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},pT=function(e){function t(){var t=e.call(this)||this;return t.areaGroup=t.group.appendChild(new _D),t.strokeGroup=t.group.appendChild(new _D),t.markerGroup=t.group.appendChild(new _D),t.areaSelection=wD.select(t.areaGroup).selectAll(),t.strokeSelection=wD.select(t.strokeGroup).selectAll(),t.markerSelection=wD.select(t.markerGroup).selectAll(),t.markerSelectionData=[],t.seriesItemEnabled=new Map,t.xData=[],t.yData=[],t.yDomain=[],t.directionKeys={x:["xKey"],y:["yKeys"]},t.marker=new Kx,t.fills=rT.fills,t.strokes=rT.strokes,t.fillOpacity=1,t.strokeOpacity=1,t._xKey="",t.xName="",t._yKeys=[],t.yNames=[],t.strokeWidth=2,t.highlightStyle={fill:"yellow"},t.addEventListener("update",t.update),t.marker.enabled=!1,t.marker.addPropertyListener("shape",t.onMarkerShapeChange,t),t.marker.addEventListener("change",t.update,t),t}return dT(t,e),t.prototype.onMarkerShapeChange=function(){this.markerSelection=this.markerSelection.setData([]),this.markerSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey!==e&&(this._xKey=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yKeys",{get:function(){return this._yKeys},set:function(e){if(!cT(this._yKeys,e)){this._yKeys=e,this.yData=[];var t=this.seriesItemEnabled;t.clear(),e.forEach((function(e){return t.set(e,!0)})),this.scheduleData()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){var t=e?Math.abs(e):void 0;this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),t.prototype.onHighlightChange=function(){this.updateMarkerNodes()},t.prototype.processData=function(){var e=this.xKey,t=this.yKeys,n=this.seriesItemEnabled,i=e&&t.length&&this.data?this.data:[],r=!0;this.xData=i.map((function(t){return!r||e in t||(r=!1,console.warn("The key '"+e+"' was not found in the data: ",t)),t[e]})),this.yData=i.map((function(e){return t.map((function(t){!r||t in e||(r=!1,console.warn("The key '"+t+"' was not found in the data: ",e));var i=e[t];return isFinite(i)&&n.get(t)?i:0}))}
1));var o,s,a=this.yData,l=this.normalizedTo,c=a.map((function(e){return ZD(e)})),u=ex(c);return l&&isFinite(l)?(o=u.min<0?-l:0,s=l,a.forEach((function(e,t){return e.forEach((function(n,i){e[i]=n<0?-n/c[t].min*l:n/c[t].max*l}))}))):(o=u.min,s=u.max),0===o&&0===s&&(s=1),this.yDomain=this.fixNumericExtent([o,s],"y"),this.fireEvent({type:"dataProcessed"}),!0},t.prototype.getDomain=function(e){return e===HD.X?this.xData:this.yDomain},t.prototype.update=function(){var e=this,t=e.visible,n=e.chart,i=e.xAxis,r=e.yAxis,o=e.xData,s=e.yData;if(this.group.visible=t&&!(!o.length||!s.length),i&&r&&t&&n&&!n.layoutPending&&!n.dataPending&&o.length&&s.length){var a=this.generateSelectionData(),l=a.areaSelectionData,c=a.markerSelectionData;this.updateAreaSelection(l),this.updateStrokeSelection(l),this.updateMarkerSelection(c),this.updateMarkerNodes(),this.markerSelectionData=c}},t.prototype.generateSelectionData=function(){var e=this,t=this,n=t.yKeys,i=t.data,r=t.xData,o=t.yData,s=t.marker,a=t.fills,l=t.strokes,c=t.xAxis.scale,u=t.yAxis.scale,d=(c.bandwidth||0)/2,h=(u.bandwidth||0)/2,p=[],f=[],m=2*r.length-1;return r.forEach((function(t,r){var g=o[r],y=i[r],v=c.convert(t)+d,_=0,b=0;g.forEach((function(t,i){var o=t<0?_:b,c=u.convert(o+t)+h,d=n[i];s&&f.push({series:e,seriesDatum:y,yValue:y[d],yKey:d,point:{x:v,y:c},fill:a[i%a.length],stroke:l[i%l.length]});var g=(p[i]||(p[i]={yKey:d,points:[]})).points;g[r]={x:v,y:c},g[m-r]={x:v,y:u.convert(o)+h},t<0?_+=t:b+=t}))})),{areaSelectionData:p,markerSelectionData:f}},t.prototype.updateAreaSelection=function(e){var t=this.fills,n=this.fillOpacity,i=this.seriesItemEnabled,r=this.shadow,o=this.areaSelection.setData(e);o.exit.remove();var s=o.enter.append(AD).each((function(e){e.stroke=void 0,e.pointerEvents=JS.None})),a=o.merge(s);a.each((function(e,o,s){var a=e.path;e.fill=t[s%t.length],e.fillOpacity=n,e.fillShadow=r,e.visible=!!i.get(o.yKey),a.clear(),o.points.forEach((function(e,t){var n=e.x,i=e.y;t>0?a.lineTo(n,i):a.moveTo(n,i)})),a.closePath()})),this.areaSelection=a},t.prototype.updateStrokeSelection=function(e){var t=this,n=t.strokes,i=t.strokeWidth,r=t.strokeOpacity,o=t.data,s=t.seriesItemEnabled,a=this.strokeSelection.setData(e);a.exit.remove();var l=a.enter.append(AD).each((function(e){e.fill=void 0,e.lineJoin=e.lineCap="round",e.pointerEvents=JS.None})),c=a.merge(l);c.each((function(e,t,a){var l=e.path;e.stroke=n[a%n.length],e.strokeWidth=i,e.visible=!!s.get(t.yKey),e.strokeOpacity=r,l.clear();for(var c=t.points,u=0;u<o.length;u++){var d=c[u],h=d.x,p=d.y;u>0?l.lineTo(h,p):l.moveTo(h,p)}})),this.strokeSelection=c},t.prototype.updateMarkerSelection=function(e){var t=this.marker,n=t.shape?e:[],i=Rx(t.shape),r=this.markerSelection.setData(n);r.exit.remove();var o=r.enter.append(i);this.markerSelection=r.merge(o)},t.prototype.updateMarkerNodes=function(){var e=this.marker,t=e.formatter,n=void 0!==e.strokeWidth?e.strokeWidth:this.strokeWidth,i=e.size,r=this.xKey,o=this.seriesItemEnabled,s=this.chart.highlightedDatum,a=this.highlightStyle,l=a.fill,c=a.stroke;this.markerSelection.each((function(a,u){var d=u===s,h=d&&void 0!==l?l:e.fill||u.fill,p=d&&void 0!==c?c:e.stroke||u.stroke,f=void 0;t&&(f=t({datum:u.seriesDatum,xKey:r,yKey:u.yKey,fill:h,stroke:p,strokeWidth:n,size:i,highlighted:d})),a.fill=f&&f.fill||h,a.stroke=f&&f.stroke||p,a.strokeWidth=f&&void 0!==f.strokeWidth?f.strokeWidth:n,a.size=f&&void 0!==f.size?f.size:i,a.translationX=u.point.x,a.translationY=u.point.y,a.visible=e.enabled&&a.size>0&&!!o.get(u.yKey)}))},t.prototype.getNodeData=function(){return this.markerSelectionData},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,xKey:this.xKey,yKey:e.yKey})},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=e.yKey;if(!t||!n)return"";var i=this,r=i.xName,o=i.yNames,s=i.fills,a=i.tooltipRenderer,l=i.yKeys.indexOf(n),c=o[l],u=s[l%s.length];if(a)return a({datum:e.seriesDatum,xKey:t,xName:r,yKey:n,yName:c,color:u});var d=c?'<div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+u+'">'+c+"</div>":"",h=e.seriesDatum,p=h[t],f=h[n],m="number"==typeof p?LD(p):String(p),g="number"==typeof f?LD(f):String(f);return d+'<div class="'+Jx.defaultTooltipClass+'-content">'+m+": "+g+"</div>"},t.prototype.listSeriesItems=function(e){var t=this,n=t.data,i=t.id,r=t.yKeys,o=t.yNames,s=t.seriesItemEnabled,a=t.marker,l=t.fills,c=t.strokes,u=t.fillOpacity,d=t.strokeOpacity;n&&n.length&&t.xKey&&r.length&&r.forEach((function(t,n){e.push({id:i,itemId:t,enabled:s.get(t)||!1,label:{text:o[n]||r[n]},marker:{shape:a.shape,fill:a.fill||l[n%l.length],stroke:a.stroke||c[n%c.length],fillOpacity:u,strokeOpacity:d}})}))},t.prototype.toggleSeriesItem=function(e,t){this.seriesItemEnabled.set(e,t),this.scheduleData()},t.className="AreaSeries",t.type="area",hT([pD("dataChange")],t.prototype,"fills",void 0),hT([pD("dataChange")],t.prototype,"strokes",void 0),hT([pD("update")],t.prototype,"fillOpacity",void 0),hT([pD("update")],t.prototype,"strokeOpacity",void 0),hT([pD("update")],t.prototype,"xName",void 0),hT([pD("update")],t.prototype,"yNames",void 0),hT([pD("update")],t.prototype,"strokeWidth",void 0),hT([pD("update")],t.prototype,"shadow",void 0),t}(qx),fT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gT=function(e){function t(){var t=e.call(this)||this;return t.enabled=!0,t.fontSize=12,t.fontFamily="Verdana, sans-serif",t.color="rgba(70, 70, 70, 1)",t}return fT(t,e),mT([pD("change","dataChange")],t.prototype,"enabled",void 0),mT([pD("change")],t.prototype,"fontStyle",void 0),mT([pD("change")],t.prototype,"fontWeight",void 0),mT([pD("change")],t.prototype,"fontSize",void 0),mT([pD("change")],t.prototype,"fontFamily",void 0),mT([pD("change")],t.prototype,"color",void 0),t}
1(hD),yT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Bar=0]="Bar",e[e.Label=1]="Label"}(uT||(uT={}));var _T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yT(t,e),vT([pD("change")],t.prototype,"formatter",void 0),t}(gT),bT=function(e){function t(){var t,n=e.call(this)||this;return n.rectGroup=n.group.appendChild(new _D),n.textGroup=n.group.appendChild(new _D),n.rectSelection=wD.select(n.rectGroup).selectAll(),n.textSelection=wD.select(n.textGroup).selectAll(),n.xData=[],n.yData=[],n.yDomain=[],n.label=new _T,n.seriesItemEnabled=new Map,n.flipXY=!1,n.fills=rT.fills,n.strokes=rT.strokes,n.fillOpacity=1,n.strokeOpacity=1,n.groupScale=new yD,n.directionKeys=((t={})[HD.X]=["xKey"],t[HD.Y]=["yKeys"],t),n._xKey="",n._xName="",n._yKeys=[],n._yNames=[],n.grouped=!1,n._strokeWidth=1,n.highlightStyle={fill:"yellow"},n.label.enabled=!1,n.label.addEventListener("change",n.update,n),n}return yT(t,e),t.prototype.getKeys=function(e){var t=this,n=this.directionKeys,i=n&&n[this.flipXY?zD(e):e],r=[];return i&&i.forEach((function(e){var n=t[e];n&&(Array.isArray(n)?r.push.apply(r,n):r.push(n))})),r},Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey!==e&&(this._xKey=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xName",{get:function(){return this._xName},set:function(e){this._xName!==e&&(this._xName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yKeys",{get:function(){return this._yKeys},set:function(e){if(!cT(this._yKeys,e)){this._yKeys=e,this.yData=[];var t=this.seriesItemEnabled;t.clear(),e.forEach((function(e){return t.set(e,!0)}));var n=this.groupScale;n.domain=e,n.padding=.1,n.round=!0,this.scheduleData()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yNames",{get:function(){return this._yNames},set:function(e){this._yNames=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){var t=e?Math.abs(e):void 0;this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.onHighlightChange=function(){this.updateRectNodes()},t.prototype.processData=function(){var e=this.xKey,t=this.yKeys,n=this.seriesItemEnabled,i=e&&t.length&&this.data?this.data:[],r=!0;this.xData=i.map((function(t){return!r||e in t||(r=!1,console.warn("The key '"+e+"' was not found in the data: ",t)),t[e]})),this.yData=i.map((function(e){return t.map((function(t){!r||t in e||(r=!1,console.warn("The key '"+t+"' was not found in the data: ",e));var i=e[t];return isFinite(i)&&n.get(t)?i:0}))}));var o=this.yData.map((function(e){return ZD(e)})),s=this.yData,a=this.normalizedTo,l=1/0,c=-1/0;if(this.grouped)l=Math.min.apply(Math,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}([0],s.map((function(e){return Math.min.apply(Math,e)})))),c=Math.max.apply(Math,s.map((function(e){return Math.max.apply(Math,e)})));else{var u=ex(o);
1a&&isFinite(a)?(l=u.min<0?-a:0,c=a,s.forEach((function(e,t){return e.forEach((function(n,i){e[i]=n<0?-n/o[t].min*a:n/o[t].max*a}))}))):(l=u.min,c=u.max)}return this.yDomain=this.fixNumericExtent([l,c],"y"),this.fireEvent({type:"dataProcessed"}),!0},t.prototype.getDomain=function(e){return this.flipXY&&(e=zD(e)),e===HD.X?this.xData:this.yDomain},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,xKey:this.xKey,yKey:e.yKey})},t.prototype.generateNodeData=function(){var e=this,t=this.xAxis,n=this.yAxis,i=this.flipXY,r=(i?n:t).scale,o=(i?t:n).scale,s=this,a=s.groupScale,l=s.yKeys,c=s.fills,u=s.strokes,d=s.grouped,h=s.strokeWidth,p=s.seriesItemEnabled,f=s.data,m=s.xData,g=s.yData,y=this.label,v=y.fontStyle,_=y.fontWeight,b=y.fontSize,w=y.fontFamily,C=y.color,E=y.formatter;a.range=[0,r.bandwidth];var S=d?a.bandwidth:r.bandwidth,D=[];return m.forEach((function(t,n){var s=g[n],m=f[n],y=r.convert(t),x=0,T=0;s.forEach((function(t,n){var r,s=l[n],f=d?y+a.convert(s):y,g=t<0?x:T,O=o.convert(d?t:g+t),k=o.convert(d?0:g),I=m[s],R="number"==typeof I;r=E?E({value:R?I:void 0}):R&&isFinite(I)?I.toFixed(2):"",D.push({series:e,seriesDatum:m,yValue:I,yKey:s,x:i?Math.min(O,k):f,y:i?f:Math.min(O,k),width:i?Math.abs(k-O):S,height:i?S:Math.abs(k-O),fill:c[n%c.length],stroke:u[n%u.length],strokeWidth:h,label:p.get(s)&&r?{text:r,fontStyle:v,fontWeight:_,fontSize:b,fontFamily:w,fill:C,x:i?O+(I>=0?-1:1)*Math.abs(k-O)/2:f+S/2,y:i?f+S/2:O+(I>=0?1:-1)*Math.abs(k-O)/2}:void 0}),d||(t<0?x+=t:T+=t)}))})),D},t.prototype.update=function(){var e=this,t=e.visible,n=e.chart,i=e.xAxis,r=e.yAxis,o=e.xData,s=e.yData;if(this.group.visible=t,n&&!n.layoutPending&&!n.dataPending&&i&&r&&t&&o.length&&s.length){var a=this.generateNodeData();this.updateRectSelection(a),this.updateRectNodes(),this.updateTextSelection(a),this.updateTextNodes()}},t.prototype.updateRectSelection=function(e){var t=this.rectSelection.setData(e);t.exit.remove();var n=t.enter.append(hx).each((function(e){e.tag=uT.Bar,e.crisp=!0}));this.rectSelection=t.merge(n)},t.prototype.updateRectNodes=function(){var e=this.fillOpacity,t=this.strokeOpacity,n=this.shadow,i=this.highlightStyle,r=i.fill,o=i.stroke,s=this.chart.highlightedDatum;this.rectSelection.each((function(i,a){var l=a===s;i.x=a.x,i.y=a.y,i.width=a.width,i.height=a.height,i.fill=l&&void 0!==r?r:a.fill,i.stroke=l&&void 0!==o?o:a.stroke,i.fillOpacity=e,i.strokeOpacity=t,i.strokeWidth=a.strokeWidth,i.fillShadow=n,i.visible=a.height>0}))},t.prototype.updateTextSelection=function(e){var t=this.textSelection.setData(e);t.exit.remove();var n=t.enter.append(uD).each((function(e){e.tag=uT.Label,e.pointerEvents=JS.None,e.textAlign="center",e.textBaseline="middle"}));this.textSelection=t.merge(n)},t.prototype.updateTextNodes=function(){var e=this.label.enabled;this.textSelection.each((function(t,n){var i=n.label;i&&e?(t.fontStyle=i.fontStyle,t.fontWeight=i.fontWeight,t.fontSize=i.fontSize,t.fontFamily=i.fontFamily,t.text=i.text,t.x=i.x,t.y=i.y,t.fill=i.fill,t.visible=!0):t.visible=!1}))},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=e.yKey;if(!t||!n)return"";var i=this,r=i.xName,o=i.yNames,s=i.fills,a=i.tooltipRenderer,l=e.seriesDatum,c=i.yKeys.indexOf(n),u=o[c],d=s[c%s.length];if(a)return a({datum:l,xKey:t,xName:r,yKey:n,yName:u,color:d});var h=u?'<div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+d+'">'+u+"</div>":"",p=l[t],f=l[n],m="number"==typeof p?LD(p):String(p),g="number"==typeof f?LD(f):String(f);return h+'<div class="'+Jx.defaultTooltipClass+'-content">'+m+": "+g+"</div>"},t.prototype.listSeriesItems=function(e){var t=this,n=t.id,i=t.data,r=t.yKeys,o=t.yNames,s=t.seriesItemEnabled,a=t.fills,l=t.strokes,c=t.fillOpacity,u=t.strokeOpacity;i&&i.length&&t.xKey&&r.length&&r.forEach((function(t,i){e.push({id:n,itemId:t,enabled:s.get(t)||!1,label:{text:o[i]||r[i]},marker:{fill:a[i%a.length],stroke:l[i%l.length],fillOpacity:c,strokeOpacity:u}})}))},t.prototype.toggleSeriesItem=function(e,t){var n=this.seriesItemEnabled,i=[];n.set(e,t),n.forEach((function(e,t){e&&i.push(t)})),this.groupScale.domain=i,this.scheduleData()},t.className="BarSeries",t.type="bar",vT([pD("layoutChange")],t.prototype,"flipXY",void 0),vT([pD("dataChange")],t.prototype,"fills",void 0),vT([pD("dataChange")],t.prototype,"strokes",void 0),vT([pD("layoutChange")],t.prototype,"fillOpacity",void 0),vT([pD("layoutChange")],t.prototype,"strokeOpacity",void 0),vT([pD("dataChange")],t.prototype,"grouped",void 0),t}(qx),wT=function(e,t){return t-=e=+e,function(n){return e+t*n}},CT=function(e,t){var n=new Date,i=+e,r=+t-i;return function(e){return n.setTime(i+r*e),n}},ET=function(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,o=new Array(r),s=new Array(i);for(n=0;n<r;++n)o[n]=DT(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<r;++n)s[n]=o[n](e);return s}},ST=function(e,t){var n,i={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=DT(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}},DT=function(e,t){var n,i=typeof t;return null==t||"boolean"===i?(n=t,function(){return n}):("number"===i?wT:t instanceof Date?CT:Array.isArray(t)?ET:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ST:wT)(e,t)},xT=function(e){return e};function TT(e){var t,n=e[0],i=e[e.length-1];return n>i&&(n=(t=[i,n])[0],i=t[1]),function(e){return Math.max(n,Math.min(i,e))}}var OT=function(){function e(){this.unknown=void 0,this._clamp=xT,this._domain=[0,1],this._range=[0,1],this.transform=xT,this.untransform=xT,this._interpolate=DT,this.rescale()}return Object.defineProperty(e.prototype,"clamp",{get:function(){return this._clamp!==xT},set:function(e){this._clamp=e?TT(this.domain):xT},enumerable:!0,configurable:!0}),e.prototype.setDomain=function(e){this._domain=Array.prototype.map.call(e,(function(e){return+e})),this._clamp!==xT&&(this._clamp=TT(this.domain)),this.rescale()},e.prototype.getDomain=function(){return this._domain.slice()},Object.defineProperty(e.prototype,"domain",{get:function(){return this.getDomain()},set:function(e){this.setDomain(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range.slice()},set:function(e){this._range=Array.prototype.slice.call(e),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolate",{get:function(){return this._interpolate},set:function(e){this._interpolate=e,this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){Math.min(this.domain.length,this.range.length)>2||(this.piecewise=this.bimap),this.output=void 0,this.input=void 0},e.prototype.normalize=function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n},e.prototype.bimap=function(e,t,n){var i,r,o=e[0],s=e[1],a=t[0],l=t[1];return s<o?(i=this.normalize(s,o),r=n(l,a)):(i=this.normalize(o,s),r=n(a,l)),function(e){return r(i(e))}},e.prototype.convert=function(e){return e=+e,isNaN(e)?this.unknown:(this.output||(this.output=this.piecewise(this.domain.map(this.transform),this.range,this.interpolate)),this.output(this.transform(this._clamp(e))))},e.prototype.invert=function(e){return this.input||(this.input=this.piecewise(this.range,this.domain.map(this.transform),wT)),this._clamp(this.untransform(this.input(e)))},e}(),kT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),IT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},RT=function(e){function t(){var t=e.call(this)||this;
1t.xDomain=[],t.yDomain=[],t.xData=[],t.yData=[],t.lineNode=new AD,t.nodeSelection=wD.select(t.group).selectAll(),t.nodeData=[],t.marker=new Kx,t.stroke=rT.fills[0],t.strokeWidth=2,t.strokeOpacity=1,t._xKey="",t.xName="",t._yKey="",t.yName="",t.highlightStyle={fill:"yellow"};var n=t.lineNode;n.fill=void 0,n.lineJoin="round",n.pointerEvents=JS.None,t.group.append(n),t.addEventListener("update",t.update);var i=t.marker;return i.fill=rT.fills[0],i.stroke=rT.strokes[0],i.addPropertyListener("shape",t.onMarkerShapeChange,t),i.addPropertyListener("enabled",t.onMarkerEnabledChange,t),i.addEventListener("change",t.update,t),t}return kT(t,e),t.prototype.onMarkerShapeChange=function(){this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},t.prototype.onMarkerEnabledChange=function(e){e.value||(this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove())},Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey!==e&&(this._xKey=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yKey",{get:function(){return this._yKey},set:function(e){this._yKey!==e&&(this._yKey=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this,t=e.xAxis,n=e.xKey,i=e.yKey,r=e.xData,o=e.yData,s=n&&i&&this.data?this.data:[];if(!t)return!1;var a=t.scale instanceof OT,l=e.yAxis.scale instanceof OT;r.length=0,o.length=0;for(var c=0,u=s.length;c<u;c++){var d=s[c],h=d[i];r.push(d[n]),o.push(h)}return this.xDomain=a?this.fixNumericExtent(JD(r),"x"):r,this.yDomain=l?this.fixNumericExtent(JD(o),"y"):o,!0},t.prototype.getDomain=function(e){return e===HD.X?this.xDomain:this.yDomain},t.prototype.onHighlightChange=function(){this.updateNodes()},t.prototype.update=function(){this.group.visible=this.visible;var e=this.chart;e&&!e.layoutPending&&!e.dataPending&&this.xAxis&&this.yAxis&&(this.updateLinePath(),this.updateNodeSelection(),this.updateNodes())},t.prototype.updateLinePath=function(){var e=this,t=this,n=t.data,i=t.xData,r=t.yData,o=t.lineNode,s=t.xAxis.scale,a=t.yAxis.scale,l=(s.bandwidth||0)/2,c=(a.bandwidth||0)/2,u=s instanceof OT,d=a instanceof OT,h=o.path,p=[];h.clear();var f=!0;i.forEach((function(t,i){var o=r[i];if(null==o||d&&(isNaN(o)||!isFinite(o))||null==t||u&&(isNaN(t)||!isFinite(t)))f=!0;else{var m=s.convert(t)+l,g=a.convert(o)+c;f?(h.moveTo(m,g),f=!1):h.lineTo(m,g),p.push({series:e,seriesDatum:n[i],point:{x:m,y:g}})}})),o.stroke=this.stroke,o.strokeWidth=this.strokeWidth,o.strokeOpacity=this.strokeOpacity,this.nodeData=p},t.prototype.updateNodeSelection=function(){var e=this.marker,t=e.shape?this.nodeData:[],n=Rx(e.shape),i=this.nodeSelection.setData(t);i.exit.remove();var r=i.enter.append(_D);r.append(n),this.nodeSelection=i.merge(r)},t.prototype.updateNodes=function(){var e=this,t=e.marker,n=e.xKey,i=e.yKey,r=e.stroke,o=e.strokeWidth,s=Rx(t.shape),a=this.chart.highlightedDatum,l=this.highlightStyle,c=l.fill,u=l.stroke,d=t.formatter,h=t.size,p=void 0!==t.strokeWidth?t.strokeWidth:o;this.nodeSelection.selectByClass(s).each((function(e,o){var s=o===a,l=s&&void 0!==c?c:t.fill,f=s&&void 0!==u?u:t.stroke||r,m=void 0;d&&(m=d({datum:o.seriesDatum,xKey:n,yKey:i,fill:l,stroke:f,strokeWidth:p,size:h,highlighted:s})),e.fill=m&&m.fill||l,e.stroke=m&&m.stroke||f,e.strokeWidth=m&&void 0!==m.strokeWidth?m.strokeWidth:p,e.size=m&&void 0!==m.size?m.size:h,e.translationX=o.point.x,e.translationY=o.point.y,e.visible=t.enabled&&e.size>0}))},t.prototype.getNodeData=function(){return this.nodeData},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,xKey:this.xKey,yKey:this.yKey})},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=this.yKey;if(!t||!n)return"";var i=this.yName,r=this.stroke,o=this.tooltipRenderer;if(o)return o({datum:e.seriesDatum,xKey:t,xName:this.xName,yKey:n,yName:i,title:this.title,color:r});var s=this.title||i,a=s?'<div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+r+'">'+s+"</div>":"",l=e.seriesDatum,c=l[t],u=l[n],d="number"==typeof c?LD(c):String(c),h="number"==typeof u?LD(u):String(u);return a+'<div class="'+Jx.defaultTooltipClass+'-content">'+d+": "+h+"</div>"},t.prototype.listSeriesItems=function(e){var t=this,n=t.data,i=t.yKey,r=t.marker;n&&n.length&&t.xKey&&i&&e.push({id:t.id,itemId:void 0,enabled:t.visible,label:{text:t.title||t.yName||i},marker:{shape:r.shape,fill:r.fill,stroke:r.stroke||t.stroke,fillOpacity:1,strokeOpacity:t.strokeOpacity}})},t.className="LineSeries",t.type="line",IT([pD("layoutChange")],t.prototype,"title",void 0),IT([pD("update")],t.prototype,"stroke",void 0),IT([pD("update")],t.prototype,"strokeWidth",void 0),IT([pD("update")],t.prototype,"strokeOpacity",void 0),IT([pD("update")],t.prototype,"xName",void 0),IT([pD("update")],t.prototype,"yName",void 0),t}(qx),MT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),AT=function(e,t,n){var i=FT(e,t,n);return function(e,t,n){void 0===n&&(n=1);for(var i=Math.abs(n),r=i>0&&i<1?Math.abs(Math.floor(Math.log(i)/Math.LN10)):0,o=Math.pow(10,r),s=Math.max(0,Math.ceil((t-e)/n))||0,a=new HT(r,s),l=0;l<s;l++)a[l]=Math.round((e+n*l)*o)/o;return a}(e=Math.ceil(e/i)*i,t=Math.floor(t/i)*i+i/2,i)},PT=Math.sqrt(50),LT=Math.sqrt(10),NT=Math.sqrt(2);
1function FT(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=PT?r*=10:o>=LT?r*=5:o>=NT&&(r*=2),t<e?-r:r}function jT(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=PT?10:o>=LT?5:o>=NT?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=PT?10:o>=LT?5:o>=NT?2:1)}var VT,HT=function(e){function t(t,n){void 0===n&&(n=0);var i=e.call(this,n)||this;return i.fractionDigits=t,i}return MT(t,e),t}(Array),YT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),BT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return YT(t,e),t.prototype.ticks=function(e){void 0===e&&(e=10);var t=this._domain;return AT(t[0],t[t.length-1],e)},t.prototype.nice=function(e){void 0===e&&(e=10);var t,n=this.domain,i=0,r=n.length-1,o=n[i],s=n[r];s<o&&(t=o,o=s,s=t,t=i,i=r,r=t),(t=jT(o,s,e))>0?t=jT(o=Math.floor(o/t)*t,s=Math.ceil(s/t)*t,e):t<0&&(t=jT(o=Math.ceil(o*t)/t,s=Math.floor(s*t)/t,e)),t>0?(n[i]=Math.floor(o/t)*t,n[r]=Math.ceil(s/t)*t,this.domain=n):t<0&&(n[i]=Math.ceil(o*t)/t,n[r]=Math.floor(s*t)/t,this.domain=n)},t}(OT),GT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),WT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},UT=function(e){function t(){var t=e.call(this)||this;t.xDomain=[],t.yDomain=[],t.xData=[],t.yData=[],t.sizeData=[],t.sizeScale=new BT,t.nodeSelection=wD.select(t.group).selectAll(),t.nodeData=[],t.marker=new Kx,t._fill=rT.fills[0],t._stroke=rT.strokes[0],t._strokeWidth=2,t._fillOpacity=1,t._strokeOpacity=1,t.highlightStyle={fill:"yellow"},t.xKey="",t.yKey="",t.xName="",t.yName="",t.sizeName="Size",t.labelName="Label";var n=t.marker;return n.addPropertyListener("shape",t.onMarkerShapeChange,t),n.addEventListener("change",t.update,t),t.addPropertyListener("xKey",(function(){return t.xData=[]})),t.addPropertyListener("yKey",(function(){return t.yData=[]})),t.addPropertyListener("sizeKey",(function(){return t.sizeData=[]})),t}return GT(t,e),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.onHighlightChange=function(){this.updateNodes()},t.prototype.onMarkerShapeChange=function(){this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},t.prototype.processData=function(){var e=this,t=e.xKey,n=e.yKey,i=e.sizeKey,r=e.xAxis,o=e.yAxis,s=t&&n&&this.data?this.data:[];return this.xData=s.map((function(e){return e[t]})),this.yData=s.map((function(e){return e[n]}
1)),this.sizeData=i?s.map((function(e){return e[i]})):[],this.sizeScale.domain=XD(this.sizeData)||[1,1],this.xDomain=r.scale instanceof OT?this.fixNumericExtent(XD(this.xData),"x"):this.xData,this.yDomain=o.scale instanceof OT?this.fixNumericExtent(XD(this.yData),"y"):this.yData,!0},t.prototype.getDomain=function(e){return e===HD.X?this.xDomain:this.yDomain},t.prototype.getNodeData=function(){return this.nodeData},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,xKey:this.xKey,yKey:this.yKey,sizeKey:this.sizeKey})},t.prototype.generateNodeData=function(){var e=this,t=this.xAxis.scale,n=this.yAxis.scale,i=(t.bandwidth||0)/2,r=(n.bandwidth||0)/2,o=this,s=o.data,a=o.xData,l=o.yData,c=o.sizeData,u=o.sizeScale,d=o.marker;return u.range=[d.minSize,d.size],a.map((function(o,a){return{series:e,seriesDatum:s[a],point:{x:t.convert(o)+i,y:n.convert(l[a])+r},size:c.length?u.convert(c[a]):d.size}}))},t.prototype.update=function(){var e=this.visible,t=this.chart,n=this.xAxis,i=this.yAxis;if(this.group.visible=e,e&&t&&!t.layoutPending&&!t.dataPending&&n&&i){var r=this.nodeData=this.generateNodeData();this.updateNodeSelection(r),this.updateNodes()}},t.prototype.updateNodeSelection=function(e){var t=Rx(this.marker.shape),n=this.nodeSelection.setData(e);n.exit.remove();var i=n.enter.append(_D);
1i.append(t),this.nodeSelection=n.merge(i)},t.prototype.updateNodes=function(){var e=this.chart.highlightedDatum,t=this,n=t.marker,i=t.xKey,r=t.yKey,o=t.fill,s=t.stroke,a=t.fillOpacity,l=t.strokeOpacity,c=this.highlightStyle,u=c.fill,d=c.stroke,h=void 0!==n.strokeWidth?n.strokeWidth:t.strokeWidth,p=Rx(n.shape),f=n.formatter;this.nodeSelection.selectByClass(p).each((function(t,c){var p=c===e,m=p&&void 0!==u?u:n.fill||o,g=p&&void 0!==d?d:n.stroke||s,y=void 0;f&&(y=f({datum:c.seriesDatum,xKey:i,yKey:r,fill:m,stroke:g,strokeWidth:h,size:c.size,highlighted:p})),t.fill=y&&y.fill||m,t.stroke=y&&y.stroke||g,t.strokeWidth=y&&void 0!==y.strokeWidth?y.strokeWidth:h,t.size=y&&void 0!==y.size?y.size:c.size,t.fillOpacity=a,t.strokeOpacity=l,t.translationX=c.point.x,t.translationY=c.point.y,t.visible=n.enabled&&t.size>0}))},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=this.yKey;if(!t||!n)return"";var i=this,r=i.tooltipRenderer,o=i.xName,s=i.yName,a=i.sizeKey,l=i.sizeName,c=i.labelKey,u=i.labelName,d=i.fill||"gray";if(r)return r({datum:e.seriesDatum,xKey:t,yKey:n,sizeKey:a,labelKey:c,xName:o,yName:s,sizeName:l,labelName:u,title:this.title,color:d});var h=this.title||s,p=h?'<div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+d+'">'+h+"</div>":"",f=e.seriesDatum,m=f[t],g=f[n],y="<b>"+(o||t)+"</b>: "+("number"==typeof m?LD(m):m)+"<br><b>"+(s||n)+"</b>: "+("number"==typeof g?LD(g):g);return a&&(y+="<br><b>"+l+"</b>: "+f[a]),c&&(y="<b>"+u+"</b>: "+f[c]+"<br>"+y),p+'<div class="'+Jx.defaultTooltipClass+'-content">'+y+"</div>"},t.prototype.listSeriesItems=function(e){var t=this,n=t.data,i=t.yKey,r=t.marker;n&&n.length&&t.xKey&&i&&e.push({id:t.id,itemId:void 0,enabled:t.visible,label:{text:t.title||t.yName||i},marker:{shape:r.shape,fill:r.fill||t.fill,stroke:r.stroke||t.stroke,fillOpacity:t.fillOpacity,strokeOpacity:t.strokeOpacity}})},t.className="ScatterSeries",t.type="scatter",WT([pD("layoutChange")],t.prototype,"title",void 0),WT([pD("dataChange")],t.prototype,"xKey",void 0),WT([pD("dataChange")],t.prototype,"yKey",void 0),WT([pD("dataChange")],t.prototype,"sizeKey",void 0),WT([pD("dataChange")],t.prototype,"labelKey",void 0),t}(qx),zT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qT=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Bin=0]="Bin",e[e.Label=1]="Label"}(VT||(VT={}));var KT,$T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zT(t,e),qT([pD("change")],t.prototype,"formatter",void 0),t}(gT),QT={count:function(e){return e.data.length},sum:function(e,t){return e.data.reduce((function(e,n){return e+n[t]}),0)},mean:function(e,t){return QT.sum(e,t)/QT.count(e,t)}},XT=function(){function e(e){var t=e[0],n=e[1];this.data=[],this.aggregatedValue=0,this.frequency=0,this.domain=[t,n]}return e.prototype.addDatum=function(e){this.data.push(e),this.frequency++},Object.defineProperty(e.prototype,"domainWidth",{get:function(){var e=this.domain;return e[1]-e[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relativeHeight",{get:function(){return this.aggregatedValue/this.domainWidth},enumerable:!0,configurable:!0}),e.prototype.calculateAggregatedValue=function(e,t){t||(e="count"),this.aggregatedValue=(0,QT[e])(this,t)},e.prototype.getY=function(e){return e?this.relativeHeight:this.aggregatedValue},e}(),JT=function(e){function t(){var t,n=e.call(this)||this;return n.rectGroup=n.group.appendChild(new _D),n.textGroup=n.group.appendChild(new _D),n.rectSelection=wD.select(n.rectGroup).selectAll(),n.textSelection=wD.select(n.textGroup).selectAll(),n.binnedData=[],n.xDomain=[],n.yDomain=[],n.label=new $T,n.seriesItemEnabled=!0,n.fill=rT.fills[0],n.stroke=rT.strokes[
10],n.fillOpacity=1,n.strokeOpacity=1,n.directionKeys=((t={})[HD.X]=["xKey"],t[HD.Y]=["yKey"],t),n._xKey="",n._areaPlot=!1,n._xName="",n._yKey="",n._yName="",n._strokeWidth=1,n.highlightStyle={fill:"yellow"},n.label.enabled=!1,n.label.addEventListener("change",n.update,n),n}return zT(t,e),t.prototype.getKeys=function(e){var t=this,n=this.directionKeys,i=n&&n[e],r=[];return i&&i.forEach((function(e){var n=t[e];n&&(Array.isArray(n)?r.push.apply(r,n):r.push(n))})),r},Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey!==e&&(this._xKey=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areaPlot",{get:function(){return this._areaPlot},set:function(e){this._areaPlot=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bins",{get:function(){return this._bins},set:function(e){this._bins=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aggregation",{get:function(){return this._aggregation},set:function(e){this._aggregation=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binCount",{get:function(){return this._binCount},set:function(e){this._binCount=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xName",{get:function(){return this._xName},set:function(e){this._xName!==e&&(this._xName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yKey",{get:function(){return this._yKey},set:function(e){this._yKey=e,this.seriesItemEnabled=!0,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yName",{get:function(){return this._yName},set:function(e){this._yName=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.onHighlightChange=function(){this.updateRectNodes()},t.prototype.deriveBins=function(){var e=this,t=this.bins;if(t&&this.binCount&&console.warn("bin domain and bin count both specified - these are mutually exclusive properties"),t)return t;var n=this.data.map((function(t){return t[e.xKey]})),i=this.fixNumericExtent(XD(n),"x"),r=AT(i[0],i[1],this.binCount||10),o=FT(i[0],i[1],this.binCount||10),s=r[0];return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}([[s-o,s]],r.map((function(e){return[e,e+o]})))},t.prototype.placeDataInBins=function(e){var t=this,n=this.xKey,i=this.deriveBins(),r=e.slice().sort((function(e,t){return e[n]<t[n]?-1:e[n]>t[n]?1:0})),o=0,s=[new XT(i[0])];return r.forEach((function(e){for(;e[n]>i[o][1];)o++,s.push(new XT(i[o]));s[o].addDatum(e)})),s.forEach((function(e){return e.calculateAggregatedValue(t._aggregation,t.yKey)})),s},Object.defineProperty(t.prototype,"xMax",{get:function(){var e=this;return this.data&&this.data.reduce((function(t,n){return Math.max(t,n[e.xKey])}),Number.NEGATIVE_INFINITY)},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this,t=this.data;this.binnedData=this.placeDataInBins(this.xKey&&t?t:[]);var n=JD(this.binnedData.map((function(t){return t.getY(e.areaPlot)})));return this.yDomain=this.fixNumericExtent([0,n[1]],"y"),this.xDomain=[this.binnedData[0].domain[0],this.binnedData[this.binnedData.length-1].domain[1]],this.fireEvent({type:"dataProcessed"}),!0},t.prototype.getDomain=function(e){return e===HD.X?this.xDomain:this.yDomain},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,xKey:this.xKey})},t.prototype.update=function(){var e=this.visible,t=this.chart,n=this.xAxis,i=this.yAxis;if(this.group.visible=e,n&&i&&e&&t&&!t.layoutPending&&!t.dataPending){var r=this.generateNodeData();this.updateRectSelection(r),this.updateRectNodes(),this.updateTextSelection(r),this.updateTextNodes()}},t.prototype.generateNodeData=function(){var e=this;if(!this.seriesItemEnabled)return[];var t=this,n=t.xAxis.scale,i=t.yAxis.scale,r=t.fill,o=t.stroke,s=t.strokeWidth,a=[],l=this.label,c=l.formatter,u=void 0===c?function(e){return String(e.aggregatedValue)}:c,d=l.fontStyle,h=l.fontWeight,p=l.fontSize,f=l.fontFamily,m=l.color;return this.binnedData.forEach((function(t){var l=t.aggregatedValue,c=t.frequency,g=t.domain,y=g[1],v=t.relativeHeight,_=n.convert(g[0]),b=n.convert(y),w=e.areaPlot?v:e.yKey?l:c,C=i.convert(0),E=i.convert(w),S=b-_,D=Math.abs(E-C),x=0!==w&&{text:u(t),fontStyle:d,fontWeight:h,fontSize:p,fontFamily:f,fill:m,x:_+S/2,y:E+D/2};a.push({series:e,seriesDatum:t,x:_,y:E,width:S,height:D,fill:r,stroke:o,strokeWidth:s,label:
1x})})),a},t.prototype.updateRectSelection=function(e){var t=this.rectSelection.setData(e);t.exit.remove();var n=t.enter.append(hx).each((function(e){e.tag=VT.Bin,e.crisp=!0}));this.rectSelection=t.merge(n)},t.prototype.updateRectNodes=function(){var e=this.chart.highlightedDatum,t=this.fillOpacity,n=this.strokeOpacity,i=this.shadow,r=this.highlightStyle,o=r.fill,s=r.stroke;this.rectSelection.each((function(r,a){var l=a===e;r.x=a.x,r.y=a.y,r.width=a.width,r.height=a.height,r.fill=l&&void 0!==o?o:a.fill,r.stroke=l&&void 0!==s?s:a.stroke,r.fillOpacity=t,r.strokeOpacity=n,r.strokeWidth=a.strokeWidth,r.fillShadow=i,r.visible=a.height>0}))},t.prototype.updateTextSelection=function(e){var t=this.textSelection.setData(e);t.exit.remove();var n=t.enter.append(uD).each((function(e){e.tag=VT.Label,e.pointerEvents=JS.None,e.textAlign="center",e.textBaseline="middle"}));this.textSelection=t.merge(n)},t.prototype.updateTextNodes=function(){var e=this.label.enabled;this.textSelection.each((function(t,n){var i=n.label;i&&e?(t.text=i.text,t.x=i.x,t.y=i.y,t.fontStyle=i.fontStyle,t.fontWeight=i.fontWeight,t.fontSize=i.fontSize,t.fontFamily=i.fontFamily,t.fill=i.fill,t.visible=!0):t.visible=!1}))},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=this.yKey;if(!t)return"";var i=this,r=i.xName,o=i.yName,s=i.fill,a=i.tooltipRenderer,l=i.aggregation,c=e.seriesDatum,u=c.aggregatedValue,d=c.frequency,h=c.domain,p=h[0],f=h[1];if(a)return a({datum:c,xKey:t,xName:r,yKey:n,yName:o,color:s});var m='\n                <div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+s+'">\n                    '+(r||t)+" "+LD(p)+" - "+LD(f)+"\n                </div>",g=n?"<b>"+(o||n)+" ("+l+")</b>: "+LD(u)+"<br>":"";return"\n                "+m+'\n                <div class="'+Jx.defaultTooltipClass+'-content">\n                    '+(g+="<b>Frequency</b>: "+d)+"\n                </div>"},t.prototype.listSeriesItems=function(e){var t=this,n=t.data,i=t.yKey;n&&n.length&&e.push({id:t.id,itemId:i,enabled:t.seriesItemEnabled,label:{text:t.yName||i||"Frequency"},marker:{fill:t.fill,stroke:t.stroke,fillOpacity:t.fillOpacity,strokeOpacity:t.strokeOpacity}})},t.prototype.toggleSeriesItem=function(e,t){e===this.yKey&&(this.seriesItemEnabled=t),this.scheduleData()},t.className="HistogramSeries",t.type="histogram",qT([pD("dataChange")],t.prototype,"fill",void 0),qT([pD("dataChange")],t.prototype,"stroke",void 0),qT([pD("layoutChange")],t.prototype,"fillOpacity",void 0),qT([pD("layoutChange")],t.prototype,"strokeOpacity",void 0),t}(qx),ZT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),eO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new RD,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._centerOffset=0,t._innerRadius=10,t._outerRadius=20,t._startAngle=0,t._endAngle=2*Math.PI,t._angleOffset=0,t}return ZT(t,e),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerOffset",{get:function(){return this._centerOffset},set:function(e){this._centerOffset!==e&&(this._centerOffset=Math.max(0,e),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(e){this._innerRadius!==e&&(this._innerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadius",{get:function(){return this._outerRadius},set:function(e){this._outerRadius!==e&&(this._outerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleOffset",{get:function(){return this._angleOffset},set:function(e){this._angleOffset!==e&&(this._angleOffset=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){var e=this.outerRadius;return new eD(this.centerX-e,this.centerY-e,2*e,2*e)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.path.isPointInPath(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},Object.defineProperty(t.prototype,"fullPie",{get:function(){return PD(DD(this.startAngle),DD(this.endAngle))},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path,t=this.angleOffset,n=Math.min(this.startAngle,this.endAngle)+t,i=Math.max(this.startAngle,this.endAngle)+t,r=.5*(n+i),o=Math.min(this.innerRadius,this.outerRadius),s=Math.max(this.innerRadius,this.outerRadius),a=this.centerOffset,l=this.fullPie,c=this.centerX,u=this.centerY;if(e.clear(),a&&(c+=a*Math.cos(r),u+=a*Math.sin(r)),l||(e.moveTo(c+o*Math.cos(n),u+o*Math.sin(n)),e.lineTo(c+s*Math.cos(n),u+s*Math.sin(n))),e.cubicArc(c,u,s,s,0,n,i,0
1),l)e.moveTo(c+o*Math.cos(i),u+o*Math.sin(i));else{var d=c+o*Math.cos(i);e.lineTo(Math.abs(d)<1e-8?0:d,u+o*Math.sin(i))}e.cubicArc(c,u,o,o,0,i,n,1),e.closePath(),this.dirtyPath=!1}},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Sector",t}(aD),tO=function(){function e(e,t,n,i){void 0===i&&(i=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,i||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((i=parseInt(n[1],16))/255,(r=parseInt(n[2],16))/255,(o=parseInt(n[3],16))/255,(s=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var i=parseInt(n[1],16),r=parseInt(n[2],16),o=parseInt(n[3],16),s=void 0!==n[4]?parseInt(n[4],16):15;return new e((i+=16*i)/255,(r+=16*r)/255,(o+=16*o)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,i,r){void 0===r&&(r=1);var o=e.HSBtoRGB(t,n,i);return new e(o[0],o[1],o[2],r)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var i=Math.min(e,t,n),r=Math.max(e,t,n),o=NaN;if(i!==r){var s=r-i,a=(r-e)/s,l=(r-t)/s,c=(r-n)/s;o=e===r?c-l:t===r?2+a-c:4+l-a,(o/=6)<0&&(o+=1)}return[360*o,0!==r?(r-i)/r:0,r]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var i=0,r=0,o=0;if(0===t)i=r=o=n;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=n*(1-t),c=n*(1-t*a),u=n*(1-t*(1-a));switch(s>>0){case 0:i=n,r=u,o=l;break;case 1:i=c,r=n,o=l;break;case 2:i=l,r=n,o=u;break;case 3:i=l,r=c,o=n;break;case 4:i=u,r=l,o=n;break;case 5:i=n,r=l,o=c}}return[i,r,o]},e.prototype.derive=function(t,n,i,r){var o=e.RGBtoHSB(this.r,this.g,this.b),s=o[2];0==s&&i>1&&(s=.05);var a=((o[0]+t)%360+360)%360,l=Math.max(Math.min(o[1]*n,1),0);s=Math.max(Math.min(s*i,1),0);var c=Math.max(Math.min(this.a*r,1),0),u=e.HSBtoRGB(a,l,s);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA5
15D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}(),nO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),iO=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label"}(KT||(KT={}));var rO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.offset=3,t.minAngle=20,t}return nO(t,e),iO([pD("change")],t.prototype,"offset",void 0),iO([pD("dataChange")],t.prototype,"minAngle",void 0),t}(gT),oO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.colors=rT.strokes,t.length=10,t.strokeWidth=1,t}return nO(t,e),iO([pD("change")],t.prototype,"colors",void 0),iO([pD("change")],t.prototype,"length",void 0),iO([pD("change")],t.prototype,"strokeWidth",void 0),t}(hD),sO=function(e){function t(){var t,n=e.call(this)||this;return n.radiusScale=new BT,n.groupSelection=wD.select(n.group).selectAll(),n.groupSelectionData=[],n.angleScale=((t=new BT).domain=[0,1],t.range=[-Math.PI,Math.PI].map((function(e){return e+Math.PI/2})),t),n.seriesItemEnabled=[],n.label=new rO,n.callout=new oO,n.angleKey="",n.angleName="",n._fills=rT.fills,n._strokes=rT.strokes,n.fillOpacity=1,n.strokeOpacity=1,n.rotation=0,n.outerRadiusOffset=0,n.innerRadiusOffset=0,n.strokeWidth=1,n.highlightStyle={fill:"yellow"},n.addEventListener("update",n.update,n),n.label.addEventListener("change",n.scheduleLayout,n),n.label.addEventListener("dataChange",n.scheduleData,n),n.callout.addEventListener("change",n.scheduleLayout,n),n.addPropertyListener("data",(function(e){e.source.seriesItemEnabled=e.value.map((function(){return!0}))})),n}return nO(t,e),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&(t.removeEventListener("change",this.scheduleLayout),this.group.removeChild(t.node)),e&&(e.node.textBaseline="bottom",e.addEventListener("change",this.scheduleLayout),this.group.appendChild(e.node)),this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map((function(e){return tO.fromString(e).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.callout.colors=e,this.scheduleData()},enumerable:!0,configurable:!0}),t.prototype.onHighlightChange=function(){this.updateNodes()},t.prototype.getDomain=function(e){return e===HD.X?this.angleScale.domain:this.radiusScale.domain},t.prototype.processData=function(){var e,t=this,n=this,i=n.angleKey,r=n.radiusKey,o=n.seriesItemEnabled,s=n.angleScale,a=n.groupSelectionData,l=i&&this.data?this.data:[],c=l.map((function(e,t){return o[t]&&Math.abs(+e[i])||0})),u=c.reduce((function(e,t){return e+t}),0),d=(e=0,c.map((function(t){return e+=t/u}
1))),h=this.label.enabled&&this.labelKey,p=h?l.map((function(e){return String(e[h])})):[],f=!!r&&!this.innerRadiusOffset,m=[];if(f){var g=l.map((function(e){return Math.abs(e[r])})),y=Math.max.apply(Math,g);m=g.map((function(e){return e/y}))}a.length=0;var v=xD(this.rotation),_=Math.PI/2,b=0;return d.reduce((function(e,n){var i,r,o,c=f?m[b]:1,u=s.convert(e)+v,d=s.convert(n)+v,g=(u+d)/2,y=Math.abs(d-u),w=Math.cos(g),C=Math.sin(g),E=xD(t.label.minAngle),S=(i=g,(i%=SD)<-Math.PI?i+=SD:i>=Math.PI&&(i-=SD),i),D=-3*Math.PI/4;return S>=D&&S<(D+=_)?(r="center",o="bottom"):S>=D&&S<(D+=_)?(r="left",o="middle"):S>=D&&S<(D+=_)?(r="center",o="hanging"):(r="right",o="middle"),a.push({series:t,seriesDatum:l[b],index:b,radius:c,startAngle:u,endAngle:d,midAngle:g,midCos:w,midSin:C,label:h&&y>E?{text:p[b],textAlign:r,textBaseline:o}:void 0}),b++,n}),0),!0},t.prototype.update=function(){var e=this.chart;if((this.group.visible=this.visible&&this.seriesItemEnabled.indexOf(!0)>=0)&&e&&!e.dataPending&&!e.layoutPending){this.radiusScale.range=[0,this.radius],this.group.translationX=this.centerX,this.group.translationY=this.centerY;var t=this.title;t&&(t.node.translationY=-this.radius-this.outerRadiusOffset-2,t.node.visible=t.enabled),this.updateGroupSelection(),this.updateNodes()}},t.prototype.updateGroupSelection=function(){var e=this.groupSelection.setData(this.groupSelectionData);e.exit.remove();var t=e.enter.append(_D);t.append(eO).each((function(e){return e.tag=KT.Sector})),t.append(ED).each((function(e){e.tag=KT.Callout,e.pointerEvents=JS.None})),t.append(uD).each((function(e){e.tag=KT.Label,e.pointerEvents=JS.None})),this.groupSelection=e.merge(t)},t.prototype.updateNodes=function(){var e=this,t=e.fills,n=e.strokes,i=e.fillOpacity,r=e.strokeOpacity,o=e.strokeWidth,s=e.outerRadiusOffset,a=e.innerRadiusOffset,l=e.radiusScale,c=e.callout,u=e.shadow,d=e.highlightStyle,h=d.fill,p=d.stroke,f=d.centerOffset,m=this.chart.highlightedDatum,g=1/0,y=[],v=[];this.groupSelection.selectByTag(KT.Sector).each((function(e,c,d){var _=l.convert(c.radius),b=Math.max(0,_+s);g>b&&(g=b),e.outerRadius=b,e.innerRadius=Math.max(0,a?_+a:0),e.startAngle=c.startAngle,e.endAngle=c.endAngle;var w=c===m;e.fill=w&&void 0!==h?h:t[d%t.length],e.stroke=w&&void 0!==p?p:n[d%n.length],e.fillOpacity=i,e.strokeOpacity=r,e.centerOffset=w&&void 0!==f?f:0,e.fillShadow=u,e.strokeWidth=o,e.lineJoin="round",y.push(b),v.push(e.centerOffset)}));var _=c.colors,b=c.length,w=c.strokeWidth;this.groupSelection.selectByTag(KT.Callout).each((function(e,t,n){if(t.label){var i=v[n]+y[n];e.strokeWidth=w,e.stroke=_[n%_.length],e.x1=t.midCos*i,e.y1=t.midSin*i,e.x2=t.midCos*(i+b),e.y2=t.midSin*(i+b)}else e.stroke=void 0}));var C=this.label,E=C.offset,S=C.fontStyle,D=C.fontWeight,x=C.fontSize,T=C.fontFamily,O=C.color;this.groupSelection.selectByTag(KT.Label).each((function(e,t,n){var i=t.label;if(i){var r=v[n]+y[n]+b+E;e.fontStyle=S,e.fontWeight=D,e.fontSize=x,e.fontFamily=T,e.text=i.text,e.x=t.midCos*r,e.y=t.midSin*r,e.fill=O,e.textAlign=i.textAlign,e.textBaseline=i.textBaseline}else e.fill=void 0}))},t.prototype.fireNodeClickEvent=function(e){this.fireEvent({type:"nodeClick",series:this,datum:e.seriesDatum,angleKey:this.angleKey,radiusKey:this.radiusKey})},t.prototype.getTooltipHtml=function(e){var t=this.angleKey;if(!t)return"";var n=this,i=n.title,r=n.fills,o=n.tooltipRenderer,s=n.labelKey,a=i?i.text:void 0,l=r[e.index%r.length];if(o)return o({datum:e.seriesDatum,angleKey:t,angleName:n.angleName,radiusKey:n.radiusKey,radiusName:n.radiusName,labelKey:s,labelName:n.labelName,title:a,color:l});var c=i?'<div class="'+Jx.defaultTooltipClass+'-title" style="color: white; background-color: '+l+'">'+a+"</div>":"",u=s?e.seriesDatum[s]+": ":"",d=e.seriesDatum[t],h="number"==typeof d?LD(d):d.toString();return c+'<div class="'+Jx.defaultTooltipClass+'-content">'+u+h+"</div>"},t.prototype.listSeriesItems=function(e){var t=this,n=this.labelKey,i=this.data;if(i&&i.length&&n){var r=this.fills,o=this.strokes,s=this.id;i.forEach((function(i,a){e.push({id:s,itemId:a,enabled:t.seriesItemEnabled[a],label:{text:String(i[n])},marker:{fill:r[a%r.length],stroke:o[a%o.length],fillOpacity:t.fillOpacity,strokeOpacity:t.strokeOpacity}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.seriesItemEnabled[e]=t,this.scheduleData()},t.className="PieSeries",t.type="pie",iO([pD("dataChange")],t.prototype,"angleKey",void 0),iO([pD("update")],t.prototype,"angleName",void 0),iO([pD("dataChange")],t.prototype,"radiusKey",void 0),iO([pD("update")],t.prototype,"radiusName",void 0),iO([pD("dataChange")],t.prototype,"labelKey",void 0),iO([pD("update")],t.prototype,"labelName",void 0),iO([pD("layoutChange")],t.prototype,"fillOpacity",void 0),iO([pD("layoutChange")],t.prototype,"strokeOpacity",void 0),iO([pD("dataChange")],t.prototype,"rotation",void 0),iO([pD("layoutChange")],t.prototype,"outerRadiusOffset",void 0),iO([pD("dataChange")],t.prototype,"innerRadiusOffset",void 0),iO([pD("layoutChange")],t.prototype,"strokeWidth",void 0),iO([pD("layoutChange")],t.prototype,"shadow",void 0),t}(sT),aO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),lO=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},cO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.color="rgba(0, 0, 0, 0.5)",t.xOffset=0,t.yOffset=0,t.blur=5,t}return aO(t,e),lO([pD("change")],t.prototype,"enabled",void 0),lO([pD("change")],t.prototype,"color",void 0),lO([pD("change")],t.prototype,"xOffset",void 0),lO([pD("change")],t.prototype,"yOffset",void 0),lO([pD("change")],t.prototype,"blur",void 0),t}
1(hD),uO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dO=function(e){function t(){var t=e.call(this,new BT)||this;return t._nice=!0,t._min=NaN,t._max=NaN,t.scale.clamp=!0,t}return uO(t,e),Object.defineProperty(t.prototype,"nice",{get:function(){return this._nice},set:function(e){this._nice!==e&&(this._nice=e,e&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){var t=this.min,n=this.max;e=[isNaN(t)?e[0]:t,isNaN(n)?e[1]:n],this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){this._min!==e&&(this._min=e,isNaN(e)||(this.scale.domain=[e,this.scale.domain[1]]))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){this._max!==e&&(this._max=e,isNaN(e)||(this.scale.domain=[this.scale.domain[0],e]))},enumerable:!0,configurable:!0}),t.className="NumberAxis",t.type="number",t}(qD),hO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pO=new Date,fO=new Date,mO=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o._count=i,o._field=r,o}return hO(t,e),t.prototype.count=function(e,t){return pO.setTime(+e),fO.setTime(+t),this._floor(pO),this._floor(fO),Math.floor(this._count(pO,fO))},t.prototype.every=function(e){var t,n=this;if(e=Math.floor(e),isFinite(e)&&e>0)if(e>1){var i=this._field;t=this.filter(i?function(t){return i(t)%e==0}:function(t){return n.count(0,t)%e==0})}else t=this;return t},t}(function(){function e(e,t){this._floor=e,this._offset=t}return e.prototype.floor=function(e){return e=new Date(+e),this._floor(e),e},e.prototype.ceil=function(e){return e=new Date(+e-1),this._floor(e),this._offset(e,1),this._floor(e),e},e.prototype.round=function(e){var t=this.floor(e),n=this.ceil(e),i=+e;return i-t.getTime()<n.getTime()-i?t:n},e.prototype.offset=function(e,t){return void 0===t&&(t=1),e=new Date(+e),this._offset(e,Math.floor(t)),e},e.prototype.range=function(e,t,n){void 0===n&&(n=1);var i,r=[];if(e=this.ceil(e),n=Math.floor(n),e>t||n<=0)return r;do{i=new Date(+e),r.push(i),this._offset(e,n),this._floor(e)}while(i<e&&e<t);return r},e.prototype.filter=function(t){var n=this;return new e((function(e){if(e>=e)for(;n._floor(e),!t(e);)e.setTime(e.getTime()-1);return e}),(function(e,i){if(e>=e)if(i<0)for(;++i<=0;)do{n._offset(e,-1)}while(!t(e));else for(;--i>=0;)do{n._offset(e,1)}while(!t(e));return e}))},e}()),gO=new mO((function(e){return e}),(function(e,t){e.setTime(e.getTime()+t)}),(function(e,t){return t.getTime()-e.getTime()})),yO=new mO((function(e){e.setTime(e.getTime()-e.getMilliseconds())}),(function(e,t){e.setTime(e.getTime()+1e3*t)}),(function(e,t){return(t.getTime()-e.getTime())/1e3})),vO=new mO((function(e){e.setTime(e.getTime()-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(e.getTime()+6e4*t)}),(function(e,t){return(t.getTime()-e.getTime())/6e4}),(function(e){return e.getMinutes()})),_O=new mO((function(e){e.setTime(e.getTime()-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(e.getTime()+36e5*t)}),(function(e,t){return(t.getTime()-e.getTime())/36e5}),(function(e){return e.getHours()})),bO=new mO((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){var n=t.getTimezoneOffset()-e.getTimezoneOffset();return(t.getTime()-e.getTime()-6e4*n)/864e5}),(function(e){return e.getDate()-1}));function wO(e){return new mO((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t.getTime()-e.getTime()-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var CO=wO(0),EO=wO(1),SO=(wO(2),wO(3),wO(4)),DO=(wO(5),wO(6),CO),xO=new mO((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),TO=new mO((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})),OO=new mO((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return e.getUTCDate()-1}
1)),kO=new mO((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function IO(e){return new mO((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t.getTime()-e.getTime())/6048e5}))}var RO=IO(0),MO=IO(1),AO=(IO(2),IO(3),IO(4)),PO=(IO(5),IO(6),RO);function LO(e){if(e.y>=0&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function NO(e){if(e.y>=0&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function FO(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].toLowerCase()]=n;return t}function jO(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var VO,HO=/^\s*\d+/,YO=/^%/,BO=/[\\^$*+?|[\]().{}]/g,GO=function(e){return e.replace(BO,"\\$&")},WO=function(e){return new RegExp("^(?:"+e.map(GO).join("|")+")","i")},UO={"-":"",_:" ",0:"0"};function zO(e,t,n){var i=e<0?"-":"",r=String(i?-e:e),o=r.length;return i+(o<n?new Array(n-o+1).join(t)+r:r)}VO=function(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=WO(r),u=FO(r),d=WO(o),h=FO(o),p=WO(s),f=FO(s),m=WO(a),g=FO(a),y=WO(l),v=FO(l),_={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:void 0,d:x,e:x,f:function(e,t){return D(e,t)+"000"},H:function(e,t){return zO(e.getHours(),t,2)},I:function(e,t){return zO(e.getHours()%12||12,t,2)},j:function(e,t){return zO(1+bO.count(TO.floor(e),e),t,3)},L:D,m:function(e,t){return zO(e.getMonth()+1,t,2)},M:function(e,t){return zO(e.getMinutes(),t,2)},p:function(e){return r[e.getHours()>=12?1:0]},Q:I,s:R,S:function(e,t){return zO(e.getSeconds(),t,2)},u:function(e){var t=e.getDay();return 0===t?7:t},U:function(e,t){return zO(CO.count(TO.floor(e),e),t,2)},V:function(e,t){var n=e.getDay();e=n>=4||0===n?SO.floor(e):SO.ceil(e);var i=TO.floor(e);return zO(SO.count(i,e)+(4===i.getDay()?1:0),t,2)},w:function(e){return e.getDay()},W:function(e,t){return zO(EO.count(TO.floor(e),e),t,2)},x:void 0,X:void 0,y:function(e,t){return zO(e.getFullYear()%100,t,2)},Y:function(e,t){return zO(e.getFullYear()%1e4,t,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zO(Math.floor(t/60),"0",2)+zO(t%60,"0",2)},"%":k},b={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:void 0,d:O,e:O,f:function(e,t){return T(e,t)+"000"},H:function(e,t){return zO(e.getUTCHours(),t,2)},I:function(e,t){return zO(e.getUTCHours()%12||12,t,2)},j:function(e,t){return zO(1+OO.count(kO.floor(e),e),t,3)},L:T,m:function(e,t){return zO(e.getUTCMonth()+1,t,2)},M:function(e,t){return zO(e.getUTCMinutes(),t,2)},p:function(e){return r[e.getUTCHours()>=12?1:0]},Q:I,s:R,S:function(e,t){return zO(e.getUTCSeconds(),t,2)},u:function(e){var t=e.getUTCDay();return 0===t?7:t},U:function(e,t){return zO(PO.count(kO.floor(e),e),t,2)},V:function(e,t){var n=e.getUTCDay();e=n>=4||0===n?AO.floor(e):AO.ceil(e);var i=kO.floor(e);return zO(AO.count(i,e)+(4===i.getUTCDay()?1:0),t,4)},w:function(e){return e.getUTCDay()},W:function(e,t){return zO(MO.count(kO.floor(e),e),t,2)},x:void 0,X:void 0,y:function(e,t){return zO(e.getUTCFullYear()%100,t,2)},Y:function(e,t){return zO(e.getUTCFullYear()%1e4,t,4)},Z:function(){return"+0000"},"%":k},w={a:function(e,t,n){var i=p.exec(t.slice(n));return i?(e.w=f[i[0].toLowerCase()],n+i[0].length):-1},A:function(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=h[i[0].toLowerCase()],n+i[0].length):-1},b:function(e,t,n){var i=y.exec(t.slice(n));return i?(e.m=v[i[0].toLowerCase()],n+i[0].length):-1},B:function(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=g[i[0].toLowerCase()],n+i[0].length):-1},c:function(e,n,i){return S(e,t,n,i)},d:A,e:A,f:function(e,t,n){var i=HO.exec(t.slice(n,n+6));return i?(e.L=Math.floor(parseFloat(i[0])/1e3),n+i[0].length):-1},H:M,I:M,j:function(e,t,n){var i=HO.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1},L:function(e,t,n){var i=HO.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1},m:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.m=parseFloat(i[0])-1,n+i[0].length):-1},M:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1},p:function(e,t,n){var i=c.exec(t.slice(n));return i?(e.p=u[i[0].toLowerCase()],n+i[0].length):-1},Q:function(e,t,n){var i=HO.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1},s:function(e,t,n){var i=HO.exec(t.slice(n));return i?(e.Q=1e3*+i[0],n+i[0].length):-1},S:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1},u:function(e,t,n){var i=HO.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1},U:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1},V:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1},w:function(e,t,n){var i=HO.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1},W:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1},x:function(e,t,i){return S(e,n,t,i)},X:function(e,t,n){return S(e,i,t,n)},y:function(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1},Y:function(e,t,n){var i=HO.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1},Z:function(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1},"%":function(e,t,n){var i=YO.exec(t.slice(n,n+1));return i?n+i[0].length:-1}};function C(e,t){return function(n){var i=jO(1900);if(S(i,e,n+="",0)==n.length){if("Q"in i)return new Date(i.Q);if("p"in i&&(i.H=i.H%12+12*i.p),"V"in i){if(i.V<1||i.V>53)return;if("w"in i||(i.w=1),"Z"in i){var r=(o=NO(jO(i.y))).getUTCDay();o=r>4||0===r?MO.ceil(o):MO.floor(o),o=OO.offset(o,7*(i.V-1)),i.y=o.getUTCFullYear(),i.m=o.getUTCMonth(),i.d=o.getUTCDate()+(i.w+6)%7}else{var o;r=(o=t(jO(i.y))).getDay(),o=r>4||0===r?EO.ceil(o):EO.floor(o),o=bO.offset(o,7*(i.V-1)),i.y=o.getFullYear(),i.m=o.getMonth(),i.d=o.getDate()+(i.w+6)%7}}
1else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),r="Z"in i?NO(jO(i.y)).getUTCDay():t(jO(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(r+5)%7:i.w+7*i.U-(r+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,NO(i)):t(i)}}}function E(e,t){return function(n){var i=[],r=e.length,o=-1,s=0;for(n instanceof Date||(n=new Date(+n));++o<r;)if(37===e.charCodeAt(o)){i.push(e.slice(s,o));var a=e.charAt(++o),l=UO[a];null!=l?a=e.charAt(++o):l="e"===a?" ":"0";var c=t[a];c&&(a=c(n,l)),i.push(a),s=o+1}return i.push(e.slice(s,o)),i.join("")}}function S(e,t,n,i){for(var r=0,o=t.length,s=n.length;r<o;){if(i>=s)return-1;var a=t.charCodeAt(r++);if(37===a){var l=t.charAt(r++),c=w[l in UO?t.charAt(r++):l];if(!c||(i=c(e,n,i))<0)return-1}else if(a!=n.charCodeAt(i++))return-1}return i}function D(e,t){return zO(e.getMilliseconds(),t,3)}function x(e,t){return zO(e.getDate(),t,2)}function T(e,t){return zO(e.getUTCMilliseconds(),t,3)}function O(e,t){return zO(e.getUTCDate(),t,2)}function k(e){return"%"}function I(e){return e.getTime()}function R(e){return Math.floor(e.getTime()/1e3)}function M(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function A(e,t,n){var i=HO.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}return _.x=E(n,_),_.X=E(i,_),_.c=E(t,_),b.x=E(n,b),b.X=E(i,b),b.c=E(t,b),{format:function(e){var t=E(e,_);return t.toString=function(){return e},t},parse:function(e){var t=C(e,LO);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,NO);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qO=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),KO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.year=TO,t.month=xO,t.week=DO,t.day=bO,t.hour=_O,t.minute=vO,t.second=yO,t.millisecond=gO,t.format=VO.format,t.tickIntervals=[[t.second,1,1e3],[t.second,5,5e3],[t.second,15,15e3],[t.second,30,3e4],[t.minute,1,6e4],[t.minute,5,3e5],[t.minute,15,9e5],[t.minute,30,18e5],[t.hour,1,36e5],[t.hour,3,108e5],[t.hour,6,216e5],[t.hour,12,432e5],[t.day,1,864e5],[t.day,2,1728e5],[t.week,1,6048e5],[t.month,1,2592e6],[t.month,3,7776e6],[t.year,1,31536e6]],t.formatMillisecond=t.format(".%L"),t.formatSecond=t.format(":%S"),t.formatMinute=t.format("%I:%M"),t.formatHour=t.format("%I %p"),t.formatDay=t.format("%a %d"),t.formatWeek=t.format("%b %d"),t.formatMonth=t.format("%B"),t.formatYear=t.format("%Y"),t._domain=[new Date(2e3,0,1),new Date(2e3,0,2)],t}return qO(t,e),t.prototype.defaultTickFormat=function(e){return(this.second.floor(e)<e?this.formatMillisecond:this.minute.floor(e)<e?this.formatSecond:this.hour.floor(e)<e?this.formatMinute:this.day.floor(e)<e?this.formatHour:this.month.floor(e)<e?this.week.floor(e)<e?this.formatDay:this.formatWeek:this.year.floor(e)<e?this.formatMonth:this.formatYear)(e)},t.prototype.tickInterval=function(e,t,n,i){var r;if(void 0===e&&(e=10),"number"==typeof e){var o=e,s=this.tickIntervals,a=Math.abs(n-t)/o,l=function(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var o=function(e,t){return(n=function(e){return e[2]}(e))<(i=t)?-1:n>i?1:n>=i?0:NaN;var n,i};i<r;){var s=i+r>>>1;o(e[s],t)<0?i=s+1:r=s}return i}(s,a);l===s.length?(i=FT(t/31536e6,n/31536e6,o),e=this.year):l?(e=(r=s[a/s[l-1][2]<s[l][2]/a?l-1:l])[0],i=r[1]):(i=Math.max(FT(t,n,e),1),e=this.millisecond)}return null==i?e:e.every(i)},Object.defineProperty(t.prototype,"domain",{get:function(){return e.prototype.getDomain.call(this).map((function(e){return new Date(e)}))},set:function(t){e.prototype.setDomain.call(this,Array.prototype.map.call(t,(function(e){return e instanceof Date?+e:+new Date(+e)})))},enumerable:!0,configurable:!0}),t.prototype.invert=function(t){return new Date(e.prototype.invert.call(this,t))},t.prototype.ticks=function(t){void 0===t&&(t=10);var n=e.prototype.getDomain.call(this),i=n[0],r=n[n.length-1],o=r<i;if(o){var s=i;i=r,r=s}
1var a=this.tickInterval(t,i,r),l=a?a.range(i,r+1):[];return o?l.reverse():l},t.prototype.tickFormat=function(e,t){return null==t?this.defaultTickFormat.bind(this):this.format(t)},t.prototype.nice=function(t){void 0===t&&(t=10);var n=e.prototype.getDomain.call(this),i=this.tickInterval(t,n[0],n[n.length-1]);i&&(this.domain=this._nice(n,i))},t.prototype._nice=function(e,t){var n,i,r=0,o=(e=e.slice()).length-1,s=e[r],a=e[o];return a<s&&(r=(n=[o,r])[0],o=n[1],s=(i=[a,s])[0],a=i[1]),e[r]=t.floor(s),e[o]=t.ceil(a),e},t}(OT),$O=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),QO=function(e){function t(){var t=e.call(this,new KO)||this;return t._nice=!0,t.scale.clamp=!0,t}return $O(t,e),Object.defineProperty(t.prototype,"nice",{get:function(){return this._nice},set:function(e){this._nice!==e&&(this._nice=e,e&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),t.className="TimeAxis",t.type="time",t}(qD),XO=(function(){function e(){}var t;e.createCartesianChart=function(e,t,n,i){var r=new eT(i);return r.container=e,t.position=YD.Bottom,n.position=YD.Left,r.axes=[t,n],r},e.createGroupedCategoryChart=function(e,t,n,i){var r=new nT(i);return r.container=e,t.position=YD.Bottom,n.position=YD.Left,r.axes=[t,n],r},e.createBarChart=function(t,n){var i=this.createCartesianChart(t,e.createAxis(n.xAxis,"number"),e.createAxis(n.yAxis,"category"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initBarSeries(new bT,t)}))),i},e.createGroupedBarChart=function(t,n){var i=this.createGroupedCategoryChart(t,e.createAxis(n.xAxis,"number"),e.createGroupedCategoryAxis(n.yAxis),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initBarSeries(new bT,t)}))),i},e.createColumnChart=function(t,n){var i=this.createCartesianChart(t,e.createAxis(n.xAxis,"category"),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initBarSeries(new bT,t)}))),i},e.createGroupedColumnChart=function(t,n){var i=this.createGroupedCategoryChart(t,e.createGroupedCategoryAxis(n.xAxis),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initBarSeries(new bT,t)}))),i},e.createLineChart=function(t,n){var i=this.createCartesianChart(t,e.createAxis(n.xAxis,"category"),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initLineSeries(new RT,t)}))),i},e.createGroupedLineChart=function(t,n){var i=this.createGroupedCategoryChart(t,e.createGroupedCategoryAxis(n.xAxis),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initLineSeries(new RT,t)}))),i},e.createScatterChart=function(t,n){var i=this.createCartesianChart(t,e.createAxis(n.xAxis,"number"),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initScatterSeries(new UT,t)}))),i},e.createAreaChart=function(t,n){var i=this.createCartesianChart(t,e.createAxis(n.xAxis,"category"),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initAreaSeries(new pT,t)}))),i},e.createGroupedAreaChart=function(t,n){var i=this.createGroupedCategoryChart(t,e.createGroupedCategoryAxis(n.xAxis),e.createAxis(n.yAxis,"number"),n.document);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initAreaSeries(new pT,t)}))),i},e.createHistogramChart=function(t,n){var i=this.createCartesianChart(t,e.createNumberAxis(n.xAxis),e.createNumberAxis(n.yAxis),n.document);return e.initChart(i,n),i},e.createPolarChart=function(e){var t=new lT;return t.container=e,t},e.createDoughnutChart=function(e,t){return this.createPieChart(e,t)},e.createPieChart=function(t,n){var i=this.createPolarChart(t);return e.initChart(i,n),n.series&&(i.series=n.series.map((function(t){return e.initPieSeries(new sO,t)}))),i},e.createSeries=function(t){switch(t&&t.type){case"line":return e.initLineSeries(new RT,t);case"scatter":return e.initScatterSeries(new UT,t);case"bar":return e.initBarSeries(new bT,t);case"area":return e.initAreaSeries(new pT,t);case"pie":return e.initPieSeries(new sO,t);case"histogram":return e.initHistogramSeries(new JT,t);default:return null}},e.initChart=function(t,n){this.setValueIfExists(t,"width",n.width),this.setValueIfExists(t,"height",n.height),this.setValueIfExists(t,"tooltipClass",n.tooltipClass),this.setTransformedValueIfE
1xists(t,"title",(function(t){return e.createTitle(t)}),n.title),this.setTransformedValueIfExists(t,"subtitle",(function(t){return e.createSubtitle(t)}),n.subtitle),this.setTransformedValueIfExists(t,"padding",(function(e){return new ZS(e.top,e.right,e.bottom,e.left)}),n.padding),n.background&&(this.setValueIfExists(t.background,"fill",n.background.fill),this.setValueIfExists(t.background,"visible",n.background.visible)),void 0!==n.legend&&e.initLegend(t.legend,n.legend);var i=n.listeners;if(i)for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];"function"==typeof o&&t.addEventListener(r,o)}return t},e.initSeries=function(e,t){this.setValueIfExists(e,"visible",t.visible),this.setValueIfExists(e,"showInLegend",t.showInLegend),this.setValueIfExists(e,"data",t.data);var n=t.listeners;if(n)for(var i in n)if(n.hasOwnProperty(i)){var r=n[i];"function"==typeof r&&e.addEventListener(i,r)}return e},e.initLineSeries=function(t,n){e.initSeries(t,n),this.setValueIfExists(t,"title",n.title);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.marker,l=n.tooltip;return i&&(this.setValueIfExists(t,"xKey",i.xKey),this.setValueIfExists(t,"xName",i.xName),this.setValueIfExists(t,"yKey",i.yKey),this.setValueIfExists(t,"yName",i.yName)),r&&this.setValueIfExists(t.marker,"fill",r.color),o&&(this.setValueIfExists(t,"stroke",o.color),this.setValueIfExists(t,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&this.initMarker(t.marker,a),l&&(this.setValueIfExists(t,"tooltipEnabled",l.enabled),this.setValueIfExists(t,"tooltipRenderer",l.renderer)),t},e.initScatterSeries=function(t,n){e.initSeries(t,n),this.setValueIfExists(t,"title",n.title);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.marker,l=n.tooltip;return i&&(this.setValueIfExists(t,"xKey",i.xKey),this.setValueIfExists(t,"xName",i.xName),this.setValueIfExists(t,"yKey",i.yKey),this.setValueIfExists(t,"yName",i.yName),this.setValueIfExists(t,"sizeKey",i.sizeKey),this.setValueIfExists(t,"sizeName",i.sizeName),this.setValueIfExists(t,"labelKey",i.labelKey),this.setValueIfExists(t,"labelName",i.labelName)),r&&this.setValueIfExists(t.marker,"fill",r.color),o&&(this.setValueIfExists(t.marker,"stroke",o.color),this.setValueIfExists(t.marker,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&this.initMarker(t.marker,a),l&&(this.setValueIfExists(t,"tooltipEnabled",l.enabled),this.setValueIfExists(t,"tooltipRenderer",l.renderer)),t},e.initLabelOptions=function(e,t){this.setValueIfExists(e,"enabled",t.enabled),this.setValueIfExists(e,"fontStyle",t.fontStyle),this.setValueIfExists(e,"fontWeight",t.fontWeight),this.setValueIfExists(e,"fontSize",t.fontSize),this.setValueIfExists(e,"fontFamily",t.fontFamily),this.setValueIfExists(e,"color",t.color)},e.initBarSeries=function(t,n){e.initSeries(t,n),this.setValueIfExists(t,"grouped",n.grouped),this.setValueIfExists(t,"normalizedTo",n.normalizedTo);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.label,l=n.tooltip;return i&&(this.setValueIfExists(t,"xKey",i.xKey),this.setValueIfExists(t,"yKeys",i.yKeys),this.setValueIfExists(t,"yNames",i.yNames)),r&&(this.setValueIfExists(t,"fills",r.colors),this.setValueIfExists(t,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(t,"strokes",o.colors),this.setValueIfExists(t,"strokeOpacity",o.opacity),this.setValueIfExists(t,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&(e.initLabelOptions(t.label,a),this.setValueIfExists(t.label,"enabled",a.enabled),this.setValueIfExists(t.label,"formatter",a.formatter)),l&&(this.setValueIfExists(t,"tooltipEnabled",l.enabled),this.setValueIfExists(t,"tooltipRenderer",l.renderer)),this.setTransformedValueIfExists(t,"shadow",(function(t){return e.createDropShadow(t)}),n.shadow),t},e.initAreaSeries=function(t,n){e.initSeries(t,n),this.setValueIfExists(t,"normalizedTo",n.normalizedTo);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.marker,l=n.tooltip;return i&&(this.setValueIfExists(t,"xKey",i.xKey),this.setValueIfExists(t,"yKeys",i.yKeys),this.setValueIfExists(t,"yNames",i.yNames)),r&&(this.setValueIfExists(t,"fills",r.colors),this.setValueIfExists(t,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(t,"strokes",o.colors),this.setValueIfExists(t,"strokeOpacity",o.opacity),this.setValueIfExists(t,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&this.initMarker(t.marker,a),l&&(this.setValueIfExists(t,"tooltipEnabled",l.enabled),this.setValueIfExists(t,"tooltipRenderer",l.renderer)),this.setTransformedValueIfE
1xists(t,"shadow",(function(t){return e.createDropShadow(t)}),n.shadow),t},e.initPieSeries=function(t,n){e.initSeries(t,n),this.setTransformedValueIfExists(t,"title",(function(t){return e.createPieTitle(t)}),n.title),this.setValueIfExists(t,"rotation",n.rotation),this.setValueIfExists(t,"outerRadiusOffset",n.outerRadiusOffset),this.setValueIfExists(t,"innerRadiusOffset",n.innerRadiusOffset);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.callout,l=n.label,c=n.tooltip;return i&&(this.setValueIfExists(t,"angleKey",i.angleKey),this.setValueIfExists(t,"angleName",i.angleName),this.setValueIfExists(t,"radiusKey",i.radiusKey),this.setValueIfExists(t,"radiusName",i.radiusName),this.setValueIfExists(t,"labelKey",i.labelKey),this.setValueIfExists(t,"labelName",i.labelName)),r&&(this.setValueIfExists(t,"fills",r.colors),this.setValueIfExists(t,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(t,"strokes",o.colors),this.setValueIfExists(t,"strokeOpacity",o.opacity),this.setValueIfExists(t,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&(this.setValueIfExists(t.callout,"colors",a.colors),this.setValueIfExists(t.callout,"strokeWidth",a.strokeWidth),this.setValueIfExists(t.callout,"length",a.length)),l&&(e.initLabelOptions(t.label,l),this.setValueIfExists(t.label,"enabled",l.enabled),this.setValueIfExists(t.label,"minAngle",l.minRequiredA
1ngle),this.setValueIfExists(t.label,"offset",l.offset)),c&&(this.setValueIfExists(t,"tooltipEnabled",c.enabled),this.setValueIfExists(t,"tooltipRenderer",c.renderer)),this.setTransformedValueIfExists(t,"shadow",(function(t){return e.createDropShadow(t)}),n.shadow),t},e.initHistogramSeries=function(t,n){e.initSeries(t,n);var i=n.field,r=n.fill,o=n.stroke,s=n.highlightStyle,a=n.tooltip;return this.setValueIfExists(t,"binCount",n.binCount),i&&this.setValueIfExists(t,"xKey",i.xKey),r&&(this.setValueIfExists(t,"fill",r.color),this.setValueIfExists(t,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(t,"stroke",o.color),this.setValueIfExists(t,"strokeOpacity",o.opacity),this.setValueIfExists(t,"strokeWidth",o.width)),s&&this.initHighlightStyle(t.highlightStyle,s),a&&(this.setValueIfExists(t,"tooltipEnabled",a.enabled),this.setValueIfExists(t,"tooltipRenderer",a.renderer)),t},e.getMarkerByName=function(e){return this.markerShapes.get(e)||gx},e.initLegend=function(t,n){this.setValueIfExists(t,"enabled",n.enabled),this.setValueIfExists(t,"position",n.position);var i=n.item;if(i){var r=i.label,o=i.marker;r&&(this.setValueIfExists(t,"fontFamily",r.fontFamily),this.setValueIfExists(t,"fontSize",r.fontSize),this.setValueIfExists(t,"fontStyle",r.fontStyle),this.setValueIfExists(t,"fontWeight",r.fontWeight),this.setValueIfExists(t,"color",r.color)),o&&(this.setValueIfExists(t,"markerShape",e.getMarkerByName(o.shape)),this.setValueIfExists(t,"strokeWidth",o.strokeWidth),this.setValueIfExists(t,"markerSize",o.size),this.setValueIfExists(t,"itemSpacing",o.padding)),this.setValueIfExists(t,"layoutHorizontalSpacing",i.paddingX),this.setValueIfExists(t,"layoutVerticalSpacing",i.paddingY)}},e.initMarker=function(t,n){t.shape=e.getMarkerByName(n.shape),this.setValueIfExists(t,"enabled",n.enabled),this.setValueIfExists(t,"size",n.size),this.setValueIfExists(t,"minSize",n.minSize),this.setValueIfExists(t,"fill",n.fill),this.setValueIfExists(t,"stroke",n.stroke),this.setValueIfExists(t,"strokeWidth",n.strokeWidth)},e.initHighlightStyle=function(e,t){this.setValueIfExists(e,"fill",t.fill),this.setValueIfExists(e,"stroke",t.stroke)},e.setDefaultFontOptions=function(e,t,n,i){void 0===t&&(t=16),void 0===n&&(n="bold"),void 0===i&&(i="Verdana, sans-serif"),void 0===e.fontSize&&(e.fontSize=t),void 0===e.fontWeight&&(e.fontWeight=n),void 0===e.fontFamily&&(e.fontFamily=i)},e.createTitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text=""),this.setDefaultFontOptions(t),e.createCaption(t)},e.createSubtitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text=""),this.setDefaultFontOptions(t,12),e.createCaption(t)},e.createPieTitle=function(t){return t=Object.create(t),this.setDefaultFontOptions(t,12),e.createCaption(t)},e.createCaption=function(e){var t=new gD;return this.setValueIfExists(t,"enabled",e.enabled),this.setValueIfExists(t,"text",e.text),this.setValueIfExists(t,"fontStyle",e.fontStyle),this.setValueIfExists(t,"fontWeight",e.fontWeight),this.setValueIfExists(t,"fontSize",e.fontSize),this.setValueIfExists(t,"fontFamily",e.fontFamily),this.setValueIfExists(t,"color",e.color),t},e.initAxis=function(t,n){this.setTransformedValueIfExists(t,"title",(function(t){return e.createTitle(t)}),n.title),this.setValueIfExists(t,"gridStyle",n.gridStyle);var i=n.line,r=n.tick,o=n.label;i&&(this.setValueIfExists(t.line,"width",i.width),this.setValueIfExists(t.line,"color",i.color)),r&&(this.setValueIfExists(t.tick,"width",r.width),this.setValueIfExists(t.tick,"size",r.size),this.setValueIfExists(t.tick,"color",r.color)),o&&(this.setValueIfExists(t.label,"fontStyle",o.fontStyle),this.setValueIfExists(t.label,"fontWeight",o.fontWeight),this.setValueIfExists(t.label,"fontSize",o.fontSize),this.setValueIfExists(t.label,"fontFamily",o.fontFamily),this.setValueIfExists(t.label,"color",o.color),this.setValueIfExists(t.label,"padding",o.padding),this.setValueIfExists(t.label,"rotation",o.rotation),this.setValueIfExists(t.label,"format",o.format),this.setValueIfExists(t.label,"formatter",o.formatter))},e.createNumberAxis=function(e){var t=new dO;return this.initAxis(t,e),t},e.createCategoryAxis=function(e){var t=new $D;return this.initAxis(t,e),t},e.createGroupedCategoryAxis=function(e){var t=new cx;return this.initAxis(t,e),t},e.createTimeAxis=function(e){var t=new QO;return this.initAxis(t,e),t},e.createAxis=function(e,t){var n=this.toAxisClass(e.type||t);
1if(!n)throw new Error("Unknown axis type");var i=new n;return this.initAxis(i,e),i},e.toAxisClass=function(e){return this.types.get(e)},e.setValueIfExists=function(e,t,n,i){void 0!==n&&(e[t]=i?i(n):n)},e.setTransformedValueIfExists=function(e,t,n,i){void 0!==i&&(e[t]=n(i))},e.markerShapes=function(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}([["circle",bx],["cross",Cx],["diamond",Sx],["plus",Ox],["square",gx],["triangle",Ix]]),e.createDropShadow=function(e){void 0===e&&(e={});var t=new cO;return t.enabled=null==e.enabled||e.enabled,t.xOffset=e.xOffset||0,t.yOffset=e.yOffset||0,t.blur=e.blur||5,t.color=e.color||"rgba(0, 0, 0, 0.5)",t},e.types=((t=new Map).set("category",$D),t.set("number",dO),t.set("time",QO),t)}(),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}());!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t.path=new RD,t._active=!0,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t}XO(t,e),t.prototype.isPointInNode=function(e,t){var n=this.transformPoint(e,t);return n.x>=this.x&&n.x<=this.x+this.width&&n.y>=this.y&&n.y<=this.y+this.height},Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(e){this._active!==e&&(this._active=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.rect(this.x,this.y,this.width,this.height),this.dirtyPath=!1},t.prototype.render=function(e){this.active&&(this.dirtyPath&&this.updatePath(),this.scene.appendPath(this.path),e.clip());for(var t=this.children,n=t.length,i=0;i<n;i++){e.save();var r=t[i];r.visible&&r.render(e),e.restore()}},t.className="ClipRect"}(iD),new mO((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(e.getTime()+6e4*t)}),(function(e,t){return(t.getTime()-e.getTime())/6e4}),(function(e){return e.getUTCMinutes()})),new mO((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(e.getTime()+36e5*t)}),(function(e,t){return(t.getTime()-e.getTime())/36e5}),(function(e){return e.getUTCHours()})),new mO((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));var JO,ZO,ek,tk,nk=function(){return(nk=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ik={background:{meta:{defaults:{visible:!0,fill:"white"}}},padding:{meta:{constructor:ZS,defaults:{top:20,right:20,bottom:20,left:20}}},title:{meta:{constructor:gD,defaults:{enabled:!0,padding:new ZS(10),text:"Title",fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"}}},subtitle:{meta:{constructor:gD,defaults:{enabled:!0,padding:new ZS(10),text:"Subtitle",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(140, 140, 140, 1)"}}},legend:{meta:{constructor:jx,defaults:{enabled:!0,position:Ax.Right,
1spacing:20,layoutHorizontalSpacing:16,layoutVerticalSpacing:8,itemSpacing:8,markerShape:void 0,markerSize:15,strokeWidth:1,color:"black",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif"}}}},rk={container:void 0,data:[],padding:new ZS(20),title:void 0,subtitle:void 0},ok={constructorParams:["document"],setAsIs:["container","data","tooltipOffset"]},sk={defaults:{gridStyle:[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}]}},ak={visible:!0,showInLegend:!0},lk={fills:rT.fills,strokes:rT.strokes,fillOpacity:1,strokeOpacity:1,xKey:"",xName:"",yKeys:[],yNames:[],grouped:!1,normalizedTo:void 0,strokeWidth:1,shadow:void 0,highlightStyle:{fill:"yellow"}},ck={shadow:{meta:{constructor:cO,defaults:{enabled:!0,color:"rgba(0, 0, 0, 0.5)",xOffset:0,yOffset:0,blur:5}}}},uk={enabled:!0,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"},dk={label:{meta:{defaults:nk({},uk)}}},hk={line:{meta:{defaults:{width:1,color:"rgba(195, 195, 195, 1)"}}},title:{meta:{constructor:gD,defaults:{enabled:!0,padding:new ZS(10),text:"Axis Title",fontStyle:void 0,fontWeight:"bold",fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"}}},label:{meta:{constructor:GD,defaults:{fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",padding:5,color:"rgba(87, 87, 87, 1)",formatter:void 0}}},tick:{meta:{constructor:BD,defaults:{width:1,size:6,color:"rgba(195, 195, 195, 1)",count:10}}}},pk=((JO={})[eT.type]=nk(nk({meta:nk(nk({constructor:eT},ok),{defaults:nk(nk({},rk),{axes:[{type:$D.type,position:"bottom"},{type:dO.type,position:"left"}]})})},ik),{axes:(ZO={},ZO[dO.type]=nk({meta:nk({constructor:dO,setAsIs:["gridStyle"]},sk)},hk),ZO[$D.type]=nk({meta:nk({constructor:$D,setAsIs:["gridStyle"]},sk)},hk),ZO[QO.type]=nk({meta:nk({constructor:QO,setAsIs:["gridStyle"]},sk)},hk),ZO),series:(ek={},ek[RT.type]={meta:{constructor:RT,defaults:{title:void 0,xKey:"",xName:"",yKey:"",yName:"",stroke:rT.fills[0],strokeWidth:2,fillOpacity:1,strokeOpacity:1,highlightStyle:{fill:"yellow"}}},highlightStyle:{},marker:{}},ek.column=nk(nk({meta:{constructor:bT,defaults:nk(nk({flipXY:!1},ak),lk)},highlightStyle:{}},dk),ck),ek.bar=nk(nk({meta:{constructor:bT,defaults:nk(nk({flipXY:!0},ak),lk)},highlightStyle:{}},dk),ck),ek[UT.type]={meta:{constructor:UT,defaults:nk(nk({},ak),{title:void 0,xKey:"",yKey:"",sizeKey:void 0,labelKey:void 0,xName:"",yName:"",sizeName:"Size",labelName:"Label",fill:rT.fills[0],stroke:rT.strokes[0],strokeWidth:2,fillOpacity:1,strokeOpacity:1,tooltipRenderer:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{},marker:{}},ek[pT.type]=nk({meta:{constructor:pT,defaults:nk(nk({},ak),{xKey:"",xName:"",yKeys:[],yNames:[],normalizedTo:void 0,fills:rT.fills,strokes:rT.strokes,fillOpacity:1,strokeOpacity:1,strokeWidth:2,shadow:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{},marker:{}},ck),ek[JT.type]={meta:{constructor:JT,defaults:nk(nk({},ak),{title:void 0,xKey:"",yKey:"",xName:"",yName:"",fill:rT.fills[0],stroke:rT.strokes[0],strokeWidth:1,fillOpacity:1,strokeOpacity:1,aggregation:"sum",tooltipRenderer:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{}},ek)}),JO[lT.type]=nk(nk({meta:nk(nk({constructor:lT},ok),{defaults:nk(nk({},rk),{padding:new ZS(40)})})},ik),{series:(tk={},tk[sO.type]=nk({meta:{constructor:sO,defaults:nk(nk({},ak),{title:void 0,calloutColors:rT.strokes,calloutStrokeWidth:1,calloutLength:10,angleKey:"",angleName:"",radiusKey:void 0,radiusName:void 0,labelKey:void 0,labelName:void 0,fills:rT.fills,strokes:rT.strokes,fillOpacity:1,strokeOpacity:1,rotation:0,outerRadiusOffset:0,innerRadiusOffset:0,strokeWidth:1,shadow:void 0})},highlightStyle:{},title:{meta:{constructor:gD,defaults:{enabled:!0,padding:new ZS(10),text:"Series Title",fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:"Verdana, sans-serif",color:"black"}}},label:{meta:{defaults:nk(nk({},uk),{offset:3,minAngle:20})}},callout:{meta:{defaults:{colors:rT.strokes,length:10,strokeWidth:1}}}},ck),tk)}),JO),fk={cartesian:["line","area","bar","column"],polar:["pie"]},mk=function(e){fk[e].forEach((function(t){pk[t]=pk[e]}))};for(var gk in fk)mk(gk);pk.scatter=pk.histogram=nk(nk({},pk.cartesian),{meta:nk(nk({},pk.cartesian.meta),{defaults:nk(nk({}
1,rk),{axes:[{type:"number",position:"bottom"},{type:"number",position:"left"}]})})});var yk=pk,vk=(function(){function e(){}e.create=function(e,t,n){e=Object.create(e),t&&(e.container=t),n&&(e.data=n);var i=e&&e.autoSize,r=wk(e);return r&&i&&(r.autoSize=!0),r},e.update=function(e,t){var n=t&&t.autoSize;!function e(t,n,i){if(n&&"object"==typeof n){_k(n,i),i?n.type&&(i=i+"."+n.type):i=n.type;var r=bk(i);if(r){Ck(n,r);var o=r.meta||{},s=["type"].concat(o&&o.constructorParams||[]);for(var a in n)if(s.indexOf(a)<0){var l=n[a],c=i+"."+a;if(o.setAsIs&&o.setAsIs.indexOf(a)>=0)t[a]=l;else{var u=t[a];if(Array.isArray(u)&&Array.isArray(l))if(i in yk){if("series"===a){for(var d=t,h=l,p=u,f=void 0,m=0;m<h.length;m++){var g=h[m];if(v=p[m])if(_k(g,c),v.type===g.type)e(v,g,c);else{var y=wk(g,c);d.removeSeries(v),d.addSeriesAfter(y,f),v=y}else y=wk(g,c),d.addSeries(y);f=v}for(;m<p.length;m++){var v;(v=p[m])&&d.removeSeries(v)}}else if("axes"===a){d=t;for(var _=u,b=[],w=[],C=function(t){var n=QD(_,(function(e){return e.type===t.type&&e.position===t.position}));if(n)w.push(n),e(n,t,c);else{var i=wk(t,c);i&&b.push(i)}},E=0,S=h=l;E<S.length;E++)C(g=S[E]);d.axes=w.concat(b)}}else t[a]=l;else if("object"==typeof u)l?e(u,l,l.type?i:c):a in n&&(t[a]=l);else{var D=Ek(l)&&wk(l,l.type?i:c);t[a]=D||l}}}}i in yk&&t.performLayout()}}(e,Object.create(t)),e&&n&&(e.autoSize=!0)}}(),{"cartesian.series":"line","line.series":"line","area.series":"area","bar.series":"bar","column.series":"column","scatter.series":"scatter","polar.series":"pie","pie.series":"pie"});function _k(e,t){if(t||function(e){if(!e.type){var t=e.series&&e.series[0];if(t&&t.type)e:for(var n in yk)for(var i in yk[n].series)if(t.type===i){e.type=n;break e}e.type||(e.type="cartesian")}}(e),!e.type){var n=vk[t];n&&(e.type=n)}}function bk(e){var t=e.split("."),n=yk;return t.forEach((function(e){n=n[e]})),n}function wk(e,t,n){var i;_k(e,t),t?e.type&&(t=t+"."+e.type):t=e.type;var r=bk(t);if(r){Ck(e,r);var o=r.meta||{},s=o.constructorParams||[],a=["type","listeners"].concat(s),l=s.map((function(t){return e[t]})).filter((function(e){return void 0!==e}));n=n||new((i=o.constructor).bind.apply(i,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}([void 0],l)));var c=function(i){if(a.indexOf(i)<0){var s=e[i];if(s&&i in r&&!(o.setAsIs&&o.setAsIs.indexOf(i)>=0))if(Array.isArray(s)){var l=s.map((function(e){return wk(e,t+"."+i)})).filter((function(e){return!!e}));n[i]=l}else if(r[i]&&n[i])wk(s,t+"."+i,n[i]);else{var c=wk(s,s.type?t:t+"."+i);c&&(n[i]=c)}else n[i]=s}};for(var u in e)c(u);var d=e.listeners;if(n&&n.addEventListener&&d)for(var u in d)if(d.hasOwnProperty(u)){var h=d[u];"function"==typeof h&&n.addEventListener(u,h)}return n}}function Ck(e,t){var n=t&&t.meta&&t.meta.defaults;if(n)for(var i in n)i in e||(e[i]=n[i])}function Ek(e){return"object"==typeof e&&!Array.isArray(e)}let Sk=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},imports:[[]]}),e})();var Dk,xk=n("lW6c");function Tk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Object(xk.a)();if(i&&i[e])return i[e].apply(i,Fr.__spread(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Ok(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return Tk("captureException",e,{originalException:e,syntheticException:t})}function kk(e){Tk("withScope",e)}var Ik=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Dk=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Dk.apply(n,e)}},e.id="FunctionToString",e}(),Rk=n("KjyA"),Mk=n("8LbN"),Ak=n("9/Zf"),Pk=n("+924"),Lk=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Nk=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Object(Rk.b)((function(t){var n=Object(xk.a)();if(!n)return t;var i=n.getIntegration(e);if(i){var r=n.getClient(),o=r?r.getOptions():{},s=i._mergeOptions(o);if(i._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Mk.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(Ak.e)(e)),!0):this._isIgnoredError(e,t)?(Mk.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(Ak.e)(e)),!0):this._isBlacklistedUrl(e,t)?(Mk.a.warn("Event dropped due to being matched by `blackl
1istUrls` option.\nEvent: "+Object(Ak.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(Mk.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(Ak.e)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(n){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(Pk.a)(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return Object(Pk.a)(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return Object(Pk.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:Fr.__spread(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:Fr.__spread(this._options.ignoreErrors||[],e.ignoreErrors||[],Lk),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:Fr.__spread(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,i=t.value,r=void 0===i?"":i;return[""+r,(void 0===n?"":n)+": "+r]}catch(o){return Mk.a.error("Cannot extract message for event "+Object(Ak.e)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(i){return Mk.a.error("Cannot extract url for event "+Object(Ak.e)(e)),null}},e.id="InboundFilters",e}(),Fk=n("HR75"),jk=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}),Vk=function(e){function t(t){var n=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=n.prototype.constructor.name,jk(i,n.prototype),i}return Fr.__extends(t,e),t}(Error),Hk=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,Yk=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.path,i=t.pass,r=t.port;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+t.host+(r?":"+r:"")+"/"+(n?n+"/":n)+t.projectId},e.prototype._fromString=function(e){var t=Hk.exec(e);if(!t)throw new Vk("Invalid Dsn");var n=Fr.__read(t.slice(1),6),i=n[0],r=n[1],o=n[2],s=void 0===o?"":o,a=n[3],l=n[4],c=void 0===l?"":l,u="",d=n[5],h=d.split("/");h.length>1&&(u=h.slice(0,-1).join("/"),d=h.pop()),this._fromComponents({host:a,pass:s,path:u,projectId:d,port:c,protocol:i,user:r})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new Vk("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new Vk("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new Vk("Invalid Dsn")},e}(),Bk=n("9AQC"),Gk=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();
1function Wk(e,t,n){if(t in e){var i=e[t],r=n(i);if("function"==typeof r)try{r.prototype=r.prototype||{},Object.defineProperties(r,{__sentry_original__:{enumerable:!1,value:i}})}catch(o){}e[t]=r}}function Uk(e){if(Object(Bk.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}if(Object(Bk.f)(e)){var r=e,o={};o.type=r.type;try{o.target=Object(Bk.c)(r.target)?Object(Ak.i)(r.target):Object.prototype.toString.call(r.target)}catch(s){o.target="<unknown>"}try{o.currentTarget=Object(Bk.c)(r.currentTarget)?Object(Ak.i)(r.currentTarget):Object.prototype.toString.call(r.currentTarget)}catch(s){o.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&Object(Bk.g)(e,CustomEvent)&&(o.detail=r.detail),r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r);return o}return e}function zk(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var i=Kk(e,t);return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?zk(e,t-1,n):i}function qk(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(Bk.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(Ak.f)(e)+"]":e}function Kk(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,i,r){if(void 0===i&&(i=1/0),void 0===r&&(r=new Gk),0===i)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=qk(e);return Object(Bk.i)(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=qk(n,t);if(Object(Bk.i)(o))return o;var s=Uk(n),a=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a[l]=e(l,s[l],i-1,r));return r.unmemoize(n),a}(e,n,t)})))}catch(n){return"**non-serializable**"}}function $k(e,t){void 0===t&&(t=40);var n=Object.keys(Uk(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(Pk.d)(n[0],t);for(var i=n.length;i>0;i--){var r=n.slice(0,i).join(", ");if(!(r.length>t))return i===n.length?r:Object(Pk.d)(r,t)}return""}var Qk,Xk=function(){function e(e){this.dsn=e,this._dsnObject=new Yk(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject;return(e.protocol?e.protocol+":":"")+"//"+e.host+(e.port?":"+e.port:"")},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,i=["Sentry sentry_version=7"];return i.push("sentry_timestamp="+Object(Ak.m)()),i.push("sentry_client="+e+"/"+t),i.push("sentry_key="+n.user),n.pass&&i.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",i=[];for(var r in i.push("dsn="+t.toString()),e)if("user"===r){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return i.length?n+"?"+i.join("&"):n},e}(),Jk=[],Zk=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Yk(t.dsn)),this._isEnabled()&&(this._integrations=function(e){var t={};return function(e){var t=e.defaultIntegrations&&Fr.__spread(e.defaultIntegrations)||[],n=e.integrations,i=[];if(Array.isArray(n)){var r=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===r.indexOf(e.name)&&-1===o.indexOf(e.name)&&(i.push(e),o.push(e.name))}
1)),n.forEach((function(e){-1===o.indexOf(e.name)&&(i.push(e),o.push(e.name))}))}else"function"==typeof n?(i=n(t),i=Array.isArray(i)?i:[i]):i=Fr.__spread(t);var s=i.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&i.push.apply(i,Fr.__spread(i.splice(s.indexOf("Debug"),1))),i}(e).forEach((function(e){t[e.name]=e,function(e){-1===Jk.indexOf(e.name)&&(e.setupOnce(Rk.b,xk.a),Jk.push(e.name),Mk.a.log("Integration installed: "+e.name))}(e)})),t}(this._options))}return e.prototype.captureException=function(e,t,n){var i=this,r=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return i._processEvent(e,t,n)})).then((function(e){r=e&&e.event_id,i._processing=!1})).then(null,(function(e){Mk.a.error(e),i._processing=!1})),r},e.prototype.captureMessage=function(e,t,n,i){var r=this,o=n&&n.event_id;return this._processing=!0,(Object(Bk.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return r._processEvent(e,n,i)})).then((function(e){o=e&&e.event_id,r._processing=!1})).then(null,(function(e){Mk.a.error(e),r._processing=!1})),o},e.prototype.captureEvent=function(e,t,n){var i=this,r=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){r=e&&e.event_id,i._processing=!1})).then(null,(function(e){Mk.a.error(e),i._processing=!1})),r},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.getIntegrations=function(){return this._integrations||{}},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return Mk.a.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new Fk.a((function(n){var i=0,r=0;clearInterval(r),r=setInterval((function(){t._processing?(i+=1,e&&i>=e&&n({interval:r,ready:!1})):n({interval:r,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.environment,s=r.release,a=r.dist,l=r.maxValueLength,c=void 0===l?250:l,u=r.normalizeDepth,d=void 0===u?3:u,h=Fr.__assign({},e);void 0===h.environment&&void 0!==o&&(h.environment=o),void 0===h.release&&void 0!==s&&(h.release=s),void 0===h.dist&&void 0!==a&&(h.dist=a),h.message&&(h.message=Object(Pk.d)(h.message,c));var p=h.exception&&h.exception.values&&h.exception.values[0];p&&p.value&&(p.value=Object(Pk.d)(p.value,c));var f=h.request;f&&f.url&&(f.url=Object(Pk.d)(f.url,c)),void 0===h.event_id&&(h.event_id=n&&n.event_id?n.event_id:Object(Ak.n)()),this._addIntegrations(h.sdk);var m=Fk.a.resolve(h);return t&&(m=t.applyToEvent(h,n)),m.then((function(e){return"number"==typeof d&&d>0?i._normalizeEvent(e,d):e}))},e.prototype._normalizeEvent=function(e,t){return e?Fr.__assign({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Fr.__assign({},e,e.data&&{data:Kk(e.data,t)})}))},e.user&&{user:Kk(e.user,t)},e.contexts&&{contexts:Kk(e.contexts,t)},e.extra&&{extra:Kk(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var i=this,r=this.getOptions(),o=r.beforeSend,s=r.sampleRate;return this._isEnabled()?"number"==typeof s&&Math.random()>s?Fk.a.reject("This event has been sampled, will not send event."):new Fk.a((function(r,s){i._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return i._getBackend().sendEvent(n),void r(n);var a=o(e,t);if(void 0===a)Mk.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(Bk.m)(a))i._handleAsyncBeforeSend(a,r,s);else{if(null===(n=a))return Mk.a.log("`beforeSend` returned `null`, will not send event."),void r(null);i._getBackend().sendEvent(n),r(n)}}catch(l){i.captureException(l,{data:{__sentry__:!0},originalException:l}),s("`beforeSend` threw an error, will not send event.")}}else s("An event processor returned null, will not send event.")})).then(null,(function(){s("`beforeSend` threw an error, will not send event.")}))})):Fk.a.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var i=this;e.then((function(e){null!==e?(i._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(Qk||(Qk={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(Qk||(Qk={}));var eI,tI=function(){function e(){}return e.prototype.sendEvent=function(e){return Fk.a.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Qk.Skipped})},e.prototype.close=function(e){return Fk.a.resolve(!0)},e}(),nI=function(){function e(e){this._options=e,this._options.dsn||Mk.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new tI},e.prototype.eventFromException=function(e,t){throw new Vk("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Vk("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Mk.a.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();function iI(){if(!("fetch"in Object(Ak.g)()))return!1;
1try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function rI(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oI(){if(!iI())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(eI||(eI={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(eI||(eI={}));var sI=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,aI=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,lI=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,uI=/\((\S*)(?::(\d+))(?::(\d+))\)/;function dI(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,r=e.stacktrace.split("\n"),o=[],s=0;s<r.length;s+=2){var a=null;(t=n.exec(r[s]))?a={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(r[s]))&&(a={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),a&&(!a.func&&a.line&&(a.func="?"),o.push(a))}return o.length?{message:pI(e),name:e.name,stack:o}:null}(e))return hI(t,n)}catch(i){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,i,r=[],o=e.stack.split("\n"),s=0;s<o.length;++s){if(n=sI.exec(o[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=uI.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),i={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=lI.exec(o[s]))i={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=aI.exec(o[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=cI.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==s||n[5]||void 0===e.columnNumber||(r[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!i.func&&i.line&&(i.func="?"),r.push(i)}return r.length?{message:pI(e),name:e.name,stack:r}:null}(e))return hI(t,n)}catch(i){}return{message:pI(e),name:e&&e.name,stack:[],failed:!0}}function hI(e,t){try{return Fr.__assign({},e,{stack:e.stack.slice(t)})}catch(n){return e}}function pI(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function fI(e){var t=gI(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function mI(e){return{exception:{values:[fI(e)]}}}function gI(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",i=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function yI(e,t,n){var i;if(void 0===n&&(n={}),Object(Bk.e)(e)&&e.error)return mI(dI(e=e.error));if(Object(Bk.a)(e)||Object(Bk.b)(e)){var r=e,o=r.name||(Object(Bk.a)(r)?"DOMError":"DOMException"),s=r.message?o+": "+r.message:o;return i=vI(s,t,n),Object(Ak.b)(i,s),i}return Object(Bk.d)(e)?i=mI(dI(e)):Object(Bk.h)(e)||Object(Bk.f)(e)?(i=function(e,t,n){var i={exception:{values:[{type:Object(Bk.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+$k(e)}]},extra:{__serialized__:zk(e)}};if(t){var r=gI(dI(t).stack);i.stacktrace={frames:r}}return i}(e,t,n.rejection),Object(Ak.a)(i,{synthetic:!0}),i):(i=vI(e,t,n),Object(Ak.b)(i,""+e,void 0),Object(Ak.a)(i,{synthetic:!0}),i)}function vI(e,t,n){void 0===n&&(n={});var i={message:e};if(n.attachStacktrace&&t){var r=gI(dI(t).stack);i.stacktrace={frames:r}}return i}var _I=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):Fk.a.reject(new Vk("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new Fk.a((function(n){var i=setTimeout((function(){e&&e>0&&n(!1)}),e);Fk.a.all(t._buffer).then((function(){clearTimeout(i),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),bI=function(){function e(e){this.options=e,this._buffer=new _I(30),this.url=new Xk(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new Vk("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),wI=Object(Ak.g)(),CI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Fr.__extends(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:oI()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new Fk.a((function(e,i){wI.fetch(t.url,n).then((function(n){var r=Qk.fromHttpCode(n.status);if(r!==Qk.Success){if(r===Qk.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(Ak.k)(o,n.headers.get("Retry-After"))),Mk.a.warn("Too many requests, backing off till: "+t._disabledUntil)}i(n)}else e({status:r})})).catch(i)})))},t}(bI),EI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Fr.__extends(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new Fk.a((function(n,i){var r=new XMLHttpRequest;for(var o in r.onreadystatechange=function(){if(4===r.readyState){var e=Qk.fromHttpCode(r.status);if(e!==Qk.Success){if(e===Qk.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Object(Ak.k)(o,r.getResponseHeader("Retry-After"))),Mk.a.warn("Too many requests, backing off till: "+t._disabledUntil)}i(r)}
1else n({status:e})}},r.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(o)&&r.setRequestHeader(o,t.options.headers[o]);r.send(JSON.stringify(e))})))},t}(bI),SI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fr.__extends(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Fr.__assign({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):iI()?new CI(t):new EI(t)},t.prototype.eventFromException=function(e,t){var n=yI(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Object(Ak.a)(n,{handled:!0,type:"generic"}),n.level=eI.Error,t&&t.event_id&&(n.event_id=t.event_id),Fk.a.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=eI.Info);var i=vI(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return i.level=t,n&&n.event_id&&(i.event_id=n.event_id),Fk.a.resolve(i)},t}(nI),DI=function(e){function t(t){return void 0===t&&(t={}),e.call(this,SI,t)||this}return Fr.__extends(t,e),t.prototype._prepareEvent=function(t,n,i){return t.platform=t.platform||"javascript",t.sdk=Fr.__assign({},t.sdk,{name:"sentry.javascript.browser",packages:Fr.__spread(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.12.1"}]),version:"5.12.1"}),e.prototype._prepareEvent.call(this,t,n,i)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Object(Ak.g)().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var i=t.createElement("script");i.async=!0,i.src=new Xk(n).getReportDialogEndpoint(e),e.onLoad&&(i.onload=e.onLoad),(t.head||t.body).appendChild(i)}else Mk.a.error("Missing `Dsn` option in showReportDialog call");else Mk.a.error("Missing `eventId` option in showReportDialog call")}else Mk.a.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(Zk),xI=0;function TI(){return xI>0}function OI(){xI+=1,setTimeout((function(){xI-=1}))}function kI(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(o){return e}var i=function(){var i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var r=i.map((function(e){return kI(e,t)}));return e.handleEvent?e.handleEvent.apply(this,r):e.apply(this,r)}catch(o){throw OI(),kk((function(e){e.addEventProcessor((function(e){var n=Fr.__assign({},e);return t.mechanism&&(Object(Ak.b)(n,void 0,void 0),Object(Ak.a)(n,t.mechanism)),n.extra=Fr.__assign({},n.extra,{arguments:i}),n})),Ok(o)})),o}};try{for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}catch(s){}e.prototype=e.prototype||{},i.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(s){}return i}var II,RI=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[0];return t[0]=kI(i,{mechanism:{data:{function:Object(Ak.f)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(kI(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(Ak.f)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(Ak.g)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Wk(n,"addEventListener",(function(t){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=kI(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:Object(Ak.f)(i),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.call(this,n,kI(i,{mechanism:{data:{function:"addEventListener",handler:Object(Ak.f)(i),target:e},handled:!0,type:"instrument"}}),r)}})),Wk(n,"removeEventListener",(function(e){return function(t,n,i){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(o){}return e.call(this,t,r,i)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this,o=["onload","onerror","onprogress"];return o.forEach((function(e){e in t&&"function"==typeof t[e]&&Wk(t,e,(function(t){return kI(t,{mechanism:{data:{function:e,handler:Object(Ak.f)(t)},handled:!0,type:"instrument"}})}))})),"onreadystatechange"in r&&"function"==typeof r.onreadystatechange&&Wk(r,"onreadystatechange",(function(e){var t={mechanism:{data:{function:"onreadystatechange",handler:Object(Ak.f)(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(t.mechanism.data.handler=Object(Ak.f)(e.__sentry_original__)),kI(e,t)})),e.apply(this,n)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Object(Ak.g)();Wk(e,"setTimeout",this._wrapTimeFunction.bind(this)),Wk(e,"setInterval",this._wrapTimeFunction.bind(this)),Wk(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&Wk(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),MI=Object(Ak.g)(),AI={},PI={};function LI(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(AI[e.type]=AI[e.type]||[],AI[e.type].push(e.callback),function(e){if(!PI[e])switch(PI[e]=!0,e){case"console":"console"in MI&&["debug","info","warn","error","log","assert"].forEach((function(e){e in MI.c
1onsole&&Wk(MI.console,e,(function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];NI("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,MI.console,n)}}))}));break;case"dom":"document"in MI&&(MI.document.addEventListener("click",BI("click",NI.bind(null,"dom")),!1),MI.document.addEventListener("keypress",GI(NI.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=MI[e]&&MI[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Wk(t,"addEventListener",(function(e){return function(t,n,i){return n&&n.handleEvent?("click"===t&&Wk(n,"handleEvent",(function(e){return function(t){return BI("click",NI.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Wk(n,"handleEvent",(function(e){return function(t){return GI(NI.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&BI("click",NI.bind(null,"dom"),!0)(this),"keypress"===t&&GI(NI.bind(null,"dom"))(this)),e.call(this,t,n,i)}})),Wk(t,"removeEventListener",(function(e){return function(t,n,i){var r=n;try{r=r&&(r.__sentry_wrapped__||r)}catch(o){}return e.call(this,t,r,i)}})))})));break;case"xhr":!function(){if("XMLHttpRequest"in MI){var e=XMLHttpRequest.prototype;Wk(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t[1];return this.__sentry_xhr__={method:Object(Bk.k)(t[0])?t[0].toUpperCase():t[0],url:t[1]},Object(Bk.k)(i)&&"POST"===this.__sentry_xhr__.method&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),Wk(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,r={args:t,startTimestamp:Date.now(),xhr:i};function o(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}NI("xhr",Fr.__assign({},r,{endTimestamp:Date.now()}))}}return NI("xhr",Fr.__assign({},r)),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Wk(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o(),e.apply(i,t)}})):i.onreadystatechange=o,e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!iI())return!1;var e=Object(Ak.g)();if(rI(e.fetch))return!0;var t=!1,n=e.document;if(n){var i=n.createElement("iframe");i.hidden=!0;try{n.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(t=rI(i.contentWindow.fetch)),n.head.removeChild(i)}catch(r){Mk.a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}}return t})()&&Wk(MI,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i={args:t,fetchData:{method:FI(t),url:jI(t)},startTimestamp:Date.now()};return NI("fetch",Fr.__assign({},i)),e.apply(MI,t).then((function(e){return NI("fetch",Fr.__assign({},i,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw NI("fetch",Fr.__assign({},i,{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=Object(Ak.g)(),t=e.chrome;return!(t&&t.app&&t.app.runtime)&&"history"in e&&!!e.history.pushState&&!!e.history.replaceState}()){var e=MI.onpopstate;MI.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=MI.location.href,r=II;if(II=i,NI("history",{from:r,to:i}),e)return e.apply(this,t)},Wk(MI.history,"pushState",t),Wk(MI.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.length>2?t[2]:void 0;if(i){var r=II,o=String(i);II=o,NI("history",{from:r,to:o})}return e.apply(this,t)}}}();break;default:Mk.a.warn("unknown instrumentation type:",e)}}(e.type))}function NI(e,t){var n,i;if(e&&AI[e])try{for(var r=Fr.__values(AI[e]||[]),o=r.next();!o.done;o=r.next()){var s=o.value;try{s(t)}catch(a){Mk.a.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(Ak.f)(s)+"\nError: "+a)}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}function FI(e){return void 0===e&&(e=[]),"Request"in MI&&Object(Bk.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function jI(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in MI&&Object(Bk.g)(e[0],Request)?e[0].url:String(e[0])}var VI,HI,YI=0;
1function BI(e,t,n){return void 0===n&&(n=!1),function(i){VI=void 0,i&&HI!==i&&(HI=i,YI&&clearTimeout(YI),n?YI=setTimeout((function(){t({event:i,name:e})})):t({event:i,name:e}))}}function GI(e){return function(t){var n;try{n=t.target}catch(r){return}var i=n&&n.tagName;i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)&&(VI||BI("input",e)(t),clearTimeout(VI),VI=setTimeout((function(){VI=void 0}),1e3))}}var WI=function(){function e(t){this.name=e.id,this._options=Fr.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:eI.fromString(e.level),message:Object(Pk.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(Pk.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Object(xk.a)().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(Ak.i)(e.event.target):Object(Ak.i)(e.event)}catch(n){t="<unknown>"}0!==t.length&&Object(xk.a)().addBreadcrumb({category:"ui."+e.name,message:t},{event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Object(xk.a)().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else e.xhr.__sentry_own_request__&&UI(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Object(xk.a)().getClient(),n=t&&t.getDsn();if(n){var i=new Xk(n).getStoreEndpoint();if(i&&-1!==e.fetchData.url.indexOf(i)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void UI(e.args[1].body)}e.error?Object(xk.a)().addBreadcrumb({category:"fetch",data:Fr.__assign({},e.fetchData,{status_code:e.response.status}),level:eI.Error,type:"http"},{data:e.error,input:e.args}):Object(xk.a)().addBreadcrumb({category:"fetch",data:Fr.__assign({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Object(Ak.g)(),n=e.from,i=e.to,r=Object(Ak.l)(t.location.href),o=Object(Ak.l)(n),s=Object(Ak.l)(i);o.path||(o=r),r.protocol===s.protocol&&r.host===s.host&&(i=s.relative),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),Object(xk.a)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&LI({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Fr.__spread(t))},type:"console"}),this._options.dom&&LI({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Fr.__spread(t))},type:"dom"}),this._options.xhr&&LI({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Fr.__spread(t))},type:"xhr"}),this._options.fetch&&LI({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Fr.__spread(t))},type:"fetch"}),this._options.history&&LI({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Fr.__spread(t))},type:"history"})},e.id="Breadcrumbs",e}();function UI(e){try{var t=JSON.parse(e);Object(xk.a)().addBreadcrumb({category:"sentry",event_id:t.event_id,level:t.level||eI.fromString("error"),message:Object(Ak.e)(t)},{event:t})}catch(n){Mk.a.error("Error while adding sentry type breadcrumb")}}var zI=function(){function e(t){this.name=e.id,this._global=Object(Ak.g)(),this._oldOnErrorHandler=null,this._oldOnUnhandledRejectionHandler=null,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Fr.__assign({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Mk.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Mk.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled){var t=this;this._oldOnErrorHandler=this._global.onerror,this._global.onerror=function(n,i,r,o,s){var a=Object(xk.a)(),l=a.getIntegration(e),c=s&&!0===s.__sentry_own_request__;if(!l||TI()||c)return!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments);var u=a.getClient(),d=Object(Bk.i)(s)?t._eventFromIncompleteOnError(n,i,r,o):t._enhanceEventWithInitialFrame(yI(s,void 0,{attachStacktrace:u&&u.getOptions().attachStacktrace,rejection:!1}),i,r,o);return Object(Ak.a)(d,{handled:!1,type:"onerror"}),a.captureEvent(d,{originalException:s}),!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments)},this._onErrorHandlerInstalled=!0}},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){if(!this._onUnhandledRejectionHandlerInstalled){var t=this;this._oldOnUnhandledRejectionHandler=this._global.onunhandledrejection,this._global.onunhandledrejection=function(n){var i=n;try{i=n&&"reason"in n?n.reason:n}catch(c){}var r=Object(xk.a)(),o=r.getIntegration(e),s=i&&!0===i.__sentry_own_request__;if(!o||TI()||s)return!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments);var a=r.getClient(),l=Object(Bk.i)(i)?t._eventFromIncompleteRejection(i):yI(i,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0}
1);return l.level=eI.Error,Object(Ak.a)(l,{handled:!1,type:"onunhandledrejection"}),r.captureEvent(l,{originalException:i}),!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments)},this._onUnhandledRejectionHandlerInstalled=!0}},e.prototype._eventFromIncompleteOnError=function(e,t,n,i){var r,o=Object(Bk.e)(e)?e.message:e;if(Object(Bk.k)(o)){var s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(r=s[1],o=s[2])}return this._enhanceEventWithInitialFrame({exception:{values:[{type:r||"Error",value:o}]}},t,n,i)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,i){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(n,10))?void 0:n,s=Object(Bk.k)(t)&&t.length>0?t:Object(Ak.h)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:r,filename:s,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),qI=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Object(Rk.b)((function(t,n){var i=Object(xk.a)().getIntegration(e);return i?i._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(Bk.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Fr.__spread(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(Bk.g)(e[t],Error)||n.length+1>=this._limit)return n;var i=fI(dI(e[t]));return this._walkErrorTree(e[t],t,Fr.__spread([i],n))},e.id="LinkedErrors",e}(),KI=Object(Ak.g)(),$I=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Object(Rk.b)((function(t){if(Object(xk.a)().getIntegration(e)){if(!KI.navigator||!KI.location)return t;var n=t.request||{};return n.url=n.url||KI.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=KI.navigator.userAgent,Fr.__assign({},t,{request:n})}return t}))},e.id="UserAgent",e}(),QI=[new i.InboundFilters,new i.FunctionToString,new RI,new WI,new zI,new qI,new $I];!function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=QI),void 0===e.release){var t=Object(Ak.g)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&Mk.a.enable(),Object(xk.a)().bindClient(new e(t))}(DI,e)}({dsn:"https://[email protected]/1832877"});let XI=(()=>{class e{}return e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e,bootstrap:[YS]}),e.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(t){return new(t||e)},providers:[{provide:b,useValue:"/app"},VS,Tb,Ko,Sw],imports:[[Fe,$m,RS,Fo.initializeApp(o),AS,NS,jS,hC.forRoot(),gu,ip,rp,EC.AgGridModule.withComponents([]),Sk,xb.forRoot({timeOut:1e4,positionClass:"toast-top-center",preventDuplicates:!0,closeButton:!0}),WS,yw,yv,vd,Kp,Dg,Qg,dg,um,l_,XS,CC,GS,Qw]]}),e})();Object(r.enableProdMode)(),Le().bootstrapModule(XI).catch(e=>console.error(e))},zVF4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mrSG"),r={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw s(t)},s=function(e){return new Error("Firebase Database ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},a=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&i+1<e.length&&56320==(64512&e.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),t[
1n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],r=0;r<e.length;r+=3){var o=e[r],s=r+1<e.length,a=s?e[r+1]:0,l=r+2<e.length,c=l?e[r+2]:0,u=(15&a)<<2|c>>6,d=63&c;l||(d=64,s||(u=64)),i.push(n[o>>2],n[(3&o)<<4|a>>4],n[u],n[d])}return i.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(a(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,i=0;n<e.length;){var r=e[n++];if(r<128)t[i++]=String.fromCharCode(r);else if(r>191&&r<224){var o=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){var s=((7&r)<<18|(63&(o=e[n++]))<<12|(63&(a=e[n++]))<<6|63&e[n++])-65536;t[i++]=String.fromCharCode(55296+(s>>10)),t[i++]=String.fromCharCode(56320+(1023&s))}else{o=e[n++];var a=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],r=0;r<e.length;){var o=n[e.charAt(r++)],s=r<e.length?n[e.charAt(r)]:0,a=++r<e.length?n[e.charAt(r)]:64,l=++r<e.length?n[e.charAt(r)]:64;if(++r,null==o||null==s||null==a||null==l)throw Error();i.push(o<<2|s>>4),64!==a&&(i.push(s<<4&240|a>>2),64!==l&&i.push(a<<6&192|l))}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function u(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=u(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,i){n?t.reject(n):t.resolve(i),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,i))}},e}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}var p=function(e){function t(n,i){var r=e.call(this,i)||this;return r.code=n,r.name="FirebaseError",Object.setPrototypeOf(r,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,f.prototype.create),r}return i.__extends(t,e),t}(Error),f=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=t[0]||{},r=this.service+"/"+e,o=this.errors[e],s=o?m(o,i):"Error",a=this.serviceName+": "+s+" ("+r+").",l=new p(r,a),c=0,u=Object.keys(i);c<u.length;c++){var d=u[c];"_"!==d.slice(-1)&&(d in l&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),l[d]=i[d])}return l},e}();function m(e,t){return e.replace(g,(function(e,n){var i=t[n];return null!=i?i.toString():"<"+n+"?>"}))}var g=/\{\$([^}]+)}/g;function y(e){return JSON.parse(e)}var v=function(e){var t={},n={},i={},r="";try{var o=e.split(".");t=y(c(o[0])||""),n=y(c(o[1])||""),r=o[2],i=n.d||{},delete n.d}catch(s){}return{header:t,claims:n,data:i,signature:r}},_=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var i=0;i<16;i++)n[i]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(i=0;i<16;i++)n[i]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(i=16;i<80;i++)n[i]=4294967295&((d=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|d>>>31);var r,o,s=this.chain_[0],a=this.chain_[1],l=this.chain_[2],c=this.chain_[3],u=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(r=c^a&(l^c),o=1518500249):(r=a^l^c,o=1859775393):i<60?(r=a&l|c&(a|l),o=2400959708):(r=a^l^c,o=3395469782);var d=(s<<5|s>>>27)+r+u+o+n[i]&4294967295;u=c,c=l,l=4294967295&(a<<30|a>>>2),a=s,s=d}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,i=0,r=this.buf_,o=this.inbuf_;i<t;){if(0===o)for(;i<=n;)this.compress_(e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(r[o]=e.charCodeAt(i),++i,++o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<t;)if(r[o]=e[i],++i,++o===this.blockSize){this.compress_(r),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)e[i]=this.chain_[n]>>r&255,++i;return e},e}(),b=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var i,r=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var r=i[n];if(r in e&&"function"==typeof e[r])return!0}return!1}(e)?e:{next:e,error:t,complete:n}).next&&(i.next=w),void 0===i.error&&(i.error=w),void 0===i.complete&&(i.complete=w);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}})),this.observers.push(i),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(i){"undefined"!=typeof console&&console.error&&console.error(i)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function w(){}function C(e,t,n){var i="";switch(t){case 1:i=n?"first":"First";break;case 2:i=n?"second":"Second";break;case 3:i=n?"third":"Third";break;case 4:i=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}return e+" failed: "+i+" argument "}t.CONSTANTS=r,t.Deferred=d,t.ErrorFactory=f,t.FirebaseError=p,t.Sha1=_,t.assert=o,t.assertionError=s,t.async=function(e,t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=c,t.base64Encode=function(e){var t=a(e);return l.encodeByteArray(t,!0)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new b(e,t);return n.subscribe.bind(n)},t.decode=v,t.deepCopy=function(e){return u(void 0,e)},t.deepExtend=u,t.errorPrefix=C,t.getUA=h,t.isAdmin=function(e){var t=v(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isElectron=function(){return h().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}},t.isNodeSdk=function(){return!0===r.NODE_CLIENT||!0===r.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isUWP=function(){return h().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=v(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=v(e).claims,n=Math.floor((new Date).getTime()/1e3),i=0,r=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?i=t.nbf:t.hasOwnProperty("iat")&&(i=t.iat),r=t.hasOwnProperty("exp")?t.exp:i+86400),!!n&&!!i&&!!r&&n>=i&&n<=r},t.issuedAtTime=function(e){var t=v(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=y,t.map=function(e,t,n){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEac
1h((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},i=0,r=Object.entries(e);i<r.length;i++){var o=r[i];n(o[0],o[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t++:i<2048?t+=2:i>=55296&&i<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);if(r>=55296&&r<=56319){var s=r-55296;i++,o(i<e.length,"Surrogate pair missing trail surrogate."),r=65536+(s<<10)+(e.charCodeAt(i)-56320)}r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):r<65536?(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,i){var r;if(i<t?r="at least "+t:i>n&&(r=0===n?"none":"no more than "+n),r)throw new Error(e+" failed: Was called with "+i+(1===i?" argument.":" arguments.")+" Expects "+r+".")},t.validateCallback=function(e,t,n,i){if((!i||n)&&"function"!=typeof n)throw new Error(C(e,t,i)+"must be a valid function.")},t.validateContextObject=function(e,t,n,i){if((!i||n)&&("object"!=typeof n||null===n))throw new Error(C(e,t,i)+"must be a valid context object.")},t.validateNamespace=function(e,t,n,i){if((!i||n)&&"string"!=typeof n)throw new Error(C(e,t,i)+"must be a valid firebase namespace.")}},zavE:function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx6S:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}},[[0,0]]]);
2//# sourceMappingURL=main-es2015.bd24da2dd7f486b03039.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.