(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(De,K,m){"use strict";m.d(K,{o:function(){return R}});var G=m(5671),W=m(3144),A=m(591),U=m(8929),R=function(){function I(){(0,G.Z)(this,I),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new U.xQ}return(0,W.Z)(I,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(D){this.findIndex(D)>=0?this.update(D):(this.data.push(D),this.dataChange.next(this.data))}},{key:"set",value:function(D){var H=this;D.forEach(function(v){var k=H.findIndex(v);if(k>=0){var b=Object.assign(H.data[k],v);H.data[k]=b}else H.data.push(v)}),this.data.filter(function(v){return 0===D.filter(function(k){return H.getItemKey(k)===H.getItemKey(v)}).length}).forEach(function(v){return H.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(D){var H=this,L=this.data.findIndex(function(v){return H.getItemKey(v)===D});if(L>=0)return this.data[L]}},{key:"update",value:function(D){var H=this.findIndex(D);if(H>=0){var L=Object.assign(this.data[H],D);this.data[H]=L,this.dataChange.next(this.data),this.itemUpdated.next(L)}}},{key:"remove",value:function(D){var H=this.findIndex(D);H>=0&&(this.data.splice(H,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(D){var H=this;return this.data.findIndex(function(L){return H.getItemKey(L)===H.getItemKey(D)})}}]),I}()},6215:function(De,K,m){"use strict";m.d(K,{F:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),I=m(5e3),E=function(D){(0,A.Z)(L,D);var H=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),H.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.link_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=I.n5z(E)))(L||E)}}(),E.\u0275prov=I.Yz7({token:E,factory:E.\u0275fac})},5366:function(De,K,m){"use strict";m.d(K,{G:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),I=m(5e3),E=function(D){(0,A.Z)(L,D);var H=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),H.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.node_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=I.n5z(E)))(L||E)}}(),E.\u0275prov=I.Yz7({token:E,factory:E.\u0275fac})},5542:function(De,K,m){"use strict";m.d(K,{X:function(){return I}});var G=m(5671),W=m(3144),A=m(4766),U=m(5e3),R=m(2437),I=function(){function E(D){(0,G.Z)(this,E),this.httpController=D}return(0,W.Z)(E,[{key:"getComputes",value:function(H){return this.httpController.get(H,"/computes")}},{key:"getUploadPath",value:function(H,L,v){return"".concat(H.protocol,"//").concat(H.host,":").concat(H.port,"/").concat(A.N.current_version,"/").concat(L,"/images/").concat(v)}},{key:"getStatistics",value:function(H){return this.httpController.get(H,"/statistics")}}]),E}();I.\u0275fac=function(D){return new(D||I)(U.LFG(R.zw))},I.\u0275prov=U.Yz7({token:I,factory:I.\u0275fac})},2437:function(De,K,m){"use strict";m.d(K,{CJ:function(){return k},zw:function(){return b}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5724),I=m(5e3),E=m(4766),D=m(1737),H=m(7221),L=m(520),v=function(O){(0,A.Z)(y,O);var S=(0,U.Z)(y);function y(T){return(0,G.Z)(this,y),S.call(this,T)}return(0,W.Z)(y,null,[{key:"fromError",value:function(M,x){var N=new y(M);return N.originalError=x,N}}]),y}((0,R.Z)(Error)),k=function(){function O(){(0,G.Z)(this,O)}return(0,W.Z)(O,[{key:"handleError",value:function(y){var T=y;return"HttpErrorResponse"===y.name&&0===y.status&&(T=v.fromError("Controller is unreachable",y)),401===y.status&&window.location.reload(),(0,D._)(T)}}]),O}();k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=I.Yz7({token:k,factory:k.\u0275fac});var b=function(){function O(S,y){(0,G.Z)(this,O),this.http=S,this.errorHandler=y,this.requestsNotificationEmitter=new I.vpe}return(0,W.Z)(O,[{key:"get",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getText",value:function(y,T,M){M=this.getTextOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(y,T,M){M=this.getBlobOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"post",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,M,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"put",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,M,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"delete",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("DELETE ".concat(x.url)),this.http.delete(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"patch",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.http.patch(N.url,M,N.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"head",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.head(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"options",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.options(x.url,x.options).pipe((0,H.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(y){return y||{responseType:"json"}}},{key:"getTextOptions",value:function(y){return y||{responseType:"text"}}},{key:"getBlobOptions",value:function(y){return y||{responseType:"blob"}}},{key:"getOptionsForController",value:function(y,T,M){return y&&y.host&&y.port?(y.protocol||(y.protocol=location.protocol),T="".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/").concat(E.N.current_version).concat(T)):T="/".concat(E.N.current_version).concat(T),M.headers||(M.headers={}),y&&y.authToken&&!y.tokenExpired&&(M.headers.Authorization="Bearer ".concat(y.authToken)),{url:T,options:M}}}]),O}();b.\u0275fac=function(S){return new(S||b)(I.LFG(L.eN),I.LFG(k))},b.\u0275prov=I.Yz7({token:b,factory:b.\u0275fac})},9971:function(De,K,m){"use strict";m.d(K,{Y:function(){return H}});var G=m(5671),W=m(3144),A=m(4766),U=m(8929),R=m(5e3),I=m(2437),E=m(9449),D=m(9740),H=function(){function L(v,k,b){(0,G.Z)(this,L),this.httpController=v,this.settingsService=k,this.recentlyOpenedProjectService=b,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new U.xQ,this.projectLockIconSubject=new U.xQ}return(0,W.Z)(L,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(k,b){return this.httpController.getText(k,"/projects/".concat(b,"/files/README.txt"))}},{key:"postReadmeFile",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/files/README.txt"),O)}},{key:"get",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b))}},{key:"open",value:function(k,b){return this.httpController.post(k,"/projects/".concat(b,"/open"),{})}},{key:"close",value:function(k,b){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(k,"/projects/".concat(b,"/close"),{})}},{key:"list",value:function(k){return this.httpController.get(k,"/projects")}},{key:"nodes",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/nodes"))}},{key:"links",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/links"))}},{key:"drawings",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/drawings"))}},{key:"add",value:function(k,b,O){return this.httpController.post(k,"/projects",{name:b,project_id:O})}},{key:"update",value:function(k,b){return this.httpController.put(k,"/projects/".concat(b.project_id),{auto_close:b.auto_close,auto_open:b.auto_open,auto_start:b.auto_start,drawing_grid_size:b.drawing_grid_size,grid_size:b.grid_size,name:b.name,scene_width:b.scene_width,scene_height:b.scene_height,show_interface_labels:b.show_interface_labels})}},{key:"delete",value:function(k,b){return this.httpController.delete(k,"/projects/".concat(b))}},{key:"getUploadPath",value:function(k,b,O){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/import?name=").concat(O)}},{key:"getExportPath",value:function(k,b){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b.project_id,"/export")}},{key:"export",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/export"))}},{key:"getStatistics",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/stats"))}},{key:"duplicate",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/duplicate"),{name:O})}},{key:"isReadOnly",value:function(k){return!!k.readonly&&k.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=O.compression_level&&""!=O.compression_level?"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&compression_level=").concat(O.compression_level,"&token=").concat(k.authToken):"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&token=").concat(k.authToken)}},{key:"getProjectStatus",value:function(k,b){return this.get(k,"".concat(b,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),L}();H.\u0275fac=function(v){return new(v||H)(R.LFG(I.zw),R.LFG(E.g),R.LFG(D.p))},H.\u0275prov=R.Yz7({token:H,factory:H.\u0275fac})},9740:function(De,K,m){"use strict";m.d(K,{p:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R)}return(0,W.Z)(R,[{key:"setcontrollerId",value:function(E){this.controllerId=E}},{key:"setProjectId",value:function(E){this.projectId=E}},{key:"setcontrollerIdProjectList",value:function(E){this.controllerIdProjectList=E}},{key:"getcontrollerId",value:function(){return this.controllerId}},{key:"getProjectId",value:function(){return this.projectId}},{key:"getcontrollerIdProjectList",value:function(){return this.controllerIdProjectList}},{key:"removeData",value:function(){this.controllerId="",this.projectId=""}}]),R}();U.\u0275fac=function(I){return new(I||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac})},9449:function(De,K,m){"use strict";m.d(K,{g:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R),this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return(0,W.Z)(R,[{key:"setReportsSettings",value:function(E){this.settings.crash_reports=E,this.removeItem(this.reportsSettings),E?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(E){this.settings.anonymous_statistics=E,this.removeItem(this.statisticsSettings),E?this.setItem(this.statisticsSettings,"true"):this.setItem(this.statisticsSettings,"false")}},{key:"getReportsSettings",value:function(){return"true"===this.getItem(this.reportsSettings)}},{key:"getStatisticsSettings",value:function(){return"true"===this.getItem(this.statisticsSettings)}},{key:"setConsoleSettings",value:function(E){this.settings.console_command=E,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,E)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(E){localStorage.removeItem(E)}},{key:"setItem",value:function(E,D){localStorage.setItem(E,D)}},{key:"getItem",value:function(E){return localStorage.getItem(E)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(E){this.settings=E,this.setConsoleSettings(E.console_command),this.setReportsSettings(E.crash_reports),this.setStatisticsSettings(E.anonymous_statistics)}}]),R}();U.\u0275fac=function(I){return new(I||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(De,K,m){"use strict";m.d(K,{f:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),U=m(591),R=function(){function I(){(0,G.Z)(this,I),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new A.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,W.Z)(I,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(D){D?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),I}();R.\u0275fac=function(E){return new(E||R)},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})},4766:function(De,K,m){"use strict";m.d(K,{N:function(){return G}});var G={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},6742:function(De,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return ESe},arc:function(){return _1e},area:function(){return Tee},areaRadial:function(){return xee},ascending:function(){return t0},axisBottom:function(){return gce},axisLeft:function(){return vce},axisRight:function(){return _ce},axisTop:function(){return mce},bisect:function(){return $1},bisectLeft:function(){return Wue},bisectRight:function(){return XY},bisector:function(){return T7},brush:function(){return Ape},brushSelection:function(){return Epe},brushX:function(){return xpe},brushY:function(){return Dpe},chord:function(){return Ppe},clientPoint:function(){return SN},cluster:function(){return age},color:function(){return sZ},contourDensity:function(){return ghe},contours:function(){return Nq},create:function(){return jCe},creator:function(){return TN},cross:function(){return Yue},csvFormat:function(){return She},csvFormatRows:function(){return Ehe},csvParse:function(){return The},csvParseRows:function(){return Mhe},cubehelix:function(){return Lq},curveBasis:function(){return L1e},curveBasisClosed:function(){return Z1e},curveBasisOpen:function(){return N1e},curveBundle:function(){return B1e},curveCardinal:function(){return F1e},curveCardinalClosed:function(){return U1e},curveCardinalOpen:function(){return j1e},curveCatmullRom:function(){return H1e},curveCatmullRomClosed:function(){return G1e},curveCatmullRomOpen:function(){return z1e},curveLinear:function(){return DN},curveLinearClosed:function(){return W1e},curveMonotoneX:function(){return V1e},curveMonotoneY:function(){return Y1e},curveNatural:function(){return K1e},curveStep:function(){return q1e},curveStepAfter:function(){return Q1e},curveStepBefore:function(){return J1e},customEvent:function(){return ZCe},descending:function(){return Kue},deviation:function(){return tK},dispatch:function(){return r0},drag:function(){return vg},dragDisable:function(){return FL},dragEnable:function(){return UL},dsvFormat:function(){return wj},easeBack:function(){return Yq},easeBackIn:function(){return $he},easeBackInOut:function(){return Yq},easeBackOut:function(){return eme},easeBounce:function(){return lx},easeBounceIn:function(){return Qhe},easeBounceInOut:function(){return Xhe},easeBounceOut:function(){return lx},easeCircle:function(){return Vq},easeCircleIn:function(){return jhe},easeCircleInOut:function(){return Vq},easeCircleOut:function(){return Hhe},easeCubic:function(){return eZ},easeCubicIn:function(){return _pe},easeCubicInOut:function(){return eZ},easeCubicOut:function(){return gpe},easeElastic:function(){return Kq},easeElasticIn:function(){return tme},easeElasticInOut:function(){return nme},easeElasticOut:function(){return Kq},easeExp:function(){return Wq},easeExpIn:function(){return Fhe},easeExpInOut:function(){return Wq},easeExpOut:function(){return Uhe},easeLinear:function(){return Phe},easePoly:function(){return jq},easePolyIn:function(){return Lhe},easePolyInOut:function(){return jq},easePolyOut:function(){return Zhe},easeQuad:function(){return Uq},easeQuadIn:function(){return Ihe},easeQuadInOut:function(){return Uq},easeQuadOut:function(){return Rhe},easeSin:function(){return zq},easeSinIn:function(){return Nhe},easeSinInOut:function(){return zq},easeSinOut:function(){return Bhe},entries:function(){return Ype},event:function(){return sm},extent:function(){return M7},forceCenter:function(){return rme},forceCollide:function(){return wme},forceLink:function(){return Tme},forceManyBody:function(){return Ame},forceRadial:function(){return Ome},forceSimulation:function(){return Dme},forceX:function(){return Pme},forceY:function(){return Ime},format:function(){return iJ},formatDefaultLocale:function(){return aJ},formatLocale:function(){return rJ},formatPrefix:function(){return oJ},formatSpecifier:function(){return _Z},geoAlbers:function(){return yQ},geoAlbersUsa:function(){return U_e},geoArea:function(){return Wme},geoAzimuthalEqualArea:function(){return j_e},geoAzimuthalEqualAreaRaw:function(){return p9},geoAzimuthalEquidistant:function(){return H_e},geoAzimuthalEquidistantRaw:function(){return h9},geoBounds:function(){return qme},geoCentroid:function(){return t_e},geoCircle:function(){return n_e},geoClipAntimeridian:function(){return Vj},geoClipCircle:function(){return jJ},geoClipExtent:function(){return u_e},geoClipRectangle:function(){return UZ},geoConicConformal:function(){return z_e},geoConicConformalRaw:function(){return wQ},geoConicEqualArea:function(){return QZ},geoConicEqualAreaRaw:function(){return vQ},geoConicEquidistant:function(){return V_e},geoConicEquidistantRaw:function(){return kQ},geoContains:function(){return __e},geoDistance:function(){return hx},geoEquirectangular:function(){return W_e},geoEquirectangularRaw:function(){return kx},geoGnomonic:function(){return Y_e},geoGnomonicRaw:function(){return m9},geoGraticule:function(){return QJ},geoGraticule10:function(){return g_e},geoIdentity:function(){return K_e},geoInterpolate:function(){return v_e},geoLength:function(){return HJ},geoMercator:function(){return G_e},geoMercatorRaw:function(){return wx},geoNaturalEarth1:function(){return q_e},geoNaturalEarth1Raw:function(){return _9},geoOrthographic:function(){return J_e},geoOrthographicRaw:function(){return g9},geoPath:function(){return A_e},geoProjection:function(){return im},geoProjectionMutator:function(){return d9},geoRotation:function(){return IJ},geoStereographic:function(){return Q_e},geoStereographicRaw:function(){return v9},geoStream:function(){return Hd},geoTransform:function(){return O_e},geoTransverseMercator:function(){return X_e},geoTransverseMercatorRaw:function(){return y9},hcl:function(){return Aq},hierarchy:function(){return b9},histogram:function(){return Xue},hsl:function(){return Cq},interpolate:function(){return I9},interpolateArray:function(){return $Q},interpolateBasis:function(){return qQ},interpolateBasisClosed:function(){return JQ},interpolateBlues:function(){return rbe},interpolateBrBG:function(){return Z0e},interpolateBuGn:function(){return W0e},interpolateBuPu:function(){return V0e},interpolateCool:function(){return hbe},interpolateCubehelix:function(){return kve},interpolateCubehelixDefault:function(){return fbe},interpolateCubehelixLong:function(){return Tve},interpolateDate:function(){return eX},interpolateGnBu:function(){return Y0e},interpolateGreens:function(){return ibe},interpolateGreys:function(){return obe},interpolateHcl:function(){return bve},interpolateHclLong:function(){return Cve},interpolateHsl:function(){return _ve},interpolateHslLong:function(){return gve},interpolateInferno:function(){return vbe},interpolateLab:function(){return yve},interpolateMagma:function(){return gbe},interpolateNumber:function(){return gp},interpolateObject:function(){return tX},interpolateOrRd:function(){return K0e},interpolateOranges:function(){return lbe},interpolatePRGn:function(){return N0e},interpolatePiYG:function(){return B0e},interpolatePlasma:function(){return ybe},interpolatePuBu:function(){return J0e},interpolatePuBuGn:function(){return q0e},interpolatePuOr:function(){return F0e},interpolatePuRd:function(){return Q0e},interpolatePurples:function(){return abe},interpolateRainbow:function(){return mbe},interpolateRdBu:function(){return U0e},interpolateRdGy:function(){return j0e},interpolateRdPu:function(){return X0e},interpolateRdYlBu:function(){return H0e},interpolateRdYlGn:function(){return G0e},interpolateReds:function(){return sbe},interpolateRgb:function(){return A9},interpolateRgbBasis:function(){return rve},interpolateRgbBasisClosed:function(){return ive},interpolateRound:function(){return sve},interpolateSpectral:function(){return z0e},interpolateString:function(){return nX},interpolateTransformCss:function(){return cve},interpolateTransformSvg:function(){return dve},interpolateViridis:function(){return _be},interpolateWarm:function(){return pbe},interpolateYlGn:function(){return ebe},interpolateYlGnBu:function(){return $0e},interpolateYlOrBr:function(){return tbe},interpolateYlOrRd:function(){return nbe},interpolateZoom:function(){return mve},interrupt:function(){return ane},interval:function(){return Hke},isoFormat:function(){return Bke},isoParse:function(){return jke},keys:function(){return Wpe},lab:function(){return Dq},line:function(){return AN},lineRadial:function(){return Eee},linkHorizontal:function(){return M1e},linkRadial:function(){return E1e},linkVertical:function(){return S1e},local:function(){return bee},map:function(){return _g},matcher:function(){return see},max:function(){return rK},mean:function(){return tce},median:function(){return nce},merge:function(){return O7},min:function(){return iK},mouse:function(){return GCe},namespace:function(){return hH},namespaces:function(){return pH},nest:function(){return jpe},now:function(){return mg},pack:function(){return Oge},packEnclose:function(){return MQ},packSiblings:function(){return xge},pairs:function(){return Vue},partition:function(){return Pge},path:function(){return jd},permute:function(){return rce},pie:function(){return y1e},pointRadial:function(){return Wx},polygonArea:function(){return Sve},polygonCentroid:function(){return Eve},polygonContains:function(){return Ove},polygonHull:function(){return Ave},polygonLength:function(){return Pve},precisionFixed:function(){return Fme},precisionPrefix:function(){return Ume},precisionRound:function(){return jme},quadtree:function(){return hZ},quantile:function(){return VE},quantize:function(){return Mve},radialArea:function(){return xee},radialLine:function(){return Eee},randomBates:function(){return Lve},randomExponential:function(){return Zve},randomIrwinHall:function(){return xX},randomLogNormal:function(){return Rve},randomNormal:function(){return EX},randomUniform:function(){return Ive},range:function(){return mc},rgb:function(){return yq},ribbon:function(){return Upe},scaleBand:function(){return q9},scaleIdentity:function(){return jX},scaleImplicit:function(){return Y9},scaleLinear:function(){return UX},scaleLog:function(){return VX},scaleOrdinal:function(){return K9},scalePoint:function(){return Nve},scalePow:function(){return eH},scaleQuantile:function(){return YX},scaleQuantize:function(){return KX},scaleSequential:function(){return S$},scaleSqrt:function(){return iye},scaleThreshold:function(){return qX},scaleTime:function(){return w0e},scaleUtc:function(){return S0e},scan:function(){return ice},schemeAccent:function(){return x0e},schemeBlues:function(){return K$},schemeBrBG:function(){return E$},schemeBuGn:function(){return Z$},schemeBuPu:function(){return N$},schemeCategory10:function(){return E0e},schemeDark2:function(){return D0e},schemeGnBu:function(){return B$},schemeGreens:function(){return q$},schemeGreys:function(){return J$},schemeOrRd:function(){return F$},schemeOranges:function(){return $$},schemePRGn:function(){return x$},schemePaired:function(){return A0e},schemePastel1:function(){return O0e},schemePastel2:function(){return P0e},schemePiYG:function(){return D$},schemePuBu:function(){return j$},schemePuBuGn:function(){return U$},schemePuOr:function(){return A$},schemePuRd:function(){return H$},schemePurples:function(){return Q$},schemeRdBu:function(){return O$},schemeRdGy:function(){return P$},schemeRdPu:function(){return G$},schemeRdYlBu:function(){return I$},schemeRdYlGn:function(){return R$},schemeReds:function(){return X$},schemeSet1:function(){return I0e},schemeSet2:function(){return R0e},schemeSet3:function(){return L0e},schemeSpectral:function(){return L$},schemeYlGn:function(){return W$},schemeYlGnBu:function(){return z$},schemeYlOrBr:function(){return V$},schemeYlOrRd:function(){return Y$},select:function(){return yee},selectAll:function(){return zCe},selection:function(){return UCe},selector:function(){return mH},selectorAll:function(){return oee},set:function(){return zpe},shuffle:function(){return oce},stack:function(){return $1e},stackOffsetDiverging:function(){return twe},stackOffsetExpand:function(){return ewe},stackOffsetNone:function(){return Lw},stackOffsetSilhouette:function(){return nwe},stackOffsetWiggle:function(){return rwe},stackOrderAscending:function(){return Qee},stackOrderDescending:function(){return iwe},stackOrderInsideOut:function(){return owe},stackOrderNone:function(){return Zw},stackOrderReverse:function(){return awe},stratify:function(){return Zge},style:function(){return cee},sum:function(){return ace},symbol:function(){return R1e},symbolCircle:function(){return EH},symbolCross:function(){return Dee},symbolDiamond:function(){return Oee},symbolSquare:function(){return Ree},symbolStar:function(){return Iee},symbolTriangle:function(){return Lee},symbolWye:function(){return Zee},symbols:function(){return I1e},thresholdFreedmanDiaconis:function(){return $ue},thresholdScott:function(){return ece},thresholdSturges:function(){return A7},tickIncrement:function(){return WE},tickStep:function(){return n0},ticks:function(){return D7},timeDay:function(){return dwe},timeDays:function(){return fwe},timeFormat:function(){return Fte},timeFormatDefaultLocale:function(){return jte},timeFormatLocale:function(){return xte},timeFriday:function(){return pte},timeFridays:function(){return gwe},timeHour:function(){return uwe},timeHours:function(){return cwe},timeInterval:function(){return ys},timeMillisecond:function(){return $ee},timeMilliseconds:function(){return ete},timeMinute:function(){return swe},timeMinutes:function(){return lwe},timeMonday:function(){return ute},timeMondays:function(){return pwe},timeMonth:function(){return ywe},timeMonths:function(){return bwe},timeParse:function(){return Ute},timeSaturday:function(){return hte},timeSaturdays:function(){return vwe},timeSecond:function(){return ite},timeSeconds:function(){return ote},timeSunday:function(){return NH},timeSundays:function(){return mte},timeThursday:function(){return fte},timeThursdays:function(){return _we},timeTuesday:function(){return cte},timeTuesdays:function(){return hwe},timeWednesday:function(){return dte},timeWednesdays:function(){return mwe},timeWeek:function(){return NH},timeWeeks:function(){return mte},timeYear:function(){return Cwe},timeYears:function(){return wwe},timeout:function(){return tx},timer:function(){return ex},timerFlush:function(){return GK},touch:function(){return WCe},touches:function(){return VCe},transition:function(){return Ene},transpose:function(){return oK},tree:function(){return Hge},treemap:function(){return Gge},treemapBinary:function(){return zge},treemapDice:function(){return Mx},treemapResquarify:function(){return Vge},treemapSlice:function(){return iN},treemapSliceDice:function(){return Wge},treemapSquarify:function(){return FQ},tsvFormat:function(){return Ahe},tsvFormatRows:function(){return Ohe},tsvParse:function(){return xhe},tsvParseRows:function(){return Dhe},utcDay:function(){return Ewe},utcDays:function(){return xwe},utcFormat:function(){return jH},utcFriday:function(){return Tte},utcFridays:function(){return Iwe},utcHour:function(){return Mwe},utcHours:function(){return Swe},utcMillisecond:function(){return $ee},utcMilliseconds:function(){return ete},utcMinute:function(){return kwe},utcMinutes:function(){return Twe},utcMonday:function(){return bte},utcMondays:function(){return Dwe},utcMonth:function(){return Lwe},utcMonths:function(){return Zwe},utcParse:function(){return HH},utcSaturday:function(){return Mte},utcSaturdays:function(){return Rwe},utcSecond:function(){return ite},utcSeconds:function(){return ote},utcSunday:function(){return FH},utcSundays:function(){return Ste},utcThursday:function(){return kte},utcThursdays:function(){return Pwe},utcTuesday:function(){return Cte},utcTuesdays:function(){return Awe},utcWednesday:function(){return wte},utcWednesdays:function(){return Owe},utcWeek:function(){return FH},utcWeeks:function(){return Ste},utcYear:function(){return Nwe},utcYears:function(){return Bwe},values:function(){return Vpe},variance:function(){return eK},voronoi:function(){return VSe},window:function(){return _H},zip:function(){return lce},zoom:function(){return jne},zoomIdentity:function(){return XN},zoomTransform:function(){return Fne}});var W={};m.r(W),m.d(W,{safe:function(){return hoe},spec:function(){return xLe}});var A={};m.r(A),m.d(A,{angle:function(){return pZe},decibel:function(){return vZe},flex:function(){return gZe},frequency:function(){return mZe},length:function(){return fZe},resolution:function(){return _Ze},semitones:function(){return yZe},time:function(){return hZe}});var U={};m.r(U),m.d(U,{getTrace:function(){return $oe},isKeyword:function(){return iNe},isProperty:function(){return rNe},isType:function(){return nNe}});var R={};m.r(R),m.d(R,{generate:function(){return _Ne},name:function(){return hNe},parse:function(){return sae},structure:function(){return mNe}});var I={};m.r(I),m.d(I,{generate:function(){return CNe},name:function(){return vNe},parse:function(){return uae},structure:function(){return bNe},walkContext:function(){return yNe}});var E={};m.r(E),m.d(E,{generate:function(){return MNe},name:function(){return wNe},parse:function(){return cae},structure:function(){return TNe},walkContext:function(){return kNe}});var D={};m.r(D),m.d(D,{generate:function(){return INe},name:function(){return ONe},parse:function(){return fae},structure:function(){return PNe}});var H={};m.r(H),m.d(H,{generate:function(){return FNe},name:function(){return ZNe},parse:function(){return _ae},structure:function(){return BNe},walkContext:function(){return NNe}});var L={};m.r(L),m.d(L,{generate:function(){return HNe},name:function(){return UNe},parse:function(){return gae},structure:function(){return jNe}});var v={};m.r(v),m.d(v,{generate:function(){return WNe},name:function(){return GNe},parse:function(){return vae},structure:function(){return zNe}});var k={};m.r(k),m.d(k,{generate:function(){return KNe},name:function(){return VNe},parse:function(){return yae},structure:function(){return YNe}});var b={};m.r(b),m.d(b,{generate:function(){return XNe},name:function(){return JNe},parse:function(){return bae},structure:function(){return QNe}});var O={};m.r(O),m.d(O,{generate:function(){return iBe},name:function(){return nBe},parse:function(){return wae},structure:function(){return rBe}});var S={};m.r(S),m.d(S,{generate:function(){return uBe},name:function(){return sBe},parse:function(){return kae},structure:function(){return lBe}});var y={};m.r(y),m.d(y,{generate:function(){return CBe},name:function(){return vBe},parse:function(){return Sae},structure:function(){return bBe},walkContext:function(){return yBe}});var T={};m.r(T),m.d(T,{generate:function(){return EBe},name:function(){return MBe},parse:function(){return Eae},structure:function(){return SBe}});var M={};m.r(M),m.d(M,{generate:function(){return ABe},name:function(){return xBe},parse:function(){return xae},structure:function(){return DBe}});var x={};m.r(x),m.d(x,{generate:function(){return RBe},name:function(){return OBe},parse:function(){return Dae},structure:function(){return IBe},walkContext:function(){return PBe}});var N={};m.r(N),m.d(N,{generate:function(){return BBe},name:function(){return ZBe},parse:function(){return Aae},structure:function(){return NBe},xxx:function(){return LBe}});var B={};m.r(B),m.d(B,{generate:function(){return jBe},name:function(){return FBe},parse:function(){return Oae},structure:function(){return UBe}});var X={};m.r(X),m.d(X,{generate:function(){return zBe},name:function(){return HBe},parse:function(){return Pae},structure:function(){return GBe}});var $={};m.r($),m.d($,{generate:function(){return YBe},name:function(){return WBe},parse:function(){return Iae},structure:function(){return VBe}});var V={};m.r(V),m.d(V,{generate:function(){return JBe},name:function(){return KBe},parse:function(){return Rae},structure:function(){return qBe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return $Be},name:function(){return QBe},parse:function(){return Lae},structure:function(){return XBe}});var te={};m.r(te),m.d(te,{generate:function(){return r5e},name:function(){return t5e},parse:function(){return Zae},structure:function(){return n5e}});var be={};m.r(be),m.d(be,{generate:function(){return a5e},name:function(){return i5e},parse:function(){return Nae},structure:function(){return o5e}});var pe={};m.r(pe),m.d(pe,{generate:function(){return u5e},name:function(){return s5e},parse:function(){return Bae},structure:function(){return l5e}});var fe={};m.r(fe),m.d(fe,{generate:function(){return f5e},name:function(){return c5e},parse:function(){return Fae},structure:function(){return d5e}});var ue={};m.r(ue),m.d(ue,{generate:function(){return m5e},name:function(){return p5e},parse:function(){return Uae},structure:function(){return h5e}});var de={};m.r(de),m.d(de,{generate:function(){return v5e},name:function(){return _5e},parse:function(){return jae},structure:function(){return g5e}});var ge={};m.r(ge),m.d(ge,{generate:function(){return w5e},name:function(){return y5e},parse:function(){return Hae},structure:function(){return C5e},walkContext:function(){return b5e}});var He={};m.r(He),m.d(He,{generate:function(){return S5e},name:function(){return k5e},parse:function(){return Gae},structure:function(){return M5e},walkContext:function(){return T5e}});var ot={};m.r(ot),m.d(ot,{generate:function(){return O5e},name:function(){return D5e},parse:function(){return Wae},structure:function(){return A5e}});var St={};m.r(St),m.d(St,{generate:function(){return L5e},name:function(){return I5e},parse:function(){return Vae},structure:function(){return R5e}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return U5e},name:function(){return N5e},parse:function(){return Kae},structure:function(){return F5e},walkContext:function(){return B5e}});var Dt={};m.r(Dt),m.d(Dt,{generate:function(){return G5e},name:function(){return j5e},parse:function(){return qae},structure:function(){return H5e}});var Rt={};m.r(Rt),m.d(Rt,{generate:function(){return Y5e},name:function(){return z5e},parse:function(){return Jae},structure:function(){return V5e},walkContext:function(){return W5e}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return Q5e},name:function(){return q5e},parse:function(){return ese},structure:function(){return J5e}});var $t={};m.r($t),m.d($t,{generate:function(){return nFe},name:function(){return $5e},parse:function(){return nse},structure:function(){return tFe},walkContext:function(){return eFe}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return aFe},name:function(){return iFe},parse:function(){return ise},structure:function(){return oFe}});var pn={};m.r(pn),m.d(pn,{generate:function(){return dFe},name:function(){return uFe},parse:function(){return sse},structure:function(){return cFe}});var rt={};m.r(rt),m.d(rt,{generate:function(){return bFe},name:function(){return vFe},parse:function(){return use},structure:function(){return yFe}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return kFe},name:function(){return CFe},parse:function(){return cse},structure:function(){return wFe}});var _t={};m.r(_t),m.d(_t,{generate:function(){return EFe},name:function(){return MFe},parse:function(){return dse},structure:function(){return SFe}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return R},Atrule:function(){return I},AtrulePrelude:function(){return E},AttributeSelector:function(){return D},Block:function(){return H},Brackets:function(){return L},CDC:function(){return v},CDO:function(){return k},ClassSelector:function(){return b},Combinator:function(){return O},Comment:function(){return S},Declaration:function(){return y},DeclarationList:function(){return T},Dimension:function(){return M},Function:function(){return x},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return B},MediaFeature:function(){return $},MediaQuery:function(){return V},MediaQueryList:function(){return Q},NestingSelector:function(){return te},Nth:function(){return be},Number:function(){return pe},Operator:function(){return fe},Parentheses:function(){return ue},Percentage:function(){return de},PseudoClassSelector:function(){return ge},PseudoElementSelector:function(){return He},Ratio:function(){return ot},Raw:function(){return St},Rule:function(){return Tt},Selector:function(){return Dt},SelectorList:function(){return Rt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return pn},Url:function(){return rt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var Ve={};m.r(Ve),m.d(Ve,{AtrulePrelude:function(){return RFe},Selector:function(){return WFe},Value:function(){return KFe}});var at={};m.r(at),m.d(at,{AnPlusB:function(){return sae},Atrule:function(){return uae},AtrulePrelude:function(){return cae},AttributeSelector:function(){return fae},Block:function(){return _ae},Brackets:function(){return gae},CDC:function(){return vae},CDO:function(){return yae},ClassSelector:function(){return bae},Combinator:function(){return wae},Comment:function(){return kae},Declaration:function(){return Sae},DeclarationList:function(){return Eae},Dimension:function(){return xae},Function:function(){return Dae},Hash:function(){return Aae},IdSelector:function(){return Pae},Identifier:function(){return Oae},MediaFeature:function(){return Iae},MediaQuery:function(){return Rae},MediaQueryList:function(){return Lae},NestingSelector:function(){return Zae},Nth:function(){return Nae},Number:function(){return Bae},Operator:function(){return Fae},Parentheses:function(){return Uae},Percentage:function(){return jae},PseudoClassSelector:function(){return Hae},PseudoElementSelector:function(){return Gae},Ratio:function(){return Wae},Raw:function(){return Vae},Rule:function(){return Kae},Selector:function(){return qae},SelectorList:function(){return Jae},String:function(){return ese},StyleSheet:function(){return nse},TypeSelector:function(){return ise},UnicodeRange:function(){return sse},Url:function(){return use},Value:function(){return cse},WhiteSpace:function(){return dse}});var ht={};m.r(ht),m.d(ht,{Hooks:function(){return cA},Lexer:function(){return nT},Parser:function(){return rT},Renderer:function(){return O5},Slugger:function(){return rW},TextRenderer:function(){return nW},Tokenizer:function(){return A5},defaults:function(){return av},getDefaults:function(){return tW},lexer:function(){return b8e},marked:function(){return Nr},options:function(){return p8e},parse:function(){return v8e},parseInline:function(){return g8e},parser:function(){return y8e},setOptions:function(){return h8e},use:function(){return m8e},walkTokens:function(){return _8e}});var vn,Ut=m(3237),Wt=m(1120),j=m(3144),F=m(5671),qe=m(136),Be=m(9388),se=m(9808),t=m(5e3),Lt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,j.Z)(e)}(se.w_),zt=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"onAndCancel",value:function(o,a,s){return o.addEventListener(a,s,!1),function(){o.removeEventListener(a,s,!1)}}},{key:"dispatchEvent",value:function(o,a){o.dispatchEvent(a)}},{key:"remove",value:function(o){o.parentNode&&o.parentNode.removeChild(o)}},{key:"createElement",value:function(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(o){return o.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(o){return o instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}},{key:"getBaseHref",value:function(o){var a=function Qt(){return(an=an||document.querySelector("base"))?an.getAttribute("href"):null}();return null==a?null:function Vt(n){(vn=vn||document.createElement("a")).setAttribute("href",n);var r=vn.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){an=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,se.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,se.HT)(new e)}}]),e}(Lt),an=null;var Jt=new t.OlP("TRANSITION_ID");var Fe=[{provide:t.ip1,useFactory:function Qe(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,se.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a1&&void 0!==arguments[1])||arguments[1],s=e.findTestabilityInTree(o,a);if(null==s)throw new Error("Could not find testability for element.");return s},t.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},t.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()};t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(function(a){var s=t.dqk.getAllAngularTestabilities(),l=s.length,u=!1,d=function(g){u=u||g,0==--l&&a(u)};s.forEach(function(h){h.whenStable(d)})})}},{key:"findTestabilityInTree",value:function(e,i,o){if(null==i)return null;var a=e.getTestability(i);return null!=a?a:o?(0,se.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),ye=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();ye.\u0275fac=function(r){return new(r||ye)},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac});var he=new t.OlP("EventManagerPlugins"),Le=function(){function n(r,e){var i=this;(0,F.Z)(this,n),this._zone=e,this._eventNameToPlugin=new Map,r.forEach(function(o){return o.manager=i}),this._plugins=r.slice().reverse()}return(0,j.Z)(n,[{key:"addEventListener",value:function(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}},{key:"addGlobalEventListener",value:function(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var i=this._eventNameToPlugin.get(e);if(i)return i;for(var o=this._plugins,a=0;a-1&&(a.splice(d,1),u="code."),et.forEach(function(g){var C=a.indexOf(g);C>-1&&(a.splice(C,1),u+=g+".")}),u+=l,0!=a.length||0===l.length)return null;var h={};return h.domEventName=s,h.fullKey=u,h}},{key:"matchEventFullKeyCode",value:function(o,a){var s=gt[o.key]||o.key,l="";return a.indexOf("code.")>-1&&(s=o.code,l="code."),!(null==s||!s)&&(" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),et.forEach(function(u){u!==s&&((0,wt[u])(o)&&(l+=u+"."))}),(l+=s)===a)}},{key:"eventCallback",value:function(o,a,s){return function(l){e.matchEventFullKeyCode(l,o)&&s.runGuarded(function(){return a(l)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),e}(lt);nn.\u0275fac=function(r){return new(r||nn)(t.LFG(se.K0))},nn.\u0275prov=t.Yz7({token:nn,factory:nn.\u0275fac});var Ca=[{provide:t.Lbi,useValue:se.bD},{provide:t.g9A,useValue:function yi(){zt.makeCurrent()},multi:!0},{provide:se.K0,useFactory:function Va(){return(0,t.RDi)(document),document},deps:[]}],wa=(0,t.eFA)(t._c5,"browser",Ca),ls=new t.OlP(""),ta=[{provide:t.rWj,useClass:ne,deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Di=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function zi(){return new t.qLn},deps:[]},{provide:he,useClass:yt,multi:!0,deps:[se.K0,t.R0b,t.Lbi]},{provide:he,useClass:nn,multi:!0,deps:[se.K0]},{provide:Ye,useClass:Ye,deps:[Le,Nt,t.AFp]},{provide:t.FYo,useExisting:Ye},{provide:ut,useExisting:Nt},{provide:Nt,useClass:Nt,deps:[se.K0]},{provide:Le,useClass:Le,deps:[he,t.R0b]},{provide:se.JF,useClass:ye,deps:[]},[]],na=function(){function n(r){(0,F.Z)(this,n),false}return(0,j.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Jt,useExisting:t.AFp},Fe]}}}]),n}();na.\u0275fac=function(r){return new(r||na)(t.LFG(ls,12))},na.\u0275mod=t.oAB({type:na}),na.\u0275inj=t.cJS({providers:[].concat(Di,ta),imports:[se.ez,t.hGG]});var Gn=function(){function n(r){(0,F.Z)(this,n),this._doc=r,this._dom=(0,se.q)()}return(0,j.Z)(n,[{key:"addTag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,i):null}},{key:"addTags",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(a,s){return s&&a.push(i._getOrCreateElement(s,o)),a},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var i=this._doc.querySelectorAll("meta[".concat(e,"]"));return i?[].slice.call(i):[]}},{key:"updateTag",value:function(e,i){if(!e)return null;i=i||this._parseSelector(e);var o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!o){var a=this._parseSelector(e),s=this.getTags(a).filter(function(d){return i._containsAttributes(e,d)})[0];if(void 0!==s)return s}var l=this._dom.createElement("meta");this._setMetaElementAttributes(e,l);var u=this._doc.getElementsByTagName("head")[0];return u.appendChild(l),l}},{key:"_setMetaElementAttributes",value:function(e,i){var o=this;return Object.keys(e).forEach(function(a){return i.setAttribute(o._getMetaKeyMap(a),e[a])}),i}},{key:"_parseSelector",value:function(e){var i=e.name?"name":"property";return"".concat(i,'="').concat(e[i],'"')}},{key:"_containsAttributes",value:function(e,i){var o=this;return Object.keys(e).every(function(a){return i.getAttribute(o._getMetaKeyMap(a))===e[a]})}},{key:"_getMetaKeyMap",value:function(e){return vr[e]||e}}]),n}();Gn.\u0275fac=function(r){return new(r||Gn)(t.LFG(se.K0))},Gn.\u0275prov=t.Yz7({token:Gn,factory:function(r){return r?new r:function _o(){return new Gn((0,t.LFG)(se.K0))}()},providedIn:"root"});var vr={httpEquiv:"http-equiv"};var ni=function(){function n(r){(0,F.Z)(this,n),this._doc=r}return(0,j.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();ni.\u0275fac=function(r){return new(r||ni)(t.LFG(se.K0))},ni.\u0275prov=t.Yz7({token:ni,factory:function(r){return r?new r:function fi(){return new ni((0,t.LFG)(se.K0))}()},providedIn:"root"});function So(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var so="undefined"!=typeof window&&window||{},xr=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Yi=function(){function n(r){(0,F.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,j.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=so.console.profile;i&&a&&so.console.profile(o);for(var s=Eo(),l=0;l<5||Eo()-s<500;)this.appRef.tick(),l++;var u=Eo();i&&a&&so.console.profileEnd(o);var d=(u-s)/l;return so.console.log("ran ".concat(l," change detection cycles")),so.console.log("".concat(d.toFixed(2)," ms per check")),new xr(d,l)}}]),n}();function Eo(){return so.performance&&so.performance.now?so.performance.now():(new Date).getTime()}var ca="profiler";var Ui=function(){function n(){(0,F.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,j.Z)(n,[{key:"get",value:function(e,i){return void 0!==this.store[e]?this.store[e]:i}},{key:"set",value:function(e,i){this.store[e]=i}},{key:"remove",value:function(e){delete this.store[e]}},{key:"hasKey",value:function(e){return this.store.hasOwnProperty(e)}},{key:"isEmpty",get:function(){return 0===Object.keys(this.store).length}},{key:"onSerialize",value:function(e,i){this.onSerializeCallbacks[e]=i}},{key:"toJson",value:function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}]),n}();Ui.\u0275fac=function(r){return new(r||Ui)},Ui.\u0275prov=t.Yz7({token:Ui,factory:function(){return r=(0,t.f3M)(se.K0),e=(0,t.f3M)(t.AFp),(i=new Ui).store=function qs(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function Ya(n){var r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return n.replace(/&[^;]+;/g,function(e){return r[e]})}(e.textContent))}catch(o){console.warn("Exception while restoring TransferState for app "+r,o)}return i}(r,e),i;var r,e,i},providedIn:"root"});var oi=(0,j.Z)(function n(){(0,F.Z)(this,n)});oi.\u0275fac=function(r){return new(r||oi)},oi.\u0275mod=t.oAB({type:oi}),oi.\u0275inj=t.cJS({});var to={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Ai=new t.OlP("HammerGestureConfig"),hu=new t.OlP("HammerLoader"),Ki=function(){function n(){(0,F.Z)(this,n),this.events=[],this.overrides={}}return(0,j.Z)(n,[{key:"buildHammer",value:function(e){var i=new Hammer(e,this.options);for(var o in i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0}),this.overrides)i.get(o).set(this.overrides[o]);return i}}]),n}();Ki.\u0275fac=function(r){return new(r||Ki)},Ki.\u0275prov=t.Yz7({token:Ki,factory:Ki.\u0275fac});var tn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,j.Z)(e,[{key:"supports",value:function(o){return!(!to.hasOwnProperty(o.toLowerCase())&&!this.isCustomEvent(o)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(o,a,s){var l=this,u=this.manager.getZone();if(a=a.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||u.runOutsideAngular(function(){return l.loader()});var d=!1,h=function(){d=!0};return u.runOutsideAngular(function(){return l._loaderPromise.then(function(){window.Hammer?d||(h=l.addEventListener(o,a,s)):h=function(){}}).catch(function(){h=function(){}})}),function(){h()}}return u.runOutsideAngular(function(){var g=l._config.buildHammer(o),C=function(z){u.runGuarded(function(){s(z)})};return g.on(a,C),function(){g.off(a,C),"function"==typeof g.destroy&&g.destroy()}})}},{key:"isCustomEvent",value:function(o){return this._config.events.indexOf(o)>-1}}]),e}(lt);tn.\u0275fac=function(r){return new(r||tn)(t.LFG(se.K0),t.LFG(Ai),t.LFG(t.c2e),t.LFG(hu,8))},tn.\u0275prov=t.Yz7({token:tn,factory:tn.\u0275fac});var en=(0,j.Z)(function n(){(0,F.Z)(this,n)});en.\u0275fac=function(r){return new(r||en)},en.\u0275mod=t.oAB({type:en}),en.\u0275inj=t.cJS({providers:[{provide:he,useClass:tn,multi:!0,deps:[se.K0,Ai,t.c2e,[new t.FiY,hu]]},{provide:Ai,useClass:Ki,deps:[]}]});var Dr=(0,j.Z)(function n(){(0,F.Z)(this,n)});Dr.\u0275fac=function(r){return new(r||Dr)},Dr.\u0275prov=t.Yz7({token:Dr,factory:function(r){return r?new(r||Dr):t.LFG(qi)},providedIn:"root"});var qi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,j.Z)(e,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case t.q3G.NONE:return a;case t.q3G.HTML:return(0,t.qzn)(a,"HTML")?(0,t.z3N)(a):(0,t.EiD)(this._doc,String(a)).toString();case t.q3G.STYLE:return(0,t.qzn)(a,"Style")?(0,t.z3N)(a):a;case t.q3G.SCRIPT:if((0,t.qzn)(a,"Script"))return(0,t.z3N)(a);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.qzn)(a,"URL")?(0,t.z3N)(a):(0,t.mCW)(String(a));case t.q3G.RESOURCE_URL:if((0,t.qzn)(a,"ResourceURL"))return(0,t.z3N)(a);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return(0,t.JVY)(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return(0,t.L6k)(o)}},{key:"bypassSecurityTrustScript",value:function(o){return(0,t.eBb)(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return(0,t.LAX)(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return(0,t.pB0)(o)}}]),e}(Dr);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(se.K0))},qi.\u0275prov=t.Yz7({token:qi,factory:function(r){return r?new r:function no(n){return new qi(n.get(se.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ti=m(2963),ro=m(1002);function Ln(){Ln=function(){return n};var n={},r=Object.prototype,e=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(bt,$e,Ie){return Object.defineProperty(bt,$e,{value:Ie,enumerable:!0,configurable:!0,writable:!0}),bt[$e]}try{l({},"")}catch(bt){l=function(Ie,ct,Bt){return Ie[ct]=Bt}}function u(bt,$e,Ie,ct){var Tn,Hn,zn,ar,Bt=$e&&$e.prototype instanceof g?$e:g,jt=Object.create(Bt.prototype),It=new Ae(ct||[]);return jt._invoke=(Tn=bt,Hn=Ie,zn=It,ar="suspendedStart",function(kr,_r){if("executing"===ar)throw new Error("Generator is already running");if("completed"===ar){if("throw"===kr)throw _r;return{value:void 0,done:!0}}for(zn.method=kr,zn.arg=_r;;){var Wr=zn.delegate;if(Wr){var jr=Ee(Wr,zn);if(jr){if(jr===h)continue;return jr}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===ar)throw ar="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);ar="executing";var Kr=d(Tn,Hn,zn);if("normal"===Kr.type){if(ar=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(ar="completed",zn.method="throw",zn.arg=Kr.arg)}}),jt}function d(bt,$e,Ie){try{return{type:"normal",arg:bt.call($e,Ie)}}catch(ct){return{type:"throw",arg:ct}}}n.wrap=u;var h={};function g(){}function C(){}function Z(){}var z={};l(z,o,function(){return this});var q=Object.getPrototypeOf,re=q&&q(q(it([])));re&&re!==r&&e.call(re,o)&&(z=re);var ae=Z.prototype=g.prototype=Object.create(z);function Se(bt){["next","throw","return"].forEach(function($e){l(bt,$e,function(Ie){return this._invoke($e,Ie)})})}function Ce(bt,$e){function Ie(Bt,jt,It,Tn){var Hn=d(bt[Bt],bt,jt);if("throw"!==Hn.type){var zn=Hn.arg,ar=zn.value;return ar&&"object"==(0,ro.Z)(ar)&&e.call(ar,"__await")?$e.resolve(ar.__await).then(function(kr){Ie("next",kr,It,Tn)},function(kr){Ie("throw",kr,It,Tn)}):$e.resolve(ar).then(function(kr){zn.value=kr,It(zn)},function(kr){return Ie("throw",kr,It,Tn)})}Tn(Hn.arg)}var ct;this._invoke=function(Bt,jt){function It(){return new $e(function(Tn,Hn){Ie(Bt,jt,Tn,Hn)})}return ct=ct?ct.then(It,It):It()}}function Ee(bt,$e){var Ie=bt.iterator[$e.method];if(void 0===Ie){if($e.delegate=null,"throw"===$e.method){if(bt.iterator.return&&($e.method="return",$e.arg=void 0,Ee(bt,$e),"throw"===$e.method))return h;$e.method="throw",$e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var ct=d(Ie,bt.iterator,$e.arg);if("throw"===ct.type)return $e.method="throw",$e.arg=ct.arg,$e.delegate=null,h;var Bt=ct.arg;return Bt?Bt.done?($e[bt.resultName]=Bt.value,$e.next=bt.nextLoc,"return"!==$e.method&&($e.method="next",$e.arg=void 0),$e.delegate=null,h):Bt:($e.method="throw",$e.arg=new TypeError("iterator result is not an object"),$e.delegate=null,h)}function Ke(bt){var $e={tryLoc:bt[0]};1 in bt&&($e.catchLoc=bt[1]),2 in bt&&($e.finallyLoc=bt[2],$e.afterLoc=bt[3]),this.tryEntries.push($e)}function st(bt){var $e=bt.completion||{};$e.type="normal",delete $e.arg,bt.completion=$e}function Ae(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ke,this),this.reset(!0)}function it(bt){if(bt){var $e=bt[o];if($e)return $e.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Ie=-1,ct=function Bt(){for(;++Ie=0;--Bt){var jt=this.tryEntries[Bt],It=jt.completion;if("root"===jt.tryLoc)return ct("end");if(jt.tryLoc<=this.prev){var Tn=e.call(jt,"catchLoc"),Hn=e.call(jt,"finallyLoc");if(Tn&&Hn){if(this.prev=0;--ct){var Bt=this.tryEntries[ct];if(Bt.tryLoc<=this.prev&&e.call(Bt,"finallyLoc")&&this.prev=0;--Ie){var ct=this.tryEntries[Ie];if(ct.finallyLoc===$e)return this.complete(ct.completion,ct.afterLoc),st(ct),h}},catch:function($e){for(var Ie=this.tryEntries.length-1;Ie>=0;--Ie){var ct=this.tryEntries[Ie];if(ct.tryLoc===$e){var Bt=ct.completion;if("throw"===Bt.type){var jt=Bt.arg;st(ct)}return jt}}throw new Error("illegal catch attempt")},delegateYield:function($e,Ie,ct){return this.delegate={iterator:it($e),resultName:Ie,nextLoc:ct},"next"===this.method&&(this.arg=void 0),h}},n}var Ji,n,mu=m(4506),Jr=m(5647),Yn=m(7685),An=m(7762),cn=m(4902);function Oi(n){if(":"!=n[0])return[null,n];var r=n.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(n,'" expecting ":namespace:name"'));return[n.slice(1,r),n.slice(r+1)]}function Qi(n){return"ng-container"===Oi(n)[1]}function Pi(n){return"ng-content"===Oi(n)[1]}function Mi(n){return null===n?null:Oi(n)[0]}function ji(n,r){return n?":".concat(n,":").concat(r):r}(n=Ji||(Ji={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var co,fa,hr=function(){function n(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.closedByChildren,o=e.implicitNamespacePrefix,a=e.contentType,s=void 0===a?Ji.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,C=void 0!==g&&g,Z=e.preventNamespaceInheritance,z=void 0!==Z&&Z;(0,F.Z)(this,n),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(q){return r.closedByChildren[q]=!0}),this.isVoid=h,this.closedByParent=u||h,this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=C,this.preventNamespaceInheritance=z}return(0,j.Z)(n,[{key:"isClosedByChild",value:function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}},{key:"getContentType",value:function(e){if("object"==typeof this.contentType){var i=void 0===e?void 0:this.contentType[e];return null!=i?i:this.contentType.default}return this.contentType}}]),n}();function ka(n){var r,e;return fa||(co=new hr,fa={base:new hr({isVoid:!0}),meta:new hr({isVoid:!0}),area:new hr({isVoid:!0}),embed:new hr({isVoid:!0}),link:new hr({isVoid:!0}),img:new hr({isVoid:!0}),input:new hr({isVoid:!0}),param:new hr({isVoid:!0}),hr:new hr({isVoid:!0}),br:new hr({isVoid:!0}),source:new hr({isVoid:!0}),track:new hr({isVoid:!0}),wbr:new hr({isVoid:!0}),p:new hr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new hr({closedByChildren:["tbody","tfoot"]}),tbody:new hr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new hr({closedByChildren:["tbody"],closedByParent:!0}),tr:new hr({closedByChildren:["tr"],closedByParent:!0}),td:new hr({closedByChildren:["td","th"],closedByParent:!0}),th:new hr({closedByChildren:["td","th"],closedByParent:!0}),col:new hr({isVoid:!0}),svg:new hr({implicitNamespacePrefix:"svg"}),foreignObject:new hr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new hr({implicitNamespacePrefix:"math"}),li:new hr({closedByChildren:["li"],closedByParent:!0}),dt:new hr({closedByChildren:["dt","dd"]}),dd:new hr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new hr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new hr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new hr({closedByChildren:["optgroup"],closedByParent:!0}),option:new hr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new hr({ignoreFirstLf:!0}),listing:new hr({ignoreFirstLf:!0}),style:new hr({contentType:Ji.RAW_TEXT}),script:new hr({contentType:Ji.RAW_TEXT}),title:new hr({contentType:{default:Ji.ESCAPABLE_RAW_TEXT,svg:Ji.PARSABLE_DATA}}),textarea:new hr({contentType:Ji.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=fa[n])&&void 0!==r?r:fa[n.toLowerCase()])&&void 0!==e?e:co}var Qo,Xo,go=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),fo=function(){function n(){(0,F.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,j.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a0&&void 0!==arguments[0]?arguments[0]:null;this.element=e}},{key:"getMatchingElementTemplate",value:function(){for(var e=this.element||"div",i=this.classNames.length>0?' class="'.concat(this.classNames.join(" "),'"'):"",o="",a=0;a"):"<".concat(e).concat(i).concat(o,">")}},{key:"getAttrs",value:function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}},{key:"addAttribute",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.attrs.push(e,i&&i.toLowerCase()||"")}},{key:"addClassName",value:function(e){this.classNames.push(e.toLowerCase())}},{key:"toString",value:function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(s){return e+=".".concat(s)}),this.attrs)for(var i=0;i0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),Z.push(z)},a=new n,l=a,u=!1;for(go.lastIndex=0;s=go.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new n,a.notSelectors.push(l)}var d=s[2];if(d){var h=s[3];"#"===h?l.addAttribute("id",d.slice(1)):"."===h?l.addClassName(d.slice(1)):l.setElement(d)}var g=s[4];if(g&&l.addAttribute(l.unescapeAttribute(g),s[6]),s[7]&&(u=!1,l=a),s[8]){if(u)throw new Error("Multiple selectors in :not are not supported");o(i,a),a=l=new n}}return o(i,a),i}}]),n}();!function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Qo||(Qo={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(Xo||(Xo={}));var Br,gu,_u={name:"custom-elements"},ec={name:"no-errors-schema"};function _l(n){var r=function ml(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function mf(n){var r=n.classNames&&n.classNames.length?[8].concat((0,cn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.attrs.length?[3].concat((0,cn.Z)(n.attrs),(0,cn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,cn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,cn.Z)(e))}function vu(n){return n?fo.parse(n).map(_l):[]}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(Br||(Br={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(gu||(gu={}));var ks=/-+([a-z0-9])/g;function yu(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function pa(n){throw new Error("Internal Error: ".concat(n))}function bd(n){for(var r=[],e=0;e=55296&&i<=56319&&n.length>e+1){var o=n.charCodeAt(e+1);o>=56320&&o<=57343&&(e++,i=(i-55296<<10)+o-56320+65536)}i<=127?r.push(i):i<=2047?r.push(i>>6&31|192,63&i|128):i<=65535?r.push(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&r.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128)}return r}function Ts(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ts).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return"".concat(n.overriddenName);if(n.name)return"".concat(n.name);if(!n.toString)return"object";var r=n.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var $m=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ja=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var Cr=function(){function n(r){(0,F.Z)(this,n),this.digits=r}return(0,j.Z)(n,[{key:"clone",value:function(){return new n(this.digits.slice())}},{key:"add",value:function(e){var i=this.clone();return i.addToSelf(e),i}},{key:"addToSelf",value:function(e){for(var i=Math.max(this.digits.length,e.digits.length),o=0,a=0;a=10?(this.digits[a]=s-10,o=1):(this.digits[a]=s,o=0)}o>0&&(this.digits[i]=1)}},{key:"toString",value:function(){for(var e="",i=this.digits.length-1;i>=0;i--)e+=this.digits[i];return e}}],[{key:"zero",value:function(){return new n([0])}},{key:"one",value:function(){return new n([1])}}]),n}(),us=function(){function n(r){(0,F.Z)(this,n),this.powerOfTwos=[r]}return(0,j.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Cr.zero();return this.multiplyByAndAddTo(e,i),i}},{key:"multiplyByAndAddTo",value:function(e,i){for(var o=0;0!==e;e>>>=1,o++)if(1&e){var a=this.getMultipliedByPowerOfTwo(o);i.addToSelf(a)}}},{key:"getMultipliedByPowerOfTwo",value:function(e){for(var i=this.powerOfTwos.length;i<=e;i++){var o=this.powerOfTwos[i-1];this.powerOfTwos[i]=o.add(o)}return this.powerOfTwos[e]}}]),n}(),rh=function(){function n(r){(0,F.Z)(this,n),this.base=r,this.exponents=[new us(Cr.one())]}return(0,j.Z)(n,[{key:"toThePowerOf",value:function(e){for(var i=this.exponents.length;i<=e;i++){var o=this.exponents[i-1].multiplyBy(this.base);this.exponents[i]=new us(o)}return this.exponents[e]}}]),n}();function ih(n){return function ke(n){var r=bd(n),e=function Qa(n,r){for(var e=n.length+3>>>2,i=[],o=0;o>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function cs(n){return n.reduce(function(r,e){return r.concat(function e_(n){for(var r=[],e=0;e<4;e++)r.push(n>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,d]))}(function xn(n){return n.map(function(r){return r.visit(jl,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function _f(n){return n.id||Ss(n)}function Ss(n){var r=new we;return Oe(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var bu=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitText",value:function(e,i){return e.value}},{key:"visitContainer",value:function(e,i){var o=this;return"[".concat(e.children.map(function(a){return a.visit(o)}).join(", "),"]")}},{key:"visitIcu",value:function(e,i){var o=this,a=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(o),"}")});return"{".concat(e.expression,", ").concat(e.type,", ").concat(a.join(", "),"}")}},{key:"visitTagPlaceholder",value:function(e,i){var o=this;return e.isVoid?''):'').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'').concat(e.value,""):'')}},{key:"visitIcuPlaceholder",value:function(e,i){return'').concat(e.value.visit(this),"")}}]),n}(),jl=new bu;var In,we=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"visitIcu",value:function(o,a){var s=this,l=Object.keys(o.cases).map(function(u){return"".concat(u," {").concat(o.cases[u].visit(s),"}")});return"{".concat(o.type,", ").concat(l.join(", "),"}")}}]),e}(bu);function le(n,r,e,i){return n<20?[r&e|~r&i,1518500249]:n<40?[r^e^i,1859775393]:n<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function Me(n){var r=bd(n),e=pt(r,0),i=pt(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Oe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=Me(n);if(r){var i=Me(r);e=tc($o(e,1),i)}var o=e[0],a=e[1];return n_(2147483647&o,a)}function pt(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=Yt(e=Qn(e,Ta(n,o,In.Little)),i=Qn(i,Ta(n,o+4,In.Little)),r=Qn(r,Ta(n,o+8,In.Little)));e=s[0],i=s[1],r=s[2]}return e=Qn(e,Ta(n,o,In.Little)),i=Qn(i,Ta(n,o+4,In.Little)),r=Qn(r,a),Yt(e,i,r=Qn(r,Ta(n,o+8,In.Little)<<8))[2]}function Yt(n,r,e){return n=Go(n,r),n=Go(n,e),n^=e>>>13,r=Go(r,e),r=Go(r,n),r^=n<<8,e=Go(e,n),e=Go(e,r),e^=r>>>13,n=Go(n,r),n=Go(n,e),n^=e>>>12,r=Go(r,e),r=Go(r,n),r^=n<<16,e=Go(e,n),e=Go(e,r),e^=r>>>5,n=Go(n,r),n=Go(n,e),n^=e>>>3,r=Go(r,e),r=Go(r,n),r^=n<<10,e=Go(e,n),e=Go(e,r),[n,r,e^=r>>>15]}function Qn(n,r){return Qs(n,r)[1]}function Qs(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function tc(n,r){var e=n[0],i=n[1],o=r[0],s=Qs(i,r[1]),l=s[0],u=s[1];return[Qn(Qn(e,o),l),u]}function Go(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function Xs(n,r){return n<>>32-r}function $o(n,r){var e=n[0],i=n[1];return[e<>>32-r,i<>>32-r]}function nc(n,r){return r>=n.length?0:n[r]}function Ta(n,r,e){var i=0;if(e===In.Big)for(var o=0;o<4;o++)i+=nc(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=nc(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(In||(In={}));var Ac,oh=new rh(256);function n_(n,r){var e=oh.toThePowerOf(0).multiplyBy(r);return oh.toThePowerOf(4).multiplyByAndAddTo(n,e),e.toString()}!function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(Ac||(Ac={}));var Es,rc=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ac.None;(0,F.Z)(this,n),this.modifiers=r}return(0,j.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),n}();!function(n){n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None"}(Es||(Es={}));var mt,Mt,xs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,j.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(rc),gl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,F.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,j.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(rc),vl=new xs(Es.Dynamic),Ma=new xs(Es.Inferred),Pe=new xs(Es.Bool),_e=(new xs(Es.Int),new xs(Es.Number)),xe=new xs(Es.String),ze=(new xs(Es.Function),new xs(Es.None));function wn(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Rr(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new ic(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new Ao(Mt.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new Ao(Mt.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new Ao(Mt.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new Ao(Mt.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new Ao(Mt.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new Ao(Mt.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new Ao(Mt.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new Ao(Mt.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new Ao(Mt.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new Ao(Mt.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Ao(Mt.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new Ao(Mt.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new Ao(Mt.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new Ao(Mt.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new Ao(Mt.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new Ao(Mt.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(yf,e)}},{key:"nullishCoalesce",value:function(e,i){return new Ao(Mt.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new uh(this,null)}}]),n}(),$s=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadVarExpr(this,a)}},{key:"set",value:function(o){return new vf(this.name,o,null,this.sourceSpan)}}]),e}(li),gf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,j.Z)(e,[{key:"visitExpression",value:function(o,a){return o.visitTypeofExpr(this,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&o.expr.isEquivalent(this.expr)}},{key:"isConstant",value:function(){return this.expr.isConstant()}}]),e}(li),Ar=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.node===o.node}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWrappedNodeExpr(this,a)}}]),e}(li),vf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteVarExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new bf(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ma,Ds.Final)}}]),e}(li),r_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteKeyExpr(this,a)}}]),e}(li),Rv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWritePropExpr(this,a)}}]),e}(li),ah=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,F.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&si(this.args,o.args)&&this.pure===o.pure}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInvokeFunctionExpr(this,a)}}]),e}(li),ie=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Rr(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&si(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(li),ce=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&si(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(li),me=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value===o.value}},{key:"isConstant",value:function(){return!0}},{key:"visitExpression",value:function(o,a){return o.visitLiteralExpr(this,a)}}]),e}(li),Ue=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.elements=r,this.expressions=e}),Xe=(0,j.Z)(function n(r,e,i){var o;(0,F.Z)(this,n),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:ds(Qr(r))}),Pt=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.text=r,this.sourceSpan=e}),rn=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),ui=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,xe,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return!1}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitLocalizedString(this,a)}},{key:"serializeI18nHead",value:function(){var o=this.metaBlock.description||"";return this.metaBlock.meaning&&(o="".concat(this.metaBlock.meaning).concat("|").concat(o)),this.metaBlock.customId&&(o="".concat(o).concat("@@").concat(this.metaBlock.customId)),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(function(a){o="".concat(o).concat("\u241f").concat(a)}),ha(o,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}},{key:"getMessagePartSourceSpan",value:function(o){var a,s;return null!==(s=null===(a=this.messageParts[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:this.sourceSpan}},{key:"getPlaceholderSourceSpan",value:function(o){var a,s,l,u;return null!==(u=null!==(s=null===(a=this.placeHolderNames[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:null===(l=this.expressions[o])||void 0===l?void 0:l.sourceSpan)&&void 0!==u?u:this.sourceSpan}},{key:"serializeI18nTemplatePart",value:function(o){var a,s=this.placeHolderNames[o-1],l=this.messageParts[o],u=s.text;return 0===(null===(a=s.associatedMessage)||void 0===a?void 0:a.legacyIds.length)&&(u+="".concat("@@").concat(Oe(s.associatedMessage.messageString,s.associatedMessage.meaning))),ha(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(li),Qr=function(r){return r.replace(/\\/g,"\\\\")},Do=function(r){return r.replace(/^:/,"\\:")},Ra=function(r){return r.replace(/:/g,"\\:")},ds=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function ha(n,r,e){return""===n?{cooked:r,raw:ds(Do(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:ds(":".concat(Ra(Qr(n)),":").concat(Qr(r))),range:e}}var Ds,fs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;return(0,F.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.name===o.value.name&&this.value.moduleName===o.value.moduleName&&this.value.runtime===o.value.runtime}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitExternalExpr(this,a)}}]),e}(li),ic=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,F.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&wn(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(li),Cu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,Pe,o)).condition=i,a}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitNotExpr(this,a)}}]),e}(li),ma=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,F.Z)(this,n),this.name=r,this.type=e}return(0,j.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),wu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(this.statements,o.statements)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitFunctionExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new hM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(li),Lv=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,F.Z)(this,e),(l=r.call(this,a||_e,s)).operator=i,l.expr=o,l.parens=u,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.expr.isEquivalent(o.expr)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitUnaryOperatorExpr(this,a)}}]),e}(li),Ao=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,F.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=d,u.lhs=o,u}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.lhs.isEquivalent(o.lhs)&&this.rhs.isEquivalent(o.rhs)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitBinaryOperatorExpr(this,a)}}]),e}(li),pC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadPropExpr(this,a)}},{key:"set",value:function(o){return new Rv(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(li),TI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadKeyExpr(this,a)}},{key:"set",value:function(o){return new r_(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(li),Hl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,j.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(li),dM=function(){function n(r,e,i){(0,F.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,j.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.entries,o.entries)}},{key:"isConstant",value:function(){return this.entries.every(function(o){return o.value.isConstant()})}},{key:"visitExpression",value:function(o,a){return o.visitLiteralMapExpr(this,a)}}]),e}(li),i_=new me(null,null,null),yf=new me(null,Ma,null);!function(n){n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static"}(Ds||(Ds={}));var pM=function(){function n(r,e,i){(0,F.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,j.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),hC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,j.Z)(e,[{key:"toString",value:function(){return function KW(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(io(n[0])," ");var i,r="*\n",e=(0,An.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=io(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(pM),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ds.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,F.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,j.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}},{key:"addLeadingComment",value:function(e){var i;this.leadingComments=null!==(i=this.leadingComments)&&void 0!==i?i:[],this.leadingComments.push(e)}}]),n}(),bf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,F.Z)(this,e),(d=r.call(this,s,l,u)).name=i,d.value=o,d.type=a||o&&o.type||null,d}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&(this.value?!!o.value&&this.value.isEquivalent(o.value):!o.value)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareVarStmt(this,a)}}]),e}(lh),hM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,F.Z)(this,e),(h=r.call(this,l,u,d)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&si(this.params,o.params)&&si(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),uh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,Ds.None,o,a)).expr=i,s}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.expr.isEquivalent(o.expr)}},{key:"visitStatement",value:function(o,a){return o.visitExpressionStmt(this,a)}}]),e}(lh),Sa=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2?arguments[2]:void 0;return(0,F.Z)(this,e),(o=r.call(this,Ds.None,a,s)).value=i,o}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.isEquivalent(o.value)}},{key:"visitStatement",value:function(o,a){return o.visitReturnStmt(this,a)}}]),e}(lh),o_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,F.Z)(this,e),(a=r.call(this,Ds.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,j.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&si(this.trueCase,o.trueCase)&&si(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function mM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new hC(n)}function qr(n,r,e){return new $s(n,r,e)}function Xn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new fs(n,null,r,e)}function ps(n,r,e){return new gl(n,r,e)}function mC(n){return new gf(n)}function pi(n,r,e){return new Hl(n,r,e)}function As(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new sh(n.map(function(e){return new dM(e.key,e.value,e.quoted)}),r,null)}function ch(n,r){return new Cu(n,r)}function oa(n,r,e,i,o){return new wu(n,r,e,i,o)}function Cf(n,r,e,i,o){return new o_(n,r,e,i,o)}function Zv(n,r,e,i){return new ie(n,r,e,i)}function on(n,r,e){return new me(n,r,e)}function kd(n,r,e,i,o){return new ui(n,r,e,i,o)}function _C(n){return n instanceof me&&null===n.value}function io(n){var r="";if(n.tagName&&(r+=" @".concat(n.tagName)),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+n.text.replace(/@/g,"\\@")}return r}var EI=qr(""),xI={},DI=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,j.Z)(e,[{key:"visitExpression",value:function(o,a){return a===xI?this.original.visitExpression(o,a):this.resolved.visitExpression(o,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&this.resolved.isEquivalent(o.resolved)}},{key:"isConstant",value:function(){return!0}},{key:"fixup",value:function(o){this.resolved=o,this.shared=!0}}]),e}(li),wf=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,F.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,j.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof me&&!Nv(e)||e instanceof DI)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new DI(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Nv(e)?(u=qr(l).set(new wu([],[new Sa(e)])),d=qr(l).callFn([])):(u=qr(l).set(e),d=qr(l)),this.statements.push(u.toDeclStmt(Ma,Ds.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof Hl){var i=e.entries.map(function(l){return l.isConstant()?l:EI}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=As(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:EI,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return As(l.map(function(u,d){return{key:e.entries[d].key,value:u,quoted:e.entries[d].quoted}}))})}},{key:"_getLiteralFactory",value:function(e,i,o){var a=this,s=this.literalFactories.get(e),l=i.filter(function(C){return!C.isConstant()});if(!s){var u=i.map(function(C,Z){return C.isConstant()?a.getConstLiteral(C,!0):qr("a".concat(Z))}),h=oa(u.filter(Za).map(function(C){return new ma(C.name,vl)}),[new Sa(o(u))],Ma),g=this.freshName();this.statements.push(qr(g).set(h).toDeclStmt(Ma,Ds.Final)),s=qr(g),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments:l}}},{key:"uniqueName",value:function(e){return"".concat(e).concat(this.nextNameIndex++)}},{key:"freshName",value:function(){return this.uniqueName("_c")}},{key:"keyOf",value:function(e){return e.visitExpression(new AI,xI)}}]),n}(),AI=function(){function n(){(0,F.Z)(this,n),this.visitWrappedNodeExpr=La,this.visitWriteVarExpr=La,this.visitWriteKeyExpr=La,this.visitWritePropExpr=La,this.visitInvokeFunctionExpr=La,this.visitTaggedTemplateExpr=La,this.visitInstantiateExpr=La,this.visitConditionalExpr=La,this.visitNotExpr=La,this.visitAssertNotNullExpr=La,this.visitCastExpr=La,this.visitFunctionExpr=La,this.visitUnaryOperatorExpr=La,this.visitBinaryOperatorExpr=La,this.visitReadPropExpr=La,this.visitReadKeyExpr=La,this.visitCommaExpr=La,this.visitLocalizedString=La}return(0,j.Z)(n,[{key:"visitLiteralExpr",value:function(e){return"".concat("string"==typeof e.value?'"'+e.value+'"':e.value)}},{key:"visitLiteralArrayExpr",value:function(e,i){var o=this;return"[".concat(e.entries.map(function(a){return a.visitExpression(o,i)}).join(","),"]")}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return"{".concat(e.entries.map(function(u){return"".concat(function(u){var d=u.quoted?'"':"";return"".concat(d).concat(u.key).concat(d)}(u),":").concat(u.value.visitExpression(o,i))}).join(","))}},{key:"visitExternalExpr",value:function(e){return e.value.moduleName?"EX:".concat(e.value.moduleName,":").concat(e.value.name):"EX:".concat(e.value.runtime.name)}},{key:"visitReadVarExpr",value:function(e){return"VAR:".concat(e.name)}},{key:"visitTypeofExpr",value:function(e,i){return"TYPEOF:".concat(e.expr.visitExpression(this,i))}}]),n}();function La(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Za(n){return n instanceof $s}function Nv(n){return n instanceof me&&"string"==typeof n.value&&n.value.length>=50}var qt="@angular/core",Ne=(0,j.Z)(function n(){(0,F.Z)(this,n)});Ne.NEW_METHOD="factory",Ne.TRANSFORM_METHOD="transform",Ne.PATCH_DEPS="patchedDeps",Ne.core={name:null,moduleName:qt},Ne.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:qt},Ne.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:qt},Ne.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:qt},Ne.element={name:"\u0275\u0275element",moduleName:qt},Ne.elementStart={name:"\u0275\u0275elementStart",moduleName:qt},Ne.elementEnd={name:"\u0275\u0275elementEnd",moduleName:qt},Ne.advance={name:"\u0275\u0275advance",moduleName:qt},Ne.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:qt},Ne.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:qt},Ne.attribute={name:"\u0275\u0275attribute",moduleName:qt},Ne.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:qt},Ne.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:qt},Ne.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:qt},Ne.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:qt},Ne.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:qt},Ne.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:qt},Ne.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:qt},Ne.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:qt},Ne.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:qt},Ne.classProp={name:"\u0275\u0275classProp",moduleName:qt},Ne.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:qt},Ne.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:qt},Ne.elementContainer={name:"\u0275\u0275elementContainer",moduleName:qt},Ne.styleMap={name:"\u0275\u0275styleMap",moduleName:qt},Ne.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:qt},Ne.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:qt},Ne.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:qt},Ne.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:qt},Ne.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:qt},Ne.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:qt},Ne.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:qt},Ne.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:qt},Ne.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:qt},Ne.classMap={name:"\u0275\u0275classMap",moduleName:qt},Ne.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:qt},Ne.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:qt},Ne.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:qt},Ne.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:qt},Ne.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:qt},Ne.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:qt},Ne.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:qt},Ne.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:qt},Ne.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:qt},Ne.styleProp={name:"\u0275\u0275styleProp",moduleName:qt},Ne.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:qt},Ne.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:qt},Ne.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:qt},Ne.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:qt},Ne.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:qt},Ne.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:qt},Ne.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:qt},Ne.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:qt},Ne.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:qt},Ne.nextContext={name:"\u0275\u0275nextContext",moduleName:qt},Ne.resetView={name:"\u0275\u0275resetView",moduleName:qt},Ne.templateCreate={name:"\u0275\u0275template",moduleName:qt},Ne.text={name:"\u0275\u0275text",moduleName:qt},Ne.enableBindings={name:"\u0275\u0275enableBindings",moduleName:qt},Ne.disableBindings={name:"\u0275\u0275disableBindings",moduleName:qt},Ne.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:qt},Ne.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:qt},Ne.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:qt},Ne.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:qt},Ne.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:qt},Ne.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:qt},Ne.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:qt},Ne.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:qt},Ne.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:qt},Ne.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:qt},Ne.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:qt},Ne.restoreView={name:"\u0275\u0275restoreView",moduleName:qt},Ne.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:qt},Ne.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:qt},Ne.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:qt},Ne.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:qt},Ne.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:qt},Ne.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:qt},Ne.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:qt},Ne.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:qt},Ne.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:qt},Ne.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:qt},Ne.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:qt},Ne.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:qt},Ne.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:qt},Ne.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:qt},Ne.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:qt},Ne.hostProperty={name:"\u0275\u0275hostProperty",moduleName:qt},Ne.property={name:"\u0275\u0275property",moduleName:qt},Ne.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:qt},Ne.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:qt},Ne.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:qt},Ne.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:qt},Ne.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:qt},Ne.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:qt},Ne.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:qt},Ne.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:qt},Ne.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:qt},Ne.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:qt},Ne.i18n={name:"\u0275\u0275i18n",moduleName:qt},Ne.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:qt},Ne.i18nExp={name:"\u0275\u0275i18nExp",moduleName:qt},Ne.i18nStart={name:"\u0275\u0275i18nStart",moduleName:qt},Ne.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:qt},Ne.i18nApply={name:"\u0275\u0275i18nApply",moduleName:qt},Ne.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:qt},Ne.pipe={name:"\u0275\u0275pipe",moduleName:qt},Ne.projection={name:"\u0275\u0275projection",moduleName:qt},Ne.projectionDef={name:"\u0275\u0275projectionDef",moduleName:qt},Ne.reference={name:"\u0275\u0275reference",moduleName:qt},Ne.inject={name:"\u0275\u0275inject",moduleName:qt},Ne.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:qt},Ne.directiveInject={name:"\u0275\u0275directiveInject",moduleName:qt},Ne.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:qt},Ne.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:qt},Ne.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:qt},Ne.forwardRef={name:"forwardRef",moduleName:qt},Ne.resolveForwardRef={name:"resolveForwardRef",moduleName:qt},Ne.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:qt},Ne.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:qt},Ne.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:qt},Ne.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:qt},Ne.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:qt},Ne.resolveBody={name:"\u0275\u0275resolveBody",moduleName:qt},Ne.defineComponent={name:"\u0275\u0275defineComponent",moduleName:qt},Ne.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:qt},Ne.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:qt},Ne.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:qt},Ne.ViewEncapsulation={name:"ViewEncapsulation",moduleName:qt},Ne.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:qt},Ne.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:qt},Ne.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:qt},Ne.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:qt},Ne.defineDirective={name:"\u0275\u0275defineDirective",moduleName:qt},Ne.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:qt},Ne.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:qt},Ne.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:qt},Ne.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:qt},Ne.defineInjector={name:"\u0275\u0275defineInjector",moduleName:qt},Ne.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:qt},Ne.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:qt},Ne.ModuleWithProviders={name:"ModuleWithProviders",moduleName:qt},Ne.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:qt},Ne.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:qt},Ne.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:qt},Ne.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:qt},Ne.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:qt},Ne.definePipe={name:"\u0275\u0275definePipe",moduleName:qt},Ne.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:qt},Ne.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:qt},Ne.setClassMetadata={name:"\u0275setClassMetadata",moduleName:qt},Ne.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:qt},Ne.viewQuery={name:"\u0275\u0275viewQuery",moduleName:qt},Ne.loadQuery={name:"\u0275\u0275loadQuery",moduleName:qt},Ne.contentQuery={name:"\u0275\u0275contentQuery",moduleName:qt},Ne.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:qt},Ne.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:qt},Ne.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:qt},Ne.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:qt},Ne.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:qt},Ne.listener={name:"\u0275\u0275listener",moduleName:qt},Ne.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:qt},Ne.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:qt},Ne.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:qt},Ne.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:qt},Ne.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:qt},Ne.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:qt},Ne.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:qt},Ne.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:qt},Ne.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:qt},Ne.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:qt};var Td=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,F.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,j.Z)(n,[{key:"addSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.sourcesContent.has(e)||this.sourcesContent.set(e,i),this}},{key:"addLine",value:function(){return this.lines.push([]),this.lastCol0=0,this}},{key:"addMapping",value:function(e,i,o,a){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=i&&!this.sourcesContent.has(i))throw new Error('Unknown source file "'.concat(i,'"'));if(null==e)throw new Error("The column in the generated code must be provided");if(e>2),r+=s_((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":s_((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":s_(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function dh(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=s_(e)}while(n>0);return r}function s_(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var pF=/'|\\|\n|\r|\$/g,hF=/^[$A-Z_][0-9A-Z_$]*$/i,mF=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),II=function(){function n(r){(0,F.Z)(this,n),this._indent=r,this._lines=[new mF(r)]}return(0,j.Z)(n,[{key:"_currentLine",get:function(){return this._lines[this._lines.length-1]}},{key:"println",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.print(e||null,i,!0)}},{key:"lineIsEmpty",value:function(){return 0===this._currentLine.parts.length}},{key:"lineLength",value:function(){return this._currentLine.indent*" ".length+this._currentLine.partsLength}},{key:"print",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.length>0&&(this._currentLine.parts.push(i),this._currentLine.partsLength+=i.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),o&&this._lines.push(new mF(this._indent))}},{key:"removeEmptyLastLine",value:function(){this.lineIsEmpty()&&this._lines.pop()}},{key:"incIndent",value:function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"decIndent",value:function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"toSource",value:function(){return this.sourceLines.map(function(e){return e.parts.length>0?fh(e.indent)+e.parts.join(""):""}).join("\n")}},{key:"toSourceMapGenerator",value:function(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=new Td(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;la)return o.srcSpans[s];a-=l.length}return null}},{key:"sourceLines",get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}],[{key:"createRoot",value:function(){return new n(0)}}]),n}(),zl=function(){function n(r){(0,F.Z)(this,n),this._escapeDollarInStrings=r}return(0,j.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,An.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof hC?i.print(e,"/*".concat(s.toString(),"*/"),s.trailingNewline):s.multiline?i.print(e,"/* ".concat(s.text," */"),s.trailingNewline):s.text.split("\n").forEach(function(l){i.println(e,"// ".concat(l))})}}catch(l){o.e(l)}finally{o.f()}}}},{key:"visitExpressionStmt",value:function(e,i){return this.printLeadingComments(e,i),e.expr.visitExpression(this,i),i.println(e,";"),null}},{key:"visitReturnStmt",value:function(e,i){return this.printLeadingComments(e,i),i.print(e,"return "),e.value.visitExpression(this,i),i.println(e,";"),null}},{key:"visitIfStmt",value:function(e,i){this.printLeadingComments(e,i),i.print(e,"if ("),e.condition.visitExpression(this,i),i.print(e,") {");var o=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!o?(i.print(e," "),this.visitAllStatements(e.trueCase,i),i.removeEmptyLastLine(),i.print(e," ")):(i.println(),i.incIndent(),this.visitAllStatements(e.trueCase,i),i.decIndent(),o&&(i.println(e,"} else {"),i.incIndent(),this.visitAllStatements(e.falseCase,i),i.decIndent())),i.println(e,"}"),null}},{key:"visitWriteVarExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),i.print(e,"".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWriteKeyExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"] = "),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWritePropExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,".".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitInvokeFunctionExpr",value:function(e,i){return e.fn.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitTaggedTemplateExpr",value:function(e,i){e.tag.visitExpression(this,i),i.print(e,"`"+e.template.elements[0].rawText);for(var o=1;o0&&(o.lineLength()>80?(o.print(null,a,!0),s||(o.incIndent(),o.incIndent(),s=!0)):o.print(null,a,!1)),e(i[l]);s&&(o.decIndent(),o.decIndent())}},{key:"visitAllStatements",value:function(e,i){var o=this;e.forEach(function(a){return a.visitStatement(o,i)})}}]),n}();function Md(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(pF,function(){return"$"==(arguments.length<=0?void 0:arguments[0])?r?"\\$":"$":"\n"==(arguments.length<=0?void 0:arguments[0])?"\\n":"\r"==(arguments.length<=0?void 0:arguments[0])?"\\r":"\\".concat(arguments.length<=0?void 0:arguments[0])}),o=e||!hF.test(i);return o?"'".concat(i,"'"):i}function fh(n){for(var r="",e=0;e0?As(r):null}(i);return null!==o?(r=!0,o):on(null)});return r?ps(pi(e)):ze}(n.deps):ze;return ps(Xn(Ne.FactoryDeclaration,[_M(n.type.type,n.typeArgumentCount),r]))}function l_(n,r){return n.map(function(e,i){return function u_(n,r,e){if(null===n.token)return Xn(Ne.invalidFactoryDep).callFn([on(e)]);if(null===n.attributeNameType){var i=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(r===ac.Pipe?16:0),o=0!==i||n.optional?on(i):null,a=[n.token];o&&a.push(o);var s=function bM(n){switch(n){case ac.Component:case ac.Directive:case ac.Pipe:return Ne.directiveInject;case ac.NgModule:case ac.Injectable:default:return Ne.inject}}(r);return Xn(s).callFn(a)}return Xn(Ne.injectAttribute).callFn([n.token])}(e,r,i)})}function yM(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(Uv||(Uv={})),function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(ac||(ac={}));var jv=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),yC=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),CM=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),wM=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),Hv=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u,this.i18n=d}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitBoundAttribute(this)}}],[{key:"fromBoundElementProperty",value:function(e,i){if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound attributes but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),n}(),c_=function(){function n(r,e,i,o,a,s,l,u){(0,F.Z)(this,n),this.name=r,this.type=e,this.handler=i,this.target=o,this.phase=a,this.sourceSpan=s,this.handlerSpan=l,this.keySpan=u}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitBoundEvent(this)}}],[{key:"fromParsedEvent",value:function(e){var i=0===e.type?e.targetOrPhase:null,o=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound event but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),n}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,F.Z)(this,n),this.name=r,this.attributes=e,this.inputs=i,this.outputs=o,this.children=a,this.references=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d,this.i18n=h}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),Sd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,F.Z)(this,n),this.tagName=r,this.attributes=e,this.inputs=i,this.outputs=o,this.templateAttrs=a,this.children=s,this.references=l,this.variables=u,this.sourceSpan=d,this.startSourceSpan=h,this.endSourceSpan=g,this.i18n=C}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),NI=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),kM=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),Gv=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),zv=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,j.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function mh(n,r){var e=[];if(n.visit){var o,i=(0,An.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.visit(a)||a.visit(n)}}catch(g){i.e(g)}finally{i.f()}}else{var u,l=(0,An.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(n);h&&e.push(h)}}catch(g){l.e(g)}finally{l.f()}}return e}var Tf=(0,j.Z)(function n(r,e,i,o,a,s){(0,F.Z)(this,n),this.nodes=r,this.placeholders=e,this.placeholderToMessage=i,this.meaning=o,this.description=a,this.customId=s,this.id=this.customId,this.legacyIds=[],this.messageString=function UI(n){var r=new wF,e=n.map(function(i){return i.visit(r)}).join("");return e}(this.nodes),r.length?this.sources=[{filePath:r[0].sourceSpan.start.file.url,startLine:r[0].sourceSpan.start.line+1,startCol:r[0].sourceSpan.start.col+1,endLine:r[r.length-1].sourceSpan.end.line+1,endCol:r[0].sourceSpan.start.col+1}]:this.sources=[]}),TM=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),d_=function(){function n(r,e){(0,F.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),BI=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),QW=function(){function n(r,e,i,o,a,s,l,u,d){(0,F.Z)(this,n),this.tag=r,this.attrs=e,this.startName=i,this.closeName=o,this.children=a,this.isVoid=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),FI=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),CC=function(){function n(r,e,i){(0,F.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var wF=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(a){return"".concat(a," {").concat(e.cases[a].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this,o=e.children.map(function(a){return a.visit(i)}).join("");return"{$".concat(e.startName,"}").concat(o,"{$").concat(e.closeName,"}")}},{key:"visitPlaceholder",value:function(e){return"{$".concat(e.name,"}")}},{key:"visitIcuPlaceholder",value:function(e){return"{$".concat(e.name,"}")}}]),n}(),jI=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitTag",value:function(e){var i=this,o=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<".concat(e.name).concat(o,"/>");var a=e.children.map(function(s){return s.visit(i)});return"<".concat(e.name).concat(o,">").concat(a.join(""),"")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"")}},{key:"_serializeAttributes",value:function(e){var i=Object.keys(e).map(function(o){return"".concat(o,'="').concat(e[o],'"')}).join(" ");return i.length>0?" "+i:""}},{key:"visitDoctype",value:function(e){return"")}}]),n}();new jI;function EF(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Wv="i18n-";function EM(n){return"i18n"===n||n.startsWith(Wv)}function Vv(n){return n instanceof Tf}function kC(n){return Vv(n)&&1===n.nodes.length&&n.nodes[0]instanceof BI}function ku(n){return!!n.i18n}function DM(n){return n.nodes[0]}function f_(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(n).concat(e).concat("\ufffd")}function Yv(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function AM(n){var r={};return n.forEach(function(e,i){r[i]=on(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function TC(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=new Map,a=n instanceof Tf?n.nodes.find(function(s){return s instanceof d_}):n;return a&&a.children.filter(function(s){return s instanceof FI}).forEach(function(s,l){var u=f_(i+l,e);TC(o,s.name,u)}),o}function MC(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return n&&Object.keys(n).length&&Object.keys(n).forEach(function(i){return e[Kv(i,r)]=n[i]}),e}function Kv(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=EF(n);if(!r)return e;var o,i=e.split("_");if(1===i.length)return n.toLowerCase();/^\d+$/.test(i[i.length-1])&&(o=i.pop());var a=i.shift().toLowerCase();return i.length&&(a+=i.map(function(s){return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}).join("")),o?"".concat(a,"_").concat(o):a}function OM(n){return"".concat("MSG_").concat(n).toUpperCase()}function PF(n){return new bf(n.name,void 0,Ma,void 0,n.sourceSpan)}var KI=/[-.]/,PM="_t",sc="ctx",_h="rf",JI="restoredCtx",RF=new Set([Ne.element,Ne.elementStart,Ne.elementEnd,Ne.elementContainer,Ne.elementContainerStart,Ne.elementContainerEnd,Ne.i18nExp,Ne.listener,Ne.classProp,Ne.syntheticHostListener,Ne.hostProperty,Ne.syntheticHostProperty,Ne.property,Ne.propertyInterpolate1,Ne.propertyInterpolate2,Ne.propertyInterpolate3,Ne.propertyInterpolate4,Ne.propertyInterpolate5,Ne.propertyInterpolate6,Ne.propertyInterpolate7,Ne.propertyInterpolate8,Ne.propertyInterpolateV,Ne.attribute,Ne.attributeInterpolate1,Ne.attributeInterpolate2,Ne.attributeInterpolate3,Ne.attributeInterpolate4,Ne.attributeInterpolate5,Ne.attributeInterpolate6,Ne.attributeInterpolate7,Ne.attributeInterpolate8,Ne.attributeInterpolateV,Ne.styleProp,Ne.stylePropInterpolate1,Ne.stylePropInterpolate2,Ne.stylePropInterpolate3,Ne.stylePropInterpolate4,Ne.stylePropInterpolate5,Ne.stylePropInterpolate6,Ne.stylePropInterpolate7,Ne.stylePropInterpolate8,Ne.stylePropInterpolateV,Ne.textInterpolate,Ne.textInterpolate1,Ne.textInterpolate2,Ne.textInterpolate3,Ne.textInterpolate4,Ne.textInterpolate5,Ne.textInterpolate6,Ne.textInterpolate7,Ne.textInterpolate8,Ne.textInterpolateV]);function gh(n,r,e){return Xn(r,null,n).callFn(e,n)}function SC(n,r){var e=null;return function(){return e||(n.push(new bf("_t",void 0,vl)),e=qr(r)),e}}function vh(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function Wl(n){return Array.isArray(n)?pi(n.map(Wl)):on(n,Ma)}function RM(n,r){return Object.getOwnPropertyNames(n).length>0?function p_(n,r){return As(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Yn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:KI.test(s),value:r&&l?pi([Wl(a),Wl(o)]):Wl(a)}}))}(n,r):null}function Jv(n){for(;_C(n[n.length-1]);)n.pop();return n}function QI(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return on(a.trim())});e.push.apply(e,(0,cn.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Xn(Ne.resolveForwardRef).callFn([n.predicate.expression])}}var Ba=function(){function n(){(0,F.Z)(this,n),this.values=[]}return(0,j.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return As(this.values)}}]),n}();function yh(n){var r=n.expressions,e=n.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function EC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,An.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(d)?d:[d];a<500&&o===u.reference&&RF.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=gh(u.span,u.reference,h),o=u.reference,a=0)}}catch(g){s.e(g)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function $I(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ac.Injectable};if(void 0!==n.useClass){var o=n.useClass.expression.isEquivalent(n.internalType),a=void 0;void 0!==n.deps&&(a=n.deps),e=void 0!==a?ph(Object.assign(Object.assign({},i),{delegate:n.useClass.expression,delegateDeps:a,delegateType:Uv.Class})):o?ph(i):{statements:[],expression:t3(n.type.value,n.useClass.expression,r)}}else e=void 0!==n.useFactory?void 0!==n.deps?ph(Object.assign(Object.assign({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:Uv.Function})):{statements:[],expression:oa([],[new Sa(n.useFactory.callFn([]))])}:void 0!==n.useValue?ph(Object.assign(Object.assign({},i),{expression:n.useValue.expression})):void 0!==n.useExisting?ph(Object.assign(Object.assign({},i),{expression:Xn(Ne.inject).callFn([n.useExisting.expression])})):{statements:[],expression:t3(n.type.value,n.internalType,r)};var s=n.internalType,l=new Ba;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",kf(n.providedIn)),{expression:Xn(Ne.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:e3(n),statements:e.statements}}function e3(n){return new gl(Xn(Ne.InjectableDeclaration,[_M(n.type.type,n.typeArgumentCount)]))}function t3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):n3(e?Xn(Ne.resolveForwardRef).callFn([r]):r)}function n3(n){return oa([new ma("t",vl)],[new Sa(n.prop("\u0275fac").callFn([qr("t")]))])}var r3=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var ZM=function(){function n(r,e){(0,F.Z)(this,n),this.start=r,this.end=e}return(0,j.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function LM(n,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(n,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];r3.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new n(e[0],e[1])):Vl}}]),n}(),Vl=new ZM("{{","}}"),Rf=123,Rc=125;function GM(n){return n>=9&&n<=32||160==n}function Lf(n){return 48<=n&&n<=57}function b_(n){return n>=97&&n<=122||n>=65&&n<=90}function C_(n){return 10===n||13===n}function zM(n){return 48<=n&&n<=55}function RC(n){return 39===n||34===n||96===n}var Dd,w_=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,j.Z)(n,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(e){for(var i=this.file.content,o=i.length,a=this.offset,s=this.line,l=this.col;a>0&&e<0;){if(a--,e++,10==i.charCodeAt(a)){s--;var d=i.substring(0,a-1).lastIndexOf(String.fromCharCode(10));l=d>0?a-d:a}else l--}for(;a0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new n(this.file,a,s,l)}},{key:"getContext",value:function(e,i){var o=this.file.content,a=this.offset;if(null!=a){a>o.length-1&&(a=o.length-1);for(var s=a,l=0,u=0;l0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,F.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,j.Z)(n,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),n}();!function(n){n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR"}(Dd||(Dd={}));var kh=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,F.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,j.Z)(n,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(Dd[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),n}();var UF=0;function Th(n){return n.replace(/\W/g,"_")}var LC,m3='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',HF=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.call(this,!1)}return(0,j.Z)(e,[{key:"visitWrappedNodeExpr",value:function(o,a){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}},{key:"visitDeclareVarStmt",value:function(o,a){return a.print(o,"var ".concat(o.name)),o.value&&(a.print(o," = "),o.value.visitExpression(this,a)),a.println(o,";"),null}},{key:"visitTaggedTemplateExpr",value:function(o,a){var s=this,l=o.template.elements;return o.tag.visitExpression(this,a),a.print(o,"(".concat(m3,"(")),a.print(o,"[".concat(l.map(function(u){return Md(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Md(u.rawText,!1)}).join(", "),"])")),o.template.expressions.forEach(function(u){a.print(o,", "),u.visitExpression(s,a)}),a.print(o,")"),null}},{key:"visitFunctionExpr",value:function(o,a){return a.print(o,"function".concat(o.name?" "+o.name:"","(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.print(o,"}"),null}},{key:"visitDeclareFunctionStmt",value:function(o,a){return a.print(o,"function ".concat(o.name,"(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.println(o,"}"),null}},{key:"visitLocalizedString",value:function(o,a){var s=this;a.print(o,"$localize(".concat(m3,"("));for(var l=[o.serializeI18nHead()],u=1;u0&&!function zF(n){return n.isEquivalent(on("use strict").toStmt())}(i[0])&&(i=[on("use strict").toStmt()].concat((0,cn.Z)(i))),s.visitAllStatements(i,l),s.createReturnStmt(l),this.evaluateCode(e,l,s.getArgs(),a)}},{key:"evaluateCode",value:function(e,i,o,a){var s='"use strict";'.concat(i.toSource(),"\n//# sourceURL=").concat(e),l=[],u=[];for(var d in o)u.push(o[d]),l.push(d);if(a){var h=ty.apply(void 0,(0,cn.Z)(l.concat("return null;"))).toString(),g=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,g).toJsComment())}var C=ty.apply(void 0,(0,cn.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,cn.Z)(i))}}]),n}(),YM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,j.Z)(e,[{key:"createReturnStmt",value:function(o){new Sa(new sh(this._evalExportedVars.map(function(s){return new dM(s,qr(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a=0?(e="anonymous_".concat(UF++),r.__anonymousType=e):e=Th(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(HF);function Ad(n){var r=new Ba;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",pi(n.imports)),{expression:Xn(Ne.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:KM(n),statements:[]}}function KM(n){return new gl(Xn(Ne.InjectorDeclaration,[new gl(n.type.type)]))}var Mh,Tu,v3=function(){function n(r){(0,F.Z)(this,n),this.context=r}return(0,j.Z)(n,[{key:"resolveExternalReference",value:function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to ".concat(e.moduleName,", only references to @angular/core are supported."));if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '".concat(e.name,"'."));return this.context[e.name]}}]),n}();function y3(n){var r=n.adjacentType,e=n.internalType,i=n.bootstrap,o=n.declarations,a=n.imports,s=n.exports,l=n.schemas,u=n.containsForwardDecls,d=n.selectorScopeMode,h=n.id,g=[],C=new Ba;if(C.set("type",e),i.length>0&&C.set("bootstrap",oc(i,u)),d===Mh.Inline)o.length>0&&C.set("declarations",oc(o,u)),a.length>0&&C.set("imports",oc(a,u)),s.length>0&&C.set("exports",oc(s,u));else if(d===Mh.SideEffect){var Z=function VF(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Ba;if(e.length>0&&s.set("declarations",oc(e,a)),i.length>0&&s.set("imports",oc(i,a)),o.length>0&&s.set("exports",oc(o,a)),0===Object.keys(s.values).length)return null;var u=function vF(n){return vC("ngJitMode",n)}(new ah(Xn(Ne.setNgModuleScope),[r,s.toLiteralMap()])),d=new wu([],[u.toStmt()]);return new ah(d,[]).toStmt()}(n);null!==Z&&g.push(Z)}return null!==l&&l.length>0&&C.set("schemas",pi(l.map(function(re){return re.value}))),null!==h&&(C.set("id",h),g.push(Xn(Ne.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Xn(Ne.defineNgModule).callFn([C.toLiteralMap()],void 0,!0),type:b3(n),statements:g}}function b3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new gl(Xn(Ne.NgModuleDeclaration,[new gl(r.type),null===s?qM(e):YF(s),a?qM(o):ze,qM(i)]))}function qM(n){var r=n.map(function(e){return mC(e.type)});return n.length>0?ps(pi(r)):ze}function YF(n){var r=n.map(function(e){return mC(e)});return n.length>0?ps(pi(r)):ze}function KF(n){var r=[];return r.push({key:"name",value:on(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:on(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:on(!0),quoted:!1}),{expression:Xn(Ne.definePipe).callFn([As(r)],void 0,!0),type:qF(n),statements:[]}}function qF(n){return new gl(Xn(Ne.PipeDeclaration,[_M(n.type.type,n.typeArgumentCount),new gl(new me(n.pipeName)),new gl(new me(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(Mh||(Mh={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(Tu||(Tu={}));var Eh,ny=(0,j.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),k_=function(){function n(r,e){(0,F.Z)(this,n),this.start=r,this.end=e}return(0,j.Z)(n,[{key:"toAbsolute",value:function(e){return new Rs(e+this.start,e+this.end)}}]),n}(),Fa=function(){function n(r,e){(0,F.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),ry=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,j.Z)(e)}(Fa),Mu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Fa),T_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitImplicitReceiver(this,a)}}]),e}(Fa),ZC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"visit",value:function(o){var s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===(s=o.visitThisReceiver)||void 0===s?void 0:s.call(o,this,a)}}]),e}(T_),iy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitChain(this,a)}}]),e}(Fa),C3=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitConditional(this,a)}}]),e}(Fa),Zf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyRead(this,a)}}]),e}(ry),oy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,F.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyWrite(this,a)}}]),e}(ry),NC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafePropertyRead(this,a)}}]),e}(ry),ay=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedRead(this,a)}}]),e}(Fa),Lc=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeKeyedRead(this,a)}}]),e}(Fa),JM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedWrite(this,a)}}]),e}(Fa),M_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,F.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPipe(this,a)}}]),e}(ry),Ps=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralPrimitive(this,a)}}]),e}(Fa),BC=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralArray(this,a)}}]),e}(Fa),sy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralMap(this,a)}}]),e}(Fa),$a=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitInterpolation(this,a)}}]),e}(Fa),Is=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitBinary(this,a)}}]),e}(Fa),Sh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,F.Z)(this,e),(h=r.call(this,i,o,l,u,d)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==o.visitUnary?o.visitUnary(this,a):o.visitBinary(this,a)}}],[{key:"createMinus",value:function(o,a,s){return new e(o,a,"-",s,"-",new Ps(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Ps(o,a,0))}}]),e}(Is),ly=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPrefixNot(this,a)}}]),e}(Fa),QM=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitNonNullAssert(this,a)}}]),e}(Fa),S_=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitCall(this,a)}}]),e}(Fa),uy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeCall(this,a)}}]),e}(Fa),Rs=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.start=r,this.end=e}),Nf=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,new k_(0,null===o?0:o.length),new Rs(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,j.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitASTWithSource?o.visitASTWithSource(this,a):this.ast.visit(o,a)}},{key:"toString",value:function(){return"".concat(this.source," in ").concat(this.location)}}]),e}(Fa),XM=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),JF=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),QF=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visit",value:function(e,i){e.visit(this,i)}},{key:"visitUnary",value:function(e,i){this.visit(e.expr,i)}},{key:"visitBinary",value:function(e,i){this.visit(e.left,i),this.visit(e.right,i)}},{key:"visitChain",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){this.visit(e.condition,i),this.visit(e.trueExp,i),this.visit(e.falseExp,i)}},{key:"visitPipe",value:function(e,i){this.visit(e.exp,i),this.visitAll(e.args,i)}},{key:"visitImplicitReceiver",value:function(e,i){}},{key:"visitThisReceiver",value:function(e,i){}},{key:"visitInterpolation",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitKeyedWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i),this.visit(e.value,i)}},{key:"visitLiteralArray",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitLiteralMap",value:function(e,i){this.visitAll(e.values,i)}},{key:"visitLiteralPrimitive",value:function(e,i){}},{key:"visitPrefixNot",value:function(e,i){this.visit(e.expression,i)}},{key:"visitNonNullAssert",value:function(e,i){this.visit(e.expression,i)}},{key:"visitPropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitPropertyWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.value,i)}},{key:"visitSafePropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitSafeKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitSafeCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitAll",value:function(e,i){var a,o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.visit(s,i)}}catch(l){o.e(l)}finally{o.f()}}}]),n}(),$M=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new $a(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new Ps(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new Zf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new oy(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new NC(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new BC(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new sy(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Sh.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Sh.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}},{key:"visitBinary",value:function(e,i){return new Is(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new ly(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new QM(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new C3(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new M_(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new ay(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new JM(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new S_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new uy(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitAll",value:function(e){for(var i=[],o=0;o=0;i--)e.unshift(UC(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof uh&&(d[h]=new Sa(g.expr))}return d}Bf.event=qr("$event");var Hi,x_=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.stmts=r,this.currValExpr=e});function k3(n,r,e,i){n||(n=new E3);var o=new xh(n,r,i,!1),a=e.visit(o,Hi.Expression),s=tS(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new x_(s,a)}function tS(n,r){for(var e=[],i=0;i":o=Mt.Bigger;break;case"<=":o=Mt.LowerEquals;break;case">=":o=Mt.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return el(i,new Ao(o,this._visit(e.left,Hi.Expression),this._visit(e.right,Hi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function rS(n,r){if(n!==Hi.Statement)throw new Error("Expected a statement, but saw ".concat(r))}(i,e),this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){return el(i,this._visit(e.condition,Hi.Expression).conditional(this._visit(e.trueExp,Hi.Expression),this._visit(e.falseExp,Hi.Expression),this.convertSourceSpan(e.span)))}},{key:"visitPipe",value:function(e,i){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: ".concat(e.name))}},{key:"visitImplicitReceiver",value:function(e,i){return jC(i,e),this.usesImplicitReceiver=!0,this._implicitReceiver}},{key:"visitThisReceiver",value:function(e,i){return this.visitImplicitReceiver(e,i)}},{key:"visitInterpolation",value:function(e,i){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");jC(i,e);for(var o=[],a=0;a=9&&(o=[pi(o)]),new e4(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):el(i,this._visit(e.receiver,Hi.Expression).key(this._visit(e.key,Hi.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,Hi.Expression),a=this._visit(e.key,Hi.Expression),s=this._visit(e.value,Hi.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),el(i,o.key(a).set(s))}},{key:"visitLiteralArray",value:function(e,i){throw new Error("Illegal State: literal arrays should have been converted into functions")}},{key:"visitLiteralMap",value:function(e,i){throw new Error("Illegal State: literal maps should have been converted into functions")}},{key:"visitLiteralPrimitive",value:function(e,i){var o=null===e.value||void 0===e.value||!0===e.value||!0===e.value?Ma:void 0;return el(i,on(e.value,o,this.convertSourceSpan(e.span)))}},{key:"_getLocal",value:function(e,i){var o;return(null===(o=this._localResolver.globals)||void 0===o?void 0:o.has(e))&&i instanceof ZC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return el(i,ch(this._visit(e.expression,Hi.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return el(i,this._visit(e.expression,Hi.Expression))}},{key:"visitPropertyRead",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=null,s=this.usesImplicitReceiver,l=this._visit(e.receiver,Hi.Expression);return l===this._implicitReceiver&&((a=this._getLocal(e.name,e.receiver))&&(this.usesImplicitReceiver=s,this.addImplicitReceiverAccess(e.name))),null==a&&(a=l.prop(e.name,this.convertSourceSpan(e.span))),el(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,Hi.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof pC)){var u=e.name,d=e.value instanceof Zf?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(d,'" to template variable "').concat(u,'". Template variables are read-only.'))}s=l,this.usesImplicitReceiver=a,this.addImplicitReceiverAccess(e.name)}}return null===s&&(s=o.prop(e.name,this.convertSourceSpan(e.span))),el(i,s.set(this._visit(e.value,Hi.Expression)))}},{key:"visitSafePropertyRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitSafeKeyedRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitAll",value:function(e,i){var o=this;return e.map(function(a){return o._visit(a,i)})}},{key:"visitCall",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=this.visitAll(e.args,Hi.Expression);if(e instanceof Dh)return el(i,e.converter(a));var s=e.receiver;if(s instanceof Zf&&s.receiver instanceof T_&&!(s.receiver instanceof ZC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return el(i,a[0])}return el(i,this._visit(s,Hi.Expression).callFn(a,this.convertSourceSpan(e.span)))}},{key:"visitSafeCall",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"_visit",value:function(e,i){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,i)}},{key:"convertSafeAccess",value:function(e,i,o){var a=this._visit(i.receiver,Hi.Expression),s=void 0;this.needsTemporaryInSafeAccess(i.receiver)&&(a=(s=this.allocateTemporary()).set(a),this._resultMap.set(i.receiver,s));var l=a.isBlank();i instanceof uy?this._nodeMap.set(i,new S_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Lc?this._nodeMap.set(i,new ay(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new Zf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,Hi.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),el(o,l.conditional(i_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,Hi.Expression),a=this._visit(e.right,Hi.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),el(i,s.set(o).notIdentical(i_).and(s.notIdentical(on(void 0))).conditional(s,a))}},{key:"leftMostSafeNode",value:function(e){var i=this,o=function(s,l){return(i._nodeMap.get(l)||l).visit(s)};return e.visit({visitUnary:function(s){return null},visitBinary:function(s){return null},visitChain:function(s){return null},visitConditional:function(s){return null},visitCall:function(s){return o(this,s.receiver)},visitSafeCall:function(s){return o(this,s.receiver)||s},visitImplicitReceiver:function(s){return null},visitThisReceiver:function(s){return null},visitInterpolation:function(s){return null},visitKeyedRead:function(s){return o(this,s.receiver)},visitKeyedWrite:function(s){return null},visitLiteralArray:function(s){return null},visitLiteralMap:function(s){return null},visitLiteralPrimitive:function(s){return null},visitPipe:function(s){return null},visitPrefixNot:function(s){return null},visitNonNullAssert:function(s){return null},visitPropertyRead:function(s){return o(this,s.receiver)},visitPropertyWrite:function(s){return null},visitSafePropertyRead:function(s){return o(this,s.receiver)||s},visitSafeKeyedRead:function(s){return o(this,s.receiver)||s}})}},{key:"needsTemporaryInSafeAccess",value:function(e){var i=this,o=function(l,u){return u&&(i._nodeMap.get(u)||u).visit(l)};return e.visit({visitUnary:function(l){return o(this,l.expr)},visitBinary:function(l){return o(this,l.left)||o(this,l.right)},visitChain:function(l){return!1},visitConditional:function(l){return o(this,l.condition)||o(this,l.trueExp)||o(this,l.falseExp)},visitCall:function(l){return!0},visitSafeCall:function(l){return!0},visitImplicitReceiver:function(l){return!1},visitThisReceiver:function(l){return!1},visitInterpolation:function(l){return function(l,u){return u.some(function(d){return o(l,d)})}(this,l.expressions)},visitKeyedRead:function(l){return!1},visitKeyedWrite:function(l){return!1},visitLiteralArray:function(l){return!0},visitLiteralMap:function(l){return!0},visitLiteralPrimitive:function(l){return!1},visitPipe:function(l){return!0},visitPrefixNot:function(l){return o(this,l.expression)},visitNonNullAssert:function(l){return o(this,l.expression)},visitPropertyRead:function(l){return!1},visitPropertyWrite:function(l){return!1},visitSafePropertyRead:function(l){return!1},visitSafeKeyedRead:function(l){return!1}})}},{key:"allocateTemporary",value:function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new $s(nS(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=nS(this.bindingId,this._currentTemporary))throw new Error("Temporary ".concat(e.name," released out of order"))}},{key:"convertSourceSpan",value:function(e){if(this.baseSourceSpan){var i=this.baseSourceSpan.start.moveBy(e.start),o=this.baseSourceSpan.start.moveBy(e.end),a=this.baseSourceSpan.fullStart.moveBy(e.start);return new Xa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function S3(n,r){Array.isArray(n)?n.forEach(function(e){return S3(e,r)}):r.push(n)}function oS(){throw new Error("Unsupported operation")}var cy,e4=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=oS,o.isEquivalent=oS,o.visitExpression=oS,o}return(0,j.Z)(e)}(li),E3=function(){function n(r){(0,F.Z)(this,n),this.globals=r}return(0,j.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Bf.event.name?Bf.event:null}}]),n}(),Dh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o,new Mu(i,o),a,null)).converter=s,l}return(0,j.Z)(e)}(S_);function x3(){return cy||(cy={},Od(Br.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Od(Br.STYLE,["*|style"]),Od(Br.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Od(Br.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),cy}function Od(n,r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;cy[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var Pd=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function D3(n){return Pd.has(n.toLowerCase())}var t4=function(){function n(){(0,F.Z)(this,n),this.strictStyling=!0}return(0,j.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=d4(e);e=u4(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,cn.Z)(a)).join("\n")}},{key:"_insertDirectives",value:function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}},{key:"_insertPolyfillDirectivesInCssText",value:function(e){return e.replace(cV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(A3,function(){for(var i=arguments.length,o=new Array(i),a=0;a0;)for(var a=o.length,s=n.pop(),l=0;l-1)st=a._applySimpleSelectorScope(Ke,i,o);else{var Ae=Ke.replace(D_,"");if(Ae.length>0){var it=Ae.match(/([^:]*)(:*)(.*)/);it&&(st=it[1]+l+it[2]+it[3])}}return st},d=new uV(e),h="",g=0,Z=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Ah)>-1);null!==(C=Z.exec(e));){var re=C[1],ae=e.slice(g,C.index).trim(),Se=(q=q||ae.indexOf(Ah)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=Z.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Ah)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(l4,O3).replace(s4,dy)}}]),n}(),uV=function(){function n(r){var e=this;(0,F.Z)(this,n),this.placeholders=[],this.index=0,r=this._escapeRegexMatches(r,/(\[[^\]]*\])/g),r=this._escapeRegexMatches(r,/(\\.)/g),this._content=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(i,o,a){var s="__ph-".concat(e.index,"__");return e.placeholders.push(a),e.index++,o+s})}return(0,j.Z)(n,[{key:"restore",value:function(e){var i=this;return e.replace(/__ph-(\d+)__/g,function(o,a){return i.placeholders[+a]})}},{key:"content",value:function(){return this._content}},{key:"_escapeRegexMatches",value:function(e,i){var o=this;return e.replace(i,function(a,s){var l="__ph-".concat(o.index,"__");return o.placeholders.push(s),o.index++,l})}}]),n}(),cV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,A3=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,n4=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,dy="-shadowcsshost",O3="-shadowcsscontext",HC="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",r4=new RegExp(dy+HC,"gim"),P3=new RegExp(O3+HC,"gim"),i4=new RegExp(O3+HC,"im"),Ah=dy+"-no-combinator",Su=/-shadowcsshost-no-combinator([^\s]*)/,o4=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],aS=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,a4="([>\\s~+[.,{:][\\s\\S]*)?$",D_=/-shadowcsshost/gim,s4=/:host/gim,l4=/:host-context/gim,I3=/\/\*[\s\S]*?\*\//g;function u4(n){return n.replace(I3,"")}var c4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function d4(n){return n.match(c4)||[]}var Hr="%BLOCK%",L3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Z3=/%QUOTED%/g,f4=new Map([["{","}"]]),p4=new Map([['"','"'],["'","'"]]),GC=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.selector=r,this.content=e});function N3(n,r){var e=F3(n,p4,"%QUOTED%"),i=F3(e.escapedString,f4,Hr),o=0,a=0;return i.escapedString.replace(L3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+Hr)&&(l=i.blocks[o++],u=u.substring(Hr.length+1),d="{");var h=r(new GC(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(d).concat(h.content).concat(u)}).replace(Z3,function(){return e.blocks[a++]})}var B3=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.escapedString=r,this.blocks=e});function F3(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h0,0===o?o=39:39===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=bl(n.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=n.substring(a,e-1).trim();r.push(l,u?sS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?sS(g):g)}return r}(e),this._hasInitialValues=!0}},{key:"registerClassAttr",value:function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}},{key:"populateInitialStylingAttrs",value:function(e){if(this._initialClassValues.length){e.push(on(1));for(var i=0;i0?n.substring(0,e):"",r=!0);var i=null,o=n,a=n.lastIndexOf(".");return a>0&&(i=n.slice(a+1),o=n.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function y4(n){switch(yh(n)){case 1:return Ne.styleProp;case 3:return Ne.stylePropInterpolate1;case 5:return Ne.stylePropInterpolate2;case 7:return Ne.stylePropInterpolate3;case 9:return Ne.stylePropInterpolate4;case 11:return Ne.stylePropInterpolate5;case 13:return Ne.stylePropInterpolate6;case 15:return Ne.stylePropInterpolate7;case 17:return Ne.stylePropInterpolate8;default:return Ne.stylePropInterpolateV}}function z3(n){return n instanceof Nf&&(n=n.ast),n instanceof Mu}!function(n){n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error"}(Xr||(Xr={}));var Ff=["var","let","as","null","undefined","true","false","if","else","this"],W3=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"tokenize",value:function(e){for(var i=new Y3(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Zc=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,j.Z)(n,[{key:"isCharacter",value:function(e){return this.type==Xr.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==Xr.Number}},{key:"isString",value:function(){return this.type==Xr.String}},{key:"isOperator",value:function(e){return this.type==Xr.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==Xr.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==Xr.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==Xr.Keyword}},{key:"isKeywordLet",value:function(){return this.type==Xr.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==Xr.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==Xr.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==Xr.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==Xr.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==Xr.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==Xr.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==Xr.Error}},{key:"toNumber",value:function(){return this.type==Xr.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case Xr.Character:case Xr.Identifier:case Xr.Keyword:case Xr.Operator:case Xr.PrivateIdentifier:case Xr.String:case Xr.Error:return this.strValue;case Xr.Number:return this.numValue.toString();default:return null}}}]),n}();function lS(n,r,e){return new Zc(n,r,Xr.Character,e,String.fromCharCode(e))}function uS(n,r,e){return new Zc(n,r,Xr.Operator,0,e)}var WC=new Zc(-1,-1,Xr.Character,0,""),Y3=function(){function n(r){(0,F.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,j.Z)(n,[{key:"advance",value:function(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}},{key:"scanToken",value:function(){for(var e=this.input,i=this.length,o=this.peek,a=this.index;o<=32;){if(++a>=i){o=0;break}o=e.charCodeAt(a)}if(this.peek=o,this.index=a,a>=i)return null;if(VC(o))return this.scanIdentifier();if(Lf(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),Lf(this.peek)?this.scanNumber(s):lS(s,this.index,46);case 40:case 41:case Rf:case Rc:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(s,o);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(o));case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;GM(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(o),"]"),0)}},{key:"scanCharacter",value:function(e,i){return this.advance(),lS(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),uS(e,this.index,i)}},{key:"scanComplexOperator",value:function(e,i,o,a,s,l){this.advance();var u=i;return this.peek==o&&(this.advance(),u+=a),null!=s&&this.peek==s&&(this.advance(),u+=l),uS(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();fy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Ff.indexOf(i)>-1?function C4(n,r,e){return new Zc(n,r,Xr.Keyword,0,e)}(e,this.index,i):function b4(n,r,e){return new Zc(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!VC(this.peek))return this.error("Invalid character [#]",-1);for(;fy(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function V3(n,r,e){return new Zc(n,r,Xr.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!Lf(this.peek))if(95===this.peek){if(!Lf(this.input.charCodeAt(this.index-1))||!Lf(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!py(this.peek))break;if(this.advance(),K3(this.peek)&&this.advance(),!Lf(this.peek))return this.error("Invalid exponent",-1);i=!1}this.advance()}var a=this.input.substring(e,this.index);o&&(a=a.replace(/_/g,""));var s=i?function S4(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function k4(n,r,e){return new Zc(n,r,Xr.Number,e,"")}(e,this.index,s)}},{key:"scanString",value:function(){var e=this.index,i=this.peek;this.advance();for(var o="",a=this.index,s=this.input;this.peek!=i;)if(92==this.peek){o+=s.substring(a,this.index),this.advance();var l=void 0;if(this.peek=this.peek,117==this.peek){var u=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(u))return this.error("Invalid unicode escape [\\u".concat(u,"]"),0);l=parseInt(u,16);for(var d=0;d<5;d++)this.advance()}else l=q3(this.peek),this.advance();o+=String.fromCharCode(l),a=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var h=s.substring(a,this.index);return this.advance(),function w4(n,r,e){return new Zc(n,r,Xr.String,0,e)}(e,this.index,o+h)}},{key:"scanQuestion",value:function(e){this.advance();var i="?";return(63===this.peek||46===this.peek)&&(i+=46===this.peek?".":"?",this.advance()),uS(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function T4(n,r,e){return new Zc(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function VC(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function fy(n){return b_(n)||Lf(n)||95==n||36==n}function py(n){return 101==n||69==n}function K3(n){return 45==n||43==n}function q3(n){switch(n){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return n}}var Id,O_=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),J3=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),cS=function(){function n(r){(0,F.Z)(this,n),this._lexer=r,this.errors=[]}return(0,j.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new tl(e,o,a,u,d,this.errors,0).parseChain();return new Nf(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,s=this._parseBindingAst(e,i,o,a);return new Nf(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new Q3;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vl,s=this._parseBindingAst(e,i,o,a),l=this.checkSimpleExpression(s);return l.length>0&&this._reportError("Host binding expression cannot contain ".concat(l.join(" ")),e,i),new Nf(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new ny(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){this._checkNoInterpolation(e,i,a);var s=this._stripComments(e),l=this._lexer.tokenize(s);return new tl(e,i,o,l,0,this.errors,0).parseChain()}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new tl(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Rs(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vl,l=this.splitInterpolation(e,i,a,s),u=l.strings,d=l.expressions,h=l.offsets;if(0===d.length)return null;for(var g=[],C=0;C3&&void 0!==arguments[3]?arguments[3]:Vl,l=[],u=[],d=[],h=o?E4(o):null,g=0,C=!1,Z=!1,z=a.start,q=a.end;g-1)break}}catch(C){d.e(C)}finally{d.f()}l>-1&&u>-1&&this._reportError("Got interpolation (".concat(a).concat(s,") where expression was expected"),e,"at column ".concat(l," in"),i)}},{key:"_getInterpolationEndIndex",value:function(e,i,o){var s,a=(0,An.Z)(this._forEachUnquotedChar(e,o));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(e.startsWith(i,l))return l;if(e.startsWith("//",l))return e.indexOf(i,l)}}catch(u){a.e(u)}finally{a.f()}return-1}},{key:"_forEachUnquotedChar",value:Ln().mark(function r(e,i){var o,a,s,l;return Ln().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o=null,a=0,s=i;case 3:if(!(s=this.tokens.length}},{key:"inputIndex",get:function(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}},{key:"currentEndIndex",get:function(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}},{key:"currentAbsoluteOffset",get:function(){return this.absoluteOffset+this.inputIndex}},{key:"span",value:function(e,i){var o=this.currentEndIndex;if(void 0!==i&&i>this.currentEndIndex&&(o=i),e>o){var a=o;o=e,e=a}return new k_(e,o)}},{key:"sourceSpan",value:function(e,i){var o="".concat(e,"@").concat(this.inputIndex,":").concat(i);return this.sourceSpanCache.has(o)||this.sourceSpanCache.set(o,this.span(e,i).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(o)}},{key:"advance",value:function(){this.index++}},{key:"withContext",value:function(e,i){this.context|=e;var o=i();return this.context^=e,o}},{key:"consumeOptionalCharacter",value:function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}},{key:"peekKeywordLet",value:function(){return this.next.isKeywordLet()}},{key:"peekKeywordAs",value:function(){return this.next.isKeywordAs()}},{key:"expectCharacter",value:function(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}},{key:"consumeOptionalOperator",value:function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}},{key:"expectOperator",value:function(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}},{key:"prettyPrintToken",value:function(e){return e===WC?"end of input":"token ".concat(e)}},{key:"expectIdentifierOrKeyword",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null)}},{key:"expectIdentifierOrKeywordOrString",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),"")}},{key:"parseChain",value:function(){for(var e=[],i=this.inputIndex;this.index":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseAdditive",value:function(){for(var e=this.inputIndex,i=this.parseMultiplicative();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseMultiplicative",value:function(){for(var e=this.inputIndex,i=this.parsePrefix();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new Is(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==Xr.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Sh.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Sh.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new ly(this.span(e),this.sourceSpan(e),o)}}return this.parseCallChain()}},{key:"parseCallChain",value:function(){for(var e=this.inputIndex,i=this.parsePrimary();;)if(this.consumeOptionalCharacter(46))i=this.parseAccessMember(i,e,!1);else if(this.consumeOptionalOperator("?."))i=this.consumeOptionalCharacter(40)?this.parseCall(i,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(i,e,!0):this.parseAccessMember(i,e,!0);else if(this.consumeOptionalCharacter(91))i=this.parseKeyedReadOrWrite(i,e,!1);else if(this.consumeOptionalCharacter(40))i=this.parseCall(i,e,!1);else{if(!this.consumeOptionalOperator("!"))return i;i=new QM(this.span(e),this.sourceSpan(e),i)}}},{key:"parsePrimary",value:function(){var e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var i=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),i}if(this.next.isKeywordNull())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Ps(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ZC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new BC(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Rf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new T_(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new Ps(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Ps(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Mu(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Mu(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Mu(this.span(e),this.sourceSpan(e)))}},{key:"parseExpressionList",value:function(e){var i=[];do{if(this.next.isCharacter(e))break;i.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return i}},{key:"parseLiteralMap",value:function(){var e=[],i=[],o=this.inputIndex;if(this.expectCharacter(Rf),!this.consumeOptionalCharacter(Rc)){this.rbracesExpected++;do{var a=this.inputIndex,s=this.next.isString(),l=this.expectIdentifierOrKeywordOrString();if(e.push({key:l,quoted:s}),s)this.expectCharacter(58),i.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))i.push(this.parsePipe());else{var u=this.span(a),d=this.sourceSpan(a);i.push(new Zf(u,d,d,new T_(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Rc)}return new sy(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var d,a=this,s=this.inputIndex,l=this.withContext(Id.Writable,function(){var g,C=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===C.length&&a.error("Expected identifier for property access",e.span.end),C}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Mu(this.span(i),this.sourceSpan(i))):d=new NC(this.span(i),this.sourceSpan(i),u,e,l);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Mu(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new oy(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new Zf(this.span(i),this.sourceSpan(i),u,e,l);return d}},{key:"parseCall",value:function(e,i,o){var a=this.inputIndex;this.rparensExpected++;var s=this.parseCallArguments(),l=this.span(a,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;var u=this.span(i),d=this.sourceSpan(i);return o?new uy(u,d,e,s,l):new S_(u,d,e,s,l)}},{key:"consumeOptionalAssignment",value:function(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}},{key:"parseCallArguments",value:function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}},{key:"expectTemplateBindingKey",value:function(){var e="",i=!1,o=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(i=this.consumeOptionalOperator("-"))&&(e+="-")}while(i);return{source:e,span:new Rs(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,cn.Z)(this.parseDirectiveKeywordBindings(e)));this.index1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new ny(e,this.input,this.locationText(i),this.location)),this.skip()}},{key:"locationText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null==e&&(e=this.index),e5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,F.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=d,u}return(0,j.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Oh),hy=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,j.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function Nc(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=n.visit?function(a){return n.visit(a,e)||a.visit(n,e)}:function(a){return a.visit(n,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var Ph={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\ud835\udd44",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\ud835\udca9",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",rationals:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\ud835\udcb5",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\ud835\udd1e",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\ud835\udd1f",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\ud835\udd54",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\ud835\udcbb",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\ud835\udd58",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\ud835\udd26",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iquest:"\xbf",iscr:"\ud835\udcbe",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\ud835\udd29",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\ud835\udd5e",mscr:"\ud835\udcc2",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\ud835\udd2b",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\ud835\udd5f",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\ud835\udcc3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\ud835\udd61",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\ud835\udd2f",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\ud835\udcc7",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\ud835\udd30",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\ud835\udcc8",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\ud835\udd31",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\ud835\udd32",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\ud835\udd66",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\ud835\udd33",vopf:"\ud835\udd67",vscr:"\ud835\udccb",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wscr:"\ud835\udccc",xfr:"\ud835\udd35",xi:"\u03be",xnis:"\u22fb",xopf:"\ud835\udd69",xscr:"\ud835\udccd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};Ph.ngsp="\ue500";var my=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,j.Z)(e)}(kh),pS=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var gy,x4=/\r\n?/g;function _y(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function e6(n){return'Unknown entity "'.concat(n,'" - use the "&#;" or "&#x;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(gy||(gy={}));var t6=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.error=r}),A4=function(){function n(r,e,i){(0,F.Z)(this,n),this._getTagDefinition=e,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=i.tokenizeExpansionForms||!1,this._interpolationConfig=i.interpolationConfig||Vl,this._leadingTriviaCodePoints=i.leadingTriviaChars&&i.leadingTriviaChars.map(function(a){return a.codePointAt(0)||0});var o=i.range||{endPos:r.content.length,startPos:0,startLine:0,startCol:0};this._cursor=i.escapedString?new mV(r,o):new I4(r,o),this._preserveLineEndings=i.preserveLineEndings||!1,this._escapedString=i.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=i.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(a){this.handleError(a)}}return(0,j.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(x4,"\n")}},{key:"tokenize",value:function(){for(var e=this;0!==this._cursor.peek();){var i=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(i):this._attemptCharCode(45)?this._consumeComment(i):this._consumeDocType(i):this._attemptCharCode(47)?this._consumeTagClose(i):this._consumeTagOpen(i):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,function(){return e._isTextEnd()},function(){return e._isTagStart()})}catch(o){this.handleError(o)}}this._beginToken(24),this._endToken([])}},{key:"_tokenizeExpansionForm",value:function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function fV(n){return n!==Rc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Rc){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}},{key:"_beginToken",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=e}},{key:"_endToken",value:function(e,i){if(null===this._currentTokenStart)throw new my("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(null===this._currentTokenType)throw new my("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var o={type:this._currentTokenType,parts:e,sourceSpan:(null!=i?i:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(o),this._currentTokenStart=null,this._currentTokenType=null,o}},{key:"_createError",value:function(e,i){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var o=new my(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new t6(o)}},{key:"handleError",value:function(e){if(e instanceof r6&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof t6))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(e){return!!function pV(n,r){return P4(n)===P4(r)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}},{key:"_requireCharCode",value:function(e){var i=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(_y(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()")}),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(e){this._beginToken(18,e);var i=this._cursor.clone();this._attemptUntilChar(62);var o=this._cursor.getChars(i);this._cursor.advance(),this._endToken([o])}},{key:"_consumePrefixAndName",value:function(){for(var e=this._cursor.clone(),i="";58!==this._cursor.peek()&&!n6(this._cursor.peek());)this._cursor.advance();var o;return 58===this._cursor.peek()?(i=this._cursor.getChars(e),this._cursor.advance(),o=this._cursor.clone()):o=e,this._requireCharCodeUntilFn(hS,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!b_(this._cursor.peek()))throw this._createError(_y(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(xu);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(xu),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(xu),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(xu);this._consumeTagOpenEnd()}catch(l){if(l instanceof t6)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===Ji.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===Ji.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(o,i,!0)}},{key:"_consumeRawTextWithTagClose",value:function(e,i,o){var a=this;this._consumeRawText(o,function(){return!!(a._attemptCharCode(60)&&a._attemptCharCode(47)&&(a._attemptCharCodeUntilFn(xu),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(xu),a._attemptCharCode(62))}),this._beginToken(3),this._requireCharCodeUntilFn(function(s){return 62===s},3),this._cursor.advance(),this._endToken([e,i])}},{key:"_consumeTagOpenStart",value:function(e){this._beginToken(0,e);var i=this._consumePrefixAndName();return this._endToken(i)}},{key:"_consumeAttributeName",value:function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(_y(e),this._cursor.getSpan());this._beginToken(14);var i=this._consumePrefixAndName();this._endToken(i)}},{key:"_consumeAttributeValue",value:function(){var e=this;if(39===this._cursor.peek()||34===this._cursor.peek()){var o=this._cursor.peek();this._consumeQuote(o);var a=function(){return e._cursor.peek()===o};this._consumeWithInterpolation(16,17,a,a),this._consumeQuote(o)}else{var s=function(){return hS(e._cursor.peek())};this._consumeWithInterpolation(16,17,s,s)}}},{key:"_consumeQuote",value:function(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}},{key:"_consumeTagOpenEnd",value:function(){var e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}},{key:"_consumeTagClose",value:function(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(xu);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(xu),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Rf),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);var e=this._readUntil(44),i=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([i]);else{var o=this._endToken([e]);i!==e&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(xu),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(xu)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Rf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(xu),this._beginToken(21),this._requireCharCode(Rf),this._endToken([]),this._attemptCharCodeUntilFn(xu),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Rc),this._endToken([]),this._attemptCharCodeUntilFn(xu),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Rc),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeWithInterpolation",value:function(e,i,o,a){this._beginToken(e);for(var s=[];!o();){var l=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],l),s.length=0,this._consumeInterpolation(i,l,a),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}},{key:"_consumeInterpolation",value:function(e,i,o){var a=[];this._beginToken(e,i),a.push(this._interpolationConfig.start);for(var s=this._cursor.clone(),l=null,u=!1;0!==this._cursor.peek()&&(null===o||!o());){var d=this._cursor.clone();if(this._isTagStart())return this._cursor=d,a.push(this._getProcessedChars(s,d)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,d)),a.push(this._interpolationConfig.end),void this._endToken(a);this._attemptStr("//")&&(u=!0)}var h=this._cursor.peek();this._cursor.advance(),92===h?this._cursor.advance():h===l?l=null:!u&&null===l&&RC(h)&&(l=h)}a.push(this._getProcessedChars(s,this._cursor)),this._endToken(a)}},{key:"_getProcessedChars",value:function(e,i){return this._processCarriageReturns(i.getChars(e))}},{key:"_isTextEnd",value:function(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Rc&&this._isInExpansionCase()))}},{key:"_isTagStart",value:function(){if(60===this._cursor.peek()){var e=this._cursor.clone();e.advance();var i=e.peek();if(97<=i&&i<=122||65<=i&&i<=90||47===i||33===i)return!0}return!1}},{key:"_readUntil",value:function(e){var i=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(i)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==Rf)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),n}();function xu(n){return!GM(n)||0===n}function hS(n){return GM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function n6(n){return(n<97||12257)}function O4(n){return 59===n||0===n||!function xd(n){return n>=97&&n<=102||n>=65&&n<=70||Lf(n)}(n)}function mS(n){return 59===n||0===n||!b_(n)}function P4(n){return n>=97&&n<=122?n-97+65:n}function hV(n){for(var r=[],e=void 0,i=0;i0&&-1!==i.indexOf(e.peek());)o===e&&(e=e.clone()),e.advance();var a=this.locationFromCursor(e),s=this.locationFromCursor(this),l=o!==e?this.locationFromCursor(o):a;return new Xa(a,s,l)}},{key:"getChars",value:function(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function(e){if(e.offset>=this.end)throw this.state=e,new r6('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):C_(i)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}},{key:"locationFromCursor",value:function(e){return new w_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),mV=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),i instanceof e?(a=r.call(this,i)).internalState=Object.assign({},i.internalState):(a=r.call(this,i,o)).internalState=a.state,(0,Ti.Z)(a)}return(0,j.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ut.Z)((0,Wt.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new e(this)}},{key:"getChars",value:function(o){for(var a=o.clone(),s="";a.internalState.offset3&&void 0!==arguments[3]?arguments[3]:{},o=new A4(new WM(n,r),e,i);return o.tokenize(),new pS(hV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new jf(a.tokens,this.getTagDefinition);return s.build(),new i6(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),jf=function(){function n(r,e){(0,F.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,j.Z)(n,[{key:"build",value:function(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):this._advance()}},{key:"_advance",value:function(){var e=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;var l=new Xa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Xa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new X3(e.parts[0],s.rootNodes,l,e.sourceSpan,u)}},{key:"_collectExpansionExpTokens",value:function(e){for(var i=[],o=[21];;){if((19===this._peek.type||21===this._peek.type)&&o.push(this._peek.type),22===this._peek.type){if(!KC(o,21))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!KC(o,19))return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Uf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;i.push(this._advance())}}},{key:"_consumeText",value:function(e){var i=[e],o=e.sourceSpan,a=e.parts[0];if(a.length>0&&"\n"===a[0]){var s=this._getParentElement();null!=s&&0===s.children.length&&this.getTagDefinition(s.name).ignoreFirstLf&&(a=a.substring(1),i[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[a]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),i.push(e),8===e.type?a+=e.parts.join("").replace(/&([^;]+);/g,o6):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new Eu(a,new Xa(o.start,l.end,o.fullStart,o.details),i))}}},{key:"_closeVoidElement",value:function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(e){for(var i=(0,Yn.Z)(e.parts,2),o=i[0],a=i[1],s=[];14===this._peek.type;)s.push(this._consumeAttr(this._advance()));var l=this._getElementFullName(o,a,this._getParentElement()),u=!1;if(2===this._peek.type){this._advance(),u=!0;var d=this.getTagDefinition(l);d.canSelfClose||null!==Mi(l)||d.isVoid||this.errors.push(Uf.create(l,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else 1===this._peek.type&&(this._advance(),u=!1);var h=this._peek.sourceSpan.fullStart,g=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new Xa(e.sourceSpan.start,h,e.sourceSpan.fullStart),Z=new $3(l,s,[],g,C,void 0);this._pushElement(Z),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(Uf.create(l,g,'Opening tag "'.concat(l,'" not terminated.'))))}},{key:"_pushElement",value:function(e){var i=this._getParentElement();i&&this.getTagDefinition(i.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function(e){var i=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(i).isVoid)this.errors.push(Uf.create(i,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(i,e.sourceSpan)){var o='Unexpected closing tag "'.concat(i,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this.errors.push(Uf.create(i,e.sourceSpan,o))}}},{key:"_popElement",value:function(e,i){for(var o=!1,a=this._elementStack.length-1;a>=0;a--){var s=this._elementStack[a];if(s.name===e)return s.endSourceSpan=i,s.sourceSpan.end=null!==i?i.end:s.sourceSpan.end,this._elementStack.splice(a,this._elementStack.length-a),!o;this.getTagDefinition(s.name).closedByParent||(o=!0)}return!1}},{key:"_consumeAttr",value:function(e){var i=ji(e.parts[0],e.parts[1]),o=e.sourceSpan.end;15===this._peek.type&&this._advance();var a="",s=[],l=void 0,u=void 0;if(16===this._peek.type)for(l=this._peek.sourceSpan,u=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){var h=this._advance();s.push(h),17===h.type?a+=h.parts.join("").replace(/&([^;]+);/g,o6):9===h.type?a+=h.parts[0]:a+=h.parts.join(""),u=o=h.sourceSpan.end}15===this._peek.type&&(o=this._advance().sourceSpan.end);var C=l&&u&&new Xa(l.start,u,l.fullStart);return new dS(i,a,new Xa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,C,s.length>0?s:void 0,void 0)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_addToParent",value:function(e){var i=this._getParentElement();null!=i?i.children.push(e):this.rootNodes.push(e)}},{key:"_getElementFullName",value:function(e,i,o){if(""===e&&(""===(e=this.getTagDefinition(i).implicitNamespacePrefix||"")&&null!=o)){var a=Oi(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=Mi(o.name))}return ji(e,i)}}]),n}();function KC(n,r){return n.length>0&&n[n.length-1]===r}function o6(n,r){return void 0!==Ph[r]?Ph[r]||n:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):n}var a6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.call(this,ka)}return(0,j.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ut.Z)((0,Wt.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(_V),qC="ngPreserveWhitespaces",s6=new Set(["pre","template","textarea","script","style"]),JC=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",R4=new RegExp("[^".concat(JC,"]")),Hf=new RegExp("[".concat(JC,"]{2,}"),"g");function u6(n){return n.replace(new RegExp("\ue500","g")," ")}var c6=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitElement",value:function(e,i){return s6.has(e.name)||function l6(n){return n.some(function(r){return r.name===qC})}(e.attrs)?new $3(e.name,Nc(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new $3(e.name,e.attrs,function QC(n,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(n,a);s&&e.push(s)}),e}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}},{key:"visitAttribute",value:function(e,i){return e.name!==qC?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(R4),a=i&&(i.prev instanceof P_||i.next instanceof P_);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function d6(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[f6(e[0])],sourceSpan:i}}(u):u}),l=f6(e.value);return new Eu(l,e.sourceSpan,s,e.i18n)}return null}},{key:"visitComment",value:function(e,i){return e}},{key:"visitExpansion",value:function(e,i){return e}},{key:"visitExpansionCase",value:function(e,i){return e}}]),n}();function f6(n){return u6(n).replace(Hf," ")}function I_(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return As(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var R_=(0,j.Z)(function n(){(0,F.Z)(this,n)}),gS=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,autocomplete,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],vS=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),yS=Array.from(vS).reduce(function(n,r){var e=(0,Yn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),_6=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,gS.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Yn.Z)(l,2),d=u[0],g=u[1].split(","),C=d.split("^"),Z=(0,Yn.Z)(C,2),z=Z[0],q=Z[1];z.split(",").forEach(function(ft){i._schema.set(ft.toLowerCase(),a),i._eventSchema.set(ft.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,An.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Yn.Z)(Se.value,2),Ee=Ce[0],Ke=Ce[1];a.set(Ee,Ke)}}catch(ft){ae.e(ft)}finally{ae.f()}var Ae,st=(0,An.Z)(i._eventSchema.get(q.toLowerCase()));try{for(st.s();!(Ae=st.n()).done;){var it=Ae.value;s.add(it)}}catch(ft){st.e(ft)}finally{st.f()}}g.forEach(function(ft){if(ft.length>0)switch(ft[0]){case"*":s.add(ft.substring(1));break;case"!":a.set(ft.substring(1),"boolean");break;case"#":a.set(ft.substring(1),"number");break;case"%":a.set(ft.substring(1),"object");break;default:a.set(ft,"string")}})}),i}return(0,j.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===ec.name}))return!0;if(o.indexOf("-")>-1){if(Qi(o)||Pi(o))return!1;if(s.some(function(u){return u.name===_u.name}))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(a)}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===ec.name})||o.indexOf("-")>-1&&(Qi(o)||Pi(o)||a.some(function(s){return s.name===_u.name})))||this._schema.has(o.toLowerCase())}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=x3()[o+"|"+a];return l||((l=x3()["*|"+a])||Br.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=vS.get(o))&&void 0!==a?a:o}},{key:"getDefaultComponentElementName",value:function(){return"ng-component"}},{key:"validateProperty",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")+"\nIf '".concat(o,"' is a directive input, make sure the directive is imported by the")+" current module."}:{error:!1}}},{key:"validateAttribute",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")}:{error:!1}}},{key:"allKnownElementNames",value:function(){return Array.from(this._schema.keys())}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(a.keys()).map(function(s){var l;return null!==(l=yS.get(s))&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema.get(o.toLowerCase()))&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function Ul(n){return n.replace(ks,function(){for(var r=arguments.length,e=new Array(r),i=0;i2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new w3(i.name,4,Br.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,d=i.name.split("."),h=void 0;if(d.length>1)if("attr"==d[0]){u=d.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=yy(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var C=u.substring(0,g),Z=u.substring(g+1);u=ji(C,Z)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Br.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Br.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=yy(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new w3(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Event name is missing in binding",a),CS(e)?(e=e.slice(1),void 0!==d&&(d=Rd(d,new Rs(d.start.offset+1,d.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,d)):this._parseRegularEvent(e,i,o,a,s,l,u,d)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return yy(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function xo(n,r){return yu(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new eS(h,g,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),g?"start"!==g&&"done"!==g&&this._reportError('The provided animation output phase value "'.concat(g,'" for "@').concat(h,'" is not supported (use start or done)'),a):this._reportError("The animation trigger output event (@".concat(h,") is missing its phase value name (start or done are currently supported)"),a)}},{key:"_parseRegularEvent",value:function(e,i,o,a,s,l,u,d){var h=function Dc(n,r){return yu(n,":",r)}(e,[null,e]),g=(0,Yn.Z)(h,2),C=g[0],Z=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new eS(Z,C,0,z,a,s,d))}},{key:"_parseAction",value:function(e,i,o){var a=(o&&o.start||"(unknown").toString(),s=o&&o.start?o.start.offset:0;try{var l=this._exprParser.parseAction(e,i,a,s,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),!l||l.ast instanceof Mu?(this._reportError("Empty expressions are not allowed",o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)):l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"_reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new kh(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,An.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._reportError(s.message,i)}}catch(l){o.e(l)}finally{o.f()}}},{key:"_validatePropertyOrAttributeName",value:function(e,i,o){var a=o?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);a.error&&this._reportError(a.msg,i,Dd.ERROR)}}]),n}();function CS(n){return"@"==n[0]}function yy(n,r,e,i){var o=[];return fo.parse(r).forEach(function(a){var s=a.element?[a.element]:n.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(d){return d.isElementSelector()}).map(function(d){return d.element})),u=s.filter(function(d){return!l.has(d)});o.push.apply(o,(0,cn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Br.NONE]:Array.from(new Set(o)).sort()}function Rd(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Xa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var Ls,B4=/^([^:/?#]+):/;function uc(n){var r=null,e=null,i=null,o=!1,a="";n.attrs.forEach(function(u){var d=u.name.toLowerCase();"select"==d?r=u.value:"href"==d?e=u.value:"rel"==d?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function W4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=Ls.OTHER;return Pi(s)?l=Ls.NG_CONTENT:"style"==s?l=Ls.STYLE:"script"==s?l=Ls.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Ls.STYLESHEET),new z4(l,r,e,o,a)}!function(n){n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER"}(Ls||(Ls={}));var z4=(0,j.Z)(function n(r,e,i,o,a){(0,F.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var yV=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,cc_BANANA_BOX={start:"[(",end:")]"},cc_PROPERTY={start:"[",end:"]"},cc_EVENT={start:"(",end:")"};function n1(n,r,e){var i=new bV(r,e),s={nodes:Nc(i,n),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var es,bV=function(){function n(r,e){(0,F.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,j.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=Vv(e.i18n);o&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var a=uc(e);if(a.type===Ls.SCRIPT)return null;if(a.type===Ls.STYLE){var s=function MS(n){return 1===n.children.length&&n.children[0]instanceof Eu?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Ls.STYLESHEET&&function N4(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(B4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function ai(n){return"ng-template"===Oi(n)[1]}(e.name),u=[],d=[],h=[],g=[],C=[],Z={},z=[],q=[],re=!1,ae=(0,An.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,Ee=!1,Ke=TS(Ce.name),st=!1;if(Ce.i18n&&(Z[Ce.name]=Ce.i18n),Ke.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),st=!0,re=!0;var Ae=Ce.value,it=Ke.substring("*".length),ft=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(it,Ae,Ce.sourceSpan,bt,[],z,ft,!0),q.push.apply(q,(0,cn.Z)(ft.map(function(_r){return new kM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!st&&C.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Ie,$e=Nc(a.nonBindable?CV:this,e.children);if(a.type===Ls.NG_CONTENT){e.children&&!e.children.every(function(_r){return function x6(n){return n instanceof Eu&&0==n.value.trim().length}(_r)||function D6(n){return n instanceof hy}(_r)})&&this.reportError(" element cannot have content.",e.sourceSpan);var ct=a.selectAttr,Bt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Ie=new NI(ct,Bt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ct)}else if(l){var jt=this.extractAttributes(e.name,u,Z);Ie=new Sd(e.name,C,jt.bound,d,[],$e,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var It=this.extractAttributes(e.name,u,Z);Ie=new hh(e.name,C,It.bound,d,$e,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,Z),Hn=[];Tn.literal.forEach(function(_r){return Hn.push(_r)}),Tn.bound.forEach(function(_r){return Hn.push(_r)});var zn=Ie instanceof hh?{attributes:Ie.attributes,inputs:Ie.inputs,outputs:Ie.outputs}:{attributes:[],inputs:[],outputs:[]},ar=l&&o?void 0:e.i18n,kr=Ie instanceof Sd?null:Ie.name;Ie=new Sd(kr,zn.attributes,zn.inputs,zn.outputs,Hn,[Ie],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,ar)}return o&&(this.inI18nBlock=!1),Ie}},{key:"visitAttribute",value:function(e){return new wM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}},{key:"visitExpansion",value:function(e){var i=this;if(!e.i18n)return null;if(!Vv(e.i18n))throw new Error('Invalid type "'.concat(e.i18n.constructor,'" for "i18n" property of ').concat(e.sourceSpan.toString(),'. Expected a "Message"'));var o=e.i18n,a={},s={};return Object.keys(o.placeholders).forEach(function(l){var u=o.placeholders[l];if(l.startsWith("VAR_")){var d=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[d]=new CM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new zv(a,s,e.sourceSpan,o)}},{key:"visitExpansionCase",value:function(e){return null}},{key:"visitComment",value:function(e){return this.options.collectCommentNodes&&this.commentNodes.push(new jv(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var d=o[u.name];if(u.isLiteral)l.push(new wM(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(Hv.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=TS(i.name),g=i.value,C=i.sourceSpan,Z=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function z(Hn,zn,ar){var kr=i.name.length-h.length,_r=Hn.start.moveBy(zn.length+kr),Wr=_r.moveBy(ar.length);return new Xa(_r,Wr,_r,ar)}var q=h.match(yV);if(q){if(null!=q[1]){var re=q[7],ae=z(C,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,C,Z,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(C,q[2],Se);this.parseVariable(Se,g,C,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Ee=q[7],Ke=z(C,q[3],Ee);this.parseReference(Ee,g,C,Ke,i.valueSpan,u)}else if(q[4]){var st=[],Ae=q[7],it=z(C,q[4],Ae);this.bindingParser.parseEvent(Ae,g,!1,C,i.valueSpan||C,o,st,it),r1(st,s)}else if(q[5]){var ft=q[7],bt=z(C,q[5],ft);this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ft,g,C,i.valueSpan,o,s,bt)}else if(q[6]){var $e=z(C,"",h);this.bindingParser.parseLiteralAttr(h,g,C,Z,i.valueSpan,o,a,$e)}return!0}var Ie=null;if(h.startsWith(cc_BANANA_BOX.start)?Ie=cc_BANANA_BOX:h.startsWith(cc_PROPERTY.start)?Ie=cc_PROPERTY:h.startsWith(cc_EVENT.start)&&(Ie=cc_EVENT),null!==Ie&&h.endsWith(Ie.end)&&h.length>Ie.start.length+Ie.end.length){var ct=h.substring(Ie.start.length,h.length-Ie.end.length),Bt=z(C,Ie.start,ct);if(Ie.start===cc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ct,g,!1,C,Z,i.valueSpan,o,a,Bt),this.parseAssignmentEvent(ct,g,C,i.valueSpan,o,s,Bt);else if(Ie.start===cc_PROPERTY.start)this.bindingParser.parsePropertyBinding(ct,g,!1,C,Z,i.valueSpan,o,a,Bt);else{var jt=[];this.bindingParser.parseEvent(ct,g,!1,C,i.valueSpan||C,o,jt,Bt),r1(jt,s)}return!0}var It=z(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,C,i.valueSpan,o,a,It,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=u6(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new CM(l,i,a):new yC(s,i)}},{key:"parseVariable",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',o):0===e.length&&this.reportError("Variable does not have a name",o),l.push(new kM(e,i,o,a,s))}},{key:"parseReference",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',o):0===e.length?this.reportError("Reference does not have a name",o):l.some(function(u){return u.name===e})&&this.reportError('Reference "#'.concat(e,'" is defined more than once'),o),l.push(new Gv(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var d=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,d,u),r1(d,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new kh(i,e,o))}}]),n}(),kS=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitElement",value:function(e){var i=uc(e);if(i.type===Ls.SCRIPT||i.type===Ls.STYLE||i.type===Ls.STYLESHEET)return null;var o=Nc(this,e.children,null);return new hh(e.name,Nc(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new wM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new yC(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),CV=new kS;function TS(n){return/^data-/i.test(n)?n.substring(5):n}function r1(n,r){r.push.apply(r,(0,cn.Z)(n.map(function(e){return c_.fromParsedEvent(e)})))}function i1(){return{getUniqueId:Yv(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(es||(es={}));var o1=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;(0,F.Z)(this,n),this.index=r,this.ref=e,this.level=i,this.templateIndex=o,this.meta=a,this.registry=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||i1(),this.id=this._registry.getUniqueId()}return(0,j.Z)(n,[{key:"appendTag",value:function(e,i,o,a){if(!i.isVoid||!a){var s=i.isVoid||!a?i.startName:i.closeName,l={type:e,index:o,ctx:this.id,isVoid:i.isVoid,closed:a};TC(this.placeholders,s,l)}}},{key:"icus",get:function(){return this._registry.icus}},{key:"isRoot",get:function(){return 0===this.level}},{key:"isResolved",get:function(){return 0===this._unresolvedCtxCount}},{key:"getSerializedPlaceholders",value:function(){var e=new Map;return this.placeholders.forEach(function(i,o){return e.set(o,i.map(A6))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){TC(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;YI(e,this.bindings.size,this.id).forEach(function(a,s){return TC.apply(void 0,[i.placeholders,s].concat((0,cn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(es.TEMPLATE,e,i,!1),this.appendTag(es.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(es.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(es.ELEMENT,e,i,!1),this.appendTag(es.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new n(e,this.ref,this.level+1,i,o,this._registry)}},{key:"reconcileChildContext",value:function(e){var i=this;["start","close"].forEach(function(a){var s=e.meta["".concat(a,"Name")],u=(i.placeholders.get(s)||[]).find(a1(i.id,e.templateIndex));u&&(u.ctx=e.id)}),e.placeholders.forEach(function(a,s){var l=i.placeholders.get(s);if(l){var u=l.findIndex(a1(e.id,e.templateIndex));if(u>=0){var d=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(d?0:1),0].concat((0,cn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,cn.Z)(a)))}else l.push.apply(l,(0,cn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function Ih(n,r,e,i){var o=i?"/":"";return f_("".concat(o).concat(n).concat(r),e)}function SS(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?Ih(n,i,o)+Ih(n,i,o,!0):Ih(n,i,o,e)}function a1(n,r){return function(e){return"object"==typeof e&&e.type===es.TEMPLATE&&e.index===r&&e.ctx===n}}function A6(n){var r=function(a,s){return SS("#",a,s)},e=function(a,s){return SS("*",a,s)};switch(n.type){case es.ELEMENT:return n.closed?r(n,!0)+(n.tmpl?e(n.tmpl,!0):""):n.tmpl?e(n.tmpl)+r(n)+(n.isVoid?e(n.tmpl,!0):""):r(n);case es.TEMPLATE:return e(n,n.closed);default:return n}}var Y4=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}},{key:"formatPh",value:function(e){return"{".concat(Kv(e,!1),"}")}}]),n}(),K4=new Y4;function L_(n){return n.visit(K4)}var O6={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},wV=function(){function n(){(0,F.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,j.Z)(n,[{key:"getStartTagPlaceholderName",value:function(e,i,o){var a=this._hashTag(e,i,o);if(this._signatureToName[a])return this._signatureToName[a];var s=e.toUpperCase(),l=O6[s]||"TAG_".concat(s),u=this._generateUniqueName(o?l:"START_".concat(l));return this._signatureToName[a]=u,u}},{key:"getCloseTagPlaceholderName",value:function(e){var i=this._hashClosingTag(e);if(this._signatureToName[i])return this._signatureToName[i];var o=e.toUpperCase(),a=O6[o]||"TAG_".concat(o),s=this._generateUniqueName("CLOSE_".concat(a));return this._signatureToName[i]=s,s}},{key:"getPlaceholderName",value:function(e,i){var o=e.toUpperCase(),a="PH: ".concat(o,"=").concat(i);if(this._signatureToName[a])return this._signatureToName[a];var s=this._generateUniqueName(o);return this._signatureToName[a]=s,s}},{key:"getUniquePlaceholder",value:function(e){return this._generateUniqueName(e.toUpperCase())}},{key:"_hashTag",value:function(e,i,o){return"<".concat(e)+Object.keys(i).sort().map(function(u){return" ".concat(u,"=").concat(i[u])}).join("")+(o?"/>":">"))}},{key:"_hashClosingTag",value:function(e){return this._hashTag("/".concat(e),{},!1)}},{key:"_generateUniqueName",value:function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var o=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=o+1,"".concat(e,"_").concat(o)}}]),n}(),q4=new cS(new W3);function kV(n){var r=new Q4(q4,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function J4(n,r){return r}var Q4=function(){function n(r,e){(0,F.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,j.Z)(n,[{key:"toI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4?arguments[4]:void 0,l={isIcu:1==e.length&&e[0]instanceof P_,icuDepth:0,placeholderRegistry:new wV,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||J4},u=Nc(this,e,l);return new Tf(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=Nc(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=ka(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var d="";l||(d=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[d]={text:""),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new QW(e.name,s,u,d,a,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return i.visitNodeFn(e,h)}},{key:"visitAttribute",value:function(e,i){var o=void 0===e.valueTokens||1===e.valueTokens.length?new TM(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitText",value:function(e,i){var o=1===e.tokens.length?new TM(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitComment",value:function(e,i){return null}},{key:"visitExpansion",value:function(e,i){var o=this;i.icuDepth++;var a={},s=new BI(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new d_(h.expression.map(function(g){return g.visit(o,i)}),h.expSourceSpan)}),i.icuDepth--,i.isIcu||i.icuDepth>0){var l=i.placeholderRegistry.getUniquePlaceholder("VAR_".concat(e.type));return s.expressionPlaceholder=l,i.placeholderToContent[l]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},i.visitNodeFn(e,s)}var u=i.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());i.placeholderToMessage[u]=this.toI18nMessage([e],"","","",void 0);var d=new CC(s,u,e.sourceSpan);return i.visitNodeFn(e,d)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var d,s=[],l=!1,u=(0,An.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;switch(h.type){case 8:case 17:l=!0;var g=h.parts[1],C=xS(g)||"INTERPOLATION",Z=o.placeholderRegistry.getPlaceholderName(C,g);o.placeholderToContent[Z]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new FI(g,Z,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof TM?(z.value+=h.parts[0],z.sourceSpan=new Xa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new TM(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function X4(n,r){if(r instanceof Tf&&(function P6(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof d_))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof d_){!function ES(n,r){if(n.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(n.some(function(e,i){return r[i].constructor!==e.constructor}))throw new Error("The types of the i18n message children changed between first and second pass.")}(r.children,n);for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:Vl,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,F.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=kV(this.interpolationConfig)}return(0,j.Z)(n,[{key:"_generateI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=this._parseMetadata(i),s=a.meaning,l=a.description,u=a.customId,d=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(d,i),this._setLegacyIds(d,i),d}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new i6(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function xM(n){return n.attrs.some(function(r){return EM(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,An.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var d=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,d,t8)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(Wv)){var h=u.name.slice(Wv.length);bS(e.name,h)?this._reportError(u,"Translating attribute '".concat(h,"' is disallowed for security reasons.")):a[h]=u.value}else o.push(u)}}catch(q){s.e(q)}finally{s.f()}if(Object.keys(a).length){var C,g=(0,An.Z)(o);try{for(g.s();!(C=g.n()).done;){var Z=C.value,z=a[Z.name];void 0!==z&&Z.value&&(Z.i18n=this._generateI18nMessage([Z],Z.i18n||z))}}catch(q){g.e(q)}finally{g.f()}}this.keepI18nAttrs||(e.attrs=o)}return Nc(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof CC){var s=a.name;DM(o=this._generateI18nMessage([e],a)).name=s,null!==i&&(i.placeholderToMessage[s]=o)}else o=this._generateI18nMessage([e],i||a);return e.i18n=o,e}},{key:"visitText",value:function(e){return e}},{key:"visitAttribute",value:function(e){return e}},{key:"visitComment",value:function(e){return e}},{key:"visitExpansionCase",value:function(e){return e}},{key:"_parseMetadata",value:function(e){return"string"==typeof e?function i8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(n=n.trim()){var s,o=n.indexOf("@@"),a=n.indexOf("|"),l=o>-1?[n.slice(0,o),n.slice(o+2)]:[n,""],u=(0,Yn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Yn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof Tf?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof Tf&&i.id||_f(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[ih(e),Ss(e)];else if("string"!=typeof i){var o=i instanceof Tf?i:i instanceof CC?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new e8(e.sourceSpan,i))}}]),n}();function TV(n,r,e,i){var o=function a8(n){return n.nodes.map(function(r){return r.visit(o8,null)}).join("")}(r),a=[on(o)];Object.keys(i).length&&(a.push(I_(MC(i,!0),!0)),a.push(I_({original_code:As(Object.keys(i).map(function(u){return{key:Kv(u),quoted:!0,value:r.placeholders[u]?on(r.placeholders[u].sourceSpan.toString()):on(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(qr("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function s1(n){var r=[];return n.description?r.push({tagName:"desc",text:n.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&r.push({tagName:"meaning",text:n.meaning}),mM(r)}(r)),[s,new uh(n.set(e))]}var Cy=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(Kv(e),"}")}},{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){return L_(e)}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}}]),n}(),o8=new Cy;function DS(n,r,e){var i=function Bc(n){var r=[],e=new s8(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function Zs(n){var r=[],e=[];n[0]instanceof rn&&r.push(Ld(n[0].sourceSpan.start));for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=n.type,o=n.name,a=n.target,s=n.phase,l=n.handler;if(a&&!Gf.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(Gf.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?qr(sc):e.getOrCreateSharedContextVar(0),g=$F(e,h,l,"b",n.handlerSpan,d,u1),C=[],Z=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(Z&&C.push.apply(C,(0,cn.Z)(Z)),C.push.apply(C,(0,cn.Z)(g)),z){C.unshift(z);var q=C[C.length-1];q instanceof Sa?C[C.length-1]=new Sa(gh(q.value.sourceSpan,Ne.resetView,[q.value])):C.push(new uh(gh(null,Ne.resetView,[])))}var re=1===i?_F(o,s):o,ae=r&&Th(r),Se=[];d.has(u)&&Se.push(new ma(u,vl));var Ce=oa(Se,C,Ma,null,ae),Ee=[on(re),Ce];return a&&Ee.push(on(!1),Xn(Gf.get(a))),Ee}function N_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var B_=function(){function n(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:N_();(0,F.Z)(this,n),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=d,this.i18nUseExternalIds=g,this._constants=C,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=vh,this.visitVariable=vh,this.visitTextAttribute=vh,this.visitBoundAttribute=vh,this.visitBoundEvent=vh,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Zh(r,function(){return i.allocateDataSlot()},function(Z){return i.allocatePureFunctionSlots(Z)},function(Z,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Ne.pipe,[on(q),on(Z)])})}return(0,j.Z)(n,[{key:"buildTemplateFunction",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0;this._ngContentSelectorsOffset=a,this._namespace!==Ne.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||Vv(s)&&!kC(s)&&!(f1(e)&&e[0].i18n===s),u=LS(e);if(l&&this.i18nStart(null,s,u),mh(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(ae){return ae()}),0===this.level&&this._ngContentReservedSlots.length){var d=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(ae){return"*"!==ae?vu(ae):ae});d.push(this.constantPool.getConstLiteral(Wl(h),!0))}this.creationInstruction(null,Ne.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=EC(this._creationCodeFns),C=EC(this._updateCodeFns),Z=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[ql(1,Z.concat(g))]:[],re=C.length>0?[ql(2,z.concat(C))]:[];return oa([new ma(_h,_e),new ma(sc,null)],[].concat((0,cn.Z)(this._prefixCode),q,re),Ma,null,this.templateName)}},{key:"getLocal",value:function(e){return this._bindingScope.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){this._bindingScope.notifyImplicitReceiverUse()}},{key:"maybeRestoreView",value:function(){this._bindingScope.maybeRestoreView()}},{key:"i18nTranslate",value:function(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=a||this.i18nGenerateMainBlockVar(),u=this.i18nGenerateClosureVar(e.id),d=ZS(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,cn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=qr(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=qr(JI),s.notifyRestoredViewContextUse()):u=qr(sc):u=s.getSharedContextName(o)||c1(l);return[a.set(u.prop(e.value||"$implicit")).toConstDecl()]})}},{key:"i18nAppendBindings",value:function(e){var i=this;e.length>0&&e.forEach(function(o){return i.i18n.appendBinding(o)})}},{key:"i18nBindProps",value:function(e){var i=this,o={};return Object.keys(e).forEach(function(a){var s=e[a];if(s instanceof yC)o[a]=on(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof $a){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,Z=function Os(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n.length)return"";for(var i="",o=n.length-1,a=0;a1})||Object.keys(d).length)&&(C=function(z){var q=[z];return Object.keys(d).length&&q.push(I_(d,!0)),gh(null,Ne.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,C)}}},{key:"i18nStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(a,this.templateIndex,i):new o1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[on(a),this.addToConsts(u)];l>0&&d.push(on(l)),this.creationInstruction(e,o?Ne.i18n:Ne.i18nStart,d)}},{key:"i18nEnd",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var a=this.i18n,s=a.index,l=a.bindings;if(l.size){var d,u=(0,An.Z)(l);try{var h=function(){var C=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Ne.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(d=u.n()).done;)h()}catch(g){u.e(g)}finally{u.f()}this.updateInstruction(i,Ne.i18nApply,[on(s)])}o||this.creationInstruction(i,Ne.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var g=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof $a){var z=AM(YI(g));l.push(on(h.name),a.i18nTranslate(g,z)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Ne.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=on(this.allocateDataSlot()),d=this.addToConsts(pi(l));this.creationInstruction(o,Ne.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Ne.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Ne.namespaceMathML;case"svg":return Ne.namespaceSVG;default:return Ne.namespaceHTML}}},{key:"addNamespaceInstruction",value:function(e,i){this._namespace=e,this.creationInstruction(i.startSourceSpan,e)}},{key:"interpolatedUpdateInstruction",value:function(e,i,o,a,s,l){var u=this;this.updateInstructionWithAdvance(i,a.sourceSpan,e,function(){return[on(o)].concat((0,cn.Z)(u.getUpdateInstructionArguments(s)),(0,cn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[on(i)];this._ngContentReservedSlots.push(e.selector);var s=e.attributes.filter(function(u){return"select"!==u.name.toLowerCase()}),l=this.getAttributeExpressions(e.name,s,[],[]);l.length>0?a.push(on(o),pi(l)):0!==o&&a.push(on(o)),this.creationInstruction(e.sourceSpan,Ne.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,ae,i=this,s=this.allocateDataSlot(),l=new zC(null),u=!1,d=Vv(e.i18n)&&!kC(e.i18n),h=[],g=Oi(e.name),C=(0,Yn.Z)(g,2),Z=C[0],z=C[1],q=Qi(e.name),re=(0,An.Z)(e.attributes);try{for(re.s();!(ae=re.n()).done;){var Se=ae.value,Ce=Se.name,Ee=Se.value;"ngNonBindable"===Ce?u=!0:"style"===Ce?l.registerStyleAttr(Ee):"class"===Ce?l.registerClassAttr(Ee):h.push(Se)}}catch(un){re.e(un)}finally{re.f()}var Ke=[on(s)];q||Ke.push(on(z));var st=[],Ae=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?Ae.push(un):st.push(un))});var it=this.getAttributeExpressions(e.name,h,st,e.outputs,l,[],Ae);Ke.push(this.addAttrsToConsts(it));var ft=this.prepareRefsArray(e.references);Ke.push(this.addToConsts(ft));var bt=this._namespace,$e=this.getNamespaceInstruction(Z);$e!==bt&&this.addNamespaceInstruction($e,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Ie=!d&&this.i18n?!LS(e.children):e.children.length>0,ct=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Ae.length&&!Ie,Bt=!ct&&LS(e.children);if(ct)this.creationInstruction(e.sourceSpan,q?Ne.elementContainer:Ne.element,Jv(Ke));else{if(this.creationInstruction(e.startSourceSpan,q?Ne.elementContainerStart:Ne.elementStart,Jv(Ke)),u&&this.creationInstruction(e.startSourceSpan,Ne.disableBindings),Ae.length>0&&this.i18nAttributesInstruction(s,Ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var It,jt=(0,An.Z)(e.outputs);try{for(jt.s();!(It=jt.n()).done;){var Tn=It.value;this.creationInstruction(Tn.sourceSpan,Ne.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){jt.e(un)}finally{jt.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Bt)}for(var Hn=l.buildUpdateLevelInstructions(this._valueConverter),zn=Hn.length-1,ar=0;ar<=zn;ar++){var kr=Hn[ar];this._bindingSlots+=this.processStylingUpdateInstruction(s,kr)}var _r=on(void 0),Wr=[],jr=[];st.forEach(function(un){var bn=un.type;if(4===bn){var Nn=un.value.visit(i._valueConverter),rr=!(Nn instanceof Ps)||!!Nn.value;i.allocateBindingSlots(Nn),Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return rr?i.convertPropertyBinding(Nn):_r},RI(un.name))})}else{if(un.i18n)return;var gr=un.value.visit(i._valueConverter);if(void 0!==gr){var eo=[],Xu=Oi(un.name),Ov=(0,Yn.Z)(Xu,2),Pv=Ov[0],Xm=Ov[1],dC=1===bn,Ia=d1(un.securityContext,dC);if(Ia||function RS(n){return"iframe"===n.toLowerCase()}(e.name)&&D3(un.name)&&(Ia=Xn(Ne.validateIframeAttribute)),Ia&&eo.push(Ia),Pv){var wI=on(Pv);Ia?eo.push(wI):eo.push(on(null),wI)}if(i.allocateBindingSlots(gr),0===bn)gr instanceof $a?i.interpolatedUpdateInstruction(N6(gr),s,Xm,un,gr,eo):Wr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(gr)},Xm,eo)});else if(1===bn)if(gr instanceof $a&&yh(gr)>1)i.interpolatedUpdateInstruction(function u8(n){switch(yh(n)){case 3:return Ne.attributeInterpolate1;case 5:return Ne.attributeInterpolate2;case 7:return Ne.attributeInterpolate3;case 9:return Ne.attributeInterpolate4;case 11:return Ne.attributeInterpolate5;case 13:return Ne.attributeInterpolate6;case 15:return Ne.attributeInterpolate7;case 17:return Ne.attributeInterpolate8;default:return Ne.attributeInterpolateV}}(gr),s,Xm,un,gr,eo);else{var VW=gr instanceof $a?gr.expressions[0]:gr;jr.push({span:un.sourceSpan,paramsOrFn:Bh(function(){return i.convertPropertyBinding(VW)},Xm,eo)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Ne.classProp,function(){return[on(s),on(Xm),i.convertPropertyBinding(gr)].concat(eo)})}}});for(var Kr=0,jo=Wr;Kr0&&this.i18nAttributesInstruction(s,re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),ae.length>0&&this.templatePropertyBindings(s,ae);var Ce,Se=(0,An.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var Ee=Ce.value;this.creationInstruction(Ee.sourceSpan,Ne.listener,this.prepareListenerParameter("ng_template",Ee,s))}}catch(Ke){Se.e(Ke)}finally{Se.f()}}}},{key:"visitBoundText",value:function(e){var i=this;if(this.i18n){var o=e.value.visit(this._valueConverter);return this.allocateBindingSlots(o),void(o instanceof $a&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Ne.text,[on(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof $a?this.updateInstructionWithAdvance(a,e.sourceSpan,function B6(n){switch(yh(n)){case 1:return Ne.textInterpolate;case 3:return Ne.textInterpolate1;case 5:return Ne.textInterpolate2;case 7:return Ne.textInterpolate3;case 9:return Ne.textInterpolate4;case 11:return Ne.textInterpolate5;case 13:return Ne.textInterpolate6;case 15:return Ne.textInterpolate7;case 17:return Ne.textInterpolate8;default:return Ne.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):pa("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Ne.text,[on(this.allocateDataSlot()),on(e.value)])}},{key:"visitIcu",value:function(e){var i=!1;this.i18n||(i=!0,this.i18nStart(null,e.i18n,!0));var o=this.i18n,a=this.i18nBindProps(e.vars),s=this.i18nBindProps(e.placeholders),l=e.i18n,u=function(g){var Z=MC(Object.assign(Object.assign({},a),s),!1);return gh(null,Ne.i18nPostprocess,[g,I_(Z,!0)])};if(kC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(DM(l).name,d)}return i&&this.i18nEnd(null,!0),null}},{key:"allocateDataSlot",value:function(){return this._dataIndex++}},{key:"getConstCount",value:function(){return this._dataIndex}},{key:"getVarCount",value:function(){return this._pureFunctionSlots}},{key:"getConsts",value:function(){return this._constants}},{key:"getNgContentSelectors",value:function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Wl(this._ngContentReservedSlots),!0):null}},{key:"bindingContext",value:function(){return"".concat(this._bindingContext++)}},{key:"templatePropertyBindings",value:function(e,i){var l,o=this,a=[],s=(0,An.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof Hv))return 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof $a){o.interpolatedUpdateInstruction(N6(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:Bh(function(){return o.convertPropertyBinding(q)},z.name)})};for(s.s();!(l=s.n()).done;)u()}catch(Z){s.e(Z)}finally{s.f()}for(var h=0,g=a;h4&&void 0!==arguments[4]&&arguments[4];e[s?"unshift":"push"]({span:i,reference:o,paramsOrFn:a})}},{key:"processStylingUpdateInstruction",value:function(e,i){var o=this,a=0;if(i){var l,s=(0,An.Z)(i.calls);try{var u=function(){var h=l.value;a+=h.allocateBindingSlots,o.updateInstructionWithAdvance(e,h.sourceSpan,i.reference,function(){return h.params(function(g){return h.supportsInterpolation&&g instanceof $a?o.getUpdateInstructionArguments(g):o.convertPropertyBinding(g)})})};for(s.s();!(l=s.n()).done;)u()}catch(d){s.e(d)}finally{s.f()}}return a}},{key:"creationInstruction",value:function(e,i,o,a){this.instructionFn(this._creationCodeFns,e,i,o||[],a)}},{key:"updateInstructionWithAdvance",value:function(e,i,o,a){this.addAdvanceInstructionIfNecessary(e,i),this.updateInstruction(i,o,a)}},{key:"updateInstruction",value:function(e,i,o){this.instructionFn(this._updateCodeFns,e,i,o||[])}},{key:"addAdvanceInstructionIfNecessary",value:function(e,i){if(e!==this._currentIndex){var o=e-this._currentIndex;if(o<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,i,Ne.advance,[on(o)]),this._currentIndex=e}}},{key:"allocatePureFunctionSlots",value:function(e){var i=this._pureFunctionSlots;return this._pureFunctionSlots+=e,i}},{key:"allocateBindingSlots",value:function(e){this._bindingSlots+=e instanceof $a?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?qr(sc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=k3(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,cn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function lV(n,r,e,i){var o=new xh(n,r,i,!0),a=o.visitInterpolation(e,Hi.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:tS(o,i),args:a.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.args,s=o.stmts;return(i=this._tempVariables).push.apply(i,(0,cn.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var g,Z,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],C=(0,An.Z)(i);try{for(C.s();!(Z=C.n()).done;){var z=Z.value;if(z.name===Du&&(g=z),z.i18n){var q=this._constants.i18nVarRefsCache,re=void 0;q.has(z.i18n)?re=q.get(z.i18n):(re=this.i18nTranslate(z.i18n),q.set(z.i18n,re)),h.push(on(z.name),re)}else h.push.apply(h,(0,cn.Z)(PS(z.name)).concat([d8(e,z)]))}}catch(Ae){C.e(Ae)}finally{C.f()}function ae(Ae,it){"string"==typeof Ae?d.has(Ae)||(h.push.apply(h,(0,cn.Z)(PS(Ae))),void 0!==it&&h.push(it),d.add(Ae)):h.push(on(Ae))}if(g&&h.push.apply(h,(0,cn.Z)(Z6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce0?this.addToConsts(pi(e)):yf}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Wl(h1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=qr(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var C=g>0?[c1(g).toStmt()]:[],Z=d.set(Xn(Ne.reference).callFn([on(s)]));return C.concat(Z.toConstDecl())},!0),[a.name,a.value]}))):yf}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?LI(s,i.phase):Th(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,u1);return Lh(i,u,d)}}}]),n}(),Zh=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,j.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),d=new Zf(o.span,o.sourceSpan,o.nameSpan,new T_(o.span,o.sourceSpan),l),h=function U_(n){var r=F_[n.length];return{identifier:r||Ne.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,Xn(g));var Z=[o.exp].concat((0,cn.Z)(o.args)),z=C?this.visitAll([new BC(o.span,o.sourceSpan,Z)]):this.visitAll(Z),q=new S_(o.span,o.sourceSpan,d,[new Ps(o.span,o.sourceSpan,s),new Ps(o.span,o.sourceSpan,u)].concat((0,cn.Z)(z)),null);return this._pipeBindExprs.push(q),q}},{key:"updatePipeSlotOffsets",value:function(o){this._pipeBindExprs.forEach(function(a){a.args[1].value+=o})}},{key:"visitLiteralArray",value:function(o,a){var s=this;return new Dh(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return OS(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Dh(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=As(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return OS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(XF),F_=[Ne.pipeBind1,Ne.pipeBind2,Ne.pipeBind3,Ne.pipeBind4];var R6=[Ne.pureFunction0,Ne.pureFunction1,Ne.pureFunction2,Ne.pureFunction3,Ne.pureFunction4,Ne.pureFunction5,Ne.pureFunction6,Ne.pureFunction7,Ne.pureFunction8];function c1(n){return Xn(Ne.nextContext).callFn(n>1?[on(n)]:[])}function OS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function AS(n){var r=R6[n.length];return{identifier:r||Ne.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[on(s),o];return d?h.push(pi(a)):h.push.apply(h,(0,cn.Z)(a)),Xn(u).callFn(h)}function PS(n){var r=Oi(n),e=(0,Yn.Z)(r,2),i=e[0],a=on(e[1]);return i?[on(0),on(i),a]:[a]}var Nh="$$shared_ctx$$",L6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;if((0,F.Z)(this,n),this.bindingLevel=r,this.parent=e,this.globals=i,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==i){var a,o=(0,An.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,qr(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,j.Z)(n,[{key:"get",value:function(e){for(var i=this;i;){var o=i.map.get(e);if(null!=o)return i!==this&&(o={retrievalLevel:o.retrievalLevel,lhs:o.lhs,declareLocalCallback:o.declareLocalCallback,declare:!1,priority:o.priority},this.map.set(e,o),this.maybeGenerateSharedContextVar(o),this.maybeRestoreView()),o.declareLocalCallback&&!o.declare&&(o.declare=!0),o.lhs;i=i.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}},{key:"set",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;if(this.map.has(i)){if(l)return this;pa("The name ".concat(i," is already defined in scope to be ").concat(this.map.get(i)))}return this.map.set(i,{retrievalLevel:e,lhs:o,declare:!1,declareLocalCallback:s,priority:a}),this}},{key:"getLocal",value:function(e){return this.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){0!==this.bindingLevel&&(this.map.get(Nh+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new n(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=Nh+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Nh+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel0&&void 0!==arguments[0]?arguments[0]:Vl;return new Z4(new cS(new W3),n,IS,[])}function d1(n,r){switch(n){case Br.HTML:return Xn(Ne.sanitizeHtml);case Br.SCRIPT:return Xn(Ne.sanitizeScript);case Br.STYLE:return r?Xn(Ne.sanitizeStyle):null;case Br.URL:return Xn(Ne.sanitizeUrl);case Br.RESOURCE_URL:return Xn(Ne.sanitizeResourceUrl);default:return null}}function d8(n,r){var e=Wl(r.value);if(!bS(n,r.name))return e;switch(IS.securityContext(n,r.name,!0)){case Br.HTML:return Zv(Xn(Ne.trustConstantHtml),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);case Br.RESOURCE_URL:return Zv(Xn(Ne.trustConstantResourceUrl),new Ue([new Xe(r.value)],[]),void 0,r.valueSpan);default:return e}}function f1(n){return 1===n.length&&n[0]instanceof hh}function p1(n){return n instanceof yC||n instanceof CM||n instanceof zv}function LS(n){return n.every(p1)}function Bh(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,cn.Z)(e)),r&&o.unshift(on(r)),o}}var ky="ngI18nClosureMode";function ZS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[PF(r),Cf(F6(),TV(r,n,e,i),DS(r,n,MC(i,!1)))];return o&&a.push(new uh(r.set(o(r)))),a}function F6(){return mC(qr(ky)).notIdentical(on("undefined",xe)).and(qr(ky))}function h1(n){return n.reduce(function(r,e){var i=Array.isArray(e)?h1(e):e;return r.concat(i)},[])}var U6=/attr\.([^\]]+)/,BS="_nghost-".concat("%COMP%"),FS="_ngcontent-".concat("%COMP%");function j6(n,r,e){var i=new Ba,o=vu(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",Wl(o)),n.queries.length>0&&i.set("contentQueries",function m1(n,r,e){var l,i=[],o=[],a=SC(o,"_t"),s=(0,An.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Xn(Ne.contentQuery).callFn([qr("dirIndex")].concat((0,cn.Z)(HS(u,r)))).toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),C=qr(sc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(C).toStmt())}}catch(z){s.e(z)}finally{s.f()}var Z=e?"".concat(e,"_ContentQueries"):null;return oa([new ma(_h,_e),new ma(sc,null),new ma("dirIndex",null)],[ql(1,i),ql(2,o)],Ma,null,Z)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function W6(n,r,e){var i=[],o=[],a=SC(o,PM);n.forEach(function(l){var u=Xn(Ne.viewQuery).callFn(HS(l,r));i.push(u.toStmt());var d=a(),h=Xn(Ne.loadQuery).callFn([]),g=Xn(Ne.queryRefresh).callFn([d.set(h)]),C=qr(sc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return oa([new ma(_h,_e),new ma(sc,null)],[ql(1,i),ql(2,o)],Ma,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function V6(n,r,e,i,o,a,s){var l=qr(sc),u=new zC(l),d=n.specialAttributes,h=d.styleAttr,g=d.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==g&&u.registerClassAttr(g);var C=[],Z=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&C.push.apply(C,(0,cn.Z)(function h8(n,r){var s,e=[],i=[],o=[],a=(0,An.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&Th(l.name),d=1===l.type?LI(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Lh(c_.fromParsedEvent(l),h);1==l.type?i.push(g):e.push(g)}}catch(Se){a.e(Se)}finally{a.f()}for(var C=0,Z=i;C-1&&Hn.indexOf(Br.RESOURCE_URL)>-1?Xn(Ne.sanitizeUrlOrResourceUrl):d1(Hn[0],Tn));var ar=[on(jt),ct.currValExpr];zn?ar.push(zn):D3(jt)&&ar.push(Xn(Ne.validateIframeAttribute)),z.push.apply(z,(0,cn.Z)(ct.stmts)),It===Ne.hostProperty?st.push(ar):It===Ne.attribute?Ae.push(ar):It===Ne.syntheticHostProperty?it.push(ar):Z.push({reference:It,paramsOrFn:ar,span:null})}for(var kr=0,_r=st;kr<_r.length;kr++){var Wr=_r[kr];Z.push({reference:Ne.hostProperty,paramsOrFn:Wr,span:null})}for(var jr=0,Kr=Ae;jr0||Z.length>0){var nr=a?"".concat(a,"_HostBindings"):null,un=[];return C.length>0&&un.push(ql(1,EC(C))),Z.length>0&&un.push(ql(2,z.concat(EC(Z)))),oa([new ma(_h,_e),new ma(sc,null)],un,Ma,null,nr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",RM(n.inputs,!0)),i.set("outputs",RM(n.outputs)),null!==n.exportAs&&i.set("exportAs",pi(n.exportAs.map(function(a){return on(a)}))),n.isStandalone&&i.set("standalone",on(!0)),i}function US(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new Hl([])];o&&a.push(o),e.push(Xn(Ne.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Xn(Ne.InheritDefinitionFeature)),r.fullInheritance&&e.push(Xn(Ne.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Xn(Ne.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Xn(Ne.StandaloneFeature)),e.length&&n.set("features",pi(e))}function G6(n,r,e){var i=j6(n,r,e);US(i,n);var o=n.selector&&fo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(st){return on(null!=st?st:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new B_(r,L6.createRootScope(),0,l,null,null,u,Ne.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),C=g.buildTemplateFunction(h.nodes,[]),Z=g.getNgContentSelectors();Z&&i.set("ngContentSelectors",Z),i.set("decls",on(g.getConstCount())),i.set("vars",on(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=pi(q);re.length>0&&(ae=oa([],[].concat((0,cn.Z)(re),[new Sa(ae)]))),i.set("consts",ae)}if(i.set("template",C),n.declarations.length>0&&i.set("dependencies",function f8(n,r){switch(r){case 0:return n;case 1:return oa([],[new Sa(n)]);case 2:var e=n.prop("map").callFn([Xn(Ne.resolveForwardRef)]);return oa([],[new Sa(e)])}}(pi(n.declarations.map(function(st){return st.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=Qo.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==Qo.Emulated?function K6(n,r,e){var i=new t4;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,FS,BS):n.styles,Ce=Se.reduce(function(st,Ae){return Ae.trim().length>0&&st.push(r.getConstLiteral(on(Ae))),st},[]);Ce.length>0&&i.set("styles",pi(Ce))}else n.encapsulation===Qo.Emulated&&(n.encapsulation=Qo.None);return n.encapsulation!==Qo.Emulated&&i.set("encapsulation",on(n.encapsulation)),null!==n.animations&&i.set("data",As([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==Xo.Default&&i.set("changeDetection",on(d)),{expression:Xn(Ne.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:jS(n),statements:[]}}function jS(n){var r=VS(n);return r.push(_1(n.template.ngContentSelectors)),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.ComponentDeclaration,r))}function HS(n,r){var e=[QI(n,r),on(z6(n))];return n.read&&e.push(n.read),e}function z6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function zS(n){return ps(on(n))}function WS(n){return ps(As(Object.keys(n).map(function(e){return{key:e,value:on(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function _1(n){return n.length>0?ps(pi(n.map(function(r){return on(r)}))):ze}function VS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[_M(n.type.type,n.typeArgumentCount),null!==r?zS(r):ze,null!==n.exportAs?_1(n.exportAs):ze,WS(n.inputs),WS(n.outputs),_1(n.queries.map(function(e){return e.propertyName}))]}function YS(n){var r=VS(n);return r.push(ze),r.push(ps(on(n.isStandalone))),ps(Xn(Ne.DirectiveDeclaration,r))}function KS(n,r){return k3(null,n,r,"b")}function MV(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function p8(n){var e,r=n.name,i=r.match(U6);return i?(r=i[1],e=Ne.attribute):n.isAnimation?(r=RI(r),e=Ne.syntheticHostProperty):e=Ne.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var Y6=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var _8=(0,j.Z)(function n(){(0,F.Z)(this,n)}),g8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new g3;(0,F.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ac,this.ResourceLoader=_8,this.elementSchemaRegistry=new _6}return(0,j.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=KF({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure,isStandalone:o.isStandalone});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function Ty(n){var r,e;return{name:n.type.name,type:Na(n.type),internalType:new Ar(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:null===(r=n.pure)||void 0===r||r,isStandalone:null!==(e=n.isStandalone)&&void 0!==e&&e}}(o),s=KF(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=$I({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:$S(o.providedIn),useClass:Ns(o,"useClass"),useFactory:Q6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Au)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=$I({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,providedIn:$S(o.providedIn),useClass:Ns(o,"useClass"),useFactory:Q6(o,"useFactory"),useValue:Ns(o,"useValue"),useExisting:Ns(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Ou)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=Ad({name:o.name,type:Na(o.type),internalType:new Ar(o.type),providers:o.providers&&o.providers.length>0?new Ar(o.providers):null,imports:o.imports.map(function(l){return new Ar(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function M8(n){return{name:n.type.name,type:Na(n.type),internalType:new Ar(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Ar(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Ar(r)}):[]}}(o),s=Ad(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=y3({type:Na(o.type),internalType:new Ar(o.type),adjacentType:new Ar(o.type),bootstrap:o.bootstrap.map(Na),declarations:o.declarations.map(Na),publicDeclarationTypes:null,imports:o.imports.map(Na),includeImportTypes:!0,exports:o.exports.map(Na),selectorScopeMode:Mh.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Na):null,id:o.id?new Ar(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function WF(n){var r=new Ba;return r.set("type",new Ar(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Ar(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Ar(n.declarations)),void 0!==n.imports&&r.set("imports",new Ar(n.imports)),void 0!==n.exports&&r.set("exports",new Ar(n.exports)),void 0!==n.schemas&&r.set("schemas",new Ar(n.schemas)),void 0!==n.id&&r.set("id",new Ar(n.id)),Xn(Ne.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=QS(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=Fh(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new wf,l=function H6(n,r,e){var i=j6(n,r,e);return US(i,n),{expression:Xn(Ne.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:YS(n),statements:[]}}(o,a,j_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=v1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),QS(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(b8),declarationListEmitMode:0,styles:[].concat((0,cn.Z)(o.styles),(0,cn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Ar(o.animations):null,viewProviders:null!=o.viewProviders?new Ar(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),d="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,d,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function J6(n,r,e){var i,o,a,s,l=v1(n.template,n.type.name,e,null!==(i=n.preserveWhitespaces)&&void 0!==i&&i,n.interpolation),u=l.template,d=l.interpolation,h=[];if(n.dependencies){var C,g=(0,An.Z)(n.dependencies);try{for(g.s();!(C=g.n()).done;){var Z=C.value;switch(Z.kind){case"directive":case"component":h.push(g1(Z));break;case"pipe":h.push(XS(Z))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,cn.Z)(n.components.map(function(z){return g1(z,!0)}))),n.directives&&h.push.apply(h,(0,cn.Z)(n.directives.map(function(z){return g1(z)}))),n.pipes&&h.push.apply(h,(0,cn.Z)(function SV(n){return n?Object.keys(n).map(function(r){return{kind:Tu.Pipe,name:r,type:new Ar(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},Fh(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Ar(n.viewProviders):null,animations:void 0!==n.animations?new Ar(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:Xo.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:Qo.Emulated,interpolation:d,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}(o,this.createParseSourceSpan("Component",o.type.name,i),i);return this.compileComponentFromMeta(e,i,s)}},{key:"compileComponentFromMeta",value:function(e,i,o){var a=new wf,l=G6(o,a,j_(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=ph({name:o.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:o.typeArgumentCount,deps:Fc(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=ph({name:o.type.name,type:Na(o.type),internalType:new Ar(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(Ou):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function VM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new WM("",i);return new Xa(new w_(o,-1,-1,-1),new w_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,cn.Z)(a),[new bf("$def",e,void 0,Ds.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new v3(i),!0).$def}}]),n}();function qS(n){return Object.assign(Object.assign({},n),{predicate:JS(n.predicate),read:n.read?new Ar(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function q6(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:JS(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Ar(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function JS(n){return Array.isArray(n)?n:Oc(new Ar(n),1)}function QS(n){var r=y1(n.inputs||[]),e=y1(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function k8(n){return"Input"===n.ngMetadataName}(h)?function T8(n){return"Output"===n.ngMetadataName}(h)&&(a[d]=h.bindingPropertyName||d):o[d]=h.bindingPropertyName?[h.bindingPropertyName,d]:d})};for(var l in i)s(l);return Object.assign(Object.assign({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Na(n.type),internalType:new Ar(n.type),deps:null,host:X6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(qS),providers:null!=n.providers?new Ar(n.providers):null,viewQueries:n.viewQueries.map(qS),fullInheritance:!1})}function Fh(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Na(n.type),typeSourceSpan:r,internalType:new Ar(n.type),selector:null!==(e=n.selector)&&void 0!==e?e:null,inputs:null!==(i=n.inputs)&&void 0!==i?i:{},outputs:null!==(o=n.outputs)&&void 0!==o?o:{},host:v8(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(q6),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(q6),providers:void 0!==n.providers?new Ar(n.providers):null,exportAs:null!==(l=n.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=n.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(d=n.usesOnChanges)&&void 0!==d&&d},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:null!==(h=n.isStandalone)&&void 0!==h&&h}}function v8(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:y8(null!==(r=n.attributes)&&void 0!==r?r:{}),listeners:null!==(e=n.listeners)&&void 0!==e?e:{},properties:null!==(i=n.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function y8(n){for(var r={},e=0,i=Object.keys(n);e1&&void 0!==arguments[1]?arguments[1]:null;return{kind:Tu.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Ar(n.type),inputs:null!==(e=n.inputs)&&void 0!==e?e:[],outputs:null!==(i=n.outputs)&&void 0!==i?i:[],exportAs:null!==(o=n.exportAs)&&void 0!==o?o:null}}function XS(n){return{kind:Tu.Pipe,name:n.name,type:new Ar(n.type)}}function v1(n,r,e,i,o){var a=o?ZM.fromArray(o):Vl,s=function c8(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=j_(i),u=(new a6).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:Z_},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var d={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(d.commentNodes=[]),d}var h=u.rootNodes,g=new I6(i,!o,a),C=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var Z={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(Z.commentNodes=[]),Z}h=C.rootNodes,o||(h=Nc(new c6,h),g.hasI18nMeta&&(h=Nc(new I6(i,!1),h)));var z=n1(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=z.nodes,re=z.errors,ae=z.styleUrls,Se=z.styles,Ce=z.ngContentSelectors,Ee=z.commentNodes;re.push.apply(re,(0,cn.Z)(u.errors).concat((0,cn.Z)(C.errors)));var Ke={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ke.commentNodes=Ee),Ke}(n,e,{preserveWhitespaces:i,interpolationConfig:a});if(null!==s.errors){var l=s.errors.map(function(u){return u.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for ".concat(r,": ").concat(l))}return{template:s,interpolation:a}}function Ns(n,r){if(n.hasOwnProperty(r))return Oc(new Ar(n[r]),0)}function Q6(n,r){if(n.hasOwnProperty(r))return new Ar(n[r])}function $S(n){return Oc("function"==typeof n?new Ar(n):new me(null!=n?n:null),0)}function Fc(n){return null==n?null:n.map(Au)}function Au(n){var r=null!=n.attribute,e=null===n.token?null:new Ar(n.token);return eE(r?new Ar(n.attribute):e,r,n.host,n.optional,n.self,n.skipSelf)}function Ou(n){var r,e,i,o,a,s=null!==(r=n.attribute)&&void 0!==r&&r;return eE(null===n.token?null:new Ar(n.token),s,null!==(e=n.host)&&void 0!==e&&e,null!==(i=n.optional)&&void 0!==i&&i,null!==(o=n.self)&&void 0!==o&&o,null!==(a=n.skipSelf)&&void 0!==a&&a)}function eE(n,r,e,i,o,a){return{token:n,attributeNameType:r?on("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function X6(n,r,e){var i=function m8(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a-1?1:1e3;return parseFloat(n)*r}function cE(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function Py(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function dE(n,r,e){var i=n.top,o=n.bottom,a=n.left,s=n.right;return e>=i&&e<=o&&r>=a&&r<=s}function V_(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vR(n,r,e,i){var o=n.top,a=n.right,s=n.bottom,l=n.left,h=n.width*r,g=n.height*r;return i>o-g&&il-h&&e=l._config.dragStartThreshold){var Z=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!Z)return void l._endDragSequence(u);(!z||!z.isDragging()&&!z.isReceiving())&&(u.preventDefault(),l._hasStartedDragging=!0,l._ngZone.run(function(){return l._startDragSequence(u)}))}}},this._pointerUp=function(u){l._endDragSequence(u)},this._nativeDragStart=function(u){if(l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new yR(i),s.registerDragItem(this)}return(0,j.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,En.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return W_(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var i=this;this._handles=e.map(function(a){return(0,En.fI)(a)}),this._handles.forEach(function(a){return W_(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var i=this,o=(0,En.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Iy),o.addEventListener("touchstart",i._pointerDown,TR),o.addEventListener("dragstart",i._nativeDragStart,Iy)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var i=this;return this._boundaryElement=e?(0,En.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){var e,i;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(i=this._anchor)||void 0===i||i.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),W_(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),W_(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var e,i;null===(e=this._preview)||void 0===e||e.remove(),null===(i=this._previewRef)||void 0===i||i.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var e,i;null===(e=this._placeholder)||void 0===e||e.remove(),null===(i=this._placeholderRef)||void 0===i||i.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(e),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){Ly(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),u=this._getShadowRoot();a.insertBefore(l,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),uE(o,!1,fE),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=Ly(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,bi.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),g=s?(0,Yr.yG)(i):(0,Yr.X6)(i);if(d&&d.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||g)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(q){return o._updateOnScroll(q)}),this._boundaryElement&&(this._boundaryRect=Py(this._boundaryElement));var Z=this._previewTemplate;this._pickupPositionInElement=Z&&Z.template&&!Z.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,i);var z=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:z.x,y:z.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;uE(this._rootElement,!0,fE),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(e),l=i._getDragDistance(s),u=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:l,dropPoint:s,event:e}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s,event:e}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s,e),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,i){var o=this,a=e.x,s=e.y,l=i.x,u=i.y,d=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=d,o._dropContainer.enter(o,a,s,d===o._initialContainer&&d.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:d,currentIndex:d.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,s):this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,e=this._previewTemplate,i=this.previewClass,o=e?e.template:null;if(o&&e){var s=e.matchSize?this._initialClientRect:null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=ER(l,this._document),this._previewRef=l,e.matchSize?k1(a,s):a.style.transform=Ry(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else k1(a=bR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return Ay(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},fE),W_(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(u){return a.classList.add(u)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function oU(n){var r=getComputedStyle(n),e=cE(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=cE(r,"transition-duration"),s=cE(r,"transition-delay");return gR(a[o])+gR(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(d){var h;(!d||(0,bi.sA)(d)===e._preview&&"transform"===d.propertyName)&&(null===(h=e._preview)||void 0===h||h.removeEventListener("transitionend",u),a(),clearTimeout(l))},l=setTimeout(s,1.5*o);e._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),o=ER(this._placeholderRef,this._document)):o=bR(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i,o){var a=i===this._rootElement?null:i,s=a?a.getBoundingClientRect():e,l=Ly(o)?o.targetTouches[0]:o,u=this._getViewportScrollPosition(),d=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-e.left+d,y:s.top-e.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=Ly(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var l=this._ownerSVGElement.getScreenCTM();if(l){var u=this._ownerSVGElement.createSVGPoint();return u.x=a,u.y=s,u.matrixTransform(l.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(e){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var l=this._pickupPositionInElement,u=l.x,d=l.y,h=this._boundaryRect,g=this._getPreviewRect(),C=g.width,Z=g.height,z=h.top+d,q=h.bottom-(Z-d);a=SR(a,h.left+u,h.right-(C-u)),s=SR(s,z,q)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(e){var i=e.x,o=e.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,l=Math.abs(i-s.x),u=Math.abs(o-s.y);return l>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),u>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,W_(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,Iy),e.removeEventListener("touchstart",this._pointerDown,TR),e.removeEventListener("dragstart",this._nativeDragStart,Iy)}},{key:"_applyRootElementTransform",value:function(e,i){var o=Ry(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Oy(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=null!==(o=this._previewTemplate)&&void 0!==o&&o.template?void 0:this._initialTransform,s=Ry(e,i);this._preview.style.transform=Oy(s,a)}},{key:"_getDragDistance",value:function(e){var i=this._pickupPositionOnPage;return i?{x:e.x-i.x,y:e.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,i=e.x,o=e.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(!(0===s.width&&0===s.height||0===a.width&&0===a.height)){var l=s.left-a.left,u=a.right-s.right,d=s.top-a.top,h=a.bottom-s.bottom;s.width>a.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,s.height>a.height?(d>0&&(o+=d),h>0&&(o-=h)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(e){var i=this.dragStartDelay;return"number"==typeof i?i:Ly(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,bi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&V_(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,bi.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,i){var o=this._previewContainer||"global";if("parent"===o)return e;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,En.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),n}();function Ry(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function SR(n,r,e){return Math.max(r,Math.min(e,n))}function Ly(n){return"t"===n.type[0]}function ER(n,r){var e=n.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];var i=r.createElement("div");return e.forEach(function(o){return i.appendChild(o)}),i}function k1(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=Ry(r.left,r.top)}function Zy(n,r){return Math.max(0,Math.min(r,n))}var uU=function(){function n(r,e){(0,F.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,j.Z)(n,[{key:"start",value:function(e){this.withItems(e)}},{key:"sort",value:function(e,i,o,a){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(-1===l&&s.length>0)return null;var u="horizontal"===this.orientation,d=s.findIndex(function(ae){return ae.drag===e}),h=s[l],g=s[d].clientRect,C=h.clientRect,Z=d>l?1:-1,z=this._getItemOffsetPx(g,C,Z),q=this._getSiblingOffsetPx(d,s,Z),re=s.slice();return function pE(n,r,e){var i=Zy(r,n.length-1),o=Zy(e,n.length-1);if(i!==o){for(var a=n[i],s=o-1&&l.splice(u,1),h&&!this._dragDropRegistry.isDragging(h)){var g=h.getRootElement();g.parentElement.insertBefore(d,g),l.splice(s,0,e)}else(0,En.fI)(this._element).appendChild(d),l.push(e);d.style.transform="",this._cacheItemPositions()}},{key:"withItems",value:function(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}},{key:"withSortPredicate",value:function(e){this._sortPredicate=e}},{key:"reset",value:function(){var e=this;this._activeDraggables.forEach(function(i){var o,a=i.getRootElement();if(a){var s=null===(o=e._itemPositions.find(function(l){return l.drag===i}))||void 0===o?void 0:o.initialTransform;a.style.transform=s||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}},{key:"getActiveItemsSnapshot",value:function(){return this._activeDraggables}},{key:"getItemIndex",value:function(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===e})}},{key:"updateOnScroll",value:function(e,i){var o=this;this._itemPositions.forEach(function(a){V_(a.clientRect,e,i)}),this._itemPositions.forEach(function(a){var s=a.drag;o._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()})}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:Py(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_getItemOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=a?i.left-e.left:i.top-e.top;return-1===o&&(s+=a?i.width-e.width:i.height-e.height),s}},{key:"_getSiblingOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=i[e].clientRect,l=i[e+-1*o],u=s[a?"width":"height"]*o;if(l){var d=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[d]-s[h]:u+=s[d]-l.clientRect[h]}return u}},{key:"_shouldEnterAsFirstChild",value:function(e,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){var l=o[o.length-1].clientRect;return a?e>=l.right:i>=l.bottom}var u=o[0].clientRect;return a?e<=u.left:i<=u.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,i,o,a){var s=this,l="horizontal"===this.orientation,u=this._itemPositions.findIndex(function(d){var h=d.drag,g=d.clientRect;if(h===e)return!1;if(a){var C=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&C===s._previousSwap.delta)return!1}return l?i>=Math.floor(g.left)&&i=Math.floor(g.top)&&o7&&void 0!==arguments[7]?arguments[7]:{};this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u,event:d})}},{key:"withItems",value:function(e){var i=this,o=this._draggables;(this._draggables=e,e.forEach(function(s){return s._withDropContainer(i)}),this.isDragging())&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===e.indexOf(s)})?this._reset():this._sortStrategy.withItems(this._draggables));return this}},{key:"withDirection",value:function(e){return this._sortStrategy.direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._sortStrategy.orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,En.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,cn.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,i,o,a){if(!this.sortingDisabled&&this._clientRect&&vR(this._clientRect,.05,i,o)){var s=this._sortStrategy.sort(e,i,o,a);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:e})}}},{key:"_startScrollingIfNecessary",value:function(e,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,l=0;if(this._parentPositions.positions.forEach(function(C,Z){if(Z!==o._document&&C.clientRect&&!a&&vR(C.clientRect,.05,e,i)){var z=function cU(n,r,e,i){var o=Uh(r,i),a=hE(r,e),s=0,l=0;if(o){var u=n.scrollTop;1===o?u>0&&(s=1):n.scrollHeight-u>n.clientHeight&&(s=2)}if(a){var d=n.scrollLeft;1===a?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[s,l]}(Z,C.clientRect,e,i),q=(0,Yn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=Z)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),d=u.width,h=u.height,g={width:d,height:h,top:0,right:d,bottom:h,left:0};s=Uh(g,i),l=hE(g,e),a=window}a&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=a,(s||l)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,En.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,En.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,En.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&dE(this._clientRect,e,i)}},{key:"_getSiblingContainerFromPosition",value:function(e,i,o){return this._siblings.find(function(a){return a._canReceive(e,i,o)})}},{key:"_canReceive",value:function(e,i,o){if(!this._clientRect||!dE(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,En.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(e,i){var o=this,a=this._activeSiblings;!a.has(e)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(e.isDragging()){var o=e._parentPositions.handleScroll(i);o&&e._sortStrategy.updateOnScroll(o.top,o.left)}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,bi.kV)((0,En.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._sortStrategy.getActiveItemsSnapshot().filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),n}();function Uh(n,r){var e=n.top,i=n.bottom,a=.05*n.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function hE(n,r){var e=n.left,i=n.right,a=.05*n.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var mE=(0,bi.i$)({passive:!1,capture:!0}),jh=function(){function n(r,e){var i=this;(0,F.Z)(this,n),this._ngZone=r,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(o){return o.isDragging()},this.pointerMove=new On.xQ,this.pointerUp=new On.xQ,this.scroll=new On.xQ,this._preventDefaultWhileDragging=function(o){i._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=function(o){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&o.preventDefault(),i.pointerMove.next(o))},this._document=e}return(0,j.Z)(n,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var i=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,mE)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,mE)}},{key:"startDragging",value:function(e,i){var o=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var a=i.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:function(l){return o.pointerUp.next(l)},options:!0}).set("scroll",{handler:function(l){return o.scroll.next(l)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:mE}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:mE}),this._ngZone.runOutsideAngular(function(){o._globalListeners.forEach(function(s,l){o._document.addEventListener(l,s.handler,s.options)})})}}},{key:"stopDragging",value:function(e){var i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var i=this,o=[this.scroll];return e&&e!==this._document&&o.push(new oo.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(d){i._activeDragInstances.length&&a.next(d)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),Gi.T.apply(void 0,o)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(i){return e.removeDragItem(i)}),this._dropInstances.forEach(function(i){return e.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(i,o){e._document.removeEventListener(o,i.handler,i.options)}),this._globalListeners.clear()}}]),n}();jh.\u0275fac=function(r){return new(r||jh)(t.LFG(t.R0b),t.LFG(se.K0))},jh.\u0275prov=t.Yz7({token:jh,factory:jh.\u0275fac,providedIn:"root"});var _E={dragStartThreshold:5,pointerDirectionChangeThreshold:5},zf=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,j.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_E;return new sU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new AR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();zf.\u0275fac=function(r){return new(r||zf)(t.LFG(se.K0),t.LFG(t.R0b),t.LFG(sa.rL),t.LFG(jh))},zf.\u0275prov=t.Yz7({token:zf,factory:zf.\u0275fac,providedIn:"root"});var Ny=new t.OlP("CDK_DRAG_PARENT"),Y_=new t.OlP("CdkDropListGroup"),K_=function(){function n(){(0,F.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,j.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();K_.\u0275fac=function(r){return new(r||K_)},K_.\u0275dir=t.lG2({type:K_,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:Y_,useExisting:K_}])]});var OR=new t.OlP("CDK_DRAG_CONFIG");var dU=0,gE=new t.OlP("CdkDropList"),q_=function(){function n(r,e,i,o,a,s,l){var u=this;(0,F.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new On.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(dU++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.sorted=new t.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(d,h){return u.enterPredicate(d.data,h.data)},this._dropListRef.sortPredicate=function(d,h,g){return u.sortPredicate(d,h.data,g.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}return(0,j.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,En.Ig)(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,i){return e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,Oo.O)(this._dir.value),(0,Pr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,En.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?n._dropLists.find(function(u){return u.id===s}):s});if(i._group&&i._group._items.forEach(function(s){-1===o.indexOf(s)&&o.push(s)}),!i._scrollableParentsResolved){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(s){return s.getElementRef().nativeElement});i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,En.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,En.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,En.su)(i.autoScrollStep,2),e.connectedTo(o.filter(function(s){return s&&s!==i}).map(function(s){return s._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(e){var i=this;e.beforeStarted.subscribe(function(){i._syncItemsWithRef(),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:i,item:o.item.data,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:i,item:o.item.data}),i._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(o){i.sorted.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:i,item:o.item.data})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,item:o.item.data,isPointerOverContainer:o.isPointerOverContainer,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.draggingDisabled,a=e.sortingDisabled,s=e.listAutoScrollDisabled,l=e.listOrientation;this.disabled=null!=o&&o,this.sortingDisabled=null!=a&&a,this.autoScrollDisabled=null!=s&&s,this.orientation=l||"vertical",i&&(this.lockAxis=i)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),n}();q_._dropLists=[],q_.\u0275fac=function(r){return new(r||q_)(t.Y36(t.SBq),t.Y36(zf),t.Y36(t.sBO),t.Y36(sa.mF),t.Y36(nl.Is,8),t.Y36(Y_,12),t.Y36(OR,8))},q_.\u0275dir=t.lG2({type:q_,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("id",e.id),t.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[t._Bn([{provide:Y_,useValue:void 0},{provide:gE,useExisting:q_}])]});var PR=new t.OlP("CdkDragHandle"),By=function(){function n(r,e){(0,F.Z)(this,n),this.element=r,this._stateChanges=new On.xQ,this._disabled=!1,this._parentDrag=e}return(0,j.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();By.\u0275fac=function(r){return new(r||By)(t.Y36(t.SBq),t.Y36(Ny,12))},By.\u0275dir=t.lG2({type:By,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:PR,useExisting:By}])]});var IR=new t.OlP("CdkDragPlaceholder"),M1=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.templateRef=r});M1.\u0275fac=function(r){return new(r||M1)(t.Y36(t.Rgc))},M1.\u0275dir=t.lG2({type:M1,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:IR,useExisting:M1}])]});var vE=new t.OlP("CdkDragPreview"),S1=function(){function n(r){(0,F.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,j.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,En.Ig)(e)}}]),n}();S1.\u0275fac=function(r){return new(r||S1)(t.Y36(t.Rgc))},S1.\u0275dir=t.lG2({type:S1,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:vE,useExisting:S1}])]});var J_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,F.Z)(this,n),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=g,this._destroyed=new On.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new oo.y(function(Z){var z=C._dragRef.moved.pipe((0,$n.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(Z);return function(){z.unsubscribe()}}),this._dragRef=u.createDrag(r,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return(0,j.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,En.Ig)(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"setFreeDragPosition",value:function(e){this._dragRef.setFreeDragPosition(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,Ri.q)(1),(0,Pr.R)(e._destroyed)).subscribe(function(){e._updateRootElement(),e._setupHandlesListener(),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})})}},{key:"ngOnChanges",value:function(e){var i=e.rootElementSelector,o=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){var e=this;this.dropContainer&&this.dropContainer.removeItem(this);var i=n._dragInstances.indexOf(this);i>-1&&n._dragInstances.splice(i,1),this._ngZone.runOutsideAngular(function(){e._destroyed.next(),e._destroyed.complete(),e._dragRef.dispose()})}},{key:"_updateRootElement",value:function(){var e,i=this.element.nativeElement,o=i;this.rootElementSelector&&(o=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||i)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,En.fI)(e):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var o=i._dir,a=i.dragStartDelay,s=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,l=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof a&&a?a:(0,En.su)(a),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(l).withPreviewContainer(i.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,Ri.q)(1)).subscribe(function(){var o;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var a=i.element.nativeElement.parentElement;a;){if(a.classList.contains("cdk-drag")){e.withParent((null===(o=n._dragInstances.find(function(s){return s.element.nativeElement===a}))||void 0===o?void 0:o._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var i=this;e.started.subscribe(function(o){i.started.emit({source:i,event:o.event}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(o){i.released.emit({source:i,event:o.event})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:o.container.data,item:i,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:o.container.data,item:i})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,d=e.rootElementSelector,h=e.previewContainer;this.disabled=null!=u&&u,this.dragStartDelay=o||0,i&&(this.lockAxis=i),a&&(this.constrainPosition=a),s&&(this.previewClass=s),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,Oo.O)(this._handles),(0,aa.b)(function(i){var o=i.filter(function(a){return a._parentDrag===e}).map(function(a){return a.element});e._selfHandle&&e.rootElementSelector&&o.push(e.element),e._dragRef.withHandles(o)}),(0,Po.w)(function(i){return Gi.T.apply(void 0,(0,cn.Z)(i.map(function(o){return o._stateChanges.pipe((0,Oo.O)(o))})))}),(0,Pr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),n}();J_._dragInstances=[],J_.\u0275fac=function(r){return new(r||J_)(t.Y36(t.SBq),t.Y36(gE,12),t.Y36(se.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(OR,8),t.Y36(nl.Is,8),t.Y36(zf),t.Y36(t.sBO),t.Y36(PR,10),t.Y36(Ny,12))},J_.\u0275dir=t.lG2({type:J_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,vE,5),t.Suo(i,IR,5),t.Suo(i,PR,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._previewTemplate=o.first),t.iGM(o=t.CRH())&&(e._placeholderTemplate=o.first),t.iGM(o=t.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:Ny,useExisting:J_}]),t.TTD]});var Q_=(0,j.Z)(function n(){(0,F.Z)(this,n)});Q_.\u0275fac=function(r){return new(r||Q_)},Q_.\u0275mod=t.oAB({type:Q_}),Q_.\u0275inj=t.cJS({providers:[zf],imports:[sa.ZD]});var Li=m(1314),Si=m(449),hs=m(3527),Wi=m(591),Fy=m(4715),qn=m(1086),RR=[[["caption"]],[["colgroup"],["col"]]];function hU(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function mU(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}function yE(n){return function(r){(0,qe.Z)(i,r);var e=(0,Be.Z)(i);function i(){var o;(0,F.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;(0,F.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(e,"-border-elem-top"),bottom:"".concat(e,"-border-elem-bottom"),left:"".concat(e,"-border-elem-left"),right:"".concat(e,"-border-elem-right")}}return(0,j.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.nodeType===u.ELEMENT_NODE){a.push(u);for(var d=0;d3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(i.some(function(z){return z})||o.some(function(z){return z}))){var l=e[0],u=l.children.length,d=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(d,i),g=this._getStickyEndColumnPositions(d,o),C=i.lastIndexOf(!0),Z=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Se,z="rtl"===a.direction,q=z?"right":"left",re=z?"left":"right",ae=(0,An.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,Ee=0;Ee1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var CE=new t.OlP("CDK_SPL"),tg=(0,j.Z)(function n(){(0,F.Z)(this,n)});tg.\u0275fac=function(r){return new(r||tg)},tg.\u0275dir=t.lG2({type:tg,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var Yf=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this.elementRef=e});Yf.\u0275fac=function(r){return new(r||Yf)(t.Y36(t.s_b),t.Y36(t.SBq))},Yf.\u0275dir=t.lG2({type:Yf,selectors:[["","rowOutlet",""]]});var Kf=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this.elementRef=e});Kf.\u0275fac=function(r){return new(r||Kf)(t.Y36(t.s_b),t.Y36(t.SBq))},Kf.\u0275dir=t.lG2({type:Kf,selectors:[["","headerRowOutlet",""]]});var qf=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this.elementRef=e});qf.\u0275fac=function(r){return new(r||qf)(t.Y36(t.s_b),t.Y36(t.SBq))},qf.\u0275dir=t.lG2({type:qf,selectors:[["","footerRowOutlet",""]]});var Jf=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.viewContainer=r,this.elementRef=e});Jf.\u0275fac=function(r){return new(r||Jf)(t.Y36(t.s_b),t.Y36(t.SBq))},Jf.\u0275dir=t.lG2({type:Jf,selectors:[["","noDataRowOutlet",""]]});t.a5r;var zc=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,F.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=g,this._ngZone=C,this._onDestroy=new On.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new Wi.X({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,j.Z)(n,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=(0,En.Ig)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=(0,En.Ig)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(i,o){return e.trackBy?e.trackBy(o.dataIndex,o.data):o}),this._viewportRuler.change().pipe((0,Pr.R)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;var i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,Si.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var i=this._dataDiffer.diff(this._renderRows);if(!i)return this._updateNoDataRow(),void this.contentChanged.next();var o=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,o,function(a,s,l){return e._getEmbeddedViewArgs(a.item,l)},function(a){return a.item.data},function(a){1===a.operation&&a.context&&e._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(function(a){o.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ri.q)(1),(0,Pr.R)(this._onDestroy)).subscribe(function(){e.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");var a=this._headerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,a,"top"),this._headerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");var a=this._footerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,a,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,a),this._footerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,i=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,cn.Z)(i),(0,cn.Z)(o),(0,cn.Z)(a)),["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach(function(s,l){e._addStickyColumnStyles([s],e._headerRowDefs[l])}),this._rowDefs.forEach(function(s){for(var l=[],u=0;u0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(i,o){return e._renderRow(e._headerRowOutlet,i,o)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(i,o){return e._renderRow(e._footerRowOutlet,i,o)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,i){var o=this,a=Array.from(i.columns||[]).map(function(u){return o._columnDefsByName.get(u)}),s=a.map(function(u){return u.sticky}),l=a.map(function(u){return u.stickyEnd});this._stickyStyler.updateStickyColumns(e,s,l,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:{},s=e.viewContainer.createEmbeddedView(i.template,a,o);return this._renderCellTemplateForItem(i,a),s}},{key:"_renderCellTemplateForItem",value:function(e,i){var a,o=(0,An.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;kl.mostRecentCellOutlet&&kl.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i)}}catch(l){o.e(l)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,i=0,o=e.length;i open-instant",(0,Zt.jt)("0ms")),(0,Zt.eR)("void <=> open, open-instant => void",(0,Zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var kE=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function GR(){return!1}}),O1=new t.OlP("MAT_DRAWER_CONTAINER");var Iu=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,j.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(sa.PQ);Iu.\u0275fac=function(r){return new(r||Iu)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return ig})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},Iu.\u0275cmp=t.Xpm({type:Iu,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:sa.PQ,useExisting:Iu}]),t.qOj],ngContentSelectors:A1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var $f=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,F.Z)(this,n),this._elementRef=r,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new On.xQ,this._animationEnd=new On.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,$r.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,D1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,$r.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,$r.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,D1.h)(void 0)),this._destroyed=new On.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new On.xQ,this.openedChange.subscribe(function(h){h?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus(d._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,Xf.R)(d._elementRef.nativeElement,"keydown").pipe((0,$r.h)(function(h){return h.keyCode===Tr.hY&&!d.disableClose&&!(0,Tr.Vb)(h)}),(0,Pr.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,ts.x)(function(h,g){return h.fromState===g.fromState&&h.toState===g.toState})).subscribe(function(h){var g=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===g||"void"===C&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,j.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=(0,En.Ig)(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e},set:function(e){("true"===e||"false"===e||null==e)&&(e=(0,En.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,En.Ig)(e))}},{key:"_forceFocus",value:function(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var o=function a(){e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}},{key:"_focusByCssSelector",value:function(e,i){var o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}},{key:"_takeFocus",value:function(){var e=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(o){!o&&"function"==typeof e._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;e&&i&&(this._openedVia=i);var o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}},{key:"_setOpen",value:function(e,i,o){var a=this;return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(function(s){a.openedChange.pipe((0,Ri.q)(1)).subscribe(function(l){return s(l?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(e){var i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),n}();$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(se.K0,8),t.Y36(O1,8))},$f.\u0275cmp=t.Xpm({type:$f,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(hY,5),2&r)&&(t.iGM(i=t.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&t.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(t.uIk("align",null),t.d8E("@transform",e._animationState),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:A1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[sa.PQ],encapsulation:2,data:{animation:[HR.transformDrawer]},changeDetection:0});var ig=function(){function n(r,e,i,o,a){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,F.Z)(this,n),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new t.n_E,this.backdropClick=new t.vpe,this._destroyed=new On.xQ,this._doCheckSubject=new On.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new On.xQ,r&&r.change.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,j.Z)(n,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=(0,En.Ig)(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:(0,En.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,Oo.O)(this._allDrawers),(0,Pr.R)(this._destroyed)).subscribe(function(i){e._drawers.reset(i.filter(function(o){return!o._container||o._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Oo.O)(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(i){e._watchDrawerToggle(i),e._watchDrawerPosition(i),e._watchDrawerMode(i)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,rg.b)(10),(0,Pr.R)(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,i=0,o=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var a=this._left._getWidth();i+=a,o-=a}if(this._right&&this._right.opened)if("side"==this._right.mode)o+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();o+=s,i-=s}o=o||null,((i=i||null)!==this._contentMargins.left||o!==this._contentMargins.right)&&(this._contentMargins={left:i,right:o},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var i=this;e._animationStarted.pipe((0,$r.h)(function(o){return o.fromState!==o.toState}),(0,Pr.R)(this._drawers.changes)).subscribe(function(o){"open-instant"!==o.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe((0,Pr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Pr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Pr.R)((0,Gi.T)(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?(e._end,e._end=i):(e._start,e._start=i)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&e._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),n}();ig.\u0275fac=function(r){return new(r||ig)(t.Y36(nl.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(sa.rL),t.Y36(kE),t.Y36(t.QbO,8))},ig.\u0275cmp=t.Xpm({type:ig,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Iu,5),t.Suo(i,$f,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Iu,5),2&r)&&(t.iGM(i=t.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[t._Bn([{provide:O1,useExisting:ig}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(UR),t.YNc(0,mY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,FR,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.O5,Iu],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var ep=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){return(0,F.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,j.Z)(e)}(Iu);ep.\u0275fac=function(r){return new(r||ep)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return tp})),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.R0b))},ep.\u0275cmp=t.Xpm({type:ep,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:sa.PQ,useExisting:ep}]),t.qOj],ngContentSelectors:A1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var og=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,j.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,En.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,En.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,En.su)(o)}}]),e}($f);og.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(og)))(e||og)}}(),og.\u0275cmp=t.Xpm({type:og,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(t.uIk("align",null),t.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[t.qOj],ngContentSelectors:A1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[sa.PQ],encapsulation:2,data:{animation:[HR.transformDrawer]},changeDetection:0});var tp=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(ig);tp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tp)))(e||tp)}}(),tp.\u0275cmp=t.Xpm({type:tp,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ep,5),t.Suo(i,og,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[t._Bn([{provide:O1,useExisting:tp}]),t.qOj],ngContentSelectors:["mat-sidenav","mat-sidenav-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(MU),t.YNc(0,TU,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,wE,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[se.O5,ep],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var pc=(0,j.Z)(function n(){(0,F.Z)(this,n)});pc.\u0275fac=function(r){return new(r||pc)},pc.\u0275mod=t.oAB({type:pc}),pc.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,sa.ZD,sa.ZD,Gt.BQ]});function TE(n){return new t.vHH(3e3,!1)}function $R(n){return new t.vHH(3502,!1)}function NU(){return new t.vHH(3300,!1)}function BU(n){return new t.vHH(3504,!1)}function I1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vh(n){switch(n.length){case 0:return new Zt.ZN;case 1:return n[0];default:return new Zt.ZE(n)}}function R1(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=[],l=[],u=-1,d=null;if(i.forEach(function(h){var g=h.get("offset"),C=g==u,Z=C&&d||new Map;h.forEach(function(z,q){var re=q,ae=z;if("offset"!==q)switch(re=r.normalizePropertyName(re,s),ae){case Zt.k1:ae=o.get(q);break;case Zt.l3:ae=a.get(q);break;default:ae=r.normalizeStyleValue(q,re,ae,s)}Z.set(re,ae)}),C||l.push(Z),d=Z,u=g}),s.length)throw $R();return l}function L1(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&SE(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&SE(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&SE(e,"destroy",n))})}}function SE(n,r,e){var i=e.totalTime,o=!!e.disabled,a=Z1(n.element,n.triggerName,n.fromState,n.toState,r||n.phaseName,null==i?n.totalTime:i,o),s=n._data;return null!=s&&(a._data=s),a}function Z1(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:n,triggerName:r,fromState:e,toState:i,phaseName:o,totalTime:a,disabled:!!s}}function Ru(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function rL(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var np=function(r,e){return!1},iL=function(r,e,i){return[]},Hy=null;function EE(n){var r=n.parentNode||n.host;return r===Hy?null:r}(I1()||"undefined"!=typeof Element)&&(function nL(){return"undefined"!=typeof window&&void 0!==window.document}()?(Hy=function(){return document.documentElement}(),np=function(r,e){for(;e;){if(e===r)return!0;e=EE(e)}return!1}):np=function(r,e){return r.contains(e)},iL=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var rp=null,oL=!1;function ag(n){rp||(rp=function TY(){return"undefined"!=typeof document?document.body:null}()||{},oL=!!rp.style&&"WebkitAppearance"in rp.style);var r=!0;rp.style&&!function wY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in rp.style)&&oL)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in rp.style);return r}var aL=np,xE=iL;var sg=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"validateStyleProperty",value:function(e){return ag(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return aL(e,i)}},{key:"getParentElement",value:function(e){return EE(e)}},{key:"query",value:function(e,i,o){return xE(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return o||""}},{key:"animate",value:function(e,i,o,a,s){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new Zt.ZN(o,a)}}]),n}();sg.\u0275fac=function(r){return new(r||sg)},sg.\u0275prov=t.Yz7({token:sg,factory:sg.\u0275fac});var Tl=(0,j.Z)(function n(){(0,F.Z)(this,n)});Tl.NOOP=new sg;var Wc="ng-enter",DE="ng-leave",lg="ng-trigger",B1=".ng-trigger",sL="ng-animating",Gy=".ng-animating";function Vc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:F1(parseFloat(r[1]),r[2])}function F1(n,r){return"s"===r?1e3*n:n}function U1(n,r,e){return n.hasOwnProperty("duration")?n:function lL(n,r,e){var o,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,a=0,s="";if("string"==typeof n){var l=n.match(i);if(null===l)return r.push(TE()),{duration:0,delay:0,easing:""};o=F1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=F1(parseFloat(u),l[4]));var d=l[5];d&&(s=d)}else o=n;if(!e){var h=!1,g=r.length;o<0&&(r.push(function ME(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function EU(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,TE())}return{duration:o,delay:a,easing:s}}(n,r,e)}function ug(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach(function(e){r[e]=n[e]}),r}function Yh(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Kh(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return Yh(r)}):[]}function Lu(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,e=arguments.length>2?arguments[2]:void 0;if(e){var o,i=(0,An.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];r.set(s,l)}}catch(Z){i.e(Z)}finally{i.f()}}var d,u=(0,An.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Yn.Z)(d.value,2),g=h[0],C=h[1];r.set(g,C)}}catch(Z){u.e(Z)}finally{u.f()}return r}function hc(n,r,e){return e?r+":"+e+";":""}function AE(n){for(var r="",e=0;e *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i) *"}}(n,e);if("function"==typeof i)return void r.push(i);n=i}var o=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return e.push(function QR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(JU(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(JU(l,a))}(i,e,r)}):e.push(n),e}var IE=new Set(["true","1"]),G1=new Set(["false","0"]);function JU(n,r){var e=IE.has(n)||G1.has(n),i=IE.has(r)||G1.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?IE.has(n):G1.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?IE.has(r):G1.has(r)),s&&l}}var QU=":self",vL=new RegExp("s*".concat(":self","s*,?"),"g");function z1(n,r,e,i){return new XU(n).build(r,e,i)}var XU=function(){function n(r){(0,F.Z)(this,n),this._driver=r}return(0,j.Z)(n,[{key:"build",value:function(e,i,o){var a=new EY(i);return this._resetContextStyleTimingState(a),Nu(this,zy(e),a)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}},{key:"visitTrigger",value:function(e,i){var o=this,a=i.queryCount=0,s=i.depCount=0,l=[],u=[];return"@"==e.name.charAt(0)&&i.errors.push(function zR(){return new t.vHH(3006,!1)}()),e.definitions.forEach(function(d){if(o._resetContextStyleTimingState(i),0==d.type){var h=d,g=h.name;g.toString().split(/\s*,\s*/).forEach(function(Z){h.name=Z,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var C=o.visitTransition(d,i);a+=C.queryCount,s+=C.depCount,u.push(C)}else i.errors.push(function WR(){return new t.vHH(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:a,depCount:s,options:null}}},{key:"visitState",value:function(e,i){var o=this.visitStyle(e.styles,i),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){var s=new Set,l=a||{};if(o.styles.forEach(function(d){d instanceof Map&&d.forEach(function(h){uL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){j1(s.values());i.errors.push(function VR(n,r){return new t.vHH(3008,!1)}(e.name))}}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}},{key:"visitTransition",value:function(e,i){i.queryCount=0,i.depCount=0;var o=Nu(this,zy(e.animation),i);return{type:1,matchers:qU(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:qh(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return Nu(o,a,i)}),options:qh(e.options)}}},{key:"visitGroup",value:function(e,i){var o=this,a=i.currentTime,s=0,l=e.steps.map(function(u){i.currentTime=a;var d=Nu(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:qh(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function DY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return Ky(U1(n,r).duration,0,"")}var i=n,o=i.split(/\s+/).some(function(l){return"{"==l.charAt(0)&&"{"==l.charAt(1)});if(o){var a=Ky(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=U1(i,r);return Ky(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Zt.oB)({});if(5==s.type)a=this.visitKeyframes(s,i);else{var l=e.styles,u=!1;if(!l){u=!0;var d={};o.easing&&(d.easing=o.easing),l=(0,Zt.oB)(d)}i.currentTime+=o.duration+o.delay;var h=this.visitStyle(l,i);h.isEmptyStep=u,a=h}return i.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}},{key:"visitStyle",value:function(e,i){var o=this._makeStyleAst(e,i);return this._validateStyleAst(o,i),o}},{key:"_makeStyleAst",value:function(e,i){var l,o=[],a=Array.isArray(e.styles)?e.styles:[e.styles],s=(0,An.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Zt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(Yh(u))}}catch(g){s.e(g)}finally{s.f()}var d=!1,h=null;return o.forEach(function(g){if(g instanceof Map&&(g.has("easing")&&(h=g.get("easing"),g.delete("easing")),!d)){var Z,C=(0,An.Z)(g.values());try{for(C.s();!(Z=C.n()).done;){if(Z.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){C.e(q)}finally{C.f()}}}),{type:6,styles:o,easing:h,offset:e.offset,containsDynamicStyles:d,options:null}}},{key:"_validateStyleAst",value:function(e,i){var a=i.currentAnimateTimings,s=i.currentTime,l=i.currentTime;a&&l>0&&(l-=a.duration+a.delay),e.styles.forEach(function(u){"string"!=typeof u&&u.forEach(function(d,h){var g=i.collectedStyles.get(i.currentQuerySelector),C=g.get(h),Z=!0;C&&(l!=s&&l>=C.startTime&&s<=C.endTime&&(i.errors.push(function YR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,C.startTime,C.endTime)),Z=!1),l=C.startTime),Z&&g.set(h,{startTime:l,endTime:s}),i.options&&SY(d,i.options,i.errors)})})}},{key:"visitKeyframes",value:function(e,i){var o=this,a={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function IU(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,C=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ke=null!=Ee.offset?Ee.offset:function xY(n){if("string"==typeof n)return null;var r=null;if(Array.isArray(n))n.forEach(function(i){if(i instanceof Map&&i.has("offset")){var o=i;r=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){var e=n;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(Ee.styles),st=0;return null!=Ke&&(l++,st=Ee.offset=Ke),h=h||st<0||st>1,d=d||st0&&l0?Ee==q?1:z*Ee:u[Ee],st=Ke*Se;i.currentTime=re+ae.delay+st,ae.duration=st,o._validateStyleAst(Ce,i),Ce.offset=Ke,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:Nu(this,zy(e.animation),i),options:qh(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:qh(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:qh(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function $U(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==QU});return r&&(n=n.replace(vL,"")),n=n.replace(/@\*/g,B1).replace(/@\w+/g,function(e){return B1+"-"+e.slice(1)}).replace(/:animating/g,Gy),[n,r]}(e.selector),l=(0,Yn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,Ru(i.collectedStyles,i.currentQuerySelector,new Map);var h=Nu(this,zy(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:d,animation:h,originalSelector:e.selector,options:qh(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function qR(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:U1(e.timings,i.errors,!0);return{type:12,animation:Nu(this,zy(e.animation),i),timings:o,options:null}}}]),n}();var EY=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set});function qh(n){return n?(n=ug(n)).params&&(n.params=function e7(n){return n?ug(n):null}(n.params)):n={},n}function Ky(n,r,e){return{duration:n,delay:r,easing:e}}function bL(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:n,keyframes:r,preStyleProps:e,postStyleProps:i,duration:o,delay:a,totalTime:o+a,easing:s,subTimeline:l}}var RE=function(){function n(){(0,F.Z)(this,n),this._map=new Map}return(0,j.Z)(n,[{key:"get",value:function(e){return this._map.get(e)||[]}},{key:"append",value:function(e,i){var o,a=this._map.get(e);a||this._map.set(e,a=[]),(o=a).push.apply(o,(0,cn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),CL=new RegExp(":enter","g"),ZE=new RegExp(":leave","g");function t7(n,r,e,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Map,l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new NE).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var NE=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"buildKeyframes",value:function(e,i,o,a,s,l,u,d,h){var g=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];h=h||new RE;var C=new wL(e,i,h,a,s,g,[]);C.options=d;var Z=d.delay?Vc(d.delay):0;C.currentTimeline.delayNextStep(Z),C.currentTimeline.setStyles([l],null,C.errors,d),Nu(this,o,C);var z=C.timelines.filter(function(Se){return Se.containsAnimation()});if(z.length&&u.size){for(var q,re=z.length-1;re>=0;re--){var ae=z[re];if(ae.element===i){q=ae;break}}q&&!q.allowOnlyTimelineStyles()&&q.setStyles([u],null,C.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[bL(i,[],[],[],0,Z,"",!1)]}},{key:"visitTrigger",value:function(e,i){}},{key:"visitState",value:function(e,i){}},{key:"visitTransition",value:function(e,i){}},{key:"visitAnimateChild",value:function(e,i){var o=i.subInstructions.get(i.element);if(o){var a=i.createSubContext(e.options),s=i.currentTimeline.currentTime,l=this._visitSubInstructions(o,a,a.options);s!=l&&i.transformIntoNewTimeline(l)}i.previousNode=e}},{key:"visitAnimateRef",value:function(e,i){var o=i.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,o),this.visitReference(e.animation,o),i.transformIntoNewTimeline(o.currentTimeline.currentTime),i.previousNode=e}},{key:"_applyAnimationRefDelays",value:function(e,i,o){var a,l,s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null==u?void 0:u.delay;if(d){var h="number"==typeof d?d:Vc(Wy(d,null!==(a=null==u?void 0:u.params)&&void 0!==a?a:{},i.errors));o.delayNextStep(h)}}}catch(g){s.e(g)}finally{s.f()}}},{key:"_visitSubInstructions",value:function(e,i,o){var s=i.currentTimeline.currentTime,l=null!=o.duration?Vc(o.duration):null,u=null!=o.delay?Vc(o.delay):null;return 0!==l&&e.forEach(function(d){var h=i.appendInstructionToTimeline(d,l,u);s=Math.max(s,h.duration+h.delay)}),s}},{key:"visitReference",value:function(e,i){i.updateOptions(e.options,!0),Nu(this,e.animation,i),i.previousNode=e}},{key:"visitSequence",value:function(e,i){var o=this,a=i.subContextCount,s=i,l=e.options;if(l&&(l.params||l.delay)&&((s=i.createSubContext(l)).transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=cg);var u=Vc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return Nu(o,d,s)}),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>a&&s.transformIntoNewTimeline()),i.previousNode=e}},{key:"visitGroup",value:function(e,i){var o=this,a=[],s=i.currentTimeline.currentTime,l=e.options&&e.options.delay?Vc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),Nu(o,u,d),s=Math.max(s,d.currentTimeline.currentTime),a.push(d.currentTimeline)}),a.forEach(function(u){return i.currentTimeline.mergeTimelineCollectedStyles(u)}),i.transformIntoNewTimeline(s),i.previousNode=e}},{key:"_visitTiming",value:function(e,i){if(e.dynamic){var o=e.strValue;return U1(i.params?Wy(o,i.params,i.errors):o,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,i){var o=i.currentAnimateTimings=this._visitTiming(e.timings,i),a=i.currentTimeline;o.delay&&(i.incrementTime(o.delay),a.snapshotCurrentStyles());var s=e.style;5==s.type?this.visitKeyframes(s,i):(i.incrementTime(o.duration),this.visitStyle(s,i),a.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}},{key:"visitStyle",value:function(e,i){var o=i.currentTimeline,a=i.currentAnimateTimings;!a&&o.hasCurrentStyleProperties()&&o.forwardFrame();var s=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(s):o.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}},{key:"visitKeyframes",value:function(e,i){var o=i.currentAnimateTimings,a=i.currentTimeline.duration,s=o.duration,u=i.createSubContext().currentTimeline;u.easing=o.easing,e.styles.forEach(function(d){var h=d.offset||0;u.forwardTime(h*s),u.setStyles(d.styles,d.easing,i.errors,i.options),u.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(u),i.transformIntoNewTimeline(a+s),i.previousNode=e}},{key:"visitQuery",value:function(e,i){var o=this,a=i.currentTimeline.currentTime,s=e.options||{},l=s.delay?Vc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cg);var u=a,d=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=d.length;var h=null;d.forEach(function(g,C){i.currentQueryIndex=C;var Z=i.createSubContext(e.options,g);l&&Z.delayNextStep(l),g===i.element&&(h=Z.currentTimeline),Nu(o,e.animation,Z),Z.currentTimeline.applyStylesToKeyframe();var z=Z.currentTimeline.currentTime;u=Math.max(u,z)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(u),h&&(i.currentTimeline.mergeTimelineCollectedStyles(h),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}},{key:"visitStagger",value:function(e,i){var o=i.parentContext,a=i.currentTimeline,s=e.timings,l=Math.abs(s.duration),u=l*(i.currentQueryTotal-1),d=l*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=o.currentStaggerTime}var g=i.currentTimeline;d&&g.delayNextStep(d);var C=g.currentTime;Nu(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-C+(a.startTime-o.currentTimeline.startTime)}}]),n}(),cg={},wL=function(){function n(r,e,i,o,a,s,l,u){(0,F.Z)(this,n),this._driver=r,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new n7(this._driver,e,0),l.push(this.currentTimeline)}return(0,j.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,i){var o=this;if(e){var a=e,s=this.options;null!=a.duration&&(s.duration=Vc(a.duration)),null!=a.delay&&(s.delay=Vc(a.delay));var l=a.params;if(l){var u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(function(d){(!i||!u.hasOwnProperty(d))&&(u[d]=Wy(l[d],u,o.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var i=this.options.params;if(i){var o=e.params={};Object.keys(i).forEach(function(a){o[a]=i[a]})}}return e}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=i||this.element,s=new n(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=cg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,i,o){var a={duration:null!=i?i:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},s=new OY(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(s),a}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,i,o,a,s,l){var u=[];if(a&&u.push(this.element),e.length>0){e=(e=e.replace(CL,"."+this._enterClassName)).replace(ZE,"."+this._leaveClassName);var d=1!=o,h=this._driver.query(this.element,e,d);0!==o&&(h=o<0?h.slice(h.length+o,h.length):h.slice(0,o)),u.push.apply(u,(0,cn.Z)(h))}return!s&&0==u.length&&l.push(function JR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),n7=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._driver=r,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return(0,j.Z)(n,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}},{key:"hasCurrentStyleProperties",value:function(){return this._currentKeyframe.size>0}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){e&&this._previousKeyframe.set("easing",e);var o,i=(0,An.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Yn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Zt.l3),this._currentKeyframe.set(s,Zt.l3)}}catch(u){i.e(u)}finally{i.f()}this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,i,o,a){var s;i&&this._previousKeyframe.set("easing",i);var h,l=a&&a.params||{},u=function PY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Zt.l3)}}catch(u){a.e(u)}finally{a.f()}}else Lu(o,e)}),e}(e,this._globalTimelineStyles),d=(0,An.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Yn.Z)(h.value,2),C=g[0],z=Wy(g[1],l,o);this._pendingStyles.set(C,z),this._localTimelineStyles.has(C)||this._backFill.set(C,null!==(s=this._globalTimelineStyles.get(C))&&void 0!==s?s:Zt.l3),this._updateStyle(C,z)}}catch(q){d.e(q)}finally{d.f()}}},{key:"applyStylesToKeyframe",value:function(){var e=this;0!=this._pendingStyles.size&&(this._pendingStyles.forEach(function(i,o){e._currentKeyframe.set(o,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach(function(i,o){e._currentKeyframe.has(o)||e._currentKeyframe.set(o,i)}))}},{key:"snapshotCurrentStyles",value:function(){var i,e=(0,An.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Yn.Z)(i.value,2),a=o[0],s=o[1];this._pendingStyles.set(a,s),this._updateStyle(a,s)}}catch(l){e.e(l)}finally{e.f()}}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var i in this._currentKeyframe)e.push(i);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var i=this;e._styleSummary.forEach(function(o,a){var s=i._styleSummary.get(a);(!s||o.time>s.time)&&i._updateStyle(a,o.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var i=new Set,o=new Set,a=1===this._keyframes.size&&0===this.duration,s=[];this._keyframes.forEach(function(g,C){var Z=Lu(g,new Map,e._backFill);Z.forEach(function(z,q){z===Zt.k1?i.add(q):z===Zt.l3&&o.add(q)}),a||Z.set("offset",C/e.duration),s.push(Z)});var l=i.size?j1(i.values()):[],u=o.size?j1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return bL(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),OY=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,F.Z)(this,e),(d=r.call(this,i,o,u.delay)).keyframes=a,d.preStyleProps=s,d.postStyleProps=l,d._stretchStartingKeyframe=h,d.timings={duration:u.duration,delay:u.delay,easing:u.easing},d}return(0,j.Z)(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var o=this.keyframes,a=this.timings,s=a.delay,l=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&s){var d=[],h=l+s,g=s/h,C=Lu(o[0]);C.set("offset",0),d.push(C);var Z=Lu(o[0]);Z.set("offset",r7(g)),d.push(Z);for(var z=o.length-1,q=1;q<=z;q++){var re=Lu(o[q]),Se=s+re.get("offset")*l;re.set("offset",r7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return bL(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(n7);function r7(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=Math.pow(10,r-1);return Math.round(n*e)/e}var BE=(0,j.Z)(function n(){(0,F.Z)(this,n)}),o7=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),a7=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return dL(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(o7.has(a)&&0!==s&&"0"!==s)if("number"==typeof s)u="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&l.push(function AU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(BE);function FE(n,r,e,i,o,a,s,l,u,d,h,g,C){return{type:0,element:n,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:l,queriedElements:u,preStyleProps:d,postStyleProps:h,totalTime:g,errors:C}}var W1={},UE=function(){function n(r,e,i){(0,F.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,j.Z)(n,[{key:"match",value:function(e,i,o,a){return function s7(n,r,e,i,o){return n.some(function(a){return a(r,e,i,o)})}(this.ast.matchers,e,i,o,a)}},{key:"buildStyles",value:function(e,i,o){var a=this._stateStyles.get("*");return void 0!==e&&(a=this._stateStyles.get(null==e?void 0:e.toString())||a),a?a.buildStyles(i,o):new Map}},{key:"build",value:function(e,i,o,a,s,l,u,d,h,g){var C,Z=[],z=this.ast.options&&this.ast.options.params||W1,q=u&&u.params||W1,re=this.buildStyles(o,q,Z),ae=d&&d.params||W1,Se=this.buildStyles(a,ae,Z),Ce=new Set,Ee=new Map,Ke=new Map,st="void"===a,Ae={params:kL(ae,z),delay:null===(C=this.ast.options)||void 0===C?void 0:C.delay},it=g?[]:t7(e,i,this.ast.animation,s,l,re,Se,Ae,h,Z),ft=0;if(it.forEach(function($e){ft=Math.max($e.duration+$e.delay,ft)}),Z.length)return FE(i,this._triggerName,o,a,st,re,Se,[],[],Ee,Ke,ft,Z);it.forEach(function($e){var Ie=$e.element,ct=Ru(Ee,Ie,new Set);$e.preStyleProps.forEach(function(jt){return ct.add(jt)});var Bt=Ru(Ke,Ie,new Set);$e.postStyleProps.forEach(function(jt){return Bt.add(jt)}),Ie!==i&&Ce.add(Ie)});var bt=j1(Ce.values());return FE(i,this._triggerName,o,a,st,re,Se,it,bt,Ee,Ke,ft)}}]),n}();function kL(n,r){var e=ug(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var qy=function(){function n(r,e,i){(0,F.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,j.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=ug(this.defaultParams);return Object.keys(e).forEach(function(l){var u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(function(l){"string"!=typeof l&&l.forEach(function(u,d){u&&(u=Wy(u,s,i));var h=o.normalizer.normalizePropertyName(d,i);u=o.normalizer.normalizeStyleValue(d,h,u,i),a.set(h,u)})}),a}}]),n}();var TL=function(){function n(r,e,i){var o=this;(0,F.Z)(this,n),this.name=r,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(function(a){var s=a.options&&a.options.params||{};o.states.set(a.name,new qy(a.style,s,i))}),ML(this.states,"true","1"),ML(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new UE(r,a,o.states))}),this.fallbackTransition=function Jy(n,r,e){return new UE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(s,l){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states,this._normalizer)}return(0,j.Z)(n,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,i,o,a){return this.transitionFactories.find(function(l){return l.match(e,i,o,a)})||null}},{key:"matchStyles",value:function(e,i,o){return this.fallbackTransition.buildStyles(e,i,o)}}]),n}();function ML(n,r,e){n.has(r)?n.has(e)||n.set(e,n.get(r)):n.has(e)&&n.set(r,n.get(e))}var l7=new RE,ZY=function(){function n(r,e,i){(0,F.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,j.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=z1(this._driver,i,o,a);if(o.length)throw function eL(n){return new t.vHH(3503,!1)}();a.length,this._animations.set(e,s)}},{key:"_buildPlayer",value:function(e,i,o){var a=e.element,s=R1(this._driver,this._normalizer,a,e.keyframes,i,o);return this._driver.animate(a,s,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,i){var u,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],l=this._animations.get(e),d=new Map;if(l?(u=t7(this._driver,i,l,Wc,DE,new Map,new Map,a,l7,s)).forEach(function(C){var Z=Ru(d,C.element,new Map);C.postStyleProps.forEach(function(z){return Z.set(z,null)})}):(s.push(NU()),u=[]),s.length)throw BU();d.forEach(function(C,Z){C.forEach(function(z,q){C.set(q,o._driver.computeStyle(Z,q,Zt.l3))})});var h=u.map(function(C){var Z=d.get(C.element);return o._buildPlayer(C,new Map,Z)}),g=Vh(h);return this._playersById.set(e,g),g.onDestroy(function(){return o.destroy(e)}),this.players.push(g),g}},{key:"destroy",value:function(e){var i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);var o=this.players.indexOf(i);o>=0&&this.players.splice(o,1)}},{key:"_getPlayer",value:function(e){var i=this._playersById.get(e);if(!i)throw function FU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=Z1(i,"","","");return L1(this._getPlayer(e),o,s,a),function(){}}},{key:"command",value:function(e,i,o,a){if("register"!=o)if("create"!=o){var l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}else{var s=a[0]||{};this.create(e,i,s)}else this.register(e,a[0])}}]),n}(),u7="ng-animate-queued",op="ng-animate-disabled",NY="ng-star-inserted",FY=[],f7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},UY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bu="__ng_removed",SL=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,F.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=f(o),i){var a=ug(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,j.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var i=e.params;if(i){var o=this.options.params;Object.keys(i).forEach(function(a){null==o[a]&&(o[a]=i[a])})}}}]),n}(),V1="void",EL=new SL(V1),jY=function(){function n(r,e,i){(0,F.Z)(this,n),this.id=r,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ee(e,this._hostClassName)}return(0,j.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function UU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function jU(n){return new t.vHH(3303,!1)}();if(!function _(n){return"start"==n||"done"==n}(o))throw function HU(n,r){return new t.vHH(3400,!1)}();var l=Ru(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=Ru(this._engine.statesByElement,e,new Map);return d.has(i)||(ee(e,lg),ee(e,lg+"-"+i),d.set(i,EL)),function(){s._engine.afterFlush(function(){var h=l.indexOf(u);h>=0&&l.splice(h,1),s._triggers.has(i)||d.delete(i)})}}},{key:"register",value:function(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}},{key:"_getTrigger",value:function(e){var i=this._triggers.get(e);if(!i)throw function GU(n){return new t.vHH(3401,!1)}();return i}},{key:"trigger",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=this._getTrigger(i),u=new xL(this.id,i,e),d=this._engine.statesByElement.get(e);d||(ee(e,lg),ee(e,lg+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new SL(o,this.id),C=o&&o.hasOwnProperty("value");!C&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=EL);var Z=g.value===V1;if(Z||h.value!==g.value){var ae=Ru(this._engine.playersByElement,e,[]);ae.forEach(function(Ee){Ee.namespaceId==a.id&&Ee.triggerName==i&&Ee.queued&&Ee.destroy()});var Se=l.matchTransition(h.value,g.value,e,g.params),Ce=!1;if(!Se){if(!s)return;Se=l.fallbackTransition,Ce=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:Se,fromState:h,toState:g,player:u,isFallbackTransition:Ce}),Ce||(ee(e,u7),u.onStart(function(){oe(e,u7)})),u.onDone(function(){var Ee=a.players.indexOf(u);Ee>=0&&a.players.splice(Ee,1);var Ke=a._engine.playersByElement.get(e);if(Ke){var st=Ke.indexOf(u);st>=0&&Ke.splice(st,1)}}),this.players.push(u),ae.push(u),u}if(!dt(h.params,g.params)){var z=[],q=l.matchStyles(h.value,h.params,z),re=l.matchStyles(g.value,g.params,z);z.length?this._engine.reportError(z):this._engine.afterFlush(function(){il(e,q),Zu(e,re)})}}},{key:"deregister",value:function(e){var i=this;this._triggers.delete(e),this._engine.statesByElement.forEach(function(o){return o.delete(e)}),this._elementListeners.forEach(function(o,a){i._elementListeners.set(a,o.filter(function(s){return s.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var i=this._engine.playersByElement.get(e);i&&(i.forEach(function(o){return o.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,i){var o=this,a=this._engine.driver.query(e,B1,!0);a.forEach(function(s){if(!s[Bu]){var l=o._engine.fetchNamespacesByElement(s);l.size?l.forEach(function(u){return u.triggerLeaveAnimation(s,i,!1,!0)}):o.clearElementCache(s)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(s){return o.clearElementCache(s)})})}},{key:"triggerLeaveAnimation",value:function(e,i,o,a){var s=this,l=this._engine.statesByElement.get(e),u=new Map;if(l){var d=[];if(l.forEach(function(h,g){if(u.set(g,h.value),s._triggers.has(g)){var C=s.trigger(e,g,V1,a);C&&d.push(C)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vh(d).onDone(function(){return s._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var i=this,o=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(o&&a){var s=new Set;o.forEach(function(l){var u=l.name;if(!s.has(u)){s.add(u);var h=i._triggers.get(u).fallbackTransition,g=a.get(u)||EL,C=new SL(V1),Z=new xL(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:C,player:Z,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,i){var o=this,a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),!this.triggerLeaveAnimation(e,i,!0)){var s=!1;if(a.totalAnimations){var l=a.players.length?a.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else for(var u=e;u=u.parentNode;){if(a.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)a.markElementAsRemoved(this.id,e,!1,i);else{var h=e[Bu];(!h||h===f7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){ee(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var i=this,o=[];return this._queue.forEach(function(a){var s=a.player;if(!s.destroyed){var l=a.element,u=i._elementListeners.get(l);u&&u.forEach(function(d){if(d.name==a.triggerName){var h=Z1(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,L1(a.player,d.phase,h,d.callback)}}),s.markedForDestroy?i._engine.afterFlush(function(){s.destroy()}):o.push(a)}}),this._queue=[],o.sort(function(a,s){var l=a.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:i._engine.driver.containsElement(a.element,s.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(i){return i.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var i=!1;return this._elementListeners.has(e)&&(i=!0),i=!!this._queue.find(function(o){return o.element===e})||i}}]),n}(),HY=function(){function n(r,e,i){(0,F.Z)(this,n),this.bodyNode=r,this.driver=e,this._normalizer=i,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=function(o,a){}}return(0,j.Z)(n,[{key:"_onRemovalComplete",value:function(e,i){this.onRemovalComplete(e,i)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(i){i.players.forEach(function(o){o.queued&&e.push(o)})}),e}},{key:"createNamespace",value:function(e,i){var o=new jY(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(o,i):(this.newHostElements.set(i,o),this.collectEnterElement(i)),this._namespaceLookup[e]=o}},{key:"_balanceNamespaceList",value:function(e,i){var o=this._namespaceList,a=this.namespacesByHostElement;if(o.length-1>=0){for(var l=!1,u=this.driver.getParentElement(i);u;){var d=a.get(u);if(d){var h=o.indexOf(d);o.splice(h+1,0,e),l=!0;break}u=this.driver.getParentElement(u)}l||o.unshift(e)}else o.push(e);return a.set(i,e),e}},{key:"register",value:function(e,i){var o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,i)),o}},{key:"registerTrigger",value:function(e,i,o){var a=this._namespaceLookup[e];a&&a.register(i,o)&&this.totalAnimations++}},{key:"destroy",value:function(e,i){var o=this;if(e){var a=this._fetchNamespace(e);this.afterFlush(function(){o.namespacesByHostElement.delete(a.hostElement),delete o._namespaceLookup[e];var s=o._namespaceList.indexOf(a);s>=0&&o._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(i)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var i=new Set,o=this.statesByElement.get(e);if(o){var s,a=(0,An.Z)(o.values());try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.namespaceId){var u=this._fetchNamespace(l.namespaceId);u&&i.add(u)}}}catch(d){a.e(d)}finally{a.f()}}return i}},{key:"trigger",value:function(e,i,o,a){if(p(i)){var s=this._fetchNamespace(e);if(s)return s.trigger(i,o,a),!0}return!1}},{key:"insertNode",value:function(e,i,o,a){if(p(i)){var s=i[Bu];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;var l=this.collectedLeaveElements.indexOf(i);l>=0&&this.collectedLeaveElements.splice(l,1)}if(e){var u=this._fetchNamespace(e);u&&u.insertNode(i,o)}a&&this.collectEnterElement(i)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ee(e,op)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oe(e,op))}},{key:"removeNode",value:function(e,i,o,a){if(p(i)){var s=e?this._fetchNamespace(e):null;if(s?s.removeNode(i,a):this.markElementAsRemoved(e,i,!1,a),o){var l=this.namespacesByHostElement.get(i);l&&l.id!==e&&l.removeNode(i,a)}}else this._onRemovalComplete(i,a)}},{key:"markElementAsRemoved",value:function(e,i,o,a,s){this.collectedLeaveElements.push(i),i[Bu]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:s}}},{key:"listen",value:function(e,i,o,a,s){return p(i)?this._fetchNamespace(e).listen(i,o,a,s):function(){}}},{key:"_buildInstruction",value:function(e,i,o,a,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,i,s)}},{key:"destroyInnerAnimations",value:function(e){var i=this,o=this.driver.query(e,B1,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,Gy,!0)).forEach(function(a){return i.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var i=this.playersByElement.get(e);i&&i.forEach(function(o){o.queued?o.markedForDestroy=!0:o.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var i=this.playersByQueriedElement.get(e);i&&i.forEach(function(o){return o.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(i){if(e.players.length)return Vh(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[Bu];if(a&&a.setForRemoval){if(e[Bu]=f7,a.namespaceId){this.destroyInnerAnimations(e);var s=this._fetchNamespace(a.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}!(null===(o=e.classList)||void 0===o)&&o.contains(op)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(l){i.markElementAsDisabled(l,!1)})}},{key:"flush",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,o=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(C,Z){return e._balanceNamespaceList(C,Z)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;Ie--){this._namespaceList[Ie].drainQueuedTransitions(i).forEach(function(bn){var Nn=bn.player,rr=bn.element;if(bt.push(Nn),o.collectedEnterElements.length){var gr=rr[Bu];if(gr&&gr.setForMove){if(gr.previousTriggersValues&&gr.previousTriggersValues.has(bn.triggerName)){var eo=gr.previousTriggersValues.get(bn.triggerName),Xu=o.statesByElement.get(bn.element);if(Xu&&Xu.has(bn.triggerName)){var Ov=Xu.get(bn.triggerName);Ov.value=eo,Xu.set(bn.triggerName,Ov)}}return void Nn.destroy()}}var Pv=!Z||!o.driver.containsElement(Z,rr),Xm=it.get(rr),dC=re.get(rr),Ia=o._buildInstruction(bn,a,dC,Xm,Pv);if(Ia.errors&&Ia.errors.length)$e.push(Ia);else{if(Pv)return Nn.onStart(function(){return il(rr,Ia.fromStyles)}),Nn.onDestroy(function(){return Zu(rr,Ia.toStyles)}),void s.push(Nn);if(bn.isFallbackTransition)return Nn.onStart(function(){return il(rr,Ia.fromStyles)}),Nn.onDestroy(function(){return Zu(rr,Ia.toStyles)}),void s.push(Nn);var wI=[];Ia.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||wI.push(th)}),Ia.timelines=wI,a.append(rr,Ia.timelines);var VW={instruction:Ia,player:Nn,element:rr};u.push(VW),Ia.queriedElements.forEach(function(th){return Ru(d,th,[]).push(Nn)}),Ia.preStyleProps.forEach(function(th,kI){if(th.size){var fC=h.get(kI);fC||h.set(kI,fC=new Set),th.forEach(function(eet,YW){return fC.add(YW)})}}),Ia.postStyleProps.forEach(function(th,kI){var fC=g.get(kI);fC||g.set(kI,fC=new Set),th.forEach(function(eet,YW){return fC.add(YW)})})}})}if($e.length){var Bt=[];$e.forEach(function(bn){Bt.push(function tL(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Bt)}var jt=new Map,It=new Map;u.forEach(function(bn){var Nn=bn.element;a.has(Nn)&&(It.set(Nn,Nn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,jt))}),s.forEach(function(bn){var Nn=bn.element;o._getPreviousPlayers(Nn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(gr){Ru(jt,Nn,[]).push(gr),gr.destroy()})});var Tn=Se.filter(function(bn){return kt(bn,h,g)}),Hn=new Map;P(Hn,this.driver,Ee,g,Zt.l3).forEach(function(bn){kt(bn,h,g)&&Tn.push(bn)});var ar=new Map;q.forEach(function(bn,Nn){P(ar,o.driver,new Set(bn),h,Zt.k1)}),Tn.forEach(function(bn){var Nn,rr,gr=Hn.get(bn),eo=ar.get(bn);Hn.set(bn,new Map([].concat((0,cn.Z)(Array.from(null!==(Nn=null==gr?void 0:gr.entries())&&void 0!==Nn?Nn:[])),(0,cn.Z)(Array.from(null!==(rr=null==eo?void 0:eo.entries())&&void 0!==rr?rr:[])))))});var kr=[],_r=[],Wr={};u.forEach(function(bn){var Nn=bn.element,rr=bn.player,gr=bn.instruction;if(a.has(Nn)){if(C.has(Nn))return rr.onDestroy(function(){return Zu(Nn,gr.toStyles)}),rr.disabled=!0,rr.overrideTotalTime(gr.totalTime),void s.push(rr);var eo=Wr;if(It.size>1){for(var Xu=Nn,Ov=[];Xu=Xu.parentNode;){var Pv=It.get(Xu);if(Pv){eo=Pv;break}Ov.push(Xu)}Ov.forEach(function(Ia){return It.set(Ia,eo)})}var Xm=o._buildAnimation(rr.namespaceId,gr,jt,l,ar,Hn);if(rr.setRealPlayer(Xm),eo===Wr)kr.push(rr);else{var dC=o.playersByElement.get(eo);dC&&dC.length&&(rr.parentPlayer=Vh(dC)),s.push(rr)}}else il(Nn,gr.fromStyles),rr.onDestroy(function(){return Zu(Nn,gr.toStyles)}),_r.push(rr),C.has(Nn)&&s.push(rr)}),_r.forEach(function(bn){var Nn=l.get(bn.element);if(Nn&&Nn.length){var rr=Vh(Nn);bn.setRealPlayer(rr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var jr=0;jr0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Zt.ZN(e.duration,e.delay)}}]),n}(),xL=function(){function n(r,e,i){(0,F.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Zt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,j.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return L1(e,o,void 0,a)})}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var i=this,o=this._player;o.triggerCallback&&e.onStart(function(){return o.triggerCallback("start")}),e.onDone(function(){return i.finish()}),e.onDestroy(function(){return i.destroy()})}},{key:"_queueEvent",value:function(e,i){Ru(this._queuedCallbacks,e,[]).push(i)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var i=this._player;i.triggerCallback&&i.triggerCallback(e)}}]),n}();function f(n){return null!=n?n:null}function p(n){return n&&1===n.nodeType}function w(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function P(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(w(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var C=r.computeStyle(d,g,o);h.set(g,C),(!C||0==C.length)&&(d[Bu]=UY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return w(u,a[l++])}),s}function Y(n,r){var e=new Map;if(n.forEach(function(l){return e.set(l,[])}),0==r.length)return e;var o=new Set(r),a=new Map;function s(l){if(!l)return 1;var u=a.get(l);if(u)return u;var d=l.parentNode;return u=e.has(d)?d:o.has(d)?1:s(d),a.set(l,u),u}return r.forEach(function(l){var u=s(l);1!==u&&e.get(u).push(l)}),e}function ee(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function oe(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function ve(n,r,e){Vh(e).onDone(function(){return n.processLeaveNode(r)})}function nt(n,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),n}();function _n(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Jn(r[0]),r.length>1&&(i=Jn(r[r.length-1]))):r instanceof Map&&(e=Jn(r)),e||i?new Fn(n,e,i):null}var Fn=function(){function n(r,e,i){(0,F.Z)(this,n),this._element=r,this._startStyles=e,this._endStyles=i,this._state=0;var o=n.initialStylesByElement.get(r);o||n.initialStylesByElement.set(r,o=new Map),this._initialStyles=o}return(0,j.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Zu(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Zu(this._element,this._initialStyles),this._endStyles&&(Zu(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(il(this._element,this._endStyles),this._endStyles=null),Zu(this._element,this._initialStyles),this._state=3)}}]),n}();function Jn(n){var r=null;return n.forEach(function(e,i){(function er(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}Fn.initialStylesByElement=new WeakMap;var Cn=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.element=r,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return(0,j.Z)(n,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_convertKeyframesToObject",value:function(e){var i=[];return e.forEach(function(o){i.push(Object.fromEntries(o))}),i}},{key:"_triggerWebAnimation",value:function(e,i,o){return e.animate(this._convertKeyframesToObject(i),o)}},{key:"onStart",value:function(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,i=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(a,s){"offset"!==s&&i.set(s,e._finished?a:H1(e.element,s))});this.currentSnapshot=i}},{key:"triggerCallback",value:function(e){var i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(function(o){return o()}),i.length=0}}]),n}(),Or=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"validateStyleProperty",value:function(e){return!0}},{key:"validateAnimatableStyleProperty",value:function(e){return!0}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return aL(e,i)}},{key:"getParentElement",value:function(e){return EE(e)}},{key:"query",value:function(e,i,o){return xE(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return window.getComputedStyle(e)[i]}},{key:"animate",value:function(e,i,o,a,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",d={duration:o,delay:a,fill:u};s&&(d.easing=s);var h=new Map,g=l.filter(function(z){return z instanceof Cn});YU(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var C=Kh(i).map(function(z){return Lu(z)}),Z=_n(e,C=pL(e,C,h));return new Cn(e,C,d,Z)}}]),n}(),ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;(0,F.Z)(this,e),(a=r.call(this))._nextAnimationId=0;var s={id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}};return a._renderer=i.createRenderer(o.body,s),a}return(0,j.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Zt.vP)(o):o;return Bs(this._renderer,null,a,"register",[s]),new Ei(a,this._renderer)}}]),e}(Zt._j);ei.\u0275fac=function(r){return new(r||ei)(t.LFG(t.FYo),t.LFG(se.K0))},ei.\u0275prov=t.Yz7({token:ei,factory:ei.\u0275fac});var Ei=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,j.Z)(e,[{key:"create",value:function(o,a){return new ms(this._id,o,a||{},this._renderer)}}]),e}(Zt.LC),ms=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return(0,j.Z)(n,[{key:"_listen",value:function(e,i){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),i)}},{key:"_command",value:function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,i,o),this.engine.onInsert(this.namespaceId,i,e,a)}},{key:"removeChild",value:function(e,i,o){this.engine.onRemove(this.namespaceId,i,this.delegate,o)}},{key:"selectRootElement",value:function(e,i){return this.delegate.selectRootElement(e,i)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,i,o,a){this.delegate.setAttribute(e,i,o,a)}},{key:"removeAttribute",value:function(e,i,o){this.delegate.removeAttribute(e,i,o)}},{key:"addClass",value:function(e,i){this.delegate.addClass(e,i)}},{key:"removeClass",value:function(e,i){this.delegate.removeClass(e,i)}},{key:"setStyle",value:function(e,i,o,a){this.delegate.setStyle(e,i,o,a)}},{key:"removeStyle",value:function(e,i,o){this.delegate.removeStyle(e,i,o)}},{key:"setProperty",value:function(e,i,o){"@"==i.charAt(0)&&i==Bd?this.disableAnimations(e,!!o):this.delegate.setProperty(e,i,o)}},{key:"setValue",value:function(e,i){this.delegate.setValue(e,i)}},{key:"listen",value:function(e,i,o){return this.delegate.listen(e,i,o)}},{key:"disableAnimations",value:function(e,i){this.engine.disableAnimations(e,i)}}]),n}(),Qy=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,j.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Bd?(s=void 0===s||!!s,this.disableAnimations(o,s)):this.engine.process(this.namespaceId,o,a.slice(1),s):this.delegate.setProperty(o,a,s)}},{key:"listen",value:function(o,a,s){var l=this;if("@"==a.charAt(0)){var u=function fg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o),d=a.slice(1),h="";if("@"!=d.charAt(0)){var g=function Xy(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),C=(0,Yn.Z)(g,2);d=C[0],h=C[1]}return this.engine.listen(this.namespaceId,u,d,h,function(Z){var z=Z._data||-1;l.factory.scheduleListenerCallback(z,s,Z)})}return this.delegate.listen(o,a,s)}}]),e}(dg);var ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){return(0,F.Z)(this,e),r.call(this,i.body,o,a)}return(0,j.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Xt);ap.\u0275fac=function(r){return new(r||ap)(t.LFG(se.K0),t.LFG(Tl),t.LFG(BE),t.LFG(t.z2F))},ap.\u0275prov=t.Yz7({token:ap,factory:ap.\u0275fac});var GY=[{provide:Zt._j,useClass:ei},{provide:BE,useFactory:function xue(){return new a7}},{provide:Xt,useClass:ap},{provide:t.FYo,useFactory:function Due(n,r,e){return new Kc(n,r,e)},deps:[Ye,Xt,t.R0b]}],p7=[{provide:Tl,useFactory:function(){return new Or}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(GY),h7=[{provide:Tl,useClass:sg},{provide:t.QbO,useValue:"NoopAnimations"}].concat(GY),Y1=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?h7:p7}}}]),n}();Y1.\u0275fac=function(r){return new(r||Y1)},Y1.\u0275mod=t.oAB({type:Y1}),Y1.\u0275inj=t.cJS({providers:p7,imports:[na]});var jE=(0,j.Z)(function n(){(0,F.Z)(this,n)});jE.\u0275fac=function(r){return new(r||jE)},jE.\u0275mod=t.oAB({type:jE}),jE.\u0275inj=t.cJS({providers:h7,imports:[na]});var Aue=m(839),K1=m(6053),_s=m(1709),q1=m(8117),m7=m(2821),Oue=m(3906),zY=m(519);function _7(n,r){return n=function Pue(n,r){return void 0===n?void 0===r?n:r:n}(n,r),"function"==typeof n?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s0;)e[i]=r[i+1];return Iue(n,e=e.map(y7))}function Lue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(y7).reduce(function(o,a){var s=VY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function y7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!WY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function YY(n){if(n===window)return function Nue(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,b7=void 0;"function"!=typeof Object.create?(r=function(){},b7=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");r.prototype=e||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===e&&(o.__proto__=null),o}):b7=Object.create;var Fue=b7,$y=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function C7(n,r){r=r||{};for(var e=Fue(n),i=0;i<$y.length;i++)void 0!==r[$y[i]]&&(e[$y[i]]=r[$y[i]]);return e}function w7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var HE=["webkit","moz","ms","o"],GE=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=HE.length;nIe.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Ie.right)/e.margin.right+1)*e.maxSpeed.right):0,Bt=s.yIe.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Ie.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch($e,{pageX:s.pageX+ct,pageY:s.pageY+Bt,clientX:s.x+ct,clientY:s.y+Bt}),setTimeout(function(){Bt&&function ft($e,Ie){$e===window?window.scrollTo($e.pageXOffset,$e.pageYOffset+Ie):$e.scrollTop+=Ie}($e,Bt),ct&&function bt($e,Ie){$e===window?window.scrollTo($e.pageXOffset+Ie,$e.pageYOffset):$e.scrollLeft+=Ie}($e,ct)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",re,!1),window.addEventListener("touchend",re,!1),window.addEventListener("pointerup",re,!1),window.addEventListener("mousemove",Ke,!1),window.addEventListener("touchmove",Ke,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function KY(n,r,e){return e?n.y>e.top&&n.ye.left&&n.xe.top&&n.ye.left&&n.x0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,Gi.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,q1.B)()),g=(0,K1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Yn.Z)(z,2),re=q[0],ae=q[1];return{currentDrag$:u,transformX:re.clientX-o.clientX,transformY:re.clientY-o.clientY,clientX:re.clientX,clientY:re.clientY,scrollLeft:ae.left,scrollTop:ae.top,target:re.event.target}}),(0,$n.U)(function(z){return e.dragSnapGrid.x&&(z.transformX=Math.round(z.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(z.transformY=Math.round(z.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),z}),(0,$n.U)(function(z){return e.dragAxis.x||(z.transformX=0),e.dragAxis.y||(z.transformY=0),z}),(0,$n.U)(function(z){var q=z.scrollLeft-s.left,re=z.scrollTop-s.top;return Object.assign(Object.assign({},z),{x:z.transformX+q,y:z.transformY+re})}),(0,$r.h)(function(z){var q=z.x,re=z.y,ae=z.transformX,Se=z.transformY;return!e.validateDrag||e.validateDrag({x:q,y:re,transform:{x:ae,y:Se}})}),(0,Pr.R)(h),(0,q1.B)()),C=g.pipe((0,Ri.q)(1),(0,q1.B)()),Z=g.pipe((0,m7.h)(1),(0,q1.B)());return C.subscribe(function(z){var q=z.clientX,re=z.clientY,ae=z.x,Se=z.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:d})}),e.scroller=Gue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),k7(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Ce=e.element.nativeElement.getBoundingClientRect(),Ee=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Ee):e.element.nativeElement.parentNode.insertBefore(Ee,e.element.nativeElement.nextSibling),e.ghostElement=Ee,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Ee,{position:"fixed",top:"".concat(Ce.top,"px"),left:"".concat(Ce.left,"px"),width:"".concat(Ce.width,"px"),height:"".concat(Ce.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var Ke=e.vcr.createEmbeddedView(e.ghostElementTemplate);Ee.innerHTML="",Ke.rootNodes.filter(function(st){return st instanceof Node}).forEach(function(st){Ee.appendChild(st)}),Z.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ke))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:Ee})}),Z.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),Z.pipe((0,_s.zg)(function(z){var q=d.pipe((0,Oue.Q)(),(0,Ri.q)(1),(0,$n.U)(function(re){return Object.assign(Object.assign({},z),{dragCancelled:re>0})}));return d.complete(),q})).subscribe(function(z){var q=z.x,re=z.y,ae=z.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:re,dragCancelled:ae})}),DL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,Gi.T)(h,Z).pipe((0,Ri.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,q1.B)());(0,Gi.T)(i.pipe((0,Ri.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,zY.G)())).pipe((0,$r.h)(function(o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,$n.U)(function(o){var a=(0,Yn.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,d=o.clientY,h=o.transformX,g=o.transformY,C=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var Z="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:Z,"-webkit-transform":Z,"-ms-transform":Z,"-moz-transform":Z,"-o-transform":Z})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:C})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,i=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;i&&!o?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(a){e.onMouseDown(a)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(a){e.onMouseUp(a)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(a){e.onTouchStart(a)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!i&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var i=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){i.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var o,a,s,i=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),a=!1,s=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var l=(0,Xf.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,Xf.R)(this.document,"touchmove",{passive:!1}).subscribe(function(d){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,d,o)),(!i.touchStartLongPress||!s||a)&&(d.preventDefault(),i.pointerMove$.next({event:d,clientX:d.targetTouches[0].clientX,clientY:d.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){l.unsubscribe(),u.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach(function(i){e.eventListenerSubscriptions[i](),delete e.eventListenerSubscriptions[i]})}},{key:"setElementStyles",value:function(e,i){var o=this;Object.keys(i).forEach(function(a){o.renderer.setStyle(e,a,i[a])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,i,o){var a=this.getScrollPosition(),s_top=Math.abs(a.top-o.top),s_left=Math.abs(a.left-o.left),d=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-s_left+(Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-s_top),h=this.touchStartLongPress;return(d>h.delta||s_top>0||s_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=h.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var e=this.getScrollElement(),i=e.scrollWidth>e.clientWidth,o=e.scrollHeight>e.clientHeight;return i||o}}]),n}();function qY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}zE.\u0275fac=function(r){return new(r||zE)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(e0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Q1,8),t.Y36(se.K0))},zE.\u0275dir=t.lG2({type:zE,selectors:[["","mwlDraggable",""]],inputs:{dropData:"dropData",dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",validateDrag:"validateDrag",dragCursor:"dragCursor",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress",autoScroll:"autoScroll"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[t.TTD]});var AL=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new t.vpe,this.dragLeave=new t.vpe,this.dragOver=new t.vpe,this.drop=new t.vpe}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){k7(e.renderer,e.element,e.dragActiveClass);var s,d,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,$n.U)(function(h){var g=h.clientX,C=h.clientY,Z=h.dropData,z=h.target;s={clientX:g,clientY:C,dropData:Z,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=qY(g,C,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:C,target:z,dropData:Z});return o.scrollContainerRect?q&&re&&qY(g,C,o.scrollContainerRect):q&&re})),u=l.pipe((0,ts.x)());u.pipe((0,$r.h)(function(h){return h})).subscribe(function(){d=!0,k7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,$r.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,zY.G)(),(0,$r.h)(function(h){var g=(0,Yn.Z)(h,2),C=g[0],Z=g[1];return C&&!Z})).subscribe(function(){d=!1,DL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),DL(e.renderer,e.element,e.dragActiveClass),d&&(DL(e.renderer,e.element,e.dragOverClass),e.drop.observers.length>0&&e.zone.run(function(){e.drop.next(s)}))}})})}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),n}();AL.\u0275fac=function(r){return new(r||AL)(t.Y36(t.SBq),t.Y36(e0),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(Q1,8))},AL.\u0275dir=t.lG2({type:AL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var X1=(0,j.Z)(function n(){(0,F.Z)(this,n)});X1.\u0275fac=function(r){return new(r||X1)},X1.\u0275mod=t.oAB({type:X1}),X1.\u0275inj=t.cJS({});var JY=m(2072);function t0(n,r){return nr?1:n>=r?0:NaN}function T7(n){return 1===n.length&&(n=function zue(n){return function(r,e){return t0(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o>>1;n(e[s],i)<0?o=s+1:a=s}return o},right:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var QY=T7(t0),XY=QY.right,Wue=QY.left,$1=XY;function Vue(n,r){null==r&&(r=$Y);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);en?1:r>=n?0:NaN}function pg(n){return null===n?NaN:+n}function eK(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o1)return u/(i-1)}function tK(n,r){var e=eK(n,r);return e&&Math.sqrt(e)}function M7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=s=o;++io&&(a=o),s=o)for(a=s=o;++io&&(a=o),s0)return[n];if((i=r0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o=0?(a>=S7?10:a>=E7?5:a>=x7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=S7?10:a>=E7?5:a>=x7?2:1)}function n0(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=S7?o*=10:a>=E7?o*=5:a>=x7&&(o*=2),rg;)C.pop(),--Z;var q,z=new Array(Z+1);for(a=0;a<=Z;++a)(q=z[a]=[]).x0=a>0?C[a-1]:h,q.x1=a=1)return+e(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+e(n[a],a,n);return s+(+e(n[a+1],a+1,n)-s)*(o-a)}}function $ue(n,r,e){return n=Jue.call(n,pg).sort(t0),Math.ceil((e-r)/(2*(VE(n,.75)-VE(n,.25))*Math.pow(n.length,-1/3)))}function ece(n,r,e){return Math.ceil((e-r)/(3.5*tK(n)*Math.pow(n.length,-1/3)))}function rK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++ia&&(a=o)}else for(;++i=o)for(a=o;++ia&&(a=o);return a}function tce(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function iK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++io&&(a=o)}else for(;++i=o)for(a=o;++io&&(a=o);return a}function rce(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function ice(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=t0);++i=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function Cce(n,r){for(var o,e=0,i=n.length;e0)for(var a,s,i=new Array(a),o=0;or?1:n>=r?0:NaN}var L7="http://www.w3.org/1999/xhtml",pK={svg:"http://www.w3.org/2000/svg",xhtml:L7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function NL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),pK.hasOwnProperty(r)?{space:pK[r],local:n}:n}function zce(n){return function(){this.removeAttribute(n)}}function Wce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Vce(n,r){return function(){this.setAttribute(n,r)}}function Yce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Kce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function qce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function hK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Qce(n){return function(){this.style.removeProperty(n)}}function Xce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function $ce(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function ew(n,r){return n.style.getPropertyValue(r)||hK(n).getComputedStyle(n,null).getPropertyValue(r)}function tde(n){return function(){delete this[n]}}function nde(n,r){return function(){this[n]=r}}function rde(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function mK(n){return n.trim().split(/^|\s+/)}function Z7(n){return n.classList||new _K(n)}function _K(n){this._node=n,this._names=mK(n.getAttribute("class")||"")}function gK(n,r){for(var e=Z7(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var bK={},Zn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(bK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ide(n,r,e){return n=CK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function CK(n,r,e){return function(i){var o=Zn;Zn=i;try{n.call(this,this.__data__,r,e)}finally{Zn=o}}}function Rde(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Lde(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Zce(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Nce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Qce:"function"==typeof r?$ce:Xce)(n,r,null==e?"":e)):ew(this.node(),n)},property:function ide(n,r){return arguments.length>1?this.each((null==r?tde:"function"==typeof r?rde:nde)(n,r)):this.node()[n]},classed:function lde(n,r){var e=mK(n+"");if(arguments.length<2){for(var i=Z7(this.node()),o=-1,a=e.length;++o>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?HL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?HL(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Hde.exec(n))?new Ql(r[1],r[2],r[3],1):(r=Gde.exec(n))?new Ql(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=zde.exec(n))?HL(r[1],r[2],r[3],r[4]):(r=Wde.exec(n))?HL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Vde.exec(n))?PK(r[1],r[2]/100,r[3]/100,1):(r=Yde.exec(n))?PK(r[1],r[2]/100,r[3]/100,r[4]):MK.hasOwnProperty(n)?xK(MK[n]):"transparent"===n?new Ql(NaN,NaN,NaN,0):null}function xK(n){return new Ql(n>>16&255,n>>8&255,255&n,1)}function HL(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ql(n,r,e,i)}function DK(n){return n instanceof nw||(n=o0(n)),n?new Ql((n=n.rgb()).r,n.g,n.b,n.opacity):new Ql}function GL(n,r,e,i){return 1===arguments.length?DK(n):new Ql(n,r,e,null==i?1:i)}function Ql(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function AK(){return"#"+F7(this.r)+F7(this.g)+F7(this.b)}function OK(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function F7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function PK(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new lp(n,r,e,i)}function IK(n){if(n instanceof lp)return new lp(n.h,n.s,n.l,n.opacity);if(n instanceof nw||(n=o0(n)),!n)return new lp;if(n instanceof lp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new lp(s,l,u,n.opacity)}function lp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function U7(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function RK(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function zL(n){return function(){return n}}function LK(n,r){return function(e){return n+e*r}}function efe(n){return 1==(n=+n)?ow:function(r,e){return e-r?function Xde(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):zL(isNaN(r)?e:r)}}function ow(n,r){var e=r-n;return e?LK(n,e):zL(isNaN(n)?r:n)}jL(nw,o0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:SK,formatHex:SK,formatHsl:function Kde(){return IK(this).formatHsl()},formatRgb:EK,toString:EK}),jL(Ql,GL,B7(nw,{brighter:function(r){return r=null==r?rw:Math.pow(rw,r),new Ql(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ql(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:AK,formatHex:AK,formatRgb:OK,toString:OK})),jL(lp,function qde(n,r,e,i){return 1===arguments.length?IK(n):new lp(n,r,e,null==i?1:i)},B7(nw,{brighter:function(r){return r=null==r?rw:Math.pow(rw,r),new lp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new lp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new Ql(U7(r>=240?r-240:r+120,a,o),U7(r,a,o),U7(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var WL=function n(r){var e=efe(r);function i(o,a){var s=e((o=GL(o)).r,(a=GL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=ow(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function ZK(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=ie&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:qc(i,o)})),e=H7.lastIndex;return e=0&&n._call.call(null,r),n=n._next;--aw}function zK(){a0=(KL=XE.now())+qL,aw=qE=0;try{GK()}finally{aw=0,function cfe(){for(var n,e,r=YL,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(e=r._next,r._next=null,r=n?n._next=e:YL=e);QE=n,G7(i)}(),a0=0}}function ufe(){var n=XE.now(),r=n-KL;r>1e3&&(qL-=r,KL=n)}function G7(n){aw||(qE&&(qE=clearTimeout(qE)),n-a0>24?(n<1/0&&(qE=setTimeout(zK,n-XE.now()-qL)),JE&&(JE=clearInterval(JE))):(JE||(KL=XE.now(),JE=setInterval(ufe,1e3)),aw=1,HK(zK)))}function tx(n,r,e){var i=new $E;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}$E.prototype=ex.prototype={constructor:$E,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?mg():+i)+(null==e?0:+e),!this._next&&QE!==this&&(QE?QE._next=this:YL=this,QE=this),this._call=r,this._time=i,G7()},stop:function(){this._call&&(this._call=null,this._time=1/0,G7())}};var dfe=r0("start","end","cancel","interrupt"),ffe=[];function XL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function pfe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return tx(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h0)throw new Error("too late; already scheduled");return e}function Qh(n,r){var e=Ud(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ud(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function sw(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}var nx,K7,JK,$L,KK=180/Math.PI,Y7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qK(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:qc(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:qc(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:qc(d,g)},{i:q-2,x:qc(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?V7:Qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Qfe=hg.prototype.constructor;function $K(n){return function(){this.style.removeProperty(n)}}function ipe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function ope(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&ipe(n,s,e)),i}return a._value=r,a}function cpe(n){return function(r){this.textContent=n.call(this,r)}}function dpe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&cpe(o)),r}return i._value=n,i}var mpe=0;function Xh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function J7(n){return hg().transition(n)}function eq(){return++mpe}var lw=hg.prototype;function _pe(n){return n*n*n}function gpe(n){return--n*n*n+1}function eZ(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Xh.prototype=J7.prototype={constructor:Xh,select:function qfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=R7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;sMath.abs(bn[1]-Wr[1])?kr=!0:ar=!0),Wr=bn,Hn=!0,tZ(),Mn()}function Mn(){var bn;switch(It=Wr[0]-_r[0],Tn=Wr[1]-_r[1],z){case X7:case rq:q&&(It=Math.max(Ee-Ke,Math.min(bt-$e,It)),st=Ke+It,Ie=$e+It),re&&(Tn=Math.max(Ae-it,Math.min(ct-Bt,Tn)),ft=it+Tn,jt=Bt+Tn);break;case uw:q<0?(It=Math.max(Ee-Ke,Math.min(bt-Ke,It)),st=Ke+It,Ie=$e):q>0&&(It=Math.max(Ee-$e,Math.min(bt-$e,It)),st=Ke,Ie=$e+It),re<0?(Tn=Math.max(Ae-it,Math.min(ct-it,Tn)),ft=it+Tn,jt=Bt):re>0&&(Tn=Math.max(Ae-Bt,Math.min(ct-Bt,Tn)),ft=it,jt=Bt+Tn);break;case cw:q&&(st=Math.max(Ee,Math.min(bt,Ke-It*q)),Ie=Math.max(Ee,Math.min(bt,$e+It*q))),re&&(ft=Math.max(Ae,Math.min(ct,it-Tn*re)),jt=Math.max(Ae,Math.min(ct,Bt+Tn*re)))}Ie0&&(Ke=st-It),re<0?Bt=jt-Tn:re>0&&(it=ft-Tn),z=X7,jo.attr("cursor",$h.selection),Mn());break;default:return}tZ()}function un(){switch(Zn.keyCode){case 16:zn&&(ar=kr=zn=!1,Mn());break;case 18:z===cw&&(q<0?$e=Ie:q>0&&(Ke=st),re<0?Bt=jt:re>0&&(it=ft),z=uw,Mn());break;case 32:z===X7&&(Zn.altKey?(q&&($e=Ie-It*q,Ke=st+It*q),re&&(Bt=jt-Tn*re,it=ft+Tn*re),z=cw):(q<0?$e=Ie:q>0&&(Ke=st),re<0?Bt=jt:re>0&&(it=ft),z=uw),jo.attr("cursor",$h[Z]),Mn());break;default:return}tZ()}}function g(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=n,C}return s.move=function(C,Z){C.selection?C.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var z=this,q=z.__brush,re=u(z,arguments),ae=q.selection,Se=n.input("function"==typeof Z?Z.apply(this,arguments):Z,q.extent),Ce=VL(ae,Se);function Ee(Ke){q.selection=1===Ke&&ej(Se)?null:Ce(Ke),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):C.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof Z?Z.apply(z,q):Z,re.extent),Se=u(z,q).beforestart();sw(z),re.selection=null==ae||ej(ae)?null:ae,l.call(z),Se.start().brush().end()})},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(Z){BL(new Cpe(s,Z,n.output(this.state.selection)),i.apply,i,[Z,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:tq([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),s):r},s.filter=function(C){return arguments.length?(e="function"==typeof C?C:tq(!!C),s):e},s.handleSize=function(C){return arguments.length?(o=+C,s):o},s.on=function(){var C=i.on.apply(i,arguments);return C===i?s:C},s}var aq=Math.cos,sq=Math.sin,lq=Math.PI,iZ=lq/2,uq=2*lq,cq=Math.max;function Ope(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ppe(){var n=0,r=null,e=null,i=null;function o(a){var Z,z,q,re,ae,Se,s=a.length,l=[],u=mc(s),d=[],h=[],g=h.groups=new Array(s),C=new Array(s*s);for(Z=0,ae=-1;++aes0)if(Math.abs(g*u-d*h)>s0&&a){var Z=i-s,z=o-l,q=u*u+d*d,re=Z*Z+z*z,ae=Math.sqrt(q),Se=Math.sqrt(C),Ce=a*Math.tan((rj-Math.acos((q+C-re)/(2*ae*Se)))/2),Ee=Ce/Se,Ke=Ce/ae;Math.abs(Ee-1)>s0&&(this._+="L"+(r+Ee*h)+","+(e+Ee*g)),this._+="A"+a+","+a+",0,0,"+ +(g*Z>h*z)+","+(this._x1=r+Ke*u)+","+(this._y1=e+Ke*d)}else this._+="L"+(this._x1=r)+","+(this._y1=e)},arc:function(r,e,i,o,a,s){r=+r,e=+e,s=!!s;var l=(i=+i)*Math.cos(o),u=i*Math.sin(o),d=r+l,h=e+u,g=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>s0||Math.abs(this._y1-h)>s0)&&(this._+="L"+d+","+h),i&&(C<0&&(C=C%ij+ij),C>Rpe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):C>s0&&(this._+="A"+i+","+i+",0,"+ +(C>=rj)+","+g+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=e+i*Math.sin(a))))},rect:function(r,e,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var jd=dq;function Lpe(n){return n.source}function Zpe(n){return n.target}function Npe(n){return n.radius}function Bpe(n){return n.startAngle}function Fpe(n){return n.endAngle}function Upe(){var n=Lpe,r=Zpe,e=Npe,i=Bpe,o=Fpe,a=null;function s(){var l,u=Ipe.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),C=i.apply(this,u)-iZ,Z=o.apply(this,u)-iZ,z=g*aq(C),q=g*sq(C),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-iZ,Se=o.apply(this,u)-iZ;if(a||(a=l=jd()),a.moveTo(z,q),a.arc(0,0,g,C,Z),(C!==ae||Z!==Se)&&(a.quadraticCurveTo(0,0,re*aq(ae),re*sq(ae)),a.arc(0,0,re,ae,Se)),a.quadraticCurveTo(0,0,z,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:nj(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:nj(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:nj(+l),s):o},s.source=function(l){return arguments.length?(n=l,s):n},s.target=function(l){return arguments.length?(r=l,s):r},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}var Jc="$";function oZ(){}function fq(n,r){var e=new oZ;if(n instanceof oZ)n.each(function(l,u){e.set(u,l)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i=n.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var z,q,ae,g=-1,C=l.length,Z=n[u++],re=_g(),Se=d();++gn.length)return l;var d,h=r[u-1];return null!=i&&u>=n.length?d=l.entries():(d=[],l.each(function(g,C){d.push({key:C,values:s(g,u)})})),null!=h?d.sort(function(g,C){return h(g.key,C.key)}):d}return o={object:function(u){return a(u,0,Hpe,Gpe)},map:function(u){return a(u,0,pq,hq)},entries:function(u){return s(a(u,0,pq,hq),0)},key:function(u){return n.push(u),o},sortKeys:function(u){return r[n.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Hpe(){return{}}function Gpe(n,r,e){n[r]=e}function pq(){return _g()}function hq(n,r,e){n.set(r,e)}function aZ(){}var l0=_g.prototype;function mq(n,r){var e=new aZ;if(n instanceof aZ)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=qpe.exec(n))?gq(parseInt(r[1],16)):(r=Jpe.exec(n))?new ol(r[1],r[2],r[3],1):(r=Qpe.exec(n))?new ol(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Xpe.exec(n))?vq(r[1],r[2],r[3],r[4]):(r=$pe.exec(n))?vq(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=ehe.exec(n))?bq(r[1],r[2]/100,r[3]/100,1):(r=the.exec(n))?bq(r[1],r[2]/100,r[3]/100,r[4]):_q.hasOwnProperty(n)?gq(_q[n]):"transparent"===n?new ol(NaN,NaN,NaN,0):null}function gq(n){return new ol(n>>16&255,n>>8&255,255&n,1)}function vq(n,r,e,i){return i<=0&&(n=r=e=NaN),new ol(n,r,e,i)}function aj(n){return n instanceof gg||(n=sZ(n)),n?new ol((n=n.rgb()).r,n.g,n.b,n.opacity):new ol}function yq(n,r,e,i){return 1===arguments.length?aj(n):new ol(n,r,e,null==i?1:i)}function ol(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function bq(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new cp(n,r,e,i)}function nhe(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof gg||(n=sZ(n)),!n)return new cp;if(n instanceof cp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new cp(s,l,u,n.opacity)}function Cq(n,r,e,i){return 1===arguments.length?nhe(n):new cp(n,r,e,null==i?1:i)}function cp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function sj(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}dw(gg,sZ,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),dw(ol,yq,ix(gg,{brighter:function(r){return r=null==r?fw:Math.pow(fw,r),new ol(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ol(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),dw(cp,Cq,ix(gg,{brighter:function(r){return r=null==r?fw:Math.pow(fw,r),new cp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new cp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new ol(sj(r>=240?r-240:r+120,a,o),sj(r,a,o),sj(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wq=Math.PI/180,kq=180/Math.PI,Eq=4/29,hw=6/29,xq=3*hw*hw;function lj(n){if(n instanceof dp)return new dp(n.l,n.a,n.b,n.opacity);if(n instanceof em){if(isNaN(n.h))return new dp(n.l,0,0,n.opacity);var r=n.h*wq;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ol||(n=aj(n));var s,l,e=fj(n.r),i=fj(n.g),o=fj(n.b),a=uj((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=uj((.4360747*e+.3850649*i+.1430804*o)/.96422),l=uj((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function Dq(n,r,e,i){return 1===arguments.length?lj(n):new dp(n,r,e,null==i?1:i)}function dp(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function uj(n){return n>.008856451679035631?Math.pow(n,1/3):n/xq+Eq}function cj(n){return n>hw?n*n*n:xq*(n-Eq)}function dj(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function fj(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ihe(n){if(n instanceof em)return new em(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=lj(n)),0===n.a&&0===n.b)return new em(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*kq;return new em(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Aq(n,r,e,i){return 1===arguments.length?ihe(n):new em(n,r,e,null==i?1:i)}function em(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}dw(dp,Dq,ix(gg,{brighter:function(r){return new dp(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new dp(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,e=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new ol(dj(3.1338561*(e=.96422*cj(e))-1.6168667*(r=1*cj(r))-.4906146*(i=.82521*cj(i))),dj(-.9787684*e+1.9161415*r+.033454*i),dj(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),dw(em,Aq,ix(gg,{brighter:function(r){return new em(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new em(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return lj(this).rgb()}}));var pj=1.78277,hj=-.29227,uZ=-.90649,ax=1.97294,Pq=ax*uZ,Iq=ax*pj,Rq=pj*hj- -.14861*uZ;function ohe(n){if(n instanceof c0)return new c0(n.h,n.s,n.l,n.opacity);n instanceof ol||(n=aj(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Rq*i+Pq*r-Iq*e)/(Rq+Pq-Iq),a=i-o,s=(ax*(e-o)-hj*a)/uZ,l=Math.sqrt(s*s+a*a)/(ax*o*(1-o)),u=l?Math.atan2(s,a)*kq-120:NaN;return new c0(u<0?u+360:u,l,o,n.opacity)}function Lq(n,r,e,i){return 1===arguments.length?ohe(n):new c0(n,r,e,null==i?1:i)}function c0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}dw(c0,Lq,ix(gg,{brighter:function(r){return r=null==r?fw:Math.pow(fw,r),new c0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new c0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*wq,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new ol(255*(e+i*(-.14861*o+pj*a)),255*(e+i*(hj*o+uZ*a)),255*(e+i*(ax*o)),this.opacity)}}));var Zq=Array.prototype.slice;function she(n,r){return n-r}function d0(n){return function(){return n}}function uhe(n,r){for(var o,e=-1,i=r.length;++ei!=Z>i&&e<(C-d)*(i-h)/(Z-h)+d&&(o=-o)}return o}function dhe(n,r,e){var i;return function fhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function phe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function hhe(){}var tm=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Nq(){var n=1,r=1,e=A7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(she);else{var g=M7(d),C=g[0],Z=g[1];h=n0(C,Z,h),h=mc(Math.floor(C/h)*h,Math.floor(Z/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],C=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,C=new Array,Z=new Array;for(z=q=-1,ae=d[0]>=h,tm[ae<<1].forEach(Ee);++z=h,tm[re|ae<<1].forEach(Ee);for(tm[ae<<0].forEach(Ee);++q=h,Se=d[q*n]>=h,tm[ae<<1|Se<<2].forEach(Ee);++z=h,Ce=Se,Se=d[q*n+z+1]>=h,tm[re|ae<<1|Se<<2|Ce<<3].forEach(Ee);tm[ae|Se<<3].forEach(Ee)}for(z=-1,Se=d[q*n]>=h,tm[Se<<2].forEach(Ee);++z=h,tm[Se<<2|Ce<<3].forEach(Ee);function Ee(Ke){var bt,$e,st=[Ke[0][0]+z,Ke[0][1]+q],Ae=[Ke[1][0]+z,Ke[1][1]+q],it=l(st),ft=l(Ae);(bt=Z[it])?($e=C[ft])?(delete Z[bt.end],delete C[$e.start],bt===$e?(bt.ring.push(Ae),g(bt.ring)):C[bt.start]=Z[$e.end]={start:bt.start,end:$e.end,ring:bt.ring.concat($e.ring)}):(delete Z[bt.end],bt.ring.push(Ae),Z[bt.end=ft]=bt):(bt=C[ft])?($e=Z[it])?(delete C[bt.start],delete Z[$e.end],bt===$e?(bt.ring.push(Ae),g(bt.ring)):C[$e.start]=Z[bt.end]={start:$e.start,end:bt.end,ring:$e.ring.concat(bt.ring)}):(delete C[bt.start],bt.ring.unshift(st),C[bt.start=it]=bt):C[it]=Z[ft]={start:it,end:ft,ring:[st,Ae]}}tm[Se<<3].forEach(Ee)}(d,h,function(Z){i(Z,d,h),function lhe(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r0?g.push([Z]):C.push(Z)}),C.forEach(function(Z){for(var re,z=0,q=g.length;z0&&Z0&&z0&&g>0))throw new Error("invalid size");return n=h,r=g,o},o.thresholds=function(d){return arguments.length?(e="function"==typeof d?d:Array.isArray(d)?d0(Zq.call(d)):d0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:hhe,o):i===u},o}function mj(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=n.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function _j(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=n.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function mhe(n){return n[0]}function _he(n){return n[1]}function ghe(){var n=mhe,r=_he,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=d0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ke,st,Ae){var it=n(Ke,st,Ae)+s>>a,ft=r(Ke,st,Ae)+s>>a;it>=0&&it=0&&ft>a),_j({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),mj({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),_j({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),mj({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),_j({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=rK(ae);Ce=n0(0,Ee,Ce),(Ce=mc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Nq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(C),re}function C(re){re.forEach(Z)}function Z(re){re.forEach(z)}function z(re){re[0]=re[0]*Math.pow(2,a)-s,re[1]=re[1]*Math.pow(2,a)-s}function q(){return l=e+2*(s=3*o)>>a,u=i+2*s>>a,h}return h.x=function(re){return arguments.length?(n="function"==typeof re?re:d0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:d0(+re),h):r},h.size=function(re){if(!arguments.length)return[e,i];var ae=Math.ceil(re[0]),Se=Math.ceil(re[1]);if(!(ae>=0||ae>=0))throw new Error("invalid size");return e=ae,i=Se,q()},h.cellSize=function(re){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(re)/Math.LN2),q()},h.thresholds=function(re){return arguments.length?(d="function"==typeof re?re:Array.isArray(re)?d0(Zq.call(re)):d0(re),h):d},h.bandwidth=function(re){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((re=+re)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*re*re+1)-1)/2),q()},h}function gj(n,r,e){arguments.length<3&&(e=r,r=FK().changedTouches);for(var a,i=0,o=r?r.length:0;ig}o.mouse("drag")}function q(){Ci(Zn.view).on("mousemove.drag mouseup.drag",null),UL(Zn.view,d),tw(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var Ae,it,Ee=Zn.changedTouches,Ke=r.apply(this,arguments),st=Ee.length;for(Ae=0;Ae=C?re=!0:10===(st=d.charCodeAt(Z++))?ae=!0:13===st&&(ae=!0,10===d.charCodeAt(Z)&&++Z),d.slice(Ke+1,Ee-1).replace(/""/g,'"')}for(;Z=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(Z=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===Z&&e===z)return s.next=a,o?o[ae]=s:n._root=s,n;do{o=o?o[ae]=new Array(4):n._root=new Array(4),(q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C}while((ae=re<<1|q)==(Se=(z>=C)<<1|Z>=g));return o[Se]=a,o[ae]=s,n}function Xl(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function _me(n){return n[0]}function vme(n){return n[1]}function hZ(n,r,e){var i=new xj(null==r?_me:r,null==e?vme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function xj(n,r,e,i,o,a){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function Jq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var $l=hZ.prototype=xj.prototype;function bme(n){return n.x+n.vx}function Cme(n){return n.y+n.vy}function wme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,C,Z,z,q,d=r.length,re=0;reC+ft||KeZ+ft||stg.index){var bt=C-Ae.x-Ae.vx,$e=Z-Ae.y-Ae.vy,Ie=bt*bt+$e*$e;Ieu.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;uh&&(h=o),ag&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;en||n>=o||i>r||r>=a;)switch(d=(rh||(l=z.y0)>g||(u=z.x1)=ae)<<1|n>=re)&&(z=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=z)}else{var Se=n-+this._x.call(null,Z.data),Ce=r-+this._y.call(null,Z.data),Ee=Se*Se+Ce*Ce;if(Ee=(C=(s+u)/2))?s=C:u=C,(q=g>=(Z=(l+d)/2))?l=Z:d=Z,r=e,!(e=e[re=q<<1|z]))return this;if(!e.length)break;(r[re+1&3]||r[re+2&3]||r[re+3&3])&&(i=r,ae=re)}for(;e.data!==n;)if(o=e,!(e=e.next))return this;return(a=e.next)&&delete e.next,o?(a?o.next=a:delete o.next,this):r?(a?r[re]=a:delete r[re],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[ae]=e:this._root=e),this):(this._root=a,this)},$l.removeAll=function dme(n){for(var r=0,e=n.length;r1?(null==re?l.remove(q):l.set(q,Z(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ke,st,Ae,it,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se1?(d.on(q,re),r):d.on(q)}}}function Ame(){var n,r,e,o,i=gs(-30),a=1,s=1/0,l=.81;function u(C){var Z,z=n.length,q=hZ(n,Mme,Sme).visitAfter(h);for(e=C,Z=0;Z=s)){(C.data!==r||C.next)&&(0===re&&(Ce+=(re=bg())*re),0===ae&&(Ce+=(ae=bg())*ae),Ce1?i[0]+i.slice(2):i,+n.slice(e+1)]}function _w(n){return(n=mZ(Math.abs(n)))?n[1]:NaN}function $q(n,r){var e=mZ(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var eJ={"":function Zme(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return $q(100*r,e)},r:$q,s:function Nme(n,r){var e=mZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Xq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+mZ(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},Bme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function _Z(n){return new Dj(n)}function Dj(n){if(!(r=Bme.exec(n)))throw new Error("invalid format: "+n);var r,e=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],l=r[6]&&+r[6],u=!!r[7],d=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):eJ[h]||(h=""),(s||"0"===e&&"="===i)&&(s=!0,e="0",i="="),this.fill=e,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=l,this.comma=u,this.precision=d,this.type=h}function tJ(n){return n}_Z.prototype=Dj.prototype,Dj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var gZ,iJ,oJ,nJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function rJ(n){var r=n.grouping&&n.thousands?function Rme(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):tJ,e=n.currency,i=n.decimal,o=n.numerals?function Lme(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):tJ,a=n.percent||"%";function s(u){var d=(u=_Z(u)).fill,h=u.align,g=u.sign,C=u.symbol,Z=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===C?e[0]:"#"===C&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===C?e[1]:/[%p]/.test(ae)?a:"",Ee=eJ[ae],Ke=!ae||/[defgprs%]/.test(ae);function st(Ae){var bt,$e,Ie,it=Se,ft=Ce;if("c"===ae)ft=Ee(Ae)+ft,Ae="";else{var ct=(Ae=+Ae)<0;if(Ae=Ee(Math.abs(Ae),re),ct&&0==+Ae&&(ct=!1),it=(ct?"("===g?g:"-":"-"===g||"("===g?"":g)+it,ft=("s"===ae?nJ[8+Xq/3]:"")+ft+(ct&&"("===g?")":""),Ke)for(bt=-1,$e=Ae.length;++bt<$e;)if(48>(Ie=Ae.charCodeAt(bt))||Ie>57){ft=(46===Ie?i+Ae.slice(bt+1):Ae.slice(bt))+ft,Ae=Ae.slice(0,bt);break}}q&&!Z&&(Ae=r(Ae,1/0));var Bt=it.length+Ae.length+ft.length,jt=Bt>1)+it+Ae+ft+jt.slice(Bt);break;default:Ae=jt+it+Ae+ft}return o(Ae)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),st.toString=function(){return u+""},st}return{format:s,formatPrefix:function l(u,d){var h=s(((u=_Z(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(_w(d)/3))),C=Math.pow(10,-g),Z=nJ[8+g/3];return function(z){return h(C*z)+Z}}}}function aJ(n){return gZ=rJ(n),iJ=gZ.format,oJ=gZ.formatPrefix,gZ}function Fme(n){return Math.max(0,-_w(Math.abs(n)))}function Ume(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_w(r)/3)))-_w(Math.abs(n)))}function jme(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,_w(r)-_w(n))+1}function Cg(){return new vZ}function vZ(){this.reset()}aJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),vZ.prototype={constructor:vZ,reset:function(){this.s=this.t=0},add:function(r){sJ(yZ,r,this.t),sJ(this,yZ.s,this.s),this.s?this.t+=yZ.t:this.s=yZ.t},valueOf:function(){return this.s}};var yZ=new vZ;function sJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Mr=1e-6,Zi=Math.PI,Da=Zi/2,bZ=Zi/4,Fu=2*Zi,zo=180/Zi,Lr=Zi/180,Xi=Math.abs,gw=Math.atan,eu=Math.atan2,Sr=Math.cos,CZ=Math.ceil,uJ=Math.exp,wZ=(Math.floor,Math.log),Aj=Math.pow,mr=Math.sin,ux=Math.sign||function(n){return n>0?1:n<0?-1:0},vs=Math.sqrt,Oj=Math.tan;function cJ(n){return n>1?0:n<-1?Zi:Math.acos(n)}function gc(n){return n>1?Da:n<-1?-Da:Math.asin(n)}function dJ(n){return(n=mr(n/2))*n}function _a(){}function kZ(n,r){n&&pJ.hasOwnProperty(n.type)&&pJ[n.type](n,r)}var fJ={Feature:function(r,e){kZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o=0?1:-1,o=i*e,a=Sr(r=(r*=Lr)/2+bZ),s=mr(r),l=Lj*s,u=Rj*a+l*Sr(o),d=l*i*mr(o);TZ.add(eu(d,u)),Ij=n,Rj=a,Lj=s}function Wme(n){return MZ.reset(),Hd(n,fp),2*MZ}function SZ(n){return[eu(n[1],n[0]),gc(n[2])]}function f0(n){var r=n[0],e=n[1],i=Sr(e);return[i*Sr(r),i*mr(r),mr(e)]}function EZ(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function vw(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function Zj(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function xZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function DZ(n){var r=vs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Aa,vc,ja,Qc,p0,vJ,yJ,yw,wg,nm,cx=Cg(),rm={point:Nj,lineStart:CJ,lineEnd:wJ,polygonStart:function(){rm.point=kJ,rm.lineStart=Vme,rm.lineEnd=Yme,cx.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),rm.point=Nj,rm.lineStart=CJ,rm.lineEnd=wJ,TZ<0?(Aa=-(ja=180),vc=-(Qc=90)):cx>Mr?Qc=90:cx<-Mr&&(vc=-90),nm[0]=Aa,nm[1]=ja}};function Nj(n,r){wg.push(nm=[Aa=n,ja=n]),rQc&&(Qc=r)}function bJ(n,r){var e=f0([n*Lr,r*Lr]);if(yw){var i=vw(yw,e),a=vw([i[1],-i[0],0],i);DZ(a),a=SZ(a);var d,s=n-p0,l=s>0?1:-1,u=a[0]*zo*l,h=Xi(s)>180;h^(l*p0Qc&&(Qc=d):h^(l*p0<(u=(u+360)%360-180)&&uQc&&(Qc=r)),h?nyc(Aa,ja)&&(ja=n):yc(n,ja)>yc(Aa,ja)&&(Aa=n):ja>=Aa?(nja&&(ja=n)):n>p0?yc(Aa,n)>yc(Aa,ja)&&(ja=n):yc(n,ja)>yc(Aa,ja)&&(Aa=n)}else wg.push(nm=[Aa=n,ja=n]);rQc&&(Qc=r),yw=e,p0=n}function CJ(){rm.point=bJ}function wJ(){nm[0]=Aa,nm[1]=ja,rm.point=Nj,yw=null}function kJ(n,r){if(yw){var e=n-p0;cx.add(Xi(e)>180?e+(e>0?360:-360):e)}else vJ=n,yJ=r;fp.point(n,r),bJ(n,r)}function Vme(){fp.lineStart()}function Yme(){kJ(vJ,yJ),fp.lineEnd(),Xi(cx)>Mr&&(Aa=-(ja=180)),nm[0]=Aa,nm[1]=ja,yw=null}function yc(n,r){return(r-=n)<0?r+360:r}function Kme(n,r){return n[0]-r[0]}function TJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:ryc(i[0],i[1])&&(i[1]=o[1]),yc(o[0],i[1])>yc(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[e=a.length-1];r<=e;i=o,++r)o=a[r],(l=yc(i[1],o[0]))>s&&(s=l,Aa=o[0],ja=i[1])}return wg=nm=null,Aa===1/0||vc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Aa,vc],[ja,Qc]]}var dx,AZ,OZ,PZ,IZ,RZ,LZ,ZZ,Bj,Fj,Uj,MJ,SJ,tu,nu,ru,Gd={sphere:_a,point:jj,lineStart:EJ,lineEnd:xJ,polygonStart:function(){Gd.lineStart=Xme,Gd.lineEnd=$me},polygonEnd:function(){Gd.lineStart=EJ,Gd.lineEnd=xJ}};function jj(n,r){n*=Lr;var e=Sr(r*=Lr);fx(e*Sr(n),e*mr(n),mr(r))}function fx(n,r,e){++dx,OZ+=(n-OZ)/dx,PZ+=(r-PZ)/dx,IZ+=(e-IZ)/dx}function EJ(){Gd.point=Jme}function Jme(n,r){n*=Lr;var e=Sr(r*=Lr);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),Gd.point=Qme,fx(tu,nu,ru)}function Qme(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=eu(vs((s=nu*a-ru*o)*s+(s=ru*i-tu*a)*s+(s=tu*o-nu*i)*s),tu*i+nu*o+ru*a);AZ+=s,RZ+=s*(tu+(tu=i)),LZ+=s*(nu+(nu=o)),ZZ+=s*(ru+(ru=a)),fx(tu,nu,ru)}function xJ(){Gd.point=jj}function Xme(){Gd.point=e_e}function $me(){DJ(MJ,SJ),Gd.point=jj}function e_e(n,r){MJ=n,SJ=r,n*=Lr,r*=Lr,Gd.point=DJ;var e=Sr(r);tu=e*Sr(n),nu=e*mr(n),ru=mr(r),fx(tu,nu,ru)}function DJ(n,r){n*=Lr;var e=Sr(r*=Lr),i=e*Sr(n),o=e*mr(n),a=mr(r),s=nu*a-ru*o,l=ru*i-tu*a,u=tu*o-nu*i,d=vs(s*s+l*l+u*u),h=gc(d),g=d&&-h/d;Bj+=g*s,Fj+=g*l,Uj+=g*u,AZ+=h,RZ+=h*(tu+(tu=i)),LZ+=h*(nu+(nu=o)),ZZ+=h*(ru+(ru=a)),fx(tu,nu,ru)}function t_e(n){dx=AZ=OZ=PZ=IZ=RZ=LZ=ZZ=Bj=Fj=Uj=0,Hd(n,Gd);var r=Bj,e=Fj,i=Uj,o=r*r+e*e+i*i;return o<1e-12&&(r=RZ,e=LZ,i=ZZ,AZZi?n-Fu:n<-Zi?n+Fu:n,r]}function zj(n,r,e){return(n%=Fu)?r||e?Hj(OJ(n),PJ(r,e)):OJ(n):r||e?PJ(r,e):Gj}function AJ(n){return function(r,e){return[(r+=n)>Zi?r-Fu:r<-Zi?r+Fu:r,e]}}function OJ(n){var r=AJ(n);return r.invert=AJ(-n),r}function PJ(n,r){var e=Sr(n),i=mr(n),o=Sr(r),a=mr(r);function s(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,C=mr(u),Z=C*e+h*i;return[eu(g*o-Z*a,h*e-C*i),gc(Z*o+g*a)]}return s.invert=function(l,u){var d=Sr(u),h=Sr(l)*d,g=mr(l)*d,C=mr(u),Z=C*o-g*a;return[eu(g*o+C*a,h*e+Z*i),gc(Z*e-h*i)]},s}function IJ(n){function r(e){return(e=n(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e}return n=zj(n[0]*Lr,n[1]*Lr,n.length>2?n[2]*Lr:0),r.invert=function(e){return(e=n.invert(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e},r}function RJ(n,r,e,i,o,a){if(e){var s=Sr(r),l=mr(r),u=i*e;null==o?(o=r+i*Fu,a=r-u/2):(o=LJ(s,o),a=LJ(s,a),(i>0?oa)&&(o+=i*Fu));for(var d,h=o;i>0?h>a:h1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function NZ(n,r){return Xi(n[0]-r[0])=0;--l)o.point((g=h[l])[0],g[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,Z=!Z}while(!C.v);o.lineEnd()}}}function BJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e=0?1:-1,ft=it*Ae,bt=ft>Zi,$e=q*Ke;if(Wj.add(eu($e*it*mr(ft),re*st+$e*Sr(ft))),s+=bt?Ae+it*Fu:Ae,bt^Z>=e^Ce>=e){var Ie=vw(f0(C),f0(Se));DZ(Ie);var ct=vw(a,Ie);DZ(ct);var Bt=(bt^Ae>=0?-1:1)*gc(ct[2]);(i>Bt||i===Bt&&(Ie[0]||Ie[1]))&&(l+=bt^Ae>=0?1:-1)}}return(s<-Mr||s0){for(u||(o.polygonStart(),u=!0),o.lineStart(),st=0;st1&&2&Ee&&Ke.push(Ke.pop().concat(Ke.shift())),h.push(Ke.filter(r_e))}}return C}}function r_e(n){return n.length>1}function i_e(n,r){return((n=n.x)[0]<0?n[1]-Da-Mr:Da-n[1])-((r=r.x)[0]<0?r[1]-Da-Mr:Da-r[1])}var Vj=UJ(function(){return!0},function o_e(n){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,l){var u=s>0?Zi:-Zi,d=Xi(s-r);Xi(d-Zi)0?Da:-Da),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Zi&&(Xi(r-i)Mr?gw((mr(r)*(a=Sr(i))*mr(e)-mr(i)*(o=Sr(r))*mr(n))/(o*a*s)):(r+i)/2}(r,e,s,l),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),o=0),n.point(r=s,e=l),i=u},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function s_e(n,r,e,i){var o;if(null==n)o=e*Da,i.point(-Zi,o),i.point(0,o),i.point(Zi,o),i.point(Zi,0),i.point(Zi,-o),i.point(0,-o),i.point(-Zi,-o),i.point(-Zi,0),i.point(-Zi,o);else if(Xi(n[0]-r[0])>Mr){var a=n[0]0,o=Xi(r)>Mr;function s(h,g){return Sr(h)*Sr(g)>r}function u(h,g,C){var q=[1,0,0],re=vw(f0(h),f0(g)),ae=EZ(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!C&&h;var Ee=r*ae/Ce,Ke=-r*Se/Ce,st=vw(q,re),Ae=xZ(q,Ee);Zj(Ae,xZ(re,Ke));var ft=st,bt=EZ(Ae,ft),$e=EZ(ft,ft),Ie=bt*bt-$e*(EZ(Ae,Ae)-1);if(!(Ie<0)){var ct=vs(Ie),Bt=xZ(ft,(-bt-ct)/$e);if(Zj(Bt,Ae),Bt=SZ(Bt),!C)return Bt;var zn,jt=h[0],It=g[0],Tn=h[1],Hn=g[1];It0^Bt[1]<(Xi(Bt[0]-jt)Zi^(jt<=Bt[0]&&Bt[0]<=It)){var Wr=xZ(ft,(-bt+ct)/$e);return Zj(Wr,Ae),[Bt,SZ(Wr)]}}}function d(h,g){var C=i?n:Zi-n,Z=0;return h<-C?Z|=1:h>C&&(Z|=2),g<-C?Z|=4:g>C&&(Z|=8),Z}return UJ(s,function l(h){var g,C,Z,z,q;return{lineStart:function(){z=Z=!1,q=1},point:function(ae,Se){var Ee,Ce=[ae,Se],Ke=s(ae,Se),st=i?Ke?0:d(ae,Se):Ke?d(ae+(ae<0?Zi:-Zi),Se):0;if(!g&&(z=Z=Ke)&&h.lineStart(),Ke!==Z&&((!(Ee=u(g,Ce))||NZ(g,Ee)||NZ(Ce,Ee))&&(Ce[0]+=Mr,Ce[1]+=Mr,Ke=s(Ce[0],Ce[1]))),Ke!==Z)q=0,Ke?(h.lineStart(),Ee=u(Ce,g),h.point(Ee[0],Ee[1])):(Ee=u(g,Ce),h.point(Ee[0],Ee[1]),h.lineEnd()),g=Ee;else if(o&&g&&i^Ke){var Ae;!(st&C)&&(Ae=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(Ae[0][0],Ae[0][1]),h.point(Ae[1][0],Ae[1][1]),h.lineEnd()):(h.point(Ae[1][0],Ae[1][1]),h.lineEnd(),h.lineStart(),h.point(Ae[0][0],Ae[0][1])))}Ke&&(!g||!NZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,Z=Ke,C=st},lineEnd:function(){Z&&h.lineEnd(),g=null},clean:function(){return q|(z&&Z)<<1}}},function a(h,g,C,Z){RJ(Z,n,e,C,h,g)},i?[0,-n]:[-Zi,n-Zi])}var px=1e9,FZ=-px;function UZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,C){var Z=0,z=0;if(null==d||(Z=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{C.point(0===Z||3===Z?n:e,Z>1?i:r)}while((Z=(Z+g+4)%4)!==z);else C.point(h[0],h[1])}function s(d,h){return Xi(d[0]-n)0?0:3:Xi(d[0]-e)0?2:1:Xi(d[1]-r)0?1:0:h>0?3:2}function l(d,h){return u(d.x,h.x)}function u(d,h){var g=s(d,1),C=s(h,1);return g!==C?g-C:0===g?h[1]-d[1]:1===g?d[0]-h[0]:2===g?d[1]-h[1]:h[0]-d[0]}return function(d){var C,Z,z,q,re,ae,Se,Ce,Ee,Ke,st,h=d,g=ZJ(),Ae={point:it,lineStart:function Ie(){Ae.point=Bt,Z&&Z.push(z=[]),Ke=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ct(){C&&(Bt(q,re),ae&&Ee&&g.rejoin(),C.push(g.result())),Ae.point=it,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,C=[],Z=[],st=!0},polygonEnd:function $e(){var jt=function ft(){for(var jt=0,It=0,Tn=Z.length;Iti&&(jr-_r)*(i-Wr)>(Kr-Wr)*(n-_r)&&++jt:Kr<=i&&(jr-_r)*(i-Wr)<(Kr-Wr)*(n-_r)&&--jt;return jt}(),It=st&&jt,Tn=(C=O7(C)).length;(It||Tn)&&(d.polygonStart(),It&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&NJ(C,l,jt,a,d),d.polygonEnd()),h=d,C=Z=z=null}};function it(jt,It){o(jt,It)&&h.point(jt,It)}function Bt(jt,It){var Tn=o(jt,It);if(Z&&z.push([jt,It]),Ke)q=jt,re=It,ae=Tn,Ke=!1,Tn&&(h.lineStart(),h.point(jt,It));else if(Tn&&Ee)h.point(jt,It);else{var Hn=[Se=Math.max(FZ,Math.min(px,Se)),Ce=Math.max(FZ,Math.min(px,Ce))],zn=[jt=Math.max(FZ,Math.min(px,jt)),It=Math.max(FZ,Math.min(px,It))];!function l_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,C=r[0]-s,Z=r[1]-l;if(z=e-s,C||!(z>0)){if(z/=C,C<0){if(z0){if(z>g)return;z>h&&(h=z)}if(z=o-s,C||!(z<0)){if(z/=C,C<0){if(z>g)return;z>h&&(h=z)}else if(C>0){if(z0)){if(z/=Z,Z<0){if(z0){if(z>g)return;z>h&&(h=z)}if(z=a-l,Z||!(z<0)){if(z/=Z,Z<0){if(z>g)return;z>h&&(h=z)}else if(Z>0){if(z0&&(n[0]=s+h*C,n[1]=l+h*Z),g<1&&(r[0]=s+g*C,r[1]=l+g*Z),!0}}}}}(Hn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(jt,It),st=!1):(Ee||(h.lineStart(),h.point(Hn[0],Hn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),st=!1)}Se=jt,Ce=It,Ee=Tn}return Ae}}function u_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=UZ(n,r,e,i)(a=u)},extent:function(u){return arguments.length?(n=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[n,r],[e,i]]}}}var Kj,jZ,HZ,Yj=Cg(),Cw={sphere:_a,point:_a,lineStart:function c_e(){Cw.point=f_e,Cw.lineEnd=d_e},lineEnd:_a,polygonStart:_a,polygonEnd:_a};function d_e(){Cw.point=Cw.lineEnd=_a}function f_e(n,r){Kj=n*=Lr,jZ=mr(r*=Lr),HZ=Sr(r),Cw.point=p_e}function p_e(n,r){n*=Lr;var e=mr(r*=Lr),i=Sr(r),o=Xi(n-Kj),a=Sr(o),l=i*mr(o),u=HZ*e-jZ*i*a,d=jZ*e+HZ*i*a;Yj.add(eu(vs(l*l+u*u),d)),Kj=n,jZ=e,HZ=i}function HJ(n){return Yj.reset(),Hd(n,Cw),+Yj}var qj=[null,null],h_e={type:"LineString",coordinates:qj};function hx(n,r){return qj[0]=n,qj[1]=r,HJ(h_e)}var GJ={Feature:function(r,e){return GZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++oMr}).map(C)).concat(mc(CZ(a/d)*d,o,d).filter(function(Ce){return Xi(Ce%g)>Mr}).map(Z))}return ae.lines=function(){return Se().map(function(Ce){return{type:"LineString",coordinates:Ce}})},ae.outline=function(){return{type:"Polygon",coordinates:[z(i).concat(q(s).slice(1),z(e).reverse().slice(1),q(l).reverse().slice(1))]}},ae.extent=function(Ce){return arguments.length?ae.extentMajor(Ce).extentMinor(Ce):ae.extentMinor()},ae.extentMajor=function(Ce){return arguments.length?(i=+Ce[0][0],e=+Ce[1][0],l=+Ce[0][1],s=+Ce[1][1],i>e&&(Ce=i,i=e,e=Ce),l>s&&(Ce=l,l=s,s=Ce),ae.precision(re)):[[i,l],[e,s]]},ae.extentMinor=function(Ce){return arguments.length?(r=+Ce[0][0],n=+Ce[1][0],a=+Ce[0][1],o=+Ce[1][1],r>n&&(Ce=r,r=n,n=Ce),a>o&&(Ce=a,a=o,o=Ce),ae.precision(re)):[[r,a],[n,o]]},ae.step=function(Ce){return arguments.length?ae.stepMajor(Ce).stepMinor(Ce):ae.stepMinor()},ae.stepMajor=function(Ce){return arguments.length?(h=+Ce[0],g=+Ce[1],ae):[h,g]},ae.stepMinor=function(Ce){return arguments.length?(u=+Ce[0],d=+Ce[1],ae):[u,d]},ae.precision=function(Ce){return arguments.length?(re=+Ce,C=qJ(a,o,90),Z=JJ(r,n,re),z=qJ(l,s,90),q=JJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Mr],[180,90-Mr]]).extentMinor([[-180,-80-Mr],[180,80+Mr]])}function g_e(){return QJ()()}function v_e(n,r){var e=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Sr(i),l=mr(i),u=Sr(a),d=mr(a),h=s*Sr(e),g=s*mr(e),C=u*Sr(o),Z=u*mr(o),z=2*gc(vs(dJ(a-i)+s*u*dJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*C,Ke=Ce*g+Se*Z,st=Ce*l+Se*d;return[eu(Ke,Ee)*zo,eu(st,vs(Ee*Ee+Ke*Ke))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function h0(n){return n}var XJ,$J,Xj,$j,Jj=Cg(),Qj=Cg(),kg={point:_a,lineStart:_a,lineEnd:_a,polygonStart:function(){kg.lineStart=y_e,kg.lineEnd=C_e},polygonEnd:function(){kg.lineStart=kg.lineEnd=kg.point=_a,Jj.add(Xi(Qj)),Qj.reset()},result:function(){var r=Jj/2;return Jj.reset(),r}};function y_e(){kg.point=b_e}function b_e(n,r){kg.point=eQ,XJ=Xj=n,$J=$j=r}function eQ(n,r){Qj.add($j*n-Xj*r),Xj=n,$j=r}function C_e(){eQ(XJ,$J)}var tQ=kg,ww=1/0,zZ=ww,mx=-ww,WZ=mx,w_e={point:function k_e(n,r){nmx&&(mx=n),rWZ&&(WZ=r)},lineStart:_a,lineEnd:_a,polygonStart:_a,polygonEnd:_a,result:function(){var r=[[ww,zZ],[mx,WZ]];return mx=WZ=-(zZ=ww=1/0),r}};var nQ,rQ,pp,hp,VZ=w_e,e9=0,t9=0,_x=0,YZ=0,KZ=0,kw=0,n9=0,r9=0,gx=0,zd={point:m0,lineStart:iQ,lineEnd:oQ,polygonStart:function(){zd.lineStart=S_e,zd.lineEnd=E_e},polygonEnd:function(){zd.point=m0,zd.lineStart=iQ,zd.lineEnd=oQ},result:function(){var r=gx?[n9/gx,r9/gx]:kw?[YZ/kw,KZ/kw]:_x?[e9/_x,t9/_x]:[NaN,NaN];return e9=t9=_x=YZ=KZ=kw=n9=r9=gx=0,r}};function m0(n,r){e9+=n,t9+=r,++_x}function iQ(){zd.point=T_e}function T_e(n,r){zd.point=M_e,m0(pp=n,hp=r)}function M_e(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);YZ+=o*(pp+n)/2,KZ+=o*(hp+r)/2,kw+=o,m0(pp=n,hp=r)}function oQ(){zd.point=m0}function S_e(){zd.point=x_e}function E_e(){aQ(nQ,rQ)}function x_e(n,r){zd.point=aQ,m0(nQ=pp=n,rQ=hp=r)}function aQ(n,r){var e=n-pp,i=r-hp,o=vs(e*e+i*i);YZ+=o*(pp+n)/2,KZ+=o*(hp+r)/2,kw+=o,n9+=(o=hp*n-pp*r)*(pp+n),r9+=o*(hp+r),gx+=3*o,m0(pp=n,hp=r)}var sQ=zd;function lQ(n){this._context=n}lQ.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._context.moveTo(r,e),this._point=1;break;case 1:this._context.lineTo(r,e);break;default:this._context.moveTo(r+this._radius,e),this._context.arc(r,e,this._radius,0,Fu)}},result:_a};var o9,uQ,cQ,vx,yx,i9=Cg(),qZ={point:_a,lineStart:function(){qZ.point=D_e},lineEnd:function(){o9&&dQ(uQ,cQ),qZ.point=_a},polygonStart:function(){o9=!0},polygonEnd:function(){o9=null},result:function(){var r=+i9;return i9.reset(),r}};function D_e(n,r){qZ.point=dQ,uQ=vx=n,cQ=yx=r}function dQ(n,r){vx-=n,yx-=r,i9.add(vs(vx*vx+yx*yx)),vx=n,yx=r}var fQ=qZ;function pQ(){this._string=[]}function hQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function A_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Hd(s,i(o))),o.result()}return a.area=function(s){return Hd(s,i(tQ)),tQ.result()},a.measure=function(s){return Hd(s,i(fQ)),fQ.result()},a.bounds=function(s){return Hd(s,i(VZ)),VZ.result()},a.centroid=function(s){return Hd(s,i(sQ)),sQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,h0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new pQ):new lQ(r=s),"function"!=typeof e&&o.pointRadius(e),a):r},a.pointRadius=function(s){return arguments.length?(e="function"==typeof s?s:(o.pointRadius(+s),+s),a):e},a.projection(n).context(r)}function O_e(n){return{stream:bx(n)}}function bx(n){return function(r){var e=new a9;for(var i in n)e[i]=n[i];return e.stream=r,e}}function a9(){}function s9(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Hd(e,n.stream(VZ)),r(VZ.result()),null!=i&&n.clipExtent(i),n}function JZ(n,r,e){return s9(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),l=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,u=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([l,u])},e)}function l9(n,r,e){return JZ(n,[[0,0],r],e)}function u9(n,r,e){return s9(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,l=-a*i[0][1];n.scale(150*a).translate([s,l])},e)}function c9(n,r,e){return s9(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],l=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,l])},e)}pQ.prototype={_radius:4.5,_circle:hQ(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._string.push("M",r,",",e),this._point=1;break;case 1:this._string.push("L",r,",",e);break;default:null==this._circle&&(this._circle=hQ(this._radius)),this._string.push("M",r,",",e,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},a9.prototype={constructor:a9,point:function(r,e){this.stream.point(r,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var P_e=Sr(30*Lr);function _Q(n,r){return+r?function R_e(n,r){function e(i,o,a,s,l,u,d,h,g,C,Z,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+C,Ke=l+Z,st=u+z,Ae=vs(Ee*Ee+Ke*Ke+st*st),it=gc(st/=Ae),ft=Xi(Xi(st)-1)r||Xi((ae*ct+Se*Bt)/Ce-.5)>.3||s*C+l*Z+u*z2?ct[2]%360*Lr:0,$e()):[l*zo,u*zo,d*zo]},ft.angle=function(ct){return arguments.length?(g=ct%360*Lr,$e()):g*zo},ft.precision=function(ct){return arguments.length?(Ee=_Q(Ke,Ce=ct*ct),Ie()):vs(Ce)},ft.fitExtent=function(ct,Bt){return JZ(ft,ct,Bt)},ft.fitSize=function(ct,Bt){return l9(ft,ct,Bt)},ft.fitWidth=function(ct,Bt){return u9(ft,ct,Bt)},ft.fitHeight=function(ct,Bt){return c9(ft,ct,Bt)},function(){return r=n.apply(this,arguments),ft.invert=r.invert&&bt,$e()}}function f9(n){var r=0,e=Zi/3,i=d9(n),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Lr,e=a[1]*Lr):[r*zo,e*zo]},o}function vQ(n,r){var e=mr(n),i=(e+mr(r))/2;if(Xi(i)=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return n&&r===C?n:n=function F_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a0?l<-Da+Mr&&(l=-Da+Mr):l>Da-Mr&&(l=Da-Mr);var u=o/Aj(XZ(l),i);return[u*mr(i*s),o-u*Sr(i*s)]}return a.invert=function(s,l){var u=o-l,d=ux(i)*vs(s*s+u*u);return[eu(s,Xi(u))/i*ux(u),2*gw(Aj(o/d,1/i))-Da]},a}function z_e(){return f9(wQ).scale(109.5).parallels([30,30])}function kx(n,r){return[n,r]}function W_e(){return im(kx).scale(152.63)}function kQ(n,r){var e=Sr(n),i=n===r?mr(n):(e-Sr(r))/(r-n),o=e/i+n;if(Xi(i)2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function $_e(n,r){return n.parent===r.parent?1:2}function tge(n,r){return n+r.x}function rge(n,r){return Math.max(n,r.y)}function age(){var n=$_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var Z=C.children;Z?(C.x=function ege(n){return n.reduce(tge,0)/n.length}(Z),C.y=function nge(n){return 1+n.reduce(rge,0)}(Z)):(C.x=s?l+=n(C,s):0,C.y=0,s=C)});var u=function ige(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function oge(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),h=u.x-n(u,d)/2,g=d.x+n(d,u)/2;return a.eachAfter(i?function(C){C.x=(C.x-a.x)*r,C.y=(a.y-C.y)*e}:function(C){C.x=(C.x-h)/(g-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],e=+a[1],o):i?null:[r,e]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],e=+a[1],o):i?[r,e]:null},o}function sge(n){var r=0,e=n.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;n.value=r}function b9(n,r){var o,s,l,u,d,e=new Tw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=Cge);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(d=l.length))for(o.children=new Array(d),u=d-1;u>=0;--u)a.push(s=o.children[u]=new Tw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(TQ)}function Cge(n){return n.children}function wge(n){n.data=n.data.data}function TQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function Tw(n){this.data=n,this.depth=this.height=0,this.parent=null}h9.invert=Cx(function(n){return n}),wx.invert=function(n,r){return[n,2*gw(uJ(r))-Da]},kx.invert=kx,m9.invert=Cx(gw),_9.invert=function(n,r){var o,e=r,i=25;do{var a=e*e,s=a*a;e-=o=(e*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Xi(o)>Mr&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},g9.invert=Cx(gc),v9.invert=Cx(function(n){return 2*gw(n)}),y9.invert=function(n,r){return[-r,2*gw(uJ(n))-Da]},Tw.prototype=b9.prototype={constructor:Tw,count:function lge(){return this.eachAfter(sge)},each:function uge(n){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a=0;--o)e.push(i[o]);return this},sum:function fge(n){return this.eachAfter(function(r){for(var e=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function pge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function hge(n){for(var r=this,e=function mge(n,r){if(n===r)return n;var e=n.ancestors(),i=r.ancestors(),o=null;for(n=e.pop(),r=i.pop();n===r;)o=n,n=e.pop(),r=i.pop();return o}(r,n),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;n!==e;)i.splice(o,0,n),n=n.parent;return i},ancestors:function _ge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function gge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function vge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function yge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function bge(){return b9(this).eachBefore(wge)}};var kge=Array.prototype.slice;function MQ(n){for(var o,a,r=0,e=(n=function Tge(n){for(var e,i,r=n.length;r;)i=Math.random()*r--|0,e=n[r],n[r]=n[i],n[i]=e;return n}(kge.call(n))).length,i=[];r0&&e*e>i*i+o*o}function C9(n,r){for(var e=0;e(u*=u)?(o=(d+u-a)/(2*d),l=Math.sqrt(Math.max(0,u/d-o*o)),e.x=n.x-o*i-l*s,e.y=n.y-o*s+l*i):(o=(d+a-u)/(2*d),l=Math.sqrt(Math.max(0,a/d-o*o)),e.x=r.x+o*i-l*s,e.y=r.y+o*s+l*i)):(e.x=r.x+e.r,e.y=r.y)}function DQ(n,r){var e=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function AQ(n){var r=n._,e=n.next._,i=r.r+e.r,o=(r.x*e.r+e.x*r.r)/i,a=(r.y*e.r+e.y*r.r)/i;return o*o+a*a}function tN(n){this._=n,this.next=null,this.previous=null}function OQ(n){if(!(o=n.length))return 0;var r,e,i,o,a,s,l,u,d,h,g;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(e=n[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;xQ(e,r,i=n[2]),r=new tN(r),e=new tN(e),i=new tN(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=nN(i),e):n},e.parentId=function(i){return arguments.length?(r=nN(i),e):r},e}function Nge(n,r){return n.parent===r.parent?1:2}function k9(n){var r=n.children;return r?r[0]:n.t}function T9(n){var r=n.children;return r?r[r.length-1]:n.t}function Bge(n,r,e){var i=e/(r.i-n.i);r.c-=i,r.s+=e,n.c+=i,r.z+=e,r.m+=e}function Uge(n,r,e){return n.a.parent===r.parent?n.a:e}function rN(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function Hge(){var n=Nge,r=1,e=1,i=null;function o(d){var h=function jge(n){for(var e,o,a,s,l,r=new rN(n,0),i=[r];e=i.pop();)if(a=e._.children)for(e.children=new Array(l=a.length),s=l-1;s>=0;--s)i.push(o=e.children[s]=new rN(a[s],s)),o.parent=e;return(r.parent=new rN(null,0)).children=[r],r}(d);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)d.eachBefore(u);else{var g=d,C=d,Z=d;d.eachBefore(function(Se){Se.xC.x&&(C=Se),Se.depth>Z.depth&&(Z=Se)});var z=g===C?1:n(g,C)/2,q=z-g.x,re=r/(C.x+z+q),ae=e/(Z.depth||1);d.eachBefore(function(Se){Se.x=(Se.x+q)*re,Se.y=Se.depth*ae})}return d}function a(d){var h=d.children,g=d.parent.children,C=d.i?g[d.i-1]:null;if(h){!function Fge(n){for(var a,r=0,e=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(d);var Z=(h[0].z+h[h.length-1].z)/2;C?(d.z=C.z+n(d._,C._),d.m=d.z-Z):d.z=Z}else C&&(d.z=C.z+n(d._,C._));d.parent.A=function l(d,h,g){if(h){for(var Ee,C=d,Z=d,z=h,q=C.parent.children[0],re=C.m,ae=Z.m,Se=z.m,Ce=q.m;z=T9(z),C=k9(C),z&&C;)q=k9(q),(Z=T9(Z)).a=d,(Ee=z.z+Se-C.z-re+n(z._,C._))>0&&(Bge(Uge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=C.m,Ce+=q.m,ae+=Z.m;z&&!T9(Z)&&(Z.t=z,Z.m+=Se-ae),C&&!k9(q)&&(q.t=C,q.m+=re-Ce,g=d)}return g}(d,C,d.parent.A||g[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function u(d){d.x*=r,d.y=d.depth*e}return o.separation=function(d){return arguments.length?(n=d,o):n},o.size=function(d){return arguments.length?(i=!1,r=+d[0],e=+d[1],o):i?null:[r,e]},o.nodeSize=function(d){return arguments.length?(i=!0,r=+d[0],e=+d[1],o):i?[r,e]:null},o}function iN(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++lSe&&(Se=d),st=re*re*Ke,(Ce=Math.max(Se/st,st/ae))>Ee){re-=d;break}Ee=Ce}s.push(u={value:re,dice:Z1?i:1)},e}(NQ);function Gge(){var n=FQ,r=!1,e=1,i=1,o=[0],a=_0,s=_0,l=_0,u=_0,d=_0;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(g),o=[0],r&&C.eachBefore(RQ),C}function g(C){var Z=o[C.depth],z=C.x0+Z,q=C.y0+Z,re=C.x1-Z,ae=C.y1-Z;re=C-1){var Se=a[g];return Se.x0=z,Se.y0=q,Se.x1=re,void(Se.y1=ae)}for(var Ce=d[g],Ee=Z/2+Ce,Ke=g+1,st=C-1;Ke>>1;d[Ae]ae-q){var bt=(z*ft+re*it)/Z;h(g,Ke,it,z,q,bt,ae),h(Ke,C,ft,bt,q,re,ae)}else{var $e=(q*ft+ae*it)/Z;h(g,Ke,it,z,q,re,$e),h(Ke,C,ft,z,$e,re,ae)}}(0,l,n.value,r,e,i,o)}function Wge(n,r,e,i,o){(1&n.depth?iN:Mx)(n,r,e,i,o)}var Vge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,Z,C=-1,z=u.length,q=i.value;++C1?i:1)},e}(NQ);function Sw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Sx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function Tg(){}var Ew=1/.7,xw="\\s*([+-]?\\d+)\\s*",Ex="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yge=/^#([0-9a-f]{3,8})$/,Kge=new RegExp("^rgb\\("+[xw,xw,xw]+"\\)$"),qge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),Jge=new RegExp("^rgba\\("+[xw,xw,xw,Ex]+"\\)$"),Qge=new RegExp("^rgba\\("+[mp,mp,mp,Ex]+"\\)$"),Xge=new RegExp("^hsl\\("+[Ex,mp,mp]+"\\)$"),$ge=new RegExp("^hsla\\("+[Ex,mp,mp,Ex]+"\\)$"),UQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function jQ(){return this.rgb().formatHex()}function HQ(){return this.rgb().formatRgb()}function xx(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Yge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?GQ(r):3===e?new al(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?oN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?oN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Kge.exec(n))?new al(r[1],r[2],r[3],1):(r=qge.exec(n))?new al(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Jge.exec(n))?oN(r[1],r[2],r[3],r[4]):(r=Qge.exec(n))?oN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xge.exec(n))?VQ(r[1],r[2]/100,r[3]/100,1):(r=$ge.exec(n))?VQ(r[1],r[2]/100,r[3]/100,r[4]):UQ.hasOwnProperty(n)?GQ(UQ[n]):"transparent"===n?new al(NaN,NaN,NaN,0):null}function GQ(n){return new al(n>>16&255,n>>8&255,255&n,1)}function oN(n,r,e,i){return i<=0&&(n=r=e=NaN),new al(n,r,e,i)}function M9(n){return n instanceof Tg||(n=xx(n)),n?new al((n=n.rgb()).r,n.g,n.b,n.opacity):new al}function aN(n,r,e,i){return 1===arguments.length?M9(n):new al(n,r,e,null==i?1:i)}function al(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function zQ(){return"#"+S9(this.r)+S9(this.g)+S9(this.b)}function WQ(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function S9(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function VQ(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new _p(n,r,e,i)}function YQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof Tg||(n=xx(n)),!n)return new _p;if(n instanceof _p)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new _p(s,l,u,n.opacity)}function E9(n,r,e,i){return 1===arguments.length?YQ(n):new _p(n,r,e,null==i?1:i)}function _p(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function x9(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function KQ(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function qQ(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i180||e<-180?e-360*Math.round(e/360):e):sN(isNaN(n)?r:n)}function nve(n){return 1==(n=+n)?Us:function(r,e){return e-r?function tve(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):sN(isNaN(r)?e:r)}}function Us(n,r){var e=r-n;return e?QQ(n,e):sN(isNaN(n)?r:n)}Sw(Tg,xx,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:jQ,formatHex:jQ,formatHsl:function eve(){return YQ(this).formatHsl()},formatRgb:HQ,toString:HQ}),Sw(al,aN,Sx(Tg,{brighter:function(r){return r=null==r?Ew:Math.pow(Ew,r),new al(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new al(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zQ,formatHex:zQ,formatRgb:WQ,toString:WQ})),Sw(_p,E9,Sx(Tg,{brighter:function(r){return r=null==r?Ew:Math.pow(Ew,r),new _p(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _p(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new al(x9(r>=240?r-240:r+120,a,o),x9(r,a,o),x9(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var A9=function n(r){var e=nve(r);function i(o,a){var s=e((o=aN(o)).r,(a=aN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Us(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function XQ(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;se&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:gp(i,o)})),e=P9.lastIndex;return e180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:gp(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:gp(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z.008856451679035631?Math.pow(n,1/3):n/_X+mX}function F9(n){return n>Dw?n*n*n:_X*(n-mX)}function U9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function j9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function vX(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof Wd||(n=gX(n)),0===n.a&&0===n.b)return new vp(NaN,01&&xve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Ave(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;ra!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function Pve(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Aw),Rve=function n(r){function e(){var i=EX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Aw),xX=function n(r){function e(i){return function(){for(var o=0,a=0;a2?Hve:jve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Fve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(n):n,o)))(+g)}return h.invert=function(g){return(u||(u=s(i,e,Q9,a?function Uve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+g)},h.domain=function(g){return arguments.length?(e=V9.call(g,OX),d()):e.slice()},h.range=function(g){return arguments.length?(i=Mg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=Mg.call(g),o=Bve,d()},h.clamp=function(g){return arguments.length?(a=!!g,d()):a},h.interpolate=function(g){return arguments.length?(o=g,d()):o},d()}var IX,Gve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pN(n){if(!(r=Gve.exec(n)))throw new Error("invalid format: "+n);var r;return new X9({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function X9(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function hN(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function Ow(n){return(n=hN(Math.abs(n)))?n[1]:NaN}function RX(n,r){var e=hN(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}pN.prototype=X9.prototype,X9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var LX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function zve(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return RX(100*r,e)},r:RX,s:function qve(n,r){var e=hN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(IX=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+hN(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function ZX(n){return n}var mN,$9,FX,NX=Array.prototype.map,BX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Jve(n){var r=void 0===n.grouping||void 0===n.thousands?ZX:function Vve(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(NX.call(n.grouping,Number),n.thousands+""),e=void 0===n.currency?"":n.currency[0]+"",i=void 0===n.currency?"":n.currency[1]+"",o=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?ZX:function Yve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(NX.call(n.numerals,String)),s=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"-":n.minus+"",u=void 0===n.nan?"NaN":n.nan+"";function d(g){var C=(g=pN(g)).fill,Z=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,Ee=g.trim,Ke=g.type;"n"===Ke?(Se=!0,Ke="g"):LX[Ke]||(void 0===Ce&&(Ce=12),Ee=!0,Ke="g"),(re||"0"===C&&"="===Z)&&(re=!0,C="0",Z="=");var st="$"===q?e:"#"===q&&/[boxX]/.test(Ke)?"0"+Ke.toLowerCase():"",Ae="$"===q?i:/[%p]/.test(Ke)?s:"",it=LX[Ke],ft=/[defgprs%]/.test(Ke);function bt($e){var Bt,jt,It,Ie=st,ct=Ae;if("c"===Ke)ct=it($e)+ct,$e="";else{var Tn=($e=+$e)<0||1/$e<0;if($e=isNaN($e)?u:it(Math.abs($e),Ce),Ee&&($e=function Kve(n){e:for(var o,r=n.length,e=1,i=-1;e0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}($e)),Tn&&0==+$e&&"+"!==z&&(Tn=!1),Ie=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Ie,ct=("s"===Ke?BX[8+IX/3]:"")+ct+(Tn&&"("===z?")":""),ft)for(Bt=-1,jt=$e.length;++Bt(It=$e.charCodeAt(Bt))||It>57){ct=(46===It?o+$e.slice(Bt+1):$e.slice(Bt))+ct,$e=$e.slice(0,Bt);break}}Se&&!re&&($e=r($e,1/0));var Hn=Ie.length+$e.length+ct.length,zn=Hn>1)+Ie+$e+ct+zn.slice(Hn);break;default:$e=zn+Ie+$e+ct}return a($e)}return Ce=void 0===Ce?6:/[gprs]/.test(Ke)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce)),bt.toString=function(){return g+""},bt}return{format:d,formatPrefix:function h(g,C){var Z=d(((g=pN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Ow(C)/3))),q=Math.pow(10,-z),re=BX[8+z/3];return function(ae){return Z(q*ae)+re}}}}function eye(n,r,e){var s,i=n[0],o=n[n.length-1],a=n0(i,o,null==r?10:r);switch((e=pN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Wve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ow(r)/3)))-Ow(Math.abs(n)))}(a,l))&&(e.precision=s),FX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Xve(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Ow(r)-Ow(n))+1}(a,Math.max(Math.abs(i),Math.abs(o))))&&(e.precision=s-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(s=function $ve(n){return Math.max(0,-Ow(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return $9(e)}function Px(n){var r=n.domain;return n.ticks=function(e){var i=r();return D7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return eye(r(),e,i)},n.nice=function(e){null==e&&(e=10);var u,i=r(),o=0,a=i.length-1,s=i[o],l=i[a];return l0?u=WE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=WE(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,e)),u>0?(i[o]=Math.floor(s/u)*u,i[a]=Math.ceil(l/u)*u,r(i)):u<0&&(i[o]=Math.ceil(s*u)/u,i[a]=Math.floor(l*u)/u,r(i)),n},n}function UX(){var n=fN(Q9,qc);return n.copy=function(){return dN(n,UX())},Px(n)}function jX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=V9.call(e,OX),r):n.slice()},r.copy=function(){return jX().domain(n)},Px(r)}function HX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a0){for(;gd)break;ae.push(q)}}else for(;g=1;--z)if(!((q=Z*z)d)break;ae.push(q)}}else ae=D7(g,C,Math.min(C-g,re)).map(o);return h?ae.reverse():ae},n.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=$9(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/n.ticks().length);return function(d){var h=d/o(Math.round(i(d)));return h*e0?e[s-1]:n[0],s=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return KX().domain([n,r]).range(o)},Px(a)}function qX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[$1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=Mg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Mg.call(o),e=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return qX().domain(n).range(r)},i}!function Qve(n){return mN=Jve(n),$9=mN.format,FX=mN.formatPrefix,mN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var tH=new Date,nH=new Date;function js(n,r,e,i){function o(a){return n(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return n(a=new Date(+a)),a},o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return tH.setTime(+a),nH.setTime(+s),n(tH),n(nH),Math.floor(e(tH,nH))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var rH=js(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});rH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?js(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var Vd=rH,JX=(rH.range,js(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()})),oye=JX,y0=(JX.range,6e4),gN=36e5,XX=6048e5;function b0(n){return js(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*y0)/XX})}var vN=b0(0),C0=b0(1),aye=b0(2),sye=b0(3),om=b0(4),lye=b0(5),uye=b0(6),$X=(vN.range,C0.range,aye.range,sye.range,om.range,lye.range,uye.range,js(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*y0)/864e5},function(n){return n.getDate()-1})),Ix=$X,e$=($X.range,js(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*y0)},function(n,r){n.setTime(+n+r*gN)},function(n,r){return(r-n)/gN},function(n){return n.getHours()})),cye=e$,t$=(e$.range,js(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*y0)},function(n,r){return(r-n)/y0},function(n){return n.getMinutes()})),dye=t$,n$=(t$.range,js(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()})),r$=n$,yN=(n$.range,js(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));yN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?js(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):yN:null};var i$=yN;yN.range;function w0(n){return js(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/XX})}var bN=w0(0),k0=w0(1),fye=w0(2),pye=w0(3),am=w0(4),hye=w0(5),mye=w0(6),o$=(bN.range,k0.range,fye.range,pye.range,am.range,hye.range,mye.range,js(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1})),Rx=o$,iH=(o$.range,js(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()}));iH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?js(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Yd=iH;iH.range;function oH(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function aH(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Lx(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Iw,b$,C$,a$={"-":"",_:" ",0:"0"},Hs=/^\s*\d+/,gye=/^%/,vye=/[\\^$*+?|[\]().{}]/g;function Vi(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function Mye(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Sye(n,r,e){var i=Hs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Eye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function u$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function c$(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Dye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Aye(n,r,e){var i=Hs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=Hs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Pye(n,r,e){var i=Hs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Iye(n,r,e){var i=gye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Rye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Lye(n,r,e){var i=Hs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function d$(n,r){return Vi(n.getDate(),r,2)}function Zye(n,r){return Vi(n.getHours(),r,2)}function Nye(n,r){return Vi(n.getHours()%12||12,r,2)}function Bye(n,r){return Vi(1+Ix.count(Vd(n),n),r,3)}function f$(n,r){return Vi(n.getMilliseconds(),r,3)}function Fye(n,r){return f$(n,r)+"000"}function Uye(n,r){return Vi(n.getMonth()+1,r,2)}function jye(n,r){return Vi(n.getMinutes(),r,2)}function Hye(n,r){return Vi(n.getSeconds(),r,2)}function Gye(n){var r=n.getDay();return 0===r?7:r}function zye(n,r){return Vi(vN.count(Vd(n)-1,n),r,2)}function p$(n){var r=n.getDay();return r>=4||0===r?om(n):om.ceil(n)}function Wye(n,r){return n=p$(n),Vi(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function Vye(n){return n.getDay()}function Yye(n,r){return Vi(C0.count(Vd(n)-1,n),r,2)}function Kye(n,r){return Vi(n.getFullYear()%100,r,2)}function qye(n,r){return Vi((n=p$(n)).getFullYear()%100,r,2)}function Jye(n,r){return Vi(n.getFullYear()%1e4,r,4)}function Qye(n,r){var e=n.getDay();return Vi((n=e>=4||0===e?om(n):om.ceil(n)).getFullYear()%1e4,r,4)}function Xye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Vi(r/60|0,"0",2)+Vi(r%60,"0",2)}function h$(n,r){return Vi(n.getUTCDate(),r,2)}function $ye(n,r){return Vi(n.getUTCHours(),r,2)}function e0e(n,r){return Vi(n.getUTCHours()%12||12,r,2)}function t0e(n,r){return Vi(1+Rx.count(Yd(n),n),r,3)}function m$(n,r){return Vi(n.getUTCMilliseconds(),r,3)}function n0e(n,r){return m$(n,r)+"000"}function r0e(n,r){return Vi(n.getUTCMonth()+1,r,2)}function i0e(n,r){return Vi(n.getUTCMinutes(),r,2)}function o0e(n,r){return Vi(n.getUTCSeconds(),r,2)}function a0e(n){var r=n.getUTCDay();return 0===r?7:r}function s0e(n,r){return Vi(bN.count(Yd(n)-1,n),r,2)}function _$(n){var r=n.getUTCDay();return r>=4||0===r?am(n):am.ceil(n)}function l0e(n,r){return n=_$(n),Vi(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function u0e(n){return n.getUTCDay()}function c0e(n,r){return Vi(k0.count(Yd(n)-1,n),r,2)}function d0e(n,r){return Vi(n.getUTCFullYear()%100,r,2)}function f0e(n,r){return Vi((n=_$(n)).getUTCFullYear()%100,r,2)}function p0e(n,r){return Vi(n.getUTCFullYear()%1e4,r,4)}function h0e(n,r){var e=n.getUTCDay();return Vi((n=e>=4||0===e?am(n):am.ceil(n)).getUTCFullYear()%1e4,r,4)}function m0e(){return"+0000"}function g$(){return"%"}function v$(n){return+n}function y$(n){return Math.floor(+n/1e3)}!function v0e(n){return Iw=function _ye(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=Zx(o),h=Nx(o),g=Zx(a),C=Nx(a),Z=Zx(s),z=Nx(s),q=Zx(l),re=Nx(l),ae=Zx(u),Se=Nx(u),Ce={a:function Tn(Mn){return s[Mn.getDay()]},A:function Hn(Mn){return a[Mn.getDay()]},b:function zn(Mn){return u[Mn.getMonth()]},B:function ar(Mn){return l[Mn.getMonth()]},c:null,d:d$,e:d$,f:Fye,g:qye,G:Qye,H:Zye,I:Nye,j:Bye,L:f$,m:Uye,M:jye,p:function kr(Mn){return o[+(Mn.getHours()>=12)]},q:function _r(Mn){return 1+~~(Mn.getMonth()/3)},Q:v$,s:y$,S:Hye,u:Gye,U:zye,V:Wye,w:Vye,W:Yye,x:null,X:null,y:Kye,Y:Jye,Z:Xye,"%":g$},Ee={a:function Wr(Mn){return s[Mn.getUTCDay()]},A:function jr(Mn){return a[Mn.getUTCDay()]},b:function Kr(Mn){return u[Mn.getUTCMonth()]},B:function jo(Mn){return l[Mn.getUTCMonth()]},c:null,d:h$,e:h$,f:n0e,g:f0e,G:h0e,H:$ye,I:e0e,j:t0e,L:m$,m:r0e,M:i0e,p:function tr(Mn){return o[+(Mn.getUTCHours()>=12)]},q:function br(Mn){return 1+~~(Mn.getUTCMonth()/3)},Q:v$,s:y$,S:o0e,u:a0e,U:s0e,V:l0e,w:u0e,W:c0e,x:null,X:null,y:d0e,Y:p0e,Z:m0e,"%":g$},Ke={a:function bt(Mn,gn,nr){var un=Z.exec(gn.slice(nr));return un?(Mn.w=z[un[0].toLowerCase()],nr+un[0].length):-1},A:function $e(Mn,gn,nr){var un=g.exec(gn.slice(nr));return un?(Mn.w=C[un[0].toLowerCase()],nr+un[0].length):-1},b:function Ie(Mn,gn,nr){var un=ae.exec(gn.slice(nr));return un?(Mn.m=Se[un[0].toLowerCase()],nr+un[0].length):-1},B:function ct(Mn,gn,nr){var un=q.exec(gn.slice(nr));return un?(Mn.m=re[un[0].toLowerCase()],nr+un[0].length):-1},c:function Bt(Mn,gn,nr){return it(Mn,r,gn,nr)},d:u$,e:u$,f:Pye,g:l$,G:s$,H:c$,I:c$,j:xye,L:Oye,m:Eye,M:Dye,p:function ft(Mn,gn,nr){var un=d.exec(gn.slice(nr));return un?(Mn.p=h[un[0].toLowerCase()],nr+un[0].length):-1},q:Sye,Q:Rye,s:Lye,S:Aye,u:Cye,U:wye,V:kye,w:bye,W:Tye,x:function jt(Mn,gn,nr){return it(Mn,e,gn,nr)},X:function It(Mn,gn,nr){return it(Mn,i,gn,nr)},y:l$,Y:s$,Z:Mye,"%":Iye};function st(Mn,gn){return function(nr){var gr,eo,Xu,un=[],bn=-1,Nn=0,rr=Mn.length;for(nr instanceof Date||(nr=new Date(+nr));++bn53)return null;"w"in un||(un.w=1),"Z"in un?(rr=(Nn=aH(Lx(un.y,0,1))).getUTCDay(),Nn=rr>4||0===rr?k0.ceil(Nn):k0(Nn),Nn=Rx.offset(Nn,7*(un.V-1)),un.y=Nn.getUTCFullYear(),un.m=Nn.getUTCMonth(),un.d=Nn.getUTCDate()+(un.w+6)%7):(rr=(Nn=oH(Lx(un.y,0,1))).getDay(),Nn=rr>4||0===rr?C0.ceil(Nn):C0(Nn),Nn=Ix.offset(Nn,7*(un.V-1)),un.y=Nn.getFullYear(),un.m=Nn.getMonth(),un.d=Nn.getDate()+(un.w+6)%7)}else("W"in un||"U"in un)&&("w"in un||(un.w="u"in un?un.u%7:"W"in un?1:0),rr="Z"in un?aH(Lx(un.y,0,1)).getUTCDay():oH(Lx(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(rr+5)%7:un.w+7*un.U-(rr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,aH(un)):oH(un)}}function it(Mn,gn,nr,un){for(var gr,eo,bn=0,Nn=gn.length,rr=nr.length;bn=rr)return-1;if(37===(gr=gn.charCodeAt(bn++))){if(gr=gn.charAt(bn++),!(eo=Ke[gr in a$?gn.charAt(bn++):gr])||(un=eo(Mn,nr,un))<0)return-1}else if(gr!=nr.charCodeAt(un++))return-1}return un}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(gn){var nr=st(gn+="",Ce);return nr.toString=function(){return gn},nr},parse:function(gn){var nr=Ae(gn+="",!1);return nr.toString=function(){return gn},nr},utcFormat:function(gn){var nr=st(gn+="",Ee);return nr.toString=function(){return gn},nr},utcParse:function(gn){var nr=Ae(gn+="",!0);return nr.toString=function(){return gn},nr}}}(n),b$=Iw.format,Iw.parse,C$=Iw.utcFormat,Iw.utcParse,Iw}({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 Bx=1e3,Fx=6e4,Ux=60*Fx,jx=24*Ux,w$=30*jx,sH=365*jx;function b0e(n){return new Date(n)}function C0e(n){return n instanceof Date?+n:+new Date(+n)}function lH(n,r,e,i,o,a,s,l,u){var d=fN(Q9,qc),h=d.invert,g=d.domain,C=u(".%L"),Z=u(":%S"),z=u("%I:%M"),q=u("%I %p"),re=u("%a %d"),ae=u("%b %d"),Se=u("%B"),Ce=u("%Y"),Ee=[[s,1,Bx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Fx],[a,5,5*Fx],[a,15,15*Fx],[a,30,30*Fx],[o,1,Ux],[o,3,3*Ux],[o,6,6*Ux],[o,12,12*Ux],[i,1,jx],[i,2,2*jx],[e,1,6048e5],[r,1,w$],[r,3,3*w$],[n,1,sH]];function Ke(Ae){return(s(Ae)180||e<-180?e-360*Math.round(e/360):e):zL(isNaN(n)?r:n)});var dH=iee(ow),fbe=dH(yp(300,.5,0),yp(-240,.5,1)),pbe=dH(yp(-100,.75,.35),yp(80,1.5,.8)),hbe=dH(yp(260,.75,.35),yp(80,1.5,.8)),wN=yp();function mbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return wN.h=360*n-100,wN.s=1.5-1.5*r,wN.l=.8-.9*r,wN+""}function kN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var _be=kN(ci("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),gbe=kN(ci("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vbe=kN(ci("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ybe=kN(ci("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),fH="http://www.w3.org/1999/xhtml",pH={svg:"http://www.w3.org/2000/svg",xhtml:fH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hH(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),pH.hasOwnProperty(r)?{space:pH[r],local:n}:n}function bbe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===fH&&r.documentElement.namespaceURI===fH?r.createElement(n):r.createElementNS(e,n)}}function Cbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function TN(n){var r=hH(n);return(r.local?Cbe:bbe)(r)}function wbe(){}function mH(n){return null==n?wbe:function(){return this.querySelector(n)}}function Tbe(){return[]}function oee(n){return null==n?Tbe:function(){return this.querySelectorAll(n)}}var aee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var Gx=document.documentElement;if(!Gx.matches){var Sbe=Gx.webkitMatchesSelector||Gx.msMatchesSelector||Gx.mozMatchesSelector||Gx.oMatchesSelector;aee=function(r){return function(){return Sbe.call(this,r)}}}}var see=aee;function lee(n){return new Array(n.length)}function MN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}MN.prototype={constructor:MN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Abe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;sr?1:n>=r?0:NaN}function zbe(n){return function(){this.removeAttribute(n)}}function Wbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Vbe(n,r){return function(){this.setAttribute(n,r)}}function Ybe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Kbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function qbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function _H(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Qbe(n){return function(){this.style.removeProperty(n)}}function Xbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function $be(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function cee(n,r){return n.style.getPropertyValue(r)||_H(n).getComputedStyle(n,null).getPropertyValue(r)}function tCe(n){return function(){delete this[n]}}function nCe(n,r){return function(){this[n]=r}}function rCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function dee(n){return n.trim().split(/^|\s+/)}function gH(n){return n.classList||new fee(n)}function fee(n){this._node=n,this._names=dee(n.getAttribute("class")||"")}function pee(n,r){for(var e=gH(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var mee={},sm=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(mee={mouseenter:"mouseover",mouseleave:"mouseout"}));function OCe(n,r,e){return n=_ee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function _ee(n,r,e){return function(i){var o=sm;sm=i;try{n.call(this,this.__data__,r,e)}finally{sm=o}}}function PCe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function ICe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Zbe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Nbe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Qbe:"function"==typeof r?$be:Xbe)(n,r,null==e?"":e)):cee(this.node(),n)},property:function iCe(n,r){return arguments.length>1?this.each((null==r?tCe:"function"==typeof r?rCe:nCe)(n,r)):this.node()[n]},classed:function lCe(n,r){var e=dee(n+"");if(arguments.length<2){for(var i=gH(this.node()),o=-1,a=e.length;++o1?0:n<-1?S0:Math.acos(n)}function wee(n){return n>=1?EN:n<=-1?-EN:Math.asin(n)}function c1e(n){return n.innerRadius}function d1e(n){return n.outerRadius}function f1e(n){return n.startAngle}function p1e(n){return n.endAngle}function h1e(n){return n&&n.padAngle}function m1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,C=g*u-h*d;if(!(C*CBt*Bt+jt*jt&&(it=bt,ft=$e),{cx:it,cy:ft,x01:-h,y01:-g,x11:it*(o/Ke-1),y11:ft*(o/Ke-1)}}function _1e(){var n=c1e,r=d1e,e=gi(0),i=null,o=f1e,a=p1e,s=h1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),C=+r.apply(this,arguments),Z=o.apply(this,arguments)-EN,z=a.apply(this,arguments)-EN,q=Cee(z-Z),re=z>Z;if(l||(l=d=jd()),Csl)if(q>lm-sl)l.moveTo(C*M0(Z),C*bp(Z)),l.arc(0,0,C,Z,z,!re),g>sl&&(l.moveTo(g*M0(z),g*bp(z)),l.arc(0,0,g,z,Z,re));else{var Ie,ct,ae=Z,Se=z,Ce=Z,Ee=z,Ke=q,st=q,Ae=s.apply(this,arguments)/2,it=Ae>sl&&(i?+i.apply(this,arguments):Rw(g*g+C*C)),ft=CH(Cee(C-g)/2,+e.apply(this,arguments)),bt=ft,$e=ft;if(it>sl){var Bt=wee(it/g*bp(Ae)),jt=wee(it/C*bp(Ae));(Ke-=2*Bt)>sl?(Ce+=Bt*=re?1:-1,Ee-=Bt):(Ke=0,Ce=Ee=(Z+z)/2),(st-=2*jt)>sl?(ae+=jt*=re?1:-1,Se-=jt):(st=0,ae=Se=(Z+z)/2)}var It=C*M0(ae),Tn=C*bp(ae),Hn=g*M0(Ee),zn=g*bp(Ee);if(ft>sl){var jr,ar=C*M0(Se),kr=C*bp(Se),_r=g*M0(Ce),Wr=g*bp(Ce);if(q<=lm-sl&&(jr=m1e(It,Tn,_r,Wr,ar,kr,Hn,zn))){var Kr=It-jr[0],jo=Tn-jr[1],tr=ar-jr[0],br=kr-jr[1],Mn=1/bp(u1e((Kr*tr+jo*br)/(Rw(Kr*Kr+jo*jo)*Rw(tr*tr+br*br)))/2),gn=Rw(jr[0]*jr[0]+jr[1]*jr[1]);bt=CH(ft,(g-gn)/(Mn-1)),$e=CH(ft,(C-gn)/(Mn+1))}}st>sl?$e>sl?(Ie=xN(_r,Wr,It,Tn,C,$e,re),ct=xN(ar,kr,Hn,zn,C,$e,re),l.moveTo(Ie.cx+Ie.x01,Ie.cy+Ie.y01),$esl&&Ke>sl?bt>sl?(Ie=xN(Hn,zn,ar,kr,g,-bt,re),ct=xN(It,Tn,_r,Wr,g,-bt,re),l.lineTo(Ie.cx+Ie.x01,Ie.cy+Ie.y01),bt=C;--Z)l.point(Se[Z],Ce[Z]);l.lineEnd(),l.areaEnd()}re&&(Se[g]=+n(q,g,h),Ce[g]=+e(q,g,h),l.point(r?+r(q,g,h):Se[g],i?+i(q,g,h):Ce[g]))}if(ae)return l=null,ae+""||null}function d(){return AN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:gi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:gi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:gi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:gi(+h),u):i},u.lineX0=u.lineY0=function(){return d().x(n).y(e)},u.lineY1=function(){return d().x(n).y(i)},u.lineX1=function(){return d().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:gi(!!h),u):o},u.curve=function(h){return arguments.length?(s=h,null!=a&&(l=s(a)),u):s},u.context=function(h){return arguments.length?(null==h?a=l=null:l=s(a=h),u):a},u}function g1e(n,r){return rn?1:r>=n?0:NaN}function v1e(n){return n}function y1e(){var n=v1e,r=g1e,e=null,i=gi(0),o=gi(lm),a=gi(0);function s(l){var u,h,g,ae,Ee,d=l.length,C=0,Z=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(lm,Math.max(-lm,o.apply(this,arguments)-q)),Se=Math.min(Math.abs(re)/d,a.apply(this,arguments)),Ce=Se*(re<0?-1:1);for(u=0;u0&&(C+=Ee);for(null!=r?Z.sort(function(Ke,st){return r(z[Ke],z[st])}):null!=e&&Z.sort(function(Ke,st){return e(l[Ke],l[st])}),u=0,g=C?(re-d*Ce)/C:0;u0?Ee*g:0)+Ce,z[h]={data:l[h],index:u,value:Ee,startAngle:q,endAngle:ae,padAngle:Se};return z}return s.value=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.sortValues=function(l){return arguments.length?(r=l,e=null,s):r},s.sort=function(l){return arguments.length?(e=l,r=null,s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:gi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:gi(+l),s):a},s}kee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e)}}};var Mee=TH(DN);function See(n){this._curve=n}function TH(n){function r(e){return new See(n(e))}return r._curve=n,r}function zx(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(e){return arguments.length?r(TH(e)):r()._curve},n}function Eee(){return zx(AN().curve(Mee))}function xee(){var n=Tee().curve(Mee),r=n.curve,e=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return zx(e())},delete n.lineX0,n.lineEndAngle=function(){return zx(i())},delete n.lineX1,n.lineInnerRadius=function(){return zx(o())},delete n.lineY0,n.lineOuterRadius=function(){return zx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(TH(s)):r()._curve},n}function Wx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}See.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,e){this._curve.point(e*Math.sin(r),e*-Math.cos(r))}};var MH=Array.prototype.slice;function b1e(n){return n.source}function C1e(n){return n.target}function SH(n){var r=b1e,e=C1e,i=wH,o=kH,a=null;function s(){var l,u=MH.call(arguments),d=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=jd()),n(a,+i.apply(this,(u[0]=d,u)),+o.apply(this,u),+i.apply(this,(u[0]=h,u)),+o.apply(this,u)),l)return a=null,l+""||null}return s.source=function(l){return arguments.length?(r=l,s):r},s.target=function(l){return arguments.length?(e=l,s):e},s.x=function(l){return arguments.length?(i="function"==typeof l?l:gi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function w1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function k1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function T1e(n,r,e,i,o){var a=Wx(r,e),s=Wx(r,e=(e+o)/2),l=Wx(i,e),u=Wx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function M1e(){return SH(w1e)}function S1e(){return SH(k1e)}function E1e(){var n=SH(T1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var EH={draw:function(r,e){var i=Math.sqrt(e/S0);r.moveTo(i,0),r.arc(0,0,i,0,lm)}},Dee={draw:function(r,e){var i=Math.sqrt(e/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},Aee=Math.sqrt(1/3),x1e=2*Aee,Oee={draw:function(r,e){var i=Math.sqrt(e/x1e),o=i*Aee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},Pee=Math.sin(S0/10)/Math.sin(7*S0/10),A1e=Math.sin(lm/10)*Pee,O1e=-Math.cos(lm/10)*Pee,Iee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=A1e*i,a=O1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=lm*s/5,u=Math.cos(l),d=Math.sin(l);r.lineTo(d*i,-u*i),r.lineTo(u*o-d*a,d*o+u*a)}r.closePath()}},Ree={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},xH=Math.sqrt(3),Lee={draw:function(r,e){var i=-Math.sqrt(e/(3*xH));r.moveTo(0,2*i),r.lineTo(-xH*i,-i),r.lineTo(xH*i,-i),r.closePath()}},Xc=-.5,$c=Math.sqrt(3)/2,DH=1/Math.sqrt(12),P1e=3*(DH/2+1),Zee={draw:function(r,e){var i=Math.sqrt(e/P1e),o=i/2,a=i*DH,s=o,l=i*DH+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Xc*o-$c*a,$c*o+Xc*a),r.lineTo(Xc*s-$c*l,$c*s+Xc*l),r.lineTo(Xc*u-$c*d,$c*u+Xc*d),r.lineTo(Xc*o+$c*a,Xc*a-$c*o),r.lineTo(Xc*s+$c*l,Xc*l-$c*s),r.lineTo(Xc*u+$c*d,Xc*d-$c*u),r.closePath()}},I1e=[EH,Dee,Oee,Ree,Iee,Lee,Zee];function R1e(){var n=gi(EH),r=gi(64),e=null;function i(){var o;if(e||(e=o=jd()),n.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:gi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:gi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function Sg(){}function ON(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function PN(n){this._context=n}function L1e(n){return new PN(n)}function Nee(n){this._context=n}function Z1e(n){return new Nee(n)}function Bee(n){this._context=n}function N1e(n){return new Bee(n)}function Fee(n,r){this._basis=new PN(n),this._beta=r}PN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ON(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ON(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Nee.prototype={areaStart:Sg,areaEnd:Sg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:ON(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Bee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:ON(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Fee.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0)for(var d,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)d=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+d*s),this._beta*e[u]+(1-this._beta)*(a+d*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var B1e=function n(r){function e(i){return 1===r?new PN(i):new Fee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function IN(n,r,e){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-e),n._x2,n._y2)}function AH(n,r){this._context=n,this._k=(1-r)/6}AH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:IN(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:IN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F1e=function n(r){function e(i){return new AH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function OH(n,r){this._context=n,this._k=(1-r)/6}OH.prototype={areaStart:Sg,areaEnd:Sg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:IN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var U1e=function n(r){function e(i){return new OH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function PH(n,r){this._context=n,this._k=(1-r)/6}PH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:IN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var j1e=function n(r){function e(i){return new PH(i,r)}return e.tension=function(i){return n(+i)},e}(0);function IH(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>sl){var l=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,u=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*l-n._x0*n._l12_2a+n._x2*n._l01_2a)/u,o=(o*l-n._y0*n._l12_2a+n._y2*n._l01_2a)/u}if(n._l23_a>sl){var d=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,h=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*d+n._x1*n._l23_2a-r*n._l12_2a)/h,s=(s*d+n._y1*n._l23_2a-e*n._l12_2a)/h}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function Uee(n,r){this._context=n,this._alpha=r}Uee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:IH(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var H1e=function n(r){function e(i){return r?new Uee(i,r):new AH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function jee(n,r){this._context=n,this._alpha=r}jee.prototype={areaStart:Sg,areaEnd:Sg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:IH(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var G1e=function n(r){function e(i){return r?new jee(i,r):new OH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Hee(n,r){this._context=n,this._alpha=r}Hee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:IH(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var z1e=function n(r){function e(i){return r?new Hee(i,r):new PH(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Gee(n){this._context=n}function W1e(n){return new Gee(n)}function zee(n){return n<0?-1:1}function Wee(n,r,e){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(e-n._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(zee(a)+zee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function Vee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function RH(n,r,e){var i=n._x0,o=n._y0,a=n._x1,s=n._y1,l=(a-i)/3;n._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function RN(n){this._context=n}function Yee(n){this._context=new Kee(n)}function Kee(n){this._context=n}function V1e(n){return new RN(n)}function Y1e(n){return new Yee(n)}function qee(n){this._context=n}function Jee(n){var r,i,e=n.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e=0;)e[r]=r;return e}function X1e(n,r){return n[r]}function $1e(){var n=gi([]),r=Zw,e=Lw,i=X1e;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l0){for(var e,i,s,o=0,a=n[0].length;o1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function nwe(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=r,this._y=e}};var LH=new Date,ZH=new Date;function ys(n,r,e,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return LH.setTime(+a),ZH.setTime(+s),n(LH),n(ZH),Math.floor(e(LH,ZH))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var ZN=ys(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});ZN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ys(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):ZN:null};var $ee=ZN,ete=ZN.range,E0=6e4,BN=36e5,rte=ys(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),ite=rte,ote=rte.range,ate=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*E0)},function(n,r){return(r-n)/E0},function(n){return n.getMinutes()}),swe=ate,lwe=ate.range,ste=ys(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*E0)},function(n,r){n.setTime(+n+r*BN)},function(n,r){return(r-n)/BN},function(n){return n.getHours()}),uwe=ste,cwe=ste.range,lte=ys(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*E0)/864e5},function(n){return n.getDate()-1}),dwe=lte,fwe=lte.range;function x0(n){return ys(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*E0)/6048e5})}var NH=x0(0),ute=x0(1),cte=x0(2),dte=x0(3),fte=x0(4),pte=x0(5),hte=x0(6),mte=NH.range,pwe=ute.range,hwe=cte.range,mwe=dte.range,_we=fte.range,gwe=pte.range,vwe=hte.range,_te=ys(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),ywe=_te,bwe=_te.range,BH=ys(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});BH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var Cwe=BH,wwe=BH.range,gte=ys(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*E0)},function(n,r){return(r-n)/E0},function(n){return n.getUTCMinutes()}),kwe=gte,Twe=gte.range,vte=ys(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*BN)},function(n,r){return(r-n)/BN},function(n){return n.getUTCHours()}),Mwe=vte,Swe=vte.range,yte=ys(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),Ewe=yte,xwe=yte.range;function D0(n){return ys(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/6048e5})}var FH=D0(0),bte=D0(1),Cte=D0(2),wte=D0(3),kte=D0(4),Tte=D0(5),Mte=D0(6),Ste=FH.range,Dwe=bte.range,Awe=Cte.range,Owe=wte.range,Pwe=kte.range,Iwe=Tte.range,Rwe=Mte.range,Ete=ys(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),Lwe=Ete,Zwe=Ete.range,UH=ys(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});UH.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ys(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Nwe=UH,Bwe=UH.range;function Fwe(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function FN(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Vx(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function xte(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=Yx(o),h=Kx(o),g=Yx(a),C=Kx(a),Z=Yx(s),z=Kx(s),q=Yx(l),re=Kx(l),ae=Yx(u),Se=Kx(u),Ce={a:function Tn(tr){return s[tr.getDay()]},A:function Hn(tr){return a[tr.getDay()]},b:function zn(tr){return u[tr.getMonth()]},B:function ar(tr){return l[tr.getMonth()]},c:null,d:Pte,e:Pte,f:uke,H:ake,I:ske,j:lke,L:Ite,m:cke,M:dke,p:function kr(tr){return o[+(tr.getHours()>=12)]},Q:Nte,s:Bte,S:fke,u:pke,U:hke,V:mke,w:_ke,W:gke,x:null,X:null,y:vke,Y:yke,Z:bke,"%":Zte},Ee={a:function _r(tr){return s[tr.getUTCDay()]},A:function Wr(tr){return a[tr.getUTCDay()]},b:function jr(tr){return u[tr.getUTCMonth()]},B:function Kr(tr){return l[tr.getUTCMonth()]},c:null,d:Rte,e:Rte,f:Tke,H:Cke,I:wke,j:kke,L:Lte,m:Mke,M:Ske,p:function jo(tr){return o[+(tr.getUTCHours()>=12)]},Q:Nte,s:Bte,S:Eke,u:xke,U:Dke,V:Ake,w:Oke,W:Pke,x:null,X:null,y:Ike,Y:Rke,Z:Lke,"%":Zte},Ke={a:function bt(tr,br,Mn){var gn=Z.exec(br.slice(Mn));return gn?(tr.w=z[gn[0].toLowerCase()],Mn+gn[0].length):-1},A:function $e(tr,br,Mn){var gn=g.exec(br.slice(Mn));return gn?(tr.w=C[gn[0].toLowerCase()],Mn+gn[0].length):-1},b:function Ie(tr,br,Mn){var gn=ae.exec(br.slice(Mn));return gn?(tr.m=Se[gn[0].toLowerCase()],Mn+gn[0].length):-1},B:function ct(tr,br,Mn){var gn=q.exec(br.slice(Mn));return gn?(tr.m=re[gn[0].toLowerCase()],Mn+gn[0].length):-1},c:function Bt(tr,br,Mn){return it(tr,r,br,Mn)},d:Ate,e:Ate,f:nke,H:Ote,I:Ote,j:Xwe,L:tke,m:Qwe,M:$we,p:function ft(tr,br,Mn){var gn=d.exec(br.slice(Mn));return gn?(tr.p=h[gn[0].toLowerCase()],Mn+gn[0].length):-1},Q:ike,s:oke,S:eke,u:zwe,U:Wwe,V:Vwe,w:Gwe,W:Ywe,x:function jt(tr,br,Mn){return it(tr,e,br,Mn)},X:function It(tr,br,Mn){return it(tr,i,br,Mn)},y:qwe,Y:Kwe,Z:Jwe,"%":rke};function st(tr,br){return function(Mn){var Nn,rr,gr,gn=[],nr=-1,un=0,bn=tr.length;for(Mn instanceof Date||(Mn=new Date(+Mn));++nr53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=FN(Vx(gn.y))).getUTCDay(),un=bn>4||0===bn?k0.ceil(un):k0(un),un=Rx.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=br(Vx(gn.y))).getDay(),un=bn>4||0===bn?C0.ceil(un):C0(un),un=Ix.offset(un,7*(gn.V-1)),gn.y=un.getFullYear(),gn.m=un.getMonth(),gn.d=un.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),bn="Z"in gn?FN(Vx(gn.y)).getUTCDay():br(Vx(gn.y)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+7*gn.W-(bn+5)%7:gn.w+7*gn.U-(bn+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,FN(gn)):br(gn)}}function it(tr,br,Mn,gn){for(var Nn,rr,nr=0,un=br.length,bn=Mn.length;nr=bn)return-1;if(37===(Nn=br.charCodeAt(nr++))){if(Nn=br.charAt(nr++),!(rr=Ke[Nn in Dte?br.charAt(nr++):Nn])||(gn=rr(tr,Mn,gn))<0)return-1}else if(Nn!=Mn.charCodeAt(gn++))return-1}return gn}return Ce.x=st(e,Ce),Ce.X=st(i,Ce),Ce.c=st(r,Ce),Ee.x=st(e,Ee),Ee.X=st(i,Ee),Ee.c=st(r,Ee),{format:function(br){var Mn=st(br+="",Ce);return Mn.toString=function(){return br},Mn},parse:function(br){var Mn=Ae(br+="",Fwe);return Mn.toString=function(){return br},Mn},utcFormat:function(br){var Mn=st(br+="",Ee);return Mn.toString=function(){return br},Mn},utcParse:function(br){var Mn=Ae(br,FN);return Mn.toString=function(){return br},Mn}}}var Nw,Fte,Ute,jH,HH,Dte={"-":"",_:" ",0:"0"},ll=/^\s*\d+/,Uwe=/^%/,jwe=/[\\^$*+?|[\]().{}]/g;function vo(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function Jwe(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Qwe(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ate(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Ote(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function $we(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function eke(n,r,e){var i=ll.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function tke(n,r,e){var i=ll.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function nke(n,r,e){var i=ll.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function rke(n,r,e){var i=Uwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function ike(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function oke(n,r,e){var i=ll.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Pte(n,r){return vo(n.getDate(),r,2)}function ake(n,r){return vo(n.getHours(),r,2)}function ske(n,r){return vo(n.getHours()%12||12,r,2)}function lke(n,r){return vo(1+Ix.count(Vd(n),n),r,3)}function Ite(n,r){return vo(n.getMilliseconds(),r,3)}function uke(n,r){return Ite(n,r)+"000"}function cke(n,r){return vo(n.getMonth()+1,r,2)}function dke(n,r){return vo(n.getMinutes(),r,2)}function fke(n,r){return vo(n.getSeconds(),r,2)}function pke(n){var r=n.getDay();return 0===r?7:r}function hke(n,r){return vo(vN.count(Vd(n),n),r,2)}function mke(n,r){var e=n.getDay();return n=e>=4||0===e?om(n):om.ceil(n),vo(om.count(Vd(n),n)+(4===Vd(n).getDay()),r,2)}function _ke(n){return n.getDay()}function gke(n,r){return vo(C0.count(Vd(n),n),r,2)}function vke(n,r){return vo(n.getFullYear()%100,r,2)}function yke(n,r){return vo(n.getFullYear()%1e4,r,4)}function bke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function Rte(n,r){return vo(n.getUTCDate(),r,2)}function Cke(n,r){return vo(n.getUTCHours(),r,2)}function wke(n,r){return vo(n.getUTCHours()%12||12,r,2)}function kke(n,r){return vo(1+Rx.count(Yd(n),n),r,3)}function Lte(n,r){return vo(n.getUTCMilliseconds(),r,3)}function Tke(n,r){return Lte(n,r)+"000"}function Mke(n,r){return vo(n.getUTCMonth()+1,r,2)}function Ske(n,r){return vo(n.getUTCMinutes(),r,2)}function Eke(n,r){return vo(n.getUTCSeconds(),r,2)}function xke(n){var r=n.getUTCDay();return 0===r?7:r}function Dke(n,r){return vo(bN.count(Yd(n),n),r,2)}function Ake(n,r){var e=n.getUTCDay();return n=e>=4||0===e?am(n):am.ceil(n),vo(am.count(Yd(n),n)+(4===Yd(n).getUTCDay()),r,2)}function Oke(n){return n.getUTCDay()}function Pke(n,r){return vo(k0.count(Yd(n),n),r,2)}function Ike(n,r){return vo(n.getUTCFullYear()%100,r,2)}function Rke(n,r){return vo(n.getUTCFullYear()%1e4,r,4)}function Lke(){return"+0000"}function Zte(){return"%"}function Nte(n){return+n}function Bte(n){return Math.floor(+n/1e3)}function jte(n){return Nw=xte(n),Fte=Nw.format,Ute=Nw.parse,jH=Nw.utcFormat,HH=Nw.utcParse,Nw}jte({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 Hte="%Y-%m-%dT%H:%M:%S.%LZ";var Nke=Date.prototype.toISOString?function Zke(n){return n.toISOString()}:jH(Hte),Bke=Nke;var Uke=+new Date("2000-01-01T00:00:00.000Z")?function Fke(n){var r=new Date(n);return isNaN(r)?null:r}:HH(Hte),jke=Uke;function Hke(n,r,e){var i=new $E,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?mg():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function Gke(){}function GH(n){return null==n?Gke:function(){return this.querySelector(n)}}function Wke(){return[]}function Gte(n){return null==n?Wke:function(){return this.querySelectorAll(n)}}function zte(n){return function(){return this.matches(n)}}function Wte(n){return new Array(n.length)}function UN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}UN.prototype={constructor:UN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Jke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;sr?1:n>=r?0:NaN}var zH="http://www.w3.org/1999/xhtml",Yte={svg:"http://www.w3.org/2000/svg",xhtml:zH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Yte.hasOwnProperty(r)?{space:Yte[r],local:n}:n}function dTe(n){return function(){this.removeAttribute(n)}}function fTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function pTe(n,r){return function(){this.setAttribute(n,r)}}function hTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function mTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function _Te(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Kte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function vTe(n){return function(){this.style.removeProperty(n)}}function yTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function bTe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Bw(n,r){return n.style.getPropertyValue(r)||Kte(n).getComputedStyle(n,null).getPropertyValue(r)}function wTe(n){return function(){delete this[n]}}function kTe(n,r){return function(){this[n]=r}}function TTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function qte(n){return n.trim().split(/^|\s+/)}function WH(n){return n.classList||new Jte(n)}function Jte(n){this._node=n,this._names=qte(n.getAttribute("class")||"")}function Qte(n,r){for(var e=WH(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var ene={},A0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ene={mouseenter:"mouseover",mouseleave:"mouseout"}));function eMe(n,r,e){return n=tne(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function tne(n,r,e){return function(i){var o=A0;A0=i;try{n.call(this,this.__data__,r,e)}finally{A0=o}}}function tMe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function nMe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ke=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function rTe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=iTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?vTe:"function"==typeof r?bTe:yTe)(n,r,null==e?"":e)):Bw(this.node(),n)},property:function MTe(n,r){return arguments.length>1?this.each((null==r?wTe:"function"==typeof r?TTe:kTe)(n,r)):this.node()[n]},classed:function DTe(n,r){var e=qte(n+"");if(arguments.length<2){for(var i=WH(this.node()),o=-1,a=e.length;++o0)throw new Error("too late; already scheduled");return e}function O0(n,r){var e=qd(n,r);if(e.state>2)throw new Error("too late; already started");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function ane(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}function Eg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var Jx,QH,une,WN,sne=180/Math.PI,JH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lne(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Eg(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Eg(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Eg(d,g)},{i:q-2,x:Eg(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?YN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?YN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=CMe.exec(n))?new bc(r[1],r[2],r[3],1):(r=wMe.exec(n))?new bc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=kMe.exec(n))?YN(r[1],r[2],r[3],r[4]):(r=TMe.exec(n))?YN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=MMe.exec(n))?vne(r[1],r[2]/100,r[3]/100,1):(r=SMe.exec(n))?vne(r[1],r[2]/100,r[3]/100,r[4]):fne.hasOwnProperty(n)?mne(fne[n]):"transparent"===n?new bc(NaN,NaN,NaN,0):null}function mne(n){return new bc(n>>16&255,n>>8&255,255&n,1)}function YN(n,r,e,i){return i<=0&&(n=r=e=NaN),new bc(n,r,e,i)}function xMe(n){return n instanceof Qx||(n=eD(n)),n?new bc((n=n.rgb()).r,n.g,n.b,n.opacity):new bc}function KN(n,r,e,i){return 1===arguments.length?xMe(n):new bc(n,r,e,null==i?1:i)}function bc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function _ne(){return"#"+eG(this.r)+eG(this.g)+eG(this.b)}function gne(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function eG(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function vne(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new wp(n,r,e,i)}function yne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof Qx||(n=eD(n)),!n)return new wp;if(n instanceof wp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new wp(s,l,u,n.opacity)}function wp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function tG(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function bne(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function Cne(n){return function(){return n}}function wne(n,r){return function(e){return n+e*r}}function IMe(n){return 1==(n=+n)?kne:function(r,e){return e-r?function PMe(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Cne(isNaN(r)?e:r)}}function kne(n,r){var e=r-n;return e?wne(n,e):Cne(isNaN(n)?r:n)}$H(Qx,eD,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:pne,formatHex:pne,formatHsl:function EMe(){return yne(this).formatHsl()},formatRgb:hne,toString:hne}),$H(bc,KN,dne(Qx,{brighter:function(r){return r=null==r?VN:Math.pow(VN,r),new bc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new bc(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_ne,formatHex:_ne,formatRgb:gne,toString:gne})),$H(wp,function DMe(n,r,e,i){return 1===arguments.length?yne(n):new wp(n,r,e,null==i?1:i)},dne(Qx,{brighter:function(r){return r=null==r?VN:Math.pow(VN,r),new wp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new bc(tG(r>=240?r-240:r+120,a,o),tG(r,a,o),tG(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var Tne=function n(r){var e=IMe(r);function i(o,a){var s=e((o=KN(o)).r,(a=KN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=kne(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function Mne(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=ie&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:Eg(i,o)})),e=rG.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?qH:O0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var cSe=qx.prototype.constructor;function gSe(n,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),e)}}return i._value=r,i}var kSe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Ene(n){return qx().transition(n)}function xne(){return++kSe}var Uw=qx.prototype;kp.prototype=Ene.prototype={constructor:kp,select:function lSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=GH(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new kp([[n]],SSe,r,+o);return null}function Dne(n){return function(){return n}}function xSe(n){return n[0]}function DSe(n){return n[1]}function oG(){this._=null}function qN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function tD(n,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function nD(n,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function Ane(n){for(;n.L;)n=n.L;return n}oG.prototype={constructor:oG,insert:function(r,e){var i,o,a;if(r){if(e.P=r,e.N=r.N,r.N&&(r.N.P=e),r.N=e,r.R){for(r=r.R;r.L;)r=r.L;r.L=e}else r.R=e;i=r}else this._?(r=Ane(this._),e.P=null,e.N=r,r.P=r.L=e,i=r):(e.P=e.N=null,this._=e,i=null);for(e.L=e.R=null,e.U=i,e.C=!0,r=e;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(tD(this,i),i=(r=i).U),i.C=!1,o.C=!0,nD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(nD(this,i),i=(r=i).U),i.C=!1,o.C=!0,tD(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,l,e=r.U,o=r.L,a=r.R;if(s=o?a?Ane(a):o:a,e?e.L===r?e.L=s:e.R=s:this._=s,o&&a?(l=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(e=s.U,s.U=r.U,r=s.R,e.L=r,s.R=a,a.U=s):(s.U=e,e=s,r=s.R)):(l=r.C,r=s),r&&(r.U=e),!l){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===e.L){if((i=e.R).C&&(i.C=!1,e.C=!0,tD(this,e),i=e.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,nD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,tD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,nD(this,e),i=e.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,tD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,nD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var One=oG;function rD(n,r,e,i){var o=[null,null],a=Sl.push(o)-1;return o.left=n,o.right=r,e&&JN(o,n,r,e),i&&JN(o,r,n,i),Cc[n.index].halfedges.push(a),Cc[r.index].halfedges.push(a),o}function iD(n,r,e){var i=[r,e];return i.left=n,i}function JN(n,r,e,i){n[0]||n[1]?n.left===e?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=e)}function ASe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,C=1,Z=s[0]-l,z=s[1]-u;if(q=r-l,Z||!(q>0)){if(q/=Z,Z<0){if(q0){if(q>C)return;q>g&&(g=q)}if(q=i-l,Z||!(q<0)){if(q/=Z,Z<0){if(q>C)return;q>g&&(g=q)}else if(Z>0){if(q0)){if(q/=z,z<0){if(q0){if(q>C)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>C)return;q>g&&(g=q)}else if(z>0){if(q0)&&!(C<1)||(g>0&&(n[0]=[l+g*Z,u+g*z]),C<1&&(n[1]=[l+C*Z,u+C*z])),!0}}}}}function OSe(n,r,e,i,o){var a=n[1];if(a)return!0;var q,re,s=n[0],l=n.left,u=n.right,d=l[0],h=l[1],g=u[0],C=u[1],Z=(d+g)/2,z=(h+C)/2;if(C===h){if(Z=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[Z,e];a=[Z,o]}else{if(s){if(s[1]1)if(d>g){if(s){if(s[1]>=o)return}else s=[(e-re)/q,e];a=[(o-re)/q,o]}else{if(s){if(s[1]=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]=-GSe)){var Z=u*u+d*d,z=h*h+g*g,q=(g*Z-d*z)/C,re=(u*z-h*Z)/C,ae=Ine.pop()||new BSe;ae.arc=n,ae.site=o,ae.x=q+s,ae.y=(ae.cy=re+l)+Math.sqrt(q*q+re*re),n.circle=ae;for(var Se=null,Ce=oD._;Ce;)if(ae.yyo)l=l.L;else{if(!((s=r-HSe(l,e))>yo)){a>-yo?(i=l.P,o=l):s>-yo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function ISe(n){return Cc[n.index]={site:n,halfedges:[]}}(n);var u=Lne(n);if(Gw.insert(i,u),i||o){if(i===o)return Hw(i),o=Lne(i.site),Gw.insert(u,o),u.edge=o.edge=rD(i.site,u.site),jw(i),void jw(o);if(!o)return void(u.edge=rD(i.site,u.site));Hw(i),Hw(o);var d=i.site,h=d[0],g=d[1],C=n[0]-h,Z=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(C*re-Z*q),Se=C*C+Z*Z,Ce=q*q+re*re,Ee=[(re*Se-Z*Ce)/ae+h,(C*Ce-q*Se)/ae+g];JN(o.edge,d,z,Ee),u.edge=rD(d,n,null,Ee),o.edge=rD(n,z,null,Ee),jw(i),jw(o)}}function Zne(n,r){var e=n.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],d=u-r;if(!d)return l;var h=l-i,g=1/a-1/d,C=h/d;return g?(-C+Math.sqrt(C*C-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function HSe(n,r){var e=n.N;if(e)return Zne(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var Gw,Cc,oD,Sl,yo=1e-6,GSe=1e-12;function zSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function WSe(n,r){return r[1]-n[1]||r[0]-n[0]}function lG(n,r){var i,o,a,e=n.sort(WSe).pop();for(Sl=[],Cc=new Array(n.length),Gw=new One,oD=new One;;)if(a=aG,e&&(!a||e[1]yo||Math.abs(a[0][1]-a[1][1])>yo)||delete Sl[o]})(s,l,u,d),function NSe(n,r,e,i){var a,s,l,u,d,h,g,C,Z,z,q,re,o=Cc.length,ae=!0;for(a=0;ayo||Math.abs(re-Z)>yo)&&(d.splice(u,0,Sl.push(iD(l,z,Math.abs(q-n)yo?[n,Math.abs(C-n)yo?[Math.abs(Z-i)yo?[e,Math.abs(C-e)yo?[Math.abs(Z-r)=l)return null;var d=r-u.site[0],h=e-u.site[1],g=d*d+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var Z=o.edges[C],z=Z.left;if(z!==u.site&&z||(z=Z.right)){var q=r-z[0],re=e-z[1],ae=q*q+re*re;aei?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function jne(){var h,g,n=XSe,r=$Se,e=nEe,i=eEe,o=tEe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=JSe,d=r0("start","zoom","end"),C=500,z=0;function q(Ie){Ie.property("__zoom",Une).on("wheel.zoom",st).on("mousedown.zoom",Ae).on("dblclick.zoom",it).filter(o).on("touchstart.zoom",ft).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",$e).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Ie,ct){return(ct=Math.max(a[0],Math.min(a[1],ct)))===Ie.k?Ie:new um(ct,Ie.x,Ie.y)}function ae(Ie,ct,Bt){var jt=ct[0]-Bt[0]*Ie.k,It=ct[1]-Bt[1]*Ie.k;return jt===Ie.x&&It===Ie.y?Ie:new um(Ie.k,jt,It)}function Se(Ie){return[(+Ie[0][0]+ +Ie[1][0])/2,(+Ie[0][1]+ +Ie[1][1])/2]}function Ce(Ie,ct,Bt){Ie.on("start.zoom",function(){Ee(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Ee(this,arguments).end()}).tween("zoom",function(){var jt=this,It=arguments,Tn=Ee(jt,It),Hn=r.apply(jt,It),zn=Bt||Se(Hn),ar=Math.max(Hn[1][0]-Hn[0][0],Hn[1][1]-Hn[0][1]),kr=jt.__zoom,_r="function"==typeof ct?ct.apply(jt,It):ct,Wr=u(kr.invert(zn).concat(ar/kr.k),_r.invert(zn).concat(ar/_r.k));return function(jr){if(1===jr)jr=_r;else{var Kr=Wr(jr),jo=ar/Kr[2];jr=new um(jo,zn[0]-Kr[0]*jo,zn[1]-Kr[1]*jo)}Tn.zoom(null,jr)}})}function Ee(Ie,ct,Bt){return!Bt&&Ie.__zooming||new Ke(Ie,ct)}function Ke(Ie,ct){this.that=Ie,this.args=ct,this.active=0,this.extent=r.apply(Ie,ct),this.taps=0}function st(){if(n.apply(this,arguments)){var Ie=Ee(this,arguments),ct=this.__zoom,Bt=Math.max(a[0],Math.min(a[1],ct.k*Math.pow(2,i.apply(this,arguments)))),jt=Fd(this);ct.k!==Bt&&(Ie.wheel?((Ie.mouse[0][0]!==jt[0]||Ie.mouse[0][1]!==jt[1])&&(Ie.mouse[1]=ct.invert(Ie.mouse[0]=jt)),clearTimeout(Ie.wheel)):(Ie.mouse=[jt,ct.invert(jt)],sw(this),Ie.start()),sD(),Ie.wheel=setTimeout(It,150),Ie.zoom("mouse",e(ae(re(ct,Bt),Ie.mouse[0],Ie.mouse[1]),Ie.extent,s)))}function It(){Ie.wheel=null,Ie.end()}}function Ae(){if(!g&&n.apply(this,arguments)){var Ie=Ee(this,arguments,!0),ct=Ci(Zn.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",Hn,!0),Bt=Fd(this),jt=Zn.clientX,It=Zn.clientY;FL(Zn.view),cG(),Ie.mouse=[Bt,this.__zoom.invert(Bt)],sw(this),Ie.start()}function Tn(){if(sD(),!Ie.moved){var zn=Zn.clientX-jt,ar=Zn.clientY-It;Ie.moved=zn*zn+ar*ar>z}Ie.zoom("mouse",e(ae(Ie.that.__zoom,Ie.mouse[0]=Fd(Ie.that),Ie.mouse[1]),Ie.extent,s))}function Hn(){ct.on("mousemove.zoom mouseup.zoom",null),UL(Zn.view,Ie.moved),sD(),Ie.end()}}function it(){if(n.apply(this,arguments)){var Ie=this.__zoom,ct=Fd(this),Bt=Ie.invert(ct),jt=Ie.k*(Zn.shiftKey?.5:2),It=e(ae(re(Ie,jt),ct,Bt),r.apply(this,arguments),s);sD(),l>0?Ci(this).transition().duration(l).call(Ce,It,ct):Ci(this).call(q.transform,It)}}function ft(){if(n.apply(this,arguments)){var jt,It,Tn,Hn,Ie=Zn.touches,ct=Ie.length,Bt=Ee(this,arguments,Zn.changedTouches.length===ct);for(cG(),It=0;It=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}([(0,t.GSi)(),function(n,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,r)}("design:paramtypes",[])],dG);var Tp=m(8723);function oEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"linearGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.outerLinearGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function aEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"radialGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.radialGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function sEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill",e.svg.backgroundCircle.fill)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function lEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.zWS("fill","url(",e.window.location.href,"#",e.svg.radialGradient.id,")"),t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function uEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,sEe,1,7,"circle",2),t.YNc(2,lEe,1,8,"circle",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",e.options.backgroundGradient)}}function cEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(2);t.uIk("cx",e.svg.circle.cx)("cy",e.svg.circle.cy)("r",e.svg.circle.r)("fill",e.svg.circle.fill)("stroke",e.svg.circle.stroke)("stroke-width",e.svg.circle.strokeWidth)}}function dEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.uIk("d",e.svg.path.d)("stroke",e.svg.path.stroke)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function fEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.zWS("stroke","url(",e.window.location.href,"#",e.svg.outerLinearGradient.id,")"),t.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function pEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,dEe,1,5,"path",2),t.YNc(2,fEe,1,6,"path",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",e.options.outerStrokeGradient)}}function hEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",e.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),t.xp6(1),t.Oqu(e.span)}}function mEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,hEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function _Ee(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=t.oxw(3);t.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),t.xp6(1),t.Oqu(e.svg.units.text)}}function gEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",e.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),t.xp6(1),t.Oqu(e.span)}}function vEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,gEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function yEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,mEe,2,1,"ng-container",2),t.YNc(2,_Ee,2,4,"tspan",2),t.YNc(3,vEe,2,1,"ng-container",2),t.qZA()),2&n){var e=t.oxw(2);t.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),t.xp6(1),t.Q6J("ngIf",e.options.showTitle),t.xp6(1),t.Q6J("ngIf",e.options.showUnits),t.xp6(1),t.Q6J("ngIf",e.options.showSubtitle)}}function bEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"image",9)),2&n){var e=t.oxw(2);t.uIk("height",e.svg.image.height)("width",e.svg.image.width)("href",e.svg.image.src,null,"xlink")("x",e.svg.image.x)("y",e.svg.image.y)}}function CEe(n,r){if(1&n){var e=t.EpF();t.O4$(),t.TgZ(0,"svg",1),t.NdJ("click",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.emitClickEvent(a))}),t.TgZ(1,"defs"),t.YNc(2,oEe,3,5,"linearGradient",2),t.YNc(3,aEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,uEe,3,2,"ng-container",2),t.YNc(5,cEe,1,6,"circle",2),t.YNc(6,pEe,3,2,"ng-container",2),t.YNc(7,yEe,4,6,"text",3),t.YNc(8,bEe,1,5,"image",4),t.qZA()}if(2&n){var i=t.oxw();t.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),t.xp6(2),t.Q6J("ngIf",i.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",i.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",i.options.showBackground),t.xp6(1),t.Q6J("ngIf",i.options.showInnerStroke),t.xp6(1),t.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),t.xp6(1),t.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),t.xp6(1),t.Q6J("ngIf",i.options.showImage)}}var $N=(0,j.Z)(function n(){(0,F.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=0,this.imageWidth=0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1}),lD=function(){function n(r,e,i,o){var a=this;(0,F.Z)(this,n),this.ngZone=e,this.elRef=i,this.onClick=new t.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new t.vpe,this._viewportChangedSubscriber=null,this.options=new $N,this.defaultOptions=new $N,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,l,u,d){var h=d*Math.PI/180;return{x:s+Math.sin(h)*u,y:l-Math.cos(h)*u}},this.draw=function(s){var l=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,u=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(u+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var C,Z,d={x:u/2,y:u/2},h={x:d.x,y:d.y-a.options.radius},g=a.polarToCartesian(d.x,d.y,a.options.radius,360*(a.options.clockwise?l:100-l)/100);if(100===l&&(g.x=g.x+(a.options.clockwise?-.01:.01)),l>50){var z=a.options.clockwise?[1,1]:[1,0],q=(0,Yn.Z)(z,2);C=q[0],Z=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Yn.Z)(re,2);C=ae[0],Z=ae[1]}var Se=a.options.animateTitle?s:a.options.percent,Ce=Se>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):Se.toFixed(a.options.toFixed),Ee=a.options.animateSubtitle?s:a.options.percent,Ke={x:d.x,y:d.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var st=a.options.titleFormat(Se);st instanceof Array?Ke.texts=(0,cn.Z)(st):Ke.texts.push(st.toString())}else"auto"===a.options.title?Ke.texts.push(Ce):a.options.title instanceof Array?Ke.texts=(0,cn.Z)(a.options.title):Ke.texts.push(a.options.title.toString());var Ae={x:d.x,y:d.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var it=a.options.subtitleFormat(Ee);it instanceof Array?Ae.texts=(0,cn.Z)(it):Ae.texts.push(it.toString())}else a.options.subtitle instanceof Array?Ae.texts=(0,cn.Z)(a.options.subtitle):Ae.texts.push(a.options.subtitle.toString());var ft={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,$e=1;if(a.options.showTitle&&(bt+=Ke.texts.length),a.options.showSubtitle&&(bt+=Ae.texts.length),a.options.showTitle){var ct,Ie=(0,An.Z)(Ke.texts);try{for(Ie.s();!(ct=Ie.n()).done;){var Bt=ct.value;Ke.tspans.push({span:Bt,dy:a.getRelativeY($e,bt)}),$e++}}catch(Hn){Ie.e(Hn)}finally{Ie.f()}}if(a.options.showSubtitle){var It,jt=(0,An.Z)(Ae.texts);try{for(jt.s();!(It=jt.n()).done;){var Tn=It.value;Ae.tspans.push({span:Tn,dy:a.getRelativeY($e,bt)}),$e++}}catch(Hn){jt.e(Hn)}finally{jt.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(u," ").concat(u),width:a.options.responsive?"100%":u,height:a.options.responsive?"100%":u,backgroundCircle:{cx:d.x,cy:d.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(h.x," ").concat(h.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(C," ").concat(Z," ").concat(g.x," ").concat(g.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:d.x,cy:d.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:Ke,units:ft,subtitle:Ae,image:{x:d.x-a.options.imageWidth/2,y:d.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,l){var d,h,g,C=a.options.startFromZero||s<0?0:s,Z=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(Z-C));return z>=100?(d=100,h=a.options.animateTitle||a.options.animateSubtitle?Math.round(z/d):1):(d=z,h=1),(g=Math.round(a.options.animationDuration/d))<10&&(g=10,d=a.options.animationDuration/g,h=!a.options.animateTitle&&!a.options.animateSubtitle&&z>100?Math.round(100/d):Math.round(z/d)),h<1&&(h=1),{times:d,step:h,interval:g}},this.animate=function(s,l){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var u=a.options.startFromZero?0:s,d=l,h=a.getAnimationParameters(u,d),g=h.step,C=h.interval,Z=u;a._timerSubscription=u=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,C).subscribe(function(){(Z-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())})},this.applyOptions=function(){for(var s=0,l=Object.keys(a.options);s0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,l){return(1*(s-l/2)-.18).toFixed(2)+"em"},this.min=function(s,l){return sl?s:l},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var d=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==u?d:3&d|8).toString(16)})},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.observers.length>0&&a.ngZone.run(function(){a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.ngZone.runOutsideAngular(function(){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0)}),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(l){l.oldValue;l.newValue&&a.render()}));var s=(0,Tp.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o.get(se.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,j.Z)(n,[{key:"emitClickEvent",value:function(e){this.options.renderOnClick&&this.animate(0,this.options.percent),this.onClick.observers.length>0&&this.onClick.emit(e)}},{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"findSvgElement",value:function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var a,i=e.getBoundingClientRect(),o=e.parentNode;do{if(a=o.getBoundingClientRect(),i.top>=a.bottom||i.bottom<=a.top||i.left>=a.right||i.right<=a.left)return!1;o=o.parentNode}while(o!=this.document.body);return!(i.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||i.bottom<=0||i.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||i.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),n}();lD.\u0275fac=function(r){return new(r||lD)(t.Y36($N),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},lD.\u0275cmp=t.Xpm({type:lD,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[t.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(r,e){1&r&&t.YNc(0,CEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[se.sg,se.O5],encapsulation:2});var zw=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:$N,useValue:e}]}}}]),n}();zw.\u0275fac=function(r){return new(r||zw)},zw.\u0275mod=t.oAB({type:zw}),zw.\u0275inj=t.cJS({imports:[se.ez]});var eB=function(){function n(r){(0,F.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,j.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"onDrop",value:function(e){var i,o=this._getTransfer(e);if(o){var a=this.getOptions(),s=this.getFilters();this._preventAndStop(e),a&&(null===(i=this.uploader)||void 0===i||i.addToQueue(o.files,a,s)),this.fileOver.emit(!1),this.onFileDrop.emit(o.files)}}},{key:"onDragOver",value:function(e){var i=this._getTransfer(e);!this._haveFiles(i.types)||(i.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}},{key:"onDragLeave",value:function(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}},{key:"_getTransfer",value:function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}},{key:"_preventAndStop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_haveFiles",value:function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}]),n}();eB.\u0275fac=function(r){return new(r||eB)(t.Y36(t.SBq))},eB.\u0275dir=t.lG2({type:eB,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&t.NdJ("drop",function(o){return e.onDrop(o)})("dragover",function(o){return e.onDragOver(o)})("dragleave",function(o){return e.onDragLeave(o)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}});var fG=function(){function n(r){(0,F.Z)(this,n),this.rawFile=r;var e=r instanceof HTMLInputElement?r.value:r,i="string"==typeof e?"FakePath":"Object";this["_createFrom".concat(i)](e)}return(0,j.Z)(n,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/".concat(e.slice(e.lastIndexOf(".")+1).toLowerCase()),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(e){this.size=e.size,this.type=e.type,this.name=e.name}}]),n}(),wEe=function(){function n(r,e,i){(0,F.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=r,this.some=e,this.options=i,this.file=new fG(e),this._file=e,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,j.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(e){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(e){return{form:e}}},{key:"onProgress",value:function(e){return{progress:e}}},{key:"onSuccess",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onError",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onCancel",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onComplete",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(e){this.onBuildForm(e)}},{key:"_onProgress",value:function(e){this.progress=e,this.onProgress(e)}},{key:"_onSuccess",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(e,i,o)}},{key:"_onError",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(e,i,o)}},{key:"_onCancel",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(e,i,o)}},{key:"_onComplete",value:function(e,i,o){this.onComplete(e,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),Ww=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,null,[{key:"getMimeClass",value:function(e){var i,o,a,s="application";return(null==e?void 0:e.type)&&-1!==this.mime_psd.indexOf(e.type)||null!==(i=null==e?void 0:e.type)&&void 0!==i&&i.match("image.*")?s="image":null!==(o=null==e?void 0:e.type)&&void 0!==o&&o.match("video.*")?s="video":null!==(a=null==e?void 0:e.type)&&void 0!==a&&a.match("audio.*")?s="audio":"application/pdf"===(null==e?void 0:e.type)?s="pdf":(null==e?void 0:e.type)&&-1!==this.mime_compress.indexOf(e.type)?s="compress":(null==e?void 0:e.type)&&-1!==this.mime_doc.indexOf(e.type)?s="doc":(null==e?void 0:e.type)&&-1!==this.mime_xsl.indexOf(e.type)?s="xls":(null==e?void 0:e.type)&&-1!==this.mime_ppt.indexOf(e.type)&&(s="ppt"),"application"===s&&(null==e?void 0:e.name)&&(s=this.fileTypeDetection(e.name)),s}},{key:"fileTypeDetection",value:function(e){var i={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=e.split(".");if(o.length<2)return"application";var a=o[o.length-1].toLowerCase();return void 0===i[a]?"application":i[a]}}]),n}();Ww.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],Ww.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],Ww.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],Ww.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],Ww.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"];var xg=function(){function n(r){(0,F.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1,url:""},this.setOptions(r),this.response=new t.vpe}return(0,j.Z)(n,[{key:"setOptions",value:function(e){var i,o,a,s;this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,null===(i=this.options.filters)||void 0===i||i.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&(null===(o=this.options.filters)||void 0===o||o.unshift({name:"fileSize",fn:this._fileSizeFilter})),this.options.allowedFileType&&(null===(a=this.options.filters)||void 0===a||a.unshift({name:"fileType",fn:this._fileTypeFilter})),this.options.allowedMimeType&&(null===(s=this.options.filters)||void 0===s||s.unshift({name:"mimeType",fn:this._mimeTypeFilter}));for(var l=0;lthis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Ww.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,i,o,a){e._onError(i,o,a),this.onErrorItem(e,i,o,a)}},{key:"_onCompleteItem",value:function(e,i,o,a){e._onComplete(i,o,a),this.onCompleteItem(e,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(i){return i?e[i.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var s,i=this,o=this,a=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(s=this.options.formatDataFunction(e));else{s=new FormData,this._onBuildItemForm(e,s);var l=function(){return s.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||l(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(z){var q,re,ae=null===(q=i.options.additionalParameter)||void 0===q?void 0:q[z];"string"==typeof ae&&ae.indexOf("{{file_name}}")>=0&&(null===(re=e.file)||void 0===re?void 0:re.name)&&(ae=ae.replace("{{file_name}}",e.file.name)),s.append(z,ae)}),l&&this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(z){var q=Math.round(z.lengthComputable?100*z.loaded/z.total:0);i._onProgressItem(e,q)},a.onload=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z),re=i._isSuccessCode(a.status)?"Success":"Error",ae="_on".concat(re,"Item");i[ae](e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onerror=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onErrorItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onabort=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onCancelItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},e.method&&e.url&&a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var d,u=(0,An.Z)(this.options.headers);try{for(u.s();!(d=u.n()).done;){var h=d.value;a.setRequestHeader(h.name,h.value)}}catch(z){u.e(z)}finally{u.f()}}if(e.headers.length){var C,g=(0,An.Z)(e.headers);try{for(g.s();!(C=g.n()).done;){var Z=C.value;a.setRequestHeader(Z.name,Z.value)}}catch(z){g.e(z)}finally{g.f()}}this.authToken&&this.authTokenHeader&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(z){return a.send(JSON.stringify(z))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=e*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(e){var i,o,a;if(!e)return(null===(i=this.options)||void 0===i?void 0:i.filters)||[];if(Array.isArray(e))return e;if("string"==typeof e){var s=e.match(/[^\s,]+/g);return(null===(o=this.options)||void 0===o?void 0:o.filters)||[].filter(function(l){return-1!==(null==s?void 0:s.indexOf(l.name))})}return(null===(a=this.options)||void 0===a?void 0:a.filters)||[]}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,i){return e}},{key:"_parseHeaders",value:function(e){var o,a,s,i={};return e&&e.split("\n").map(function(l){s=l.indexOf(":"),o=l.slice(0,s).trim().toLowerCase(),a=l.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(e,i,o){this.onWhenAddingFileFailed(e,i,o)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,i){e._onBuildForm(i),this.onBuildItemForm(e,i)}},{key:"_onProgressItem",value:function(e,i){var o=this._getTotalProgress(i);this.progress=o,e._onProgress(i),this.onProgressItem(e,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(e,i,o,a){e._onSuccess(i,o,a),this.onSuccessItem(e,i,o,a)}},{key:"_onCancelItem",value:function(e,i,o,a){e._onCancel(i,o,a),this.onCancelItem(e,i,o,a)}}]),n}(),Mp=function(){function n(r){(0,F.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,j.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e,i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();null===(e=this.uploader)||void 0===e||e.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),n}();Mp.\u0275fac=function(r){return new(r||Mp)(t.Y36(t.SBq))},Mp.\u0275dir=t.lG2({type:Mp,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&t.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}});var Vw=(0,j.Z)(function n(){(0,F.Z)(this,n)});Vw.\u0275fac=function(r){return new(r||Vw)},Vw.\u0275mod=t.oAB({type:Vw}),Vw.\u0275inj=t.cJS({imports:[se.ez]});var pG=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),TEe=function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i])};return function(r,e){function i(){this.constructor=r}n(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hne=function(n){function r(){return n.call(this)||this}return TEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(pG);Hne.ctorParameters=function(){return[]};var Gne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:pG,useClass:Hne}]}),n}();Gne.ctorParameters=function(){return[]};var ul=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),P0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.call(this)}return(0,j.Z)(e)}(ul);P0.\u0275fac=function(r){return new(r||P0)},P0.\u0275prov=t.Yz7({token:P0,factory:P0.\u0275fac}),P0.ctorParameters=function(){return[]};var Yw=(0,j.Z)(function n(){(0,F.Z)(this,n)});Yw.\u0275fac=function(r){return new(r||Yw)},Yw.\u0275mod=t.oAB({type:Yw}),Yw.\u0275inj=t.cJS({providers:[{provide:ul,useClass:P0}]});var uD=m(7326),Kw=m(4942),MEe=m(4450),SEe=m(1961),cD=m(8514),EEe=m(4843),I0=m(1737),R0=m(8896),zne=m(1762),Dg=m(7224),L0=m(1406),ed=m(7221),Wne=m(2014),Vne=m(8127),xEe=m(4290),Yne=m(7314),tB=m(537),Kne=m(4327),nB=m(9146),hi="primary",dD=Symbol("RouteTitle"),DEe=function(){function n(r){(0,F.Z)(this,n),this.params=r||{}}return(0,j.Z)(n,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function qw(n){return new DEe(n)}function AEe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length0?n[n.length-1]:null}function cl(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Ag(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,hs.D)(Promise.resolve(n)):(0,qn.of)(n)}var IEe={exact:function ere(n,r,e){if(!N0(n.segments,r.segments)||!rB(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!ere(n.children[i],r.children[i],e))return!1;return!0},subset:tre},Xne={exact:function REe(n,r){return Sp(n,r)},subset:function LEe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return qne(n[e],r[e])})},ignored:function(){return!0}};function $ne(n,r,e){return IEe[e.paths](n.root,r.root,e.matrixParams)&&Xne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function tre(n,r,e){return nre(n,r,r.segments,e)}function nre(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!N0(o,e)||r.hasChildren()||!rB(o,e,i))}if(n.segments.length===e.length){if(!N0(n.segments,e)||!rB(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!tre(n.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(N0(n.segments,s)&&rB(n.segments,s,i)&&n.children[hi])&&nre(n.children[hi],r,l,i)}function rB(n,r,e){return r.every(function(i,o){return Xne[e](n[o].parameters,i.parameters)})}var Z0=function(){function n(r,e,i){(0,F.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,j.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return BEe.serialize(this)}}]),n}(),vi=function(){function n(r,e){var i=this;(0,F.Z)(this,n),this.segments=r,this.children=e,this.parent=null,cl(e,function(o,a){return o.parent=i})}return(0,j.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return iB(this)}}]),n}(),fD=function(){function n(r,e){(0,F.Z)(this,n),this.path=r,this.parameters=e}return(0,j.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=qw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ore(this)}}]),n}();function N0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var Jw=(0,j.Z)(function n(){(0,F.Z)(this,n)});Jw.\u0275fac=function(r){return new(r||Jw)},Jw.\u0275prov=t.Yz7({token:Jw,factory:function(){return new mG},providedIn:"root"});var mG=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"parse",value:function(e){var i=new YEe(e);return new Z0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(pD(e.root,!0)),o=function jEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(oB(e),"=").concat(oB(o))}).join("&"):"".concat(oB(e),"=").concat(oB(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function FEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),BEe=new mG;function iB(n){return n.segments.map(function(r){return ore(r)}).join("/")}function pD(n,r){if(!n.hasChildren())return iB(n);if(r){var e=n.children[hi]?pD(n.children[hi],!1):"",i=[];return cl(n.children,function(a,s){s!==hi&&i.push("".concat(s,":").concat(pD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function NEe(n,r){var e=[];return cl(n.children,function(i,o){o===hi&&(e=e.concat(r(i,o)))}),cl(n.children,function(i,o){o!==hi&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===hi?[pD(n.children[hi],!1)]:["".concat(s,":").concat(pD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[hi]?"".concat(iB(n),"/").concat(o[0]):"".concat(iB(n),"/(").concat(o.join("//"),")")}function rre(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function oB(n){return rre(n).replace(/%3B/gi,";")}function _G(n){return rre(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function aB(n){return decodeURIComponent(n)}function ire(n){return aB(n.replace(/\+/g,"%20"))}function ore(n){return"".concat(_G(n.path)).concat(function UEe(n){return Object.keys(n).map(function(r){return";".concat(_G(r),"=").concat(_G(n[r]))}).join("")}(n.parameters))}var HEe=/^[^\/()?;=#]+/;function sB(n){var r=n.match(HEe);return r?r[0]:""}var GEe=/^[^=?&#]+/;var WEe=/^[^&#]+/;var YEe=function(){function n(r){(0,F.Z)(this,n),this.url=r,this.remaining=r}return(0,j.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vi([],{}):new vi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(o[hi]=new vi(e,i)),o}},{key:"parseSegment",value:function(){var e=sB(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new fD(aB(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=sB(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=sB(this.remaining);a&&(o=a,this.capture(o))}e[aB(i)]=aB(o)}}},{key:"parseQueryParam",value:function(e){var i=function zEe(n){var r=n.match(GEe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function VEe(n){var r=n.match(WEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=ire(i),l=ire(o);if(e.hasOwnProperty(s)){var u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}}},{key:"parseParens",value:function(e){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=sB(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new t.vHH(4010,false);var s=void 0;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=hi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[hi]:new vi([],l),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new t.vHH(4011,false)}}]),n}();function gG(n){return n.segments.length>0?new vi([],(0,Kw.Z)({},hi,n)):n}function lB(n){for(var r={},e=0,i=Object.keys(n.children);e0||s.hasChildren())&&(r[o]=s)}return function KEe(n){if(1===n.numberOfChildren&&n.children[hi]){var r=n.children[hi];return new vi(n.segments.concat(r.segments),r.children)}return n}(new vi(n.segments,r))}function B0(n){return n instanceof Z0}function QEe(n,r,e,i,o){var a;if(0===e.length)return Qw(r.root,r.root,r.root,i,o);var l=lre(e);if(l.toRoot())return Qw(r.root,r.root,new vi([],{}),i,o);var d=function u(g){var C,Z=function $Ee(n,r,e,i){if(n.isAbsolute)return new Xw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Xw(e,o,0)}var a=hD(n.commands[0])?0:1;return ure(e,i+a,n.numberOfDoubleDots)}(l,r,null===(C=n.snapshot)||void 0===C?void 0:C._urlSegment,g),z=Z.processChildren?_D(Z.segmentGroup,Z.index,l.commands):yG(Z.segmentGroup,Z.index,l.commands);return Qw(r.root,Z.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function hD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function mD(n){return"object"==typeof n&&null!=n&&n.outlets}function Qw(n,r,e,i,o){var a={};i&&cl(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=gG(lB(n===r?e:are(n,r,e)));return new Z0(l,a,o)}function are(n,r,e){var i={};return cl(n.children,function(o,a){i[a]=o===r?e:are(o,r,e)}),new vi(n.segments,i)}var sre=function(){function n(r,e,i){if((0,F.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&hD(i[0]))throw new t.vHH(4003,false);var o=i.find(mD);if(o&&o!==Qne(i))throw new t.vHH(4004,false)}return(0,j.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function lre(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new sre(!0,0,n);var r=0,e=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return cl(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,cn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,cn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,cn.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,d){0==d&&"."===u||(0==d&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,cn.Z)(o),[a])},[]);return new sre(e,r,i)}var Xw=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function ure(n,r,e){for(var i=n,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new t.vHH(4005,false);o=i.segments.length}return new Xw(i,!1,o-a)}function yG(n,r,e){if(n||(n=new vi([],{})),0===n.segments.length&&n.hasChildren())return _D(n,r,e);var i=function txe(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o=e.length)return a;var s=n.segments[o],l=e[i];if(mD(l))break;var u="".concat(l),d=i0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!dre(u,d,s))return a;i+=2}else{if(!dre(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,F.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,j.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),Jd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,j.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(cm),gD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(cm),CG=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(cm),rxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),ixe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),oxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,j.Z)(e,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),e}(cm),axe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),sxe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,j.Z)(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(cm),lxe=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.type=9}return(0,j.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),uxe=function(){function n(r){(0,F.Z)(this,n),this.route=r,this.type=10}return(0,j.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),cxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=11}return(0,j.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),dxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=12}return(0,j.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),fxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=13}return(0,j.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),pxe=function(){function n(r){(0,F.Z)(this,n),this.snapshot=r,this.type=14}return(0,j.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),fre=function(){function n(r,e,i){(0,F.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,j.Z)(n,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),n}();var pre=function(){function n(r){(0,F.Z)(this,n),this._root=r}return(0,j.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(e){var i=wG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=wG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=kG(e,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==e})}},{key:"pathFromRoot",value:function(e){return kG(e,this._root).map(function(i){return i.value})}}]),n}();function wG(n,r){if(n===r.value)return r;var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=wG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function kG(n,r){if(n===r.value)return[r];var i,e=(0,An.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=kG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var dm=function(){function n(r,e){(0,F.Z)(this,n),this.value=r,this.children=e}return(0,j.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function $w(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var hre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,i)).snapshot=o,TG((0,uD.Z)(a),i),a}return(0,j.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(pre);function mre(n,r){var e=function mxe(n,r){var s=new cB([],{},{},"",{},hi,r,null,n.root,-1,{});return new gre("",new dm(s,[]))}(n,r),i=new Wi.X([new fD("",{})]),o=new Wi.X({}),a=new Wi.X({}),s=new Wi.X({}),l=new Wi.X(""),u=new fr(i,o,s,l,a,hi,r,e.root);return u.snapshot=e.root,new hre(new dm(u,[]),e)}var fr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,F.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null!==(h=null===(d=this.data)||void 0===d?void 0:d.pipe((0,$n.U)(function(g){return g[dD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,j.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,$n.U)(function(e){return qw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return qw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function _re(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=n.pathFromRoot,i=0;if("always"!==r)for(i=e.length-1;i>=1;){var o=e[i],a=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return _xe(e.slice(i))}function _xe(n){return n.reduce(function(r,e){var i;return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),r.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}var cB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z;(0,F.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null===(Z=this.data)||void 0===Z?void 0:Z[dD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=C?C:h,this._resolve=g}return(0,j.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=qw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(i,"')")}}]),n}(),gre=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o){var a;return(0,F.Z)(this,e),(a=r.call(this,o)).url=i,TG((0,uD.Z)(a),o),a}return(0,j.Z)(e,[{key:"toString",value:function(){return vre(this._root)}}]),e}(pre);function TG(n,r){r.value._routerState=n,r.children.forEach(function(e){return TG(n,e)})}function vre(n){var r=n.children.length>0?" { ".concat(n.children.map(vre).join(", ")," } "):"";return"".concat(n.value).concat(r)}function MG(n){if(n.snapshot){var r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Sp(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),Sp(r.params,e.params)||n.params.next(e.params),function OEe(n,r){if(n.length!==r.length)return!1;for(var e=0;e4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=$w(r);return n.children.forEach(function(s){Axe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),cl(a,function(s,l){return CD(s,e.getContext(l),o)}),o}function Axe(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,l=e?e.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Oxe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Mre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?bD(n,r,l?l.children:null,i,o):bD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new fB(l.outlet.component,s))}else s&&CD(r,l,o),o.canActivateChecks.push(new Mre(i)),a.component?bD(n,null,l?l.children:null,i,o):bD(n,null,e,i,o);return o}function Oxe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!N0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!N0(n.url,r.url)||!Sp(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!SG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!SG(n,r)}}function CD(n,r,e){var i=$w(n),o=n.value;cl(i,function(a,s){o.component?CD(a,r?r.children.getContext(s):null,e):CD(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new fB(r.outlet.component,o)):e.canDeactivateChecks.push(new fB(null,o))}function wD(n){return"function"==typeof n}function AG(n){return n instanceof MEe.K||"EmptyError"===(null==n?void 0:n.name)}var pB=Symbol("INITIAL_VALUE");function tk(){return(0,Po.w)(function(n){return(0,K1.aj)(n.map(function(r){return r.pipe((0,Ri.q)(1),(0,Oo.O)(pB))})).pipe((0,$n.U)(function(r){var i,e=(0,An.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===pB)return pB;if(!1===o||o instanceof Z0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,$r.h)(function(r){return r!==pB}),(0,Ri.q)(1))})}function Fxe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.currentSnapshot,a=e.guards,s=a.canActivateChecks,l=a.canDeactivateChecks;return 0===l.length&&0===s.length?(0,qn.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Uxe(n,r,e,i){return(0,hs.D)(n).pipe((0,_s.zg)(function(o){return function Vxe(n,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,qn.of)(!0);var s=a.map(function(l){var u,d=null!==(u=yD(r))&&void 0!==u?u:o,h=ek(l,d);return Ag(function Zxe(n){return n&&wD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,Dg.P)())});return(0,qn.of)(s).pipe(tk())}(o.component,o.route,e,r,i)}),(0,Dg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,_s.zg)(function(u){return u&&function Pxe(n){return"boolean"==typeof n}(u)?function jxe(n,r,e,i){return(0,hs.D)(r).pipe((0,L0.b)(function(o){return(0,SEe.z)(function Gxe(n,r){return null!==n&&r&&r(new cxe(n)),(0,qn.of)(!0)}(o.route.parent,i),function Hxe(n,r){return null!==n&&r&&r(new fxe(n)),(0,qn.of)(!0)}(o.route,i),function Wxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Dxe(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,cD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=yD(s.node))&&void 0!==d?d:e,g=ek(u,h);return Ag(function Lxe(n){return n&&wD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,Dg.P)())});return(0,qn.of)(l).pipe(tk())})});return(0,qn.of)(a).pipe(tk())}(n,o.path,e),function zxe(n,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,qn.of)(!0);var o=i.map(function(a){return(0,cD.P)(function(){var s,l=null!==(s=yD(r))&&void 0!==s?s:e,u=ek(a,l);return Ag(function Rxe(n){return n&&wD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,Dg.P)())})});return(0,qn.of)(o).pipe(tk())}(n,o.route,e))}),(0,Dg.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,qn.of)(u)}),(0,$n.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}function Yxe(n,r,e,i){var o=r.canLoad;if(void 0===o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=ek(s,n);return Ag(function Ixe(n){return n&&wD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(tk(),Sre(i))}function Sre(n){return(0,EEe.z)((0,aa.b)(function(r){if(B0(r))throw yre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function Kxe(n,r,e,i){var o=r.canMatch;if(!o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=ek(s,n);return Ag(function Nxe(n){return n&&wD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(tk(),Sre())}var OG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ere(n,r,e,i,o){var a=PG(n,r,e);return a.matched?Kxe(i=kre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},OG)})):(0,qn.of)(a)}function PG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},OG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||AEe)(e,n,r);if(!a)return Object.assign({},OG);var s={};cl(a.posParams,function(u,d){s[d]=u.path});var l=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:l,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function hB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Qxe(n,e,i)){var a=new vi(r,Jxe(n,r,i,new vi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Xxe(n,e,i)){var s=new vi(n.segments,qxe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new vi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function qxe(n,r,e,i,o,a){var u,s={},l=(0,An.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(mB(n,e,d)&&!o[td(d)]){var h=new vi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[td(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function Jxe(n,r,e,i){var o={};o[hi]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,An.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&td(l)!==hi){var u=new vi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[td(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function Qxe(n,r,e){return e.some(function(i){return mB(n,r,i)&&td(i)!==hi})}function Xxe(n,r,e){return e.some(function(i){return mB(n,r,i)})}function mB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function xre(n,r,e,i){return!!(td(n)===i||i!==hi&&mB(r,e,n))&&("**"===n.path||PG(r,n,e).matched)}function Dre(n,r,e){return 0===r.length&&!n.children[e]}var _B=!1,gB=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.segmentGroup=r||null}),Are=(0,j.Z)(function n(r){(0,F.Z)(this,n),this.urlTree=r});function kD(n){return(0,I0._)(new gB(n))}function Ore(n){return(0,I0._)(new Are(n))}var nDe=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,j.Z)(n,[{key:"apply",value:function(){var e=this,i=hB(this.urlTree.root,[],[],this.config).segmentGroup,o=new vi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,hi).pipe((0,$n.U)(function(l){return e.createUrlTree(lB(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,ed.K)(function(l){if(l instanceof Are)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof gB?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,hi).pipe((0,$n.U)(function(s){return i.createUrlTree(lB(s),e.queryParams,e.fragment)})).pipe((0,ed.K)(function(s){throw s instanceof gB?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,_B)}},{key:"createUrlTree",value:function(e,i,o){var a=gG(e);return new Z0(a,i,o)}},{key:"expandSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,i,o).pipe((0,$n.U)(function(s){return new vi([],s)})):this.expandSegment(e,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(e,i,o){for(var a=this,s=[],l=0,u=Object.keys(o.children);l1||!a.children[hi])return e.redirectTo,(0,I0._)(new t.vHH(4e3,_B));a=a.children[hi]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreateUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new Z0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return cl(e,function(a,s){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);o[s]=i[u]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(e,i,o,a){var s=this,l=this.createSegments(e,i.segments,o,a),u={};return cl(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new vi(l,u)}},{key:"createSegments",value:function(e,i,o,a){var s=this;return i.map(function(l){return l.path.startsWith(":")?s.findPosParam(e,l,a):s.findOrReturn(l,o)})}},{key:"findPosParam",value:function(e,i,o){var a=o[i.path.substring(1)];if(!a)throw new t.vHH(4001,_B);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,An.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.path===e.path)return i.splice(o),l;o++}}catch(u){a.e(u)}finally{a.f()}return e}}]),n}();function rDe(n,r,e,i){return(0,Po.w)(function(o){return function tDe(n,r,e,i,o){return new nDe(n,r,e,i,o).apply()}(n,r,e,o.extractedUrl,i).pipe((0,$n.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var iDe=(0,j.Z)(function n(){(0,F.Z)(this,n)});function oDe(n){return new oo.y(function(r){return r.error(n)})}var sDe=function(){function n(r,e,i,o,a,s,l,u){(0,F.Z)(this,n),this.injector=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=a,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=l,this.urlSerializer=u}return(0,j.Z)(n,[{key:"recognize",value:function(){var e=this,i=hB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,hi).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new cB([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},hi,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new dm(a,o),l=new gre(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=_re(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),e.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,i,o):this.processSegment(e,i,o,o.segments,a)}},{key:"processChildren",value:function(e,i,o){var a=this;return(0,hs.D)(Object.keys(o.children)).pipe((0,L0.b)(function(s){var l=o.children[s],u=Tre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,Wne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,cn.Z)(l)),s):null}),(0,xEe.o)(function(s){return null!==s}),(0,Yne.d)(null),(0,Vne.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Pre(s);return function lDe(n){n.sort(function(r,e){return r.value.outlet===hi?-1:e.value.outlet===hi?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,hs.D)(i).pipe((0,L0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,Dg.P)(function(u){return!!u}),(0,ed.K)(function(u){if(AG(u))return Dre(o,a,s)?(0,qn.of)([]):(0,qn.of)(null);throw u}))}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a,s){var u,d,h,l=this;if(i.redirectTo||!xre(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?Qne(a).parameters:{},C=Rre(o)+a.length,Z=new cB(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Zre(i),td(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ire(o),C,Nre(i),C);h=(0,qn.of)({snapshot:Z,consumedSegments:[],remainingSegments:[]})}else h=Ere(o,i,a,e,this.urlSerializer).pipe((0,$n.U)(function(z){var Ce,Ee,q=z.matched,re=z.consumedSegments,ae=z.remainingSegments,Se=z.parameters;if(!q)return null;var Ke=Rre(o)+re.length;return{snapshot:new cB(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Zre(i),td(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Ire(o),Ke,Nre(i),Ke),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,Po.w)(function(z){var q,re;if(null===z)return(0,qn.of)(null);var ae=z.snapshot,Se=z.consumedSegments,Ce=z.remainingSegments;e=null!==(q=i._injector)&&void 0!==q?q:e;var Ee=null!==(re=i._loadedInjector)&&void 0!==re?re:e,Ke=function uDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),st=hB(o,Se,Ce,Ke.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),Ae=st.segmentGroup,it=st.slicedSegments;if(0===it.length&&Ae.hasChildren())return l.processChildren(Ee,Ke,Ae).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}));if(0===Ke.length&&0===it.length)return(0,qn.of)([new dm(ae,[])]);var ft=td(i)===s;return l.processSegment(Ee,Ke,Ae,it,ft?hi:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new dm(ae,bt)]}))}))}}]),n}();function Pre(n){var o,r=[],e=new Set,i=(0,An.Z)(n);try{var a=function(){var g=o.value;if(!function cDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(g))return r.push(g),1;var Z,C=r.find(function(z){return g.value.routeConfig===z.value.routeConfig});void 0!==C?((Z=C.children).push.apply(Z,(0,cn.Z)(g.children)),e.add(C)):r.push(g)};for(i.s();!(o=i.n()).done;)a()}catch(h){i.e(h)}finally{i.f()}var l,s=(0,An.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Pre(u.children);r.push(new dm(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Ire(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function Rre(n){for(var r,e,i=n,o=null!==(r=i._segmentIndexShift)&&void 0!==r?r:0;i._sourceSegment;)o+=null!==(e=(i=i._sourceSegment)._segmentIndexShift)&&void 0!==e?e:0;return o-1}function Zre(n){return n.data||{}}function Nre(n){return n.resolve||{}}function fDe(n,r,e,i,o,a){return(0,_s.zg)(function(s){return function aDe(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"emptyOnly",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"legacy";return new sDe(n,r,e,i,o,s,l,a).recognize().pipe((0,Po.w)(function(u){return null===u?oDe(new iDe):(0,qn.of)(u)}))}(n,r,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,a).pipe((0,$n.U)(function(l){return Object.assign(Object.assign({},s),{targetSnapshot:l})}))})}function pDe(n,r){return(0,_s.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,hs.D)(o).pipe((0,L0.b)(function(s){return function hDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Bre(o)&&(a[dD]=o.title),function mDe(n,r,e,i){var o=function _De(n){return[].concat((0,cn.Z)(Object.keys(n)),(0,cn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,hs.D)(o).pipe((0,_s.zg)(function(s){return function gDe(n,r,e,i){var o,a=null!==(o=yD(r))&&void 0!==o?o:i,s=ek(n,a);return Ag(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,Dg.P)(),(0,aa.b)(function(l){a[s]=l}))}),(0,m7.h)(1),(0,D1.h)(a),(0,ed.K)(function(s){return AG(s)?R0.E:(0,I0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=_re(n,e).resolve,o&&Bre(o)&&(n.data[dD]=o.title),null}))}(s.route,i,n,r)}),(0,aa.b)(function(){return a++}),(0,m7.h)(1),(0,_s.zg)(function(s){return a===o.length?(0,qn.of)(e):R0.E}))})}function Bre(n){return"string"==typeof n.title||null===n.title}function IG(n){return(0,Po.w)(function(r){var e=n(r);return e?(0,hs.D)(e).pipe((0,$n.U)(function(){return r})):(0,qn.of)(r)})}var nk=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"buildTitle",value:function(e){for(var i,o,a=e.root;void 0!==a;)o=null!==(i=this.getResolvedTitleForRoute(a))&&void 0!==i?i:o,a=a.children.find(function(s){return s.outlet===hi});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[dD]}}]),n}();nk.\u0275fac=function(r){return new(r||nk)},nk.\u0275prov=t.Yz7({token:nk,factory:function(){return(0,t.f3M)(U0)},providedIn:"root"});var U0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this)).title=i,o}return(0,j.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(nk);U0.\u0275fac=function(r){return new(r||U0)(t.LFG(ni))},U0.\u0275prov=t.Yz7({token:U0,factory:U0.\u0275fac,providedIn:"root"});var vDe=(0,j.Z)(function n(){(0,F.Z)(this,n)}),yDe=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,i){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,i){return e.routeConfig===i.routeConfig}}]),n}(),bDe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(yDe),yB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),RG=new t.OlP("ROUTES"),Og=function(){function n(r,e){(0,F.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,j.Z)(n,[{key:"loadComponent",value:function(e){var i=this;if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,qn.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);var o=Ag(e.loadComponent()).pipe((0,aa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,tB.x)(function(){i.componentLoaders.delete(e)})),a=new zne.c(o,function(){return new On.xQ}).pipe((0,Kne.x)());return this.componentLoaders.set(e,a),a}},{key:"loadChildren",value:function(e,i){var o=this;if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe((0,$n.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var d,h;Array.isArray(u)?h=u:h=Jne((d=u.create(e).injector).get(RG,[],t.XFs.Self|t.XFs.Optional));var C=h.map(DG);return{routes:C,injector:d}}),(0,tB.x)(function(){o.childrenLoaders.delete(i)})),l=new zne.c(s,function(){return new On.xQ}).pipe((0,Kne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Ag(e()).pipe((0,_s.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,qn.of)(o):(0,hs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Og.\u0275fac=function(r){return new(r||Og)(t.LFG(t.zs3),t.LFG(t.Sil))},Og.\u0275prov=t.Yz7({token:Og,factory:Og.\u0275fac,providedIn:"root"});var wDe=(0,j.Z)(function n(){(0,F.Z)(this,n)}),kDe=function(){function n(){(0,F.Z)(this,n)}return(0,j.Z)(n,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),n}(),bB=!1;function TDe(n){throw n}function MDe(n,r,e){return r.parse("/")}var SDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},EDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ure(){var n,r,e=(0,t.f3M)(Jw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(se.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(RG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(yB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(U0),h=(0,t.f3M)(nk,{optional:!0}),g=(0,t.f3M)(wDe,{optional:!0}),C=(0,t.f3M)(vDe,{optional:!0}),Z=new ur(null,e,i,o,a,s,Jne(l));return g&&(Z.urlHandlingStrategy=g),C&&(Z.routeReuseStrategy=C),Z.titleStrategy=null!=h?h:d,function xDe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(r.canceledNavigationResolution=n.canceledNavigationResolution)}(u,Z),Z}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,F.Z)(this,n),this.rootComponentType=r,this.urlSerializer=e,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new On.xQ,this.errorHandler=TDe,this.malformedUriErrorHandler=MDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new kDe,this.routeReuseStrategy=new bDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Og),this.configLoader.onLoadEndListener=function(Z){return u.triggerEvent(new uxe(Z))},this.configLoader.onLoadStartListener=function(Z){return u.triggerEvent(new lxe(Z))},this.ngModule=a.get(t.h0i),this.console=a.get(t.c2e);var g=a.get(t.R0b);this.isNgZoneEnabled=g instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function PEe(){return new Z0(new vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=mre(this.currentUrlTree,this.rootComponentType),this.transitions=new Wi.X({id:0,targetPageId: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()}return(0,j.Z)(n,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var i=this,o=this.events;return e.pipe((0,$r.h)(function(a){return 0!==a.id}),(0,$n.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,Po.w)(function(a){var s=!1,l=!1;return(0,qn.of)(a).pipe((0,aa.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Po.w)(function(u){var d=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==d||d!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return jre(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,Po.w)(function(Ee){var Ke=i.transitions.getValue();return o.next(new uB(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ke!==i.transitions.getValue()?R0.E:Promise.resolve(Ee)}),rDe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,aa.b)(function(Ee){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Ee.urlAfterRedirects}),a.urlAfterRedirects=Ee.urlAfterRedirects}),fDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,aa.b)(function(Ee){if(a.targetSnapshot=Ee.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var Ke=i.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);i.setBrowserUrl(Ke,Ee)}i.browserUrlTree=Ee.urlAfterRedirects}var st=new rxe(Ee.id,i.serializeUrl(Ee.extractedUrl),i.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);o.next(st)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var Z=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new uB(Z,i.serializeUrl(z),q,re);o.next(Se);var Ce=mre(z,i.rootComponentType).snapshot;return a=Object.assign(Object.assign({},u),{targetSnapshot:Ce,urlAfterRedirects:z,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}),(0,qn.of)(a)}return i.rawUrlTree=u.rawUrl,u.resolve(null),R0.E}),(0,aa.b)(function(u){var d=new ixe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(d)}),(0,$n.U)(function(u){return a=Object.assign(Object.assign({},u),{guards:xxe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Fxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,aa.b)(function(u){if(a.guardsResult=u.guardsResult,B0(u.guardsResult))throw yre(i.urlSerializer,u.guardsResult);var d=new oxe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,$r.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),IG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,aa.b)(function(d){var h=new axe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,Po.w)(function(d){var h=!1;return(0,qn.of)(d).pipe(pDe(i.paramsInheritanceStrategy,i.ngModule.injector),(0,aa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,aa.b)(function(d){var h=new sxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),IG(function(u){return(0,K1.aj)(function h(g){var C,Z=[];(null===(C=g.routeConfig)||void 0===C?void 0:C.loadComponent)&&!g.routeConfig._loadedComponent&&Z.push(i.configLoader.loadComponent(g.routeConfig).pipe((0,aa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,An.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;Z.push.apply(Z,(0,cn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return Z}(u.targetSnapshot.root)).pipe((0,Yne.d)(),(0,Ri.q)(1))}),IG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function gxe(n,r,e){var i=vD(n,r._root,e?e._root:void 0);return new hre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,aa.b)(function(u){i.currentUrlTree=u.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),i.routerState=u.targetRouterState,"deferred"===i.urlUpdateStrategy&&(u.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,u),i.browserUrlTree=u.urlAfterRedirects)}),function(r,e,i){return(0,$n.U)(function(o){return new Exe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,aa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,tB.x)(function(){var u;if(!s&&!l){i.cancelNavigationTransition(a,"",1)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,ed.K)(function(u){var d;if(l=!0,wre(u)){Cre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new gD(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),Cre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),C={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||jre(a.source)};i.scheduleNavigation(g,"imperative",null,C,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var Z=new CG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(Z);try{a.resolve(i.errorHandler(u))}catch(z){a.reject(z)}}return R0.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var o="popstate"===i.type?"popstate":"hashchange";"popstate"===o&&setTimeout(function(){var a,s={replaceUrl:!0},l=null!==(a=i.state)&&void 0!==a&&a.navigationId?i.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var d=e.parseUrl(i.url);e.scheduleNavigation(d,o,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){this.config=e.map(DG),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.relativeTo,a=i.queryParams,s=i.fragment,l=i.queryParamsHandling,u=i.preserveFragment,d=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,g=null;switch(l){case"merge":g=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=a||null}return null!==g&&(g=this.removeEmptyProps(g)),QEe(d,this.currentUrlTree,e,g,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=B0(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}},{key:"navigate",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return DDe(e),this.navigateByUrl(this.createUrlTree(e,i),i)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}},{key:"isActive",value:function(e,i){var o;if(o=!0===i?Object.assign({},SDe):!1===i?Object.assign({},EDe):i,B0(e))return $ne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return $ne(this.currentUrlTree,a,o)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(i,o){var a=e[o];return null!=a&&(i[o]=a),i},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(i){var o;e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new Jd(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,null===(o=e.titleStrategy)||void 0===o||o.updateTitle(e.routerState.snapshot),i.resolve(!0)},function(i){e.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(e,i,o,a,s){var l,u,d,h,g;if(this.disposed)return Promise.resolve(!1);s?(d=s.resolve,h=s.reject,g=s.promise):g=new Promise(function(q,re){d=q,h=re});var Z,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),Z=o&&o.\u0275routerPageId?o.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):Z=0;return this.setTransition({id:C,targetPageId:Z,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:d,reject:h,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(function(q){return Promise.reject(q)})}},{key:"setBrowserUrl",value:function(e,i){var o=this.urlSerializer.serialize(e),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",a):this.location.go(o,"",a)}},{key:"restoreHistory",value:function(e){var o,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,i,o){var a=new gD(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),n}();function DDe(n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};(0,F.Z)(this,n),this.router=r,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return(0,j.Z)(n,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof uB?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Jd&&(e.lastId=i.id,e.scheduleScrollEvent(i,e.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof fre&&(i.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,i){this.router.triggerEvent(new fre(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),n}();ok.\u0275fac=function(r){t.$Z()},ok.\u0275prov=t.Yz7({token:ok,factory:ok.\u0275fac});function Gre(n){return n.routerState.root}function ak(n,r){return{"\u0275kind":n,"\u0275providers":r}}function ZG(n){return[{provide:RG,multi:!0,useValue:n}]}function zre(){var n=(0,t.f3M)(t.zs3);return function(r){var e,i,o=n.get(t.z2F);if(r===o.components[0]){var a=n.get(ur),s=n.get(Wre);1===n.get(NG)&&a.initialNavigation(),null===(e=n.get(Vre,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(LG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var Wre=new t.OlP("",{factory:function(){return new On.xQ}}),NG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function ODe(){return ak(2,[{provide:NG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(se.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(Wre);(function a(s){e.get(ur).events.pipe((0,$r.h)(function(u){return u instanceof Jd||u instanceof gD||u instanceof CG}),(0,$n.U)(function(u){return u instanceof Jd||!(!(u instanceof gD)||0!==u.code&&1!==u.code)&&null}),(0,$r.h)(function(u){return null!==u}),(0,Ri.q)(1)).subscribe(function(){s()})})(function(){s(!0),o=!0}),l.afterPreactivation=function(){return s(!0),o||u.closed?(0,qn.of)(void 0):u},l.initialNavigation()})})}}}])}var Vre=new t.OlP("");function RDe(n){return ak(0,[{provide:Vre,useExisting:ik},{provide:Hre,useExisting:n}])}var Yre=new t.OlP("ROUTER_FORROOT_GUARD"),LDe=[se.Ye,{provide:Jw,useClass:mG},{provide:ur,useFactory:Ure},Ep,{provide:fr,useFactory:Gre,deps:[ur]},Og];function ZDe(){return new t.PXZ("Router",ur)}var j0=function(){function n(r){(0,F.Z)(this,n)}return(0,j.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[LDe,[],ZG(e),{provide:Yre,useFactory:UDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:yB,useValue:i||{}},null!=i&&i.useHash?{provide:se.S$,useClass:se.Do}:{provide:se.S$,useClass:se.b0},{provide:LG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(se.EM),i=(0,t.f3M)(yB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new ok(r,e,i)}},null!=i&&i.preloadingStrategy?RDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:ZDe},null!=i&&i.initialNavigation?jDe(i):[],[{provide:Kre,useFactory:zre},{provide:t.tb,multi:!0,useExisting:Kre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[ZG(e)]}}}]),n}();function UDe(n){return"guarded"}function jDe(n){return["disabled"===n.initialNavigation?ak(3,[{provide:t.ip1,multi:!0,useFactory:function(){var e=(0,t.f3M)(ur);return function(){e.setUpLocationChangeListener()}}},{provide:NG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ODe().\u0275providers:[]]}j0.\u0275fac=function(r){return new(r||j0)(t.LFG(Yre,8))},j0.\u0275mod=t.oAB({type:j0}),j0.\u0275inj=t.cJS({imports:[F0]});var Kre=new t.OlP("");new t.GfV("14.3.0");var kB=(0,j.Z)(function n(){(0,F.Z)(this,n)}),ho=m(2437),or=function(){function n(r){(0,F.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new On.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,j.Z)(n,[{key:"getcontrollerIds",value:function(){var e=localStorage.getItem("controllerIds");return(null==e?void 0:e.length)>0?e.split(","):[]}},{key:"updatecontrollerIds",value:function(){localStorage.removeItem("controllerIds"),localStorage.setItem("controllerIds",this.controllerIds.toString())}},{key:"get",value:function(e){var i=JSON.parse(localStorage.getItem("controller-".concat(e)));return new Promise(function(a){a(i)})}},{key:"create",value:function(e){return e.id=this.controllerIds.length+1,localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),this.controllerIds.push("controller-".concat(e.id)),this.updatecontrollerIds(),new Promise(function(o){o(e)})}},{key:"update",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),new Promise(function(o){o(e)})}},{key:"findAll",value:function(){var e=this;return new Promise(function(o){var a=[];e.controllerIds.forEach(function(s){var l=JSON.parse(localStorage.getItem(s));a.push(l)}),o(a)})}},{key:"delete",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),this.controllerIds=this.controllerIds.filter(function(o){return o!=="controller-".concat(e.id)}),this.updatecontrollerIds(),new Promise(function(o){o(e.id)})}},{key:"getControllerUrl",value:function(e){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/")}},{key:"checkControllerVersion",value:function(e){return this.httpController.get(e,"/version")}},{key:"getLocalController",value:function(e,i){var o=this;return new Promise(function(s,l){o.findAll().then(function(u){var d=u.find(function(g){return"bundled"===g.location});if(d)d.host=e,d.port=i,d.protocol=location.protocol,o.update(d).then(function(g){s(g)},l);else{var h=new kB;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(g){s(g)},l)}},l)})}}]),n}();or.\u0275fac=function(r){return new(r||or)(t.LFG(ho.zw))},or.\u0275prov=t.Yz7({token:or,factory:or.\u0275fac});var SD=(0,j.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,F.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),El=function(){function n(){(0,F.Z)(this,n),this.state=new Wi.X(new SD(!1))}return(0,j.Z)(n,[{key:"setError",value:function(e){this.state.next(new SD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new SD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new SD(!0))}},{key:"deactivate",value:function(){this.state.next(new SD(!1))}}]),n}();El.\u0275fac=function(r){return new(r||El)},El.\u0275prov=t.Yz7({token:El,factory:El.\u0275fac});var qre=["mat-button",""],Jre=["*"],WDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],VDe=(0,Gt.pj)((0,Gt.Id)((0,Gt.Kr)(function(){return(0,j.Z)(function n(r){(0,F.Z)(this,n),this._elementRef=r})}()))),dn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;(0,F.Z)(this,e),(s=r.call(this,i))._focusMonitor=o,s._animationMode=a,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var u,l=(0,An.Z)(WDe);try{for(l.s();!(u=l.n()).done;){var d=u.value;s._hasHostAttributes(d)&&s._getHostElement().classList.add(d)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,j.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l*,.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0});var H0=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;return(0,F.Z)(this,e),(l=r.call(this,o,i,a))._ngZone=s,l._haltDisabledEvents=function(u){l.disabled&&(u.preventDefault(),u.stopImmediatePropagation())},l}return(0,j.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){o._elementRef.nativeElement.addEventListener("click",o._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(dn);H0.\u0275fac=function(r){return new(r||H0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},H0.\u0275cmp=t.Xpm({type:H0,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[t.qOj],attrs:qre,ngContentSelectors:Jre,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(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Gt.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mat-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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mat-button-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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mat-button-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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0});var pm=(0,j.Z)(function n(){(0,F.Z)(this,n)});pm.\u0275fac=function(r){return new(r||pm)},pm.\u0275mod=t.oAB({type:pm}),pm.\u0275inj=t.cJS({imports:[Gt.si,Gt.BQ,Gt.BQ]});var TB,G0=m(567);function ED(n){var r;return(null===(r=function KDe(){if(void 0===TB&&(TB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(TB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return TB}())||void 0===r?void 0:r.createHTML(n))||n}function Qre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Xre(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function $re(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var z0=(0,j.Z)(function n(r,e,i){(0,F.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,F.Z)(this,n),this._httpClient=r,this._sanitizer=e,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=i}return(0,j.Z)(n,[{key:"addSvgIcon",value:function(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}},{key:"addSvgIconLiteral",value:function(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}},{key:"addSvgIconInNamespace",value:function(e,i,o,a){return this._addSvgIconConfig(e,i,new z0(o,null,a))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,i,o,a){var s=this._sanitizer.sanitize(t.q3G.HTML,o);if(!s)throw $re(o);var l=ED(s);return this._addSvgIconConfig(e,i,new z0("",l,a))}},{key:"addSvgIconSet",value:function(e,i){return this.addSvgIconSetInNamespace("",e,i)}},{key:"addSvgIconSetLiteral",value:function(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}},{key:"addSvgIconSetInNamespace",value:function(e,i,o){return this._addSvgIconSetConfig(e,new z0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw $re(i);var s=ED(a);return this._addSvgIconSetConfig(e,new z0("",s,o))}},{key:"registerFontClassAlias",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,i),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(){for(var e=arguments.length,i=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:"",o=eie(i,e),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e))return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):(0,I0._)(Qre(o))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,qn.of)(MB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return MB(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,qn.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,ed.K)(function(u){var d=o._sanitizer.sanitize(t.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(d," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,qn.of)(null)}))});return(0,G0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Qre(e);return l}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,i){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){var s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,e,a.options);if(l)return l}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var i=this;return this._fetchIcon(e).pipe((0,aa.b)(function(o){return e.svgText=o}),(0,$n.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,qn.of)(null):this._fetchIcon(e).pipe((0,aa.b)(function(i){return e.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(e,i,o){var a=e.querySelector('[id="'.concat(i,'"]'));if(!a)return null;var s=a.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);var l=this._svgElementFromString(ED(""));return l.appendChild(s),this._setSvgAttributes(l,o)}},{key:"_svgElementFromString",value:function(e){var i=this._document.createElement("DIV");i.innerHTML=e;var o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(ED("")),o=e.attributes,a=0;a0});this._previousFontSetClass.forEach(function(s){return o.classList.remove(s)}),a.forEach(function(s){return o.classList.add(s)}),this._previousFontSetClass=a,this.fontIcon!==this._previousFontIconClass&&!a.includes("mat-ligature-font")&&(this._previousFontIconClass&&o.classList.remove(this._previousFontIconClass),this.fontIcon&&o.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(o){return"string"==typeof o?o.trim().split(" ")[0]:o}},{key:"_prependPathToReferences",value:function(o){var a=this._elementsWithExternalReferences;a&&a.forEach(function(s,l){s.forEach(function(u){l.setAttribute(u.name,"url('".concat(o,"#").concat(u.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(o){for(var a=o.querySelectorAll(n2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){tie.forEach(function(g){var C=a[h],Z=C.getAttribute(g),z=Z?Z.match(r2e):null;if(z){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:g,value:z[1]})}})},u=0;u0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(this.disabled||!this.message||this._isTooltipVisible())null===(o=this._tooltipInstance)||void 0===o||o._cancelPendingAnimations();else{var a=this._createOverlay();this._detach(),this._portal=this._portal||new ao.C5(this._tooltipComponent,this._viewContainerRef);var s=this._tooltipInstance=a.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay,i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i,e=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Pr.R)(this._destroyed)).subscribe(function(s){e._updateCurrentPositionClass(s.connectionPair),e._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(nie),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Pr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Pr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Tr.hY&&!(0,Tr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),!(null===(i=this._defaultOptions)||void 0===i)&&i.disableTooltipInteractivity&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var i=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),a.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),a.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});var a=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a.x,originY:a.y}}}},{key:"_getOverlayPosition",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});var a=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a.x,overlayY:a.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1),(0,Pr.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}},{key:"_updateCurrentPositionClass",value:function(e){var s,i=e.overlayY,o=e.originX,a=e.originY;if((s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===a?"above":"below")!==this._currentPosition){var l=this._overlayRef;if(l){var u="".concat(this._cssClassPrefix,"-").concat(nie,"-");l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var i,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",function(s){var l,u=s.relatedTarget;(!u||null===(l=e._overlayRef)||void 0===l||!l.overlayElement.contains(u))&&e.hide()}],["wheel",function(s){return e._wheelListener(s)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var a=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};o.push(["touchend",a],["touchcancel",a])}this._addListeners(o),(i=this._passiveListeners).push.apply(i,o)}}},{key:"_addListeners",value:function(e){var i=this;e.forEach(function(o){var a=(0,Yn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,rie)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}]),n}();SB.\u0275fac=function(r){t.$Z()},SB.\u0275dir=t.lG2({type:SB,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var mi=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,C,Z,z){var q;return(0,F.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,C,Z,z))._tooltipComponent=DD,q}return(0,j.Z)(e)}(SB);mi.\u0275fac=function(r){return new(r||mi)(t.Y36(Li.aV),t.Y36(t.SBq),t.Y36(sa.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(bi.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(iie),t.Y36(nl.Is,8),t.Y36(_2e,8),t.Y36(se.K0))},mi.\u0275dir=t.lG2({type:mi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var xD=function(){function n(r,e){(0,F.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new On.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,j.Z)(n,[{key:"show",value:function(e){var i=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){i._toggleVisibility(!0),i._showTimeoutId=void 0},e)}},{key:"hide",value:function(e){var i=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){i._toggleVisibility(!1),i._hideTimeoutId=void 0},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(e){var i=e.relatedTarget;(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(e){var i=e.animationName;(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}},{key:"_cancelPendingAnimations",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}},{key:"_finalizeAnimation",value:function(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(e){var i=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:o),i.classList.add(e?o:a),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}]),n}();xD.\u0275fac=function(r){return new(r||xD)(t.Y36(t.sBO),t.Y36(t.QbO,8))},xD.\u0275dir=t.lG2({type:xD});var DD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(nd.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,j.Z)(e)}(xD);DD.\u0275fac=function(r){return new(r||DD)(t.Y36(t.sBO),t.Y36(nd.Yg),t.Y36(t.QbO,8))},DD.\u0275cmp=t.Xpm({type:DD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(d2e,7),2&r)&&(t.iGM(i=t.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&t.Udp("zoom",e.isVisible()?1:null)},features:[t.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(t.TgZ(0,"div",0,1),t.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),t.ALo(2,"async"),t._uU(3),t.qZA()),2&r)&&(t.ekj("mat-tooltip-handset",null==(i=t.lcZ(2,4,e._isHandset))?null:i.matches),t.Q6J("ngClass",e.tooltipClass),t.xp6(3),t.Oqu(e.message))},dependencies:[se.mk,se.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});var W0=(0,j.Z)(function n(){(0,F.Z)(this,n)});W0.\u0275fac=function(r){return new(r||W0)},W0.\u0275mod=t.oAB({type:W0}),W0.\u0275inj=t.cJS({providers:[m2e],imports:[Yr.rt,se.ez,Li.U8,Gt.BQ,Gt.BQ,sa.ZD]});(0,Zt.X$)("state",[(0,Zt.SB)("initial, void, hidden",(0,Zt.oB)({opacity:0,transform:"scale(0)"})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)"})),(0,Zt.eR)("* => visible",(0,Zt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.F4)([(0,Zt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Zt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Zt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Zt.eR)("* => hidden",(0,Zt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Zt.oB)({opacity:0})))]);function v2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function y2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),t._uU(3,"error_outline"),t.qZA()(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div")(7,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refresh())}),t.TgZ(8,"mat-icon"),t._uU(9,"refresh"),t.qZA()(),t.TgZ(10,"button",9)(11,"mat-icon"),t._uU(12,"home"),t.qZA()()()()}if(2&n){var i=t.oxw(2);t.xp6(5),t.hij("Error occurred: ",i.error.message,"")}}function b2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,v2e,2,0,"div",2),t.YNc(2,y2e,13,1,"div",3),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.visible&&!e.error),t.xp6(1),t.Q6J("ngIf",e.error)}}var V0=function(){function n(r,e){(0,F.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.state.subscribe(function(i){e.visible=i.visible,i.error&&!e.error&&(e.error=i.error),i.clear&&(e.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){e.progressService.clear()})}},{key:"refresh",value:function(){this.router.navigateByUrl(this.router.url)}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}}]),n}();V0.\u0275fac=function(r){return new(r||V0)(t.Y36(El),t.Y36(ur))},V0.\u0275cmp=t.Xpm({type:V0,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(r,e){1&r&&t.YNc(0,b2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[se.O5,Wo,dn,Dn,ou,mi],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;inset:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]});var AD=function(){function n(r,e,i,o){(0,F.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.activate(),setTimeout(function(){var i;i=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):"https:"==e.document.location.protocol?443:80,e.controllerService.getLocalController(e.document.location.hostname,i).then(function(o){e.router.navigate(["/controller",o.id,"projects"]),e.progressService.deactivate()})},100)}}]),n}();AD.\u0275fac=function(r){return new(r||AD)(t.Y36(ur),t.Y36(or),t.Y36(El),t.Y36(se.K0))},AD.\u0275cmp=t.Xpm({type:AD,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[V0]});function wi(n,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{d(i.next(h))}catch(g){s(g)}}function u(h){try{d(i.throw(h))}catch(g){s(g)}}function d(h){h.done?a(h.value):function o(a){return a instanceof e?a:new e(function(s){s(a)})}(h.value).then(l,u)}d((i=i.apply(n,r||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var Dp=function(){function n(){(0,F.Z)(this,n),this.dataChange=new Wi.X([])}return(0,j.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addController",value:function(e){var i=this.data.slice();i.push(e),this.dataChange.next(i)}},{key:"addControllers",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}},{key:"find",value:function(e){return this.data.find(function(i){return i.name===e})}},{key:"findIndex",value:function(e){return this.data.findIndex(function(i){return i.name===e})}},{key:"update",value:function(e){var i=this.findIndex(e.name);i>=0&&(this.data[i]=e,this.dataChange.next(this.data.slice()))}}]),n}();function z2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.action())}),t._uU(2),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Oqu(i.data.action)}}function W2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var GG=new t.OlP("MatSnackBarData"),EB=(0,j.Z)(function n(){(0,F.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),V2e=Math.pow(2,31)-1,xB=function(){function n(r,e){var i=this;(0,F.Z)(this,n),this._overlayRef=e,this._afterDismissed=new On.xQ,this._afterOpened=new On.xQ,this._onAction=new On.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,j.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(e,V2e))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),PD=function(){function n(r,e){(0,F.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,j.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();PD.\u0275fac=function(r){return new(r||PD)(t.Y36(xB),t.Y36(GG))},PD.\u0275cmp=t.Xpm({type:PD,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span",0),t._uU(1),t.qZA(),t.YNc(2,z2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[se.O5,dn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0});var Y2e={snackBarState:(0,Zt.X$)("state",[(0,Zt.SB)("void, hidden",(0,Zt.oB)({transform:"scale(0.8)",opacity:0})),(0,Zt.SB)("visible",(0,Zt.oB)({transform:"scale(1)",opacity:1})),(0,Zt.eR)("* => visible",(0,Zt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Zt.eR)("* => void, * => hidden",(0,Zt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Zt.oB)({opacity:0})))])},ID=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l){var u;return(0,F.Z)(this,e),(u=r.call(this))._ngZone=i,u._elementRef=o,u._changeDetectorRef=a,u._platform=s,u.snackBarConfig=l,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new On.xQ,u._onExit=new On.xQ,u._onEnter=new On.xQ,u._animationState="void",u.attachDomPortal=function(d){u._assertNotAttached();var h=u._portalOutlet.attachDomPortal(d);return u._afterPortalAttached(),h},"assertive"!==l.politeness||l.announcementMessage?"off"===l.politeness?u._live="off":u._live="polite":u._live="assertive",u._platform.FIREFOX&&("polite"===u._live&&(u._role="status"),"assertive"===u._live&&(u._role="alert")),u}return(0,j.Z)(e,[{key:"attachComponentPortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._afterPortalAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._afterPortalAttached(),a}},{key:"onAnimationEnd",value:function(o){var a=o.fromState,s=o.toState;if(("void"===s&&"void"!==a||"hidden"===s)&&this._completeExit(),"visible"===s){var l=this._onEnter;this._ngZone.run(function(){l.next(),l.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var o=this;return this._ngZone.run(function(){o._animationState="hidden",o._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(o._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var o=this;this._ngZone.onMicrotaskEmpty.pipe((0,Ri.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_afterPortalAttached",value:function(){var o=this._elementRef.nativeElement,a=this.snackBarConfig.panelClass;a&&(Array.isArray(a)?a.forEach(function(s){return o.classList.add(s)}):o.classList.add(a))}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var o=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){o._announceTimeoutId=setTimeout(function(){var a=o._elementRef.nativeElement.querySelector("[aria-hidden]"),s=o._elementRef.nativeElement.querySelector("[aria-live]");if(a&&s){var l=null;o._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(l=document.activeElement),a.removeAttribute("aria-hidden"),s.appendChild(a),null==l||l.focus(),o._onAnnounce.next(),o._onAnnounce.complete()}},o._announceDelay)})}}]),e}(ao.en);ID.\u0275fac=function(r){return new(r||ID)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(bi.t4),t.Y36(EB))},ID.\u0275dir=t.lG2({type:ID,viewQuery:function(r,e){var i;(1&r&&t.Gf(ao.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var lk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"_afterPortalAttached",this).call(this),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}]),e}(ID);lk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(lk)))(e||lk)}}(),lk.\u0275cmp=t.Xpm({type:lk,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&t.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&t.d8E("@state",e._animationState)},features:[t.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.YNc(1,W2e,0,0,"ng-template",1),t.qZA(),t._UZ(2,"div")),2&r&&(t.xp6(2),t.uIk("aria-live",e._live)("role",e._role))},dependencies:[ao.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Y2e.snackBarState]}});var Y0=(0,j.Z)(function n(){(0,F.Z)(this,n)});Y0.\u0275fac=function(r){return new(r||Y0)},Y0.\u0275mod=t.oAB({type:Y0}),Y0.\u0275inj=t.cJS({imports:[Li.U8,ao.eL,se.ez,pm,Gt.BQ,Gt.BQ]});var aie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function K2e(){return new EB}});var K0=function(){function n(r,e,i,o,a,s){(0,F.Z)(this,n),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,j.Z)(n,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,i){return this._attach(e,i)}},{key:"openFromTemplate",value:function(e,i){return this._attach(e,i)}},{key:"open",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=Object.assign(Object.assign({},this._defaultConfig),o);return a.data={message:e,action:i},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=t.zs3.create({parent:o||this._injector,providers:[{provide:EB,useValue:i}]}),s=new ao.C5(this.snackBarContainerComponent,i.viewContainerRef,a),l=e.attach(s);return l.instance.snackBarConfig=i,l.instance}},{key:"_attach",value:function(e,i){var o=this,a=Object.assign(Object.assign(Object.assign({},new EB),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new xB(l,s);if(e instanceof t.Rgc){var d=new ao.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new ao.C5(e,void 0,h),C=l.attachComponentPortal(g);u.instance=C.instance}return this._breakpointObserver.observe(nd.u3.HandsetPortrait).pipe((0,Pr.R)(s.detachments())).subscribe(function(Z){s.overlayElement.classList.toggle(o.handsetCssClass,Z.matches)}),a.announcementMessage&&l._onAnnounce.subscribe(function(){o._live.announce(a.announcementMessage,a.politeness)}),this._animateSnackBar(u,a),this._openedSnackBarRef=u,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,i){var o=this;e.afterDismissed().subscribe(function(){o._openedSnackBarRef==e&&(o._openedSnackBarRef=null),i.announcementMessage&&o._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(e){var i=new Li.X_;i.direction=e.direction;var o=this._overlay.position().global(),a="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!a||"end"===e.horizontalPosition&&a,l=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return t.zs3.create({parent:o||this._injector,providers:[{provide:xB,useValue:i},{provide:GG,useValue:e.data}]})}}]),n}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(K0,12),t.LFG(aie))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac});var rd=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u){var d;return(0,F.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=PD,d.snackBarContainerComponent=lk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,j.Z)(e)}(K0);rd.\u0275fac=function(r){return new(r||rd)(t.LFG(Li.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(nd.Yg),t.LFG(rd,12),t.LFG(aie))},rd.\u0275prov=t.Yz7({token:rd,factory:rd.\u0275fac,providedIn:Y0});var Rn=function(){function n(r,e){(0,F.Z)(this,n),this.snackbar=r,this.zone=e,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return(0,j.Z)(n,[{key:"error",value:function(e){var i=this;console.error(e),this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForError)})}},{key:"warning",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForWarning)})}},{key:"success",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForSuccess)})}}]),n}();Rn.\u0275fac=function(r){return new(r||Rn)(t.LFG(rd),t.LFG(t.R0b))},Rn.\u0275prov=t.Yz7({token:Rn,factory:Rn.\u0275fac});var kn=m(7322),q2e=["*",[["mat-card-footer"]]],Q2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],$2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],q0=(0,j.Z)(function n(){(0,F.Z)(this,n)});q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275dir=t.lG2({type:q0,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var uk=(0,j.Z)(function n(){(0,F.Z)(this,n)});uk.\u0275fac=function(r){return new(r||uk)},uk.\u0275dir=t.lG2({type:uk,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var ck=(0,j.Z)(function n(){(0,F.Z)(this,n)});ck.\u0275fac=function(r){return new(r||ck)},ck.\u0275dir=t.lG2({type:ck,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var RD=(0,j.Z)(function n(){(0,F.Z)(this,n),this.align="start"});RD.\u0275fac=function(r){return new(r||RD)},RD.\u0275dir=t.lG2({type:RD,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var DB=(0,j.Z)(function n(){(0,F.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var AB=(0,j.Z)(function n(){(0,F.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var OB=(0,j.Z)(function n(){(0,F.Z)(this,n)});OB.\u0275fac=function(r){return new(r||OB)},OB.\u0275dir=t.lG2({type:OB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var PB=(0,j.Z)(function n(){(0,F.Z)(this,n)});PB.\u0275fac=function(r){return new(r||PB)},PB.\u0275dir=t.lG2({type:PB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var IB=(0,j.Z)(function n(){(0,F.Z)(this,n)});IB.\u0275fac=function(r){return new(r||IB)},IB.\u0275dir=t.lG2({type:IB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var RB=(0,j.Z)(function n(){(0,F.Z)(this,n)});RB.\u0275fac=function(r){return new(r||RB)},RB.\u0275dir=t.lG2({type:RB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var LB=(0,j.Z)(function n(){(0,F.Z)(this,n)});LB.\u0275fac=function(r){return new(r||LB)},LB.\u0275dir=t.lG2({type:LB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var di=(0,j.Z)(function n(r){(0,F.Z)(this,n),this._animationMode=r});di.\u0275fac=function(r){return new(r||di)(t.Y36(t.QbO,8))},di.\u0275cmp=t.Xpm({type:di,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(q2e),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0});var ZB=(0,j.Z)(function n(){(0,F.Z)(this,n)});ZB.\u0275fac=function(r){return new(r||ZB)},ZB.\u0275cmp=t.Xpm({type:ZB,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(r,e){1&r&&(t.F$t(Q2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var NB=(0,j.Z)(function n(){(0,F.Z)(this,n)});NB.\u0275fac=function(r){return new(r||NB)},NB.\u0275cmp=t.Xpm({type:NB,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],decls:4,vars:0,template:function(r,e){1&r&&(t.F$t($2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var dk=(0,j.Z)(function n(){(0,F.Z)(this,n)});dk.\u0275fac=function(r){return new(r||dk)},dk.\u0275mod=t.oAB({type:dk}),dk.\u0275inj=t.cJS({imports:[Gt.BQ,Gt.BQ]});var tAe=m(7568),sie=(0,bi.i$)({passive:!0}),J0=function(){function n(r,e){(0,F.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,j.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return R0.E;var o=(0,En.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new On.xQ,l="cdk-text-field-autofilled",u=function(h){"cdk-text-field-autofill-start"!==h.animationName||o.classList.contains(l)?"cdk-text-field-autofill-end"===h.animationName&&o.classList.contains(l)&&(o.classList.remove(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!1})})):(o.classList.add(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){o.addEventListener("animationstart",u,sie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,sie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,En.fI)(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(i,o){return e.stopMonitoring(o)})}}]),n}();J0.\u0275fac=function(r){return new(r||J0)(t.LFG(bi.t4),t.LFG(t.R0b))},J0.\u0275prov=t.Yz7({token:J0,factory:J0.\u0275fac,providedIn:"root"});var BB=function(){function n(r,e){(0,F.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe(function(i){return e.cdkAutofill.emit(i)})}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),n}();BB.\u0275fac=function(r){return new(r||BB)(t.Y36(t.SBq),t.Y36(J0))},BB.\u0275dir=t.lG2({type:BB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var FB=function(){function n(r,e,i,o){var a=this;(0,F.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new On.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=function(s){a._hasFocus="focus"===s.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}return(0,j.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,En.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,En.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,En.Ig)(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var i=e._getWindow();(0,Xf.R)(i,"resize").pipe((0,tAe.e)(16),(0,Pr.R)(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)}),e._textareaElement.addEventListener("focus",e._handleFocusEvent),e._textareaElement.addEventListener("blur",e._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){var e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,a=o&&this._hasFocus,s=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom="".concat(e.clientHeight,"px")),e.classList.add(s);var l=e.scrollHeight-4;return e.classList.remove(s),a&&(e.style.marginBottom=i),l}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight){if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var o=this._elementRef.nativeElement,a=o.value;if(i||this._minRows!==this._previousMinRows||a!==this._previousValue){var s=this._measureScrollHeight(),l=Math.max(s,this._cachedPlaceholderHeight||0);o.style.height="".concat(l,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(o)}):setTimeout(function(){return e._scrollToCaretPosition(o)})}),this._previousValue=a,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var i=e.selectionStart,o=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}}]),n}();FB.\u0275fac=function(r){return new(r||FB)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(t.R0b),t.Y36(se.K0,8))},FB.\u0275dir=t.lG2({type:FB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&t.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var Q0=(0,j.Z)(function n(){(0,F.Z)(this,n)});Q0.\u0275fac=function(r){return new(r||Q0)},Q0.\u0275mod=t.oAB({type:Q0}),Q0.\u0275inj=t.cJS({});var nAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),rAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],iAe=0,oAe=(0,Gt.FD)(function(){return(0,j.Z)(function n(r,e,i,o){(0,F.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new On.xQ})}()),Kn=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;(0,F.Z)(this,e),(Z=r.call(this,u,s,l,a))._elementRef=i,Z._platform=o,Z._autofillMonitor=h,Z._formField=C,Z._uid="mat-input-".concat(iAe++),Z.focused=!1,Z.stateChanges=new On.xQ,Z.controlType="mat-input",Z.autofilled=!1,Z._disabled=!1,Z._type="text",Z._readonly=!1,Z._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,bi.qK)().has(re)}),Z._iOSKeyupListener=function(re){var ae=re.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var z=Z._elementRef.nativeElement,q=z.nodeName.toLowerCase();return Z._inputValueAccessor=d||z,Z._previousNativeValue=Z.value,Z.id=Z.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",Z._iOSKeyupListener)}),Z._isServer=!Z._platform.isBrowser,Z._isNativeSelect="select"===q,Z._isTextarea="textarea"===q,Z._isInFormField=!!C,Z._isNativeSelect&&(Z.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),Z}return(0,j.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(o){this._id=o||this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,En.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,bi.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(o){o!==this.value&&(this._inputValueAccessor.value=o,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(o){this._readonly=(0,En.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(a){o.autofilled=a.isAutofilled,o.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(o){this._elementRef.nativeElement.focus(o)}},{key:"_focusChanged",value:function(o){o!==this.focused&&(this.focused=o,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var o,a=this._formField,s=!a||"legacy"!==a.appearance||null!==(o=a._hasLabel)&&void 0!==o&&o.call(a)?this.placeholder:null;if(s!==this._previousPlaceholder){var l=this._elementRef.nativeElement;this._previousPlaceholder=s,s?l.setAttribute("placeholder",s):l.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var o=this._elementRef.nativeElement.value;this._previousNativeValue!==o&&(this._previousNativeValue=o,this.stateChanges.next())}},{key:"_validateType",value:function(){rAe.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var o=this._elementRef.nativeElement.validity;return o&&o.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var o=this._elementRef.nativeElement,a=o.options[0];return this.focused||o.multiple||!this.empty||!!(o.selectedIndex>-1&&a&&a.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var o=this._elementRef.nativeElement;return this._isNativeSelect&&(o.multiple||o.size>1)}}]),e}(oAe);Kn.\u0275fac=function(r){return new(r||Kn)(t.Y36(t.SBq),t.Y36(bi.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Gt.rD),t.Y36(nAe,10),t.Y36(J0),t.Y36(t.R0b),t.Y36(kn.G_,8))},Kn.\u0275dir=t.lG2({type:Kn,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(t.Ikx("disabled",e.disabled)("required",e.required),t.uIk("id",e.id)("data-placeholder",e.placeholder)("name",e.name||null)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),t.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:kn.Eo,useExisting:Kn}]),t.qOj,t.TTD]});var fk=(0,j.Z)(function n(){(0,F.Z)(this,n)});fk.\u0275fac=function(r){return new(r||fk)},fk.\u0275mod=t.oAB({type:fk}),fk.\u0275inj=t.cJS({providers:[Gt.rD],imports:[Q0,kn.lN,Gt.BQ,Q0,kn.lN]});var ri=m(4107);function aAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function sAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}function lAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var LD=function(){function n(r,e,i,o,a){(0,F.Z)(this,n),this.controllerService=r,this.controllerDatabase=e,this.route=i,this.router=o,this.toasterService=a,this.controllerOptionsVisibility=!1,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),protocol:new J.p4("http:")})}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){return wi(this,void 0,void 0,Ln().mark(function e(){var i=this;return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return wi(i,void 0,void 0,Ln().mark(function l(){return Ln().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s&&this.getControllers();case 1:case"end":return d.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return wi(this,void 0,void 0,Ln().mark(function e(){var o,a,i=this;return Ln().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.controllerIp=this.route.snapshot.paramMap.get("controller_ip"),this.controllerPort=+this.route.snapshot.paramMap.get("controller_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),l.next=5,this.controllerService.findAll();case 5:o=l.sent,(a=o.filter(function(u){return u.host===i.controllerIp&&u.port===i.controllerPort})[0])?this.router.navigate(["/controller",a.id,"project",this.projectId]):this.controllerOptionsVisibility=!0;case 8:case"end":return l.stop()}},e,this)}))}},{key:"createController",value:function(){var e=this;if(this.controllerForm.get("name").hasError||this.controllerForm.get("location").hasError||this.controllerForm.get("protocol").hasError){var i=new kB;i.host=this.controllerIp,i.port=this.controllerPort,i.name=this.controllerForm.get("name").value,i.location=this.controllerForm.get("location").value,i.protocol=this.controllerForm.get("protocol").value,this.controllerService.create(i).then(function(o){e.router.navigate(["/controller",o.id,"project",e.projectId])})}else this.toasterService.error("Please use correct values")}}]),n}();LD.\u0275fac=function(r){return new(r||LD)(t.Y36(or),t.Y36(Dp),t.Y36(fr),t.Y36(ur),t.Y36(Rn))},LD.\u0275cmp=t.Xpm({type:LD,selectors:[["app-direct-link"]],decls:20,vars:5,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Add new controller"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),t._UZ(9,"input",7),t.YNc(10,aAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,sAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,lAe,2,2,"mat-option",10),t.qZA()()()(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("click",function(){return e.createController()}),t._uU(19,"Add controller"),t.qZA()()()()),2&r&&(t.Q6J("hidden",!e.controllerOptionsVisibility),t.xp6(7),t.Q6J("formGroup",e.controllerForm),t.xp6(3),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(3),t.Q6J("ngForOf",e.locations),t.xp6(3),t.Q6J("ngForOf",e.protocols))},dependencies:[se.sg,se.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,dn,di,Kn,ri.gD,Gt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var hm=m(4834),zG=["*"],lie='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',uAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],dAe=["text"];function fAe(n,r){if(1&n&&t._UZ(0,"mat-pseudo-checkbox",5),2&n){var e=t.oxw();t.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var pAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],uie=(0,Gt.Id)((0,Gt.Kr)(function(){return(0,j.Z)(function n(){(0,F.Z)(this,n)})}())),mAe=(0,Gt.Kr)(function(){return(0,j.Z)(function n(){(0,F.Z)(this,n)})}()),cie=new t.OlP("MatList"),die=new t.OlP("MatNavList"),zs=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new On.xQ,i}return(0,j.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(uie);zs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zs)))(e||zs)}}(),zs.\u0275cmp=t.Xpm({type:zs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[t._Bn([{provide:die,useExisting:zs}]),t.qOj,t.TTD],ngContentSelectors:zG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0});var mm=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i){var o;return(0,F.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new On.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,j.Z)(e,[{key:"_getListType",value:function(){var o=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===o?"list":"mat-action-list"===o?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(uie);mm.\u0275fac=function(r){return new(r||mm)(t.Y36(t.SBq))},mm.\u0275cmp=t.Xpm({type:mm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:cie,useExisting:mm}]),t.qOj,t.TTD],ngContentSelectors:zG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[lie],encapsulation:2,changeDetection:0});var pk=(0,j.Z)(function n(){(0,F.Z)(this,n)});pk.\u0275fac=function(r){return new(r||pk)},pk.\u0275dir=t.lG2({type:pk,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var hk=(0,j.Z)(function n(){(0,F.Z)(this,n)});hk.\u0275fac=function(r){return new(r||hk)},hk.\u0275dir=t.lG2({type:hk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var UB=(0,j.Z)(function n(){(0,F.Z)(this,n)});UB.\u0275fac=function(r){return new(r||UB)},UB.\u0275dir=t.lG2({type:UB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Oa=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s){var l;(0,F.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new On.xQ,l._disabled=!1,l._isInteractiveList=!!(a||s&&"action-list"===s._getListType()),l._list=a||s;var u=l._getHostElement();return"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),l._list&&l._list._stateChanges.pipe((0,Pr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,j.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),e}(mAe);Oa.\u0275fac=function(r){return new(r||Oa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(die,8),t.Y36(cie,8))},Oa.\u0275cmp=t.Xpm({type:Oa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,pk,5),t.Suo(i,hk,5),t.Suo(i,Gt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(r,e){1&r&&(t.F$t(uAe),t.TgZ(0,"span",0),t._UZ(1,"span",1),t.Hsn(2),t.TgZ(3,"span",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},dependencies:[Gt.wG],encapsulation:2,changeDetection:0});var _Ae=(0,Gt.Kr)(function(){return(0,j.Z)(function n(){(0,F.Z)(this,n)})}()),gAe=(0,Gt.Kr)(function(){return(0,j.Z)(function n(){(0,F.Z)(this,n)})}()),vAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return mk}),multi:!0},yAe=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this.source=r,this.options=e}),ZD=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s.selectionList=a,s._selected=!1,s._disabled=!1,s._hasFocus=!1,s.selectedChange=new t.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,j.Z)(e,[{key:"color",get:function(){return this._color||this.selectionList.color},set:function(o){this._color=o}},{key:"value",get:function(){return this._value},set:function(o){this.selected&&!this.selectionList.compareWith(o,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=o}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(o){var a=(0,En.Ig)(o);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(o){var a=(0,En.Ig)(o);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}},{key:"ngOnInit",value:function(){var o=this,a=this.selectionList;a._value&&a._value.some(function(l){return a.compareWith(o._value,l)})&&this._setSelected(!0);var s=this._selected;Promise.resolve().then(function(){(o._selected||s)&&(o.selected=!0,o._changeDetector.markForCheck())}),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){(0,Gt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var o=this;this.selected&&Promise.resolve().then(function(){o.selected=!1});var a=this._hasFocus,s=this.selectionList._removeOptionFromList(this);a&&s&&s.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(o){return o!==this._selected&&(this._selected=o,o?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(o),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}}]),e}(gAe);ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return mk})))},ZD.\u0275cmp=t.Xpm({type:ZD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,pk,5),t.Suo(i,hk,5),t.Suo(i,Gt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(dAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._text=i.first))},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(t.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[t.qOj],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(r,e){1&r&&(t.F$t(pAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,fAe,1,2,"mat-pseudo-checkbox",2),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.Hsn(6,1),t.qZA()),2&r&&(t.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),t.xp6(1),t.Q6J("ngIf",e.selectionList.multiple))},dependencies:[Gt.wG,Gt.nP,se.O5],encapsulation:2,changeDetection:0});var mk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a){var s;return(0,F.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s._focusMonitor=a,s._multiple=!0,s._contentInitialized=!1,s.selectionChange=new t.vpe,s.color="accent",s.compareWith=function(l,u){return l===u},s._disabled=!1,s.selectedOptions=new Si.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new On.xQ,s._onTouched=function(){},s}return(0,j.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,En.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,En.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Si.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var o=this;this._contentInitialized=!0,this._keyManager=new Yr.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Pr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,Oo.O)(null),(0,Pr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Pr.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,An.Z)(a.added);try{for(s.s();!(l=s.n()).done;){l.value.selected=!0}}catch(C){s.e(C)}finally{s.f()}}if(a.removed){var h,d=(0,An.Z)(a.removed);try{for(d.s();!(h=d.n()).done;){h.value.selected=!1}}catch(C){d.e(C)}finally{d.f()}}}),this._focusMonitor.monitor(this._element).pipe((0,Pr.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u-1&&this._keyManager.activeItemIndex===a&&(a>0?this._keyManager.updateActiveItem(a-1):0===a&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(a+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(o){var a=o.keyCode,s=this._keyManager,l=s.activeItemIndex,u=(0,Tr.Vb)(o);switch(a){case Tr.L_:case Tr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Tr.A&&this.multiple&&(0,Tr.Vb)(o,"ctrlKey")&&!s.isTyping()){var d=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(d,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Tr.LH||a===Tr.JH)&&o.shiftKey&&s.activeItemIndex!==l&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var o=this._getSelectedOptionValues();this._onChange(o),this._value=o}}},{key:"_emitChangeEvent",value:function(o){this.selectionChange.emit(new yAe(this,o))}},{key:"writeValue",value:function(o){this._value=o,this.options&&this._setOptionsFromValues(o||[])}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"_setOptionsFromValues",value:function(o){var a=this;this.options.forEach(function(s){return s._setSelected(!1)}),o.forEach(function(s){var l=a.options.find(function(u){return!u.selected&&a.compareWith(u.value,s)});l&&l._setSelected(!0)})}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter(function(o){return o.selected}).map(function(o){return o.value})}},{key:"_toggleFocusedOption",value:function(){var o=this._keyManager.activeItemIndex;if(null!=o&&this._isValidIndex(o)){var a=this.options.toArray()[o];a&&!a.disabled&&(this._multiple||!a.selected)&&(a.toggle(),this._emitChangeEvent([a]))}}},{key:"_setAllOptionsSelected",value:function(o,a,s){var l=[];return this.options.forEach(function(u){(!a||!u.disabled)&&u._setSelected(o)&&l.push(u)}),l.length&&(this._reportValueChange(),s&&this._emitChangeEvent(l)),l}},{key:"_isValidIndex",value:function(o){return o>=0&&o collapsed, void => collapsed",(0,Zt.jt)(fie))]),bodyExpansion:(0,Zt.X$)("bodyExpansion",[(0,Zt.SB)("collapsed, void",(0,Zt.oB)({height:"0px",visibility:"hidden"})),(0,Zt.SB)("expanded",(0,Zt.oB)({height:"*",visibility:"visible"})),(0,Zt.eR)("expanded <=> collapsed, void => collapsed",(0,Zt.jt)(fie))])},hie=new t.OlP("MAT_EXPANSION_PANEL"),BD=(0,j.Z)(function n(r,e){(0,F.Z)(this,n),this._template=r,this._expansionPanel=e});BD.\u0275fac=function(r){return new(r||BD)(t.Y36(t.Rgc),t.Y36(hie,8))},BD.\u0275dir=t.lG2({type:BD,selectors:[["ng-template","matExpansionPanelContent",""]]});var DAe=0,mie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),xl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,F.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new t.vpe,h.afterCollapse=new t.vpe,h._inputChanges=new On.xQ,h._headerId="mat-expansion-panel-header-".concat(DAe++),h._bodyAnimationDone=new On.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,ts.x)(function(g,C){return g.fromState===C.fromState&&g.toState===C.toState})).subscribe(function(g){"void"!==g.fromState&&("expanded"===g.toState?h.afterExpand.emit():"collapsed"===g.toState&&h.afterCollapse.emit())}),d&&(h.hideToggle=d.hideToggle),h}return(0,j.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,En.Ig)(o)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(o){this._togglePosition=o}},{key:"_hasSpacing",value:function(){return!!this.accordion&&(this.expanded&&"default"===this.accordion.displayMode)}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var o=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,Oo.O)(null),(0,$r.h)(function(){return o.expanded&&!o._portal}),(0,Ri.q)(1)).subscribe(function(){o._portal=new ao.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var o=this._document.activeElement,a=this._body.nativeElement;return o===a||a.contains(o)}return!1}}]),e}(ND);xl.\u0275fac=function(r){return new(r||xl)(t.Y36(VG,12),t.Y36(t.sBO),t.Y36(Si.A8),t.Y36(t.s_b),t.Y36(se.K0),t.Y36(t.QbO,8),t.Y36(mie,8))},xl.\u0275cmp=t.Xpm({type:xl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,BD,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(wAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&t.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:VG,useValue:void 0},{provide:hie,useExisting:xl}]),t.qOj,t.TTD],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(TAe),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,kAe,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),t.uIk("aria-labelledby",e._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",e._portal))},dependencies:[ao.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[pie.bodyExpansion]},changeDetection:0});var jB=(0,j.Z)(function n(){(0,F.Z)(this,n)});jB.\u0275fac=function(r){return new(r||jB)},jB.\u0275dir=t.lG2({type:jB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var AAe=(0,j.Z)(function n(){(0,F.Z)(this,n)}),au=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,F.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=xa.w.EMPTY;var g=i.accordion?i.accordion._stateChanges.pipe((0,$r.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):R0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,Gi.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,$r.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,$r.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,j.Z)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var o=this._isExpanded();return o&&this.expandedHeight?this.expandedHeight:!o&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(o){switch(o.keyCode){case Tr.L_:case Tr.K5:(0,Tr.Vb)(o)||(o.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(o))}}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._element,o,a):this._element.nativeElement.focus(a)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._element).subscribe(function(a){a&&o.panel.accordion&&o.panel.accordion._handleHeaderFocus(o)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}((0,Gt.sb)(AAe));au.\u0275fac=function(r){return new(r||au)(t.Y36(xl,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(mie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},au.\u0275cmp=t.Xpm({type:au,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),t.Udp("height",e._getHeaderHeight()),t.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(t.F$t(EAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,SAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[se.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[pie.indicatorRotate]},changeDetection:0});var FD=(0,j.Z)(function n(){(0,F.Z)(this,n)});FD.\u0275fac=function(r){return new(r||FD)},FD.\u0275dir=t.lG2({type:FD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Uu=(0,j.Z)(function n(){(0,F.Z)(this,n)});Uu.\u0275fac=function(r){return new(r||Uu)},Uu.\u0275dir=t.lG2({type:Uu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var Dl=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new t.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,j.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,En.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,Oo.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(o){this._keyManager.onKeydown(o)}},{key:"_handleHeaderFocus",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"ngOnDestroy",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(gk);Dl.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Dl)))(e||Dl)}}(),Dl.\u0275dir=t.lG2({type:Dl,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,au,5),2&r)&&(t.iGM(o=t.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:VG,useExisting:Dl}]),t.qOj]});var vk=(0,j.Z)(function n(){(0,F.Z)(this,n)});vk.\u0275fac=function(r){return new(r||vk)},vk.\u0275mod=t.oAB({type:vk}),vk.\u0275inj=t.cJS({imports:[se.ez,Gt.BQ,X0,ao.eL]});var UD=function(){function n(r){(0,F.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(i){e.thirdpartylicenses=i.replace(new RegExp("\n","g"),"
")},function(i){404===i.status&&(e.thirdpartylicenses="Download Solar-PuTTY")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(i){e.releasenotes=i.replace(new RegExp("\n","g"),"
")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();UD.\u0275fac=function(r){return new(r||UD)(t.Y36(fc.eN))},UD.\u0275cmp=t.Xpm({type:UD,selectors:[["app-help"]],decls:39,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],["href","https://downloads.solarwinds.com/solarwinds/GNS3/Solar-PuTTY/Solar-PuTTY-Optional.exe"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Help"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Useful shortcuts "),t.qZA()(),t.TgZ(11,"mat-list")(12,"mat-list-item"),t._uU(13," ctrl + + to zoom in "),t.qZA(),t.TgZ(14,"mat-list-item"),t._uU(15," ctrl + - to zoom out "),t.qZA(),t.TgZ(16,"mat-list-item"),t._uU(17," ctrl + 0 to reset zoom "),t.qZA(),t.TgZ(18,"mat-list-item"),t._uU(19," ctrl + h to hide toolbar "),t.qZA(),t.TgZ(20,"mat-list-item"),t._uU(21," ctrl + a to select all items on map "),t.qZA(),t.TgZ(22,"mat-list-item"),t._uU(23," ctrl + shift + a to deselect all items on map "),t.qZA(),t.TgZ(24,"mat-list-item"),t._uU(25," ctrl + shift + s to go to preferences "),t.qZA()()(),t.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),t._uU(29," Third party components "),t.qZA()(),t.TgZ(30,"a",4),t._UZ(31,"div",5),t.qZA()(),t.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),t._uU(35," Release notes "),t.qZA()(),t._UZ(36,"div",5),t.qZA()()(),t.TgZ(37,"button",6),t.NdJ("click",function(){return e.goToDocumentation()}),t._uU(38,"Go to documentation"),t.qZA()()()),2&r&&(t.xp6(31),t.Q6J("innerHTML",e.thirdpartylicenses,t.oJD),t.xp6(5),t.Q6J("innerHTML",e.releasenotes,t.oJD))},dependencies:[dn,mm,Oa,Dl,xl,au,Uu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}a[_ngcontent-%COMP%]{color:#f8f9fa;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400;text-decoration:none}"]});var Ha=m(4766),$0=function(){function n(r){(0,F.Z)(this,n),this.electronService=r}return(0,j.Z)(n,[{key:"isWindows",value:function(){return"win32"===this.electronService.process.platform}},{key:"isLinux",value:function(){return"linux"===this.electronService.process.platform}},{key:"isDarwin",value:function(){return"darwin"===this.electronService.process.platform}}]),n}();$0.\u0275fac=function(r){return new(r||$0)(t.LFG(ul))},$0.\u0275prov=t.Yz7({token:$0,factory:$0.\u0275fac});var eb=function(){function n(r){(0,F.Z)(this,n),this.platformService=r}return(0,j.Z)(n,[{key:"get",value:function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}},{key:"getForWindows",value:function(){var e=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}],i={name:"SolarPuTTY",locations:["SolarPuTTY.exe","external\\SolarPuTTY.exe"],type:"web",resource:"",binary:"SolarPuTTY.exe",sudo:!1,installation_arguments:["--only-ask"],installed:!1,installer:!1};return Ha.N.solarputty_download_url&&(i.resource=Ha.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();eb.\u0275fac=function(r){return new(r||eb)(t.LFG($0))},eb.\u0275prov=t.Yz7({token:eb,factory:eb.\u0275fac});var tb=function(){function n(r,e){(0,F.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,j.Z)(n,[{key:"list",value:function(){var e=this.externalSoftwareDefinition.get(),i=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(e);return e.map(function(o){return o.installed=i[o.name].length>0,o})}}]),n}();tb.\u0275fac=function(r){return new(r||tb)(t.LFG(ul),t.LFG(eb))},tb.\u0275prov=t.Yz7({token:tb,factory:tb.\u0275fac});var PAe=[[["caption"]],[["colgroup"],["col"]]];function RAe(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function LAe(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}var jD=(0,j.Z)(function n(){(0,F.Z)(this,n)});jD.\u0275fac=function(r){return new(r||jD)},jD.\u0275dir=t.lG2({type:jD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Si.k,useClass:Si.eX}])]});var bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,j.Z)(e)}(zc);bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bo)))(e||bo)}}(),bo.\u0275cmp=t.Xpm({type:bo,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Si.k,useClass:Si.yy},{provide:zc,useExisting:bo},{provide:X_,useExisting:bo},{provide:x1,useClass:Vf},{provide:CE,useValue:null}]),t.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(PAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Yf,Kf,qf,Jf],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var Co=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Uc);Co.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Co)))(e||Co)}}(),Co.\u0275dir=t.lG2({type:Co,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Uc,useExisting:Co}]),t.qOj]});var wo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(wl);wo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wo)))(e||wo)}}(),wo.\u0275dir=t.lG2({type:wo,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:wl,useExisting:wo}]),t.qOj]});var nb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Zd);nb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nb)))(e||nb)}}(),nb.\u0275dir=t.lG2({type:nb,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Zd,useExisting:nb}]),t.qOj]});var mo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ut.Z)((0,Wt.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(rl);mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(mo)))(e||mo)}}(),mo.\u0275dir=t.lG2({type:mo,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:rl,useExisting:mo},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:mo}]),t.qOj]});var Ro=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Wf);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var yk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}($_);yk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(yk)))(e||yk)}}(),yk.\u0275dir=t.lG2({type:yk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Lo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(eg);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Zo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(dc);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275dir=t.lG2({type:Zo,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:dc,useExisting:Zo}]),t.qOj]});var rb=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Hc);rb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rb)))(e||rb)}}(),rb.\u0275dir=t.lG2({type:rb,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Hc,useExisting:rb}]),t.qOj]});var No=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Jl);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275dir=t.lG2({type:No,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Jl,useExisting:No}]),t.qOj]});var Bo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Gh);Bo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Bo)))(e||Bo)}}(),Bo.\u0275cmp=t.Xpm({type:Bo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Gh,useExisting:Bo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var ib=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(zh);ib.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ib)))(e||ib)}}(),ib.\u0275cmp=t.Xpm({type:ib,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:zh,useExisting:ib}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var Fo=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Gc);Fo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Fo)))(e||Fo)}}(),Fo.\u0275cmp=t.Xpm({type:Fo,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Gc,useExisting:Fo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kl],encapsulation:2});var ob=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i;return(0,F.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,j.Z)(e)}(Pu);ob.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ob)))(e||ob)}}(),ob.\u0275dir=t.lG2({type:ob,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:Pu,useExisting:ob}]),t.qOj]});var bk=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(Wh);bk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bk)))(e||bk)}}(),bk.\u0275cmp=t.Xpm({type:bk,selectors:[["mat-text-column"]],features:[t.qOj],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,RAe,2,3,"th",1),t.YNc(2,LAe,2,3,"td",2),t.BQk())},dependencies:[wo,mo,Co,Ro,Lo],encapsulation:2});var Ck=(0,j.Z)(function n(){(0,F.Z)(this,n)});Ck.\u0275fac=function(r){return new(r||Ck)},Ck.\u0275mod=t.oAB({type:Ck}),Ck.\u0275inj=t.cJS({imports:[Qf,Gt.BQ,Gt.BQ]});var ZAe=9007199254740991,NAe=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,F.Z)(this,e),(i=r.call(this))._renderData=new Wi.X([]),i._filter=new Wi.X(""),i._internalPageChanges=new On.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,En.t6)(l)){var u=Number(l);return uC?q=1:g0)){var l=Math.ceil(s.length/s.pageSize)-1||0,u=Math.min(s.pageIndex,l);u!==s.pageIndex&&(s.pageIndex=u,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),e}(Si.o2),Ap=function(n){(0,qe.Z)(e,n);var r=(0,Be.Z)(e);function e(){return(0,F.Z)(this,e),r.apply(this,arguments)}return(0,j.Z)(e)}(NAe);function BAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.buttonText)}}var HD=function(){function n(r){(0,F.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,j.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.on(this.responseChannel,function(i,o){e.updateButton(),e.installedChanged.emit(o)})}},{key:"ngOnDestroy",value:function(){this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)}},{key:"ngOnChanges",value:function(){this.updateButton()}},{key:"install",value:function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)}},{key:"responseChannel",get:function(){return"installed-software-installed-".concat(this.software.name)}},{key:"updateButton",value:function(){this.disabled=this.software.installed,this.software.installed?this.buttonText="Installed":this.buttonText="Install"}}]),n}();HD.\u0275fac=function(r){return new(r||HD)(t.Y36(ul))},HD.\u0275cmp=t.Xpm({type:HD,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[t.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.install()}),t.YNc(1,BAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[se.O5,dn]});var wc=m(4068),FAe=function(r,e){return{hidden:r,lightTheme:e}},UAe=/(.*)<\/a>(.*)\s*