mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-03-17 17:45:24 +00:00
1 line
4.1 MiB
1 line
4.1 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(Ae,K,m){"use strict";m.d(K,{o:function(){return R}});var G=m(5671),W=m(3144),A=m(591),H=m(8929),R=function(){function P(){(0,G.Z)(this,P),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new H.xQ}return(0,W.Z)(P,[{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 j=this;D.forEach(function(v){var k=j.findIndex(v);if(k>=0){var b=Object.assign(j.data[k],v);j.data[k]=b}else j.data.push(v)}),this.data.filter(function(v){return 0===D.filter(function(k){return j.getItemKey(k)===j.getItemKey(v)}).length}).forEach(function(v){return j.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(D){var j=this,L=this.data.findIndex(function(v){return j.getItemKey(v)===D});if(L>=0)return this.data[L]}},{key:"update",value:function(D){var j=this.findIndex(D);if(j>=0){var L=Object.assign(this.data[j],D);this.data[j]=L,this.dataChange.next(this.data),this.itemUpdated.next(L)}}},{key:"remove",value:function(D){var j=this.findIndex(D);j>=0&&(this.data.splice(j,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 j=this;return this.data.findIndex(function(L){return j.getItemKey(L)===j.getItemKey(D)})}}]),P}()},6215:function(Ae,K,m){"use strict";m.d(K,{F:function(){return x}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),R=m(5735),P=m(5e3),x=function(D){(0,A.Z)(L,D);var j=(0,H.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.link_id}}]),L}(R.o);x.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(x)))(L||x)}}(),x.\u0275prov=P.Yz7({token:x,factory:x.\u0275fac})},5366:function(Ae,K,m){"use strict";m.d(K,{G:function(){return x}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),R=m(5735),P=m(5e3),x=function(D){(0,A.Z)(L,D);var j=(0,H.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.node_id}}]),L}(R.o);x.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(x)))(L||x)}}(),x.\u0275prov=P.Yz7({token:x,factory:x.\u0275fac})},5542:function(Ae,K,m){"use strict";m.d(K,{X:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),H=m(2437),R=function(){function P(x){(0,G.Z)(this,P),this.httpController=x}return(0,W.Z)(P,[{key:"getComputes",value:function(D){return this.httpController.get(D,"/computes")}},{key:"getStatistics",value:function(D){return this.httpController.get(D,"/statistics")}}]),P}();R.\u0275fac=function(x){return new(x||R)(A.LFG(H.zw))},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac})},2437:function(Ae,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),H=m(9388),R=m(5724),P=m(5e3),x=m(4766),D=m(1737),j=m(7221),L=m(520),v=function(O){(0,A.Z)(y,O);var S=(0,H.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,E){var N=new y(M);return N.originalError=E,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=P.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 P.vpe}return(0,W.Z)(O,[{key:"get",value:function(y,T,M){M=this.getJsonOptions(M);var E=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(E.url)),this.http.get(E.url,E.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getText",value:function(y,T,M){M=this.getTextOptions(M);var E=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(E.url)),this.http.get(E.url,E.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(y,T,M){M=this.getBlobOptions(M);var E=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(E.url)),this.http.get(E.url,E.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"post",value:function(y,T,M,E){E=this.getJsonOptions(E);var N=this.getOptionsForController(y,T,E);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"put",value:function(y,T,M,E){E=this.getJsonOptions(E);var N=this.getOptionsForController(y,T,E);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"delete",value:function(y,T,M){M=this.getJsonOptions(M);var E=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("DELETE ".concat(E.url)),this.http.delete(E.url,E.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"patch",value:function(y,T,M,E){E=this.getJsonOptions(E);var N=this.getOptionsForController(y,T,E);return this.http.patch(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"head",value:function(y,T,M){M=this.getJsonOptions(M);var E=this.getOptionsForController(y,T,M);return this.http.head(E.url,E.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"options",value:function(y,T,M){M=this.getJsonOptions(M);var E=this.getOptionsForController(y,T,M);return this.http.options(E.url,E.options).pipe((0,j.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(x.N.current_version).concat(T)):T="/".concat(x.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)(P.LFG(L.eN),P.LFG(k))},b.\u0275prov=P.Yz7({token:b,factory:b.\u0275fac})},9971:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(5671),W=m(3144),A=m(4766),H=m(8929),R=m(5e3),P=m(2437),x=m(9449),D=m(9740),j=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 H.xQ,this.projectLockIconSubject=new H.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}();j.\u0275fac=function(v){return new(v||j)(R.LFG(P.zw),R.LFG(x.g),R.LFG(D.p))},j.\u0275prov=R.Yz7({token:j,factory:j.\u0275fac})},9740:function(Ae,K,m){"use strict";m.d(K,{p:function(){return H}});var G=m(5671),W=m(3144),A=m(5e3),H=function(){function R(){(0,G.Z)(this,R)}return(0,W.Z)(R,[{key:"setcontrollerId",value:function(x){this.controllerId=x}},{key:"setProjectId",value:function(x){this.projectId=x}},{key:"setcontrollerIdProjectList",value:function(x){this.controllerIdProjectList=x}},{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}();H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac})},9449:function(Ae,K,m){"use strict";m.d(K,{g:function(){return H}});var G=m(5671),W=m(3144),A=m(5e3),H=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(x){this.settings.crash_reports=x,this.removeItem(this.reportsSettings),x?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(x){this.settings.anonymous_statistics=x,this.removeItem(this.statisticsSettings),x?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(x){this.settings.console_command=x,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,x)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(x){localStorage.removeItem(x)}},{key:"setItem",value:function(x,D){localStorage.setItem(x,D)}},{key:"getItem",value:function(x){return localStorage.getItem(x)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(x){this.settings=x,this.setConsoleSettings(x.console_command),this.setReportsSettings(x.crash_reports),this.setStatisticsSettings(x.anonymous_statistics)}}]),R}();H.\u0275fac=function(P){return new(P||H)},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})},4068:function(Ae,K,m){"use strict";m.d(K,{f:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),H=m(591),R=function(){function P(){(0,G.Z)(this,P),this._darkMode$=new H.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)(P,[{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"))}}]),P}();R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})},4766:function(Ae,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"}},1611:function(Ae,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return ASe},arc:function(){return y1e},area:function(){return wee},areaRadial:function(){return See},ascending:function(){return qy},axisBottom:function(){return bce},axisLeft:function(){return Cce},axisRight:function(){return yce},axisTop:function(){return vce},bisect:function(){return K1},bisectLeft:function(){return Kue},bisectRight:function(){return JY},bisector:function(){return L7},brush:function(){return Pfe},brushSelection:function(){return Afe},brushX:function(){return Ofe},brushY:function(){return Ife},chord:function(){return Lfe},clientPoint:function(){return vN},cluster:function(){return uge},color:function(){return $L},contourDensity:function(){return bhe},contours:function(){return Lq},create:function(){return zCe},creator:function(){return _N},cross:function(){return Jue},csvFormat:function(){return Dhe},csvFormatRows:function(){return Ahe},csvParse:function(){return xhe},csvParseRows:function(){return Ehe},cubehelix:function(){return Pq},curveBasis:function(){return B1e},curveBasisClosed:function(){return F1e},curveBasisOpen:function(){return U1e},curveBundle:function(){return H1e},curveCardinal:function(){return j1e},curveCardinalClosed:function(){return G1e},curveCardinalOpen:function(){return z1e},curveCatmullRom:function(){return W1e},curveCatmullRomClosed:function(){return V1e},curveCatmullRomOpen:function(){return Y1e},curveLinear:function(){return CN},curveLinearClosed:function(){return K1e},curveMonotoneX:function(){return q1e},curveMonotoneY:function(){return J1e},curveNatural:function(){return Q1e},curveStep:function(){return X1e},curveStepAfter:function(){return ewe},curveStepBefore:function(){return $1e},customEvent:function(){return FCe},descending:function(){return Que},deviation:function(){return $Y},dispatch:function(){return Qy},drag:function(){return pg},dragDisable:function(){return OL},dragEnable:function(){return IL},dsvFormat:function(){return P9},easeBack:function(){return Wq},easeBackIn:function(){return nme},easeBackInOut:function(){return Wq},easeBackOut:function(){return rme},easeBounce:function(){return mE},easeBounceIn:function(){return eme},easeBounceInOut:function(){return tme},easeBounceOut:function(){return mE},easeCircle:function(){return zq},easeCircleIn:function(){return zhe},easeCircleInOut:function(){return zq},easeCircleOut:function(){return Whe},easeCubic:function(){return VL},easeCubicIn:function(){return yfe},easeCubicInOut:function(){return VL},easeCubicOut:function(){return bfe},easeElastic:function(){return Vq},easeElasticIn:function(){return ime},easeElasticInOut:function(){return ome},easeElasticOut:function(){return Vq},easeExp:function(){return Gq},easeExpIn:function(){return jhe},easeExpInOut:function(){return Gq},easeExpOut:function(){return Ghe},easeLinear:function(){return Lhe},easePoly:function(){return Fq},easePolyIn:function(){return Bhe},easePolyInOut:function(){return Fq},easePolyOut:function(){return Fhe},easeQuad:function(){return Bq},easeQuadIn:function(){return Zhe},easeQuadInOut:function(){return Bq},easeQuadOut:function(){return Nhe},easeSin:function(){return jq},easeSinIn:function(){return Uhe},easeSinInOut:function(){return jq},easeSinOut:function(){return Hhe},entries:function(){return Jfe},event:function(){return om},extent:function(){return Z7},forceCenter:function(){return ame},forceCollide:function(){return Mme},forceLink:function(){return xme},forceManyBody:function(){return Pme},forceRadial:function(){return Rme},forceSimulation:function(){return Ime},forceX:function(){return Lme},forceY:function(){return Zme},format:function(){return nJ},formatDefaultLocale:function(){return iJ},formatLocale:function(){return tJ},formatPrefix:function(){return rJ},formatSpecifier:function(){return lZ},geoAlbers:function(){return gQ},geoAlbersUsa:function(){return G_e},geoArea:function(){return Kme},geoAzimuthalEqualArea:function(){return z_e},geoAzimuthalEqualAreaRaw:function(){return TH},geoAzimuthalEquidistant:function(){return W_e},geoAzimuthalEquidistantRaw:function(){return MH},geoBounds:function(){return Xme},geoCentroid:function(){return i_e},geoCircle:function(){return o_e},geoClipAntimeridian:function(){return rH},geoClipCircle:function(){return FJ},geoClipExtent:function(){return p_e},geoClipRectangle:function(){return IZ},geoConicConformal:function(){return Y_e},geoConicConformalRaw:function(){return bQ},geoConicEqualArea:function(){return GZ},geoConicEqualAreaRaw:function(){return _Q},geoConicEquidistant:function(){return q_e},geoConicEquidistantRaw:function(){return CQ},geoContains:function(){return y_e},geoDistance:function(){return CE},geoEquirectangular:function(){return K_e},geoEquirectangularRaw:function(){return AE},geoGnomonic:function(){return J_e},geoGnomonicRaw:function(){return SH},geoGraticule:function(){return qJ},geoGraticule10:function(){return b_e},geoIdentity:function(){return Q_e},geoInterpolate:function(){return C_e},geoLength:function(){return UJ},geoMercator:function(){return V_e},geoMercatorRaw:function(){return DE},geoNaturalEarth1:function(){return X_e},geoNaturalEarth1Raw:function(){return xH},geoOrthographic:function(){return $_e},geoOrthographicRaw:function(){return EH},geoPath:function(){return P_e},geoProjection:function(){return nm},geoProjectionMutator:function(){return wH},geoRotation:function(){return OJ},geoStereographic:function(){return ege},geoStereographicRaw:function(){return DH},geoStream:function(){return Qd},geoTransform:function(){return R_e},geoTransverseMercator:function(){return tge},geoTransverseMercatorRaw:function(){return AH},hcl:function(){return Eq},hierarchy:function(){return OH},histogram:function(){return tce},hsl:function(){return yq},interpolate:function(){return zH},interpolateArray:function(){return QQ},interpolateBasis:function(){return YQ},interpolateBasisClosed:function(){return KQ},interpolateBlues:function(){return abe},interpolateBrBG:function(){return F0e},interpolateBuGn:function(){return K0e},interpolateBuPu:function(){return q0e},interpolateCool:function(){return gbe},interpolateCubehelix:function(){return Sve},interpolateCubehelixDefault:function(){return mbe},interpolateCubehelixLong:function(){return xve},interpolateDate:function(){return XQ},interpolateGnBu:function(){return J0e},interpolateGreens:function(){return sbe},interpolateGreys:function(){return lbe},interpolateHcl:function(){return kve},interpolateHclLong:function(){return Tve},interpolateHsl:function(){return yve},interpolateHslLong:function(){return bve},interpolateInferno:function(){return Cbe},interpolateLab:function(){return wve},interpolateMagma:function(){return bbe},interpolateNumber:function(){return gf},interpolateObject:function(){return $Q},interpolateOrRd:function(){return Q0e},interpolateOranges:function(){return dbe},interpolatePRGn:function(){return U0e},interpolatePiYG:function(){return H0e},interpolatePlasma:function(){return wbe},interpolatePuBu:function(){return $0e},interpolatePuBuGn:function(){return X0e},interpolatePuOr:function(){return j0e},interpolatePuRd:function(){return ebe},interpolatePurples:function(){return ube},interpolateRainbow:function(){return vbe},interpolateRdBu:function(){return G0e},interpolateRdGy:function(){return z0e},interpolateRdPu:function(){return tbe},interpolateRdYlBu:function(){return W0e},interpolateRdYlGn:function(){return V0e},interpolateReds:function(){return cbe},interpolateRgb:function(){return HH},interpolateRgbBasis:function(){return ave},interpolateRgbBasisClosed:function(){return sve},interpolateRound:function(){return cve},interpolateSpectral:function(){return Y0e},interpolateString:function(){return eX},interpolateTransformCss:function(){return fve},interpolateTransformSvg:function(){return hve},interpolateViridis:function(){return ybe},interpolateWarm:function(){return _be},interpolateYlGn:function(){return rbe},interpolateYlGnBu:function(){return nbe},interpolateYlOrBr:function(){return ibe},interpolateYlOrRd:function(){return obe},interpolateZoom:function(){return vve},interrupt:function(){return ine},interval:function(){return Wke},isoFormat:function(){return Hke},isoParse:function(){return zke},keys:function(){return Kfe},lab:function(){return xq},line:function(){return wN},lineRadial:function(){return Mee},linkHorizontal:function(){return E1e},linkRadial:function(){return A1e},linkVertical:function(){return D1e},local:function(){return vee},map:function(){return cg},matcher:function(){return oee},max:function(){return tK},mean:function(){return ice},median:function(){return oce},merge:function(){return j7},min:function(){return nK},mouse:function(){return VCe},namespace:function(){return Mj},namespaces:function(){return Tj},nest:function(){return zfe},now:function(){return ug},pack:function(){return Rge},packEnclose:function(){return kQ},packSiblings:function(){return Oge},pairs:function(){return que},partition:function(){return Lge},path:function(){return Jd},permute:function(){return ace},pie:function(){return w1e},pointRadial:function(){return XE},polygonArea:function(){return Dve},polygonCentroid:function(){return Ave},polygonContains:function(){return Rve},polygonHull:function(){return Pve},polygonLength:function(){return Lve},precisionFixed:function(){return jme},precisionPrefix:function(){return Gme},precisionRound:function(){return zme},quadtree:function(){return aZ},quantile:function(){return $x},quantize:function(){return Eve},radialArea:function(){return See},radialLine:function(){return Mee},randomBates:function(){return Bve},randomExponential:function(){return Fve},randomIrwinHall:function(){return SX},randomLogNormal:function(){return Nve},randomNormal:function(){return MX},randomUniform:function(){return Zve},range:function(){return hc},rgb:function(){return gq},ribbon:function(){return Gfe},scaleBand:function(){return aj},scaleIdentity:function(){return FX},scaleImplicit:function(){return ij},scaleLinear:function(){return BX},scaleLog:function(){return zX},scaleOrdinal:function(){return oj},scalePoint:function(){return Uve},scalePow:function(){return dj},scaleQuantile:function(){return WX},scaleQuantize:function(){return VX},scaleSequential:function(){return T$},scaleSqrt:function(){return sye},scaleThreshold:function(){return YX},scaleTime:function(){return M0e},scaleUtc:function(){return D0e},scan:function(){return sce},schemeAccent:function(){return O0e},schemeBlues:function(){return V$},schemeBrBG:function(){return M$},schemeBuGn:function(){return R$},schemeBuPu:function(){return L$},schemeCategory10:function(){return A0e},schemeDark2:function(){return I0e},schemeGnBu:function(){return Z$},schemeGreens:function(){return Y$},schemeGreys:function(){return K$},schemeOrRd:function(){return N$},schemeOranges:function(){return Q$},schemePRGn:function(){return S$},schemePaired:function(){return P0e},schemePastel1:function(){return R0e},schemePastel2:function(){return L0e},schemePiYG:function(){return x$},schemePuBu:function(){return F$},schemePuBuGn:function(){return B$},schemePuOr:function(){return E$},schemePuRd:function(){return U$},schemePurples:function(){return q$},schemeRdBu:function(){return D$},schemeRdGy:function(){return A$},schemeRdPu:function(){return H$},schemeRdYlBu:function(){return O$},schemeRdYlGn:function(){return I$},schemeReds:function(){return J$},schemeSet1:function(){return Z0e},schemeSet2:function(){return N0e},schemeSet3:function(){return B0e},schemeSpectral:function(){return P$},schemeYlGn:function(){return G$},schemeYlGnBu:function(){return j$},schemeYlOrBr:function(){return z$},schemeYlOrRd:function(){return W$},select:function(){return gee},selectAll:function(){return YCe},selection:function(){return GCe},selector:function(){return Sj},selectorAll:function(){return ree},set:function(){return Yfe},shuffle:function(){return lce},stack:function(){return nwe},stackOffsetDiverging:function(){return iwe},stackOffsetExpand:function(){return rwe},stackOffsetNone:function(){return Aw},stackOffsetSilhouette:function(){return owe},stackOffsetWiggle:function(){return awe},stackOrderAscending:function(){return qee},stackOrderDescending:function(){return swe},stackOrderInsideOut:function(){return lwe},stackOrderNone:function(){return Ow},stackOrderReverse:function(){return uwe},stratify:function(){return Fge},style:function(){return lee},sum:function(){return uce},symbol:function(){return N1e},symbolCircle:function(){return Bj},symbolCross:function(){return xee},symbolDiamond:function(){return Dee},symbolSquare:function(){return Iee},symbolStar:function(){return Oee},symbolTriangle:function(){return Pee},symbolWye:function(){return Ree},symbols:function(){return Z1e},thresholdFreedmanDiaconis:function(){return nce},thresholdScott:function(){return rce},thresholdSturges:function(){return H7},tickIncrement:function(){return Xx},tickStep:function(){return Jy},ticks:function(){return U7},timeDay:function(){return hwe},timeDays:function(){return mwe},timeFormat:function(){return Nte},timeFormatDefaultLocale:function(){return Fte},timeFormatLocale:function(){return Ste},timeFriday:function(){return dte},timeFridays:function(){return bwe},timeHour:function(){return pwe},timeHours:function(){return fwe},timeInterval:function(){return ws},timeMillisecond:function(){return Qee},timeMilliseconds:function(){return Xee},timeMinute:function(){return cwe},timeMinutes:function(){return dwe},timeMonday:function(){return ste},timeMondays:function(){return _we},timeMonth:function(){return wwe},timeMonths:function(){return kwe},timeParse:function(){return Bte},timeSaturday:function(){return pte},timeSaturdays:function(){return Cwe},timeSecond:function(){return nte},timeSeconds:function(){return rte},timeSunday:function(){return Kj},timeSundays:function(){return fte},timeThursday:function(){return cte},timeThursdays:function(){return ywe},timeTuesday:function(){return lte},timeTuesdays:function(){return gwe},timeWednesday:function(){return ute},timeWednesdays:function(){return vwe},timeWeek:function(){return Kj},timeWeeks:function(){return fte},timeYear:function(){return Twe},timeYears:function(){return Mwe},timeout:function(){return lE},timer:function(){return sE},timerFlush:function(){return HK},touch:function(){return KCe},touches:function(){return qCe},transition:function(){return Mne},transpose:function(){return rK},tree:function(){return Wge},treemap:function(){return Vge},treemapBinary:function(){return Yge},treemapDice:function(){return IE},treemapResquarify:function(){return qge},treemapSlice:function(){return JZ},treemapSliceDice:function(){return Kge},treemapSquarify:function(){return NQ},tsvFormat:function(){return Phe},tsvFormatRows:function(){return Rhe},tsvParse:function(){return Ohe},tsvParseRows:function(){return Ihe},utcDay:function(){return Awe},utcDays:function(){return Owe},utcFormat:function(){return Xj},utcFriday:function(){return wte},utcFridays:function(){return Zwe},utcHour:function(){return Ewe},utcHours:function(){return Dwe},utcMillisecond:function(){return Qee},utcMilliseconds:function(){return Xee},utcMinute:function(){return Swe},utcMinutes:function(){return xwe},utcMonday:function(){return vte},utcMondays:function(){return Iwe},utcMonth:function(){return Bwe},utcMonths:function(){return Fwe},utcParse:function(){return $j},utcSaturday:function(){return kte},utcSaturdays:function(){return Nwe},utcSecond:function(){return nte},utcSeconds:function(){return rte},utcSunday:function(){return Jj},utcSundays:function(){return Tte},utcThursday:function(){return Cte},utcThursdays:function(){return Lwe},utcTuesday:function(){return yte},utcTuesdays:function(){return Pwe},utcWednesday:function(){return bte},utcWednesdays:function(){return Rwe},utcWeek:function(){return Jj},utcWeeks:function(){return Tte},utcYear:function(){return Uwe},utcYears:function(){return Hwe},values:function(){return qfe},variance:function(){return XY},voronoi:function(){return qSe},window:function(){return xj},zip:function(){return dce},zoom:function(){return Fne},zoomIdentity:function(){return zN},zoomTransform:function(){return Nne}});var W={};m.r(W),m.d(W,{safe:function(){return coe},spec:function(){return ZLe}});var A={};m.r(A),m.d(A,{angle:function(){return CZe},decibel:function(){return SZe},flex:function(){return MZe},frequency:function(){return kZe},length:function(){return bZe},resolution:function(){return TZe},semitones:function(){return xZe},time:function(){return wZe}});var H={};m.r(H),m.d(H,{getTrace:function(){return qoe},isKeyword:function(){return pNe},isProperty:function(){return dNe},isType:function(){return cNe}});var R={};m.r(R),m.d(R,{generate:function(){return TNe},name:function(){return wNe},parse:function(){return rae},structure:function(){return kNe}});var P={};m.r(P),m.d(P,{generate:function(){return DNe},name:function(){return SNe},parse:function(){return oae},structure:function(){return ENe},walkContext:function(){return xNe}});var x={};m.r(x),m.d(x,{generate:function(){return PNe},name:function(){return ANe},parse:function(){return aae},structure:function(){return INe},walkContext:function(){return ONe}});var D={};m.r(D),m.d(D,{generate:function(){return HNe},name:function(){return FNe},parse:function(){return lae},structure:function(){return UNe}});var j={};m.r(j),m.d(j,{generate:function(){return YNe},name:function(){return zNe},parse:function(){return pae},structure:function(){return VNe},walkContext:function(){return WNe}});var L={};m.r(L),m.d(L,{generate:function(){return JNe},name:function(){return KNe},parse:function(){return fae},structure:function(){return qNe}});var v={};m.r(v),m.d(v,{generate:function(){return $Ne},name:function(){return QNe},parse:function(){return hae},structure:function(){return XNe}});var k={};m.r(k),m.d(k,{generate:function(){return nBe},name:function(){return eBe},parse:function(){return mae},structure:function(){return tBe}});var b={};m.r(b),m.d(b,{generate:function(){return aBe},name:function(){return iBe},parse:function(){return _ae},structure:function(){return oBe}});var O={};m.r(O),m.d(O,{generate:function(){return pBe},name:function(){return cBe},parse:function(){return vae},structure:function(){return dBe}});var S={};m.r(S),m.d(S,{generate:function(){return gBe},name:function(){return mBe},parse:function(){return yae},structure:function(){return _Be}});var y={};m.r(y),m.d(y,{generate:function(){return DBe},name:function(){return SBe},parse:function(){return wae},structure:function(){return EBe},walkContext:function(){return xBe}});var T={};m.r(T),m.d(T,{generate:function(){return LBe},name:function(){return PBe},parse:function(){return kae},structure:function(){return RBe}});var M={};m.r(M),m.d(M,{generate:function(){return BBe},name:function(){return ZBe},parse:function(){return Tae},structure:function(){return NBe}});var E={};m.r(E),m.d(E,{generate:function(){return jBe},name:function(){return FBe},parse:function(){return Mae},structure:function(){return HBe},walkContext:function(){return UBe}});var N={};m.r(N),m.d(N,{generate:function(){return VBe},name:function(){return zBe},parse:function(){return Sae},structure:function(){return WBe},xxx:function(){return GBe}});var F={};m.r(F),m.d(F,{generate:function(){return qBe},name:function(){return YBe},parse:function(){return xae},structure:function(){return KBe}});var X={};m.r(X),m.d(X,{generate:function(){return XBe},name:function(){return JBe},parse:function(){return Eae},structure:function(){return QBe}});var $={};m.r($),m.d($,{generate:function(){return t5e},name:function(){return $Be},parse:function(){return Dae},structure:function(){return e5e}});var Y={};m.r(Y),m.d(Y,{generate:function(){return i5e},name:function(){return n5e},parse:function(){return Aae},structure:function(){return r5e}});var Q={};m.r(Q),m.d(Q,{generate:function(){return s5e},name:function(){return o5e},parse:function(){return Oae},structure:function(){return a5e}});var ne={};m.r(ne),m.d(ne,{generate:function(){return d5e},name:function(){return u5e},parse:function(){return Iae},structure:function(){return c5e}});var be={};m.r(be),m.d(be,{generate:function(){return h5e},name:function(){return p5e},parse:function(){return Pae},structure:function(){return f5e}});var fe={};m.r(fe),m.d(fe,{generate:function(){return g5e},name:function(){return m5e},parse:function(){return Rae},structure:function(){return _5e}});var de={};m.r(de),m.d(de,{generate:function(){return b5e},name:function(){return v5e},parse:function(){return Lae},structure:function(){return y5e}});var le={};m.r(le),m.d(le,{generate:function(){return k5e},name:function(){return C5e},parse:function(){return Zae},structure:function(){return w5e}});var ce={};m.r(ce),m.d(ce,{generate:function(){return S5e},name:function(){return T5e},parse:function(){return Nae},structure:function(){return M5e}});var me={};m.r(me),m.d(me,{generate:function(){return A5e},name:function(){return x5e},parse:function(){return Bae},structure:function(){return D5e},walkContext:function(){return E5e}});var je={};m.r(je),m.d(je,{generate:function(){return R5e},name:function(){return O5e},parse:function(){return Fae},structure:function(){return P5e},walkContext:function(){return I5e}});var st={};m.r(st),m.d(st,{generate:function(){return F5e},name:function(){return N5e},parse:function(){return Hae},structure:function(){return B5e}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return G5e},name:function(){return H5e},parse:function(){return jae},structure:function(){return j5e}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return K5e},name:function(){return W5e},parse:function(){return zae},structure:function(){return Y5e},walkContext:function(){return V5e}});var Et={};m.r(Et),m.d(Et,{generate:function(){return Q5e},name:function(){return q5e},parse:function(){return Wae},structure:function(){return J5e}});var Lt={};m.r(Lt),m.d(Lt,{generate:function(){return tFe},name:function(){return X5e},parse:function(){return Vae},structure:function(){return eFe},walkContext:function(){return $5e}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return oFe},name:function(){return rFe},parse:function(){return Jae},structure:function(){return iFe}});var $t={};m.r($t),m.d($t,{generate:function(){return cFe},name:function(){return sFe},parse:function(){return Xae},structure:function(){return uFe},walkContext:function(){return lFe}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return hFe},name:function(){return pFe},parse:function(){return ese},structure:function(){return fFe}});var pn={};m.r(pn),m.d(pn,{generate:function(){return yFe},name:function(){return gFe},parse:function(){return rse},structure:function(){return vFe}});var nt={};m.r(nt),m.d(nt,{generate:function(){return EFe},name:function(){return SFe},parse:function(){return ose},structure:function(){return xFe}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return OFe},name:function(){return DFe},parse:function(){return ase},structure:function(){return AFe}});var _t={};m.r(_t),m.d(_t,{generate:function(){return LFe},name:function(){return PFe},parse:function(){return sse},structure:function(){return RFe}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return R},Atrule:function(){return P},AtrulePrelude:function(){return x},AttributeSelector:function(){return D},Block:function(){return j},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 E},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return F},MediaFeature:function(){return $},MediaQuery:function(){return Y},MediaQueryList:function(){return Q},NestingSelector:function(){return ne},Nth:function(){return be},Number:function(){return fe},Operator:function(){return de},Parentheses:function(){return le},Percentage:function(){return ce},PseudoClassSelector:function(){return me},PseudoElementSelector:function(){return je},Ratio:function(){return st},Raw:function(){return Mt},Rule:function(){return Tt},Selector:function(){return Et},SelectorList:function(){return Lt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return pn},Url:function(){return nt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var We={};m.r(We),m.d(We,{AtrulePrelude:function(){return jFe},Selector:function(){return $Fe},Value:function(){return n4e}});var ut={};m.r(ut),m.d(ut,{AnPlusB:function(){return rae},Atrule:function(){return oae},AtrulePrelude:function(){return aae},AttributeSelector:function(){return lae},Block:function(){return pae},Brackets:function(){return fae},CDC:function(){return hae},CDO:function(){return mae},ClassSelector:function(){return _ae},Combinator:function(){return vae},Comment:function(){return yae},Declaration:function(){return wae},DeclarationList:function(){return kae},Dimension:function(){return Tae},Function:function(){return Mae},Hash:function(){return Sae},IdSelector:function(){return Eae},Identifier:function(){return xae},MediaFeature:function(){return Dae},MediaQuery:function(){return Aae},MediaQueryList:function(){return Oae},NestingSelector:function(){return Iae},Nth:function(){return Pae},Number:function(){return Rae},Operator:function(){return Lae},Parentheses:function(){return Zae},Percentage:function(){return Nae},PseudoClassSelector:function(){return Bae},PseudoElementSelector:function(){return Fae},Ratio:function(){return Hae},Raw:function(){return jae},Rule:function(){return zae},Selector:function(){return Wae},SelectorList:function(){return Vae},String:function(){return Jae},StyleSheet:function(){return Xae},TypeSelector:function(){return ese},UnicodeRange:function(){return rse},Url:function(){return ose},Value:function(){return ase},WhiteSpace:function(){return sse}});var qt,dt=m(3237),Ut=m(1120),B=m(3144),U=m(5671),tt=m(136),Ye=m(9388),ge=m(9808),t=m(5e3),Dt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,B.Z)(e)}(ge.w_),Zt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.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 sn(){return(zt=zt||document.querySelector("base"))?zt.getAttribute("href"):null}();return null==a?null:function yn(n){(qt=qt||document.createElement("a")).setAttribute("href",n);var r=qt.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){zt=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,ge.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,ge.HT)(new e)}}]),e}(Dt),zt=null;var Kt=new t.OlP("TRANSITION_ID");var Je=[{provide:t.ip1,useFactory:function Xt(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,ge.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a<o.length;a++)i.remove(o[a])})}},deps:[Kt,ge.K0,t.zs3],multi:!0}],Be=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"addToWindow",value:function(e){t.dqk.getAngularTestability=function(o){var a=!(arguments.length>1&&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,ge.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),te=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();te.\u0275fac=function(r){return new(r||te)},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac});var ye=new t.OlP("EventManagerPlugins"),pe=function(){function n(r,e){var i=this;(0,U.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,B.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<o.length;a++){var s=o[a];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error("No event manager plugin found for event ".concat(e))}}]),n}();pe.\u0275fac=function(r){return new(r||pe)(t.LFG(ye),t.LFG(t.R0b))},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac});var Ne=function(){function n(r){(0,U.Z)(this,n),this._doc=r}return(0,B.Z)(n,[{key:"addGlobalEventListener",value:function(e,i,o){var a=(0,ge.q)().getGlobalEventTarget(this._doc,e);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(i));return this.addEventListener(a,i,o)}}]),n}(),lt=function(){function n(){(0,U.Z)(this,n),this._stylesSet=new Set}return(0,B.Z)(n,[{key:"addStyles",value:function(e){var i=this,o=new Set;e.forEach(function(a){i._stylesSet.has(a)||(i._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),n}();lt.\u0275fac=function(r){return new(r||lt)},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac});var ct=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._doc=i,o._hostNodes=new Map,o._hostNodes.set(i.head,[]),o}return(0,B.Z)(e,[{key:"_addStylesToHost",value:function(o,a,s){var l=this;o.forEach(function(u){var d=l._doc.createElement("style");d.textContent=u,s.push(a.appendChild(d))})}},{key:"addHost",value:function(o){var a=[];this._addStylesToHost(this._stylesSet,o,a),this._hostNodes.set(o,a)}},{key:"removeHost",value:function(o){var a=this._hostNodes.get(o);a&&a.forEach(Bt),this._hostNodes.delete(o)}},{key:"onStylesAdded",value:function(o){var a=this;this._hostNodes.forEach(function(s,l){a._addStylesToHost(o,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(o){return o.forEach(Bt)})}}]),e}(lt);function Bt(n){(0,ge.q)().remove(n)}ct.\u0275fac=function(r){return new(r||ct)(t.LFG(ge.K0))},ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac});var jt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},on=/%COMP%/g,En="_nghost-".concat("%COMP%"),hn="_ngcontent-".concat("%COMP%");function xt(n,r,e){for(var i=0;i<r.length;i++){var o=r[i];Array.isArray(o)?xt(n,o,e):(o=o.replace(on,n),e.push(o))}return e}function et(n){return function(r){if("__ngUnwrap__"===r)return n;!1===n(r)&&(r.preventDefault(),r.returnValue=!1)}}var ze=function(){function n(r,e,i){(0,U.Z)(this,n),this.eventManager=r,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ke(r)}return(0,B.Z)(n,[{key:"createRenderer",value:function(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case t.ifc.Emulated:var o=this.rendererByCompId.get(i.id);return o||(o=new dn(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o;case 1:case t.ifc.ShadowDom:return new Hn(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){var a=xt(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),n}();ze.\u0275fac=function(r){return new(r||ze)(t.LFG(pe),t.LFG(ct),t.LFG(t.AFp))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac});var Ke=function(){function n(r){(0,U.Z)(this,n),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return(0,B.Z)(n,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,i){return i?document.createElementNS(jt[i]||i,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,i){(vt(e)?e.content:e).appendChild(i)}},{key:"insertBefore",value:function(e,i,o){e&&(vt(e)?e.content:e).insertBefore(i,o)}},{key:"removeChild",value:function(e,i){e&&e.removeChild(i)}},{key:"selectRootElement",value:function(e,i){var o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error('The selector "'.concat(e,'" did not match any elements'));return i||(o.textContent=""),o}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,i,o,a){if(a){i=a+":"+i;var s=jt[a];s?e.setAttributeNS(s,i,o):e.setAttribute(i,o)}else e.setAttribute(i,o)}},{key:"removeAttribute",value:function(e,i,o){if(o){var a=jt[o];a?e.removeAttributeNS(a,i):e.removeAttribute("".concat(o,":").concat(i))}else e.removeAttribute(i)}},{key:"addClass",value:function(e,i){e.classList.add(i)}},{key:"removeClass",value:function(e,i){e.classList.remove(i)}},{key:"setStyle",value:function(e,i,o,a){a&(t.JOm.DashCase|t.JOm.Important)?e.style.setProperty(i,o,a&t.JOm.Important?"important":""):e.style[i]=o}},{key:"removeStyle",value:function(e,i,o){o&t.JOm.DashCase?e.style.removeProperty(i):e.style[i]=""}},{key:"setProperty",value:function(e,i,o){e[i]=o}},{key:"setValue",value:function(e,i){e.nodeValue=i}},{key:"listen",value:function(e,i,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,i,et(o)):this.eventManager.addEventListener(e,i,et(o))}}]),n}();"@".charCodeAt(0);function vt(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}var dn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,U.Z)(this,e),(l=r.call(this,i)).component=a;var u=xt(s+"-"+a.id,a.styles,[]);return o.addStyles(u),l.contentAttr=function mn(n){return hn.replace(on,n)}(s+"-"+a.id),l.hostAttr=function At(n){return En.replace(on,n)}(s+"-"+a.id),l}return(0,B.Z)(e,[{key:"applyToHost",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"setAttribute",this).call(this,o,this.hostAttr,"")}},{key:"createElement",value:function(o,a){var s=(0,dt.Z)((0,Ut.Z)(e.prototype),"createElement",this).call(this,o,a);return(0,dt.Z)((0,Ut.Z)(e.prototype),"setAttribute",this).call(this,s,this.contentAttr,""),s}}]),e}(Ke),Hn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,U.Z)(this,e),(l=r.call(this,i)).sharedStylesHost=o,l.hostEl=a,l.shadowRoot=a.attachShadow({mode:"open"}),l.sharedStylesHost.addHost(l.shadowRoot);for(var u=xt(s.id,s.styles,[]),d=0;d<u.length;d++){var h=document.createElement("style");h.textContent=u[d],l.shadowRoot.appendChild(h)}return l}return(0,B.Z)(e,[{key:"nodeOrShadowRoot",value:function(o){return o===this.hostEl?this.shadowRoot:o}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(o,a){return(0,dt.Z)((0,Ut.Z)(e.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"insertBefore",value:function(o,a,s){return(0,dt.Z)((0,Ut.Z)(e.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(o),a,s)}},{key:"removeChild",value:function(o,a){return(0,dt.Z)((0,Ut.Z)(e.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"parentNode",value:function(o){return this.nodeOrShadowRoot((0,dt.Z)((0,Ut.Z)(e.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(o)))}}]),e}(Ke),Yt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,U.Z)(this,e),r.call(this,i)}return(0,B.Z)(e,[{key:"supports",value:function(o){return!0}},{key:"addEventListener",value:function(o,a,s){var l=this;return o.addEventListener(a,s,!1),function(){return l.removeEventListener(o,a,s)}}},{key:"removeEventListener",value:function(o,a,s){return o.removeEventListener(a,s)}}]),e}(Ne);Yt.\u0275fac=function(r){return new(r||Yt)(t.LFG(ge.K0))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac});var kt=["alt","control","meta","shift"],$e={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gt={alt:function(r){return r.altKey},control:function(r){return r.ctrlKey},meta:function(r){return r.metaKey},shift:function(r){return r.shiftKey}},yt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,U.Z)(this,e),r.call(this,i)}return(0,B.Z)(e,[{key:"supports",value:function(o){return null!=e.parseEventName(o)}},{key:"addEventListener",value:function(o,a,s){var l=e.parseEventName(a),u=e.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,ge.q)().onAndCancel(o,l.domEventName,u)})}}],[{key:"parseEventName",value:function(o){var a=o.toLowerCase().split("."),s=a.shift();if(0===a.length||"keydown"!==s&&"keyup"!==s)return null;var l=e._normalizeKey(a.pop()),u="",d=a.indexOf("code");if(d>-1&&(a.splice(d,1),u="code."),kt.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=$e[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"),kt.forEach(function(u){u!==s&&((0,gt[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}(Ne);yt.\u0275fac=function(r){return new(r||yt)(t.LFG(ge.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac});var Pa=[{provide:t.Lbi,useValue:ge.bD},{provide:t.g9A,useValue:function Or(){Zt.makeCurrent()},multi:!0},{provide:ge.K0,useFactory:function Gi(){return(0,t.RDi)(document),document},deps:[]}],Ra=(0,t.eFA)(t._c5,"browser",Pa),ua=new t.OlP(""),ss=[{provide:t.rWj,useClass:Be,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]}],ta=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function hi(){return new t.qLn},deps:[]},{provide:ye,useClass:Yt,multi:!0,deps:[ge.K0,t.R0b,t.Lbi]},{provide:ye,useClass:yt,multi:!0,deps:[ge.K0]},{provide:ze,useClass:ze,deps:[pe,ct,t.AFp]},{provide:t.FYo,useExisting:ze},{provide:lt,useExisting:ct},{provide:ct,useClass:ct,deps:[ge.K0]},{provide:pe,useClass:pe,deps:[ye,t.R0b]},{provide:ge.JF,useClass:te,deps:[]},[]],ri=function(){function n(r){(0,U.Z)(this,n),false}return(0,B.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Kt,useExisting:t.AFp},Je]}}}]),n}();ri.\u0275fac=function(r){return new(r||ri)(t.LFG(ua,12))},ri.\u0275mod=t.oAB({type:ri}),ri.\u0275inj=t.cJS({providers:[].concat(ta,ss),imports:[ge.ez,t.hGG]});var zi=function(){function n(r){(0,U.Z)(this,n),this._doc=r,this._dom=(0,ge.q)()}return(0,B.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 Yn[e]||e}}]),n}();zi.\u0275fac=function(r){return new(r||zi)(t.LFG(ge.K0))},zi.\u0275prov=t.Yz7({token:zi,factory:function(r){return r?new r:function Ys(){return new zi((0,t.LFG)(ge.K0))}()},providedIn:"root"});var Yn={httpEquiv:"http-equiv"};var jr=function(){function n(r){(0,U.Z)(this,n),this._doc=r}return(0,B.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();jr.\u0275fac=function(r){return new(r||jr)(t.LFG(ge.K0))},jr.\u0275prov=t.Yz7({token:jr,factory:function(r){return r?new r:function br(){return new jr((0,t.LFG)(ge.K0))}()},providedIn:"root"});function qr(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var Bi="undefined"!=typeof window&&window||{},ba=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Ar=function(){function n(r){(0,U.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,B.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=Bi.console.profile;i&&a&&Bi.console.profile(o);for(var s=Fi(),l=0;l<5||Fi()-s<500;)this.appRef.tick(),l++;var u=Fi();i&&a&&Bi.console.profileEnd(o);var d=(u-s)/l;return Bi.console.log("ran ".concat(l," change detection cycles")),Bi.console.log("".concat(d.toFixed(2)," ms per check")),new ba(d,l)}}]),n}();function Fi(){return Bi.performance&&Bi.performance.now?Bi.performance.now():(new Date).getTime()}var Uo="profiler";var Ai=function(){function n(){(0,U.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,B.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}();Ai.\u0275fac=function(r){return new(r||Ai)},Ai.\u0275prov=t.Yz7({token:Ai,factory:function(){return r=(0,t.f3M)(ge.K0),e=(0,t.f3M)(t.AFp),(i=new Ai).store=function po(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function na(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 La=(0,B.Z)(function n(){(0,U.Z)(this,n)});La.\u0275fac=function(r){return new(r||La)},La.\u0275mod=t.oAB({type:La}),La.\u0275inj=t.cJS({});var gu={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},Wi=new t.OlP("HammerGestureConfig"),Ui=new t.OlP("HammerLoader"),Ss=function(){function n(){(0,U.Z)(this,n),this.events=[],this.overrides={}}return(0,B.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}();Ss.\u0275fac=function(r){return new(r||Ss)},Ss.\u0275prov=t.Yz7({token:Ss,factory:Ss.\u0275fac});var qi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,B.Z)(e,[{key:"supports",value:function(o){return!(!gu.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}(Ne);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(ge.K0),t.LFG(Wi),t.LFG(t.c2e),t.LFG(Ui,8))},qi.\u0275prov=t.Yz7({token:qi,factory:qi.\u0275fac});var tn=(0,B.Z)(function n(){(0,U.Z)(this,n)});tn.\u0275fac=function(r){return new(r||tn)},tn.\u0275mod=t.oAB({type:tn}),tn.\u0275inj=t.cJS({providers:[{provide:ye,useClass:qi,multi:!0,deps:[ge.K0,Wi,t.c2e,[new t.FiY,Ui]]},{provide:Wi,useClass:Ss,deps:[]}]});var Jt=(0,B.Z)(function n(){(0,U.Z)(this,n)});Jt.\u0275fac=function(r){return new(r||Jt)},Jt.\u0275prov=t.Yz7({token:Jt,factory:function(r){return r?new(r||Jt):t.LFG(Mi)},providedIn:"root"});var Mi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,B.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}(Jt);Mi.\u0275fac=function(r){return new(r||Mi)(t.LFG(ge.K0))},Mi.\u0275prov=t.Yz7({token:Mi,factory:function(r){return r?new r:function Jr(n){return new Mi(n.get(ge.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ho=m(2963),bi=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,Xe,Pe){return Object.defineProperty(bt,Xe,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),bt[Xe]}try{l({},"")}catch(bt){l=function(Pe,pt,Nt){return Pe[pt]=Nt}}function u(bt,Xe,Pe,pt){var Tn,jn,zn,or,Nt=Xe&&Xe.prototype instanceof g?Xe:g,Gt=Object.create(Nt.prototype),It=new De(pt||[]);return Gt._invoke=(Tn=bt,jn=Pe,zn=It,or="suspendedStart",function(Sr,_r){if("executing"===or)throw new Error("Generator is already running");if("completed"===or){if("throw"===Sr)throw _r;return{value:void 0,done:!0}}for(zn.method=Sr,zn.arg=_r;;){var zr=zn.delegate;if(zr){var Ur=xe(zr,zn);if(Ur){if(Ur===h)continue;return Ur}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===or)throw or="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);or="executing";var Kr=d(Tn,jn,zn);if("normal"===Kr.type){if(or=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(or="completed",zn.method="throw",zn.arg=Kr.arg)}}),Gt}function d(bt,Xe,Pe){try{return{type:"normal",arg:bt.call(Xe,Pe)}}catch(pt){return{type:"throw",arg:pt}}}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(ot([])));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(Xe){l(bt,Xe,function(Pe){return this._invoke(Xe,Pe)})})}function Ce(bt,Xe){function Pe(Nt,Gt,It,Tn){var jn=d(bt[Nt],bt,Gt);if("throw"!==jn.type){var zn=jn.arg,or=zn.value;return or&&"object"==(0,bi.Z)(or)&&e.call(or,"__await")?Xe.resolve(or.__await).then(function(Sr){Pe("next",Sr,It,Tn)},function(Sr){Pe("throw",Sr,It,Tn)}):Xe.resolve(or).then(function(Sr){zn.value=Sr,It(zn)},function(Sr){return Pe("throw",Sr,It,Tn)})}Tn(jn.arg)}var pt;this._invoke=function(Nt,Gt){function It(){return new Xe(function(Tn,jn){Pe(Nt,Gt,Tn,jn)})}return pt=pt?pt.then(It,It):It()}}function xe(bt,Xe){var Pe=bt.iterator[Xe.method];if(void 0===Pe){if(Xe.delegate=null,"throw"===Xe.method){if(bt.iterator.return&&(Xe.method="return",Xe.arg=void 0,xe(bt,Xe),"throw"===Xe.method))return h;Xe.method="throw",Xe.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var pt=d(Pe,bt.iterator,Xe.arg);if("throw"===pt.type)return Xe.method="throw",Xe.arg=pt.arg,Xe.delegate=null,h;var Nt=pt.arg;return Nt?Nt.done?(Xe[bt.resultName]=Nt.value,Xe.next=bt.nextLoc,"return"!==Xe.method&&(Xe.method="next",Xe.arg=void 0),Xe.delegate=null,h):Nt:(Xe.method="throw",Xe.arg=new TypeError("iterator result is not an object"),Xe.delegate=null,h)}function Ve(bt){var Xe={tryLoc:bt[0]};1 in bt&&(Xe.catchLoc=bt[1]),2 in bt&&(Xe.finallyLoc=bt[2],Xe.afterLoc=bt[3]),this.tryEntries.push(Xe)}function at(bt){var Xe=bt.completion||{};Xe.type="normal",delete Xe.arg,bt.completion=Xe}function De(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ve,this),this.reset(!0)}function ot(bt){if(bt){var Xe=bt[o];if(Xe)return Xe.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Pe=-1,pt=function Nt(){for(;++Pe<bt.length;)if(e.call(bt,Pe))return Nt.value=bt[Pe],Nt.done=!1,Nt;return Nt.value=void 0,Nt.done=!0,Nt};return pt.next=pt}}return{next:ht}}function ht(){return{value:void 0,done:!0}}return C.prototype=Z,l(ae,"constructor",Z),l(Z,"constructor",C),C.displayName=l(Z,s,"GeneratorFunction"),n.isGeneratorFunction=function(bt){var Xe="function"==typeof bt&&bt.constructor;return!!Xe&&(Xe===C||"GeneratorFunction"===(Xe.displayName||Xe.name))},n.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,Z):(bt.__proto__=Z,l(bt,s,"GeneratorFunction")),bt.prototype=Object.create(ae),bt},n.awrap=function(bt){return{__await:bt}},Se(Ce.prototype),l(Ce.prototype,a,function(){return this}),n.AsyncIterator=Ce,n.async=function(bt,Xe,Pe,pt,Nt){void 0===Nt&&(Nt=Promise);var Gt=new Ce(u(bt,Xe,Pe,pt),Nt);return n.isGeneratorFunction(Xe)?Gt:Gt.next().then(function(It){return It.done?It.value:Gt.next()})},Se(ae),l(ae,s,"Generator"),l(ae,o,function(){return this}),l(ae,"toString",function(){return"[object Generator]"}),n.keys=function(bt){var Xe=[];for(var Pe in bt)Xe.push(Pe);return Xe.reverse(),function pt(){for(;Xe.length;){var Nt=Xe.pop();if(Nt in bt)return pt.value=Nt,pt.done=!1,pt}return pt.done=!0,pt}},n.values=ot,De.prototype={constructor:De,reset:function(Xe){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(at),!Xe)for(var Pe in this)"t"===Pe.charAt(0)&&e.call(this,Pe)&&!isNaN(+Pe.slice(1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Xe=this.tryEntries[0].completion;if("throw"===Xe.type)throw Xe.arg;return this.rval},dispatchException:function(Xe){if(this.done)throw Xe;var Pe=this;function pt(zn,or){return It.type="throw",It.arg=Xe,Pe.next=zn,or&&(Pe.method="next",Pe.arg=void 0),!!or}for(var Nt=this.tryEntries.length-1;Nt>=0;--Nt){var Gt=this.tryEntries[Nt],It=Gt.completion;if("root"===Gt.tryLoc)return pt("end");if(Gt.tryLoc<=this.prev){var Tn=e.call(Gt,"catchLoc"),jn=e.call(Gt,"finallyLoc");if(Tn&&jn){if(this.prev<Gt.catchLoc)return pt(Gt.catchLoc,!0);if(this.prev<Gt.finallyLoc)return pt(Gt.finallyLoc)}else if(Tn){if(this.prev<Gt.catchLoc)return pt(Gt.catchLoc,!0)}else{if(!jn)throw new Error("try statement without catch or finally");if(this.prev<Gt.finallyLoc)return pt(Gt.finallyLoc)}}}},abrupt:function(Xe,Pe){for(var pt=this.tryEntries.length-1;pt>=0;--pt){var Nt=this.tryEntries[pt];if(Nt.tryLoc<=this.prev&&e.call(Nt,"finallyLoc")&&this.prev<Nt.finallyLoc){var Gt=Nt;break}}Gt&&("break"===Xe||"continue"===Xe)&&Gt.tryLoc<=Pe&&Pe<=Gt.finallyLoc&&(Gt=null);var It=Gt?Gt.completion:{};return It.type=Xe,It.arg=Pe,Gt?(this.method="next",this.next=Gt.finallyLoc,h):this.complete(It)},complete:function(Xe,Pe){if("throw"===Xe.type)throw Xe.arg;return"break"===Xe.type||"continue"===Xe.type?this.next=Xe.arg:"return"===Xe.type?(this.rval=this.arg=Xe.arg,this.method="return",this.next="end"):"normal"===Xe.type&&Pe&&(this.next=Pe),h},finish:function(Xe){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var pt=this.tryEntries[Pe];if(pt.finallyLoc===Xe)return this.complete(pt.completion,pt.afterLoc),at(pt),h}},catch:function(Xe){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var pt=this.tryEntries[Pe];if(pt.tryLoc===Xe){var Nt=pt.completion;if("throw"===Nt.type){var Gt=Nt.arg;at(pt)}return Gt}}throw new Error("illegal catch attempt")},delegateYield:function(Xe,Pe,pt){return this.delegate={iterator:ot(Xe),resultName:Pe,nextLoc:pt},"next"===this.method&&(this.arg=void 0),h}},n}var mi,n,vo=m(4506),Ul=m(5647),Nn=m(7685),xn=m(7762),fn=m(4902);function Ji(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 jo(n){return"ng-container"===Ji(n)[1]}function Qi(n){return"ng-content"===Ji(n)[1]}function ti(n){return null===n?null:Ji(n)[0]}function _i(n,r){return n?":".concat(n,":").concat(r):r}(n=mi||(mi={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var Do,Xi,ir=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?mi.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,U.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,B.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 wa(n){var r,e;return Xi||(Do=new ir,Xi={base:new ir({isVoid:!0}),meta:new ir({isVoid:!0}),area:new ir({isVoid:!0}),embed:new ir({isVoid:!0}),link:new ir({isVoid:!0}),img:new ir({isVoid:!0}),input:new ir({isVoid:!0}),param:new ir({isVoid:!0}),hr:new ir({isVoid:!0}),br:new ir({isVoid:!0}),source:new ir({isVoid:!0}),track:new ir({isVoid:!0}),wbr:new ir({isVoid:!0}),p:new ir({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 ir({closedByChildren:["tbody","tfoot"]}),tbody:new ir({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ir({closedByChildren:["tbody"],closedByParent:!0}),tr:new ir({closedByChildren:["tr"],closedByParent:!0}),td:new ir({closedByChildren:["td","th"],closedByParent:!0}),th:new ir({closedByChildren:["td","th"],closedByParent:!0}),col:new ir({isVoid:!0}),svg:new ir({implicitNamespacePrefix:"svg"}),foreignObject:new ir({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ir({implicitNamespacePrefix:"math"}),li:new ir({closedByChildren:["li"],closedByParent:!0}),dt:new ir({closedByChildren:["dt","dd"]}),dd:new ir({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ir({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ir({closedByChildren:["optgroup"],closedByParent:!0}),option:new ir({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ir({ignoreFirstLf:!0}),listing:new ir({ignoreFirstLf:!0}),style:new ir({contentType:mi.RAW_TEXT}),script:new ir({contentType:mi.RAW_TEXT}),title:new ir({contentType:{default:mi.ESCAPABLE_RAW_TEXT,svg:mi.PARSABLE_DATA}}),textarea:new ir({contentType:mi.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=Xi[n])&&void 0!==r?r:Xi[n.toLowerCase()])&&void 0!==e?e:Do}var ao,qa,Za=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),oo=function(){function n(){(0,U.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,B.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a<e.length;a++){var s=e.charAt(a);if("\\"!==s){if("$"===s&&!o)throw new Error('Error in attribute selector "'.concat(e,'". ')+'Unescaped "$" is not supported. Please escape with "\\$".');o=!1,i+=s}else o=!0}return i}},{key:"escapeAttribute",value:function(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}},{key:"isElementSelector",value:function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}},{key:"hasElementSelector",value:function(){return!!this.element}},{key:"setElement",value:function(){var e=arguments.length>0&&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<this.attrs.length;a+=2){var s=this.attrs[a],l=""!==this.attrs[a+1]?'="'.concat(this.attrs[a+1],'"'):"";o+=" ".concat(s).concat(l)}return wa(e).isVoid?"<".concat(e).concat(i).concat(o,"/>"):"<".concat(e).concat(i).concat(o,"></").concat(e,">")}},{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;i<this.attrs.length;i+=2){var o=this.escapeAttribute(this.attrs[i]),a=this.attrs[i+1];e+="[".concat(o).concat(a?"="+a:"","]")}return this.notSelectors.forEach(function(s){return e+=":not(".concat(s,")")}),e}}],[{key:"parse",value:function(e){var s,i=[],o=function(Z,z){z.notSelectors.length>0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),Z.push(z)},a=new n,l=a,u=!1;for(Za.lastIndex=0;s=Za.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"}(ao||(ao={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(qa||(qa={}));var Hi,Yi,ka={name:"custom-elements"},vu={name:"no-errors-schema"};function kp(n){var r=function xc(n){var r=n.classNames&&n.classNames.length?[8].concat((0,fn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,fn.Z)(n.attrs),(0,fn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function hl(n){var r=n.classNames&&n.classNames.length?[8].concat((0,fn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,fn.Z)(n.attrs),(0,fn.Z)(r)):n.attrs.length?[3].concat((0,fn.Z)(n.attrs),(0,fn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,fn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,fn.Z)(e))}function us(n){return n?oo.parse(n).map(kp):[]}!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"}(Hi||(Hi={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(Yi||(Yi={}));var so=/-+([a-z0-9])/g;function yo(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function Ba(n){throw new Error("Internal Error: ".concat(n))}function fo(n){for(var r=[],e=0;e<n.length;e++){var i=n.charCodeAt(e);if(i>=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 Mp(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Mp).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 Ks=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ku=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var ds=function(){function n(r){(0,U.Z)(this,n),this.digits=r}return(0,B.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<i;a++){var s=o;a<this.digits.length&&(s+=this.digits[a]),a<e.digits.length&&(s+=e.digits[a]),s>=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}(),Mr=function(){function n(r){(0,U.Z)(this,n),this.powerOfTwos=[r]}return(0,B.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=ds.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}(),Es=function(){function n(r){(0,U.Z)(this,n),this.base=r,this.exponents=[new Mr(ds.one())]}return(0,B.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 Mr(o)}return this.exponents[e]}}]),n}();function rh(n){return function we(n){var r=fo(n),e=function Xo(n,r){for(var e=n.length+3>>>2,i=[],o=0;o<e;o++)i[o]=qs(n,4*o,r);return i}(r,Ht.Big),i=8*r.length,o=function jl(n,r){for(var e=[],i=0;i<n;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,d=3285377520;e[i>>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h<e.length;h+=16){for(var g=a,C=s,Z=l,z=u,q=d,re=0;re<80;re++){o[re]=re<16?e[h+re]:yd(o[re-3]^o[re-8]^o[re-14]^o[re-16],1);var ae=Te(re,s,l,u),Se=ae[0],Ce=ae[1],xe=[yd(a,5),Se,d,Ce,o[re]].reduce(On);d=u,u=l,l=yd(s,30),s=a,a=xe}a=On(a,g),s=On(s,C),l=On(l,Z),u=On(u,z),d=On(d,q)}return function Xm(n){for(var r="",e=0;e<n.length;e++){var i=Ta(n,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function _l(n){return n.reduce(function(r,e){return r.concat(function ps(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 Gl(n){return n.map(function(r){return r.visit(qu,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function ih(n){return n.id||Sp(n)}function Sp(n){var r=new An;return Me(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var Ds=function(){function n(){(0,U.Z)(this,n)}return(0,B.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?'<ph tag name="'.concat(e.startName,'"/>'):'<ph tag name="'.concat(e.startName,'">').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'</ph name="').concat(e.closeName,'">')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'<ph name="'.concat(e.name,'">').concat(e.value,"</ph>"):'<ph name="'.concat(e.name,'"/>')}},{key:"visitIcuPlaceholder",value:function(e,i){return'<ph icu name="'.concat(e.name,'">').concat(e.value.visit(this),"</ph>")}}]),n}(),qu=new Ds;var Ht,An=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.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}(Ds);function Te(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 se(n){var r=fo(n),e=Oe(r,0),i=Oe(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Me(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=se(n);if(r){var i=se(r);e=ml(zl(e,1),i)}var o=e[0],a=e[1];return $m(2147483647&o,a)}function Oe(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=mt(e=On(e,qs(n,o,Ht.Little)),i=On(i,qs(n,o+4,Ht.Little)),r=On(r,qs(n,o+8,Ht.Little)));e=s[0],i=s[1],r=s[2]}return e=On(e,qs(n,o,Ht.Little)),i=On(i,qs(n,o+4,Ht.Little)),r=On(r,a),mt(e,i,r=On(r,qs(n,o+8,Ht.Little)<<8))[2]}function mt(n,r,e){return n=lo(n,r),n=lo(n,e),n^=e>>>13,r=lo(r,e),r=lo(r,n),r^=n<<8,e=lo(e,n),e=lo(e,r),e^=r>>>13,n=lo(n,r),n=lo(n,e),n^=e>>>12,r=lo(r,e),r=lo(r,n),r^=n<<16,e=lo(e,n),e=lo(e,r),e^=r>>>5,n=lo(n,r),n=lo(n,e),n^=e>>>3,r=lo(r,e),r=lo(r,n),r^=n<<10,e=lo(e,n),e=lo(e,r),[n,r,e^=r>>>15]}function On(n,r){return sr(n,r)[1]}function sr(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function ml(n,r){var e=n[0],i=n[1],o=r[0],s=sr(i,r[1]),l=s[0],u=s[1];return[On(On(e,o),l),u]}function lo(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function yd(n,r){return n<<r|n>>>32-r}function zl(n,r){var e=n[0],i=n[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function Ta(n,r){return r>=n.length?0:n[r]}function qs(n,r,e){var i=0;if(e===Ht.Big)for(var o=0;o<4;o++)i+=Ta(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=Ta(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(Ht||(Ht={}));var bd,oh=new Es(256);function $m(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"}(bd||(bd={}));var fs,Ju=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bd.None;(0,U.Z)(this,n),this.modifiers=r}return(0,B.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"}(fs||(fs={}));var Ge,it,gl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(Ju),hs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,U.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(Ju),Js=new gl(fs.Dynamic),ia=new gl(fs.Inferred),ah=new gl(fs.Bool),Ue=(new gl(fs.Int),new gl(fs.Number)),_e=new gl(fs.String),ke=(new gl(fs.Function),new gl(fs.None));function Vt(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Cn(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}function gr(n,r){return Cn(n,r,function(e,i){return e.isEquivalent(i)})}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(Ge||(Ge={})),function(n){n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseAnd=11]="BitwiseAnd",n[n.Lower=12]="Lower",n[n.LowerEquals=13]="LowerEquals",n[n.Bigger=14]="Bigger",n[n.BiggerEquals=15]="BiggerEquals",n[n.NullishCoalesce=16]="NullishCoalesce"}(it||(it={}));var Rr=function(){function n(r,e){(0,U.Z)(this,n),this.type=r||null,this.sourceSpan=e||null}return(0,B.Z)(n,[{key:"prop",value:function(e,i){return new cC(this,e,null,i)}},{key:"key",value:function(e,i,o){return new rM(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new Ep(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new ie(this,e,i,o)}},{key:"conditional",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new Si(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new bo(it.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new bo(it.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new bo(it.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new bo(it.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new bo(it.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new bo(it.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new bo(it.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new bo(it.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new bo(it.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new bo(it.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new bo(it.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new bo(it.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new bo(it.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new bo(it.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new bo(it.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new bo(it.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(sh,e)}},{key:"nullishCoalesce",value:function(e,i){return new bo(it.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Ap(this,null)}}]),n}(),ms=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,B.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 Ac(this.name,o,null,this.sourceSpan)}}]),e}(Rr),vl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,B.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}(Rr),Pr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,B.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}(Rr),Ac=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,B.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 Dp(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(ia,Os.Final)}}]),e}(Rr),xp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,B.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}(Rr),e_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,B.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}(Rr),Ep=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,U.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&gr(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}(Rr),uC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Cn(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&gr(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Rr),ie=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&gr(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Rr),ue=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,B.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}(Rr),he=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.elements=r,this.expressions=e}),Fe=(0,B.Z)(function n(r,e,i){var o;(0,U.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:da(Qr(r))}),Qe=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.text=r,this.sourceSpan=e}),Pt=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),kr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,_e,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,B.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)}),As(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(Me(s.associatedMessage.messageString,s.associatedMessage.meaning))),As(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Rr),Qr=function(r){return r.replace(/\\/g,"\\\\")},li=function(r){return r.replace(/^:/,"\\:")},Ao=function(r){return r.replace(/:/g,"\\:")},da=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function As(n,r,e){return""===n?{cooked:r,raw:da(li(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:da(":".concat(Ao(Qr(n)),":").concat(Qr(r))),range:e}}var Os,oa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.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,U.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,B.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}(Rr),Si=function(n){(0,tt.Z)(e,n);var r=(0,Ye.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,U.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Vt(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Rr),Qu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this,ah,o)).condition=i,a}return(0,B.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}(Rr),Go=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,U.Z)(this,n),this.name=r,this.type=e}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),Xu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(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 aM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Rr),$u=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,U.Z)(this,e),(l=r.call(this,a||Ue,s)).operator=i,l.expr=o,l.parens=u,l}return(0,B.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}(Rr),bo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,U.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,B.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}(Rr),cC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,B.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 e_(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Rr),rM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,B.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 xp(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Rr),dC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,B.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Rr),yu=function(){function n(r,e,i){(0,U.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),iM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(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}(Rr),t_=new ue(null,null,null),sh=new ue(null,ia,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"}(Os||(Os={}));var n_=function(){function n(r,e,i){(0,U.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,B.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),oM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,B.Z)(e,[{key:"toString",value:function(){return function ho(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(uM(n[0])," ");var i,r="*\n",e=(0,xn.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=uM(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(n_),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Os.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,U.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,B.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}(),Dp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.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,B.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),aM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.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,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),Ap=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,Os.None,o,a)).expr=i,s}return(0,B.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),_s=function(n){(0,tt.Z)(e,n);var r=(0,Ye.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,U.Z)(this,e),(o=r.call(this,Os.None,a,s)).value=i,o}return(0,B.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),Ev=function(n){(0,tt.Z)(e,n);var r=(0,Ye.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,U.Z)(this,e),(a=r.call(this,Os.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&gr(this.trueCase,o.trueCase)&&gr(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function sM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new oM(n)}function ii(n,r,e){return new ms(n,r,e)}function Jn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new oa(n,null,r,e)}function Is(n,r,e){return new hs(n,r,e)}function r_(n){return new vl(n)}function di(n,r,e){return new dC(n,r,e)}function Xs(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new iM(n.map(function(e){return new yu(e.key,e.value,e.quoted)}),r,null)}function uh(n,r){return new Qu(n,r)}function aa(n,r,e,i,o){return new Xu(n,r,e,i,o)}function wd(n,r,e,i,o){return new Ev(n,r,e,i,o)}function ch(n,r,e,i){return new uC(n,r,e,i)}function rn(n,r,e){return new ue(n,r,e)}function dh(n,r,e,i,o){return new kr(n,r,e,i,o)}function Oc(n){return n instanceof ue&&null===n.value}function uM(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 Av=ii("<unknown>"),ZP={},NP=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,B.Z)(e,[{key:"visitExpression",value:function(o,a){return a===ZP?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}(Rr),BP=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,U.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,B.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof ue&&!Ma(e)||e instanceof NP)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new NP(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Ma(e)?(u=ii(l).set(new Xu([],[new _s(e)])),d=ii(l).callFn([])):(u=ii(l).set(e),d=ii(l)),this.statements.push(u.toDeclStmt(ia,Os.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof dC){var i=e.entries.map(function(l){return l.isConstant()?l:Av}),o=this.keyOf(di(i));return this._getLiteralFactory(o,e.entries,function(l){return di(l)})}var a=Xs(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Av,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Xs(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):ii("a".concat(Z))}),h=aa(u.filter(FP).map(function(C){return new Go(C.name,Js)}),[new _s(o(u))],ia),g=this.freshName();this.statements.push(ii(g).set(h).toDeclStmt(ia,Os.Final)),s=ii(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 ph,ZP)}}]),n}(),ph=function(){function n(){(0,U.Z)(this,n),this.visitWrappedNodeExpr=Fa,this.visitWriteVarExpr=Fa,this.visitWriteKeyExpr=Fa,this.visitWritePropExpr=Fa,this.visitInvokeFunctionExpr=Fa,this.visitTaggedTemplateExpr=Fa,this.visitInstantiateExpr=Fa,this.visitConditionalExpr=Fa,this.visitNotExpr=Fa,this.visitAssertNotNullExpr=Fa,this.visitCastExpr=Fa,this.visitFunctionExpr=Fa,this.visitUnaryOperatorExpr=Fa,this.visitBinaryOperatorExpr=Fa,this.visitReadPropExpr=Fa,this.visitReadKeyExpr=Fa,this.visitCommaExpr=Fa,this.visitLocalizedString=Fa}return(0,B.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 Fa(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function FP(n){return n instanceof ms}function Ma(n){return n instanceof ue&&"string"==typeof n.value&&n.value.length>=50}var Qt="@angular/core",Le=(0,B.Z)(function n(){(0,U.Z)(this,n)});Le.NEW_METHOD="factory",Le.TRANSFORM_METHOD="transform",Le.PATCH_DEPS="patchedDeps",Le.core={name:null,moduleName:Qt},Le.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Qt},Le.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Qt},Le.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Qt},Le.element={name:"\u0275\u0275element",moduleName:Qt},Le.elementStart={name:"\u0275\u0275elementStart",moduleName:Qt},Le.elementEnd={name:"\u0275\u0275elementEnd",moduleName:Qt},Le.advance={name:"\u0275\u0275advance",moduleName:Qt},Le.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:Qt},Le.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:Qt},Le.attribute={name:"\u0275\u0275attribute",moduleName:Qt},Le.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:Qt},Le.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:Qt},Le.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:Qt},Le.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:Qt},Le.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:Qt},Le.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:Qt},Le.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:Qt},Le.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:Qt},Le.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:Qt},Le.classProp={name:"\u0275\u0275classProp",moduleName:Qt},Le.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Qt},Le.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Qt},Le.elementContainer={name:"\u0275\u0275elementContainer",moduleName:Qt},Le.styleMap={name:"\u0275\u0275styleMap",moduleName:Qt},Le.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:Qt},Le.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:Qt},Le.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:Qt},Le.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:Qt},Le.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:Qt},Le.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:Qt},Le.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:Qt},Le.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:Qt},Le.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:Qt},Le.classMap={name:"\u0275\u0275classMap",moduleName:Qt},Le.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:Qt},Le.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:Qt},Le.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:Qt},Le.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:Qt},Le.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:Qt},Le.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:Qt},Le.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:Qt},Le.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:Qt},Le.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:Qt},Le.styleProp={name:"\u0275\u0275styleProp",moduleName:Qt},Le.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:Qt},Le.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:Qt},Le.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:Qt},Le.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:Qt},Le.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:Qt},Le.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:Qt},Le.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:Qt},Le.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:Qt},Le.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:Qt},Le.nextContext={name:"\u0275\u0275nextContext",moduleName:Qt},Le.resetView={name:"\u0275\u0275resetView",moduleName:Qt},Le.templateCreate={name:"\u0275\u0275template",moduleName:Qt},Le.text={name:"\u0275\u0275text",moduleName:Qt},Le.enableBindings={name:"\u0275\u0275enableBindings",moduleName:Qt},Le.disableBindings={name:"\u0275\u0275disableBindings",moduleName:Qt},Le.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Qt},Le.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Qt},Le.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Qt},Le.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Qt},Le.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Qt},Le.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Qt},Le.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Qt},Le.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Qt},Le.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Qt},Le.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Qt},Le.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Qt},Le.restoreView={name:"\u0275\u0275restoreView",moduleName:Qt},Le.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Qt},Le.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Qt},Le.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Qt},Le.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Qt},Le.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Qt},Le.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Qt},Le.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Qt},Le.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Qt},Le.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Qt},Le.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Qt},Le.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Qt},Le.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Qt},Le.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Qt},Le.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Qt},Le.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Qt},Le.hostProperty={name:"\u0275\u0275hostProperty",moduleName:Qt},Le.property={name:"\u0275\u0275property",moduleName:Qt},Le.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:Qt},Le.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:Qt},Le.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:Qt},Le.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:Qt},Le.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:Qt},Le.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:Qt},Le.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:Qt},Le.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:Qt},Le.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:Qt},Le.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:Qt},Le.i18n={name:"\u0275\u0275i18n",moduleName:Qt},Le.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Qt},Le.i18nExp={name:"\u0275\u0275i18nExp",moduleName:Qt},Le.i18nStart={name:"\u0275\u0275i18nStart",moduleName:Qt},Le.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Qt},Le.i18nApply={name:"\u0275\u0275i18nApply",moduleName:Qt},Le.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Qt},Le.pipe={name:"\u0275\u0275pipe",moduleName:Qt},Le.projection={name:"\u0275\u0275projection",moduleName:Qt},Le.projectionDef={name:"\u0275\u0275projectionDef",moduleName:Qt},Le.reference={name:"\u0275\u0275reference",moduleName:Qt},Le.inject={name:"\u0275\u0275inject",moduleName:Qt},Le.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Qt},Le.directiveInject={name:"\u0275\u0275directiveInject",moduleName:Qt},Le.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Qt},Le.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Qt},Le.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Qt},Le.forwardRef={name:"forwardRef",moduleName:Qt},Le.resolveForwardRef={name:"resolveForwardRef",moduleName:Qt},Le.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:Qt},Le.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:Qt},Le.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:Qt},Le.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Qt},Le.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Qt},Le.resolveBody={name:"\u0275\u0275resolveBody",moduleName:Qt},Le.defineComponent={name:"\u0275\u0275defineComponent",moduleName:Qt},Le.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:Qt},Le.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Qt},Le.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Qt},Le.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Qt},Le.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:Qt},Le.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:Qt},Le.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:Qt},Le.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:Qt},Le.defineDirective={name:"\u0275\u0275defineDirective",moduleName:Qt},Le.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:Qt},Le.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:Qt},Le.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Qt},Le.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:Qt},Le.defineInjector={name:"\u0275\u0275defineInjector",moduleName:Qt},Le.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:Qt},Le.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:Qt},Le.ModuleWithProviders={name:"ModuleWithProviders",moduleName:Qt},Le.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Qt},Le.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:Qt},Le.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Qt},Le.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:Qt},Le.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:Qt},Le.definePipe={name:"\u0275\u0275definePipe",moduleName:Qt},Le.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:Qt},Le.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:Qt},Le.setClassMetadata={name:"\u0275setClassMetadata",moduleName:Qt},Le.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Qt},Le.viewQuery={name:"\u0275\u0275viewQuery",moduleName:Qt},Le.loadQuery={name:"\u0275\u0275loadQuery",moduleName:Qt},Le.contentQuery={name:"\u0275\u0275contentQuery",moduleName:Qt},Le.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Qt},Le.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Qt},Le.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Qt},Le.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:Qt},Le.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Qt},Le.listener={name:"\u0275\u0275listener",moduleName:Qt},Le.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Qt},Le.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Qt},Le.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Qt},Le.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Qt},Le.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Qt},Le.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Qt},Le.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Qt},Le.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:Qt},Le.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:Qt},Le.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:Qt};var Wl=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,U.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,B.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<this.lastCol0)throw new Error("Mapping should be added in output order");if(i&&(null==o||null==a))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:i,sourceLine0:o,sourceCol0:a}),this}},{key:"currentLine",get:function(){return this.lines.slice(-1)[0]}},{key:"toJSON",value:function(){var e=this;if(!this.hasMappings)return null;var i=new Map,o=[],a=[];Array.from(this.sourcesContent.keys()).forEach(function(g,C){i.set(g,C),o.push(g),a.push(e.sourcesContent.get(g)||null)});var s="",l=0,u=0,d=0,h=0;return this.lines.forEach(function(g){l=0,s+=g.map(function(C){var Z=Ov(C.col0-l);return l=C.col0,null!=C.sourceUrl&&(Z+=Ov(i.get(C.sourceUrl)-u),u=i.get(C.sourceUrl),Z+=Ov(C.sourceLine0-d),d=C.sourceLine0,Z+=Ov(C.sourceCol0-h),h=C.sourceCol0),Z}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:o,sourcesContent:a,mappings:s}}},{key:"toJsComment",value:function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function kd(n){for(var r="",e=fo(n),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=Td(o>>2),r+=Td((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Td((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Td(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function Ov(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=Td(e)}while(n>0);return r}function Td(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var UP=/'|\\|\n|\r|\$/g,sF=/^[$A-Z_][0-9A-Z_$]*$/i,lF=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),iV=function(){function n(r){(0,U.Z)(this,n),this._indent=r,this._lines=[new lF(r)]}return(0,B.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 lF(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?fC(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 Wl(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;l<i;l++)o.addLine(),s();return this.sourceLines.forEach(function(u,d){o.addLine();for(var h=u.srcSpans,g=u.parts,C=u.indent*" ".length,Z=0;Z<h.length&&!h[Z];)C+=g[Z].length,Z++;for(Z<h.length&&0===d&&0===C?a=!0:s();Z<h.length;){var z=h[Z],q=z.start.file,re=z.start.line,ae=z.start.col;for(o.addSource(q.url,q.content).addMapping(C,q.url,re,ae),C+=g[Z].length,Z++;Z<h.length&&(z===h[Z]||!h[Z]);)C+=g[Z].length,Z++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-fC(o.indent).length,s=0;s<o.parts.length;s++){var l=o.parts[s];if(l.length>a)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}(),HP=function(){function n(r){(0,U.Z)(this,n),this._escapeDollarInStrings=r}return(0,B.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,xn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof oM?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;o<e.template.elements.length;o++)i.print(e,"${"),e.template.expressions[o-1].visitExpression(this,i),i.print(e,"}".concat(e.template.elements[o].rawText));return i.print(e,"`"),null}},{key:"visitWrappedNodeExpr",value:function(e,i){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}},{key:"visitTypeofExpr",value:function(e,i){i.print(e,"typeof "),e.expr.visitExpression(this,i)}},{key:"visitReadVarExpr",value:function(e,i){return i.print(e,e.name),null}},{key:"visitInstantiateExpr",value:function(e,i){return i.print(e,"new "),e.classExpr.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitLiteralExpr",value:function(e,i){var o=e.value;return"string"==typeof o?i.print(e,Ua(o,this._escapeDollarInStrings)):i.print(e,"".concat(o)),null}},{key:"visitLocalizedString",value:function(e,i){var o=e.serializeI18nHead();i.print(e,"$localize `"+o.raw);for(var a=1;a<e.messageParts.length;a++)i.print(e,"${"),e.expressions[a-1].visitExpression(this,i),i.print(e,"}".concat(e.serializeI18nTemplatePart(a).raw));return i.print(e,"`"),null}},{key:"visitConditionalExpr",value:function(e,i){return i.print(e,"("),e.condition.visitExpression(this,i),i.print(e,"? "),e.trueCase.visitExpression(this,i),i.print(e,": "),e.falseCase.visitExpression(this,i),i.print(e,")"),null}},{key:"visitNotExpr",value:function(e,i){return i.print(e,"!"),e.condition.visitExpression(this,i),null}},{key:"visitUnaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case Ge.Plus:o="+";break;case Ge.Minus:o="-";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),i.print(e,o),e.expr.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitBinaryOperatorExpr",value:function(e,i){var o;switch(e.operator){case it.Equals:o="==";break;case it.Identical:o="===";break;case it.NotEquals:o="!=";break;case it.NotIdentical:o="!==";break;case it.And:o="&&";break;case it.BitwiseAnd:o="&";break;case it.Or:o="||";break;case it.Plus:o="+";break;case it.Minus:o="-";break;case it.Divide:o="/";break;case it.Multiply:o="*";break;case it.Modulo:o="%";break;case it.Lower:o="<";break;case it.LowerEquals:o="<=";break;case it.Bigger:o=">";break;case it.BiggerEquals:o=">=";break;case it.NullishCoalesce:o="??";break;default:throw new Error("Unknown operator ".concat(e.operator))}return e.parens&&i.print(e,"("),e.lhs.visitExpression(this,i),i.print(e," ".concat(o," ")),e.rhs.visitExpression(this,i),e.parens&&i.print(e,")"),null}},{key:"visitReadPropExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"."),i.print(e,e.name),null}},{key:"visitReadKeyExpr",value:function(e,i){return e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"]"),null}},{key:"visitLiteralArrayExpr",value:function(e,i){return i.print(e,"["),this.visitAllExpressions(e.entries,i,","),i.print(e,"]"),null}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return i.print(e,"{"),this.visitAllObjects(function(a){i.print(e,"".concat(Ua(a.key,o._escapeDollarInStrings,a.quoted),":")),a.value.visitExpression(o,i)},e.entries,i,","),i.print(e,"}"),null}},{key:"visitCommaExpr",value:function(e,i){return i.print(e,"("),this.visitAllExpressions(e.parts,i,","),i.print(e,")"),null}},{key:"visitAllExpressions",value:function(e,i,o){var a=this;this.visitAllObjects(function(s){return s.visitExpression(a,i)},e,i,o)}},{key:"visitAllObjects",value:function(e,i,o,a){for(var s=!1,l=0;l<i.length;l++)l>0&&(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 Ua(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(UP,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||!sF.test(i);return o?"'".concat(i,"'"):i}function fC(n){for(var r="",e=0;e<n;e++)r+=" ";return r}function Md(n,r){if(0===r)return Is(n);for(var e=[],i=0;i<r;i++)e.push(Js);return Is(n,void 0,e)}var Op,ec;function dM(n){return"".concat("@").concat(n)}function cF(n,r){return"".concat("@").concat(n,".").concat(r)}function jP(n,r){return"animation_".concat(n,"_").concat(r)}function GP(n,r){var e=new oa({name:n,moduleName:null}),i=new bo(it.Identical,new vl(e),rn("undefined")),o=new bo(it.Or,i,e,void 0,void 0,!0);return new bo(it.And,o,r)}function Ja(n){var r=new Pr(n);return{value:r,type:r}}function yl(n,r){var e=di(n.map(function(i){return i.value}));return r?aa([],[new _s(e)]):e}function pM(n,r){return{expression:n,forwardRef:r}}function Vl(n){var r=n.expression;switch(n.forwardRef){case 0:case 1:return r;case 2:return hC(r)}}function hC(n){return Jn(Le.forwardRef).callFn([aa([],[new _s(n)])])}function fh(n){var r=ii("t"),e=null,i=pa(n)?r:new bo(it.Or,r,n.internalType),o=null;null!==n.deps?"invalid"!==n.deps&&(o=new ie(i,fM(n.deps,n.target))):(e=ii("\u0275".concat(n.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(Z){var z=ii("r");a.push(z.set(t_).toDeclStmt());var q=null!==o?z.set(o).toStmt():Jn(Le.invalidFactory).callFn([]).toStmt();return a.push(wd(r,[q],[z.set(Z).toStmt()])),z}if(pa(n)){var u=fM(n.delegateDeps,n.target);s=l(new(n.delegateType===Op.Class?ie:Ep)(n.delegate,u))}else s=function WP(n){return void 0!==n.expression}(n)?l(n.expression):o;if(null===s)a.push(Jn(Le.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=Jn(Le.getInheritedFactory).callFn([n.internalType]),g=new bo(it.Or,e,e.set(h));a.push(new _s(g.callFn([i])))}else a.push(new _s(s));var C=aa([new Go("t",Js)],a,ia,void 0,"".concat(n.name,"_Factory"));return null!==e&&(C=aa([],[new Dp(e.name),new _s(C)]).callFn([],void 0,!0)),{expression:C,statements:[],type:zP(n)}}function zP(n){var r=null!==n.deps&&"invalid"!==n.deps?function i_(n){var r=!1,e=n.map(function(i){var o=function hF(n){var r=[];return null!==n.attributeNameType&&r.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&r.push({key:"optional",value:rn(!0),quoted:!1}),n.host&&r.push({key:"host",value:rn(!0),quoted:!1}),n.self&&r.push({key:"self",value:rn(!0),quoted:!1}),n.skipSelf&&r.push({key:"skipSelf",value:rn(!0),quoted:!1}),r.length>0?Xs(r):null}(i);return null!==o?(r=!0,o):rn(null)});return r?Is(di(e)):ke}(n.deps):ke;return Is(Jn(Le.FactoryDeclaration,[Md(n.type.type,n.typeArgumentCount),r]))}function fM(n,r){return n.map(function(e,i){return function Iv(n,r,e){if(null===n.token)return Jn(Le.invalidFactoryDep).callFn([rn(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===ec.Pipe?16:0),o=0!==i||n.optional?rn(i):null,a=[n.token];o&&a.push(o);var s=function VP(n){switch(n){case ec.Component:case ec.Directive:case ec.Pipe:return Le.directiveInject;case ec.NgModule:case ec.Injectable:default:return Le.inject}}(r);return Jn(s).callFn(a)}return Jn(Le.injectAttribute).callFn([n.token])}(e,r,i)})}function pa(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(Op||(Op={})),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"}(ec||(ec={}));var hM=function(){function n(r,e){(0,U.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),Ip=function(){function n(r,e){(0,U.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),mM=function(){function n(r,e,i){(0,U.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),_M=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),YP=function(){function n(r,e,i,o,a,s,l,u,d){(0,U.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,B.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}(),Pv=function(){function n(r,e,i,o,a,s,l,u){(0,U.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,B.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}(),Pp=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.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,B.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,U.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,B.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),o_=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),gM=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),KP=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),a_=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function qP(n,r){var e=[];if(n.visit){var o,i=(0,xn.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,xn.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 bu=(0,B.Z)(function n(r,e,i,o,a,s){(0,U.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 vC(n){var r=new JP,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=[]}),mC=function(){function n(r,e){(0,U.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),_C=function(){function n(r,e){(0,U.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),yM=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),_F=function(){function n(r,e,i,o,a,s,l,u,d){(0,U.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,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),gF=function(){function n(r,e,i){(0,U.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),gC=function(){function n(r,e,i){(0,U.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var JP=function(){function n(){(0,U.Z)(this,n)}return(0,B.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}(),uV=function(){function n(){(0,U.Z)(this,n)}return(0,B.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(""),"</").concat(e.name,">")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"<?xml".concat(this._serializeAttributes(e.attrs)," ?>")}},{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"<!DOCTYPE ".concat(e.rootTag," [\n").concat(e.dtd,"\n]>")}}]),n}();new uV;function Lv(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var yC="i18n-";function t3(n){return"i18n"===n||n.startsWith(yC)}function s_(n){return n instanceof bu}function bC(n){return s_(n)&&1===n.nodes.length&&n.nodes[0]instanceof yM}function SF(n){return!!n.i18n}function CC(n){return n.nodes[0]}function Zv(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 Ps(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function l_(n){var r={};return n.forEach(function(e,i){r[i]=rn(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function Nv(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];e.push.apply(e,o),n.set(r,e)}function n3(n){var r=arguments.length>1&&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 bu?n.nodes.find(function(s){return s instanceof _C}):n;return a&&a.children.filter(function(s){return s instanceof gF}).forEach(function(s,l){var u=Zv(i+l,e);Nv(o,s.name,u)}),o}function TM(){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[u_(i,r)]=n[i]}),e}function u_(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=Lv(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 r3(n){return"".concat("MSG_").concat(n).toUpperCase()}function i3(n){return new Dp(n.name,void 0,ia,void 0,n.sourceSpan)}var xF=/[-.]/,wC="_t",tc="ctx",Bv="rf",xM="restoredCtx",Fv=new Set([Le.element,Le.elementStart,Le.elementEnd,Le.elementContainer,Le.elementContainerStart,Le.elementContainerEnd,Le.i18nExp,Le.listener,Le.classProp,Le.syntheticHostListener,Le.hostProperty,Le.syntheticHostProperty,Le.property,Le.propertyInterpolate1,Le.propertyInterpolate2,Le.propertyInterpolate3,Le.propertyInterpolate4,Le.propertyInterpolate5,Le.propertyInterpolate6,Le.propertyInterpolate7,Le.propertyInterpolate8,Le.propertyInterpolateV,Le.attribute,Le.attributeInterpolate1,Le.attributeInterpolate2,Le.attributeInterpolate3,Le.attributeInterpolate4,Le.attributeInterpolate5,Le.attributeInterpolate6,Le.attributeInterpolate7,Le.attributeInterpolate8,Le.attributeInterpolateV,Le.styleProp,Le.stylePropInterpolate1,Le.stylePropInterpolate2,Le.stylePropInterpolate3,Le.stylePropInterpolate4,Le.stylePropInterpolate5,Le.stylePropInterpolate6,Le.stylePropInterpolate7,Le.stylePropInterpolate8,Le.stylePropInterpolateV,Le.textInterpolate,Le.textInterpolate1,Le.textInterpolate2,Le.textInterpolate3,Le.textInterpolate4,Le.textInterpolate5,Le.textInterpolate6,Le.textInterpolate7,Le.textInterpolate8,Le.textInterpolateV]);function mh(n,r,e){return Jn(r,null,n).callFn(e,n)}function o3(n,r){var e=null;return function(){return e||(n.push(new Dp("_t",void 0,Js)),e=ii(r)),e}}function _h(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function bl(n){return Array.isArray(n)?di(n.map(bl)):rn(n,ia)}function Uv(n,r){return Object.getOwnPropertyNames(n).length>0?function fV(n,r){return Xs(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Nn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:xF.test(s),value:r&&l?di([bl(a),bl(o)]):bl(a)}}))}(n,r):null}function Rp(n){for(;Oc(n[n.length-1]);)n.pop();return n}function EM(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return rn(a.trim())});e.push.apply(e,(0,fn.Z)(o))}),r.getConstLiteral(di(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Jn(Le.resolveForwardRef).callFn([n.predicate.expression])}}var Sa=function(){function n(){(0,U.Z)(this,n),this.values=[]}return(0,B.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Xs(this.values)}}]),n}();function Sd(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 kC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,xn.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&&Fv.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=mh(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 a3(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ec.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?fh(Object.assign(Object.assign({},i),{delegate:n.useClass.expression,delegateDeps:a,delegateType:Op.Class})):o?fh(i):{statements:[],expression:l3(n.type.value,n.useClass.expression,r)}}else e=void 0!==n.useFactory?void 0!==n.deps?fh(Object.assign(Object.assign({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:Op.Function})):{statements:[],expression:aa([],[new _s(n.useFactory.callFn([]))])}:void 0!==n.useValue?fh(Object.assign(Object.assign({},i),{expression:n.useValue.expression})):void 0!==n.useExisting?fh(Object.assign(Object.assign({},i),{expression:Jn(Le.inject).callFn([n.useExisting.expression])})):{statements:[],expression:l3(n.type.value,n.internalType,r)};var s=n.internalType,l=new Sa;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",Vl(n.providedIn)),{expression:Jn(Le.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:s3(n),statements:e.statements}}function s3(n){return new hs(Jn(Le.InjectableDeclaration,[Md(n.type.type,n.typeArgumentCount)]))}function l3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):u3(e?Jn(Le.resolveForwardRef).callFn([r]):r)}function u3(n){return aa([new Go("t",Js)],[new _s(n.prop("\u0275fac").callFn([ii("t")]))])}var AF=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var TC=function(){function n(r,e){(0,U.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function c3(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];AF.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])):wu}}]),n}(),wu=new TC("{{","}}"),Up=123,Lc=125;function LM(n){return n>=9&&n<=32||160==n}function Hp(n){return 48<=n&&n<=57}function ZM(n){return n>=97&&n<=122||n>=65&&n<=90}function Zc(n){return 10===n||13===n}function __(n){return 48<=n&&n<=55}function PC(n){return 39===n||34===n||96===n}var Dd,g_=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,B.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(;a<o&&e>0;){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;l<e&&a>0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l<e&&s<o.length-1&&(l++,"\n"!=o[++s]||++u!=i););return{before:o.substring(a,this.offset),after:o.substring(this.offset,s+1)}}return null}}]),n}(),RC=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.content=r,this.url=e}),Qa=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,U.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,B.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 Vv=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,U.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,B.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 BM=0;function v_(n){return n.replace(/\W/g,"_")}var LC,FM='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',NF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.call(this,!1)}return(0,B.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(FM,"(")),a.print(o,"[".concat(l.map(function(u){return Ua(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Ua(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(FM,"("));for(var l=[o.serializeI18nHead()],u=1;u<o.messageParts.length;u++)l.push(o.serializeI18nTemplatePart(u));return a.print(o,"[".concat(l.map(function(d){return Ua(d.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(d){return Ua(d.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(d){a.print(o,", "),d.visitExpression(s,a)}),a.print(o,")"),null}},{key:"_visitParams",value:function(o,a){this.visitAllObjects(function(s){return a.print(null,s.name)},o,a,",")}}]),e}(HP);function FF(n){var r;return(null===(r=function BF(){if(void 0===LC&&(LC=null,Ku.trustedTypes))try{LC=Ku.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(n){}return LC}())||void 0===r?void 0:r.createScript(n))||n}function UM(){for(var n=arguments.length,r=new Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!Ku.trustedTypes)return(0,Ul.Z)(Function,r);var i=r.slice(0,-1).join(","),o=r[r.length-1],a="(function anonymous(".concat(i,"\n) { ").concat(o,"\n})"),s=Ku.eval(FF(a));return void 0===s.bind?(0,Ul.Z)(Function,r):(s.toString=function(){return a},s.bind(Ku))}var ZC=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new w3(o),l=iV.createRoot();return i.length>0&&!function HM(n){return n.isEquivalent(rn("use strict").toStmt())}(i[0])&&(i=[rn("use strict").toStmt()].concat((0,fn.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=UM.apply(void 0,(0,fn.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=UM.apply(void 0,(0,fn.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,fn.Z)(i))}}]),n}(),w3=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,B.Z)(e,[{key:"createReturnStmt",value:function(o){new _s(new iM(this._evalExportedVars.map(function(s){return new yu(s,ii(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a<this._evalArgNames.length;a++)o[this._evalArgNames[a]]=this._evalArgValues[a];return o}},{key:"visitExternalExpr",value:function(o,a){return this._emitReferenceToExternal(o,this.refResolver.resolveExternalReference(o.value),a),null}},{key:"visitWrappedNodeExpr",value:function(o,a){return this._emitReferenceToExternal(o,o.node,a),null}},{key:"visitDeclareVarStmt",value:function(o,a){return o.hasModifier(Os.Exported)&&this._evalExportedVars.push(o.name),(0,dt.Z)((0,Ut.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(Os.Exported)&&this._evalExportedVars.push(o.name),(0,dt.Z)((0,Ut.Z)(e.prototype),"visitDeclareFunctionStmt",this).call(this,o,a)}},{key:"_emitReferenceToExternal",value:function(o,a,s){var l=this._evalArgValues.indexOf(a);if(-1===l){l=this._evalArgValues.length,this._evalArgValues.push(a);var u=function ZF(n){if(!n||!n.reference)return null;var r=n.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Mp(r);return e.indexOf("(")>=0?(e="anonymous_".concat(BM++),r.__anonymousType=e):e=v_(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(NF);function k3(n){var r=new Sa;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",di(n.imports)),{expression:Jn(Le.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:Ad(n),statements:[]}}function Ad(n){return new hs(Jn(Le.InjectorDeclaration,[new hs(n.type.type)]))}var y_,yh,T3=function(){function n(r){(0,U.Z)(this,n),this.context=r}return(0,B.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 jM(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 Sa;if(C.set("type",e),i.length>0&&C.set("bootstrap",yl(i,u)),d===y_.Inline)o.length>0&&C.set("declarations",yl(o,u)),a.length>0&&C.set("imports",yl(a,u)),s.length>0&&C.set("exports",yl(s,u));else if(d===y_.SideEffect){var Z=function UF(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Sa;if(e.length>0&&s.set("declarations",yl(e,a)),i.length>0&&s.set("imports",yl(i,a)),o.length>0&&s.set("exports",yl(o,a)),0===Object.keys(s.values).length)return null;var u=function pF(n){return GP("ngJitMode",n)}(new Ep(Jn(Le.setNgModuleScope),[r,s.toLiteralMap()])),d=new Xu([],[u.toStmt()]);return new Ep(d,[]).toStmt()}(n);null!==Z&&g.push(Z)}return null!==l&&l.length>0&&C.set("schemas",di(l.map(function(re){return re.value}))),null!==h&&(C.set("id",h),g.push(Jn(Le.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Jn(Le.defineNgModule).callFn([C.toLiteralMap()],void 0,!0),type:S3(n),statements:g}}function S3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new hs(Jn(Le.NgModuleDeclaration,[new hs(r.type),null===s?GM(e):HF(s),a?GM(o):ke,GM(i)]))}function GM(n){var r=n.map(function(e){return r_(e.type)});return n.length>0?Is(di(r)):ke}function HF(n){var r=n.map(function(e){return r_(e)});return n.length>0?Is(di(r)):ke}function x3(n){var r=[];return r.push({key:"name",value:rn(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:rn(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:rn(!0),quoted:!1}),{expression:Jn(Le.definePipe).callFn([Xs(r)],void 0,!0),type:jF(n),statements:[]}}function jF(n){return new hs(Jn(Le.PipeDeclaration,[Md(n.type.type,n.typeArgumentCount),new hs(new ue(n.pipeName)),new hs(new ue(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(y_||(y_={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(yh||(yh={}));var jp,bh=(0,B.Z)(function n(r,e,i,o){(0,U.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)}),Ch=function(){function n(r,e){(0,U.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,[{key:"toAbsolute",value:function(e){return new Su(e+this.start,e+this.end)}}]),n}(),Ha=function(){function n(r,e){(0,U.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),Yv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,B.Z)(e)}(Ha),Yl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Ha),Kv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.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}(Ha),NC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.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}(Kv),BC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.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}(Ha),qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,B.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}(Ha),wh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.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}(Yv),zM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,B.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}(Yv),Jv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.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}(Yv),Qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.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}(Ha),Xv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.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}(Ha),Od=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,B.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}(Ha),FC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,B.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}(Yv),$s=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,B.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}(Ha),kh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.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}(Ha),WM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,B.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}(Ha),gs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,B.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}(Ha),Kl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,B.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}(Ha),Mu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.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,B.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 $s(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new $s(o,a,0))}}]),e}(Kl),UC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.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}(Ha),$v=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.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}(Ha),b_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.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}(Ha),HC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.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}(Ha),Su=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.start=r,this.end=e}),ql=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,new Ch(0,null===o?0:o.length),new Su(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,B.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}(Ha),VM=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),GF=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),zF=function(){function n(){(0,U.Z)(this,n)}return(0,B.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,xn.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}(),WF=function(){function n(){(0,U.Z)(this,n)}return(0,B.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 gs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new $s(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new wh(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new zM(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new Jv(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new kh(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new WM(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Mu.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Mu.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 Kl(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new UC(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new $v(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new qv(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new FC(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Qv(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new Od(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new b_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new HC(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<e.length;++o)i[o]=e[o].visit(this);return i}},{key:"visitChain",value:function(e,i){return new BC(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitSafeKeyedRead",value:function(e,i){return new Xv(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),n}(),YM=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new gs(e.span,e.sourceSpan,e.strings,o):e}},{key:"visitLiteralPrimitive",value:function(e,i){return e}},{key:"visitPropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new wh(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitPropertyWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.value.visit(this);return o!==e.receiver||a!==e.value?new zM(e.span,e.sourceSpan,e.nameSpan,o,e.name,a):e}},{key:"visitSafePropertyRead",value:function(e,i){var o=e.receiver.visit(this);return o!==e.receiver?new Jv(e.span,e.sourceSpan,e.nameSpan,o,e.name):e}},{key:"visitLiteralArray",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new kh(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new WM(e.span,e.sourceSpan,e.keys,o):e}},{key:"visitUnary",value:function(e,i){var o=e.expr.visit(this);if(o!==e.expr)switch(e.operator){case"+":return Mu.createPlus(e.span,e.sourceSpan,o);case"-":return Mu.createMinus(e.span,e.sourceSpan,o);default:throw new Error("Unknown unary operator ".concat(e.operator))}return e}},{key:"visitBinary",value:function(e,i){var o=e.left.visit(this),a=e.right.visit(this);return o!==e.left||a!==e.right?new Kl(e.span,e.sourceSpan,e.operation,o,a):e}},{key:"visitPrefixNot",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new UC(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new $v(e.span,e.sourceSpan,o):e}},{key:"visitConditional",value:function(e,i){var o=e.condition.visit(this),a=e.trueExp.visit(this),s=e.falseExp.visit(this);return o!==e.condition||a!==e.trueExp||s!==e.falseExp?new qv(e.span,e.sourceSpan,o,a,s):e}},{key:"visitPipe",value:function(e,i){var o=e.exp.visit(this),a=this.visitAll(e.args);return o!==e.exp||a!==e.args?new FC(e.span,e.sourceSpan,o,e.name,a,e.nameSpan):e}},{key:"visitKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new Qv(e.span,e.sourceSpan,o,a):e}},{key:"visitKeyedWrite",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this),s=e.value.visit(this);return o!==e.receiver||a!==e.key||s!==e.value?new Od(e.span,e.sourceSpan,o,a,s):e}},{key:"visitAll",value:function(e){for(var i=[],o=!1,a=0;a<e.length;++a){var s=e[a],l=s.visit(this);i[a]=l,o=o||l!==s}return o?i:e}},{key:"visitChain",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new BC(e.span,e.sourceSpan,o):e}},{key:"visitCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new b_(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeCall",value:function(e,i){var o=e.receiver.visit(this),a=this.visitAll(e.args);return o!==e.receiver||a!==e.args?new HC(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new Xv(e.span,e.sourceSpan,o,a):e}}]),n}(),KM=(0,B.Z)(function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===jp.LITERAL_ATTR,this.isAnimation=this.type===jp.ANIMATION});!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION"}(jp||(jp={}));var E3=(0,B.Z)(function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),D3=(0,B.Z)(function n(r,e,i,o,a){(0,U.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),VF=(0,B.Z)(function n(r,e,i,o,a,s,l,u){(0,U.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}),qM=(0,B.Z)(function n(){(0,U.Z)(this,n)});function C_(n,r,e,i,o,a,s){n||(n=new I3(s));var l=function YF(n,r){return function A3(n,r){var e=new QF(n);return r.visit(e)}(n,r)}({createLiteralArrayConverter:function(Z){return function(z){return di(z)}},createLiteralMapConverter:function(Z){return function(z){return Xs(Z.map(function(re,ae){return{key:re.key,value:z[ae],quoted:re.quoted}}))}},createPipeConverter:function(Z){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(Z))}},e),u=new ey(n,r,i,!1,o,a),d=[];k_(l.visit(u,Oi.Statement),d),function JM(n,r,e){for(var i=n-1;i>=0;i--)e.unshift(O3(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof Ap&&(d[h]=new _s(g.expr))}return d}qM.event=ii("$event");var Oi,w_=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.stmts=r,this.currValExpr=e});function Th(n,r,e,i){n||(n=new I3);var o=new ey(n,r,i,!1),a=e.visit(o,Oi.Expression),s=qF(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new w_(s,a)}function qF(n,r){for(var e=[],i=0;i<n.temporaryCount;i++)e.push(O3(r,i));return e}function jC(n,r){return"tmp_".concat(n,"_").concat(r)}function O3(n,r){return new Dp(jC(n,r))}function GC(n,r){if(n!==Oi.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function vs(n,r){return n===Oi.Statement?r.toStmt():r}!function(n){n[n.Statement=0]="Statement",n[n.Expression=1]="Expression"}(Oi||(Oi={}));var QF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,B.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,fn.Z)(o.args)).map(function(u){return u.visit(s,a)});return new T_(o.span,o.sourceSpan,l,this._converterFactory.createPipeConverter(o.name,l.length))}},{key:"visitLiteralArray",value:function(o,a){var s=this,l=o.expressions.map(function(u){return u.visit(s,a)});return new T_(o.span,o.sourceSpan,l,this._converterFactory.createLiteralArrayConverter(o.expressions.length))}},{key:"visitLiteralMap",value:function(o,a){var s=this,l=o.values.map(function(u){return u.visit(s,a)});return new T_(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(WF),ey=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this._localResolver=r,this._implicitReceiver=e,this.bindingId=i,this.supportsInterpolation=o,this.baseSourceSpan=a,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}return(0,B.Z)(n,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=Ge.Plus;break;case"-":o=Ge.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return vs(i,new $u(o,this._visit(e.expr,Oi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=it.Plus;break;case"-":o=it.Minus;break;case"*":o=it.Multiply;break;case"/":o=it.Divide;break;case"%":o=it.Modulo;break;case"&&":o=it.And;break;case"||":o=it.Or;break;case"==":o=it.Equals;break;case"!=":o=it.NotEquals;break;case"===":o=it.Identical;break;case"!==":o=it.NotIdentical;break;case"<":o=it.Lower;break;case">":o=it.Bigger;break;case"<=":o=it.LowerEquals;break;case">=":o=it.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return vs(i,new bo(o,this._visit(e.left,Oi.Expression),this._visit(e.right,Oi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function JF(n,r){if(n!==Oi.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 vs(i,this._visit(e.condition,Oi.Expression).conditional(this._visit(e.trueExp,Oi.Expression),this._visit(e.falseExp,Oi.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 GC(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");GC(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(rn(e.strings[a])),o.push(this._visit(e.expressions[a],Oi.Expression));o.push(rn(e.strings[e.strings.length-1]));var s=e.strings;return 2===s.length&&""===s[0]&&""===s[1]?o=[o[1]]:e.expressions.length>=9&&(o=[di(o)]),new XF(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):vs(i,this._visit(e.receiver,Oi.Expression).key(this._visit(e.key,Oi.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this._visit(e.key,Oi.Expression),s=this._visit(e.value,Oi.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),vs(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?ia:void 0;return vs(i,rn(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 NC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return vs(i,uh(this._visit(e.expression,Oi.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return vs(i,this._visit(e.expression,Oi.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,Oi.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))),vs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof cC)){var u=e.name,d=e.value instanceof wh?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))),vs(i,s.set(this._visit(e.value,Oi.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,Oi.Expression);if(e instanceof T_)return vs(i,e.converter(a));var s=e.receiver;if(s instanceof wh&&s.receiver instanceof Kv&&!(s.receiver instanceof NC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return vs(i,a[0])}return vs(i,this._visit(s,Oi.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,Oi.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 HC?this._nodeMap.set(i,new b_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Xv?this._nodeMap.set(i,new Qv(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new wh(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,Oi.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),vs(o,l.conditional(t_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,Oi.Expression),a=this._visit(e.right,Oi.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),vs(i,s.set(o).notIdentical(t_).and(s.notIdentical(rn(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 ms(jC(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=jC(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 Qa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function k_(n,r){Array.isArray(n)?n.forEach(function(e){return k_(e,r)}):r.push(n)}function QM(){throw new Error("Unsupported operation")}var ty,XF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=QM,o.isEquivalent=QM,o.visitExpression=QM,o}return(0,B.Z)(e)}(Rr),I3=function(){function n(r){(0,U.Z)(this,n),this.globals=r}return(0,B.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===qM.event.name?qM.event:null}}]),n}(),T_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o,new Yl(i,o),a,null)).converter=s,l}return(0,B.Z)(e)}(b_);function XM(){return ty||(ty={},zC(Hi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),zC(Hi.STYLE,["*|style"]),zC(Hi.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"]),zC(Hi.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"])),ty}function zC(n,r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;ty[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var M_=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Nc(n){return M_.has(n.toLowerCase())}var $F=function(){function n(){(0,U.Z)(this,n),this.strictStyling=!0}return(0,B.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=a4(e);e=F3(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,fn.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(vV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(yV,function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0].replace(o[1],"").replace(o[2],"");return o[4]+s})}},{key:"_scopeCssText",value:function(e,i,o){var a=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),i&&(e=this._scopeSelectors(e,i,o)),(e=e+"\n"+a).trim()}},{key:"_extractUnscopedRulesFromCssText",value:function(e){var o,i="";for($M.lastIndex=0;null!==(o=$M.exec(e));){i+=o[0].replace(o[2],"").replace(o[1],o[4])+"\n\n"}return i}},{key:"_convertColonHost",value:function(e){return e.replace(R3,function(i,o,a){if(o){var d,s=[],l=o.split(",").map(function(C){return C.trim()}),u=(0,xn.Z)(l);try{for(u.s();!(d=u.n()).done;){var h=d.value;if(!h)break;var g=Mh+h.replace(eS,"")+a;s.push(g)}}catch(C){u.e(C)}finally{u.f()}return s.join(",")}return Mh+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(t4,function(i){for(var o,s,a=[[]];s=L3.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(g){return g.trim()}).filter(function(g){return""!==g}),u=a.length;c4(a,l.length);for(var d=0;d<l.length;d++)for(var h=0;h<u;h++)a[h+d*u].push(l[d]);i=s[2]}return a.map(function(g){return function u4(n,r){var e=Mh;S_.lastIndex=0;var i=S_.test(r);if(0===n.length)return e+r;for(var o=[n.pop()||""];n.length>0;)for(var a=o.length,s=n.pop(),l=0;l<a;l++){var u=o[l];o[2*a+l]=u+" "+s,o[a+l]=s+" "+u,o[l]=s+u}return o.map(function(d){return i?"".concat(d).concat(r):"".concat(d).concat(e).concat(r,", ").concat(d," ").concat(e).concat(r)}).join(",")}(g,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return rc.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return rS(e,function(s){var l=s.selector,u=s.content;return"@"!==s.selector[0]?l=a._scopeSelector(s.selector,i,o,a.strictStyling):s.selector.startsWith("@media")||s.selector.startsWith("@supports")||s.selector.startsWith("@document")||s.selector.startsWith("@layer")?u=a._scopeSelectors(s.content,i,o):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(u=a._stripScopingSelectors(s.content)),new nS(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return rS(e,function(i){var o=i.selector.replace(N3," ").replace(Z3," ");return new nS(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(N3)}).map(function(l){var Z,u=(0,vo.Z)(l),d=u[0],h=u.slice(1);return[(Z=d,s._selectorNeedsScoping(Z,i)?a?s._applyStrictSelectorScope(Z,i,o):s._applySelectorScope(Z,i,o):Z)].concat((0,fn.Z)(h)).join(" ")}).join(", ")}},{key:"_selectorNeedsScoping",value:function(e,i){return!this._makeScopeMatcher(i).test(e)}},{key:"_makeScopeMatcher",value:function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+B3,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(S_.lastIndex=0,S_.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(Z3,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,d,h,g){return d+a+h+g})}).replace(S_,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(xe){return arguments.length<=1?void 0:arguments[1]});for(var C,l="["+i+"]",u=function(Ve){var at=Ve.trim();if(!at)return"";if(Ve.indexOf(Mh)>-1)at=a._applySimpleSelectorScope(Ve,i,o);else{var De=Ve.replace(S_,"");if(De.length>0){var ot=De.match(/([^:]*)(:*)(.*)/);ot&&(at=ot[1]+l+ot[2]+ot[3])}}return at},d=new e4(e),h="",g=0,Z=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Mh)>-1);null!==(C=Z.exec(e));){var re=C[1],ae=e.slice(g,C.index).trim(),Se=(q=q||ae.indexOf(Mh)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=Z.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Mh)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(r4,WC).replace(n4,eS)}}]),n}(),e4=function(){function n(r){var e=this;(0,U.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,B.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}(),vV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,yV=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$M=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eS="-shadowcsshost",WC="-shadowcsscontext",P3="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",R3=new RegExp(eS+P3,"gim"),t4=new RegExp(WC+P3,"gim"),L3=new RegExp(WC+P3,"im"),Mh=eS+"-no-combinator",Z3=/-shadowcsshost-no-combinator([^\s]*)/,rc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],N3=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,B3="([>\\s~+[.,{:][\\s\\S]*)?$",S_=/-shadowcsshost/gim,n4=/:host/gim,r4=/:host-context/gim,i4=/\/\*[\s\S]*?\*\//g;function F3(n){return n.replace(i4,"")}var o4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function a4(n){return n.match(o4)||[]}var tS="%BLOCK%",U3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,H3=/%QUOTED%/g,j3=new Map([["{","}"]]),s4=new Map([['"','"'],["'","'"]]),nS=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.selector=r,this.content=e});function rS(n,r){var e=iS(n,s4,"%QUOTED%"),i=iS(e.escapedString,j3,tS),o=0,a=0;return i.escapedString.replace(U3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+tS)&&(l=i.blocks[o++],u=u.substring(tS.length+1),d="{");var h=r(new nS(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(H3,function(){return e.blocks[a++]})}var l4=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.escapedString=r,this.blocks=e});function iS(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h<n.length;h++){var g=n[h];"\\"===g?h++:g===d?0===--a&&(o.push(n.substring(l,h)),i.push(e),s=h,l=-1,u=d=void 0):g===u?a++:0===a&&r.has(g)&&(u=g,d=r.get(g),a=1,l=h+1,i.push(n.substring(s,l)))}return-1!==l?(o.push(n.substring(l)),i.push(e)):i.push(n.substring(s)),new l4(i.join(""),o)}function c4(n,r){for(var e=n.length,i=1;i<r;i++)for(var o=0;o<e;o++)n[o+i*e]=n[o].slice(0)}function oS(n){var r=n.charCodeAt(0);if(r==n.charCodeAt(n.length-1)&&(39==r||34==r)){var i=n.substring(1,n.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(n=i)}return n}function aS(n){return n.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var Xr,YC=function(){function n(r){(0,U.Z)(this,n),this._directiveExpr=r,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}return(0,B.Z)(n,[{key:"registerBoundInput",value:function(e){var i=null,o=e.name;switch(e.type){case 0:i=this.registerInputBasedOnName(o,e.value,e.sourceSpan);break;case 3:i=this.registerStyleInput(o,!1,e.value,e.sourceSpan,e.unit);break;case 2:i=this.registerClassInput(o,!1,e.value,e.sourceSpan)}return!!i}},{key:"registerInputBasedOnName",value:function(e,i,o){var a=null,s=e.substring(0,6),l="style"===e||"style."===s||"style!"===s;if(l||!l&&("class"===e||"class."===s||"class!"===s)){var d="."!==e.charAt(5),h=e.slice(d?5:6);a=l?this.registerStyleInput(h,d,i,o):this.registerClassInput(h,d,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(sS(o))return null;(function m4(n){return n.startsWith("--")})(e)||(e=aS(e));var l=G3(e),u=l.property,d=l.hasOverrideFlag,h=l.suffix,g={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:d};return i?this._styleMapInput=g:((this._singleStyleInputs=this._singleStyleInputs||[]).push(g),KC(this._stylesIndex,u)),this._lastStylingInput=g,this._firstStylingInput=this._firstStylingInput||g,this._checkForPipes(o),this.hasBindings=!0,g}},{key:"registerClassInput",value:function(e,i,o,a){if(sS(o))return null;var s=G3(e),l=s.property,d={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=d:((this._singleClassInputs=this._singleClassInputs||[]).push(d),KC(this._classesIndex,l)),this._lastStylingInput=d,this._firstStylingInput=this._firstStylingInput||d,this._checkForPipes(o),this.hasBindings=!0,d}},{key:"_checkForPipes",value:function(e){e instanceof ql&&e.ast instanceof FC&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function d4(n){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<n.length;)switch(n.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,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=aS(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?oS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?oS(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(rn(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(rn(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(rn(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(rn(this._initialStyleValues[o]),rn(this._initialStyleValues[o+1]))}}},{key:"assignHostAttrs",value:function(e,i){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),i.set("hostAttrs",di(e)))}},{key:"buildClassMapInstruction",value:function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null}},{key:"buildStyleMapInstruction",value:function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null}},{key:"_buildMapBasedInstruction",value:function(e,i,o){var l,a=2,s=o.value.visit(e);return s instanceof gs?(a+=s.expressions.length,l=i?function p4(n){switch(Sd(n)){case 1:return Le.classMap;case 3:return Le.classMapInterpolate1;case 5:return Le.classMapInterpolate2;case 7:return Le.classMapInterpolate3;case 9:return Le.classMapInterpolate4;case 11:return Le.classMapInterpolate5;case 13:return Le.classMapInterpolate6;case 15:return Le.classMapInterpolate7;case 17:return Le.classMapInterpolate8;default:return Le.classMapInterpolateV}}(s):function f4(n){switch(Sd(n)){case 1:return Le.styleMap;case 3:return Le.styleMapInterpolate1;case 5:return Le.styleMapInterpolate2;case 7:return Le.styleMapInterpolate3;case 9:return Le.styleMapInterpolate4;case 11:return Le.styleMapInterpolate5;case 13:return Le.styleMapInterpolate6;case 15:return Le.styleMapInterpolate7;case 17:return Le.styleMapInterpolate8;default:return Le.styleMapInterpolateV}}(s)):l=i?Le.classMap:Le.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(d){var h=d(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var d=l[l.length-1],h=u.value.visit(o),g=e,C=2;h instanceof gs&&(C+=h.expressions.length,a&&(g=a(h)));var Z={sourceSpan:u.sourceSpan,allocateBindingSlots:C,supportsInterpolation:!!a,params:function(q){var re=[];re.push(rn(u.name));var ae=q(h);return Array.isArray(ae)?re.push.apply(re,(0,fn.Z)(ae)):re.push(ae),!s&&null!==u.suffix&&re.push(rn(u.suffix)),re}};d&&d.reference===g?d.calls.push(Z):l.push({reference:g,calls:[Z]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(Le.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(Le.styleProp,this._singleStyleInputs,e,h4,!1):[]}},{key:"buildUpdateLevelInstructions",value:function(e){var i=[];if(this.hasBindings){var o=this.buildStyleMapInstruction(e);o&&i.push(o);var a=this.buildClassMapInstruction(e);a&&i.push(a),i.push.apply(i,(0,fn.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,fn.Z)(this._buildClassInputs(e)))}return i}}]),n}();function KC(n,r){n.has(r)||n.set(r,n.size)}function G3(n){var r=!1,e=n.indexOf("!important");-1!==e&&(n=e>0?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 h4(n){switch(Sd(n)){case 1:return Le.styleProp;case 3:return Le.stylePropInterpolate1;case 5:return Le.stylePropInterpolate2;case 7:return Le.stylePropInterpolate3;case 9:return Le.stylePropInterpolate4;case 11:return Le.stylePropInterpolate5;case 13:return Le.stylePropInterpolate6;case 15:return Le.stylePropInterpolate7;case 17:return Le.stylePropInterpolate8;default:return Le.stylePropInterpolateV}}function sS(n){return n instanceof ql&&(n=n.ast),n instanceof Yl}!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 _4=["var","let","as","null","undefined","true","false","if","else","this"],Id=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"tokenize",value:function(e){for(var i=new dS(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Pd=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,B.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 Pd(n,r,Xr.Character,e,String.fromCharCode(e))}function uS(n,r,e){return new Pd(n,r,Xr.Operator,0,e)}var cS=new Pd(-1,-1,Xr.Character,0,""),dS=function(){function n(r){(0,U.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,B.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(pS(o))return this.scanIdentifier();if(Hp(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),Hp(this.peek)?this.scanNumber(s):lS(s,this.index,46);case 40:case 41:case Up:case Lc: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(;LM(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();qC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return _4.indexOf(i)>-1?function W3(n,r,e){return new Pd(n,r,Xr.Keyword,0,e)}(e,this.index,i):function z3(n,r,e){return new Pd(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!pS(this.peek))return this.error("Invalid character [#]",-1);for(;qC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function g4(n,r,e){return new Pd(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(!Hp(this.peek))if(95===this.peek){if(!Hp(this.input.charCodeAt(this.index-1))||!Hp(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!fS(this.peek))break;if(this.advance(),ny(this.peek)&&this.advance(),!Hp(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 Y3(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function y4(n,r,e){return new Pd(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=V3(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 v4(n,r,e){return new Pd(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 b4(n,r,e){return new Pd(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function pS(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function qC(n){return ZM(n)||Hp(n)||95==n||36==n}function fS(n){return 101==n||69==n}function ny(n){return 45==n||43==n}function V3(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 Sh,w4=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),x_=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),hS=function(){function n(r){(0,U.Z)(this,n),this._lexer=r,this.errors=[]}return(0,B.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new Gp(e,o,a,u,d,this.errors,0).parseChain();return new ql(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,s=this._parseBindingAst(e,i,o,a);return new ql(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new ic;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,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 ql(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new bh(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 Gp(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 Gp(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Su(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu,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;C<d.length;++C){var Z=d[C].text,z=this._stripComments(Z),q=this._lexer.tokenize(z),re=new Gp(e,i,o,q,0,this.errors,h[C]).parseChain();g.push(re)}return this.createInterpolationAst(u.map(function(ae){return ae.text}),g,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new Gp(e,i,o,s,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[l],e,i,o)}},{key:"createInterpolationAst",value:function(e,i,o,a,s){var l=new Ch(0,o.length),u=new gs(l,l.toAbsolute(s),e,i);return new ql(u,o,a,s,this.errors)}},{key:"splitInterpolation",value:function(e,i,o){for(var s,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,l=[],u=[],d=[],h=o?K3(o):null,g=0,C=!1,Z=!1,z=a.start,q=a.end;g<e.length;)if(C){var Se=g,Ce=Se+z.length,xe=this._getInterpolationEndIndex(e,q,Ce);if(-1===xe){C=!1,Z=!0;break}var Ve=xe+q.length,at=e.substring(Ce,xe);0===at.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(g," in"),i),u.push({text:at,start:Se,end:Ve});var De=null!==(s=null==h?void 0:h.get(Se))&&void 0!==s?s:Se,ot=De+z.length;d.push(ot),g=Ve,C=!1}else{var re=g;-1===(g=e.indexOf(z,g))&&(g=e.length);var ae=e.substring(re,g);l.push({text:ae,start:re,end:g}),C=!0}if(!C)if(Z){var ht=l[l.length-1];ht.text+=e.substring(g),ht.end=e.length}else l.push({text:e.substring(g),start:g,end:e.length});return new w4(l,u,d)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new Ch(0,null==e?0:e.length);return new ql(new $s(a,a.toAbsolute(o),e),e,i,o,this.errors)}},{key:"_stripComments",value:function(e){var i=this._commentStart(e);return null!=i?e.substring(0,i):e}},{key:"_commentStart",value:function(e){for(var i=null,o=0;o<e.length-1;o++){var a=e.charCodeAt(o),s=e.charCodeAt(o+1);if(47===a&&47==s&&null==i)return o;i===a?i=null:null==i&&PC(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,d=(0,xn.Z)(this._forEachUnquotedChar(e,0));try{for(d.s();!(h=d.n()).done;){var g=h.value;if(-1===l)e.startsWith(a)&&(l=g);else if((u=this._getInterpolationEndIndex(e,s,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,xn.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<e.length)){d.next=16;break}if(l=e[s],!PC(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){d.next=9;break}o=null===o?l:null,d.next=12;break;case 9:if(null!==o){d.next=12;break}return d.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,d.next=3;break;case 16:case"end":return d.stop()}},r)})}]),n}();!function(n){n[n.None=0]="None",n[n.Writable=1]="Writable"}(Sh||(Sh={}));var Gp=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.input=r,this.location=e,this.absoluteOffset=i,this.tokens=o,this.parseFlags=a,this.errors=s,this.offset=l,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Sh.None,this.sourceSpanCache=new Map,this.index=0}return(0,B.Z)(n,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:cS}},{key:"next",get:function(){return this.peek(0)}},{key:"atEOF",get:function(){return this.index>=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 Ch(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===cS?"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<this.tokens.length;){var o=this.parsePipe();if(e.push(o),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){var a=this.index;if(this.error("Unexpected token '".concat(this.next,"'")),this.index===a)break}}if(0===e.length){var s=this.offset,l=this.offset+this.input.length;return new Yl(this.span(s,l),this.sourceSpan(s,l))}return 1==e.length?e[0]:new BC(this.span(i),this.sourceSpan(i),e)}},{key:"parsePipe",value:function(){var e=this.inputIndex,i=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{var o=this.inputIndex,a=this.expectIdentifierOrKeyword(),s=void 0,l=void 0;null!==a?s=this.sourceSpan(o):(a="",l=-1!==this.next.index?this.next.index:this.input.length+this.offset,s=new Ch(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new FC(this.span(e),this.sourceSpan(e,l),i,a,u,s)}while(this.consumeOptionalOperator("|"))}return i}},{key:"parseExpression",value:function(){return this.parseConditional()}},{key:"parseConditional",value:function(){var e=this.inputIndex,i=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){var a,o=this.parsePipe();if(this.consumeOptionalCharacter(58))a=this.parsePipe();else{var s=this.inputIndex,l=this.input.substring(e,s);this.error("Conditional expression ".concat(l," requires all 3 expressions")),a=new Yl(this.span(e),this.sourceSpan(e))}return new qv(this.span(e),this.sourceSpan(e),i,o,a)}return i}},{key:"parseLogicalOr",value:function(){for(var e=this.inputIndex,i=this.parseLogicalAnd();this.consumeOptionalOperator("||");){var o=this.parseLogicalAnd();i=new Kl(this.span(e),this.sourceSpan(e),"||",i,o)}return i}},{key:"parseLogicalAnd",value:function(){for(var e=this.inputIndex,i=this.parseNullishCoalescing();this.consumeOptionalOperator("&&");){var o=this.parseNullishCoalescing();i=new Kl(this.span(e),this.sourceSpan(e),"&&",i,o)}return i}},{key:"parseNullishCoalescing",value:function(){for(var e=this.inputIndex,i=this.parseEquality();this.consumeOptionalOperator("??");){var o=this.parseEquality();i=new Kl(this.span(e),this.sourceSpan(e),"??",i,o)}return i}},{key:"parseEquality",value:function(){for(var e=this.inputIndex,i=this.parseRelational();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new Kl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseRelational",value:function(){for(var e=this.inputIndex,i=this.parseAdditive();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Kl(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 Kl(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 Kl(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(),Mu.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Mu.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new UC(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 $v(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 $s(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new $s(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new $s(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new $s(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new NC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new kh(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Up))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Kv(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new $s(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new $s(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Yl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Yl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Yl(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(Up),!this.consumeOptionalCharacter(Lc)){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 wh(u,d,d,new Kv(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Lc)}return new WM(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(Sh.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 Yl(this.span(i),this.sourceSpan(i))):d=new Jv(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 Yl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new zM(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new wh(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 HC(u,d,e,s,l):new b_(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 Su(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,fn.Z)(this.parseDirectiveKeywordBindings(e)));this.index<this.tokens.length;){var o=this.parseLetBinding();if(o)i.push(o);else{var a=this.expectTemplateBindingKey(),s=this.parseAsBinding(a);s?i.push(s):(a.source=e.source+a.source.charAt(0).toUpperCase()+a.source.substring(1),i.push.apply(i,(0,fn.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new x_(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Sh.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof Yl&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new Xv(a.span(i),a.sourceSpan(i),e,s):new Qv(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new Od(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new Yl(a.span(i),a.sourceSpan(i))})}},{key:"parseDirectiveKeywordBindings",value:function(e){var i=[];this.consumeOptionalCharacter(58);var o=this.getDirectiveBoundTarget(),a=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),a=this.currentAbsoluteOffset);var l=new Su(e.span.start,a);return i.push(new GF(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===cS||this.peekKeywordAs()||this.peekKeywordLet())return null;var e=this.parsePipe(),i=e.span,o=i.start,a=i.end,s=this.input.substring(o,a);return new ql(e,s,this.location,this.absoluteOffset+o,this.errors)}},{key:"parseAsBinding",value:function(e){if(!this.peekKeywordAs())return null;this.advance();var i=this.expectTemplateBindingKey();this.consumeStatementTerminator();var o=new Su(e.span.start,this.currentAbsoluteOffset);return new VM(o,i,e)}},{key:"parseLetBinding",value:function(){if(!this.peekKeywordLet())return null;var e=this.currentAbsoluteOffset;this.advance();var i=this.expectTemplateBindingKey(),o=null;this.consumeOptionalOperator("=")&&(o=this.expectTemplateBindingKey()),this.consumeStatementTerminator();var a=new Su(e,this.currentAbsoluteOffset);return new VM(a,i,o)}},{key:"consumeStatementTerminator",value:function(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}},{key:"error",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new bh(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),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}},{key:"_reportErrorForPrivateIdentifier",value:function(e,i){var o="Private identifiers are not supported. Unexpected private identifier: ".concat(e);null!==i&&(o+=", ".concat(i)),this.error(o)}},{key:"skip",value:function(){for(var e=this.next;!(!(this.index<this.tokens.length)||e.isCharacter(59)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(41)||!(this.rbracesExpected<=0)&&e.isCharacter(Lc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Sh.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new bh(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),n}(),ic=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,B.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(zF);function K3(n){for(var r=new Map,e=0,i=0,o=0;o<n.length;){var a=n[o];if(9===a.type){var s=(0,Nn.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var d=a.parts.reduce(function(h,g){return h+g.length},0);i+=d,e+=d}r.set(i,e),o++}return r}var ry=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.sourceSpan=r,this.i18n=e}),E_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(ry),xu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.Z)(this,e),(d=r.call(this,s,u)).switchValue=i,d.type=o,d.cases=a,d.switchValueSourceSpan=l,d}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(ry),mS=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),n}(),q3=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.Z)(this,e),(h=r.call(this,a,d)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(ry),iy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,U.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,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(ry),_S=function(){function n(r,e){(0,U.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function Eu(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 xh={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"};xh.ngsp="\ue500";var ay=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,B.Z)(e)}(Vv),gS=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var JC,bV=/\r\n?/g;function sy(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function J3(n){return'Unknown entity "'.concat(n,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(JC||(JC={}));var QC=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.error=r}),CV=function(){function n(r,e,i){(0,U.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||wu,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 TV(r,o):new x4(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,B.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(bV,"\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 yS(n){return n!==Lc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Lc){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 ay("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 ay("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 ay(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new QC(o)}},{key:"handleError",value:function(e){if(e instanceof $3&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof QC))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 wV(n,r){return S4(n)===S4(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(sy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()<i)return!1;for(var o=this._cursor.clone(),a=0;a<i;a++)if(!this._attemptCharCode(e.charCodeAt(a)))return this._cursor=o,!1;return!0}},{key:"_attemptStrCaseInsensitive",value:function(e){for(var i=0;i<e.length;i++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(i)))return!1;return!0}},{key:"_requireStr",value:function(e){var i=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(sy(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptCharCodeUntilFn",value:function(e){for(;!e(this._cursor.peek());)this._cursor.advance()}},{key:"_requireCharCodeUntilFn",value:function(e,i){var o=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(o)<i)throw this._createError(sy(this._cursor.peek()),this._cursor.getSpan(o))}},{key:"_attemptUntilChar",value:function(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}},{key:"_readChar",value:function(){var e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}},{key:"_consumeEntity",value:function(e){this._beginToken(9);var i=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){var o=this._attemptCharCode(120)||this._attemptCharCode(88),a=this._cursor.clone();if(this._attemptCharCodeUntilFn(X3),59!=this._cursor.peek()){this._cursor.advance();var s=o?JC.HEX:JC.DEC;throw this._createError(function k4(n,r){return'Unable to parse entity "'.concat(r,'" - ').concat(n,' character reference entities must end with ";"')}(s,this._cursor.getChars(i)),this._cursor.getSpan())}var l=this._cursor.getChars(a);this._cursor.advance();try{var u=parseInt(l,o?16:10);this._endToken([String.fromCharCode(u),this._cursor.getChars(i)])}catch(C){throw this._createError(J3(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var d=this._cursor.clone();if(this._attemptCharCodeUntilFn(M4),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=d,this._endToken(["&"]);else{var h=this._cursor.getChars(d);this._cursor.advance();var g=xh[h];if(!g)throw this._createError(J3(h),this._cursor.getSpan(i));this._endToken([g,"&".concat(h,";")])}}}},{key:"_consumeRawText",value:function(e,i){this._beginToken(e?6:7);for(var o=[];;){var a=this._cursor.clone(),s=i();if(this._cursor=a,s)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(o.join(""))]),o.length=0,this._consumeEntity(6),this._beginToken(6)):o.push(this._readChar())}this._endToken([this._processCarriageReturns(o.join(""))])}},{key:"_consumeComment",value:function(e){var i=this;this._beginToken(10,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("--\x3e")}),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}},{key:"_consumeCdata",value:function(e){var i=this;this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("]]>")}),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()&&!Q3(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(T4,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!ZM(this._cursor.peek()))throw this._createError(sy(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(Ql);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ql),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ql),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ql);this._consumeTagOpenEnd()}catch(l){if(l instanceof QC)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===mi.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===mi.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(Ql),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(Ql),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(sy(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 T4(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(Ql);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Ql),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Up),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(Ql),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ql)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Up).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ql),this._beginToken(21),this._requireCharCode(Up),this._endToken([]),this._attemptCharCodeUntilFn(Ql),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Lc),this._endToken([]),this._attemptCharCodeUntilFn(Ql),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Lc),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&&PC(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()===Lc&&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()!==Up)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 Ql(n){return!LM(n)||0===n}function T4(n){return LM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function Q3(n){return(n<97||122<n)&&(n<65||90<n)&&(n<48||n>57)}function X3(n){return 59===n||0===n||!function IC(n){return n>=97&&n<=102||n>=65&&n<=70||Hp(n)}(n)}function M4(n){return 59===n||0===n||!ZM(n)}function S4(n){return n>=97&&n<=122?n-97+65:n}function kV(n){for(var r=[],e=void 0,i=0;i<n.length;i++){var o=n[i];e&&5===e.type&&5===o.type||e&&16===e.type&&16===o.type?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}var x4=function(){function n(r,e){if((0,U.Z)(this,n),r instanceof n){this.file=r.file,this.input=r.input,this.end=r.end;var i=r.state;this.state={peek:i.peek,offset:i.offset,line:i.line,column:i.column}}else{if(!e)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=r,this.input=r.content,this.end=e.endPos,this.state={peek:-1,offset:e.startPos,line:e.startLine,column:e.startCol}}}return(0,B.Z)(n,[{key:"clone",value:function(){return new n(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(e){return this.state.offset-e.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(e,i){var o=e=e||this;if(i)for(;this.diff(e)>0&&-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 Qa(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 $3('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):Zc(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 g_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),TV=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.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,Ho.Z)(a)}return(0,B.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,dt.Z)((0,Ut.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,dt.Z)((0,Ut.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.offset<this.internalState.offset;)s+=String.fromCodePoint(a.peek()),a.advance();return s}},{key:"processEscapeSequence",value:function(){var o=this,a=function(){return o.internalState.peek};if(92===a())if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),110===a())this.state.peek=10;else if(114===a())this.state.peek=13;else if(118===a())this.state.peek=11;else if(116===a())this.state.peek=9;else if(98===a())this.state.peek=8;else if(102===a())this.state.peek=12;else if(117===a())if(this.advanceState(this.internalState),a()===Up){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==Lc;)this.advanceState(this.internalState),l++;this.state.peek=this.decodeHexDigits(s,l)}else{var u=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(u,4)}else if(120===a()){this.advanceState(this.internalState);var d=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(d,2)}else if(__(a())){for(var h="",g=0,C=this.clone();__(a())&&g<3;)C=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),g++;this.state.peek=parseInt(h,8),this.internalState=C.internalState}else Zc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}},{key:"decodeHexDigits",value:function(o,a){var s=this.input.slice(o.internalState.offset,o.internalState.offset+a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new $3("Invalid hexadecimal escape sequence",o);return l}}]),e}(x4),$3=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.msg=r,this.cursor=e}),zp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,B.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(Vv),e6=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.rootNodes=r,this.errors=e}),MV=function(){function n(r){(0,U.Z)(this,n),this.getTagDefinition=r}return(0,B.Z)(n,[{key:"parse",value:function(e,i,o){var a=function vS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new CV(new RC(n,r),e,i);return o.tokenize(),new gS(kV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new SV(a.tokens,this.getTagDefinition);return s.build(),new e6(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),SV=function(){function n(r,e){(0,U.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,B.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._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}},{key:"_advanceIf",value:function(e){return this._peek.type===e?this._advance():null}},{key:"_consumeCdata",value:function(e){this._consumeText(this._advance()),this._advanceIf(13)}},{key:"_consumeComment",value:function(e){var i=this._advanceIf(7);this._advanceIf(11);var o=null!=i?i.parts[0].trim():null;this._addToParent(new _S(o,e.sourceSpan))}},{key:"_consumeExpansion",value:function(e){for(var i=this._advance(),o=this._advance(),a=[];20===this._peek.type;){var s=this._parseExpansionCase();if(!s)return;a.push(s)}if(23===this._peek.type){var l=new Qa(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new xu(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(zp.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))}},{key:"_parseExpansionCase",value:function(){var e=this._advance();if(21!==this._peek.type)return this.errors.push(zp.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var i=this._advance(),o=this._collectExpansionExpTokens(i);if(!o)return null;var a=this._advance();o.push({type:24,parts:[],sourceSpan:a.sourceSpan});var s=new n(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new Qa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Qa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new mS(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(!Rd(o,21))return this.errors.push(zp.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!Rd(o,19))return this.errors.push(zp.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(zp.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,XC):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new E_(a,new Qa(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,Nn.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!==ti(l)||d.isVoid||this.errors.push(zp.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 Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),Z=new iy(l,s,[],g,C,void 0);this._pushElement(Z),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(zp.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(zp.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(zp.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=_i(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,XC):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 Qa(l.start,u,l.fullStart);return new q3(i,a,new Qa(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=Ji(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ti(o.name))}return _i(e,i)}}]),n}();function Rd(n,r){return n.length>0&&n[n.length-1]===r}function XC(n,r){return void 0!==xh[r]?xh[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 E4=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.call(this,wa)}return(0,B.Z)(e,[{key:"parse",value:function(o,a,s){return(0,dt.Z)((0,Ut.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(MV),bS="ngPreserveWhitespaces",CS=new Set(["pre","template","textarea","script","style"]),wS=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",kS=new RegExp("[^".concat(wS,"]")),D4=new RegExp("[".concat(wS,"]{2,}"),"g");function TS(n){return n.replace(new RegExp("\ue500","g")," ")}var t6=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e,i){return CS.has(e.name)||function Wp(n){return n.some(function(r){return r.name===bS})}(e.attrs)?new iy(e.name,Eu(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new iy(e.name,e.attrs,function O4(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!==bS?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(kS),a=i&&(i.prev instanceof xu||i.next instanceof xu);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function A4(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[MS(e[0])],sourceSpan:i}}(u):u}),l=MS(e.value);return new E_(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 MS(n){return TS(n).replace(D4," ")}function Ld(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Xs(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var xS=(0,B.Z)(function n(){(0,U.Z)(this,n)}),DS=["[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:|"],e1=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),i6=Array.from(e1).reduce(function(n,r){var e=(0,Nn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),t1=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,DS.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Nn.Z)(l,2),d=u[0],g=u[1].split(","),C=d.split("^"),Z=(0,Nn.Z)(C,2),z=Z[0],q=Z[1];z.split(",").forEach(function(ht){i._schema.set(ht.toLowerCase(),a),i._eventSchema.set(ht.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,xn.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Nn.Z)(Se.value,2),xe=Ce[0],Ve=Ce[1];a.set(xe,Ve)}}catch(ht){ae.e(ht)}finally{ae.f()}var De,at=(0,xn.Z)(i._eventSchema.get(q.toLowerCase()));try{for(at.s();!(De=at.n()).done;){var ot=De.value;s.add(ot)}}catch(ht){at.e(ht)}finally{at.f()}}g.forEach(function(ht){if(ht.length>0)switch(ht[0]){case"*":s.add(ht.substring(1));break;case"!":a.set(ht.substring(1),"boolean");break;case"#":a.set(ht.substring(1),"number");break;case"%":a.set(ht.substring(1),"object");break;default:a.set(ht,"string")}})}),i}return(0,B.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===vu.name}))return!0;if(o.indexOf("-")>-1){if(jo(o)||Qi(o))return!1;if(s.some(function(u){return u.name===ka.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===vu.name})||o.indexOf("-")>-1&&(jo(o)||Qi(o)||a.some(function(s){return s.name===ka.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=XM()[o+"|"+a];return l||((l=XM()["*|"+a])||Hi.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=e1.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=i6.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 xs(n){return n.replace(so,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}(o)}},{key:"normalizeAnimationStyleValue",value:function(o,a,s){var l="",u=s.toString().trim(),d=null;if(function I4(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(o)&&0!==s&&"0"!==s)if("number"==typeof s)l="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&(d="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:d,value:u+l}}}]),e}(xS);var P4=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function o6(n,r){return n=n.toLowerCase(),r=r.toLowerCase(),P4.has(n+"|"+r)||P4.has("*|"+r)}var el="animate-",l6=function(){function n(r,e,i,o){(0,U.Z)(this,n),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,B.Z)(n,[{key:"interpolationConfig",get:function(){return this._interpolationConfig}},{key:"createBoundHostProperties",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parsePropertyBinding(l,u,!0,i,i.start.offset,void 0,[],o,i):this._reportError('Value of the host property binding "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"createDirectiveHostEventAsts",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parseEvent(l,u,!1,i,i,[],o,i):this._reportError('Value of the host listener "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"parseInterpolation",value:function(e,i,o){var a=i.start.toString(),s=i.fullStart.offset;try{var l=this._exprParser.parseInterpolation(e,a,s,o,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,i),l}catch(u){return this._reportError("".concat(u),i),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"parseInterpolationExpression",value:function(e,i){var o=i.start.toString(),a=i.start.offset;try{var s=this._exprParser.parseInterpolationExpression(e,o,a);return s&&this._reportExpressionParserErrors(s.errors,i),s}catch(l){return this._reportError("".concat(l),i),this._exprParser.wrapLiteralPrimitive("ERROR",o,a)}}},{key:"parseInlineTemplateBinding",value:function(e,i,o,a,s,l,u,d){var Z,h=o.start.offset+"*".length,g=this._parseTemplateBindings(e,i,o,h,a),C=(0,xn.Z)(g);try{for(C.s();!(Z=C.n()).done;){var z=Z.value,q=Bc(o,z.sourceSpan),re=z.key.source,ae=Bc(o,z.key.span);if(z instanceof VM){var Se=z.value?z.value.source:"$implicit",Ce=z.value?Bc(o,z.value.span):void 0;u.push(new D3(re,Se,q,ae,Ce))}else if(z.value){var xe=d?q:o,Ve=Bc(o,z.value.ast.sourceSpan);this._parsePropertyAst(re,z.value,xe,ae,Ve,s,l)}else s.push([re,""]),this.parseLiteralAttr(re,null,ae,a,void 0,s,l,ae)}}catch(at){C.e(at)}finally{C.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var d=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(d.errors,o),d.warnings.forEach(function(h){l._reportError(h,o,Dd.WARNING)}),d.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,d){u6(e)?(e=e.substring(1),void 0!==d&&(d=Bc(d,new Su(d.start.offset+1,d.end.offset))),i&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',o,Dd.ERROR),this._parseAnimation(e,i,o,a,d,s,l,u)):u.push(new KM(e,this._exprParser.wrapLiteralPrimitive(i,"",a),jp.LITERAL_ATTR,o,d,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,d,h){0===e.length&&this._reportError("Property name is missing in binding",a);var g=!1;e.startsWith(el)?(g=!0,e=e.substring(el.length),void 0!==h&&(h=Bc(h,new Su(h.start.offset+el.length,h.end.offset)))):u6(e)&&(g=!0,e=e.substring(1),void 0!==h&&(h=Bc(h,new Su(h.start.offset+1,h.end.offset)))),g?this._parseAnimation(e,i,a,s,h,l,u,d):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,d)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,d){var h=this.parseInterpolation(i,a||o,d);return!!h&&(this._parsePropertyAst(e,h,o,u,a,s,l),!0)}},{key:"_parsePropertyAst",value:function(e,i,o,a,s,l,u){l.push([e,i.source]),u.push(new KM(e,i,jp.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Animation trigger is missing",o);var h=this._parseBinding(i||"undefined",!1,l||o,a);u.push([e,h.source]),d.push(new KM(e,h,jp.ANIMATION,o,s,l))}},{key:"_parseBinding",value:function(e,i,o,a){var s=(o&&o.start||"(unknown)").toString();try{var l=i?this._exprParser.parseSimpleBinding(e,s,a,this._interpolationConfig):this._exprParser.parseBinding(e,s,a,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",s,a)}}},{key:"createBoundElementProperty",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new VF(i.name,4,Hi.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=OS(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var C=u.substring(0,g),Z=u.substring(g+1);u=_i(C,Z)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Hi.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Hi.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=OS(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new VF(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),u6(e)?(e=e.slice(1),void 0!==d&&(d=Bc(d,new Su(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 OS(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function Ec(n,r){return yo(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new E3(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 Hl(n,r){return yo(n,":",r)}(e,[null,e]),g=(0,Nn.Z)(h,2),C=g[0],Z=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new E3(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 Yl?(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 Vv(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,xn.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 u6(n){return"@"==n[0]}function OS(n,r,e,i){var o=[];return oo.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,fn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Hi.NONE]:Array.from(new Set(o)).sort()}function Bc(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Qa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var $o,Z4=/^([^:/?#]+):/;function m6(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 j4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=$o.OTHER;return Qi(s)?l=$o.NG_CONTENT:"style"==s?l=$o.STYLE:"script"==s?l=$o.SCRIPT:"link"==s&&"stylesheet"==i&&(l=$o.STYLESHEET),new IS(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"}($o||($o={}));var IS=(0,B.Z)(function n(r,e,i,o,a){(0,U.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var G4=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Vp_BANANA_BOX={start:"[(",end:")]"},Vp_PROPERTY={start:"[",end:"]"},Vp_EVENT={start:"(",end:")"};function LS(n,r,e){var i=new n1(r,e),s={nodes:Eu(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 Du,n1=function(){function n(r,e){(0,U.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=s_(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=m6(e);if(a.type===$o.SCRIPT)return null;if(a.type===$o.STYLE){var s=function C6(n){return 1===n.children.length&&n.children[0]instanceof E_?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===$o.STYLESHEET&&function c6(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(Z4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function Vi(n){return"ng-template"===Ji(n)[1]}(e.name),u=[],d=[],h=[],g=[],C=[],Z={},z=[],q=[],re=!1,ae=(0,xn.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,xe=!1,Ve=W4(Ce.name),at=!1;if(Ce.i18n&&(Z[Ce.name]=Ce.i18n),Ve.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),at=!0,re=!0;var De=Ce.value,ot=Ve.substring("*".length),ht=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(ot,De,Ce.sourceSpan,bt,[],z,ht,!0),q.push.apply(q,(0,fn.Z)(ht.map(function(_r){return new gM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else xe=this.parseAttribute(l,Ce,[],u,d,h,g);!xe&&!at&&C.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Pe,Xe=Eu(a.nonBindable?ZS:this,e.children);if(a.type===$o.NG_CONTENT){e.children&&!e.children.every(function(_r){return function y6(n){return n instanceof E_&&0==n.value.trim().length}(_r)||function b6(n){return n instanceof _S}(_r)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var pt=a.selectAttr,Nt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Pe=new o_(pt,Nt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(pt)}else if(l){var Gt=this.extractAttributes(e.name,u,Z);Pe=new hh(e.name,C,Gt.bound,d,[],Xe,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var It=this.extractAttributes(e.name,u,Z);Pe=new Pp(e.name,C,It.bound,d,Xe,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,Z),jn=[];Tn.literal.forEach(function(_r){return jn.push(_r)}),Tn.bound.forEach(function(_r){return jn.push(_r)});var zn=Pe instanceof Pp?{attributes:Pe.attributes,inputs:Pe.inputs,outputs:Pe.outputs}:{attributes:[],inputs:[],outputs:[]},or=l&&o?void 0:e.i18n,Sr=Pe instanceof hh?null:Pe.name;Pe=new hh(Sr,zn.attributes,zn.inputs,zn.outputs,jn,[Pe],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,or)}return o&&(this.inI18nBlock=!1),Pe}},{key:"visitAttribute",value:function(e){return new _M(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(!s_(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 mM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new a_(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 hM(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 _M(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(YP.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=W4(i.name),g=i.value,C=i.sourceSpan,Z=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function z(jn,zn,or){var Sr=i.name.length-h.length,_r=jn.start.moveBy(zn.length+Sr),zr=_r.moveBy(or.length);return new Qa(_r,zr,_r,or)}var q=h.match(G4);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 xe=q[7],Ve=z(C,q[3],xe);this.parseReference(xe,g,C,Ve,i.valueSpan,u)}else if(q[4]){var at=[],De=q[7],ot=z(C,q[4],De);this.bindingParser.parseEvent(De,g,!1,C,i.valueSpan||C,o,at,ot),r1(at,s)}else if(q[5]){var ht=q[7],bt=z(C,q[5],ht);this.bindingParser.parsePropertyBinding(ht,g,!1,C,Z,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ht,g,C,i.valueSpan,o,s,bt)}else if(q[6]){var Xe=z(C,"",h);this.bindingParser.parseLiteralAttr(h,g,C,Z,i.valueSpan,o,a,Xe)}return!0}var Pe=null;if(h.startsWith(Vp_BANANA_BOX.start)?Pe=Vp_BANANA_BOX:h.startsWith(Vp_PROPERTY.start)?Pe=Vp_PROPERTY:h.startsWith(Vp_EVENT.start)&&(Pe=Vp_EVENT),null!==Pe&&h.endsWith(Pe.end)&&h.length>Pe.start.length+Pe.end.length){var pt=h.substring(Pe.start.length,h.length-Pe.end.length),Nt=z(C,Pe.start,pt);if(Pe.start===Vp_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(pt,g,!1,C,Z,i.valueSpan,o,a,Nt),this.parseAssignmentEvent(pt,g,C,i.valueSpan,o,s,Nt);else if(Pe.start===Vp_PROPERTY.start)this.bindingParser.parsePropertyBinding(pt,g,!1,C,Z,i.valueSpan,o,a,Nt);else{var Gt=[];this.bindingParser.parseEvent(pt,g,!1,C,i.valueSpan||C,o,Gt,Nt),r1(Gt,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=TS(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new mM(l,i,a):new Ip(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 gM(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 KP(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 Vv(i,e,o))}}]),n}(),DV=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=m6(e);if(i.type===$o.SCRIPT||i.type===$o.STYLE||i.type===$o.STYLESHEET)return null;var o=Eu(this,e.children,null);return new Pp(e.name,Eu(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new _M(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Ip(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),ZS=new DV;function W4(n){return/^data-/i.test(n)?n.substring(5):n}function r1(n,r){r.push.apply(r,(0,fn.Z)(n.map(function(e){return Pv.fromParsedEvent(e)})))}function Zd(){return{getUniqueId:Ps(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(Du||(Du={}));var i1=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,U.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||Zd(),this.id=this._registry.getUniqueId()}return(0,B.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};Nv(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(NS))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){Nv(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;n3(e,this.bindings.size,this.id).forEach(function(a,s){return Nv.apply(void 0,[i.placeholders,s].concat((0,fn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Du.TEMPLATE,e,i,!1),this.appendTag(Du.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Du.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Du.ELEMENT,e,i,!1),this.appendTag(Du.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(w6(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(w6(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,fn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,fn.Z)(a)))}else l.push.apply(l,(0,fn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function D_(n,r,e,i){var o=i?"/":"";return Zv("".concat(o).concat(n).concat(r),e)}function Eh(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?D_(n,i,o)+D_(n,i,o,!0):D_(n,i,o,e)}function w6(n,r){return function(e){return"object"==typeof e&&e.type===Du.TEMPLATE&&e.index===r&&e.ctx===n}}function NS(n){var r=function(a,s){return Eh("#",a,s)},e=function(a,s){return Eh("*",a,s)};switch(n.type){case Du.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 Du.TEMPLATE:return e(n,n.closed);default:return n}}var k6=function(){function n(){(0,U.Z)(this,n)}return(0,B.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(u_(e,!1),"}")}}]),n}(),V4=new k6;function T6(n){return n.visit(V4)}var A_={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"},Y4=function(){function n(){(0,U.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,B.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=A_[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=A_[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?"/>":"></".concat(e,">"))}},{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}(),AV=new hS(new Id);function K4(n){var r=new q4(AV,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function OV(n,r){return r}var q4=function(){function n(r,e){(0,U.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,B.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 xu,icuDepth:0,placeholderRegistry:new Y4,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||OV},u=Eu(this,e,l);return new bu(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=Eu(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=wa(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:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new _F(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 mC(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 mC(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 yM(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new _C(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 gC(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,xn.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=X4(g)||"INTERPOLATION",Z=o.placeholderRegistry.getPlaceholderName(C,g);o.placeholderToContent[Z]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new gF(g,Z,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof mC?(z.value+=h.parts[0],z.sourceSpan=new Qa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new mC(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function J4(n,r){if(r instanceof bu&&(function Q4(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof _C))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof _C){!function M6(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;e<n.length;e++)n[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new _C(s,i)):s[0]}}]),n}();var BS=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function X4(n){return n.split(BS)[2]}var FS=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){return(0,U.Z)(this,e),r.call(this,i,o)}return(0,B.Z)(e)}(Vv),$4=function(r,e){return r instanceof ry&&(e instanceof gC&&r.i18n instanceof bu&&(e.previousMessage=r.i18n),r.i18n=e),e},S6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,U.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=K4(this.interpolationConfig)}return(0,B.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 e6(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function Cu(n){return n.attrs.some(function(r){return t3(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,xn.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,$4)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(yC)){var h=u.name.slice(yC.length);o6(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,xn.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 Eu(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof gC){var s=a.name;CC(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 n8(){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,Nn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Nn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof bu?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof bu&&i.id||ih(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[rh(e),Sp(e)];else if("string"!=typeof i){var o=i instanceof bu?i:i instanceof gC?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new FS(e.sourceSpan,i))}}]),n}();function Dh(n,r,e,i){var o=function i8(n){return n.nodes.map(function(r){return r.visit(dy,null)}).join("")}(r),a=[rn(o)];Object.keys(i).length&&(a.push(Ld(TM(i,!0),!0)),a.push(Ld({original_code:Xs(Object.keys(i).map(function(u){return{key:u_(u),quoted:!0,value:r.placeholders[u]?rn(r.placeholders[u].sourceSpan.toString()):rn(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(ii("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function r8(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}),sM(r)}(r)),[s,new Ap(n.set(e))]}var IV=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(u_(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 T6(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}(),dy=new IV;function o8(n,r,e){var i=function a8(n){var r=[],e=new US(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function py(n){var r=[],e=[];n[0]instanceof Pt&&r.push(Xa(n[0].sourceSpan.start));for(var i=0;i<n.length;i++){var o=n[i];o instanceof Qe?r.push(o):(e.push(o),n[i-1]instanceof Pt&&r.push(Xa(n[i-1].sourceSpan.end)))}return n[n.length-1]instanceof Pt&&r.push(Xa(n[n.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function Fc(n){var r=n.nodes[0],e=n.nodes[n.nodes.length-1];return new Qa(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=dh(r,o,a,l,s),d=n.set(u);return[new Ap(d)]}var US=function(){function n(r,e){(0,U.Z)(this,n),this.placeholderToMessage=r,this.pieces=e}return(0,B.Z)(n,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof Qe)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new Qa(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Qe(e.value,i))}}},{key:"visitContainer",value:function(e){var i=this;e.children.forEach(function(o){return o.visit(i)})}},{key:"visitIcu",value:function(e){this.pieces.push(new Qe(T6(e),e.sourceSpan))}},{key:"visitTagPlaceholder",value:function(e){var o,a,i=this;this.pieces.push(this.createPlaceholderPiece(e.startName,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan)),e.isVoid||(e.children.forEach(function(s){return s.visit(i)}),this.pieces.push(this.createPlaceholderPiece(e.closeName,null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan)))}},{key:"visitPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}},{key:"visitIcuPlaceholder",value:function(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}},{key:"createPlaceholderPiece",value:function(e,i,o){return new Pt(u_(e,!1),i,o)}}]),n}();function Xa(n){return new Qe("",new Qa(n,n))}var a1="ngProjectAs",Xl=new Set(["$event"]),fy=new Map([["window",Le.resolveWindow],["document",Le.resolveDocument],["body",Le.resolveBody]]),O_=[" ","\n","\r","\t"];function $l(n,r){return wd(ii(Bv).bitwiseAnd(rn(n),null,!1),r)}function Oh(n){var r=arguments.length>1&&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&&!fy.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(fy.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?ii(tc):e.getOrCreateSharedContextVar(0),g=C_(e,h,l,"b",n.handlerSpan,d,Xl),C=[],Z=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(Z&&C.push.apply(C,(0,fn.Z)(Z)),C.push.apply(C,(0,fn.Z)(g)),z){C.unshift(z);var q=C[C.length-1];q instanceof _s?C[C.length-1]=new _s(mh(q.value.sourceSpan,Le.resetView,[q.value])):C.push(new Ap(mh(null,Le.resetView,[])))}var re=1===i?cF(o,s):o,ae=r&&v_(r),Se=[];d.has(u)&&Se.push(new Go(u,Js));var Ce=aa(Se,C,ia,null,ae),xe=[rn(re),Ce];return a&&xe.push(rn(!1),Jn(fy.get(a))),xe}function I_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var P_=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]:I_();(0,U.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=_h,this.visitVariable=_h,this.visitTextAttribute=_h,this.visitBoundAttribute=_h,this.visitBoundEvent=_h,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Ih(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,Le.pipe,[rn(q),rn(Z)])})}return(0,B.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!==Le.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||s_(s)&&!bC(s)&&!(c8(e)&&e[0].i18n===s),u=_y(e);if(l&&this.i18nStart(null,s,u),qP(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?us(ae):ae});d.push(this.constantPool.getConstLiteral(bl(h),!0))}this.creationInstruction(null,Le.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=kC(this._creationCodeFns),C=kC(this._updateCodeFns),Z=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[$l(1,Z.concat(g))]:[],re=C.length>0?[$l(2,z.concat(C))]:[];return aa([new Go(Bv,Ue),new Go(tc,null)],[].concat((0,fn.Z)(this._prefixCode),q,re),ia,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=d1(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,fn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=ii(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=ii(xM),s.notifyRestoredViewContextUse()):u=ii(tc):u=s.getSharedContextName(o)||hy(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 Ip)o[a]=rn(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof gs){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,Z=function kM(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;a<o;a++)i+="".concat(n[a]).concat(Zv(r+a,e));return i+n[o]}(u,h.bindings.size,g);i.i18nAppendBindings(d),o[a]=rn(Z)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return ii(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=r3("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(v_(e),"$$").concat(s)}else{var l=r3(o);i=this.constantPool.uniqueName(l)}return ii(i)}},{key:"i18nUpdateRef",value:function(e){var i=e.icus,o=e.meta,a=e.isRoot,s=e.isResolved,l=e.isEmitted;if(a&&s&&!l&&!bC(o)){e.isEmitted=!0;var C,u=e.getSerializedPlaceholders(),d={},h=u.size?l_(u):{};i.size&&i.forEach(function(Z,z){if(1===Z.length)h[z]=Z[0];else{var q=Zv("".concat("I18N_EXP_").concat(z));h[z]=rn(q),d[z]=di(Z)}}),(Array.from(u.values()).some(function(Z){return Z.length>1})||Object.keys(d).length)&&(C=function(z){var q=[z];return Object.keys(d).length&&q.push(Ld(d,!0)),mh(null,Le.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 i1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[rn(a),this.addToConsts(u)];l>0&&d.push(rn(l)),this.creationInstruction(e,o?Le.i18n:Le.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,xn.Z)(l);try{var h=function(){var C=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Le.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,Le.i18nApply,[rn(s)])}o||this.creationInstruction(i,Le.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 gs){var z=l_(n3(g));l.push(rn(h.name),a.i18nTranslate(g,z)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Le.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=rn(this.allocateDataSlot()),d=this.addToConsts(di(l));this.creationInstruction(o,Le.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Le.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Le.namespaceMathML;case"svg":return Le.namespaceSVG;default:return Le.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[rn(o)].concat((0,fn.Z)(u.getUpdateInstructionArguments(s)),(0,fn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[rn(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(rn(o),di(l)):0!==o&&a.push(rn(o)),this.creationInstruction(e.sourceSpan,Le.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 YC(null),u=!1,d=s_(e.i18n)&&!bC(e.i18n),h=[],g=Ji(e.name),C=(0,Nn.Z)(g,2),Z=C[0],z=C[1],q=jo(e.name),re=(0,xn.Z)(e.attributes);try{for(re.s();!(ae=re.n()).done;){var Se=ae.value,Ce=Se.name,xe=Se.value;"ngNonBindable"===Ce?u=!0:"style"===Ce?l.registerStyleAttr(xe):"class"===Ce?l.registerClassAttr(xe):h.push(Se)}}catch(un){re.e(un)}finally{re.f()}var Ve=[rn(s)];q||Ve.push(rn(z));var at=[],De=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?De.push(un):at.push(un))});var ot=this.getAttributeExpressions(e.name,h,at,e.outputs,l,[],De);Ve.push(this.addAttrsToConsts(ot));var ht=this.prepareRefsArray(e.references);Ve.push(this.addToConsts(ht));var bt=this._namespace,Xe=this.getNamespaceInstruction(Z);Xe!==bt&&this.addNamespaceInstruction(Xe,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Pe=!d&&this.i18n?!_y(e.children):e.children.length>0,pt=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===De.length&&!Pe,Nt=!pt&&_y(e.children);if(pt)this.creationInstruction(e.sourceSpan,q?Le.elementContainer:Le.element,Rp(Ve));else{if(this.creationInstruction(e.startSourceSpan,q?Le.elementContainerStart:Le.elementStart,Rp(Ve)),u&&this.creationInstruction(e.startSourceSpan,Le.disableBindings),De.length>0&&this.i18nAttributesInstruction(s,De,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var It,Gt=(0,xn.Z)(e.outputs);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;this.creationInstruction(Tn.sourceSpan,Le.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){Gt.e(un)}finally{Gt.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Nt)}for(var jn=l.buildUpdateLevelInstructions(this._valueConverter),zn=jn.length-1,or=0;or<=zn;or++){var Sr=jn[or];this._bindingSlots+=this.processStylingUpdateInstruction(s,Sr)}var _r=rn(void 0),zr=[],Ur=[];at.forEach(function(un){var bn=un.type;if(4===bn){var Bn=un.value.visit(i._valueConverter),nr=!(Bn instanceof $s)||!!Bn.value;i.allocateBindingSlots(Bn),zr.push({span:un.sourceSpan,paramsOrFn:c1(function(){return nr?i.convertPropertyBinding(Bn):_r},dM(un.name))})}else{if(un.i18n)return;var vr=un.value.visit(i._valueConverter);if(void 0!==vr){var io=[],Yu=Ji(un.name),Tv=(0,Nn.Z)(Yu,2),Mv=Tv[0],Jm=Tv[1],sC=1===bn,Ia=s1(un.securityContext,sC);if(Ia||function u1(n){return"iframe"===n.toLowerCase()}(e.name)&&Nc(un.name)&&(Ia=Jn(Le.validateIframeAttribute)),Ia&&io.push(Ia),Mv){var PP=rn(Mv);Ia?io.push(PP):io.push(rn(null),PP)}if(i.allocateBindingSlots(vr),0===bn)vr instanceof gs?i.interpolatedUpdateInstruction(GS(vr),s,Jm,un,vr,io):zr.push({span:un.sourceSpan,paramsOrFn:c1(function(){return i.convertPropertyBinding(vr)},Jm,io)});else if(1===bn)if(vr instanceof gs&&Sd(vr)>1)i.interpolatedUpdateInstruction(function l8(n){switch(Sd(n)){case 3:return Le.attributeInterpolate1;case 5:return Le.attributeInterpolate2;case 7:return Le.attributeInterpolate3;case 9:return Le.attributeInterpolate4;case 11:return Le.attributeInterpolate5;case 13:return Le.attributeInterpolate6;case 15:return Le.attributeInterpolate7;case 17:return Le.attributeInterpolate8;default:return Le.attributeInterpolateV}}(vr),s,Jm,un,vr,io);else{var tV=vr instanceof gs?vr.expressions[0]:vr;Ur.push({span:un.sourceSpan,paramsOrFn:c1(function(){return i.convertPropertyBinding(tV)},Jm,io)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Le.classProp,function(){return[rn(s),rn(Jm),i.convertPropertyBinding(vr)].concat(io)})}}});for(var Kr=0,Fo=zr;Kr<Fo.length;Kr++){var er=Fo[Kr];this.updateInstructionWithAdvance(s,er.span,Le.property,er.paramsOrFn)}for(var wr=0,Sn=Ur;wr<Sn.length;wr++){var gn=Sn[wr];this.updateInstructionWithAdvance(s,gn.span,Le.attribute,gn.paramsOrFn)}if(qP(this,e.children),!d&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!pt){var tr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;d&&this.i18nEnd(tr,Nt),u&&this.creationInstruction(tr,Le.enableBindings),this.creationInstruction(tr,q?Le.elementContainerEnd:Le.elementEnd)}}},{key:"visitTemplate",value:function(e){var o,i=this,a="ng-template",s=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,s);var l=e.tagName?Ji(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+v_(e.tagName):"","_").concat(s),d="".concat(u,"_Template"),h=[rn(s),ii(d),rn(l)],g=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(g)),e.references&&e.references.length){var C=this.prepareRefsArray(e.references);h.push(this.addToConsts(C)),h.push(Jn(Le.templateRefExtractor))}var Z=new n(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,d,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var at,Ve=Z.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(Ve.toDeclStmt(d)),Z._ngContentReservedSlots.length)&&(at=i._ngContentReservedSlots).push.apply(at,(0,fn.Z)(Z._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,Le.templateCreate,function(){return h.splice(2,0,rn(Z.getConstCount()),rn(Z.getVarCount())),Rp(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var z=function nh(n,r){var a,e=[],i=[],o=(0,xn.Z)(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;(r(s)?e:i).push(s)}}catch(l){o.e(l)}finally{o.f()}return[e,i]}(e.inputs,SF),q=(0,Nn.Z)(z,2),re=q[0],ae=q[1];re.length>0&&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,xn.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var xe=Ce.value;this.creationInstruction(xe.sourceSpan,Le.listener,this.prepareListenerParameter("ng_template",xe,s))}}catch(Ve){Se.e(Ve)}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 gs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Le.text,[rn(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof gs?this.updateInstructionWithAdvance(a,e.sourceSpan,function u8(n){switch(Sd(n)){case 1:return Le.textInterpolate;case 3:return Le.textInterpolate1;case 5:return Le.textInterpolate2;case 7:return Le.textInterpolate3;case 9:return Le.textInterpolate4;case 11:return Le.textInterpolate5;case 13:return Le.textInterpolate6;case 15:return Le.textInterpolate7;case 17:return Le.textInterpolate8;default:return Le.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):Ba("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Le.text,[rn(this.allocateDataSlot()),rn(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=TM(Object.assign(Object.assign({},a),s),!1);return mh(null,Le.i18nPostprocess,[g,Ld(Z,!0)])};if(bC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(CC(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(bl(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,xn.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof YP))return 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof gs){o.interpolatedUpdateInstruction(GS(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:c1(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;h<g.length;h++){var C=g[h];this.updateInstructionWithAdvance(e,C.span,Le.property,C.paramsOrFn)}}},{key:"instructionFn",value:function(e,i,o,a){var s=arguments.length>4&&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,xn.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 gs?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,Le.advance,[rn(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 gs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?ii(tc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=Th(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,fn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function KF(n,r,e,i){var o=new ey(n,r,i,!0),a=o.visitInterpolation(e,Oi.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:qF(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,fn.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,xn.Z)(i);try{for(C.s();!(Z=C.n()).done;){var z=Z.value;if(z.name===a1&&(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(rn(z.name),re)}else h.push.apply(h,(0,fn.Z)(jS(z.name)).concat([zS(e,z)]))}}catch(De){C.e(De)}finally{C.f()}function ae(De,ot){"string"==typeof De?d.has(De)||(h.push.apply(h,(0,fn.Z)(jS(De))),void 0!==ot&&h.push(ot),d.add(De)):h.push(rn(De))}if(g&&h.push.apply(h,(0,fn.Z)(D6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce<o.length;Ce++){var xe=o[Ce];4!==xe.type&&1!==xe.type&&ae(xe.name)}for(var Ve=0;Ve<a.length;Ve++){var at=a[Ve];1!==at.type&&ae(at.name)}h.length!==Se&&h.splice(Se,0,rn(3))}return l.length&&(h.push(rn(4)),l.forEach(function(De){return ae(De.name)})),u.length&&(h.push(rn(6)),u.forEach(function(De){return ae(De.name)})),h}},{key:"addToConsts",value:function(e){if(Oc(e))return sh;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return rn(o);return rn(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(di(e)):sh}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?bl(VS(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=ii(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var C=g>0?[hy(g).toStmt()]:[],Z=d.set(Jn(Le.reference).callFn([rn(s)]));return C.concat(Z.toConstDecl())},!0),[a.name,a.value]}))):sh}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?jP(s,i.phase):v_(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,Xl);return Oh(i,u,d)}}}]),n}(),Ih=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,B.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 wh(o.span,o.sourceSpan,o.nameSpan,new Kv(o.span,o.sourceSpan),l),h=function L_(n){var r=R_[n.length];return{identifier:r||Le.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,Jn(g));var Z=[o.exp].concat((0,fn.Z)(o.args)),z=C?this.visitAll([new kh(o.span,o.sourceSpan,Z)]):this.visitAll(Z),q=new b_(o.span,o.sourceSpan,d,[new $s(o.span,o.sourceSpan,s),new $s(o.span,o.sourceSpan,u)].concat((0,fn.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 T_(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=di(l);return HS(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new T_(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Xs(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return HS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(YM),R_=[Le.pipeBind1,Le.pipeBind2,Le.pipeBind3,Le.pipeBind4];var Z_=[Le.pureFunction0,Le.pureFunction1,Le.pureFunction2,Le.pureFunction3,Le.pureFunction4,Le.pureFunction5,Le.pureFunction6,Le.pureFunction7,Le.pureFunction8];function hy(n){return Jn(Le.nextContext).callFn(n>1?[rn(n)]:[])}function HS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function x6(n){var r=Z_[n.length];return{identifier:r||Le.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[rn(s),o];return d?h.push(di(a)):h.push.apply(h,(0,fn.Z)(a)),Jn(u).callFn(h)}function jS(n){var r=Ji(n),e=(0,Nn.Z)(r,2),i=e[0],a=rn(e[1]);return i?[rn(0),rn(i),a]:[a]}var Ph="$$shared_ctx$$",E6=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,U.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,xn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,ii(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,B.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;Ba("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(Ph+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=Ph+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Ph+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){var i=this.map.get(Ph+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=ii(tc+this.freshReferenceName());this.map.set(Ph+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(hy(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(Ph+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=ii(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){if(this.restoreViewVariable){var e=mh(null,Le.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?ii(xM).set(e).toConstDecl():e.toStmt()}return null}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(mh(null,Le.getCurrentView,[])).toConstDecl()]:[]}},{key:"isListenerScope",value:function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}},{key:"variableDeclarations",value:function(){var e=this,i=0;return Array.from(this.map.values()).filter(function(o){return o.declare}).sort(function(o,a){return a.retrievalLevel-o.retrievalLevel||a.priority-o.priority}).reduce(function(o,a){var s=e.bindingLevel-a.retrievalLevel,l=a.declareLocalCallback(e,s-i);return i=s,o.concat(l)},[])}},{key:"freshReferenceName",value:function(){for(var e=this;e.parent;)e=e.parent;return"".concat("_r").concat(e.referenceNameIndex++)}},{key:"hasRestoreViewVariable",value:function(){return!!this.restoreViewVariable}},{key:"notifyRestoredViewContextUse",value:function(){this.usesRestoredViewContext=!0}}],[{key:"createRootScope",value:function(){return new n}}]),n}();function D6(n){var r=us(n.value)[0];return[rn(5),bl(r)]}function GS(n){switch(Sd(n)){case 1:return Le.propertyInterpolate;case 3:return Le.propertyInterpolate1;case 5:return Le.propertyInterpolate2;case 7:return Le.propertyInterpolate3;case 9:return Le.propertyInterpolate4;case 11:return Le.propertyInterpolate5;case 13:return Le.propertyInterpolate6;case 15:return Le.propertyInterpolate7;case 17:return Le.propertyInterpolate8;default:return Le.propertyInterpolateV}}var O6=new t1;function my(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu;return new l6(new hS(new Id),n,O6,[])}function s1(n,r){switch(n){case Hi.HTML:return Jn(Le.sanitizeHtml);case Hi.SCRIPT:return Jn(Le.sanitizeScript);case Hi.STYLE:return r?Jn(Le.sanitizeStyle):null;case Hi.URL:return Jn(Le.sanitizeUrl);case Hi.RESOURCE_URL:return Jn(Le.sanitizeResourceUrl);default:return null}}function zS(n,r){var e=bl(r.value);if(!o6(n,r.name))return e;switch(O6.securityContext(n,r.name,!0)){case Hi.HTML:return ch(Jn(Le.trustConstantHtml),new he([new Fe(r.value)],[]),void 0,r.valueSpan);case Hi.RESOURCE_URL:return ch(Jn(Le.trustConstantResourceUrl),new he([new Fe(r.value)],[]),void 0,r.valueSpan);default:return e}}function c8(n){return 1===n.length&&n[0]instanceof Pp}function l1(n){return n instanceof Ip||n instanceof mM||n instanceof a_}function _y(n){return n.every(l1)}function c1(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,fn.Z)(e)),r&&o.unshift(rn(r)),o}}var gy="ngI18nClosureMode";function d1(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[i3(r),wd(WS(),Dh(r,n,e,i),o8(r,n,TM(i,!1)))];return o&&a.push(new Ap(r.set(o(r)))),a}function WS(){return r_(ii(gy)).notIdentical(rn("undefined",_e)).and(ii(gy))}function VS(n){return n.reduce(function(r,e){var i=Array.isArray(e)?VS(e):e;return r.concat(i)},[])}var YS=/attr\.([^\]]+)/,I6="_nghost-".concat("%COMP%"),qS="_ngcontent-".concat("%COMP%");function p1(n,r,e){var i=new Sa,o=us(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",bl(o)),n.queries.length>0&&i.set("contentQueries",function QS(n,r,e){var l,i=[],o=[],a=o3(o,"_t"),s=(0,xn.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Jn(Le.contentQuery).callFn([ii("dirIndex")].concat((0,fn.Z)(N6(u,r)))).toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).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 aa([new Go(Bv,Ue),new Go(tc,null),new Go("dirIndex",null)],[$l(1,i),$l(2,o)],ia,null,Z)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function U6(n,r,e){var i=[],o=[],a=o3(o,wC);n.forEach(function(l){var u=Jn(Le.viewQuery).callFn(N6(l,r));i.push(u.toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return aa([new Go(Bv,Ue),new Go(tc,null)],[$l(1,i),$l(2,o)],ia,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function H6(n,r,e,i,o,a,s){var l=ii(tc),u=new YC(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,fn.Z)(function d8(n,r){var s,e=[],i=[],o=[],a=(0,xn.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&v_(l.name),d=1===l.type?jP(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Oh(Pv.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<Z.length;C++){var z=Z[C];o.push({reference:Le.syntheticHostListener,paramsOrFn:z,span:null})}for(var q=0,re=e;q<re.length;q++){var ae=re[q];o.push({reference:Le.listener,paramsOrFn:ae,span:null})}return o}(re,a)));var ae=e.createBoundHostProperties(n.properties,q),Se=[],Ce=0;ae&&ae.forEach(function(bn){u.registerInputBasedOnName(bn.name,bn.expression,q)?Ce+=2:(Se.push(bn),Ce++)});for(var xe,Ve=function(){xe||(xe=new Ih(i,function(){return Ba("Unexpected node")},function(vr){var io=Ce;return Ce+=vr,io},function(){return Ba("Unexpected pipe")}));return xe},at=[],De=[],ot=[],ht=0,bt=Se;ht<bt.length;ht++){var Xe=bt[ht],Pe=Xe.expression.visit(Ve()),pt=ex(l,Pe),Nt=PV(Xe),Gt=Nt.bindingName,It=Nt.instruction,Tn=Nt.isAttribute,jn=e.calcPossibleSecurityContexts(o,Gt,Tn).filter(function(bn){return bn!==Hi.NONE}),zn=null;jn.length&&(zn=2===jn.length&&jn.indexOf(Hi.URL)>-1&&jn.indexOf(Hi.RESOURCE_URL)>-1?Jn(Le.sanitizeUrlOrResourceUrl):s1(jn[0],Tn));var or=[rn(Gt),pt.currValExpr];zn?or.push(zn):Nc(Gt)&&or.push(Jn(Le.validateIframeAttribute)),z.push.apply(z,(0,fn.Z)(pt.stmts)),It===Le.hostProperty?at.push(or):It===Le.attribute?De.push(or):It===Le.syntheticHostProperty?ot.push(or):Z.push({reference:It,paramsOrFn:or,span:null})}for(var Sr=0,_r=at;Sr<_r.length;Sr++){var zr=_r[Sr];Z.push({reference:Le.hostProperty,paramsOrFn:zr,span:null})}for(var Ur=0,Kr=De;Ur<Kr.length;Ur++){var Fo=Kr[Ur];Z.push({reference:Le.attribute,paramsOrFn:Fo,span:null})}for(var er=0,wr=ot;er<wr.length;er++){var Sn=wr[er];Z.push({reference:Le.syntheticHostProperty,paramsOrFn:Sn,span:null})}var gn=function F6(n){var i,r=[],e=(0,xn.Z)(Object.getOwnPropertyNames(n));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=n[o];r.push(rn(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(n.attributes);if(u.assignHostAttrs(gn,s),u.hasBindings&&u.buildUpdateLevelInstructions(Ve()).forEach(function(bn){var nr,Bn=(0,xn.Z)(bn.calls);try{for(Bn.s();!(nr=Bn.n()).done;){var vr=nr.value;Ce+=Math.max(vr.allocateBindingSlots-2,0),Z.push({reference:bn.reference,paramsOrFn:j6(vr,l,ex),span:null})}}catch(io){Bn.e(io)}finally{Bn.f()}}),Ce&&s.set("hostVars",rn(Ce)),C.length>0||Z.length>0){var tr=a?"".concat(a,"_HostBindings"):null,un=[];return C.length>0&&un.push($l(1,kC(C))),Z.length>0&&un.push($l(2,z.concat(kC(Z)))),aa([new Go(Bv,Ue),new Go(tc,null)],un,ia,null,tr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",Uv(n.inputs,!0)),i.set("outputs",Uv(n.outputs)),null!==n.exportAs&&i.set("exportAs",di(n.exportAs.map(function(a){return rn(a)}))),n.isStandalone&&i.set("standalone",rn(!0)),i}function P6(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new dC([])];o&&a.push(o),e.push(Jn(Le.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Jn(Le.InheritDefinitionFeature)),r.fullInheritance&&e.push(Jn(Le.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Jn(Le.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Jn(Le.StandaloneFeature)),e.length&&n.set("features",di(e))}function L6(n,r,e){var i=p1(n,r,e);P6(i,n);var o=n.selector&&oo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(di(s.map(function(at){return rn(null!=at?at:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new P_(r,E6.createRootScope(),0,l,null,null,u,Le.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),C=g.buildTemplateFunction(h.nodes,[]),Z=g.getNgContentSelectors();Z&&i.set("ngContentSelectors",Z),i.set("decls",rn(g.getConstCount())),i.set("vars",rn(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=di(q);re.length>0&&(ae=aa([],[].concat((0,fn.Z)(re),[new _s(ae)]))),i.set("consts",ae)}if(i.set("template",C),n.declarations.length>0&&i.set("dependencies",function Z6(n,r){switch(r){case 0:return n;case 1:return aa([],[new _s(n)]);case 2:var e=n.prop("map").callFn([Jn(Le.resolveForwardRef)]);return aa([],[new _s(e)])}}(di(n.declarations.map(function(at){return at.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=ao.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==ao.Emulated?function ja(n,r,e){var i=new $F;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,qS,I6):n.styles,Ce=Se.reduce(function(at,De){return De.trim().length>0&&at.push(r.getConstLiteral(rn(De))),at},[]);Ce.length>0&&i.set("styles",di(Ce))}else n.encapsulation===ao.Emulated&&(n.encapsulation=ao.None);return n.encapsulation!==ao.Emulated&&i.set("encapsulation",rn(n.encapsulation)),null!==n.animations&&i.set("data",Xs([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==qa.Default&&i.set("changeDetection",rn(d)),{expression:Jn(Le.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:JS(n),statements:[]}}function JS(n){var r=XS(n);return r.push(m1(n.template.ngContentSelectors)),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.ComponentDeclaration,r))}function N6(n,r){var e=[EM(n,r),rn(B6(n))];return n.read&&e.push(n.read),e}function B6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function f1(n){return Is(rn(n))}function h1(n){return Is(Xs(Object.keys(n).map(function(e){return{key:e,value:rn(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function m1(n){return n.length>0?Is(di(n.map(function(r){return rn(r)}))):ke}function XS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[Md(n.type.type,n.typeArgumentCount),null!==r?f1(r):ke,null!==n.exportAs?m1(n.exportAs):ke,h1(n.inputs),h1(n.outputs),m1(n.queries.map(function(e){return e.propertyName}))]}function $S(n){var r=XS(n);return r.push(ke),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.DirectiveDeclaration,r))}function ex(n,r){return Th(null,n,r,"b")}function j6(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function PV(n){var e,r=n.name,i=r.match(YS);return i?(r=i[1],e=Le.attribute):n.isAnimation?(r=dM(r),e=Le.syntheticHostProperty):e=Le.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var p8=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var z6=(0,B.Z)(function n(){(0,U.Z)(this,n)}),h8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ZC;(0,U.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ec,this.ResourceLoader=z6,this.elementSchemaRegistry=new t1}return(0,B.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=x3({name:o.name,type:Ja(o.type),internalType:new Pr(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 ox(n){var r,e;return{name:n.type.name,type:Ja(n.type),internalType:new Pr(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=x3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=a3({name:o.name,type:Ja(o.type),internalType:new Pr(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:q6(o.providedIn),useClass:Yp(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Yp(o,"useValue"),useExisting:Yp(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(oc)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=a3({name:o.type.name,type:Ja(o.type),internalType:new Pr(o.type),typeArgumentCount:0,providedIn:q6(o.providedIn),useClass:Yp(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Yp(o,"useValue"),useExisting:Yp(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=k3({name:o.name,type:Ja(o.type),internalType:new Pr(o.type),providers:o.providers&&o.providers.length>0?new Pr(o.providers):null,imports:o.imports.map(function(l){return new Pr(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function vy(n){return{name:n.type.name,type:Ja(n.type),internalType:new Pr(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Pr(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Pr(r)}):[]}}(o),s=k3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=jM({type:Ja(o.type),internalType:new Pr(o.type),adjacentType:new Pr(o.type),bootstrap:o.bootstrap.map(Ja),declarations:o.declarations.map(Ja),publicDeclarationTypes:null,imports:o.imports.map(Ja),includeImportTypes:!0,exports:o.exports.map(Ja),selectorScopeMode:y_.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Ja):null,id:o.id?new Pr(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function M3(n){var r=new Sa;return r.set("type",new Pr(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Pr(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Pr(n.declarations)),void 0!==n.imports&&r.set("imports",new Pr(n.imports)),void 0!==n.exports&&r.set("exports",new Pr(n.exports)),void 0!==n.schemas&&r.set("schemas",new Pr(n.schemas)),void 0!==n.id&&r.set("id",new Pr(n.id)),Jn(Le.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=nx(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=rx(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new BP,l=function R6(n,r,e){var i=p1(n,r,e);return P6(i,n),{expression:Jn(Le.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:$S(n),statements:[]}}(o,a,my());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=_1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),nx(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(Y6),declarationListEmitMode:0,styles:[].concat((0,fn.Z)(o.styles),(0,fn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Pr(o.animations):null,viewProviders:null!=o.viewProviders?new Pr(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 _8(n,r,e){var i,o,a,s,l=_1(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,xn.Z)(n.dependencies);try{for(g.s();!(C=g.n()).done;){var Z=C.value;switch(Z.kind){case"directive":case"component":h.push(ix(Z));break;case"pipe":h.push(RV(Z))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,fn.Z)(n.components.map(function(z){return ix(z,!0)}))),n.directives&&h.push.apply(h,(0,fn.Z)(n.directives.map(function(z){return ix(z)}))),n.pipes&&h.push.apply(h,(0,fn.Z)(function K6(n){return n?Object.keys(n).map(function(r){return{kind:yh.Pipe,name:r,type:new Pr(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},rx(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Pr(n.viewProviders):null,animations:void 0!==n.animations?new Pr(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:qa.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:ao.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 BP,l=L6(o,a,my(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=fh({name:o.name,type:Ja(o.type),internalType:new Pr(o.type),typeArgumentCount:o.typeArgumentCount,deps:J6(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=fh({name:o.type.name,type:Ja(o.type),internalType:new Pr(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 NM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new RC("",i);return new Qa(new g_(o,-1,-1,-1),new g_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,fn.Z)(a),[new Dp("$def",e,void 0,Os.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new T3(i),!0).$def}}]),n}();function W6(n){return Object.assign(Object.assign({},n),{predicate:V6(n.predicate),read:n.read?new Pr(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function tx(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:V6(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Pr(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function V6(n){return Array.isArray(n)?n:pM(new Pr(n),1)}function nx(n){var r=$6(n.inputs||[]),e=$6(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function v8(n){return"Input"===n.ngMetadataName}(h)?function y8(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:Ja(n.type),internalType:new Pr(n.type),deps:null,host:Q6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(W6),providers:null!=n.providers?new Pr(n.providers):null,viewQueries:n.viewQueries.map(W6),fullInheritance:!1})}function rx(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Ja(n.type),typeSourceSpan:r,internalType:new Pr(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:N_(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(tx),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(tx),providers:void 0!==n.providers?new Pr(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 N_(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:m8(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 m8(n){for(var r={},e=0,i=Object.keys(n);e<i.length;e++){var o=i[e];r[o]=new Pr(n[o])}return r}function Y6(n){return Object.assign(Object.assign({},n),{type:new Pr(n.type)})}function ix(n){var e,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{kind:yh.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Pr(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 RV(n){return{kind:yh.Pipe,name:n.name,type:new Pr(n.type)}}function _1(n,r,e,i,o){var a=o?TC.fromArray(o):wu,s=function A6(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=my(i),u=(new E4).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:O_},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 S6(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=Eu(new t6,h),g.hasI18nMeta&&(h=Eu(new S6(i,!1),h)));var z=LS(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=z.nodes,re=z.errors,ae=z.styleUrls,Se=z.styles,Ce=z.ngContentSelectors,xe=z.commentNodes;re.push.apply(re,(0,fn.Z)(u.errors).concat((0,fn.Z)(C.errors)));var Ve={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ve.commentNodes=xe),Ve}(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 Yp(n,r){if(n.hasOwnProperty(r))return pM(new Pr(n[r]),0)}function Au(n,r){if(n.hasOwnProperty(r))return new Pr(n[r])}function q6(n){return pM("function"==typeof n?new Pr(n):new ue(null!=n?n:null),0)}function J6(n){return null==n?null:n.map(oc)}function oc(n){var r=null!=n.attribute,e=null===n.token?null:new Pr(n.token);return Iu(r?new Pr(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 Iu(null===n.token?null:new Pr(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 Iu(n,r,e,i,o,a){return{token:n,attributeNameType:r?rn("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function Q6(n,r,e){var i=function G6(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a],u=n[l],d=l.match(p8);if(null===d)switch(l){case"class":if("string"!=typeof u)throw new Error("Class binding must be string");o.classAttr=u;break;case"style":if("string"!=typeof u)throw new Error("Style binding must be string");o.styleAttr=u;break;default:r[l]="string"==typeof u?rn(u):u}else if(null!=d[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[d[1]]=u}else if(null!=d[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[d[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function f8(n,r){var e=my();return e.createDirectiveHostEventAsts(n.listeners,r),e.createBoundHostProperties(n.properties,r),e.errors}(i,r);if(o.length)throw new Error(o.map(function(l){return l.msg}).join("\n"));var a=function(u){n.hasOwnProperty(u)&&n[u].forEach(function(d){!function X6(n){return"HostBinding"===n.ngMetadataName}(d)?function g8(n){return"HostListener"===n.ngMetadataName}(d)&&(i.listeners[d.eventName||u]="".concat(u,"(").concat((d.args||[]).join(","),")")):i.properties[d.hostPropertyName||u]=function dF(n,r){var e=Ua(r,!1,!1);return e!==r?"".concat(n,"[").concat(e,"]"):"".concat(n,".").concat(r)}("this",u)})};for(var s in n)a(s);return i}function $6(n){return n.reduce(function(r,e){var i=e.split(":",2).map(function(l){return l.trim()}),o=(0,Nn.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new Ks("14.3.0");var g1;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(g1||(g1={}));var aR=function(){function n(){(0,U.Z)(this,n),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,B.Z)(n,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return mi.PARSABLE_DATA}}]),n}();new aR;var dx;!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"}(dx||(dx={}));!function b8(n){(n.ng||(n.ng={})).\u0275compilerFacade=new h8}(Ku);var Ii=m(925),Mn=m(3191),Yr=m(5664),In=m(8929),xa=m(4096),iU=m(1715),oU=m(352),$i=m(7451),ji=m(6787),Br=m(7625),eo=m(1059),$n=m(4850),xi=m(2986),fa=m(2994),Co=m(7545),ha=m(9071),Ls=m(226);function hx(n,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function Kp(n,r){var e=r?"":"none";hx(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function mR(n,r,e){hx(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function ky(n,r){return r&&"none"!=r?n+" "+r:n}function mx(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function _x(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function gx(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 Ty(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 My(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vx(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&&i<s+g&&e>l-h&&e<a+h}var _R=function(){function n(r){(0,U.Z)(this,n),this._document=r,this.positions=new Map}return(0,B.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:gx(o)})})}},{key:"handleScroll",value:function(e){var i=(0,Ii.sA)(e),o=this.positions.get(i);if(!o)return null;var s,l,a=o.scrollPosition;if(i===this._document){var u=this.getViewportScrollPosition();s=u.top,l=u.left}else s=i.scrollTop,l=i.scrollLeft;var d=a.top-s,h=a.left-l;return this.positions.forEach(function(g,C){g.clientRect&&i!==C&&i.contains(C)&&My(g.clientRect,d,h)}),a.top=s,a.left=l,{top:d,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),n}();function gR(n){var r=n.cloneNode(!0),e=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?bR(n,r):("input"===i||"select"===i||"textarea"===i)&&yR(n,r),vR("canvas",n,r,bR),vR("input, textarea, select",n,r,yR),r}function vR(n,r,e,i){var o=r.querySelectorAll(n);if(o.length)for(var a=e.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var sU=0;function yR(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(sU++))}function bR(n,r){var e=r.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch(i){}}var CR=(0,Ii.i$)({passive:!0}),C1=(0,Ii.i$)({passive:!1}),w1=new Set(["position"]),lU=function(){function n(r,e,i,o,a,s){var l=this;(0,U.Z)(this,n),this._config=e,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new In.xQ,this._pointerMoveSubscription=xa.w.EMPTY,this._pointerUpSubscription=xa.w.EMPTY,this._scrollSubscription=xa.w.EMPTY,this._resizeSubscription=xa.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new In.xQ,this.started=new In.xQ,this.released=new In.xQ,this.ended=new In.xQ,this.entered=new In.xQ,this.exited=new In.xQ,this.dropped=new In.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&l._initializeDragSequence(d,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var d=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(d);if(l._hasMoved=!0,l._lastKnownPointerPosition=d,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,d);else{var re=l.constrainPosition?l._initialClientRect:l._pickupPositionOnPage,ae=l._activeTransform;ae.x=q.x-re.x+l._passiveTransform.x,ae.y=q.y-re.y+l._passiveTransform.y,l._applyRootElementTransform(ae.x,ae.y)}l._moveEvents.observers.length&&l._ngZone.run(function(){l._moveEvents.next({source:l,pointerPosition:q,event:u,distance:l._getDragDistance(q),delta:l._pointerDirectionDelta})})}else{if(Math.abs(d.x-l._pickupPositionOnPage.x)+Math.abs(d.y-l._pickupPositionOnPage.y)>=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 _R(i),s.registerDragItem(this)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Mn.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return Kp(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,Mn.fI)(a)}),this._handles.forEach(function(a){return Kp(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,Mn.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,C1),o.addEventListener("touchstart",i._pointerDown,CR),o.addEventListener("dragstart",i._nativeDragStart,C1)}),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,Mn.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),Kp(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),Kp(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){Sy(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(),mR(o,!1,w1),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=Sy(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,Ii.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=gx(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;mR(this._rootElement,!0,w1),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=kR(l,this._document),this._previewRef=l,e.matchSize?TR(a,s):a.style.transform=k1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else TR(a=gR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return hx(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},w1),Kp(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 aU(n){var r=getComputedStyle(n),e=_x(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=_x(r,"transition-duration"),s=_x(r,"transition-delay");return mx(a[o])+mx(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,Ii.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=kR(this._placeholderRef,this._document)):o=gR(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=Sy(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=Sy(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=yx(a,h.left+u,h.right-(C-u)),s=yx(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,Kp(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,C1),e.removeEventListener("touchstart",this._pointerDown,CR),e.removeEventListener("dragstart",this._nativeDragStart,C1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=k1(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=ky(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=k1(e,i);this._preview.style.transform=ky(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:Sy(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Ii.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&My(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,Ii.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,Mn.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 k1(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function yx(n,r,e){return Math.max(r,Math.min(e,n))}function Sy(n){return"t"===n.type[0]}function kR(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 TR(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=k1(r.left,r.top)}function Rh(n,r){return Math.max(0,Math.min(r,n))}var cU=function(){function n(r,e){(0,U.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,B.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 bx(n,r,e){var i=Rh(r,n.length-1),o=Rh(e,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,l=i;l!==o;l+=s)n[l]=n[l+s];n[o]=a}}(s,d,l),s.forEach(function(ae,Se){if(re[Se]!==ae){var Ce=ae.drag===e,xe=Ce?z:q,Ve=Ce?e.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=xe,u?(Ve.style.transform=ky("translate3d(".concat(Math.round(ae.offset),"px, 0, 0)"),ae.initialTransform),My(ae.clientRect,0,xe)):(Ve.style.transform=ky("translate3d(0, ".concat(Math.round(ae.offset),"px, 0)"),ae.initialTransform),My(ae.clientRect,xe,0))}}),this._previousSwap.overlaps=Ty(C,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y,{previousIndex:d,currentIndex:l}}},{key:"enter",value:function(e,i,o,a){var s=null==a||a<0?this._getItemIndexFromPointerPosition(e,i,o):a,l=this._activeDraggables,u=l.indexOf(e),d=e.getPlaceholderElement(),h=l[s];if(h===e&&(h=l[s+1]),!h&&(null==s||-1===s||s<l.length-1)&&this._shouldEnterAsFirstChild(i,o)&&(h=l[0]),u>-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,Mn.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){My(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:gx(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.right):o>=Math.floor(g.top)&&o<Math.floor(g.bottom)});return-1!==u&&this._sortPredicate(u,e)?u:-1}}]),n}(),dU=function(){function n(r,e,i,o,a){var s=this;(0,U.Z)(this,n),this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new In.xQ,this.entered=new In.xQ,this.exited=new In.xQ,this.dropped=new In.xQ,this.sorted=new In.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xa.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new In.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,iU.F)(0,oU.Z).pipe((0,Br.R)(s._stopScrollTimers)).subscribe(function(){var l=s._scrollNode,u=s.autoScrollStep;1===s._verticalScrollDirection?l.scrollBy(0,-u):2===s._verticalScrollDirection&&l.scrollBy(0,u),1===s._horizontalScrollDirection?l.scrollBy(-u,0):2===s._horizontalScrollDirection&&l.scrollBy(u,0)})},this.element=(0,Mn.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new _R(i),this._sortStrategy=new cU(this.element,e),this._sortStrategy.withSortPredicate(function(l,u){return s.sortPredicate(l,u,s)})}return(0,B.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,i,o,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(e)),this._sortStrategy.enter(e,i,o,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,i,o,a,s,l,u){var d=arguments.length>7&&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,Mn.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,fn.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&&vx(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&&vx(C.clientRect,.05,e,i)){var z=function xR(n,r,e,i){var o=Cx(r,i),a=Lh(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,Nn.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=Cx(g,i),l=Lh(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,Mn.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,Mn.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,Mn.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&&Ty(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||!Ty(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Mn.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,Ii.kV)((0,Mn.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 Cx(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 Lh(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 M1=(0,Ii.i$)({passive:!1,capture:!0}),xy=function(){function n(r,e){var i=this;(0,U.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 In.xQ,this.pointerUp=new In.xQ,this.scroll=new In.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,B.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,M1)})}},{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,M1)}},{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:M1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:M1}),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 $i.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)}})})),ji.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}();xy.\u0275fac=function(r){return new(r||xy)(t.LFG(t.R0b),t.LFG(ge.K0))},xy.\u0275prov=t.Yz7({token:xy,factory:xy.\u0275fac,providedIn:"root"});var ER={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Uc=function(){function n(r,e,i,o){(0,U.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,B.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ER;return new lU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new dU(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();Uc.\u0275fac=function(r){return new(r||Uc)(t.LFG(ge.K0),t.LFG(t.R0b),t.LFG(ha.rL),t.LFG(xy))},Uc.\u0275prov=t.Yz7({token:Uc,factory:Uc.\u0275fac,providedIn:"root"});var wx=new t.OlP("CDK_DRAG_PARENT"),Ey=new t.OlP("CdkDropListGroup"),qp=function(){function n(){(0,U.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();qp.\u0275fac=function(r){return new(r||qp)},qp.\u0275dir=t.lG2({type:qp,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:Ey,useExisting:qp}])]});var kx=new t.OlP("CDK_DRAG_CONFIG");var pU=0,DR=new t.OlP("CdkDropList"),Zh=function(){function n(r,e,i,o,a,s,l){var u=this;(0,U.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new In.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(pU++),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,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Mn.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,eo.O)(this._dir.value),(0,Br.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Mn.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,Mn.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Mn.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Mn.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}();Zh._dropLists=[],Zh.\u0275fac=function(r){return new(r||Zh)(t.Y36(t.SBq),t.Y36(Uc),t.Y36(t.sBO),t.Y36(ha.mF),t.Y36(Ls.Is,8),t.Y36(Ey,12),t.Y36(kx,8))},Zh.\u0275dir=t.lG2({type:Zh,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:Ey,useValue:void 0},{provide:DR,useExisting:Zh}])]});var Tx=new t.OlP("CdkDragHandle"),S1=function(){function n(r,e){(0,U.Z)(this,n),this.element=r,this._stateChanges=new In.xQ,this._disabled=!1,this._parentDrag=e}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();S1.\u0275fac=function(r){return new(r||S1)(t.Y36(t.SBq),t.Y36(wx,12))},S1.\u0275dir=t.lG2({type:S1,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:Tx,useExisting:S1}])]});var AR=new t.OlP("CdkDragPlaceholder"),Dy=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.templateRef=r});Dy.\u0275fac=function(r){return new(r||Dy)(t.Y36(t.Rgc))},Dy.\u0275dir=t.lG2({type:Dy,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:AR,useExisting:Dy}])]});var fU=new t.OlP("CdkDragPreview"),H_=function(){function n(r){(0,U.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,B.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Mn.Ig)(e)}}]),n}();H_.\u0275fac=function(r){return new(r||H_)(t.Y36(t.Rgc))},H_.\u0275dir=t.lG2({type:H_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:fU,useExisting:H_}])]});var j_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,U.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 In.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 $i.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,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Mn.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,xi.q)(1),(0,Br.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,Mn.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,Mn.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,xi.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,eo.O)(this._handles),(0,fa.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,Co.w)(function(i){return ji.T.apply(void 0,(0,fn.Z)(i.map(function(o){return o._stateChanges.pipe((0,eo.O)(o))})))}),(0,Br.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(DR,12),t.Y36(ge.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(kx,8),t.Y36(Ls.Is,8),t.Y36(Uc),t.Y36(t.sBO),t.Y36(Tx,10),t.Y36(wx,12))},j_.\u0275dir=t.lG2({type:j_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,fU,5),t.Suo(i,AR,5),t.Suo(i,Tx,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:wx,useExisting:j_}]),t.TTD]});var G_=(0,B.Z)(function n(){(0,U.Z)(this,n)});G_.\u0275fac=function(r){return new(r||G_)},G_.\u0275mod=t.oAB({type:G_}),G_.\u0275inj=t.cJS({providers:[Uc],imports:[ha.ZD]});var Ei=m(1314),Ci=m(449),Zs=m(3527),to=m(591),Ay=m(4715),qn=m(1086),OR=[[["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 Mx(n){return function(r){(0,tt.Z)(i,r);var e=(0,Ye.Z)(i);function i(){var o;(0,U.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(o=e.call.apply(e,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,B.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,Mn.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var z_=new t.OlP("CDK_TABLE"),_U=new t.OlP("text-column-options"),Hc=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.template=r});Hc.\u0275fac=function(r){return new(r||Hc)(t.Y36(t.Rgc))},Hc.\u0275dir=t.lG2({type:Hc,selectors:[["","cdkCellDef",""]]});var jc=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.template=r});jc.\u0275fac=function(r){return new(r||jc)(t.Y36(t.Rgc))},jc.\u0275dir=t.lG2({type:jc,selectors:[["","cdkHeaderCellDef",""]]});var Pu=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.template=r});Pu.\u0275fac=function(r){return new(r||Pu)(t.Y36(t.Rgc))},Pu.\u0275dir=t.lG2({type:Pu,selectors:[["","cdkFooterCellDef",""]]});var PR=(0,B.Z)(function n(){(0,U.Z)(this,n)}),tl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,B.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(o){var a=this._stickyEnd;this._stickyEnd=(0,Mn.Ig)(o),this._hasStickyChanged=a!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),e}(Mx(PR));tl.\u0275fac=function(r){return new(r||tl)(t.Y36(z_,8))},tl.\u0275dir=t.lG2({type:tl,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Hc,5),t.Suo(i,jc,5),t.Suo(i,Pu,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.cell=o.first),t.iGM(o=t.CRH())&&(e.headerCell=o.first),t.iGM(o=t.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:tl}]),t.qOj]});var x1=(0,B.Z)(function n(r,e){var i;(0,U.Z)(this,n),(i=e.nativeElement.classList).add.apply(i,(0,fn.Z)(r._columnCssClassName))}),Jp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){return(0,U.Z)(this,e),r.call(this,i,o)}return(0,B.Z)(e)}(x1);Jp.\u0275fac=function(r){return new(r||Jp)(t.Y36(tl),t.Y36(t.SBq))},Jp.\u0275dir=t.lG2({type:Jp,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]});var Nh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s;if((0,U.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,B.Z)(e)}(x1);Nh.\u0275fac=function(r){return new(r||Nh)(t.Y36(tl),t.Y36(t.SBq))},Nh.\u0275dir=t.lG2({type:Nh,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]});var Bh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s;if((0,U.Z)(this,e),a=r.call(this,i,o),1===(null===(s=i._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){var l=i._table._elementRef.nativeElement.getAttribute("role"),u="grid"===l||"treegrid"===l?"gridcell":"cell";o.nativeElement.setAttribute("role",u)}return a}return(0,B.Z)(e)}(x1);Bh.\u0275fac=function(r){return new(r||Bh)(t.Y36(tl),t.Y36(t.SBq))},Bh.\u0275dir=t.lG2({type:Bh,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]});var gU=(0,B.Z)(function n(){(0,U.Z)(this,n),this.tasks=[],this.endTasks=[]}),E1=new t.OlP("_COALESCED_STYLE_SCHEDULER"),Qp=function(){function n(r){(0,U.Z)(this,n),this._ngZone=r,this._currentSchedule=null,this._destroyed=new In.xQ}return(0,B.Z)(n,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new gU,this._getScheduleObservable().pipe((0,Br.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new gU;var a,o=(0,xn.Z)(i.tasks);try{for(o.s();!(a=o.n()).done;){(0,a.value)()}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,xn.Z)(i.endTasks);try{for(l.s();!(u=l.n()).done;){(0,u.value)()}}catch(h){l.e(h)}finally{l.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,Zs.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,xi.q)(1))}}]),n}();Qp.\u0275fac=function(r){return new(r||Qp)(t.LFG(t.R0b))},Qp.\u0275prov=t.Yz7({token:Qp,factory:Qp.\u0275fac});var Fh=function(){function n(r,e){(0,U.Z)(this,n),this.template=r,this._differs=e}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Nd?e.headerCell.template:this instanceof Bd?e.footerCell.template:e.cell.template}}]),n}();Fh.\u0275fac=function(r){return new(r||Fh)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Fh.\u0275dir=t.lG2({type:Fh,features:[t.TTD]});var yU=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fh),Nd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(Mx(yU));Nd.\u0275fac=function(r){return new(r||Nd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Nd.\u0275dir=t.lG2({type:Nd,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Sx=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fh),Bd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(Mx(Sx));Bd.\u0275fac=function(r){return new(r||Bd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Bd.\u0275dir=t.lG2({type:Bd,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Fd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e)}(Fh);Fd.\u0275fac=function(r){return new(r||Fd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Fd.\u0275dir=t.lG2({type:Fd,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]});var Ga=function(){function n(r){(0,U.Z)(this,n),this._viewContainer=r,n.mostRecentCellOutlet=this}return(0,B.Z)(n,[{key:"ngOnDestroy",value:function(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}]),n}();Ga.mostRecentCellOutlet=null,Ga.\u0275fac=function(r){return new(r||Ga)(t.Y36(t.s_b))},Ga.\u0275dir=t.lG2({type:Ga,selectors:[["","cdkCellOutlet",""]]});var Uh=(0,B.Z)(function n(){(0,U.Z)(this,n)});Uh.\u0275fac=function(r){return new(r||Uh)},Uh.\u0275cmp=t.Xpm({type:Uh,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var Hh=(0,B.Z)(function n(){(0,U.Z)(this,n)});Hh.\u0275fac=function(r){return new(r||Hh)},Hh.\u0275cmp=t.Xpm({type:Hh,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var jh=(0,B.Z)(function n(){(0,U.Z)(this,n)});jh.\u0275fac=function(r){return new(r||jh)},jh.\u0275cmp=t.Xpm({type:jh,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var ac=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.templateRef=r,this._contentClassName="cdk-no-data-row"});ac.\u0275fac=function(r){return new(r||ac)(t.Y36(t.Rgc))},ac.\u0275dir=t.lG2({type:ac,selectors:[["ng-template","cdkNoDataRow",""]]});var W_=["top","bottom","left","right"],bU=function(){function n(r,e,i,o){var a=!(arguments.length>4&&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,U.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,B.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,xn.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;d<u.children.length;d++)a.push(u.children[d])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){for(var h=0,g=a;h<g.length;h++){var C=g[h];o._removeStickyStyle(C,i)}})}},{key:"updateStickyColumns",value:function(e,i,o){var a=this,s=!(arguments.length>3&&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,xn.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,xe=0;xe<u;xe++){var Ve=Ce.children[xe];i[xe]&&a._addStickyStyle(Ve,q,h[xe],xe===C),o[xe]&&a._addStickyStyle(Ve,re,g[xe],xe===Z)}}catch(at){ae.e(at)}finally{ae.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===C?[]:d.slice(0,C+1).map(function(at,De){return i[De]?at:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===Z?[]:d.slice(Z).map(function(at,De){return o[De+Z]?at:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?e.slice().reverse():e,l="bottom"===o?i.slice().reverse():i,u=[],d=[],h=[],g=0,C=0;g<s.length;g++)if(l[g]){u[g]=C;var Z=s[g];h[g]=this._isNativeHtmlTable?Array.from(Z.children):[Z];var z=Z.getBoundingClientRect().height;C+=z,d[g]=z}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var re,ae,Se=0;Se<s.length;Se++)if(l[Se]){var at,Ce=u[Se],xe=Se===q,Ve=(0,xn.Z)(h[Se]);try{for(Ve.s();!(at=Ve.n()).done;){var De=at.value;a._addStickyStyle(De,o,Ce,xe)}}catch(ot){Ve.e(ot)}finally{Ve.f()}}"top"===o?null===(re=a._positionListener)||void 0===re||re.stickyHeaderRowsUpdated({sizes:d,offsets:u,elements:h}):null===(ae=a._positionListener)||void 0===ae||ae.stickyFooterRowsUpdated({sizes:d,offsets:u,elements:h})})}}},{key:"updateStickyFooterContainer",value:function(e,i){var o=this;if(this._isNativeHtmlTable){var a=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,i){var a,o=(0,xn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;e.style[s]="",e.classList.remove(this._borderCellCss[s])}}catch(u){o.e(u)}finally{o.f()}W_.some(function(u){return-1===i.indexOf(u)&&e.style[u]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,i,o,a){e.classList.add(this._stickCellCss),a&&e.classList.add(this._borderCellCss[i]),e.style[i]="".concat(o,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){for(var i={top:100,bottom:10,left:1,right:1},o=0,a=0,s=W_;a<s.length;a++){var l=s[a];e.style[l]&&(o+=i[l])}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s<a.length;s++){var l=a[s];o.push(l.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(e,i){for(var o=[],a=0,s=0;s<e.length;s++)i[s]&&(o[s]=a,a+=e[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(e,i){for(var o=[],a=0,s=e.length;s>0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var xx=new t.OlP("CDK_SPL"),Iy=(0,B.Z)(function n(){(0,U.Z)(this,n)});Iy.\u0275fac=function(r){return new(r||Iy)},Iy.\u0275dir=t.lG2({type:Iy,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var Ud=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this.elementRef=e});Ud.\u0275fac=function(r){return new(r||Ud)(t.Y36(t.s_b),t.Y36(t.SBq))},Ud.\u0275dir=t.lG2({type:Ud,selectors:[["","rowOutlet",""]]});var Xp=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this.elementRef=e});Xp.\u0275fac=function(r){return new(r||Xp)(t.Y36(t.s_b),t.Y36(t.SBq))},Xp.\u0275dir=t.lG2({type:Xp,selectors:[["","headerRowOutlet",""]]});var $p=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this.elementRef=e});$p.\u0275fac=function(r){return new(r||$p)(t.Y36(t.s_b),t.Y36(t.SBq))},$p.\u0275dir=t.lG2({type:$p,selectors:[["","footerRowOutlet",""]]});var ef=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this.elementRef=e});ef.\u0275fac=function(r){return new(r||ef)(t.Y36(t.s_b),t.Y36(t.SBq))},ef.\u0275dir=t.lG2({type:ef,selectors:[["","noDataRowOutlet",""]]});t.a5r;var Hd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,U.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 In.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 to.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,B.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,Mn.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,Mn.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,Br.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,Ci.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,xi.q)(1),(0,Br.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,fn.Z)(i),(0,fn.Z)(o),(0,fn.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;u<o.length;u++)e._renderRows[u].rowDef===s&&l.push(o[u]);e._addStickyColumnStyles(l,s)}),a.forEach(function(s,l){e._addStickyColumnStyles([s],e._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(function(s){return s.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var o=0;o<this._data.length;o++){var a=this._data[o],s=this._getRenderRowsForData(a,o,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(var l=0;l<s.length;l++){var u=s[l],d=this._cachedRenderRowsMap.get(u.data);d.has(u.rowDef)?d.get(u.rowDef).push(u):d.set(u.rowDef,[u]),e.push(u)}}return e}},{key:"_getRenderRowsForData",value:function(e,i,o){return this._getRowDefs(e,i).map(function(s){var l=o&&o.has(s)?o.get(s):[];if(l.length){var u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:s,dataIndex:i}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),Py(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(o){e._columnDefsByName.has(o.name),e._columnDefsByName.set(o.name,o)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Py(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Py(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Py(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(i){return!i.when});!this.multiTemplateDataRows&&e.length,this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(l,u){return l||!!u.getColumnsDiff()},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();var o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();var a=this._footerRowDefs.reduce(e,!1);return a&&this._forceRenderFooterRows(),i||o||a}},{key:"_switchDataSource",value:function(e){this._data=[],(0,Ci.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var i,e=this;this.dataSource&&((0,Ci.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,Ay.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,qn.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Br.R)(this._onDestroy)).subscribe(function(o){e._data=o||[],e.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&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;o<e.viewContainer.length;o++){var a=e.viewContainer.get(o);i.push(a.rootNodes[0])}return i}},{key:"_getRowDefs",value:function(e,i){if(1==this._rowDefs.length)return[this._rowDefs[0]];var o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(function(s){return!s.when||s.when(i,e)});else{var a=this._rowDefs.find(function(s){return s.when&&s.when(i,e)})||this._defaultRowDef;a&&o.push(a)}return o.length,o}},{key:"_getEmbeddedViewArgs",value:function(e,i){var o=e.rowDef,a={$implicit:e.data};return{templateRef:o.template,context:a,index:i}}},{key:"_renderRow",value:function(e,i,o){var a=arguments.length>3&&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,xn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Ga.mostRecentCellOutlet&&Ga.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<o;i++){var s=e.get(i).context;s.count=o,s.first=0===i,s.last=i===o-1,s.even=i%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[i].dataIndex,s.renderIndex=i):s.index=this._renderRows[i].dataIndex}}},{key:"_getCellTemplates",value:function(e){var i=this;return e&&e.columns?Array.from(e.columns,function(o){var a=i._columnDefsByName.get(o);return e.extractCellTemplate(a)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),o=0,a=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];o<a.length;o++){var s=a[o],l=this._document.createElement(s.tag);l.setAttribute("role","rowgroup");var d,u=(0,xn.Z)(s.outlets);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.appendChild(h.elementRef.nativeElement)}}catch(g){u.e(g)}finally{u.f()}e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(o,a){return o||a.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this,i=this._dir?this._dir.value:"ltr";this._stickyStyler=new bU(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,Br.R)(this._onDestroy)).subscribe(function(o){e._stickyStyler.direction=o,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var i=this;return e.filter(function(o){return!o._table||o._table===i})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){var o=this._noDataRowOutlet.viewContainer;if(i){var a=o.createEmbeddedView(e.templateRef),s=a.rootNodes[0];1===a.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}}}]),n}();function Py(n,r){return n.concat(Array.from(r))}Hd.\u0275fac=function(r){return new(r||Hd)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(Ls.Is,8),t.Y36(ge.K0),t.Y36(Ii.t4),t.Y36(Ci.k),t.Y36(E1),t.Y36(ha.rL),t.Y36(xx,12),t.Y36(t.R0b,8))},Hd.\u0275cmp=t.Xpm({type:Hd,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ac,5),t.Suo(i,tl,5),t.Suo(i,Fd,5),t.Suo(i,Nd,5),t.Suo(i,Bd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._noDataRow=o.first),t.iGM(o=t.CRH())&&(e._contentColumnDefs=o),t.iGM(o=t.CRH())&&(e._contentRowDefs=o),t.iGM(o=t.CRH())&&(e._contentHeaderRowDefs=o),t.iGM(o=t.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(t.Gf(Ud,7),t.Gf(Xp,7),t.Gf($p,7),t.Gf(ef,7)),2&r)&&(t.iGM(i=t.CRH())&&(e._rowOutlet=i.first),t.iGM(i=t.CRH())&&(e._headerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._footerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:z_,useExisting:Hd},{provide:Ci.k,useClass:Ci.yy},{provide:E1,useClass:Qp},{provide:xx,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(OR),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ud,Xp,$p,ef],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var tf=function(){function n(r,e){(0,U.Z)(this,n),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,B.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}},{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,i){return e[i]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}}]),n}();tf.\u0275fac=function(r){return new(r||tf)(t.Y36(Hd,8),t.Y36(_U,8))},tf.\u0275cmp=t.Xpm({type:tf,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(tl,7),t.Gf(Hc,7),t.Gf(jc,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.columnDef=i.first),t.iGM(i=t.CRH())&&(e.cell=i.first),t.iGM(i=t.CRH())&&(e.headerCell=i.first))},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,hU,2,3,"th",1),t.YNc(2,mU,2,3,"td",2),t.BQk())},dependencies:[Hc,jc,tl,Bh,Jp],encapsulation:2});var nf=(0,B.Z)(function n(){(0,U.Z)(this,n)});nf.\u0275fac=function(r){return new(r||nf)},nf.\u0275mod=t.oAB({type:nf}),nf.\u0275inj=t.cJS({imports:[ha.Cl]});var sc=m(520),J=m(3075),Wt=m(508),xr=m(1159),jd=m(3753),ni=m(9664),D1=m(7604),Ry=m(5778),nl=m(13),Rt=m(1777),A1=["*"],MU=["content"];function _Y(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function gY(n,r){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}var ZR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function Ly(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function SU(n,r){1&n&&(t.TgZ(0,"mat-sidenav-content"),t.Hsn(1,2),t.qZA())}var Ex=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],FR={transformDrawer:(0,Rt.X$)("transform",[(0,Rt.SB)("open, open-instant",(0,Rt.oB)({transform:"none",visibility:"visible"})),(0,Rt.SB)("void",(0,Rt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Rt.eR)("void => open-instant",(0,Rt.jt)("0ms")),(0,Rt.eR)("void <=> open, open-instant => void",(0,Rt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var EU=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function UR(){return!1}}),Zy=new t.OlP("MAT_DRAWER_CONTAINER");var zc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ha.PQ);zc.\u0275fac=function(r){return new(r||zc)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zd})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},zc.\u0275cmp=t.Xpm({type:zc,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:ha.PQ,useExisting:zc}]),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 Gd=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,U.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 In.xQ,this._animationEnd=new In.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,ni.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,ni.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,D1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,ni.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,ni.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,D1.h)(void 0)),this._destroyed=new In.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new In.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,jd.R)(d._elementRef.nativeElement,"keydown").pipe((0,ni.h)(function(h){return h.keyCode===xr.hY&&!d.disableClose&&!(0,xr.Vb)(h)}),(0,Br.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,Ry.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,B.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,Mn.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,Mn.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Mn.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,xi.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}();Gd.\u0275fac=function(r){return new(r||Gd)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(ge.K0,8),t.Y36(Zy,8))},Gd.\u0275cmp=t.Xpm({type:Gd,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(MU,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:[ha.PQ],encapsulation:2,data:{animation:[FR.transformDrawer]},changeDetection:0});var zd=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,U.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 In.xQ,this._doCheckSubject=new In.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new In.xQ,r&&r.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Br.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,B.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,Mn.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,Mn.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,eo.O)(this._allDrawers),(0,Br.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,eo.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,nl.b)(10),(0,Br.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,ni.h)(function(o){return o.fromState!==o.toState}),(0,Br.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,Br.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Br.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,xi.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Br.R)((0,ji.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}();zd.\u0275fac=function(r){return new(r||zd)(t.Y36(Ls.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ha.rL),t.Y36(EU),t.Y36(t.QbO,8))},zd.\u0275cmp=t.Xpm({type:zd,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,zc,5),t.Suo(i,Gd,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(zc,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:Zy,useExisting:zd}])],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(ZR),t.YNc(0,_Y,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,gY,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,zc],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 V_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){return(0,U.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,B.Z)(e)}(zc);V_.\u0275fac=function(r){return new(r||V_)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zh})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},V_.\u0275cmp=t.Xpm({type:V_,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:ha.PQ,useExisting:V_}]),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 Gh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,B.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Mn.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Mn.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Mn.su)(o)}}]),e}(Gd);Gh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Gh)))(e||Gh)}}(),Gh.\u0275cmp=t.Xpm({type:Gh,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:[ha.PQ],encapsulation:2,data:{animation:[FR.transformDrawer]},changeDetection:0});var zh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(zd);zh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zh)))(e||zh)}}(),zh.\u0275cmp=t.Xpm({type:zh,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,V_,5),t.Suo(i,Gh,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:Zy,useExisting:zh}]),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(Ex),t.YNc(0,Ly,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,SU,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,V_],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 Wh=(0,B.Z)(function n(){(0,U.Z)(this,n)});Wh.\u0275fac=function(r){return new(r||Wh)},Wh.\u0275mod=t.oAB({type:Wh}),Wh.\u0275inj=t.cJS({imports:[ge.ez,Wt.BQ,ha.ZD,ha.ZD,Wt.BQ]});function HR(n){return new t.vHH(3e3,!1)}function BU(n){return new t.vHH(3502,!1)}function $R(){return new t.vHH(3300,!1)}function FU(n){return new t.vHH(3504,!1)}function O1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vd(n){switch(n.length){case 0:return new Rt.ZN;case 1:return n[0];default:return new Rt.ZE(n)}}function VU(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 Rt.k1:ae=o.get(q);break;case Rt.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 BU();return l}function By(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&I1(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&I1(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&I1(e,"destroy",n))})}}function I1(n,r,e){var i=e.totalTime,o=!!e.disabled,a=Ox(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 Ox(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 wl(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function YU(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var Ix=function(r,e){return!1},Vh=function(r,e,i){return[]},tL=null;function Y_(n){var r=n.parentNode||n.host;return r===tL?null:r}(O1()||"undefined"!=typeof Element)&&(function Wd(){return"undefined"!=typeof window&&void 0!==window.document}()?(tL=function(){return document.documentElement}(),Ix=function(r,e){for(;e;){if(e===r)return!0;e=Y_(e)}return!1}):Ix=function(r,e){return r.contains(e)},Vh=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var K_=null,Px=!1;function qU(n){K_||(K_=function JU(){return"undefined"!=typeof document?document.body:null}()||{},Px=!!K_.style&&"WebkitAppearance"in K_.style);var r=!0;K_.style&&!function kY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in K_.style)&&Px)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in K_.style);return r}var QU=Ix,nL=Vh;var rf=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"validateStyleProperty",value:function(e){return qU(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return QU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return nL(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 Rt.ZN(o,a)}}]),n}();rf.\u0275fac=function(r){return new(r||rf)},rf.\u0275prov=t.Yz7({token:rf,factory:rf.\u0275fac});var Rx=(0,B.Z)(function n(){(0,U.Z)(this,n)});Rx.NOOP=new rf;var iL="ng-enter",uc="ng-leave",P1="ng-trigger",q_=".ng-trigger",oL="ng-animating",Zx=".ng-animating";function cc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:R1(parseFloat(r[1]),r[2])}function R1(n,r){return"s"===r?1e3*n:n}function Uy(n,r,e){return n.hasOwnProperty("duration")?n:function $U(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(HR()),{duration:0,delay:0,easing:""};o=R1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=R1(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 jR(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function Dx(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,HR())}return{duration:o,delay:a,easing:s}}(n,r,e)}function J_(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 Nx(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Q_(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return Nx(r)}):[]}function of(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,xn.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.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,xn.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Nn.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 $_(n,r,e){return e?r+":"+e+";":""}function dc(n){for(var r="",e=0;e<n.style.length;e++){var i=n.style.item(e);r+=$_(0,i,n.style.getPropertyValue(i))}for(var o in n.style)if(n.style.hasOwnProperty(o)&&!o.startsWith("_")){r+=$_(0,TY(o),n.style[o])}n.setAttribute("style",r)}function pc(n,r,e){n.style&&(r.forEach(function(i,o){var a=Z1(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),O1()&&dc(n))}function Yd(n,r){n.style&&(r.forEach(function(e,i){var o=Z1(i);n.style[o]=""}),O1()&&dc(n))}function eu(n){return Array.isArray(n)?1==n.length?n[0]:(0,Rt.vP)(n):n}function e7(n,r,e){var i=r.params||{},o=sL(n);o.length&&o.forEach(function(a){i.hasOwnProperty(a)||e.push(function DU(n){return new t.vHH(3001,!1)}())})}var aL=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function sL(n){var r=[];if("string"==typeof n){for(var e;e=aL.exec(n);)r.push(e[1]);aL.lastIndex=0}return r}function Hy(n,r,e){var i=n.toString(),o=i.replace(aL,function(a,s){var l=r[s];return null==l&&(e.push(function AU(n){return new t.vHH(3003,!1)}()),l=""),l.toString()});return o==i?n:o}function L1(n){for(var r=[],e=n.next();!e.done;)r.push(e.value),e=n.next();return r}var t7=/-+([a-z0-9])/g;function Z1(n){return n.replace(t7,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}function TY(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function lL(n,r){return 0===n||0===r}function n7(n,r,e){if(e.size&&r.length){var i=r[0],o=[];if(e.forEach(function(l,u){i.has(u)||o.push(u),i.set(u,l)}),o.length)for(var a=function(){var u=r[s];o.forEach(function(d){return u.set(d,r7(n,d))})},s=1;s<r.length;s++)a()}return r}function kl(n,r,e){switch(r.type){case 7:return n.visitTrigger(r,e);case 0:return n.visitState(r,e);case 1:return n.visitTransition(r,e);case 2:return n.visitSequence(r,e);case 3:return n.visitGroup(r,e);case 4:return n.visitAnimate(r,e);case 5:return n.visitKeyframes(r,e);case 6:return n.visitStyle(r,e);case 8:return n.visitReference(r,e);case 9:return n.visitAnimateChild(r,e);case 10:return n.visitAnimateRef(r,e);case 11:return n.visitQuery(r,e);case 12:return n.visitStagger(r,e);default:throw function yY(n){return new t.vHH(3004,!1)}(r.type)}}function r7(n,r){return window.getComputedStyle(n)[r]}function dL(n,r){var e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(function(i){return function a7(n,r,e){if(":"==n[0]){var i=function pL(n,r){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i)<parseFloat(e)};default:return r.push(function QR(n){return new t.vHH(3016,!1)}()),"* => *"}}(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 JR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(fL(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(fL(l,a))}(i,e,r)}):e.push(n),e}var jy=new Set(["true","1"]),Bx=new Set(["false","0"]);function fL(n,r){var e=jy.has(n)||Bx.has(n),i=jy.has(r)||Bx.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?jy.has(n):Bx.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?jy.has(r):Bx.has(r)),s&&l}}var s7=":self",MY=new RegExp("s*".concat(":self","s*,?"),"g");function Fx(n,r,e,i){return new l7(n).build(r,e,i)}var l7=function(){function n(r){(0,U.Z)(this,n),this._driver=r}return(0,B.Z)(n,[{key:"build",value:function(e,i,o){var a=new d7(i);return this._resetContextStyleTimingState(a),kl(this,eu(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 IU(){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 GR(){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){sL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){L1(s.values());i.errors.push(function zR(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=kl(this,eu(e.animation),i);return{type:1,matchers:dL(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:tg(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return kl(o,a,i)}),options:tg(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=kl(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:tg(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function xY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return Ux(Uy(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=Ux(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=Uy(i,r);return Ux(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Rt.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,Rt.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,xn.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Rt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(Nx(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,xn.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 VR(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&&e7(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 YR(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,C=e.steps.map(function(Ce){var xe=o._makeStyleAst(Ce,i),Ve=null!=xe.offset?xe.offset:function SY(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}(xe.styles),at=0;return null!=Ve&&(l++,at=xe.offset=Ve),h=h||at<0||at>1,d=d||at<g,g=at,u.push(at),xe});h&&i.errors.push(function PU(){return new t.vHH(3012,!1)}()),d&&i.errors.push(function RU(){return new t.vHH(3200,!1)}());var Z=e.steps.length,z=0;l>0&&l<Z?i.errors.push(function KR(){return new t.vHH(3202,!1)}()):0==l&&(z=1/(Z-1));var q=Z-1,re=i.currentTime,ae=i.currentAnimateTimings,Se=ae.duration;return C.forEach(function(Ce,xe){var Ve=z>0?xe==q?1:z*xe:u[xe],at=Ve*Se;i.currentTime=re+ae.delay+at,ae.duration=at,o._validateStyleAst(Ce,i),Ce.offset=Ve,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:kl(this,eu(e.animation),i),options:tg(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:tg(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:tg(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function u7(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==s7});return r&&(n=n.replace(MY,"")),n=n.replace(/@\*/g,q_).replace(/@\w+/g,function(e){return q_+"-"+e.slice(1)}).replace(/:animating/g,Zx),[n,r]}(e.selector),l=(0,Nn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,wl(i.collectedStyles,i.currentQuerySelector,new Map);var h=kl(this,eu(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:tg(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function LU(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:Uy(e.timings,i.errors,!0);return{type:12,animation:kl(this,eu(e.animation),i),timings:o,options:null}}}]),n}();var d7=(0,B.Z)(function n(r){(0,U.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 tg(n){return n?(n=J_(n)).params&&(n.params=function c7(n){return n?J_(n):null}(n.params)):n={},n}function Ux(n,r,e){return{duration:n,delay:r,easing:e}}function Gy(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 hL=function(){function n(){(0,U.Z)(this,n),this._map=new Map}return(0,B.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,fn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),Kh=new RegExp(":enter","g"),Hx=new RegExp(":leave","g");function B1(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 DY).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var DY=function(){function n(){(0,U.Z)(this,n)}return(0,B.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 hL;var C=new jx(e,i,h,a,s,g,[]);C.options=d;var Z=d.delay?cc(d.delay):0;C.currentTimeline.delayNextStep(Z),C.currentTimeline.setStyles([l],null,C.errors,d),kl(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()}):[Gy(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,xn.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:cc(Hy(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?cc(o.duration):null,u=null!=o.delay?cc(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),kl(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=ng);var u=cc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return kl(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?cc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),kl(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 Uy(i.params?Hy(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?cc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ng);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),kl(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;kl(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-C+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ng={},jx=function(){function n(r,e,i,o,a,s,l,u){(0,U.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=ng,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Gx(this._driver,e,0),l.push(this.currentTimeline)}return(0,B.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=cc(a.duration)),null!=a.delay&&(s.delay=cc(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]=Hy(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=ng,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 AY(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(Kh,"."+this._enterClassName)).replace(Hx,"."+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,fn.Z)(h))}return!s&&0==u.length&&l.push(function qR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),Gx=function(){function n(r,e,i,o){(0,U.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,B.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,xn.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Rt.l3),this._currentKeyframe.set(s,Rt.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 OY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Rt.l3)}}catch(u){a.e(u)}finally{a.f()}}else of(o,e)}),e}(e,this._globalTimelineStyles),d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Nn.Z)(h.value,2),C=g[0],z=Hy(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:Rt.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,xn.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Nn.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=of(g,new Map,e._backFill);Z.forEach(function(z,q){z===Rt.k1?i.add(q):z===Rt.l3&&o.add(q)}),a||Z.set("offset",C/e.duration),s.push(Z)});var l=i.size?L1(i.values()):[],u=o.size?L1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return Gy(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),AY=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,U.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,B.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=of(o[0]);C.set("offset",0),d.push(C);var Z=of(o[0]);Z.set("offset",f7(g)),d.push(Z);for(var z=o.length-1,q=1;q<=z;q++){var re=of(o[q]),Se=s+re.get("offset")*l;re.set("offset",f7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return Gy(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(Gx);function f7(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 F1=(0,B.Z)(function n(){(0,U.Z)(this,n)}),h7=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"]),m7=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return Z1(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(h7.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 OU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(F1);function _L(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 U1={},zx=function(){function n(r,e,i){(0,U.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,B.Z)(n,[{key:"match",value:function(e,i,o,a){return function g7(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||U1,q=u&&u.params||U1,re=this.buildStyles(o,q,Z),ae=d&&d.params||U1,Se=this.buildStyles(a,ae,Z),Ce=new Set,xe=new Map,Ve=new Map,at="void"===a,De={params:v7(ae,z),delay:null===(C=this.ast.options)||void 0===C?void 0:C.delay},ot=g?[]:B1(e,i,this.ast.animation,s,l,re,Se,De,h,Z),ht=0;if(ot.forEach(function(Xe){ht=Math.max(Xe.duration+Xe.delay,ht)}),Z.length)return _L(i,this._triggerName,o,a,at,re,Se,[],[],xe,Ve,ht,Z);ot.forEach(function(Xe){var Pe=Xe.element,pt=wl(xe,Pe,new Set);Xe.preStyleProps.forEach(function(Gt){return pt.add(Gt)});var Nt=wl(Ve,Pe,new Set);Xe.postStyleProps.forEach(function(Gt){return Nt.add(Gt)}),Pe!==i&&Ce.add(Pe)});var bt=L1(Ce.values());return _L(i,this._triggerName,o,a,at,re,Se,ot,bt,xe,Ve,ht)}}]),n}();function v7(n,r){var e=J_(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var gL=function(){function n(r,e,i){(0,U.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,B.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=J_(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=Hy(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 PY=function(){function n(r,e,i){var o=this;(0,U.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 gL(a.style,s,i))}),rg(this.states,"true","1"),rg(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new zx(r,a,o.states))}),this.fallbackTransition=function vL(n,r,e){return new zx(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,B.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 rg(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 y7=new hL,b7=function(){function n(r,e,i){(0,U.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,B.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=Fx(this._driver,i,o,a);if(o.length)throw function XR(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=VU(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=B1(this._driver,i,l,iL,uc,new Map,new Map,a,y7,s)).forEach(function(C){var Z=wl(d,C.element,new Map);C.postStyleProps.forEach(function(z){return Z.set(z,null)})}):(s.push($R()),u=[]),s.length)throw FU();d.forEach(function(C,Z){C.forEach(function(z,q){C.set(q,o._driver.computeStyle(Z,q,Rt.l3))})});var h=u.map(function(C){var Z=d.get(C.element);return o._buildPlayer(C,new Map,Z)}),g=Vd(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 UU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=Ox(i,"","","");return By(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}(),C7="ng-animate-queued",Wx="ng-animate-disabled",w7="ng-star-inserted",ZY=[],k7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fc="__ng_removed",Vx=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,U.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=c(o),i){var a=J_(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,B.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}(),H1="void",yL=new Vx(H1),BY=function(){function n(r,e,i){(0,U.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,V(e,this._hostClassName)}return(0,B.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function HU(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 f(n){return"start"==n||"done"==n}(o))throw function GU(n,r){return new t.vHH(3400,!1)}();var l=wl(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=wl(this._engine.statesByElement,e,new Map);return d.has(i)||(V(e,P1),V(e,P1+"-"+i),d.set(i,yL)),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 zU(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 bL(this.id,i,e),d=this._engine.statesByElement.get(e);d||(V(e,P1),V(e,P1+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new Vx(o,this.id),C=o&&o.hasOwnProperty("value");!C&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=yL);var Z=g.value===H1;if(Z||h.value!==g.value){var ae=wl(this._engine.playersByElement,e,[]);ae.forEach(function(xe){xe.namespaceId==a.id&&xe.triggerName==i&&xe.queued&&xe.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||(V(e,C7),u.onStart(function(){ee(e,C7)})),u.onDone(function(){var xe=a.players.indexOf(u);xe>=0&&a.players.splice(xe,1);var Ve=a._engine.playersByElement.get(e);if(Ve){var at=Ve.indexOf(u);at>=0&&Ve.splice(at,1)}}),this.players.push(u),ae.push(u),u}if(!rt(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(){Yd(e,q),pc(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,q_,!0);a.forEach(function(s){if(!s[fc]){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,H1,a);C&&d.push(C)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vd(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)||yL,C=new Vx(H1),Z=new bL(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[fc];(!h||h===k7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){V(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=Ox(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,By(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}(),FY=function(){function n(r,e,i){(0,U.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,B.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 BY(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,xn.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[fc];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),V(e,Wx)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Wx))}},{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[fc]={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,q_,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,Zx,!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 Vd(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[fc];if(a&&a.setForRemoval){if(e[fc]=k7,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(Wx)&&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<this.collectedEnterElements.length;a++){var s=this.collectedEnterElements[a];V(s,w7)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var l=[];try{o=this._flushAnimations(l,i)}finally{for(var u=0;u<l.length;u++)l[u]()}}else for(var d=0;d<this.collectedLeaveElements.length;d++){var h=this.collectedLeaveElements[d];this.processLeaveNode(h)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(C){return C()}),this._flushFns=[],this._whenQuietFns.length){var g=this._whenQuietFns;this._whenQuietFns=[],o.length?Vd(o).onDone(function(){g.forEach(function(C){return C()})}):g.forEach(function(C){return C()})}}},{key:"reportError",value:function(e){throw function WU(n){return new t.vHH(3402,!1)}()}},{key:"_flushAnimations",value:function(e,i){var o=this,a=new hL,s=[],l=new Map,u=[],d=new Map,h=new Map,g=new Map,C=new Set;this.disabledNodes.forEach(function(bn){C.add(bn);for(var Bn=o.driver.query(bn,".ng-animate-queued",!0),nr=0;nr<Bn.length;nr++)C.add(Bn[nr])});var Z=this.bodyNode,z=Array.from(this.statesByElement.keys()),q=I(z,this.collectedEnterElements),re=new Map,ae=0;q.forEach(function(bn,Bn){var nr=iL+ae++;re.set(Bn,nr),bn.forEach(function(vr){return V(vr,nr)})});for(var Se=[],Ce=new Set,xe=new Set,Ve=0;Ve<this.collectedLeaveElements.length;Ve++){var at=this.collectedLeaveElements[Ve],De=at[fc];De&&De.setForRemoval&&(Se.push(at),Ce.add(at),De.hasAnimation?this.driver.query(at,".ng-star-inserted",!0).forEach(function(bn){return Ce.add(bn)}):xe.add(at))}var ot=new Map,ht=I(z,Array.from(Ce));ht.forEach(function(bn,Bn){var nr=uc+ae++;ot.set(Bn,nr),bn.forEach(function(vr){return V(vr,nr)})}),e.push(function(){q.forEach(function(bn,Bn){var nr=re.get(Bn);bn.forEach(function(vr){return ee(vr,nr)})}),ht.forEach(function(bn,Bn){var nr=ot.get(Bn);bn.forEach(function(vr){return ee(vr,nr)})}),Se.forEach(function(bn){o.processLeaveNode(bn)})});for(var bt=[],Xe=[],Pe=this._namespaceList.length-1;Pe>=0;Pe--){this._namespaceList[Pe].drainQueuedTransitions(i).forEach(function(bn){var Bn=bn.player,nr=bn.element;if(bt.push(Bn),o.collectedEnterElements.length){var vr=nr[fc];if(vr&&vr.setForMove){if(vr.previousTriggersValues&&vr.previousTriggersValues.has(bn.triggerName)){var io=vr.previousTriggersValues.get(bn.triggerName),Yu=o.statesByElement.get(bn.element);if(Yu&&Yu.has(bn.triggerName)){var Tv=Yu.get(bn.triggerName);Tv.value=io,Yu.set(bn.triggerName,Tv)}}return void Bn.destroy()}}var Mv=!Z||!o.driver.containsElement(Z,nr),Jm=ot.get(nr),sC=re.get(nr),Ia=o._buildInstruction(bn,a,sC,Jm,Mv);if(Ia.errors&&Ia.errors.length)Xe.push(Ia);else{if(Mv)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return pc(nr,Ia.toStyles)}),void s.push(Bn);if(bn.isFallbackTransition)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return pc(nr,Ia.toStyles)}),void s.push(Bn);var PP=[];Ia.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||PP.push(th)}),Ia.timelines=PP,a.append(nr,Ia.timelines);var tV={instruction:Ia,player:Bn,element:nr};u.push(tV),Ia.queriedElements.forEach(function(th){return wl(d,th,[]).push(Bn)}),Ia.preStyleProps.forEach(function(th,RP){if(th.size){var lC=h.get(RP);lC||h.set(RP,lC=new Set),th.forEach(function(Iet,nV){return lC.add(nV)})}}),Ia.postStyleProps.forEach(function(th,RP){var lC=g.get(RP);lC||g.set(RP,lC=new Set),th.forEach(function(Iet,nV){return lC.add(nV)})})}})}if(Xe.length){var Nt=[];Xe.forEach(function(bn){Nt.push(function wY(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Nt)}var Gt=new Map,It=new Map;u.forEach(function(bn){var Bn=bn.element;a.has(Bn)&&(It.set(Bn,Bn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,Gt))}),s.forEach(function(bn){var Bn=bn.element;o._getPreviousPlayers(Bn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(vr){wl(Gt,Bn,[]).push(vr),vr.destroy()})});var Tn=Se.filter(function(bn){return ft(bn,h,g)}),jn=new Map;w(jn,this.driver,xe,g,Rt.l3).forEach(function(bn){ft(bn,h,g)&&Tn.push(bn)});var or=new Map;q.forEach(function(bn,Bn){w(or,o.driver,new Set(bn),h,Rt.k1)}),Tn.forEach(function(bn){var Bn,nr,vr=jn.get(bn),io=or.get(bn);jn.set(bn,new Map([].concat((0,fn.Z)(Array.from(null!==(Bn=null==vr?void 0:vr.entries())&&void 0!==Bn?Bn:[])),(0,fn.Z)(Array.from(null!==(nr=null==io?void 0:io.entries())&&void 0!==nr?nr:[])))))});var Sr=[],_r=[],zr={};u.forEach(function(bn){var Bn=bn.element,nr=bn.player,vr=bn.instruction;if(a.has(Bn)){if(C.has(Bn))return nr.onDestroy(function(){return pc(Bn,vr.toStyles)}),nr.disabled=!0,nr.overrideTotalTime(vr.totalTime),void s.push(nr);var io=zr;if(It.size>1){for(var Yu=Bn,Tv=[];Yu=Yu.parentNode;){var Mv=It.get(Yu);if(Mv){io=Mv;break}Tv.push(Yu)}Tv.forEach(function(Ia){return It.set(Ia,io)})}var Jm=o._buildAnimation(nr.namespaceId,vr,Gt,l,or,jn);if(nr.setRealPlayer(Jm),io===zr)Sr.push(nr);else{var sC=o.playersByElement.get(io);sC&&sC.length&&(nr.parentPlayer=Vd(sC)),s.push(nr)}}else Yd(Bn,vr.fromStyles),nr.onDestroy(function(){return pc(Bn,vr.toStyles)}),_r.push(nr),C.has(Bn)&&s.push(nr)}),_r.forEach(function(bn){var Bn=l.get(bn.element);if(Bn&&Bn.length){var nr=Vd(Bn);bn.setRealPlayer(nr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var Ur=0;Ur<Se.length;Ur++){var Kr=Se[Ur],Fo=Kr[fc];if(ee(Kr,uc),!Fo||!Fo.hasAnimation){var er=[];if(d.size){var wr=d.get(Kr);wr&&wr.length&&er.push.apply(er,(0,fn.Z)(wr));for(var Sn=this.driver.query(Kr,Zx,!0),gn=0;gn<Sn.length;gn++){var tr=d.get(Sn[gn]);tr&&tr.length&&er.push.apply(er,(0,fn.Z)(tr))}}var un=er.filter(function(bn){return!bn.destroyed});un.length?oe(this,Kr,un):this.processLeaveNode(Kr)}}return Se.length=0,Sr.forEach(function(bn){o.players.push(bn),bn.onDone(function(){bn.destroy();var Bn=o.players.indexOf(bn);o.players.splice(Bn,1)}),bn.play()}),Sr}},{key:"elementContainsData",value:function(e,i){var o=!1,a=i[fc];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(i)&&(o=!0),this.playersByQueriedElement.has(i)&&(o=!0),this.statesByElement.has(i)&&(o=!0),this._fetchNamespace(e).elementContainsData(i)||o}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,i,o,a,s){var l=[];if(i){var u=this.playersByQueriedElement.get(e);u&&(l=u)}else{var d=this.playersByElement.get(e);if(d){var h=!s||s==H1;d.forEach(function(g){g.queued||!h&&g.triggerName!=a||l.push(g)})}}return(o||a)&&(l=l.filter(function(g){return!(o&&o!=g.namespaceId||a&&a!=g.triggerName)})),l}},{key:"_beforeAnimationBuild",value:function(e,i,o){var g,a=this,s=i.triggerName,l=i.element,u=i.isRemovalTransition?void 0:e,d=i.isRemovalTransition?void 0:s,h=(0,xn.Z)(i.timelines);try{var C=function(){var q=g.value.element,re=q!==l,ae=wl(o,q,[]);a._getPreviousPlayers(q,re,u,d,i.toState).forEach(function(Ce){var xe=Ce.getRealPlayer();xe.beforeDestroy&&xe.beforeDestroy(),Ce.destroy(),ae.push(Ce)})};for(h.s();!(g=h.n()).done;)C()}catch(Z){h.e(Z)}finally{h.f()}Yd(l,i.fromStyles)}},{key:"_buildAnimation",value:function(e,i,o,a,s,l){var u=this,d=i.triggerName,h=i.element,g=[],C=new Set,Z=new Set,z=i.timelines.map(function(re){var ae=re.element;C.add(ae);var Se=ae[fc];if(Se&&Se.removedBeforeQueried)return new Rt.ZN(re.duration,re.delay);var Ce=ae!==h,xe=function ve(n){var r=[];return He(n,r),r}((o.get(ae)||ZY).map(function(bt){return bt.getRealPlayer()})).filter(function(bt){var Xe=bt;return!!Xe.element&&Xe.element===ae}),Ve=s.get(ae),at=l.get(ae),De=VU(u.driver,u._normalizer,ae,re.keyframes,Ve,at),ot=u._buildPlayer(re,De,xe);if(re.subTimeline&&a&&Z.add(ae),Ce){var ht=new bL(e,d,ae);ht.setRealPlayer(ot),g.push(ht)}return ot});g.forEach(function(re){wl(u.playersByQueriedElement,re.element,[]).push(re),re.onDone(function(){return function UY(n,r,e){var i=n.get(r);if(i){if(i.length){var o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(r)}return i}(u.playersByQueriedElement,re.element,re)})}),C.forEach(function(re){return V(re,oL)});var q=Vd(z);return q.onDestroy(function(){C.forEach(function(re){return ee(re,oL)}),pc(h,i.toStyles)}),Z.forEach(function(re){wl(a,re,[]).push(q)}),q}},{key:"_buildPlayer",value:function(e,i,o){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Rt.ZN(e.duration,e.delay)}}]),n}(),bL=function(){function n(r,e,i){(0,U.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Rt.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,B.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return By(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){wl(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 c(n){return null!=n?n:null}function p(n){return n&&1===n.nodeType}function _(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function w(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(_(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[fc]=NY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return _(u,a[l++])}),s}function I(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 V(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function ee(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function oe(n,r,e){Vd(e).onDone(function(){return n.processLeaveNode(r)})}function He(n,r){for(var e=0;e<n.length;e++){var i=n[e];i instanceof Rt.ZE?He(i.players,r):r.push(i)}}function rt(n,r){var e=Object.keys(n),i=Object.keys(r);if(e.length!=i.length)return!1;for(var o=0;o<e.length;o++){var a=e[o];if(!r.hasOwnProperty(a)||n[a]!==r[a])return!1}return!0}function ft(n,r,e){var i=e.get(n);if(!i)return!1;var o=r.get(n);return o?i.forEach(function(a){return o.add(a)}):r.set(n,i),e.delete(n),!0}var wt=function(){function n(r,e,i){var o=this;(0,U.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(a,s){},this._transitionEngine=new FY(r,e,i),this._timelineEngine=new b7(r,e,i),this._transitionEngine.onRemovalComplete=function(a,s){return o.onRemovalComplete(a,s)}}return(0,B.Z)(n,[{key:"registerTrigger",value:function(e,i,o,a,s){var l=e+"-"+a,u=this._triggerCache[l];if(!u){var d=[],h=[],g=Fx(this._driver,s,d,h);if(d.length)throw function NU(n,r){return new t.vHH(3404,!1)}();h.length,u=function zy(n,r,e){return new PY(n,r,e)}(a,g,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(i,a,u)}},{key:"register",value:function(e,i){this._transitionEngine.register(e,i)}},{key:"destroy",value:function(e,i){this._transitionEngine.destroy(e,i)}},{key:"onInsert",value:function(e,i,o,a){this._transitionEngine.insertNode(e,i,o,a)}},{key:"onRemove",value:function(e,i,o,a){this._transitionEngine.removeNode(e,i,a||!1,o)}},{key:"disableAnimations",value:function(e,i){this._transitionEngine.markElementAsDisabled(e,i)}},{key:"process",value:function(e,i,o,a){if("@"==o.charAt(0)){var s=YU(o),l=(0,Nn.Z)(s,2),u=l[0],d=l[1],h=a;this._timelineEngine.command(u,i,d,h)}else this._transitionEngine.trigger(e,i,o,a)}},{key:"listen",value:function(e,i,o,a,s){if("@"==o.charAt(0)){var l=YU(o),u=(0,Nn.Z)(l,2),d=u[0],h=u[1];return this._timelineEngine.listen(d,i,h,s)}return this._transitionEngine.listen(e,i,o,a,s)}},{key:"flush",value:function(){var e=arguments.length>0&&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 en(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Un(r[0]),r.length>1&&(i=Un(r[r.length-1]))):r instanceof Map&&(e=Un(r)),e||i?new _n(n,e,i):null}var _n=function(){function n(r,e,i){(0,U.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,B.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&pc(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(pc(this._element,this._initialStyles),this._endStyles&&(pc(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&&(Yd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yd(this._element,this._endStyles),this._endStyles=null),pc(this._element,this._initialStyles),this._state=3)}}]),n}();function Un(n){var r=null;return n.forEach(function(e,i){(function Qn(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}_n.initialStylesByElement=new WeakMap;var Xn=function(){function n(r,e,i,o){(0,U.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,B.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:r7(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}(),wn=function(){function n(){(0,U.Z)(this,n)}return(0,B.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 QU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return nL(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 Xn});lL(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var C=Q_(i).map(function(z){return of(z)}),Z=en(e,C=n7(e,C,h));return new Xn(e,C,d,Z)}}]),n}(),Cr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;(0,U.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,B.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Rt.vP)(o):o;return $a(this._renderer,null,a,"register",[s]),new gi(a,this._renderer)}}]),e}(Rt._j);Cr.\u0275fac=function(r){return new(r||Cr)(t.LFG(t.FYo),t.LFG(ge.K0))},Cr.\u0275prov=t.Yz7({token:Cr,factory:Cr.\u0275fac});var gi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,B.Z)(e,[{key:"create",value:function(o,a){return new wi(this._id,o,a||{},this._renderer)}}]),e}(Rt.LC),wi=function(){function n(r,e,i,o){(0,U.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,B.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<i;a++)o[a-1]=arguments[a];return $a(this._renderer,this.element,this.id,e,o)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,i;return null!==(i=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==i?i:0}}]),n}();function $a(n,r,e,i,o){return n.setProperty(r,"@@".concat(e,":").concat(i),o)}var Tl="@.disabled",tu=function(){function n(r,e,i){(0,U.Z)(this,n),this.delegate=r,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(o,a){var s=null==a?void 0:a.parentNode(o);s&&a.removeChild(s,o)}}return(0,B.Z)(n,[{key:"createRenderer",value:function(e,i){var o=this,s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){var l=this._rendererCache.get(s);if(!l){l=new og("",s,this.engine,function(){return o._rendererCache.delete(s)}),this._rendererCache.set(s,l)}return l}var d=i.id,h=i.id+"-"+this._currentId;this._currentId++,this.engine.register(h,e);return i.data.animation.forEach(function Z(z){Array.isArray(z)?z.forEach(Z):o.engine.registerTrigger(d,h,e,z.name,z)}),new Wy(this,h,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,i,o){var a=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return i(o)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(s){var l=(0,Nn.Z)(s,2);(0,l[0])(l[1])}),a._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),n}();tu.\u0275fac=function(r){return new(r||tu)(t.LFG(t.FYo),t.LFG(wt),t.LFG(t.R0b))},tu.\u0275prov=t.Yz7({token:tu,factory:tu.\u0275fac});var og=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.namespaceId=r,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?function(a){return e.destroyNode(a)}:null}return(0,B.Z)(n,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(e=this._onDestroy)||void 0===e||e.call(this)}},{key:"createElement",value:function(e,i){return this.delegate.createElement(e,i)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}},{key:"insertBefore",value:function(e,i,o){var a=!(arguments.length>3&&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==Tl?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}(),Wy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,B.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Tl?(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 Vy(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 ag(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),C=(0,Nn.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}(og);var Vc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){return(0,U.Z)(this,e),r.call(this,i.body,o,a)}return(0,B.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(wt);Vc.\u0275fac=function(r){return new(r||Vc)(t.LFG(ge.K0),t.LFG(Rx),t.LFG(F1),t.LFG(t.z2F))},Vc.\u0275prov=t.Yz7({token:Vc,factory:Vc.\u0275fac});var HY=[{provide:Rt._j,useClass:Cr},{provide:F1,useFactory:function Yx(){return new m7}},{provide:wt,useClass:Vc},{provide:t.FYo,useFactory:function Iue(n,r,e){return new tu(n,r,e)},deps:[ze,wt,t.R0b]}],T7=[{provide:Rx,useFactory:function(){return new wn}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(HY),M7=[{provide:Rx,useClass:rf},{provide:t.QbO,useValue:"NoopAnimations"}].concat(HY),j1=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?M7:T7}}}]),n}();j1.\u0275fac=function(r){return new(r||j1)},j1.\u0275mod=t.oAB({type:j1}),j1.\u0275inj=t.cJS({providers:T7,imports:[ri]});var Kx=(0,B.Z)(function n(){(0,U.Z)(this,n)});Kx.\u0275fac=function(r){return new(r||Kx)},Kx.\u0275mod=t.oAB({type:Kx}),Kx.\u0275inj=t.cJS({providers:M7,imports:[ri]});var Pue=m(839),G1=m(6053),ys=m(1709),z1=m(8117),S7=m(2821),Rue=m(3906),jY=m(519);function x7(n,r){return n=function Lue(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;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var E7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},GY=function(r){return null!=r&&"object"===(void 0===r?"undefined":E7(r))&&1===r.nodeType&&"object"===E7(r.style)&&"object"===E7(r.ownerDocument)};function zY(n,r){if(r=A7(r,!0),!GY(r))return-1;for(var e=0;e<n.length;e++)if(n[e]===r)return e;return-1}function D7(n,r){return-1!==zY(n,r)}function Zue(n,r){for(var e=0;e<r.length;e++)D7(n,r[e])||n.push(r[e]);return r}function Nue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Zue(n,e=e.map(A7))}function Bue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(A7).reduce(function(o,a){var s=zY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function A7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!GY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function WY(n){if(n===window)return function Uue(){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,O7=void 0;"function"!=typeof Object.create?(r=function(){},O7=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}):O7=Object.create;var jue=O7,Yy=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function I7(n,r){r=r||{};for(var e=jue(n),i=0;i<Yy.length;i++)void 0!==r[Yy[i]]&&(e[Yy[i]]=r[Yy[i]]);return e}function P7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var qx=["webkit","moz","ms","o"],Jx=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=qx.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[qx[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-e),s=window.setTimeout(function(){return i(o+a)},a);return e=o+a,s}}return window.requestAnimationFrame.bind(window)}(),W1=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=qx.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[qx[n]+"CancelAnimationFrame"]||window[qx[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function zue(n,r){void 0===r&&(r={});var e=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},l=function Fue(n,r){var e=x7((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,e(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,l=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),u=function Gue(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(a){for(var s=0;s<Yy.length;s++)r[Yy[s]]=a[Yy[s]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function o(){n&&n.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var d=new MouseEvent("mousemove",I7(r,l));return P7(d,u),s.dispatchEvent(d)}:"function"==typeof document.createEvent?function(s,l,u){var d=I7(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget),P7(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var d=document.createEventObject(),h=I7(r,l);for(var g in h)d[g]=h[g];return P7(d,u),s.dispatchEvent(d)}:void 0}}(),d=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=x7(r.autoScroll),this.syncMove=x7(r.syncMove,!1),this.destroy=function(Xe){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",re,!1),window.removeEventListener("touchend",re,!1),window.removeEventListener("pointerup",re,!1),window.removeEventListener("mouseleave",Se,!1),window.removeEventListener("mousemove",Ve,!1),window.removeEventListener("touchmove",Ve,!1),window.removeEventListener("scroll",z,!0),n=[],Xe&&ae()},this.add=function(){for(var Xe=[],Pe=arguments.length;Pe--;)Xe[Pe]=arguments[Pe];return Nue.apply(void 0,[n].concat(Xe)),this},this.remove=function(){for(var Xe=[],Pe=arguments.length;Pe--;)Xe[Pe]=arguments[Pe];return Bue.apply(void 0,[n].concat(Xe))};var g,Xe,h=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Xe=n,n=[],Xe.forEach(function(Pe){Pe===window?h=window:e.add(Pe)}),Object.defineProperties(this,{down:{get:function(){return d}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var Z,C=null;function z(Xe){for(var Pe=0;Pe<n.length;Pe++)if(n[Pe]===Xe.target){o=!0;break}o&&Jx(function(){return o=!1})}function q(){d=!0}function re(){d=!1,ae()}function ae(){W1(Z),W1(g)}function Se(){d=!1}function xe(){for(var Xe=null,Pe=0;Pe<n.length;Pe++)VY(s,n[Pe])&&(Xe=n[Pe]);return Xe}function Ve(Xe){if(e.autoScroll()&&!Xe.dispatched){var Pe=Xe.target,pt=document.body;C&&!VY(s,C)&&(e.scrollWhenOutside||(C=null)),Pe&&Pe.parentNode===pt?Pe=xe():(Pe=function Ce(Xe){if(!Xe)return null;if(C===Xe||D7(n,Xe))return Xe;for(;Xe=Xe.parentNode;)if(D7(n,Xe))return Xe;return null}(Pe),Pe||(Pe=xe())),Pe&&Pe!==C&&(C=Pe),h&&(W1(g),g=Jx(at)),C&&(W1(Z),Z=Jx(De))}}function at(){ot(h),W1(g),g=Jx(at)}function De(){!C||(ot(C),W1(Z),Z=Jx(De))}function ot(Xe){var pt,Nt,Pe=WY(Xe);pt=s.x<Pe.left+e.margin.left?Math.floor(Math.max(-1,(s.x-Pe.left)/e.margin.left-1)*e.maxSpeed.left):s.x>Pe.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Pe.right)/e.margin.right+1)*e.maxSpeed.right):0,Nt=s.y<Pe.top+e.margin.top?Math.floor(Math.max(-1,(s.y-Pe.top)/e.margin.top-1)*e.maxSpeed.top):s.y>Pe.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Pe.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(Xe,{pageX:s.pageX+pt,pageY:s.pageY+Nt,clientX:s.x+pt,clientY:s.y+Nt}),setTimeout(function(){Nt&&function ht(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset,Xe.pageYOffset+Pe):Xe.scrollTop+=Pe}(Xe,Nt),pt&&function bt(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset+Pe,Xe.pageYOffset):Xe.scrollLeft+=Pe}(Xe,pt)})}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",Ve,!1),window.addEventListener("touchmove",Ve,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function VY(n,r,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function Hue(n,r){var e=WY(r);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,r)}var Vue=function Wue(n,r){return new zue(n,r)};function R7(n,r,e){e&&e.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}function CL(n,r,e){e&&e.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}var Ky=(0,B.Z)(function n(){(0,U.Z)(this,n),this.currentDrag=new In.xQ});Ky.\u0275fac=function(r){return new(r||Ky)},Ky.\u0275prov=t.Yz7({token:Ky,factory:Ky.\u0275fac,providedIn:"root"});var V1=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.elementRef=r});V1.\u0275fac=function(r){return new(r||V1)(t.Y36(t.SBq))},V1.\u0275dir=t.lG2({type:V1,selectors:[["","mwlDraggableScrollContainer",""]]});var Qx=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.element=r,this.renderer=e,this.draggableHelper=i,this.zone=o,this.vcr=a,this.scrollContainer=s,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new t.vpe,this.dragStart=new t.vpe,this.ghostElementCreated=new t.vpe,this.dragging=new t.vpe,this.dragEnd=new t.vpe,this.pointerDown$=new In.xQ,this.pointerMove$=new In.xQ,this.pointerUp$=new In.xQ,this.eventListenerSubscriptions={},this.destroy$=new In.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,ni.h)(function(){return e.canDrag()}),(0,ys.zg)(function(o){o.event.stopPropagation&&!e.scrollContainer&&o.event.stopPropagation();var a=e.renderer.createElement("style");e.renderer.setAttribute(a,"type","text/css"),e.renderer.appendChild(a,e.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){e.document.head.appendChild(a)});var s=e.getScrollPosition(),l=new $i.y(function(z){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(re){return z.next(re)})}).pipe((0,eo.O)(s),(0,$n.U)(function(){return e.getScrollPosition()})),u=new In.xQ,d=new Pue.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,ji.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,z1.B)()),g=(0,G1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Nn.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,ni.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,Br.R)(h),(0,z1.B)()),C=g.pipe((0,xi.q)(1),(0,z1.B)()),Z=g.pipe((0,S7.h)(1),(0,z1.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=Vue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),R7(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Ce=e.element.nativeElement.getBoundingClientRect(),xe=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(xe):e.element.nativeElement.parentNode.insertBefore(xe,e.element.nativeElement.nextSibling),e.ghostElement=xe,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(xe,{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 Ve=e.vcr.createEmbeddedView(e.ghostElementTemplate);xe.innerHTML="",Ve.rootNodes.filter(function(at){return at instanceof Node}).forEach(function(at){xe.appendChild(at)}),Z.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ve))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:xe})}),Z.subscribe(function(){xe.parentElement.removeChild(xe),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),Z.pipe((0,ys.zg)(function(z){var q=d.pipe((0,Rue.Q)(),(0,xi.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})}),CL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,ji.T)(h,Z).pipe((0,xi.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,z1.B)());(0,ji.T)(i.pipe((0,xi.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,jY.G)())).pipe((0,ni.h)(function(o){var a=(0,Nn.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,Nn.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,jd.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,jd.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 YY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}Qx.\u0275fac=function(r){return new(r||Qx)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Ky),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(V1,8),t.Y36(ge.K0))},Qx.\u0275dir=t.lG2({type:Qx,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 wL=function(){function n(r,e,i,o,a){(0,U.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,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){R7(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=YY(g,C,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:C,target:z,dropData:Z});return o.scrollContainerRect?q&&re&&YY(g,C,o.scrollContainerRect):q&&re})),u=l.pipe((0,Ry.x)());u.pipe((0,ni.h)(function(h){return h})).subscribe(function(){d=!0,R7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,ni.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,jY.G)(),(0,ni.h)(function(h){var g=(0,Nn.Z)(h,2),C=g[0],Z=g[1];return C&&!Z})).subscribe(function(){d=!1,CL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),CL(e.renderer,e.element,e.dragActiveClass),d&&(CL(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}();wL.\u0275fac=function(r){return new(r||wL)(t.Y36(t.SBq),t.Y36(Ky),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(V1,8))},wL.\u0275dir=t.lG2({type:wL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Y1=(0,B.Z)(function n(){(0,U.Z)(this,n)});Y1.\u0275fac=function(r){return new(r||Y1)},Y1.\u0275mod=t.oAB({type:Y1}),Y1.\u0275inj=t.cJS({});var KY=m(2072);function qy(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function L7(n){return 1===n.length&&(n=function Yue(n){return function(r,e){return qy(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>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<a;){var s=o+a>>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var qY=L7(qy),JY=qY.right,Kue=qY.left,K1=JY;function que(n,r){null==r&&(r=QY);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=n[++e]);return a}function QY(n,r){return[n,r]}function Jue(n,r,e){var s,l,u,d,i=n.length,o=r.length,a=new Array(i*o);for(null==e&&(e=QY),s=u=0;s<i;++s)for(d=n[s],l=0;l<o;++l,++u)a[u]=e(d,r[l]);return a}function Que(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function sg(n){return null===n?NaN:+n}function XY(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=sg(n[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=sg(r(n[o],o,n)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function $Y(n,r){var e=XY(n,r);return e&&Math.sqrt(e)}function Z7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var eK=Array.prototype,Xue=eK.slice,$ue=eK.map;function kL(n){return function(){return n}}function ece(n){return n}function hc(n,r,e){n=+n,r=+r,e=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/e)),a=new Array(o);++i<o;)a[i]=n+i*e;return a}var N7=Math.sqrt(50),B7=Math.sqrt(10),F7=Math.sqrt(2);function U7(n,r,e){var i,a,s,l,o=-1;if(e=+e,(n=+n)===(r=+r)&&e>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(l=Xx(n,r,e))||!isFinite(l))return[];if(l>0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*l;else for(n=Math.floor(n*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/l;return i&&s.reverse(),s}function Xx(n,r,e){var i=(r-n)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=N7?10:a>=B7?5:a>=F7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=N7?10:a>=B7?5:a>=F7?2:1)}function Jy(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>=N7?o*=10:a>=B7?o*=5:a>=F7&&(o*=2),r<n?-o:o}function H7(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function tce(){var n=ece,r=Z7,e=H7;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=n(o[a],a,o);var d=r(u),h=d[0],g=d[1],C=e(u,h,g);Array.isArray(C)||(C=Jy(h,g,C),C=hc(Math.ceil(h/C)*C,g,C));for(var Z=C.length;C[0]<=h;)C.shift(),--Z;for(;C[Z-1]>g;)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<Z?C[a]:g;for(a=0;a<s;++a)h<=(l=u[a])&&l<=g&&z[K1(C,l,0,Z)].push(o[a]);return z}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:kL(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:kL([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?kL(Xue.call(o)):kL(o),i):e},i}function $x(n,r,e){if(null==e&&(e=sg),i=n.length){if((r=+r)<=0||i<2)return+e(n[0],0,n);if(r>=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 nce(n,r,e){return n=$ue.call(n,sg).sort(qy),Math.ceil((e-r)/(2*($x(n,.75)-$x(n,.25))*Math.pow(n.length,-1/3)))}function rce(n,r,e){return Math.ceil((e-r)/(3.5*$Y(n)*Math.pow(n.length,-1/3)))}function tK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function ice(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=sg(n[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=sg(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function oce(n,r){var o,e=n.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=sg(n[i]))||a.push(o);else for(;++i<e;)isNaN(o=sg(r(n[i],i,n)))||a.push(o);return $x(a.sort(qy),.5)}function j7(n){for(var e,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function nK(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function ace(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function sce(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=qy);++i<e;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function lce(n,r,e){for(var o,a,i=(null==e?n.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function uce(n,r){var o,e=n.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+n[i])&&(a+=o);else for(;++i<e;)(o=+r(n[i],i,n))&&(a+=o);return a}function rK(n){if(!(a=n.length))return[];for(var r=-1,e=nK(n,cce),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function cce(n){return n.length}function dce(){return rK(arguments)}var G7=Array.prototype.slice;function pce(n){return n}function fce(n){return"translate("+(n+.5)+",0)"}function hce(n){return"translate(0,"+(n+.5)+")"}function mce(n){return function(r){return+n(r)}}function _ce(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(e){return+n(e)+r}}function gce(){return!this.__axis}function SL(n,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===n||4===n?-1:1,d=4===n||2===n?"x":"y",h=1===n||3===n?fce:hce;function g(C){var Z=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,z=null==o?r.tickFormat?r.tickFormat.apply(r,e):pce:o,q=Math.max(a,0)+l,re=r.range(),ae=+re[0]+.5,Se=+re[re.length-1]+.5,Ce=(r.bandwidth?_ce:mce)(r.copy()),xe=C.selection?C.selection():C,Ve=xe.selectAll(".domain").data([null]),at=xe.selectAll(".tick").data(Z,r).order(),De=at.exit(),ot=at.enter().append("g").attr("class","tick"),ht=at.select("line"),bt=at.select("text");Ve=Ve.merge(Ve.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge(ot),ht=ht.merge(ot.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),bt=bt.merge(ot.append("text").attr("fill","currentColor").attr(d,u*q).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),C!==xe&&(Ve=Ve.transition(C),at=at.transition(C),ht=ht.transition(C),bt=bt.transition(C),De=De.transition(C).attr("opacity",1e-6).attr("transform",function(Xe){return isFinite(Xe=Ce(Xe))?h(Xe):this.getAttribute("transform")}),ot.attr("opacity",1e-6).attr("transform",function(Xe){var Pe=this.parentNode.__axis;return h(Pe&&isFinite(Pe=Pe(Xe))?Pe:Ce(Xe))})),De.remove(),Ve.attr("d",4===n||2==n?s?"M"+u*s+","+ae+"H0.5V"+Se+"H"+u*s:"M0.5,"+ae+"V"+Se:s?"M"+ae+","+u*s+"V0.5H"+Se+"V"+u*s:"M"+ae+",0.5H"+Se),at.attr("opacity",1).attr("transform",function(Xe){return h(Ce(Xe))}),ht.attr(d+"2",u*a),bt.attr(d,u*q).text(z),xe.filter(gce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),xe.each(function(){this.__axis=Ce})}return g.scale=function(C){return arguments.length?(r=C,g):r},g.ticks=function(){return e=G7.call(arguments),g},g.tickArguments=function(C){return arguments.length?(e=null==C?[]:G7.call(C),g):e.slice()},g.tickValues=function(C){return arguments.length?(i=null==C?null:G7.call(C),g):i&&i.slice()},g.tickFormat=function(C){return arguments.length?(o=C,g):o},g.tickSize=function(C){return arguments.length?(a=s=+C,g):a},g.tickSizeInner=function(C){return arguments.length?(a=+C,g):a},g.tickSizeOuter=function(C){return arguments.length?(s=+C,g):s},g.tickPadding=function(C){return arguments.length?(l=+C,g):l},g}function vce(n){return SL(1,n)}function yce(n){return SL(2,n)}function bce(n){return SL(3,n)}function Cce(n){return SL(4,n)}var wce={value:function(){}};function oK(){for(var i,n=0,r=arguments.length,e={};n<r;++n){if(!(i=arguments[n]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new xL(e)}function xL(n){this._=n}function kce(n,r){return n.trim().split(/^|\s+/).map(function(e){var i="",o=e.indexOf(".");if(o>=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 Tce(n,r){for(var o,e=0,i=n.length;e<i;++e)if((o=n[e]).name===r)return o.value}function aK(n,r,e){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=wce,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=e&&n.push({name:r,value:e}),n}xL.prototype=oK.prototype={constructor:xL,on:function(r,e){var a,i=this._,o=kce(r+"",i),s=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<l;)if(a=(r=o[s]).type)i[a]=aK(i[a],r.name,e);else if(null==e)for(a in i)i[a]=aK(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=Tce(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new xL(r)},call:function(r,e){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),o=0;o<a;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(o=0,a=(s=this._[r]).length;o<a;++o)s[o].value.apply(e,i)},apply:function(r,e,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var o=this._[r],a=0,s=o.length;a<s;++a)o[a].value.apply(e,i)}};var Qy=oK;function Mce(){}function W7(n){return null==n?Mce:function(){return this.querySelector(n)}}function xce(){return[]}function sK(n){return null==n?xce:function(){return this.querySelectorAll(n)}}function lK(n){return function(){return this.matches(n)}}function uK(n){return new Array(n.length)}function EL(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}EL.prototype={constructor:EL,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 Ice(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new EL(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Pce(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new EL(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Uce(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var V7="http://www.w3.org/1999/xhtml",dK={svg:"http://www.w3.org/2000/svg",xhtml:V7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function DL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),dK.hasOwnProperty(r)?{space:dK[r],local:n}:n}function Yce(n){return function(){this.removeAttribute(n)}}function Kce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function qce(n,r){return function(){this.setAttribute(n,r)}}function Jce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Qce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Xce(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 pK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ede(n){return function(){this.style.removeProperty(n)}}function tde(n,r,e){return function(){this.style.setProperty(n,r,e)}}function nde(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function q1(n,r){return n.style.getPropertyValue(r)||pK(n).getComputedStyle(n,null).getPropertyValue(r)}function ide(n){return function(){delete this[n]}}function ode(n,r){return function(){this[n]=r}}function ade(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function fK(n){return n.trim().split(/^|\s+/)}function Y7(n){return n.classList||new hK(n)}function hK(n){this._node=n,this._names=fK(n.getAttribute("class")||"")}function mK(n,r){for(var e=Y7(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function _K(n,r){for(var e=Y7(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function lde(n){return function(){mK(this,n)}}function ude(n){return function(){_K(this,n)}}function cde(n,r){return function(){(r.apply(this,arguments)?mK:_K)(this,n)}}function pde(){this.textContent=""}function fde(n){return function(){this.textContent=n}}function hde(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function _de(){this.innerHTML=""}function gde(n){return function(){this.innerHTML=n}}function vde(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function bde(){this.nextSibling&&this.parentNode.appendChild(this)}function wde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Tde(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===V7&&r.documentElement.namespaceURI===V7?r.createElement(n):r.createElementNS(e,n)}}function Mde(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function gK(n){var r=DL(n);return(r.local?Mde:Tde)(r)}function xde(){return null}function Dde(){var n=this.parentNode;n&&n.removeChild(this)}function Ode(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function Ide(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}hK.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var vK={},Zn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(vK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Zde(n,r,e){return n=yK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function yK(n,r,e){return function(i){var o=Zn;Zn=i;try{n.call(this,this.__data__,r,e)}finally{Zn=o}}}function Nde(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 Bde(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function Fde(n,r,e){var i=vK.hasOwnProperty(n.type)?Zde:yK;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function AL(n,r,e,i){var o=Zn;n.sourceEvent=Zn,Zn=n;try{return r.apply(e,i)}finally{Zn=o}}function bK(n,r,e){var i=pK(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function Hde(n,r){return function(){return bK(this,n,r)}}function jde(n,r){return function(){return bK(this,n,r.apply(this,arguments))}}var CK=[null];function mc(n,r){this._groups=n,this._parents=r}function wK(){return new mc([[document.documentElement]],CK)}mc.prototype=wK.prototype={constructor:mc,select:function Sce(n){"function"!=typeof n&&(n=W7(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new mc(i,this._parents)},selectAll:function Ece(n){"function"!=typeof n&&(n=sK(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new mc(i,o)},filter:function Dce(n){"function"!=typeof n&&(n=lK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new mc(i,this._parents)},data:function Rce(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(at){Z[++d]=at}),Z;var e=r?Pce:Ice,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Oce(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var xe,Ve,Se=0,Ce=0;Se<z;++Se)if(xe=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);xe._next=Ve||null}}return(s=new mc(s,i))._enter=l,s._exit=u,s},enter:function Ace(){return new mc(this._enter||this._groups.map(uK),this._parents)},exit:function Lce(){return new mc(this._exit||this._groups.map(uK),this._parents)},join:function Zce(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Nce(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new mc(s,this._parents)},order:function Bce(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Fce(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Uce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new mc(o,this._parents).order()},call:function Hce(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function jce(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Gce(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function zce(){var n=0;return this.each(function(){++n}),n},empty:function Wce(){return!this.node()},each:function Vce(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function $ce(n,r){var e=DL(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Kce:Yce:"function"==typeof r?e.local?Xce:Qce:e.local?Jce:qce)(e,r))},style:function rde(n,r,e){return arguments.length>1?this.each((null==r?ede:"function"==typeof r?nde:tde)(n,r,null==e?"":e)):q1(this.node(),n)},property:function sde(n,r){return arguments.length>1?this.each((null==r?ide:"function"==typeof r?ade:ode)(n,r)):this.node()[n]},classed:function dde(n,r){var e=fK(n+"");if(arguments.length<2){for(var i=Y7(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?cde:r?lde:ude)(e,r))},text:function mde(n){return arguments.length?this.each(null==n?pde:("function"==typeof n?hde:fde)(n)):this.node().textContent},html:function yde(n){return arguments.length?this.each(null==n?_de:("function"==typeof n?vde:gde)(n)):this.node().innerHTML},raise:function Cde(){return this.each(bde)},lower:function kde(){return this.each(wde)},append:function Sde(n){var r="function"==typeof n?n:gK(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function Ede(n,r){var e="function"==typeof n?n:gK(n),i=null==r?xde:"function"==typeof r?r:W7(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Ade(){return this.each(Dde)},clone:function Pde(n){return this.select(n?Ide:Ode)},datum:function Rde(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function Ude(n,r,e){var o,s,i=Nde(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?Fde:Bde,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function Gde(n,r){return this.each(("function"==typeof r?jde:Hde)(n,r))}};var lg=wK;function vi(n){return"string"==typeof n?new mc([[document.querySelector(n)]],[document.documentElement]):new mc([[n]],CK)}function K7(){Zn.stopImmediatePropagation()}function J1(){Zn.preventDefault(),Zn.stopImmediatePropagation()}function OL(n){var r=n.document.documentElement,e=vi(n).on("dragstart.drag",J1,!0);"onselectstart"in r?e.on("selectstart.drag",J1,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function IL(n,r){var e=n.document.documentElement,i=vi(n).on("dragstart.drag",null);r&&(i.on("click.drag",J1,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in e?i.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function PL(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function q7(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function Q1(){}var X1=1/.7,$1="\\s*([+-]?\\d+)\\s*",tE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zde=/^#([0-9a-f]{3,8})$/,Wde=new RegExp("^rgb\\("+[$1,$1,$1]+"\\)$"),Vde=new RegExp("^rgb\\("+[sf,sf,sf]+"\\)$"),Yde=new RegExp("^rgba\\("+[$1,$1,$1,tE]+"\\)$"),Kde=new RegExp("^rgba\\("+[sf,sf,sf,tE]+"\\)$"),qde=new RegExp("^hsl\\("+[tE,sf,sf]+"\\)$"),Jde=new RegExp("^hsla\\("+[tE,sf,sf,tE]+"\\)$"),kK={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 TK(){return this.rgb().formatHex()}function MK(){return this.rgb().formatRgb()}function $y(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=zde.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?SK(r):3===e?new nu(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?RL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?RL(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=Wde.exec(n))?new nu(r[1],r[2],r[3],1):(r=Vde.exec(n))?new nu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Yde.exec(n))?RL(r[1],r[2],r[3],r[4]):(r=Kde.exec(n))?RL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=qde.exec(n))?AK(r[1],r[2]/100,r[3]/100,1):(r=Jde.exec(n))?AK(r[1],r[2]/100,r[3]/100,r[4]):kK.hasOwnProperty(n)?SK(kK[n]):"transparent"===n?new nu(NaN,NaN,NaN,0):null}function SK(n){return new nu(n>>16&255,n>>8&255,255&n,1)}function RL(n,r,e,i){return i<=0&&(n=r=e=NaN),new nu(n,r,e,i)}function xK(n){return n instanceof Q1||(n=$y(n)),n?new nu((n=n.rgb()).r,n.g,n.b,n.opacity):new nu}function LL(n,r,e,i){return 1===arguments.length?xK(n):new nu(n,r,e,null==i?1:i)}function nu(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function EK(){return"#"+J7(this.r)+J7(this.g)+J7(this.b)}function DK(){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 J7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function AK(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new lf(n,r,e,i)}function OK(n){if(n instanceof lf)return new lf(n.h,n.s,n.l,n.opacity);if(n instanceof Q1||(n=$y(n)),!n)return new lf;if(n instanceof lf)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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new lf(s,l,u,n.opacity)}function lf(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Q7(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 IK(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 PK(n,r){return function(e){return n+e*r}}function rpe(n){return 1==(n=+n)?ew:function(r,e){return e-r?function tpe(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 ew(n,r){var e=r-n;return e?PK(n,e):ZL(isNaN(n)?r:n)}PL(Q1,$y,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:TK,formatHex:TK,formatHsl:function Qde(){return OK(this).formatHsl()},formatRgb:MK,toString:MK}),PL(nu,LL,q7(Q1,{brighter:function(r){return r=null==r?X1:Math.pow(X1,r),new nu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new nu(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:EK,formatHex:EK,formatRgb:DK,toString:DK})),PL(lf,function Xde(n,r,e,i){return 1===arguments.length?OK(n):new lf(n,r,e,null==i?1:i)},q7(Q1,{brighter:function(r){return r=null==r?X1:Math.pow(X1,r),new lf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new lf(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 nu(Q7(r>=240?r-240:r+120,a,o),Q7(r,a,o),Q7(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 NL=function n(r){var e=rpe(r);function i(o,a){var s=e((o=LL(o)).r,(a=LL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=ew(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 RK(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<e;++s)l=LL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var ipe=RK(function $de(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=i<r-1?n[i+2]:2*a-o;return IK((e-i/r)*r,s,o,a,l)}});RK(function epe(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return IK((e-i/r)*r,o,a,s,l)}});function LK(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=BL(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function ope(n,r){var e=new Date;return n=+n,r=+r,function(i){return e.setTime(n*(1-i)+r*i),e}}function Yc(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}function ape(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=BL(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var X7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$7=new RegExp(X7.source,"g");function ZK(n,r){var i,o,a,e=X7.lastIndex=$7.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=X7.exec(n))&&(o=$7.exec(r));)(a=o.index)>e&&(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:Yc(i,o)})),e=$7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function lpe(n){return function(r){return n(r)+""}}(u[0].x):function spe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function upe(n,r){r||(r=[]);var o,e=n?Math.min(r.length,n.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=n[o]*(1-a)+r[o]*a;return i}}function BL(n,r){var i,e=typeof r;return null==r||"boolean"===e?ZL(r):("number"===e?Yc:"string"===e?(i=$y(r))?(r=i,NL):ZK:r instanceof $y?NL:r instanceof Date?ope:function cpe(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}(r)?upe:Array.isArray(r)?LK:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?ape:Yc)(n,r)}function NK(){for(var r,n=Zn;r=n.sourceEvent;)n=r;return n}function BK(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function Kd(n){var r=NK();return r.changedTouches&&(r=r.changedTouches[0]),BK(n,r)}var FL,iE,tw=0,nE=0,rE=0,UL=0,e0=0,HL=0,oE="object"==typeof performance&&performance.now?performance:Date,UK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function ug(){return e0||(UK(dpe),e0=oE.now()+HL)}function dpe(){e0=0}function aE(){this._call=this._time=this._next=null}function sE(n,r,e){var i=new aE;return i.restart(n,r,e),i}function HK(){ug(),++tw;for(var r,n=FL;n;)(r=e0-n._time)>=0&&n._call.call(null,r),n=n._next;--tw}function jK(){e0=(UL=oE.now())+HL,tw=nE=0;try{HK()}finally{tw=0,function fpe(){for(var n,e,r=FL,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:FL=e);iE=n,e9(i)}(),e0=0}}function ppe(){var n=oE.now(),r=n-UL;r>1e3&&(HL-=r,UL=n)}function e9(n){tw||(nE&&(nE=clearTimeout(nE)),n-e0>24?(n<1/0&&(nE=setTimeout(jK,n-oE.now()-HL)),rE&&(rE=clearInterval(rE))):(rE||(UL=oE.now(),rE=setInterval(ppe,1e3)),tw=1,UK(jK)))}function lE(n,r,e){var i=new aE;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}aE.prototype=sE.prototype={constructor:aE,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?ug():+i)+(null==e?0:+e),!this._next&&iE!==this&&(iE?iE._next=this:FL=this,iE=this),this._call=r,this._time=i,e9()},stop:function(){this._call&&(this._call=null,this._time=1/0,e9())}};var hpe=Qy("start","end","cancel","interrupt"),mpe=[];function zL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function _pe(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 lE(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),Z.on.call("cancel",n,n.__data__,Z.index,Z.group),delete i[h])}if(lE(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,C=o.length;++g<C;)o[g].call(n,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=sE(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:hpe,tween:mpe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function r9(n,r){var e=qd(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function qh(n,r){var e=qd(n,r);if(e.state>3)throw new Error("too late; already running");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function nw(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 uE,o9,KK,WL,VK=180/Math.PI,i9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function YK(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*VK,skewX:Math.atan(u)*VK,scaleX:s,scaleY:l}}function qK(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:Yc(d,g)},{i:q-2,x:Yc(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Yc(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:Yc(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:Yc(d,g)},{i:q-2,x:Yc(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<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var bpe=qK(function vpe(n){return"none"===n?i9:(uE||(uE=document.createElement("DIV"),o9=document.documentElement,KK=document.defaultView),uE.style.transform=n,n=KK.getComputedStyle(o9.appendChild(uE),null).getPropertyValue("transform"),o9.removeChild(uE),YK(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),Cpe=qK(function ype(n){return null!=n&&(WL||(WL=document.createElementNS("http://www.w3.org/2000/svg","g")),WL.setAttribute("transform",n),n=WL.transform.baseVal.consolidate())?YK((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):i9},", ",")",")");function wpe(n,r){var e,i;return function(){var o=qh(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function kpe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=qh(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function a9(n,r,e){var i=n._id;return n.each(function(){var o=qh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return qd(o,i).value[r]}}function JK(n,r){var e;return("number"==typeof r?Yc:r instanceof $y?NL:(e=$y(r))?(r=e,NL):ZK)(n,r)}function Mpe(n){return function(){this.removeAttribute(n)}}function Spe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function xpe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(n);return s===o?null:s===i?a:a=r(i=s,e)}}function Epe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(n.space,n.local);return s===o?null:s===i?a:a=r(i=s,e)}}function Dpe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Ape(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Ipe(n,r){return function(e){this.setAttribute(n,r.call(this,e))}}function Ppe(n,r){return function(e){this.setAttributeNS(n.space,n.local,r.call(this,e))}}function Rpe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Ppe(n,a)),e}return o._value=r,o}function Lpe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Ipe(n,a)),e}return o._value=r,o}function Npe(n,r){return function(){r9(this,n).delay=+r.apply(this,arguments)}}function Bpe(n,r){return r=+r,function(){r9(this,n).delay=r}}function Upe(n,r){return function(){qh(this,n).duration=+r.apply(this,arguments)}}function Hpe(n,r){return r=+r,function(){qh(this,n).duration=r}}function Gpe(n,r){if("function"!=typeof r)throw new Error;return function(){qh(this,n).ease=r}}function Kpe(n,r,e){var i,o,a=function Ype(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?r9:qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var efe=lg.prototype.constructor;function QK(n){return function(){this.style.removeProperty(n)}}function sfe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function lfe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&sfe(n,s,e)),i}return a._value=r,a}function ffe(n){return function(r){this.textContent=n.call(this,r)}}function hfe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&ffe(o)),r}return i._value=n,i}var vfe=0;function Jh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function s9(n){return lg().transition(n)}function XK(){return++vfe}var rw=lg.prototype;function yfe(n){return n*n*n}function bfe(n){return--n*n*n+1}function VL(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Jh.prototype=s9.prototype={constructor:Jh,select:function Xpe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=W7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,zL(d[C],r,e,C,d,qd(h,e)));return new Jh(a,this._parents,r,e)},selectAll:function $pe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=sK(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var Z,C=n.call(h,h.__data__,g,u),z=qd(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&zL(Z,r,e,q,C,z);a.push(C),s.push(h)}return new Jh(a,s,r,e)},filter:function Wpe(n){"function"!=typeof n&&(n=lK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Jh(i,this._parents,this._name,this._id)},merge:function Vpe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new Jh(s,this._parents,this._name,this._id)},selection:function tfe(){return new efe(this._groups,this._parents)},transition:function _fe(){for(var n=this._name,r=this._id,e=XK(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=qd(u,r);zL(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Jh(i,this._parents,n,e)},call:rw.call,nodes:rw.nodes,node:rw.node,size:rw.size,empty:rw.empty,each:rw.each,on:function qpe(n,r){var e=this._id;return arguments.length<2?qd(this.node(),e).on.on(n):this.each(Kpe(e,n,r))},attr:function Ope(n,r){var e=DL(n),i="transform"===e?Cpe:JK;return this.attrTween(n,"function"==typeof r?(e.local?Ape:Dpe)(e,i,a9(this,"attr."+n,r)):null==r?(e.local?Spe:Mpe)(e):(e.local?Epe:xpe)(e,i,r))},attrTween:function Zpe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=DL(n);return this.tween(e,(i.local?Rpe:Lpe)(i,r))},style:function afe(n,r,e){var i="transform"==(n+="")?bpe:JK;return null==r?this.styleTween(n,function nfe(n,r){var e,i,o;return function(){var a=q1(this,n),s=(this.style.removeProperty(n),q1(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,QK(n)):"function"==typeof r?this.styleTween(n,function ife(n,r,e){var i,o,a;return function(){var s=q1(this,n),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(n),u=l=q1(this,n)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(n,i,a9(this,"style."+n,r))).each(function ofe(n,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=qh(this,n),d=u.on,h=null==u.value[a]?l||(l=QK(r)):void 0;(d!==e||o!==h)&&(i=(e=d).copy()).on(s,o=h),u.on=i}}(this._id,n)):this.styleTween(n,function rfe(n,r,e){var i,a,o=e+"";return function(){var s=q1(this,n);return s===o?null:s===i?a:a=r(i=s,e)}}(n,i,r),e).on("end.style."+n,null)},styleTween:function ufe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,lfe(n,r,null==e?"":e))},text:function pfe(n){return this.tween("text","function"==typeof n?function dfe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(a9(this,"text",n)):function cfe(n){return function(){this.textContent=n}}(null==n?"":n+""))},textTween:function mfe(n){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,hfe(n))},remove:function Qpe(){return this.on("end.remove",function Jpe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function Tpe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=qd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?wpe:kpe)(e,n,r))},delay:function Fpe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Npe:Bpe)(r,n)):qd(this.node(),r).delay},duration:function jpe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Upe:Hpe)(r,n)):qd(this.node(),r).duration},ease:function zpe(n){var r=this._id;return arguments.length?this.each(Gpe(r,n)):qd(this.node(),r).ease},end:function gfe(){var n,r,e=this,i=e._id,o=e.size();return new Promise(function(a,s){var l={value:s},u={value:function(){0==--o&&a()}};e.each(function(){var d=qh(this,i),h=d.on;h!==n&&((r=(n=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),d.on=r})})}};var l9={time:null,delay:0,duration:250,ease:VL};function Cfe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return l9.time=ug(),l9;return e}lg.prototype.interrupt=function gpe(n){return this.each(function(){nw(this,n)})},lg.prototype.transition=function wfe(n){var r,e;n instanceof Jh?(r=n._id,n=n._name):(r=XK(),(e=l9).time=ug(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&zL(u,n,r,d,s,e||Cfe(u,r));return new Jh(i,this._parents,n,r)};function $K(n){return function(){return n}}function Tfe(n,r,e){this.target=n,this.type=r,this.selection=e}function eq(){Zn.stopImmediatePropagation()}function YL(){Zn.preventDefault(),Zn.stopImmediatePropagation()}var tq={name:"drag"},u9={name:"space"},iw={name:"handle"},ow={name:"center"},KL={name:"x",handles:["e","w"].map(cE),input:function(r,e){return r&&[[r[0],e[0][1]],[r[1],e[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},qL={name:"y",handles:["n","s"].map(cE),input:function(r,e){return r&&[[e[0][0],r[0]],[e[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},Mfe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(cE),input:function(r){return r},output:function(r){return r}},Qh={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},nq={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rq={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Sfe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xfe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cE(n){return{type:n}}function Efe(){return!Zn.button}function Dfe(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function c9(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function d9(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Afe(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function Ofe(){return p9(KL)}function Ife(){return p9(qL)}function Pfe(){return p9(Mfe)}function p9(n){var a,r=Dfe,e=Efe,i=Qy(s,"start","brush","end"),o=6;function s(C){var Z=C.property("__brush",g).selectAll(".overlay").data([cE("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Qh.overlay).merge(Z).each(function(){var q=c9(this).extent;vi(this).attr("x",q[0][0]).attr("y",q[0][1]).attr("width",q[1][0]-q[0][0]).attr("height",q[1][1]-q[0][1])}),C.selectAll(".selection").data([cE("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Qh.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var z=C.selectAll(".handle").data(n.handles,function(q){return q.type});z.exit().remove(),z.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return Qh[q.type]}),C.each(l).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",h)}function l(){var C=vi(this),Z=c9(this).selection;Z?(C.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),C.selectAll(".handle").style("display",null).attr("x",function(z){return"e"===z.type[z.type.length-1]?Z[1][0]-o/2:Z[0][0]-o/2}).attr("y",function(z){return"s"===z.type[0]?Z[1][1]-o/2:Z[0][1]-o/2}).attr("width",function(z){return"n"===z.type||"s"===z.type?Z[1][0]-Z[0][0]+o:o}).attr("height",function(z){return"e"===z.type||"w"===z.type?Z[1][1]-Z[0][1]+o:o})):C.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(C,Z){return C.__brush.emitter||new d(C,Z)}function d(C,Z){this.that=C,this.args=Z,this.state=C.__brush,this.active=0}function h(){if(Zn.touches){if(Zn.changedTouches.length<Zn.touches.length)return YL()}else if(a)return;if(e.apply(this,arguments)){var Ve,at,ot,ht,Xe,Pe,Nt,Gt,It,Tn,jn,or,Sr,C=this,Z=Zn.target.__data__.type,z="selection"===(Zn.metaKey?Z="overlay":Z)?tq:Zn.altKey?ow:iw,q=n===qL?null:Sfe[Z],re=n===KL?null:xfe[Z],ae=c9(C),Se=ae.extent,Ce=ae.selection,xe=Se[0][0],De=Se[0][1],bt=Se[1][0],pt=Se[1][1],zn=q&&re&&Zn.shiftKey,_r=Kd(C),zr=_r,Ur=u(C,arguments).beforestart();"overlay"===Z?ae.selection=Ce=[[Ve=n===qL?xe:_r[0],ot=n===KL?De:_r[1]],[Xe=n===qL?bt:Ve,Nt=n===KL?pt:ot]]:(Ve=Ce[0][0],ot=Ce[0][1],Xe=Ce[1][0],Nt=Ce[1][1]),at=Ve,ht=ot,Pe=Xe,Gt=Nt;var Kr=vi(C).attr("pointer-events","none"),Fo=Kr.selectAll(".overlay").attr("cursor",Qh[Z]);if(Zn.touches)Kr.on("touchmove.brush",wr,!0).on("touchend.brush touchcancel.brush",gn,!0);else{var er=vi(Zn.view).on("keydown.brush",tr,!0).on("keyup.brush",un,!0).on("mousemove.brush",wr,!0).on("mouseup.brush",gn,!0);OL(Zn.view)}eq(),nw(C),l.call(C),Ur.start()}function wr(){var bn=Kd(C);zn&&!or&&!Sr&&(Math.abs(bn[0]-zr[0])>Math.abs(bn[1]-zr[1])?Sr=!0:or=!0),zr=bn,jn=!0,YL(),Sn()}function Sn(){var bn;switch(It=zr[0]-_r[0],Tn=zr[1]-_r[1],z){case u9:case tq:q&&(It=Math.max(xe-Ve,Math.min(bt-Xe,It)),at=Ve+It,Pe=Xe+It),re&&(Tn=Math.max(De-ot,Math.min(pt-Nt,Tn)),ht=ot+Tn,Gt=Nt+Tn);break;case iw:q<0?(It=Math.max(xe-Ve,Math.min(bt-Ve,It)),at=Ve+It,Pe=Xe):q>0&&(It=Math.max(xe-Xe,Math.min(bt-Xe,It)),at=Ve,Pe=Xe+It),re<0?(Tn=Math.max(De-ot,Math.min(pt-ot,Tn)),ht=ot+Tn,Gt=Nt):re>0&&(Tn=Math.max(De-Nt,Math.min(pt-Nt,Tn)),ht=ot,Gt=Nt+Tn);break;case ow:q&&(at=Math.max(xe,Math.min(bt,Ve-It*q)),Pe=Math.max(xe,Math.min(bt,Xe+It*q))),re&&(ht=Math.max(De,Math.min(pt,ot-Tn*re)),Gt=Math.max(De,Math.min(pt,Nt+Tn*re)))}Pe<at&&(q*=-1,bn=Ve,Ve=Xe,Xe=bn,bn=at,at=Pe,Pe=bn,Z in nq&&Fo.attr("cursor",Qh[Z=nq[Z]])),Gt<ht&&(re*=-1,bn=ot,ot=Nt,Nt=bn,bn=ht,ht=Gt,Gt=bn,Z in rq&&Fo.attr("cursor",Qh[Z=rq[Z]])),ae.selection&&(Ce=ae.selection),or&&(at=Ce[0][0],Pe=Ce[1][0]),Sr&&(ht=Ce[0][1],Gt=Ce[1][1]),(Ce[0][0]!==at||Ce[0][1]!==ht||Ce[1][0]!==Pe||Ce[1][1]!==Gt)&&(ae.selection=[[at,ht],[Pe,Gt]],l.call(C),Ur.brush())}function gn(){if(eq(),Zn.touches){if(Zn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Kr.on("touchmove.brush touchend.brush touchcancel.brush",null)}else IL(Zn.view,jn),er.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Kr.attr("pointer-events","all"),Fo.attr("cursor",Qh.overlay),ae.selection&&(Ce=ae.selection),d9(Ce)&&(ae.selection=null,l.call(C)),Ur.end()}function tr(){switch(Zn.keyCode){case 16:zn=q&&re;break;case 18:z===iw&&(q&&(Xe=Pe-It*q,Ve=at+It*q),re&&(Nt=Gt-Tn*re,ot=ht+Tn*re),z=ow,Sn());break;case 32:(z===iw||z===ow)&&(q<0?Xe=Pe-It:q>0&&(Ve=at-It),re<0?Nt=Gt-Tn:re>0&&(ot=ht-Tn),z=u9,Fo.attr("cursor",Qh.selection),Sn());break;default:return}YL()}function un(){switch(Zn.keyCode){case 16:zn&&(or=Sr=zn=!1,Sn());break;case 18:z===ow&&(q<0?Xe=Pe:q>0&&(Ve=at),re<0?Nt=Gt:re>0&&(ot=ht),z=iw,Sn());break;case 32:z===u9&&(Zn.altKey?(q&&(Xe=Pe-It*q,Ve=at+It*q),re&&(Nt=Gt-Tn*re,ot=ht+Tn*re),z=ow):(q<0?Xe=Pe:q>0&&(Ve=at),re<0?Nt=Gt:re>0&&(ot=ht),z=iw),Fo.attr("cursor",Qh[Z]),Sn());break;default:return}YL()}}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=BL(ae,Se);function xe(Ve){q.selection=1===Ve&&d9(Se)?null:Ce(Ve),l.call(z),re.brush()}return ae&&Se?xe:xe(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();nw(z),re.selection=null==ae||d9(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){AL(new Tfe(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:$K([[+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:$K(!!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 iq=Math.cos,oq=Math.sin,aq=Math.PI,JL=aq/2,sq=2*aq,lq=Math.max;function Rfe(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Lfe(){var n=0,r=null,e=null,i=null;function o(a){var Z,z,q,re,ae,Se,s=a.length,l=[],u=hc(s),d=[],h=[],g=h.groups=new Array(s),C=new Array(s*s);for(Z=0,ae=-1;++ae<s;){for(z=0,Se=-1;++Se<s;)z+=a[ae][Se];l.push(z),d.push(hc(s)),Z+=z}for(r&&u.sort(function(bt,Xe){return r(l[bt],l[Xe])}),e&&d.forEach(function(bt,Xe){bt.sort(function(Pe,pt){return e(a[Xe][Pe],a[Xe][pt])})}),re=(Z=lq(0,sq-n*s)/Z)?n:sq/s,z=0,ae=-1;++ae<s;){for(q=z,Se=-1;++Se<s;){var Ce=u[ae],xe=d[Ce][Se],Ve=a[Ce][xe],at=z,De=z+=Ve*Z;C[xe*s+Ce]={index:Ce,subindex:xe,startAngle:at,endAngle:De,value:Ve}}g[Ce]={index:Ce,startAngle:q,endAngle:z,value:l[Ce]},z+=re}for(ae=-1;++ae<s;)for(Se=ae-1;++Se<s;){var ot=C[Se*s+ae],ht=C[ae*s+Se];(ot.value||ht.value)&&h.push(ot.value<ht.value?{source:ht,target:ot}:{source:ot,target:ht})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(n=lq(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(e=a,o):e},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=Rfe(a))._=a,o):i&&i._},o}var Zfe=Array.prototype.slice;function f9(n){return function(){return n}}var h9=Math.PI,m9=2*h9,t0=1e-6,Nfe=m9-t0;function _9(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uq(){return new _9}_9.prototype=uq.prototype={constructor:_9,moveTo:function(r,e){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,e){this._+="L"+(this._x1=+r)+","+(this._y1=+e)},quadraticCurveTo:function(r,e,i,o){this._+="Q"+ +r+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,e,i,o,a,s){this._+="C"+ +r+","+ +e+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,e,i,o,a){r=+r,e=+e,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-r,d=o-e,h=s-r,g=l-e,C=h*h+g*g;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(C>t0)if(Math.abs(g*u-d*h)>t0&&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((h9-Math.acos((q+C-re)/(2*ae*Se)))/2),xe=Ce/Se,Ve=Ce/ae;Math.abs(xe-1)>t0&&(this._+="L"+(r+xe*h)+","+(e+xe*g)),this._+="A"+a+","+a+",0,0,"+ +(g*Z>h*z)+","+(this._x1=r+Ve*u)+","+(this._y1=e+Ve*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)>t0||Math.abs(this._y1-h)>t0)&&(this._+="L"+d+","+h),i&&(C<0&&(C=C%m9+m9),C>Nfe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):C>t0&&(this._+="A"+i+","+i+",0,"+ +(C>=h9)+","+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=uq;function Bfe(n){return n.source}function Ffe(n){return n.target}function Ufe(n){return n.radius}function Hfe(n){return n.startAngle}function jfe(n){return n.endAngle}function Gfe(){var n=Bfe,r=Ffe,e=Ufe,i=Hfe,o=jfe,a=null;function s(){var l,u=Zfe.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)-JL,Z=o.apply(this,u)-JL,z=g*iq(C),q=g*oq(C),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-JL,Se=o.apply(this,u)-JL;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*iq(ae),re*oq(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:f9(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:f9(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:f9(+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 Kc="$";function QL(){}function cq(n,r){var e=new QL;if(n instanceof QL)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<o;)e.set(i,n[i]);else for(;++i<o;)e.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)e.set(s,n[s]);return e}QL.prototype=cq.prototype={constructor:QL,has:function(r){return Kc+r in this},get:function(r){return this[Kc+r]},set:function(r,e){return this[Kc+r]=e,this},remove:function(r){var e=Kc+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Kc&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Kc&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Kc&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Kc&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Kc&&++r;return r},empty:function(){for(var r in this)if(r[0]===Kc)return!1;return!0},each:function(r){for(var e in this)e[0]===Kc&&r(this[e],e.slice(1),this)}};var cg=cq;function zfe(){var e,i,o,n=[],r=[];function a(l,u,d,h){if(u>=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=cg(),Se=d();++g<C;)(ae=re.get(z=Z(q=l[g])+""))?ae.push(q):re.set(z,[q]);return re.each(function(Ce,xe){h(Se,xe,a(Ce,u,d,h))}),Se}function s(l,u){if(++u>n.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,Wfe,Vfe)},map:function(u){return a(u,0,dq,pq)},entries:function(u){return s(a(u,0,dq,pq),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 Wfe(){return{}}function Vfe(n,r,e){n[r]=e}function dq(){return cg()}function pq(n,r,e){n.set(r,e)}function XL(){}var n0=cg.prototype;function fq(n,r){var e=new XL;if(n instanceof XL)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)e.add(n[i]);else for(;++i<o;)e.add(r(n[i],i,n))}return e}XL.prototype=fq.prototype={constructor:XL,has:n0.has,add:function(r){return this[Kc+(r+="")]=r,this},remove:n0.remove,clear:n0.clear,values:n0.keys,size:n0.size,empty:n0.empty,each:n0.each};var Yfe=fq;function Kfe(n){var r=[];for(var e in n)r.push(e);return r}function qfe(n){var r=[];for(var e in n)r.push(n[e]);return r}function Jfe(n){var r=[];for(var e in n)r.push({key:e,value:n[e]});return r}function aw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function dE(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function dg(){}var sw=1/.7,lw="\\s*([+-]?\\d+)\\s*",pE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",uf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qfe=/^#([0-9a-f]{3})$/,Xfe=/^#([0-9a-f]{6})$/,$fe=new RegExp("^rgb\\("+[lw,lw,lw]+"\\)$"),ehe=new RegExp("^rgb\\("+[uf,uf,uf]+"\\)$"),the=new RegExp("^rgba\\("+[lw,lw,lw,pE]+"\\)$"),nhe=new RegExp("^rgba\\("+[uf,uf,uf,pE]+"\\)$"),rhe=new RegExp("^hsl\\("+[pE,uf,uf]+"\\)$"),ihe=new RegExp("^hsla\\("+[pE,uf,uf,pE]+"\\)$"),hq={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 $L(n){var r;return n=(n+"").trim().toLowerCase(),(r=Qfe.exec(n))?new rl((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Xfe.exec(n))?mq(parseInt(r[1],16)):(r=$fe.exec(n))?new rl(r[1],r[2],r[3],1):(r=ehe.exec(n))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=the.exec(n))?_q(r[1],r[2],r[3],r[4]):(r=nhe.exec(n))?_q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=rhe.exec(n))?vq(r[1],r[2]/100,r[3]/100,1):(r=ihe.exec(n))?vq(r[1],r[2]/100,r[3]/100,r[4]):hq.hasOwnProperty(n)?mq(hq[n]):"transparent"===n?new rl(NaN,NaN,NaN,0):null}function mq(n){return new rl(n>>16&255,n>>8&255,255&n,1)}function _q(n,r,e,i){return i<=0&&(n=r=e=NaN),new rl(n,r,e,i)}function g9(n){return n instanceof dg||(n=$L(n)),n?new rl((n=n.rgb()).r,n.g,n.b,n.opacity):new rl}function gq(n,r,e,i){return 1===arguments.length?g9(n):new rl(n,r,e,null==i?1:i)}function rl(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}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 cf(n,r,e,i)}function ohe(n){if(n instanceof cf)return new cf(n.h,n.s,n.l,n.opacity);if(n instanceof dg||(n=$L(n)),!n)return new cf;if(n instanceof cf)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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new cf(s,l,u,n.opacity)}function yq(n,r,e,i){return 1===arguments.length?ohe(n):new cf(n,r,e,null==i?1:i)}function cf(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function v9(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}aw(dg,$L,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),aw(rl,gq,dE(dg,{brighter:function(r){return r=null==r?sw:Math.pow(sw,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rl(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+")")}})),aw(cf,yq,dE(dg,{brighter:function(r){return r=null==r?sw:Math.pow(sw,r),new cf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new cf(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 rl(v9(r>=240?r-240:r+120,a,o),v9(r,a,o),v9(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 bq=Math.PI/180,Cq=180/Math.PI,Mq=4/29,uw=6/29,Sq=3*uw*uw;function y9(n){if(n instanceof df)return new df(n.l,n.a,n.b,n.opacity);if(n instanceof Xh){if(isNaN(n.h))return new df(n.l,0,0,n.opacity);var r=n.h*bq;return new df(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof rl||(n=g9(n));var s,l,e=k9(n.r),i=k9(n.g),o=k9(n.b),a=b9((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=b9((.4360747*e+.3850649*i+.1430804*o)/.96422),l=b9((.0139322*e+.0971045*i+.7141733*o)/.82521)),new df(116*a-16,500*(s-a),200*(a-l),n.opacity)}function xq(n,r,e,i){return 1===arguments.length?y9(n):new df(n,r,e,null==i?1:i)}function df(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function b9(n){return n>.008856451679035631?Math.pow(n,1/3):n/Sq+Mq}function C9(n){return n>uw?n*n*n:Sq*(n-Mq)}function w9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function k9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function she(n){if(n instanceof Xh)return new Xh(n.h,n.c,n.l,n.opacity);if(n instanceof df||(n=y9(n)),0===n.a&&0===n.b)return new Xh(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*Cq;return new Xh(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Eq(n,r,e,i){return 1===arguments.length?she(n):new Xh(n,r,e,null==i?1:i)}function Xh(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}aw(df,xq,dE(dg,{brighter:function(r){return new df(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new df(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 rl(w9(3.1338561*(e=.96422*C9(e))-1.6168667*(r=1*C9(r))-.4906146*(i=.82521*C9(i))),w9(-.9787684*e+1.9161415*r+.033454*i),w9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),aw(Xh,Eq,dE(dg,{brighter:function(r){return new Xh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Xh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return y9(this).rgb()}}));var T9=1.78277,M9=-.29227,tZ=-.90649,fE=1.97294,Aq=fE*tZ,Oq=fE*T9,Iq=T9*M9- -.14861*tZ;function lhe(n){if(n instanceof i0)return new i0(n.h,n.s,n.l,n.opacity);n instanceof rl||(n=g9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Iq*i+Aq*r-Oq*e)/(Iq+Aq-Oq),a=i-o,s=(fE*(e-o)-M9*a)/tZ,l=Math.sqrt(s*s+a*a)/(fE*o*(1-o)),u=l?Math.atan2(s,a)*Cq-120:NaN;return new i0(u<0?u+360:u,l,o,n.opacity)}function Pq(n,r,e,i){return 1===arguments.length?lhe(n):new i0(n,r,e,null==i?1:i)}function i0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}aw(i0,Pq,dE(dg,{brighter:function(r){return r=null==r?sw:Math.pow(sw,r),new i0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new i0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*bq,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new rl(255*(e+i*(-.14861*o+T9*a)),255*(e+i*(M9*o+tZ*a)),255*(e+i*(fE*o)),this.opacity)}}));var Rq=Array.prototype.slice;function che(n,r){return n-r}function o0(n){return function(){return n}}function phe(n,r){for(var o,e=-1,i=r.length;++e<i;)if(o=fhe(n,r[e]))return o;return 0}function fhe(n,r){for(var e=r[0],i=r[1],o=-1,a=0,s=n.length,l=s-1;a<s;l=a++){var u=n[a],d=u[0],h=u[1],g=n[l],C=g[0],Z=g[1];if(hhe(u,g,r))return 0;h>i!=Z>i&&e<(C-d)*(i-h)/(Z-h)+d&&(o=-o)}return o}function hhe(n,r,e){var i;return function mhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function _he(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function ghe(){}var $h=[[],[[[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 Lq(){var n=1,r=1,e=H7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(che);else{var g=Z7(d),C=g[0],Z=g[1];h=Jy(C,Z,h),h=hc(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,$h[ae<<1].forEach(xe);++z<n-1;)re=ae,ae=d[z+1]>=h,$h[re|ae<<1].forEach(xe);for($h[ae<<0].forEach(xe);++q<r-1;){for(z=-1,ae=d[q*n+n]>=h,Se=d[q*n]>=h,$h[ae<<1|Se<<2].forEach(xe);++z<n-1;)re=ae,ae=d[q*n+n+z+1]>=h,Ce=Se,Se=d[q*n+z+1]>=h,$h[re|ae<<1|Se<<2|Ce<<3].forEach(xe);$h[ae|Se<<3].forEach(xe)}for(z=-1,Se=d[q*n]>=h,$h[Se<<2].forEach(xe);++z<n-1;)Ce=Se,Se=d[q*n+z+1]>=h,$h[Se<<2|Ce<<3].forEach(xe);function xe(Ve){var bt,Xe,at=[Ve[0][0]+z,Ve[0][1]+q],De=[Ve[1][0]+z,Ve[1][1]+q],ot=l(at),ht=l(De);(bt=Z[ot])?(Xe=C[ht])?(delete Z[bt.end],delete C[Xe.start],bt===Xe?(bt.ring.push(De),g(bt.ring)):C[bt.start]=Z[Xe.end]={start:bt.start,end:Xe.end,ring:bt.ring.concat(Xe.ring)}):(delete Z[bt.end],bt.ring.push(De),Z[bt.end=ht]=bt):(bt=C[ht])?(Xe=Z[ot])?(delete C[bt.start],delete Z[Xe.end],bt===Xe?(bt.ring.push(De),g(bt.ring)):C[Xe.start]=Z[bt.end]={start:Xe.start,end:bt.end,ring:Xe.ring.concat(bt.ring)}):(delete C[bt.start],bt.ring.unshift(at),C[bt.start=ot]=bt):C[ot]=Z[ht]={start:ot,end:ht,ring:[at,De]}}$h[Se<<3].forEach(xe)}(d,h,function(Z){i(Z,d,h),function dhe(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r<e;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(Z)>0?g.push([Z]):C.push(Z)}),C.forEach(function(Z){for(var re,z=0,q=g.length;z<q;++z)if(-1!==phe((re=g[z])[0],Z))return void re.push(Z)}),{type:"MultiPolygon",value:h,coordinates:g}}function l(d){return 2*d[0]+d[1]*(n+1)*4}function u(d,h,g){d.forEach(function(C){var ae,Z=C[0],z=C[1],q=0|Z,re=0|z,Se=h[re*n+q];Z>0&&Z<n&&q===Z&&(ae=h[re*n+q-1],C[0]=Z+(g-ae)/(Se-ae)-.5),z>0&&z<r&&re===z&&(ae=h[(re-1)*n+q],C[1]=z+(g-ae)/(Se-ae)-.5)})}return o.contour=a,o.size=function(d){if(!arguments.length)return[n,r];var h=Math.ceil(d[0]),g=Math.ceil(d[1]);if(!(h>0&&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)?o0(Rq.call(d)):o0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:ghe,o):i===u},o}function S9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=n.data[l+s*i]),l>=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 x9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=n.data[s+l*i]),l>=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 vhe(n){return n[0]}function yhe(n){return n[1]}function bhe(){var n=vhe,r=yhe,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=o0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ve,at,De){var ot=n(Ve,at,De)+s>>a,ht=r(Ve,at,De)+s>>a;ot>=0&&ot<l&&ht>=0&&ht<u&&++ae[ot+ht*l]}),S9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),x9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),S9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),x9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),S9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),x9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var xe=tK(ae);Ce=Jy(0,xe,Ce),(Ce=hc(0,Math.floor(xe/Ce)*Ce,Ce)).shift()}return Lq().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:o0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:o0(+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<<a;if(!((re=+re)>=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)?o0(Rq.call(re)):o0(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 E9(n,r,e){arguments.length<3&&(e=r,r=NK().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return BK(n,a);return null}function nZ(n){return function(){return n}}function D9(n,r,e,i,o,a,s,l,u,d){this.target=n,this.type=r,this.subject=e,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=l,this.dy=u,this._=d}function Che(){return!Zn.ctrlKey&&!Zn.button}function whe(){return this.parentNode}function khe(n){return null==n?{x:Zn.x,y:Zn.y}:n}function The(){return navigator.maxTouchPoints||"ontouchstart"in this}function pg(){var l,u,d,h,n=Che,r=whe,e=khe,i=The,o={},a=Qy("start","drag","end"),s=0,g=0;function C(xe){xe.on("mousedown.drag",Z).filter(i).on("touchstart.drag",re).on("touchmove.drag",ae).on("touchend.drag touchcancel.drag",Se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(){if(!h&&n.apply(this,arguments)){var xe=Ce("mouse",r.apply(this,arguments),Kd,this,arguments);!xe||(vi(Zn.view).on("mousemove.drag",z,!0).on("mouseup.drag",q,!0),OL(Zn.view),K7(),d=!1,l=Zn.clientX,u=Zn.clientY,xe("start"))}}function z(){if(J1(),!d){var xe=Zn.clientX-l,Ve=Zn.clientY-u;d=xe*xe+Ve*Ve>g}o.mouse("drag")}function q(){vi(Zn.view).on("mousemove.drag mouseup.drag",null),IL(Zn.view,d),J1(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var De,ot,xe=Zn.changedTouches,Ve=r.apply(this,arguments),at=xe.length;for(De=0;De<at;++De)(ot=Ce(xe[De].identifier,Ve,E9,this,arguments))&&(K7(),ot("start"))}}function ae(){var at,De,xe=Zn.changedTouches,Ve=xe.length;for(at=0;at<Ve;++at)(De=o[xe[at].identifier])&&(J1(),De("drag"))}function Se(){var at,De,xe=Zn.changedTouches,Ve=xe.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),at=0;at<Ve;++at)(De=o[xe[at].identifier])&&(K7(),De("end"))}function Ce(xe,Ve,at,De,ot){var bt,Xe,Pe,ht=at(Ve,xe),pt=a.copy();if(AL(new D9(C,"beforestart",bt,xe,s,ht[0],ht[1],0,0,pt),function(){return null!=(Zn.subject=bt=e.apply(De,ot))&&(Xe=bt.x-ht[0]||0,Pe=bt.y-ht[1]||0,!0)}))return function Nt(Gt){var Tn,It=ht;switch(Gt){case"start":o[xe]=Nt,Tn=s++;break;case"end":delete o[xe],--s;case"drag":ht=at(Ve,xe),Tn=s}AL(new D9(C,Gt,bt,xe,Tn,ht[0]+Xe,ht[1]+Pe,ht[0]-It[0],ht[1]-It[1],pt),pt.apply,pt,[Gt,De,ot])}}return C.filter=function(xe){return arguments.length?(n="function"==typeof xe?xe:nZ(!!xe),C):n},C.container=function(xe){return arguments.length?(r="function"==typeof xe?xe:nZ(xe),C):r},C.subject=function(xe){return arguments.length?(e="function"==typeof xe?xe:nZ(xe),C):e},C.touchable=function(xe){return arguments.length?(i="function"==typeof xe?xe:nZ(!!xe),C):i},C.on=function(){var xe=a.on.apply(a,arguments);return xe===a?C:xe},C.clickDistance=function(xe){return arguments.length?(g=(xe=+xe)*xe,C):Math.sqrt(g)},C}D9.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Zq={},A9={};function Nq(n){return new Function("d","return {"+n.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function P9(n){var r=new RegExp('["'+n+"\n\r]"),e=n.charCodeAt(0);function o(d,h){var q,g=[],C=d.length,Z=0,z=0,re=C<=0,ae=!1;function Se(){if(re)return A9;if(ae)return ae=!1,Zq;var xe,at,Ve=Z;if(34===d.charCodeAt(Ve)){for(;Z++<C&&34!==d.charCodeAt(Z)||34===d.charCodeAt(++Z););return(xe=Z)>=C?re=!0:10===(at=d.charCodeAt(Z++))?ae=!0:13===at&&(ae=!0,10===d.charCodeAt(Z)&&++Z),d.slice(Ve+1,xe-1).replace(/""/g,'"')}for(;Z<C;){if(10===(at=d.charCodeAt(xe=Z++)))ae=!0;else if(13===at)ae=!0,10===d.charCodeAt(Z)&&++Z;else if(at!==e)continue;return d.slice(Ve,xe)}return re=!0,d.slice(Ve,C)}for(10===d.charCodeAt(C-1)&&--C,13===d.charCodeAt(C-1)&&--C;(q=Se())!==A9;){for(var Ce=[];q!==Zq&&q!==A9;)Ce.push(q),q=Se();h&&null==(Ce=h(Ce,z++))||g.push(Ce)}return g}function l(d){return d.map(u).join(n)}function u(d){return null==d?"":r.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:function i(d,h){var g,C,Z=o(d,function(z,q){if(g)return g(z,q-1);C=z,g=h?function Mhe(n,r){var e=Nq(n);return function(i,o){return r(e(i),o,n)}}(z,h):Nq(z)});return Z.columns=C||[],Z},parseRows:o,format:function a(d,h){return null==h&&(h=function She(n){var r=Object.create(null),e=[];return n.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(d)),[h.map(u).join(n)].concat(d.map(function(g){return h.map(function(C){return u(g[C])}).join(n)})).join("\n")},formatRows:function s(d){return d.map(l).join("\n")}}}var rZ=P9(","),xhe=rZ.parse,Ehe=rZ.parseRows,Dhe=rZ.format,Ahe=rZ.formatRows,iZ=P9("\t"),Ohe=iZ.parse,Ihe=iZ.parseRows,Phe=iZ.format,Rhe=iZ.formatRows;function Lhe(n){return+n}function Zhe(n){return n*n}function Nhe(n){return n*(2-n)}function Bq(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Bhe=function n(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=n,e}(3),Fhe=function n(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=n,e}(3),Fq=function n(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=n,e}(3),Uq=Math.PI,Hq=Uq/2;function Uhe(n){return 1==+n?1:1-Math.cos(n*Hq)}function Hhe(n){return Math.sin(n*Hq)}function jq(n){return(1-Math.cos(Uq*n))/2}function fg(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function jhe(n){return fg(1-+n)}function Ghe(n){return 1-fg(n)}function Gq(n){return((n*=2)<=1?fg(1-n):2-fg(n-1))/2}function zhe(n){return 1-Math.sqrt(1-n*n)}function Whe(n){return Math.sqrt(1- --n*n)}function zq(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var L9=4/11,oZ=7.5625;function eme(n){return 1-mE(1-n)}function mE(n){return(n=+n)<L9?oZ*n*n:n<.7272727272727273?oZ*(n-=.5454545454545454)*n+.75:n<.9090909090909091?oZ*(n-=.8181818181818182)*n+.9375:oZ*(n-=.9545454545454546)*n+.984375}function tme(n){return((n*=2)<=1?1-mE(1-n):mE(n-1)+1)/2}var Z9=1.70158,nme=function n(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=n,e}(Z9),rme=function n(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=n,e}(Z9),Wq=function n(r){function e(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,e.overshoot=n,e}(Z9),cw=2*Math.PI,ime=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=cw);function o(a){return r*fg(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return n(a,e*cw)},o.period=function(a){return n(r,a)},o}(1,.3),Vq=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=cw);function o(a){return 1-r*fg(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return n(a,e*cw)},o.period=function(a){return n(r,a)},o}(1,.3),ome=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=cw);function o(a){return((a=2*a-1)<0?r*fg(-a)*Math.sin((i-a)/e):2-r*fg(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return n(a,e*cw)},o.period=function(a){return n(r,a)},o}(1,.3);function ame(n,r){var e;function i(){var o,s,a=e.length,l=0,u=0;for(o=0;o<a;++o)l+=(s=e[o]).x,u+=s.y;for(l=l/a-n,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function bs(n){return function(){return n}}function hg(){return 1e-6*(Math.random()-.5)}function Yq(n,r,e,i){if(isNaN(r)||isNaN(e))return n;var o,g,C,Z,z,q,re,ae,Se,a=n._root,s={data:i},l=n._x0,u=n._y0,d=n._x1,h=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((q=r>=(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 ru(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function yme(n){return n[0]}function Cme(n){return n[1]}function aZ(n,r,e){var i=new F9(null==r?yme:r,null==e?Cme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function F9(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 Kq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var iu=aZ.prototype=F9.prototype;function kme(n){return n.x+n.vx}function Tme(n){return n.y+n.vy}function Mme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,C,Z,z,q,d=r.length,re=0;re<o;++re)for(h=aZ(r,kme,Tme).visitAfter(s),u=0;u<d;++u)g=r[u],z=e[g.index],q=z*z,C=g.x+g.vx,Z=g.y+g.vy,h.visit(ae);function ae(Se,Ce,xe,Ve,at){var De=Se.data,ot=Se.r,ht=z+ot;if(!De)return Ce>C+ht||Ve<C-ht||xe>Z+ht||at<Z-ht;if(De.index>g.index){var bt=C-De.x-De.vx,Xe=Z-De.y-De.vy,Pe=bt*bt+Xe*Xe;Pe<ht*ht&&(0===bt&&(Pe+=(bt=hg())*bt),0===Xe&&(Pe+=(Xe=hg())*Xe),Pe=(ht-(Pe=Math.sqrt(Pe)))/Pe*i,g.vx+=(bt*=Pe)*(ht=(ot*=ot)/(q+ot)),g.vy+=(Xe*=Pe)*ht,De.vx-=bt*(ht=1-ht),De.vy-=Xe*ht)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;u<d;++u)h=r[u],e[h.index]=+n(h,u,r)}}return"function"!=typeof n&&(n=bs(null==n?1:+n)),a.initialize=function(u){r=u,l()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(i=+u,a):i},a.radius=function(u){return arguments.length?(n="function"==typeof u?u:bs(+u),l(),a):n},a}function Sme(n){return n.index}function qq(n,r){var e=n.get(r);if(!e)throw new Error("missing: "+r);return e}function xme(n){var i,a,s,l,u,r=Sme,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=bs(30),d=1;function g(q){for(var re=0,ae=n.length;re<d;++re)for(var Ce,xe,Ve,at,De,ot,ht,Se=0;Se<ae;++Se)xe=(Ce=n[Se]).source,at=(Ve=Ce.target).x+Ve.vx-xe.x-xe.vx||hg(),De=Ve.y+Ve.vy-xe.y-xe.vy||hg(),at*=ot=((ot=Math.sqrt(at*at+De*De))-a[Se])/ot*q*i[Se],De*=ot,Ve.vx-=at*(ht=u[Se]),Ve.vy-=De*ht,xe.vx+=at*(ht=1-ht),xe.vy+=De*ht}function C(){if(s){var q,Ce,re=s.length,ae=n.length,Se=cg(s,r);for(q=0,l=new Array(re);q<ae;++q)(Ce=n[q]).index=q,"object"!=typeof Ce.source&&(Ce.source=qq(Se,Ce.source)),"object"!=typeof Ce.target&&(Ce.target=qq(Se,Ce.target)),l[Ce.source.index]=(l[Ce.source.index]||0)+1,l[Ce.target.index]=(l[Ce.target.index]||0)+1;for(q=0,u=new Array(ae);q<ae;++q)Ce=n[q],u[q]=l[Ce.source.index]/(l[Ce.source.index]+l[Ce.target.index]);i=new Array(ae),Z(),a=new Array(ae),z()}}function Z(){if(s)for(var q=0,re=n.length;q<re;++q)i[q]=+e(n[q],q,n)}function z(){if(s)for(var q=0,re=n.length;q<re;++q)a[q]=+o(n[q],q,n)}return null==n&&(n=[]),g.initialize=function(q){s=q,C()},g.links=function(q){return arguments.length?(n=q,C(),g):n},g.id=function(q){return arguments.length?(r=q,g):r},g.iterations=function(q){return arguments.length?(d=+q,g):d},g.strength=function(q){return arguments.length?(e="function"==typeof q?q:bs(+q),Z(),g):e},g.distance=function(q){return arguments.length?(o="function"==typeof q?q:bs(+q),z(),g):o},g}function Eme(n){return n.x}function Dme(n){return n.y}iu.copy=function(){var e,i,n=new F9(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Kq(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?e.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=Kq(i));return n},iu.add=function sme(n){var r=+this._x.call(null,n),e=+this._y.call(null,n);return Yq(this.cover(r,e),r,e,n)},iu.addAll=function lme(n){var r,e,o,a,i=n.length,s=new Array(i),l=new Array(i),u=1/0,d=1/0,h=-1/0,g=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=n[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<d&&(d=a),a>g&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;e<i;++e)Yq(this,s[e],l[e],n[e]);return this},iu.cover=function ume(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var e=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(e))o=(e=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var u,d,s=o-e,l=this._root;e>n||n>=o||i>r||r>=a;)switch(d=(r<i)<<1|n<e,u=new Array(4),u[d]=l,l=u,s*=2,d){case 0:o=e+s,a=i+s;break;case 1:e=o-s,a=i+s;break;case 2:o=e+s,i=a-s;break;case 3:e=o-s,i=a-s}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=i,this._x1=o,this._y1=a,this},iu.data=function cme(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},iu.extent=function dme(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},iu.find=function pme(n,r,e){var i,s,l,u,d,z,q,o=this._x0,a=this._y0,h=this._x1,g=this._y1,C=[],Z=this._root;for(Z&&C.push(new ru(Z,o,a,h,g)),null==e?e=1/0:(o=n-e,a=r-e,h=n+e,g=r+e,e*=e);z=C.pop();)if(!(!(Z=z.node)||(s=z.x0)>h||(l=z.y0)>g||(u=z.x1)<o||(d=z.y1)<a))if(Z.length){var re=(s+u)/2,ae=(l+d)/2;C.push(new ru(Z[3],re,ae,u,d),new ru(Z[2],s,ae,re,d),new ru(Z[1],re,l,u,ae),new ru(Z[0],s,l,re,ae)),(q=(r>=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),xe=Se*Se+Ce*Ce;if(xe<e){var Ve=Math.sqrt(e=xe);o=n-Ve,a=r-Ve,h=n+Ve,g=r+Ve,i=Z.data}}return i},iu.remove=function fme(n){if(isNaN(h=+this._x.call(null,n))||isNaN(g=+this._y.call(null,n)))return this;var r,i,o,a,h,g,C,Z,z,q,re,ae,e=this._root,s=this._x0,l=this._y0,u=this._x1,d=this._y1;if(!e)return this;if(e.length)for(;;){if((z=h>=(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)},iu.removeAll=function hme(n){for(var r=0,e=n.length;r<e;++r)this.remove(n[r]);return this},iu.root=function mme(){return this._root},iu.size=function _me(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},iu.visit=function gme(n){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new ru(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!n(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var d=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new ru(o,d,h,l,u)),(o=i[2])&&r.push(new ru(o,a,h,d,u)),(o=i[1])&&r.push(new ru(o,d,s,l,h)),(o=i[0])&&r.push(new ru(o,a,s,d,h))}return this},iu.visitAfter=function vme(n){var i,r=[],e=[];for(this._root&&r.push(new ru(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,l=i.y0,u=i.x1,d=i.y1,h=(s+u)/2,g=(l+d)/2;(a=o[0])&&r.push(new ru(a,s,l,h,g)),(a=o[1])&&r.push(new ru(a,h,l,u,g)),(a=o[2])&&r.push(new ru(a,s,g,h,d)),(a=o[3])&&r.push(new ru(a,h,g,u,d))}e.push(i)}for(;i=e.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},iu.x=function bme(n){return arguments.length?(this._x=n,this):this._x},iu.y=function wme(n){return arguments.length?(this._y=n,this):this._y};var Jq,Ome=Math.PI*(3-Math.sqrt(5));function Ime(n){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=cg(),u=sE(h),d=Qy("tick","end");function h(){g(),d.call("tick",r),e<i&&(u.stop(),d.call("end",r))}function g(){var z,re,q=n.length;for(e+=(a-e)*o,l.each(function(ae){ae(e)}),z=0;z<q;++z)null==(re=n[z]).fx?re.x+=re.vx*=s:(re.x=re.fx,re.vx=0),null==re.fy?re.y+=re.vy*=s:(re.y=re.fy,re.vy=0)}function C(){for(var re,z=0,q=n.length;z<q;++z){if((re=n[z]).index=z,isNaN(re.x)||isNaN(re.y)){var ae=10*Math.sqrt(z),Se=z*Ome;re.x=ae*Math.cos(Se),re.y=ae*Math.sin(Se)}(isNaN(re.vx)||isNaN(re.vy))&&(re.vx=re.vy=0)}}function Z(z){return z.initialize&&z.initialize(n),z}return null==n&&(n=[]),C(),r={tick:g,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(n=q,C(),l.each(Z),r):n},alpha:function(q){return arguments.length?(e=+q,r):e},alphaMin:function(q){return arguments.length?(i=+q,r):i},alphaDecay:function(q){return arguments.length?(o=+q,r):+o},alphaTarget:function(q){return arguments.length?(a=+q,r):a},velocityDecay:function(q){return arguments.length?(s=1-q,r):1-s},force:function(q,re){return arguments.length>1?(null==re?l.remove(q):l.set(q,Z(re)),r):l.get(q)},find:function(q,re,ae){var xe,Ve,at,De,ot,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se<Ce;++Se)(at=(xe=q-(De=n[Se]).x)*xe+(Ve=re-De.y)*Ve)<ae&&(ot=De,ae=at);return ot},on:function(q,re){return arguments.length>1?(d.on(q,re),r):d.on(q)}}}function Pme(){var n,r,e,o,i=bs(-30),a=1,s=1/0,l=.81;function u(C){var Z,z=n.length,q=aZ(n,Eme,Dme).visitAfter(h);for(e=C,Z=0;Z<z;++Z)r=n[Z],q.visit(g)}function d(){if(n){var C,z,Z=n.length;for(o=new Array(Z),C=0;C<Z;++C)z=n[C],o[z.index]=+i(z,C,n)}}function h(C){var z,q,ae,Se,Ce,Z=0,re=0;if(C.length){for(ae=Se=Ce=0;Ce<4;++Ce)(z=C[Ce])&&(q=Math.abs(z.value))&&(Z+=z.value,re+=q,ae+=q*z.x,Se+=q*z.y);C.x=ae/re,C.y=Se/re}else{(z=C).x=z.data.x,z.y=z.data.y;do{Z+=o[z.data.index]}while(z=z.next)}C.value=Z}function g(C,Z,z,q){if(!C.value)return!0;var re=C.x-r.x,ae=C.y-r.y,Se=q-Z,Ce=re*re+ae*ae;if(Se*Se/l<Ce)return Ce<s&&(0===re&&(Ce+=(re=hg())*re),0===ae&&(Ce+=(ae=hg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)),r.vx+=re*C.value*e/Ce,r.vy+=ae*C.value*e/Ce),!0;if(!(C.length||Ce>=s)){(C.data!==r||C.next)&&(0===re&&(Ce+=(re=hg())*re),0===ae&&(Ce+=(ae=hg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)));do{C.data!==r&&(Se=o[C.data.index]*e/Ce,r.vx+=re*Se,r.vy+=ae*Se)}while(C=C.next)}}return u.initialize=function(C){n=C,d()},u.strength=function(C){return arguments.length?(i="function"==typeof C?C:bs(+C),d(),u):i},u.distanceMin=function(C){return arguments.length?(a=C*C,u):Math.sqrt(a)},u.distanceMax=function(C){return arguments.length?(s=C*C,u):Math.sqrt(s)},u.theta=function(C){return arguments.length?(l=C*C,u):Math.sqrt(l)},u}function Rme(n,r,e){var i,a,s,o=bs(.1);function l(d){for(var h=0,g=i.length;h<g;++h){var C=i[h],Z=C.x-r||1e-6,z=C.y-e||1e-6,q=Math.sqrt(Z*Z+z*z),re=(s[h]-q)*a[h]*d/q;C.vx+=Z*re,C.vy+=z*re}}function u(){if(i){var d,h=i.length;for(a=new Array(h),s=new Array(h),d=0;d<h;++d)s[d]=+n(i[d],d,i),a[d]=isNaN(s[d])?0:+o(i[d],d,i)}}return"function"!=typeof n&&(n=bs(+n)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(d){i=d,u()},l.strength=function(d){return arguments.length?(o="function"==typeof d?d:bs(+d),u(),l):o},l.radius=function(d){return arguments.length?(n="function"==typeof d?d:bs(+d),u(),l):n},l.x=function(d){return arguments.length?(r=+d,l):r},l.y=function(d){return arguments.length?(e=+d,l):e},l}function Lme(n){var e,i,o,r=bs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vx+=(o[u]-h.x)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=bs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:bs(+l),s(),a):r},a.x=function(l){return arguments.length?(n="function"==typeof l?l:bs(+l),s(),a):n},a}function Zme(n){var e,i,o,r=bs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vy+=(o[u]-h.y)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=bs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:bs(+l),s(),a):r},a.y=function(l){return arguments.length?(n="function"==typeof l?l:bs(+l),s(),a):n},a}function sZ(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 dw(n){return(n=sZ(Math.abs(n)))?n[1]:NaN}function Qq(n,r){var e=sZ(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 Xq={"":function Fme(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(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 Qq(100*r,e)},r:Qq,s:function Ume(n,r){var e=sZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Jq=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")+sZ(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)}},Hme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function lZ(n){return new U9(n)}function U9(n){if(!(r=Hme.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"):Xq[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 $q(n){return n}lZ.prototype=U9.prototype,U9.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 uZ,nJ,rJ,eJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tJ(n){var r=n.grouping&&n.thousands?function Nme(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):$q,e=n.currency,i=n.decimal,o=n.numerals?function Bme(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):$q,a=n.percent||"%";function s(u){var d=(u=lZ(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:"",xe=Xq[ae],Ve=!ae||/[defgprs%]/.test(ae);function at(De){var bt,Xe,Pe,ot=Se,ht=Ce;if("c"===ae)ht=xe(De)+ht,De="";else{var pt=(De=+De)<0;if(De=xe(Math.abs(De),re),pt&&0==+De&&(pt=!1),ot=(pt?"("===g?g:"-":"-"===g||"("===g?"":g)+ot,ht=("s"===ae?eJ[8+Jq/3]:"")+ht+(pt&&"("===g?")":""),Ve)for(bt=-1,Xe=De.length;++bt<Xe;)if(48>(Pe=De.charCodeAt(bt))||Pe>57){ht=(46===Pe?i+De.slice(bt+1):De.slice(bt))+ht,De=De.slice(0,bt);break}}q&&!Z&&(De=r(De,1/0));var Nt=ot.length+De.length+ht.length,Gt=Nt<z?new Array(z-Nt+1).join(d):"";switch(q&&Z&&(De=r(Gt+De,Gt.length?z-ht.length:1/0),Gt=""),h){case"<":De=ot+De+ht+Gt;break;case"=":De=ot+Gt+De+ht;break;case"^":De=Gt.slice(0,Nt=Gt.length>>1)+ot+De+ht+Gt.slice(Nt);break;default:De=Gt+ot+De+ht}return o(De)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),at.toString=function(){return u+""},at}return{format:s,formatPrefix:function l(u,d){var h=s(((u=lZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(dw(d)/3))),C=Math.pow(10,-g),Z=eJ[8+g/3];return function(z){return h(C*z)+Z}}}}function iJ(n){return uZ=tJ(n),nJ=uZ.format,rJ=uZ.formatPrefix,uZ}function jme(n){return Math.max(0,-dw(Math.abs(n)))}function Gme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(dw(r)/3)))-dw(Math.abs(n)))}function zme(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,dw(r)-dw(n))+1}function mg(){return new cZ}function cZ(){this.reset()}iJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),cZ.prototype={constructor:cZ,reset:function(){this.s=this.t=0},add:function(r){oJ(dZ,r,this.t),oJ(this,dZ.s,this.s),this.s?this.t+=dZ.t:this.s=dZ.t},valueOf:function(){return this.s}};var dZ=new cZ;function oJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Er=1e-6,Pi=Math.PI,Ea=Pi/2,pZ=Pi/4,Ru=2*Pi,zo=180/Pi,Lr=Pi/180,no=Math.abs,pw=Math.atan,ou=Math.atan2,Dr=Math.cos,fZ=Math.ceil,sJ=Math.exp,hZ=(Math.floor,Math.log),H9=Math.pow,mr=Math.sin,_E=Math.sign||function(n){return n>0?1:n<0?-1:0},Cs=Math.sqrt,j9=Math.tan;function lJ(n){return n>1?0:n<-1?Pi:Math.acos(n)}function _c(n){return n>1?Ea:n<-1?-Ea:Math.asin(n)}function uJ(n){return(n=mr(n/2))*n}function ma(){}function mZ(n,r){n&&dJ.hasOwnProperty(n.type)&&dJ[n.type](n,r)}var cJ={Feature:function(r,e){mZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)mZ(i[o].geometry,e)}},dJ={Sphere:function(r,e){e.sphere()},Point:function(r,e){r=r.coordinates,e.point(r[0],r[1],r[2])},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)r=i[o],e.point(r[0],r[1],r[2])},LineString:function(r,e){G9(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)G9(i[o],e,0)},Polygon:function(r,e){pJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)pJ(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)mZ(i[o],e)}};function G9(n,r,e){var a,i=-1,o=n.length-e;for(r.lineStart();++i<o;)a=n[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function pJ(n,r){var e=-1,i=n.length;for(r.polygonStart();++e<i;)G9(n[e],r,1);r.polygonEnd()}function Qd(n,r){n&&cJ.hasOwnProperty(n.type)?cJ[n.type](n,r):mZ(n,r)}var fJ,hJ,z9,W9,V9,_Z=mg(),gZ=mg(),pf={point:ma,lineStart:ma,lineEnd:ma,polygonStart:function(){_Z.reset(),pf.lineStart=Wme,pf.lineEnd=Vme},polygonEnd:function(){var r=+_Z;gZ.add(r<0?Ru+r:r),this.lineStart=this.lineEnd=this.point=ma},sphere:function(){gZ.add(Ru)}};function Wme(){pf.point=Yme}function Vme(){mJ(fJ,hJ)}function Yme(n,r){pf.point=mJ,fJ=n,hJ=r,z9=n*=Lr,W9=Dr(r=(r*=Lr)/2+pZ),V9=mr(r)}function mJ(n,r){var e=(n*=Lr)-z9,i=e>=0?1:-1,o=i*e,a=Dr(r=(r*=Lr)/2+pZ),s=mr(r),l=V9*s,u=W9*a+l*Dr(o),d=l*i*mr(o);_Z.add(ou(d,u)),z9=n,W9=a,V9=s}function Kme(n){return gZ.reset(),Qd(n,pf),2*gZ}function vZ(n){return[ou(n[1],n[0]),_c(n[2])]}function a0(n){var r=n[0],e=n[1],i=Dr(e);return[i*Dr(r),i*mr(r),mr(e)]}function yZ(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function fw(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 Y9(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function bZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function CZ(n){var r=Cs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Da,gc,za,qc,s0,_J,gJ,hw,_g,em,gE=mg(),tm={point:K9,lineStart:yJ,lineEnd:bJ,polygonStart:function(){tm.point=CJ,tm.lineStart=qme,tm.lineEnd=Jme,gE.reset(),pf.polygonStart()},polygonEnd:function(){pf.polygonEnd(),tm.point=K9,tm.lineStart=yJ,tm.lineEnd=bJ,_Z<0?(Da=-(za=180),gc=-(qc=90)):gE>Er?qc=90:gE<-Er&&(gc=-90),em[0]=Da,em[1]=za}};function K9(n,r){_g.push(em=[Da=n,za=n]),r<gc&&(gc=r),r>qc&&(qc=r)}function vJ(n,r){var e=a0([n*Lr,r*Lr]);if(hw){var i=fw(hw,e),a=fw([i[1],-i[0],0],i);CZ(a),a=vZ(a);var d,s=n-s0,l=s>0?1:-1,u=a[0]*zo*l,h=no(s)>180;h^(l*s0<u&&u<l*n)?(d=a[1]*zo)>qc&&(qc=d):h^(l*s0<(u=(u+360)%360-180)&&u<l*n)?(d=-a[1]*zo)<gc&&(gc=d):(r<gc&&(gc=r),r>qc&&(qc=r)),h?n<s0?vc(Da,n)>vc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n):za>=Da?(n<Da&&(Da=n),n>za&&(za=n)):n>s0?vc(Da,n)>vc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n)}else _g.push(em=[Da=n,za=n]);r<gc&&(gc=r),r>qc&&(qc=r),hw=e,s0=n}function yJ(){tm.point=vJ}function bJ(){em[0]=Da,em[1]=za,tm.point=K9,hw=null}function CJ(n,r){if(hw){var e=n-s0;gE.add(no(e)>180?e+(e>0?360:-360):e)}else _J=n,gJ=r;pf.point(n,r),vJ(n,r)}function qme(){pf.lineStart()}function Jme(){CJ(_J,gJ),pf.lineEnd(),no(gE)>Er&&(Da=-(za=180)),em[0]=Da,em[1]=za,hw=null}function vc(n,r){return(r-=n)<0?r+360:r}function Qme(n,r){return n[0]-r[0]}function wJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function Xme(n){var r,e,i,o,a,s,l;if(qc=za=-(Da=gc=1/0),_g=[],Qd(n,tm),e=_g.length){for(_g.sort(Qme),r=1,a=[i=_g[0]];r<e;++r)wJ(i,(o=_g[r])[0])||wJ(i,o[1])?(vc(i[0],o[1])>vc(i[0],i[1])&&(i[1]=o[1]),vc(o[0],i[1])>vc(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=vc(i[1],o[0]))>s&&(s=l,Da=o[0],za=i[1])}return _g=em=null,Da===1/0||gc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Da,gc],[za,qc]]}var vE,wZ,kZ,TZ,MZ,SZ,xZ,EZ,q9,J9,Q9,kJ,TJ,au,su,lu,Xd={sphere:ma,point:X9,lineStart:MJ,lineEnd:SJ,polygonStart:function(){Xd.lineStart=t_e,Xd.lineEnd=n_e},polygonEnd:function(){Xd.lineStart=MJ,Xd.lineEnd=SJ}};function X9(n,r){n*=Lr;var e=Dr(r*=Lr);yE(e*Dr(n),e*mr(n),mr(r))}function yE(n,r,e){++vE,kZ+=(n-kZ)/vE,TZ+=(r-TZ)/vE,MZ+=(e-MZ)/vE}function MJ(){Xd.point=$me}function $me(n,r){n*=Lr;var e=Dr(r*=Lr);au=e*Dr(n),su=e*mr(n),lu=mr(r),Xd.point=e_e,yE(au,su,lu)}function e_e(n,r){n*=Lr;var e=Dr(r*=Lr),i=e*Dr(n),o=e*mr(n),a=mr(r),s=ou(Cs((s=su*a-lu*o)*s+(s=lu*i-au*a)*s+(s=au*o-su*i)*s),au*i+su*o+lu*a);wZ+=s,SZ+=s*(au+(au=i)),xZ+=s*(su+(su=o)),EZ+=s*(lu+(lu=a)),yE(au,su,lu)}function SJ(){Xd.point=X9}function t_e(){Xd.point=r_e}function n_e(){xJ(kJ,TJ),Xd.point=X9}function r_e(n,r){kJ=n,TJ=r,n*=Lr,r*=Lr,Xd.point=xJ;var e=Dr(r);au=e*Dr(n),su=e*mr(n),lu=mr(r),yE(au,su,lu)}function xJ(n,r){n*=Lr;var e=Dr(r*=Lr),i=e*Dr(n),o=e*mr(n),a=mr(r),s=su*a-lu*o,l=lu*i-au*a,u=au*o-su*i,d=Cs(s*s+l*l+u*u),h=_c(d),g=d&&-h/d;q9+=g*s,J9+=g*l,Q9+=g*u,wZ+=h,SZ+=h*(au+(au=i)),xZ+=h*(su+(su=o)),EZ+=h*(lu+(lu=a)),yE(au,su,lu)}function i_e(n){vE=wZ=kZ=TZ=MZ=SZ=xZ=EZ=q9=J9=Q9=0,Qd(n,Xd);var r=q9,e=J9,i=Q9,o=r*r+e*e+i*i;return o<1e-12&&(r=SZ,e=xZ,i=EZ,wZ<Er&&(r=kZ,e=TZ,i=MZ),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[ou(e,r)*zo,_c(i/Cs(o))*zo]}function mw(n){return function(){return n}}function $9(n,r){function e(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),e}function eH(n,r){return[n>Pi?n-Ru:n<-Pi?n+Ru:n,r]}function tH(n,r,e){return(n%=Ru)?r||e?$9(DJ(n),AJ(r,e)):DJ(n):r||e?AJ(r,e):eH}function EJ(n){return function(r,e){return[(r+=n)>Pi?r-Ru:r<-Pi?r+Ru:r,e]}}function DJ(n){var r=EJ(n);return r.invert=EJ(-n),r}function AJ(n,r){var e=Dr(n),i=mr(n),o=Dr(r),a=mr(r);function s(l,u){var d=Dr(u),h=Dr(l)*d,g=mr(l)*d,C=mr(u),Z=C*e+h*i;return[ou(g*o-Z*a,h*e-C*i),_c(Z*o+g*a)]}return s.invert=function(l,u){var d=Dr(u),h=Dr(l)*d,g=mr(l)*d,C=mr(u),Z=C*o-g*a;return[ou(g*o+C*a,h*e+Z*i),_c(Z*e-h*i)]},s}function OJ(n){function r(e){return(e=n(e[0]*Lr,e[1]*Lr))[0]*=zo,e[1]*=zo,e}return n=tH(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 IJ(n,r,e,i,o,a){if(e){var s=Dr(r),l=mr(r),u=i*e;null==o?(o=r+i*Ru,a=r-u/2):(o=PJ(s,o),a=PJ(s,a),(i>0?o<a:o>a)&&(o+=i*Ru));for(var d,h=o;i>0?h>a:h<a;h-=u)d=vZ([s,-l*Dr(h),-l*mr(h)]),n.point(d[0],d[1])}}function PJ(n,r){(r=a0(r))[0]-=n,CZ(r);var e=lJ(-r[1]);return((-r[2]<0?-e:e)+Ru-Er)%Ru}function o_e(){var i,o,n=mw([0,0]),r=mw(90),e=mw(6),a={point:function s(u,d){i.push(u=o(u,d)),u[0]*=zo,u[1]*=zo}};function l(){var u=n.apply(this,arguments),d=r.apply(this,arguments)*Lr,h=e.apply(this,arguments)*Lr;return i=[],o=tH(-u[0]*Lr,-u[1]*Lr,0).invert,IJ(a,d,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(n="function"==typeof u?u:mw([+u[0],+u[1]]),l):n},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:mw(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:mw(+u),l):e},l}function RJ(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:ma,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function DZ(n,r){return no(n[0]-r[0])<Er&&no(n[1]-r[1])<Er}function AZ(n,r,e,i){this.x=n,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function LJ(n,r,e,i,o){var l,u,a=[],s=[];if(n.forEach(function(z){if(!((q=z.length-1)<=0)){var q,Se,re=z[0],ae=z[q];if(DZ(re,ae)){for(o.lineStart(),l=0;l<q;++l)o.point((re=z[l])[0],re[1]);return void o.lineEnd()}a.push(Se=new AZ(re,z,null,!0)),s.push(Se.o=new AZ(re,null,Se,!1)),a.push(Se=new AZ(ae,z,null,!1)),s.push(Se.o=new AZ(ae,null,Se,!0))}}),a.length){for(s.sort(r),ZJ(a),ZJ(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,g,d=a[0];;){for(var C=d,Z=!0;C.v;)if((C=C.n)===d)return;h=C.z,o.lineStart();do{if(C.v=C.o.v=!0,C.e){if(Z)for(l=0,u=h.length;l<u;++l)o.point((g=h[l])[0],g[1]);else i(C.x,C.n.x,1,o);C=C.n}else{if(Z)for(h=C.p.z,l=h.length-1;l>=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 ZJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e<r;)i.n=o=n[e],o.p=i,i=o;i.n=o=n[0],o.p=i}}eH.invert=eH;var nH=mg();function NJ(n,r){var e=r[0],i=r[1],o=mr(i),a=[mr(e),-Dr(e),0],s=0,l=0;nH.reset(),1===o?i=Ea+Er:-1===o&&(i=-Ea-Er);for(var u=0,d=n.length;u<d;++u)if(g=(h=n[u]).length)for(var h,g,C=h[g-1],Z=C[0],z=C[1]/2+pZ,q=mr(z),re=Dr(z),ae=0;ae<g;++ae,Z=Ce,q=Ve,re=at,C=Se){var Se=h[ae],Ce=Se[0],xe=Se[1]/2+pZ,Ve=mr(xe),at=Dr(xe),De=Ce-Z,ot=De>=0?1:-1,ht=ot*De,bt=ht>Pi,Xe=q*Ve;if(nH.add(ou(Xe*ot*mr(ht),re*at+Xe*Dr(ht))),s+=bt?De+ot*Ru:De,bt^Z>=e^Ce>=e){var Pe=fw(a0(C),a0(Se));CZ(Pe);var pt=fw(a,Pe);CZ(pt);var Nt=(bt^De>=0?-1:1)*_c(pt[2]);(i>Nt||i===Nt&&(Pe[0]||Pe[1]))&&(l+=bt^De>=0?1:-1)}}return(s<-Er||s<Er&&nH<-Er)^1&l}function BJ(n,r,e,i){return function(o){var d,h,g,a=r(o),s=RJ(),l=r(s),u=!1,C={point:Z,lineStart:q,lineEnd:re,polygonStart:function(){C.point=ae,C.lineStart=Se,C.lineEnd=Ce,h=[],d=[]},polygonEnd:function(){C.point=Z,C.lineStart=q,C.lineEnd=re,h=j7(h);var Ve=NJ(d,i);h.length?(u||(o.polygonStart(),u=!0),LJ(h,s_e,Ve,e,o)):Ve&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function Z(xe,Ve){n(xe,Ve)&&o.point(xe,Ve)}function z(xe,Ve){a.point(xe,Ve)}function q(){C.point=z,a.lineStart()}function re(){C.point=Z,a.lineEnd()}function ae(xe,Ve){g.push([xe,Ve]),l.point(xe,Ve)}function Se(){l.lineStart(),g=[]}function Ce(){ae(g[0][0],g[0][1]),l.lineEnd();var at,ot,ht,bt,xe=l.clean(),Ve=s.result(),De=Ve.length;if(g.pop(),d.push(g),g=null,De){if(1&xe){if((ot=(ht=Ve[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),at=0;at<ot;++at)o.point((bt=ht[at])[0],bt[1]);o.lineEnd()}return}De>1&&2&xe&&Ve.push(Ve.pop().concat(Ve.shift())),h.push(Ve.filter(a_e))}}return C}}function a_e(n){return n.length>1}function s_e(n,r){return((n=n.x)[0]<0?n[1]-Ea-Er:Ea-n[1])-((r=r.x)[0]<0?r[1]-Ea-Er:Ea-r[1])}var rH=BJ(function(){return!0},function l_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?Pi:-Pi,d=no(s-r);no(d-Pi)<Er?(n.point(r,e=(e+l)/2>0?Ea:-Ea),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Pi&&(no(r-i)<Er&&(r-=i*Er),no(s-u)<Er&&(s-=u*Er),e=function u_e(n,r,e,i){var o,a,s=mr(n-e);return no(s)>Er?pw((mr(r)*(a=Dr(i))*mr(e)-mr(i)*(o=Dr(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 c_e(n,r,e,i){var o;if(null==n)o=e*Ea,i.point(-Pi,o),i.point(0,o),i.point(Pi,o),i.point(Pi,0),i.point(Pi,-o),i.point(0,-o),i.point(-Pi,-o),i.point(-Pi,0),i.point(-Pi,o);else if(no(n[0]-r[0])>Er){var a=n[0]<r[0]?Pi:-Pi;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Pi,-Ea]);function FJ(n){var r=Dr(n),e=6*Lr,i=r>0,o=no(r)>Er;function s(h,g){return Dr(h)*Dr(g)>r}function u(h,g,C){var q=[1,0,0],re=fw(a0(h),a0(g)),ae=yZ(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!C&&h;var xe=r*ae/Ce,Ve=-r*Se/Ce,at=fw(q,re),De=bZ(q,xe);Y9(De,bZ(re,Ve));var ht=at,bt=yZ(De,ht),Xe=yZ(ht,ht),Pe=bt*bt-Xe*(yZ(De,De)-1);if(!(Pe<0)){var pt=Cs(Pe),Nt=bZ(ht,(-bt-pt)/Xe);if(Y9(Nt,De),Nt=vZ(Nt),!C)return Nt;var zn,Gt=h[0],It=g[0],Tn=h[1],jn=g[1];It<Gt&&(zn=Gt,Gt=It,It=zn);var or=It-Gt,Sr=no(or-Pi)<Er;if(!Sr&&jn<Tn&&(zn=Tn,Tn=jn,jn=zn),Sr||or<Er?Sr?Tn+jn>0^Nt[1]<(no(Nt[0]-Gt)<Er?Tn:jn):Tn<=Nt[1]&&Nt[1]<=jn:or>Pi^(Gt<=Nt[0]&&Nt[0]<=It)){var zr=bZ(ht,(-bt+pt)/Xe);return Y9(zr,De),[Nt,vZ(zr)]}}}function d(h,g){var C=i?n:Pi-n,Z=0;return h<-C?Z|=1:h>C&&(Z|=2),g<-C?Z|=4:g>C&&(Z|=8),Z}return BJ(s,function l(h){var g,C,Z,z,q;return{lineStart:function(){z=Z=!1,q=1},point:function(ae,Se){var xe,Ce=[ae,Se],Ve=s(ae,Se),at=i?Ve?0:d(ae,Se):Ve?d(ae+(ae<0?Pi:-Pi),Se):0;if(!g&&(z=Z=Ve)&&h.lineStart(),Ve!==Z&&((!(xe=u(g,Ce))||DZ(g,xe)||DZ(Ce,xe))&&(Ce[0]+=Er,Ce[1]+=Er,Ve=s(Ce[0],Ce[1]))),Ve!==Z)q=0,Ve?(h.lineStart(),xe=u(Ce,g),h.point(xe[0],xe[1])):(xe=u(g,Ce),h.point(xe[0],xe[1]),h.lineEnd()),g=xe;else if(o&&g&&i^Ve){var De;!(at&C)&&(De=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(De[0][0],De[0][1]),h.point(De[1][0],De[1][1]),h.lineEnd()):(h.point(De[1][0],De[1][1]),h.lineEnd(),h.lineStart(),h.point(De[0][0],De[0][1])))}Ve&&(!g||!DZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,Z=Ve,C=at},lineEnd:function(){Z&&h.lineEnd(),g=null},clean:function(){return q|(z&&Z)<<1}}},function a(h,g,C,Z){IJ(Z,n,e,C,h,g)},i?[0,-n]:[-Pi,n-Pi])}var bE=1e9,OZ=-bE;function IZ(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 no(d[0]-n)<Er?h>0?0:3:no(d[0]-e)<Er?h>0?2:1:no(d[1]-r)<Er?h>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,xe,Ve,at,h=d,g=RJ(),De={point:ot,lineStart:function Pe(){De.point=Nt,Z&&Z.push(z=[]),Ve=!0,xe=!1,Se=Ce=NaN},lineEnd:function pt(){C&&(Nt(q,re),ae&&xe&&g.rejoin(),C.push(g.result())),De.point=ot,xe&&h.lineEnd()},polygonStart:function bt(){h=g,C=[],Z=[],at=!0},polygonEnd:function Xe(){var Gt=function ht(){for(var Gt=0,It=0,Tn=Z.length;It<Tn;++It)for(var _r,zr,jn=Z[It],zn=1,or=jn.length,Sr=jn[0],Ur=Sr[0],Kr=Sr[1];zn<or;++zn)_r=Ur,zr=Kr,Sr=jn[zn],Ur=Sr[0],Kr=Sr[1],zr<=i?Kr>i&&(Ur-_r)*(i-zr)>(Kr-zr)*(n-_r)&&++Gt:Kr<=i&&(Ur-_r)*(i-zr)<(Kr-zr)*(n-_r)&&--Gt;return Gt}(),It=at&&Gt,Tn=(C=j7(C)).length;(It||Tn)&&(d.polygonStart(),It&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&LJ(C,l,Gt,a,d),d.polygonEnd()),h=d,C=Z=z=null}};function ot(Gt,It){o(Gt,It)&&h.point(Gt,It)}function Nt(Gt,It){var Tn=o(Gt,It);if(Z&&z.push([Gt,It]),Ve)q=Gt,re=It,ae=Tn,Ve=!1,Tn&&(h.lineStart(),h.point(Gt,It));else if(Tn&&xe)h.point(Gt,It);else{var jn=[Se=Math.max(OZ,Math.min(bE,Se)),Ce=Math.max(OZ,Math.min(bE,Ce))],zn=[Gt=Math.max(OZ,Math.min(bE,Gt)),It=Math.max(OZ,Math.min(bE,It))];!function d_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(z<h)return;z<g&&(g=z)}else if(C>0){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(z<h)return;z<g&&(g=z)}if(z=i-l,Z||!(z>0)){if(z/=Z,Z<0){if(z<h)return;z<g&&(g=z)}else if(Z>0){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(z<h)return;z<g&&(g=z)}return h>0&&(n[0]=s+h*C,n[1]=l+h*Z),g<1&&(r[0]=s+g*C,r[1]=l+g*Z),!0}}}}}(jn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(Gt,It),at=!1):(xe||(h.lineStart(),h.point(jn[0],jn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),at=!1)}Se=Gt,Ce=It,xe=Tn}return De}}function p_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=IZ(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 oH,PZ,RZ,iH=mg(),_w={sphere:ma,point:ma,lineStart:function f_e(){_w.point=m_e,_w.lineEnd=h_e},lineEnd:ma,polygonStart:ma,polygonEnd:ma};function h_e(){_w.point=_w.lineEnd=ma}function m_e(n,r){oH=n*=Lr,PZ=mr(r*=Lr),RZ=Dr(r),_w.point=__e}function __e(n,r){n*=Lr;var e=mr(r*=Lr),i=Dr(r),o=no(n-oH),a=Dr(o),l=i*mr(o),u=RZ*e-PZ*i*a,d=PZ*e+RZ*i*a;iH.add(ou(Cs(l*l+u*u),d)),oH=n,PZ=e,RZ=i}function UJ(n){return iH.reset(),Qd(n,_w),+iH}var aH=[null,null],g_e={type:"LineString",coordinates:aH};function CE(n,r){return aH[0]=n,aH[1]=r,UJ(g_e)}var HJ={Feature:function(r,e){return LZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(LZ(i[o].geometry,e))return!0;return!1}},jJ={Sphere:function(){return!0},Point:function(r,e){return GJ(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(GJ(i[o],e))return!0;return!1},LineString:function(r,e){return zJ(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(zJ(i[o],e))return!0;return!1},Polygon:function(r,e){return WJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(WJ(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(LZ(i[o],e))return!0;return!1}};function LZ(n,r){return!(!n||!jJ.hasOwnProperty(n.type))&&jJ[n.type](n,r)}function GJ(n,r){return 0===CE(n,r)}function zJ(n,r){var e=CE(n[0],n[1]);return CE(n[0],r)+CE(r,n[1])<=e+Er}function WJ(n,r){return!!NJ(n.map(v_e),VJ(r))}function v_e(n){return(n=n.map(VJ)).pop(),n}function VJ(n){return[n[0]*Lr,n[1]*Lr]}function y_e(n,r){return(n&&HJ.hasOwnProperty(n.type)?HJ[n.type]:LZ)(n,r)}function YJ(n,r,e){var i=hc(n,r-Er,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function KJ(n,r,e){var i=hc(n,r-Er,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function qJ(){var n,r,e,i,o,a,s,l,C,Z,z,q,u=10,d=u,h=90,g=360,re=2.5;function ae(){return{type:"MultiLineString",coordinates:Se()}}function Se(){return hc(fZ(i/h)*h,e,h).map(z).concat(hc(fZ(l/g)*g,s,g).map(q)).concat(hc(fZ(r/u)*u,n,u).filter(function(Ce){return no(Ce%h)>Er}).map(C)).concat(hc(fZ(a/d)*d,o,d).filter(function(Ce){return no(Ce%g)>Er}).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=YJ(a,o,90),Z=KJ(r,n,re),z=YJ(l,s,90),q=KJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Er],[180,90-Er]]).extentMinor([[-180,-80-Er],[180,80+Er]])}function b_e(){return qJ()()}function C_e(n,r){var e=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Dr(i),l=mr(i),u=Dr(a),d=mr(a),h=s*Dr(e),g=s*mr(e),C=u*Dr(o),Z=u*mr(o),z=2*_c(Cs(uJ(a-i)+s*u*uJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,xe=Ce*h+Se*C,Ve=Ce*g+Se*Z,at=Ce*l+Se*d;return[ou(Ve,xe)*zo,ou(at,Cs(xe*xe+Ve*Ve))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function l0(n){return n}var JJ,QJ,uH,cH,sH=mg(),lH=mg(),gg={point:ma,lineStart:ma,lineEnd:ma,polygonStart:function(){gg.lineStart=w_e,gg.lineEnd=T_e},polygonEnd:function(){gg.lineStart=gg.lineEnd=gg.point=ma,sH.add(no(lH)),lH.reset()},result:function(){var r=sH/2;return sH.reset(),r}};function w_e(){gg.point=k_e}function k_e(n,r){gg.point=XJ,JJ=uH=n,QJ=cH=r}function XJ(n,r){lH.add(cH*n-uH*r),uH=n,cH=r}function T_e(){XJ(JJ,QJ)}var $J=gg,gw=1/0,ZZ=gw,wE=-gw,NZ=wE,M_e={point:function S_e(n,r){n<gw&&(gw=n),n>wE&&(wE=n),r<ZZ&&(ZZ=r),r>NZ&&(NZ=r)},lineStart:ma,lineEnd:ma,polygonStart:ma,polygonEnd:ma,result:function(){var r=[[gw,ZZ],[wE,NZ]];return wE=NZ=-(ZZ=gw=1/0),r}};var eQ,tQ,ff,hf,BZ=M_e,dH=0,pH=0,kE=0,FZ=0,UZ=0,vw=0,fH=0,hH=0,TE=0,$d={point:u0,lineStart:nQ,lineEnd:rQ,polygonStart:function(){$d.lineStart=D_e,$d.lineEnd=A_e},polygonEnd:function(){$d.point=u0,$d.lineStart=nQ,$d.lineEnd=rQ},result:function(){var r=TE?[fH/TE,hH/TE]:vw?[FZ/vw,UZ/vw]:kE?[dH/kE,pH/kE]:[NaN,NaN];return dH=pH=kE=FZ=UZ=vw=fH=hH=TE=0,r}};function u0(n,r){dH+=n,pH+=r,++kE}function nQ(){$d.point=x_e}function x_e(n,r){$d.point=E_e,u0(ff=n,hf=r)}function E_e(n,r){var e=n-ff,i=r-hf,o=Cs(e*e+i*i);FZ+=o*(ff+n)/2,UZ+=o*(hf+r)/2,vw+=o,u0(ff=n,hf=r)}function rQ(){$d.point=u0}function D_e(){$d.point=O_e}function A_e(){iQ(eQ,tQ)}function O_e(n,r){$d.point=iQ,u0(eQ=ff=n,tQ=hf=r)}function iQ(n,r){var e=n-ff,i=r-hf,o=Cs(e*e+i*i);FZ+=o*(ff+n)/2,UZ+=o*(hf+r)/2,vw+=o,fH+=(o=hf*n-ff*r)*(ff+n),hH+=o*(hf+r),TE+=3*o,u0(ff=n,hf=r)}var oQ=$d;function aQ(n){this._context=n}aQ.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,Ru)}},result:ma};var _H,sQ,lQ,ME,SE,mH=mg(),HZ={point:ma,lineStart:function(){HZ.point=I_e},lineEnd:function(){_H&&uQ(sQ,lQ),HZ.point=ma},polygonStart:function(){_H=!0},polygonEnd:function(){_H=null},result:function(){var r=+mH;return mH.reset(),r}};function I_e(n,r){HZ.point=uQ,sQ=ME=n,lQ=SE=r}function uQ(n,r){ME-=n,SE-=r,mH.add(Cs(ME*ME+SE*SE)),ME=n,SE=r}var cQ=HZ;function dQ(){this._string=[]}function pQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function P_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Qd(s,i(o))),o.result()}return a.area=function(s){return Qd(s,i($J)),$J.result()},a.measure=function(s){return Qd(s,i(cQ)),cQ.result()},a.bounds=function(s){return Qd(s,i(BZ)),BZ.result()},a.centroid=function(s){return Qd(s,i(oQ)),oQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,l0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new dQ):new aQ(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 R_e(n){return{stream:xE(n)}}function xE(n){return function(r){var e=new gH;for(var i in n)e[i]=n[i];return e.stream=r,e}}function gH(){}function vH(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Qd(e,n.stream(BZ)),r(BZ.result()),null!=i&&n.clipExtent(i),n}function jZ(n,r,e){return vH(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 yH(n,r,e){return jZ(n,[[0,0],r],e)}function bH(n,r,e){return vH(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 CH(n,r,e){return vH(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)}dQ.prototype={_radius:4.5,_circle:pQ(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=pQ(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}},gH.prototype={constructor:gH,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 L_e=Dr(30*Lr);function hQ(n,r){return+r?function N_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 xe=s+C,Ve=l+Z,at=u+z,De=Cs(xe*xe+Ve*Ve+at*at),ot=_c(at/=De),ht=no(no(at)-1)<Er||no(a-g)<Er?(a+g)/2:ou(Ve,xe),bt=n(ht,ot),Xe=bt[0],Pe=bt[1],pt=Xe-i,Nt=Pe-o,Gt=Se*pt-ae*Nt;(Gt*Gt/Ce>r||no((ae*pt+Se*Nt)/Ce-.5)>.3||s*C+l*Z+u*z<L_e)&&(e(i,o,a,s,l,u,Xe,Pe,ht,xe/=De,Ve/=De,at,q,re),re.point(Xe,Pe),e(Xe,Pe,ht,xe,Ve,at,d,h,g,C,Z,z,q,re))}}return function(i){var o,a,s,l,u,d,h,g,C,Z,z,q,re={point:ae,lineStart:Se,lineEnd:xe,polygonStart:function(){i.polygonStart(),re.lineStart=Ve},polygonEnd:function(){i.polygonEnd(),re.lineStart=Se}};function ae(ot,ht){ot=n(ot,ht),i.point(ot[0],ot[1])}function Se(){g=NaN,re.point=Ce,i.lineStart()}function Ce(ot,ht){var bt=a0([ot,ht]),Xe=n(ot,ht);e(g,C,h,Z,z,q,g=Xe[0],C=Xe[1],h=ot,Z=bt[0],z=bt[1],q=bt[2],16,i),i.point(g,C)}function xe(){re.point=ae,i.lineEnd()}function Ve(){Se(),re.point=at,re.lineEnd=De}function at(ot,ht){Ce(o=ot,ht),a=g,s=C,l=Z,u=z,d=q,re.point=Ce}function De(){e(g,C,h,Z,z,q,a,s,o,l,u,d,16,i),re.lineEnd=xe,xe()}return re}}(n,r):function Z_e(n){return xE({point:function(e,i){e=n(e,i),this.stream.point(e[0],e[1])}})}(n)}var B_e=xE({point:function(r,e){this.stream.point(r*Lr,e*Lr)}});function U_e(n,r,e){function i(o,a){return[r+n*o,e-n*a]}return i.invert=function(o,a){return[(o-r)/n,(e-a)/n]},i}function mQ(n,r,e,i){var o=Dr(i),a=mr(i),s=o*n,l=a*n,u=o/n,d=a/n,h=(a*e-o*r)/n,g=(a*r+o*e)/n;function C(Z,z){return[s*Z-l*z+r,e-l*Z-s*z]}return C.invert=function(Z,z){return[u*Z-d*z+h,g-d*Z-u*z]},C}function nm(n){return wH(function(){return n})()}function wH(n){var r,h,q,re,ae,xe,Ve,at,De,ot,e=150,i=480,o=250,a=0,s=0,l=0,u=0,d=0,g=0,C=null,Z=rH,z=null,Se=l0,Ce=.5;function ht(pt){return at(pt[0]*Lr,pt[1]*Lr)}function bt(pt){return(pt=at.invert(pt[0],pt[1]))&&[pt[0]*zo,pt[1]*zo]}function Xe(){var pt=mQ(e,0,0,g).apply(null,r(a,s)),Nt=(g?mQ:U_e)(e,i-pt[0],o-pt[1],g);return h=tH(l,u,d),Ve=$9(r,Nt),at=$9(h,Ve),xe=hQ(Ve,Ce),Pe()}function Pe(){return De=ot=null,ht}return ht.stream=function(pt){return De&&ot===pt?De:De=B_e(function F_e(n){return xE({point:function(e,i){var o=n(e,i);return this.stream.point(o[0],o[1])}})}(h)(Z(xe(Se(ot=pt)))))},ht.preclip=function(pt){return arguments.length?(Z=pt,C=void 0,Pe()):Z},ht.postclip=function(pt){return arguments.length?(Se=pt,z=q=re=ae=null,Pe()):Se},ht.clipAngle=function(pt){return arguments.length?(Z=+pt?FJ(C=pt*Lr):(C=null,rH),Pe()):C*zo},ht.clipExtent=function(pt){return arguments.length?(Se=null==pt?(z=q=re=ae=null,l0):IZ(z=+pt[0][0],q=+pt[0][1],re=+pt[1][0],ae=+pt[1][1]),Pe()):null==z?null:[[z,q],[re,ae]]},ht.scale=function(pt){return arguments.length?(e=+pt,Xe()):e},ht.translate=function(pt){return arguments.length?(i=+pt[0],o=+pt[1],Xe()):[i,o]},ht.center=function(pt){return arguments.length?(a=pt[0]%360*Lr,s=pt[1]%360*Lr,Xe()):[a*zo,s*zo]},ht.rotate=function(pt){return arguments.length?(l=pt[0]%360*Lr,u=pt[1]%360*Lr,d=pt.length>2?pt[2]%360*Lr:0,Xe()):[l*zo,u*zo,d*zo]},ht.angle=function(pt){return arguments.length?(g=pt%360*Lr,Xe()):g*zo},ht.precision=function(pt){return arguments.length?(xe=hQ(Ve,Ce=pt*pt),Pe()):Cs(Ce)},ht.fitExtent=function(pt,Nt){return jZ(ht,pt,Nt)},ht.fitSize=function(pt,Nt){return yH(ht,pt,Nt)},ht.fitWidth=function(pt,Nt){return bH(ht,pt,Nt)},ht.fitHeight=function(pt,Nt){return CH(ht,pt,Nt)},function(){return r=n.apply(this,arguments),ht.invert=r.invert&&bt,Xe()}}function kH(n){var r=0,e=Pi/3,i=wH(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 _Q(n,r){var e=mr(n),i=(e+mr(r))/2;if(no(i)<Er)return function H_e(n){var r=Dr(n);function e(i,o){return[i*r,mr(o)/r]}return e.invert=function(i,o){return[i/r,_c(o*r)]},e}(n);var o=1+e*(2*i-e),a=Cs(o)/i;function s(l,u){var d=Cs(o-2*i*mr(u))/i;return[d*mr(l*=i),a-d*Dr(l)]}return s.invert=function(l,u){var d=a-u;return[ou(l,no(d))/i*_E(d),_c((o-(l*l+d*d)*i*i)/(2*i))]},s}function GZ(){return kH(_Q).scale(155.424).center([0,33.6442])}function gQ(){return GZ().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function G_e(){var n,r,i,a,l,u,e=gQ(),o=GZ().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=GZ().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(Z,z){u=[Z,z]}};function h(C){var Z=C[0],z=C[1];return u=null,i.point(Z,z),u||(a.point(Z,z),u)||(l.point(Z,z),u)}function g(){return n=r=null,h}return h.invert=function(C){var Z=e.scale(),z=e.translate(),q=(C[0]-z[0])/Z,re=(C[1]-z[1])/Z;return(re>=.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 j_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([e.stream(r=C),o.stream(C),s.stream(C)])},h.precision=function(C){return arguments.length?(e.precision(C),o.precision(C),s.precision(C),g()):e.precision()},h.scale=function(C){return arguments.length?(e.scale(C),o.scale(.35*C),s.scale(C),h.translate(e.translate())):e.scale()},h.translate=function(C){if(!arguments.length)return e.translate();var Z=e.scale(),z=+C[0],q=+C[1];return i=e.translate(C).clipExtent([[z-.455*Z,q-.238*Z],[z+.455*Z,q+.238*Z]]).stream(d),a=o.translate([z-.307*Z,q+.201*Z]).clipExtent([[z-.425*Z+Er,q+.12*Z+Er],[z-.214*Z-Er,q+.234*Z-Er]]).stream(d),l=s.translate([z-.205*Z,q+.212*Z]).clipExtent([[z-.214*Z+Er,q+.166*Z+Er],[z-.115*Z-Er,q+.234*Z-Er]]).stream(d),g()},h.fitExtent=function(C,Z){return jZ(h,C,Z)},h.fitSize=function(C,Z){return yH(h,C,Z)},h.fitWidth=function(C,Z){return bH(h,C,Z)},h.fitHeight=function(C,Z){return CH(h,C,Z)},h.scale(1070)}function vQ(n){return function(r,e){var i=Dr(r),o=Dr(e),a=n(i*o);return[a*o*mr(r),a*mr(e)]}}function EE(n){return function(r,e){var i=Cs(r*r+e*e),o=n(i),a=mr(o),s=Dr(o);return[ou(r*a,i*s),_c(i&&e*a/i)]}}var TH=vQ(function(n){return Cs(2/(1+n))});function z_e(){return nm(TH).scale(124.75).clipAngle(179.999)}TH.invert=EE(function(n){return 2*_c(n/2)});var MH=vQ(function(n){return(n=lJ(n))&&n/mr(n)});function W_e(){return nm(MH).scale(79.4188).clipAngle(179.999)}function DE(n,r){return[n,hZ(j9((Ea+r)/2))]}function V_e(){return yQ(DE).scale(961/Ru)}function yQ(n){var l,u,d,r=nm(n),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var g=Pi*i(),C=r(OJ(r.rotate()).invert([0,0]));return a(null==s?[[C[0]-g,C[1]-g],[C[0]+g,C[1]+g]]:n===DE?[[Math.max(C[0]-g,s),l],[Math.min(C[0]+g,u),d]]:[[s,Math.max(C[1]-g,l)],[u,Math.min(C[1]+g,d)]])}return r.scale=function(g){return arguments.length?(i(g),h()):i()},r.translate=function(g){return arguments.length?(o(g),h()):o()},r.center=function(g){return arguments.length?(e(g),h()):e()},r.clipExtent=function(g){return arguments.length?(null==g?s=l=u=d=null:(s=+g[0][0],l=+g[0][1],u=+g[1][0],d=+g[1][1]),h()):null==s?null:[[s,l],[u,d]]},h()}function zZ(n){return j9((Ea+n)/2)}function bQ(n,r){var e=Dr(n),i=n===r?mr(n):hZ(e/Dr(r))/hZ(zZ(r)/zZ(n)),o=e*H9(zZ(n),i)/i;if(!i)return DE;function a(s,l){o>0?l<-Ea+Er&&(l=-Ea+Er):l>Ea-Er&&(l=Ea-Er);var u=o/H9(zZ(l),i);return[u*mr(i*s),o-u*Dr(i*s)]}return a.invert=function(s,l){var u=o-l,d=_E(i)*Cs(s*s+u*u);return[ou(s,no(u))/i*_E(u),2*pw(H9(o/d,1/i))-Ea]},a}function Y_e(){return kH(bQ).scale(109.5).parallels([30,30])}function AE(n,r){return[n,r]}function K_e(){return nm(AE).scale(152.63)}function CQ(n,r){var e=Dr(n),i=n===r?mr(n):(e-Dr(r))/(r-n),o=e/i+n;if(no(i)<Er)return AE;function a(s,l){var u=o-l,d=i*s;return[u*mr(d),o-u*Dr(d)]}return a.invert=function(s,l){var u=o-l;return[ou(s,no(u))/i*_E(u),o-_E(i)*Cs(s*s+u*u)]},a}function q_e(){return kH(CQ).scale(131.154).center([0,13.9389])}function SH(n,r){var e=Dr(r),i=Dr(n)*e;return[e*mr(n)/i,mr(r)/i]}function J_e(){return nm(SH).scale(144.049).clipAngle(60)}function WZ(n,r,e,i){return 1===n&&1===r&&0===e&&0===i?l0:xE({point:function(a,s){this.stream.point(a*n+e,s*r+i)}})}function Q_e(){var l,u,d,g,C,Z,n=1,r=0,e=0,i=1,o=1,a=l0,s=null,h=l0;function z(){return g=C=null,Z}return Z={stream:function(re){return g&&C===re?g:g=a(h(C=re))},postclip:function(re){return arguments.length?(h=re,s=l=u=d=null,z()):h},clipExtent:function(re){return arguments.length?(h=null==re?(s=l=u=d=null,l0):IZ(s=+re[0][0],l=+re[0][1],u=+re[1][0],d=+re[1][1]),z()):null==s?null:[[s,l],[u,d]]},scale:function(re){return arguments.length?(a=WZ((n=+re)*i,n*o,r,e),z()):n},translate:function(re){return arguments.length?(a=WZ(n*i,n*o,r=+re[0],e=+re[1]),z()):[r,e]},reflectX:function(re){return arguments.length?(a=WZ(n*(i=re?-1:1),n*o,r,e),z()):i<0},reflectY:function(re){return arguments.length?(a=WZ(n*i,n*(o=re?-1:1),r,e),z()):o<0},fitExtent:function(re,ae){return jZ(Z,re,ae)},fitSize:function(re,ae){return yH(Z,re,ae)},fitWidth:function(re,ae){return bH(Z,re,ae)},fitHeight:function(re,ae){return CH(Z,re,ae)}}}function xH(n,r){var e=r*r,i=e*e;return[n*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function X_e(){return nm(xH).scale(175.295)}function EH(n,r){return[Dr(r)*mr(n),mr(r)]}function $_e(){return nm(EH).scale(249.5).clipAngle(90+Er)}function DH(n,r){var e=Dr(r),i=1+Dr(n)*e;return[e*mr(n)/i,mr(r)/i]}function ege(){return nm(DH).scale(250).clipAngle(142)}function AH(n,r){return[hZ(j9((Ea+r)/2)),-n]}function tge(){var n=yQ(AH),r=n.center,e=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function nge(n,r){return n.parent===r.parent?1:2}function ige(n,r){return n+r.x}function age(n,r){return Math.max(n,r.y)}function uge(){var n=nge,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 rge(n){return n.reduce(ige,0)/n.length}(Z),C.y=function oge(n){return 1+n.reduce(age,0)}(Z)):(C.x=s?l+=n(C,s):0,C.y=0,s=C)});var u=function sge(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function lge(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 cge(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 OH(n,r){var o,s,l,u,d,e=new yw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=Tge);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 yw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(wQ)}function Tge(n){return n.children}function Mge(n){n.data=n.data.data}function wQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function yw(n){this.data=n,this.depth=this.height=0,this.parent=null}MH.invert=EE(function(n){return n}),DE.invert=function(n,r){return[n,2*pw(sJ(r))-Ea]},AE.invert=AE,SH.invert=EE(pw),xH.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(no(o)>Er&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},EH.invert=EE(_c),DH.invert=EE(function(n){return 2*pw(n)}),AH.invert=function(n,r){return[-r,2*pw(sJ(n))-Ea]},yw.prototype=OH.prototype={constructor:yw,count:function dge(){return this.eachAfter(cge)},each:function pge(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<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function hge(n){for(var o,a,s,r=this,e=[r],i=[];r=e.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)e.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function fge(n){for(var i,o,r=this,e=[r];r=e.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function mge(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 _ge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function gge(n){for(var r=this,e=function vge(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 yge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function bge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function Cge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function wge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function kge(){return OH(this).eachBefore(Mge)}};var Sge=Array.prototype.slice;function kQ(n){for(var o,a,r=0,e=(n=function xge(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}(Sge.call(n))).length,i=[];r<e;)o=n[r],a&&TQ(a,o)?++r:(a=Dge(i=Ege(i,o)),r=0);return a}function Ege(n,r){var e,i;if(IH(r,n))return[r];for(e=0;e<n.length;++e)if(VZ(r,n[e])&&IH(OE(n[e],r),n))return[n[e],r];for(e=0;e<n.length-1;++e)for(i=e+1;i<n.length;++i)if(VZ(OE(n[e],n[i]),r)&&VZ(OE(n[e],r),n[i])&&VZ(OE(n[i],r),n[e])&&IH(MQ(n[e],n[i],r),n))return[n[e],n[i],r];throw new Error}function VZ(n,r){var e=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return e<0||e*e<i*i+o*o}function TQ(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 IH(n,r){for(var e=0;e<r.length;++e)if(!TQ(n,r[e]))return!1;return!0}function Dge(n){switch(n.length){case 1:return function Age(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return OE(n[0],n[1]);case 3:return MQ(n[0],n[1],n[2])}}function OE(n,r){var e=n.x,i=n.y,o=n.r,a=r.x,s=r.y,l=r.r,u=a-e,d=s-i,h=l-o,g=Math.sqrt(u*u+d*d);return{x:(e+a+u/g*h)/2,y:(i+s+d/g*h)/2,r:(g+o+l)/2}}function MQ(n,r,e){var i=n.x,o=n.y,a=n.r,s=r.x,l=r.y,u=r.r,d=e.x,h=e.y,g=e.r,C=i-s,Z=i-d,z=o-l,q=o-h,re=u-a,ae=g-a,Se=i*i+o*o-a*a,Ce=Se-s*s-l*l+u*u,xe=Se-d*d-h*h+g*g,Ve=Z*z-C*q,at=(z*xe-q*Ce)/(2*Ve)-i,De=(q*re-z*ae)/Ve,ot=(Z*Ce-C*xe)/(2*Ve)-o,ht=(C*ae-Z*re)/Ve,bt=De*De+ht*ht-1,Xe=2*(a+at*De+ot*ht),Pe=at*at+ot*ot-a*a,pt=-(bt?(Xe+Math.sqrt(Xe*Xe-4*bt*Pe))/(2*bt):Pe/Xe);return{x:i+at+De*pt,y:o+ot+ht*pt,r:pt}}function SQ(n,r,e){var o,a,l,u,i=n.x-r.x,s=n.y-r.y,d=i*i+s*s;d?(a=r.r+e.r,a*=a,u=n.r+e.r,a>(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 xQ(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 EQ(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 YZ(n){this._=n,this.next=null,this.previous=null}function DQ(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;SQ(e,r,i=n[2]),r=new YZ(r),e=new YZ(e),i=new YZ(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){SQ(r._,e._,i=n[l]),i=new YZ(i),u=e.next,d=r.previous,h=e._.r,g=r._.r;do{if(h<=g){if(xQ(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(xQ(d._,i._)){(r=d).next=e,e.previous=r,--l;continue e}g+=d._.r,d=d.previous}}while(u!==d.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=EQ(r);(i=i.next)!==e;)(s=EQ(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=kQ(r),l=0;l<o;++l)(r=n[l]).x-=i.x,r.y-=i.y;return i.r}function Oge(n){return DQ(n),n}function Ige(n){return null==n?null:KZ(n)}function KZ(n){if("function"!=typeof n)throw new Error;return n}function c0(){return 0}function bw(n){return function(){return n}}function Pge(n){return Math.sqrt(n.value)}function Rge(){var n=null,r=1,e=1,i=c0;function o(a){return a.x=r/2,a.y=e/2,n?a.eachBefore(AQ(n)).eachAfter(PH(i,.5)).eachBefore(OQ(1)):a.eachBefore(AQ(Pge)).eachAfter(PH(c0,1)).eachAfter(PH(i,a.r/Math.min(r,e))).eachBefore(OQ(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=Ige(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:bw(+a),o):i},o}function AQ(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function PH(n,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=n(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=DQ(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function OQ(n){return function(r){var e=r.parent;r.r*=n,e&&(r.x=e.x+n*r.x,r.y=e.y+n*r.y)}}function IQ(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function IE(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(i-r)/n.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*d}function Lge(){var n=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=n,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&IE(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var d=u.x0,h=u.y0,g=u.x1-e,C=u.y1-e;g<d&&(d=g=(d+g)/2),C<h&&(h=C=(h+C)/2),u.x0=d,u.y0=h,u.x1=g,u.y1=C}}(r,l)),i&&s.eachBefore(IQ),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Zge={depth:-1},RQ={};function Nge(n){return n.id}function Bge(n){return n.parentId}function Fge(){var n=Nge,r=Bge;function e(i){var o,a,l,u,d,g,C,s=i.length,h=new Array(s),Z={};for(a=0;a<s;++a)o=i[a],d=h[a]=new yw(o),null!=(g=n(o,a,i))&&(g+="")&&(Z[C="$"+(d.id=g)]=C in Z?RQ:d);for(a=0;a<s;++a)if(d=h[a],null!=(g=r(i[a],a,i))&&(g+="")){if(!(u=Z["$"+g]))throw new Error("missing: "+g);if(u===RQ)throw new Error("ambiguous: "+g);u.children?u.children.push(d):u.children=[d],d.parent=u}else{if(l)throw new Error("multiple roots");l=d}if(!l)throw new Error("no root");if(l.parent=Zge,l.eachBefore(function(z){z.depth=z.parent.depth+1,--s}).eachBefore(wQ),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=KZ(i),e):n},e.parentId=function(i){return arguments.length?(r=KZ(i),e):r},e}function Uge(n,r){return n.parent===r.parent?1:2}function RH(n){var r=n.children;return r?r[0]:n.t}function LH(n){var r=n.children;return r?r[r.length-1]:n.t}function Hge(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 Gge(n,r,e){return n.a.parent===r.parent?n.a:e}function qZ(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 Wge(){var n=Uge,r=1,e=1,i=null;function o(d){var h=function zge(n){for(var e,o,a,s,l,r=new qZ(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 qZ(a[s],s)),o.parent=e;return(r.parent=new qZ(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.x<g.x&&(g=Se),Se.x>C.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 jge(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 xe,C=d,Z=d,z=h,q=C.parent.children[0],re=C.m,ae=Z.m,Se=z.m,Ce=q.m;z=LH(z),C=RH(C),z&&C;)q=RH(q),(Z=LH(Z)).a=d,(xe=z.z+Se-C.z-re+n(z._,C._))>0&&(Hge(Gge(z,d,g),d,xe),re+=xe,ae+=xe),Se+=z.m,re+=C.m,Ce+=q.m,ae+=Z.m;z&&!LH(Z)&&(Z.t=z,Z.m+=Se-ae),C&&!RH(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 JZ(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*d}qZ.prototype=Object.create(yw.prototype);var LQ=(1+Math.sqrt(5))/2;function ZQ(n,r,e,i,o,a){for(var u,d,Z,z,re,ae,Se,Ce,xe,Ve,at,s=[],l=r.children,h=0,g=0,C=l.length,q=r.value;h<C;){Z=o-e,z=a-i;do{re=l[g++].value}while(!re&&g<C);for(ae=Se=re,at=re*re*(Ve=Math.max(z/Z,Z/z)/(q*n)),xe=Math.max(Se/at,at/ae);g<C;++g){if(re+=d=l[g].value,d<ae&&(ae=d),d>Se&&(Se=d),at=re*re*Ve,(Ce=Math.max(Se/at,at/ae))>xe){re-=d;break}xe=Ce}s.push(u={value:re,dice:Z<z,children:l.slice(h,g)}),u.dice?IE(u,e,i,o,q?i+=z*re/q:a):JZ(u,e,i,q?e+=Z*re/q:o,a),q-=re,h=g}return s}var NQ=function n(r){function e(i,o,a,s,l){ZQ(r,i,o,a,s,l)}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(LQ);function Vge(){var n=NQ,r=!1,e=1,i=1,o=[0],a=c0,s=c0,l=c0,u=c0,d=c0;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(g),o=[0],r&&C.eachBefore(IQ),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<z&&(z=re=(z+re)/2),ae<q&&(q=ae=(q+ae)/2),C.x0=z,C.y0=q,C.x1=re,C.y1=ae,C.children&&(Z=o[C.depth+1]=a(C)/2,z+=d(C)-Z,q+=s(C)-Z,(re-=l(C)-Z)<z&&(z=re=(z+re)/2),(ae-=u(C)-Z)<q&&(q=ae=(q+ae)/2),n(C,z,q,re,ae))}return h.round=function(C){return arguments.length?(r=!!C,h):r},h.size=function(C){return arguments.length?(e=+C[0],i=+C[1],h):[e,i]},h.tile=function(C){return arguments.length?(n=KZ(C),h):n},h.padding=function(C){return arguments.length?h.paddingInner(C).paddingOuter(C):h.paddingInner()},h.paddingInner=function(C){return arguments.length?(a="function"==typeof C?C:bw(+C),h):a},h.paddingOuter=function(C){return arguments.length?h.paddingTop(C).paddingRight(C).paddingBottom(C).paddingLeft(C):h.paddingTop()},h.paddingTop=function(C){return arguments.length?(s="function"==typeof C?C:bw(+C),h):s},h.paddingRight=function(C){return arguments.length?(l="function"==typeof C?C:bw(+C),h):l},h.paddingBottom=function(C){return arguments.length?(u="function"==typeof C?C:bw(+C),h):u},h.paddingLeft=function(C){return arguments.length?(d="function"==typeof C?C:bw(+C),h):d},h}function Yge(n,r,e,i,o){var s,u,a=n.children,l=a.length,d=new Array(l+1);for(d[0]=u=s=0;s<l;++s)d[s+1]=u+=a[s].value;!function h(g,C,Z,z,q,re,ae){if(g>=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],xe=Z/2+Ce,Ve=g+1,at=C-1;Ve<at;){var De=Ve+at>>>1;d[De]<xe?Ve=De+1:at=De}xe-d[Ve-1]<d[Ve]-xe&&g+1<Ve&&--Ve;var ot=d[Ve]-Ce,ht=Z-ot;if(re-z>ae-q){var bt=(z*ht+re*ot)/Z;h(g,Ve,ot,z,q,bt,ae),h(Ve,C,ht,bt,q,re,ae)}else{var Xe=(q*ht+ae*ot)/Z;h(g,Ve,ot,z,q,re,Xe),h(Ve,C,ht,z,Xe,re,ae)}}(0,l,n.value,r,e,i,o)}function Kge(n,r,e,i,o){(1&n.depth?JZ:IE)(n,r,e,i,o)}var qge=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;++C<z;){for(h=(d=u[C]).children,g=d.value=0,Z=h.length;g<Z;++g)d.value+=h[g].value;d.dice?IE(d,o,a,s,a+=(l-a)*d.value/q):JZ(d,o,a,o+=(s-o)*d.value/q,l),q-=d.value}else i._squarify=u=ZQ(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(LQ);function Cw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function PE(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function vg(){}var ww=1/.7,kw="\\s*([+-]?\\d+)\\s*",RE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jge=/^#([0-9a-f]{3,8})$/,Qge=new RegExp("^rgb\\("+[kw,kw,kw]+"\\)$"),Xge=new RegExp("^rgb\\("+[mf,mf,mf]+"\\)$"),$ge=new RegExp("^rgba\\("+[kw,kw,kw,RE]+"\\)$"),eve=new RegExp("^rgba\\("+[mf,mf,mf,RE]+"\\)$"),tve=new RegExp("^hsl\\("+[RE,mf,mf]+"\\)$"),nve=new RegExp("^hsla\\("+[RE,mf,mf,RE]+"\\)$"),BQ={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 FQ(){return this.rgb().formatHex()}function UQ(){return this.rgb().formatRgb()}function LE(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Jge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?HQ(r):3===e?new il(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?QZ(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?QZ(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=Qge.exec(n))?new il(r[1],r[2],r[3],1):(r=Xge.exec(n))?new il(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=$ge.exec(n))?QZ(r[1],r[2],r[3],r[4]):(r=eve.exec(n))?QZ(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=tve.exec(n))?zQ(r[1],r[2]/100,r[3]/100,1):(r=nve.exec(n))?zQ(r[1],r[2]/100,r[3]/100,r[4]):BQ.hasOwnProperty(n)?HQ(BQ[n]):"transparent"===n?new il(NaN,NaN,NaN,0):null}function HQ(n){return new il(n>>16&255,n>>8&255,255&n,1)}function QZ(n,r,e,i){return i<=0&&(n=r=e=NaN),new il(n,r,e,i)}function ZH(n){return n instanceof vg||(n=LE(n)),n?new il((n=n.rgb()).r,n.g,n.b,n.opacity):new il}function XZ(n,r,e,i){return 1===arguments.length?ZH(n):new il(n,r,e,null==i?1:i)}function il(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function jQ(){return"#"+NH(this.r)+NH(this.g)+NH(this.b)}function GQ(){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 NH(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function zQ(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new _f(n,r,e,i)}function WQ(n){if(n instanceof _f)return new _f(n.h,n.s,n.l,n.opacity);if(n instanceof vg||(n=LE(n)),!n)return new _f;if(n instanceof _f)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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new _f(s,l,u,n.opacity)}function BH(n,r,e,i){return 1===arguments.length?WQ(n):new _f(n,r,e,null==i?1:i)}function _f(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function FH(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 VQ(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 YQ(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=i<r-1?n[i+2]:2*a-o;return VQ((e-i/r)*r,s,o,a,l)}}function KQ(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return VQ((e-i/r)*r,o,a,s,l)}}function $Z(n){return function(){return n}}function qQ(n,r){return function(e){return n+e*r}}function UH(n,r){var e=r-n;return e?qQ(n,e>180||e<-180?e-360*Math.round(e/360):e):$Z(isNaN(n)?r:n)}function ove(n){return 1==(n=+n)?Ns:function(r,e){return e-r?function ive(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):$Z(isNaN(r)?e:r)}}function Ns(n,r){var e=r-n;return e?qQ(n,e):$Z(isNaN(n)?r:n)}Cw(vg,LE,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:FQ,formatHex:FQ,formatHsl:function rve(){return WQ(this).formatHsl()},formatRgb:UQ,toString:UQ}),Cw(il,XZ,PE(vg,{brighter:function(r){return r=null==r?ww:Math.pow(ww,r),new il(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new il(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:jQ,formatHex:jQ,formatRgb:GQ,toString:GQ})),Cw(_f,BH,PE(vg,{brighter:function(r){return r=null==r?ww:Math.pow(ww,r),new _f(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _f(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 il(FH(r>=240?r-240:r+120,a,o),FH(r,a,o),FH(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 HH=function n(r){var e=ove(r);function i(o,a){var s=e((o=XZ(o)).r,(a=XZ(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Ns(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 JQ(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<e;++s)l=XZ(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var ave=JQ(YQ),sve=JQ(KQ);function QQ(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=zH(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function XQ(n,r){var e=new Date;return r-=n=+n,function(i){return e.setTime(n+r*i),e}}function gf(n,r){return r-=n=+n,function(e){return n+r*e}}function $Q(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=zH(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var jH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GH=new RegExp(jH.source,"g");function eX(n,r){var i,o,a,e=jH.lastIndex=GH.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=jH.exec(n))&&(o=GH.exec(r));)(a=o.index)>e&&(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:gf(i,o)})),e=GH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function uve(n){return function(r){return n(r)+""}}(u[0].x):function lve(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function zH(n,r){var i,e=typeof r;return null==r||"boolean"===e?$Z(r):("number"===e?gf:"string"===e?(i=LE(r))?(r=i,HH):eX:r instanceof LE?HH:r instanceof Date?XQ:Array.isArray(r)?QQ:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?$Q:gf)(n,r)}function cve(n,r){return r-=n=+n,function(e){return Math.round(n+r*e)}}var ZE,VH,rX,eN,tX=180/Math.PI,WH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nX(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*tX,skewX:Math.atan(u)*tX,scaleX:s,scaleY:l}}function iX(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:gf(d,g)},{i:q-2,x:gf(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:gf(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:gf(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:gf(d,g)},{i:q-2,x:gf(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<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var fve=iX(function dve(n){return"none"===n?WH:(ZE||(ZE=document.createElement("DIV"),VH=document.documentElement,rX=document.defaultView),ZE.style.transform=n,n=rX.getComputedStyle(VH.appendChild(ZE),null).getPropertyValue("transform"),VH.removeChild(ZE),nX(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),hve=iX(function pve(n){return null!=n&&(eN||(eN=document.createElementNS("http://www.w3.org/2000/svg","g")),eN.setAttribute("transform",n),n=eN.transform.baseVal.consolidate())?nX((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):WH},", ",")",")"),NE=Math.SQRT2;function aX(n){return((n=Math.exp(n))+1/n)/2}function vve(n,r){var g,C,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)C=Math.log(l/o)/NE,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(NE*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/NE,g=function(Ce){var xe=Ce*C,Ve=aX(re),at=o/(2*Z)*(Ve*function gve(n){return((n=Math.exp(2*n))-1)/(n+1)}(NE*xe+re)-function _ve(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+at*u,i+at*d,o*Ve/aX(NE*xe+re)]}}return g.duration=1e3*C,g}function sX(n){return function(r,e){var i=n((r=BH(r)).h,(e=BH(e)).h),o=Ns(r.s,e.s),a=Ns(r.l,e.l),s=Ns(r.opacity,e.opacity);return function(l){return r.h=i(l),r.s=o(l),r.l=a(l),r.opacity=s(l),r+""}}}var yve=sX(UH),bve=sX(Ns),lX=Math.PI/180,uX=180/Math.PI,fX=4/29,Tw=6/29,hX=3*Tw*Tw;function mX(n){if(n instanceof ep)return new ep(n.l,n.a,n.b,n.opacity);if(n instanceof vf)return gX(n);n instanceof il||(n=ZH(n));var a,s,r=XH(n.r),e=XH(n.g),i=XH(n.b),o=qH((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=qH((.4360747*r+.3850649*e+.1430804*i)/.96422),s=qH((.0139322*r+.0971045*e+.7141733*i)/.82521)),new ep(116*o-16,500*(a-o),200*(o-s),n.opacity)}function KH(n,r,e,i){return 1===arguments.length?mX(n):new ep(n,r,e,null==i?1:i)}function ep(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function qH(n){return n>.008856451679035631?Math.pow(n,1/3):n/hX+fX}function JH(n){return n>Tw?n*n*n:hX*(n-fX)}function QH(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function XH(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _X(n){if(n instanceof vf)return new vf(n.h,n.c,n.l,n.opacity);if(n instanceof ep||(n=mX(n)),0===n.a&&0===n.b)return new vf(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*uX;return new vf(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function $H(n,r,e,i){return 1===arguments.length?_X(n):new vf(n,r,e,null==i?1:i)}function vf(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}function gX(n){if(isNaN(n.h))return new ep(n.l,0,0,n.opacity);var r=n.h*lX;return new ep(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function wve(n,r){var e=Ns((n=KH(n)).l,(r=KH(r)).l),i=Ns(n.a,r.a),o=Ns(n.b,r.b),a=Ns(n.opacity,r.opacity);return function(s){return n.l=e(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function vX(n){return function(r,e){var i=n((r=$H(r)).h,(e=$H(e)).h),o=Ns(r.c,e.c),a=Ns(r.l,e.l),s=Ns(r.opacity,e.opacity);return function(l){return r.h=i(l),r.c=o(l),r.l=a(l),r.opacity=s(l),r+""}}}Cw(ep,KH,PE(vg,{brighter:function(r){return new ep(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new ep(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 il(QH(3.1338561*(e=.96422*JH(e))-1.6168667*(r=1*JH(r))-.4906146*(i=.82521*JH(i))),QH(-.9787684*e+1.9161415*r+.033454*i),QH(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),Cw(vf,$H,PE(vg,{brighter:function(r){return new vf(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new vf(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return gX(this).rgb()}}));var kve=vX(UH),Tve=vX(Ns),ej=1.78277,tj=-.29227,nN=-.90649,BE=1.97294,bX=BE*nN,CX=BE*ej,wX=ej*tj- -.14861*nN;function Mve(n){if(n instanceof p0)return new p0(n.h,n.s,n.l,n.opacity);n instanceof il||(n=ZH(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(wX*i+bX*r-CX*e)/(wX+bX-CX),a=i-o,s=(BE*(e-o)-tj*a)/nN,l=Math.sqrt(s*s+a*a)/(BE*o*(1-o)),u=l?Math.atan2(s,a)*uX-120:NaN;return new p0(u<0?u+360:u,l,o,n.opacity)}function nj(n,r,e,i){return 1===arguments.length?Mve(n):new p0(n,r,e,null==i?1:i)}function p0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function kX(n){return function r(e){function i(o,a){var s=n((o=nj(o)).h,(a=nj(a)).h),l=Ns(o.s,a.s),u=Ns(o.l,a.l),d=Ns(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}Cw(p0,nj,PE(vg,{brighter:function(r){return r=null==r?ww:Math.pow(ww,r),new p0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new p0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*lX,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new il(255*(e+i*(-.14861*o+ej*a)),255*(e+i*(tj*o+nN*a)),255*(e+i*(BE*o)),this.opacity)}}));var Sve=kX(UH),xve=kX(Ns);function Eve(n,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=n(i/(r-1));return e}function Dve(n){for(var i,r=-1,e=n.length,o=n[e-1],a=0;++r<e;)i=o,o=n[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function Ave(n){for(var a,l,r=-1,e=n.length,i=0,o=0,s=n[e-1],u=0;++r<e;)a=s,s=n[r],u+=l=a[0]*s[1]-s[0]*a[1],i+=(a[0]+s[0])*l,o+=(a[1]+s[1])*l;return[i/(u*=3),o/u]}function Ove(n,r,e){return(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0])}function Ive(n,r){return n[0]-r[0]||n[1]-r[1]}function TX(n){for(var r=n.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Ove(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Pve(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(Ive),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=TX(i),s=TX(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],d=[];for(r=a.length-1;r>=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)d.push(n[i[s[r]][2]]);return d}function Rve(n,r){for(var u,d,e=n.length,i=n[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,g=0;g<e;++g)u=(i=n[g])[0],(d=i[1])>a!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function Lve(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=n[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function Mw(){return Math.random()}var Zve=function n(r){function e(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return e.source=n,e}(Mw),MX=function n(r){function e(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var l;if(null!=a)l=a,a=null;else do{a=2*r()-1,l=2*r()-1,s=a*a+l*l}while(!s||s>1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Mw),Nve=function n(r){function e(){var i=MX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Mw),SX=function n(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=n,e}(Mw),Bve=function n(r){function e(i){var o=SX.source(r)(i);return function(){return o()/i}}return e.source=n,e}(Mw),Fve=function n(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=n,e}(Mw),xX=Array.prototype,rj=xX.map,yg=xX.slice,ij={name:"implicit"};function oj(n){var r=cg(),e=[],i=ij;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==ij)return i;r.set(s,l=e.push(a))}return n[(l-1)%n.length]}return n=null==n?[]:yg.call(n),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=cg();for(var u,d,s=-1,l=a.length;++s<l;)r.has(d=(u=a[s])+"")||r.set(d,e.push(u));return o},o.range=function(a){return arguments.length?(n=yg.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return oj().domain(e).range(n).unknown(i)},o}function aj(){var o,a,n=oj().unknown(void 0),r=n.domain,e=n.range,i=[0,1],s=!1,l=0,u=0,d=.5;function h(){var g=r().length,C=i[1]<i[0],Z=i[C-0],z=i[1-C];o=(z-Z)/Math.max(1,g-l+2*u),s&&(o=Math.floor(o)),Z+=(z-Z-o*(g-l))*d,a=o*(1-l),s&&(Z=Math.round(Z),a=Math.round(a));var q=hc(g).map(function(re){return Z+o*re});return e(C?q.reverse():q)}return delete n.unknown,n.domain=function(g){return arguments.length?(r(g),h()):r()},n.range=function(g){return arguments.length?(i=[+g[0],+g[1]],h()):i.slice()},n.rangeRound=function(g){return i=[+g[0],+g[1]],s=!0,h()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(g){return arguments.length?(s=!!g,h()):s},n.padding=function(g){return arguments.length?(l=u=Math.max(0,Math.min(1,g)),h()):l},n.paddingInner=function(g){return arguments.length?(l=Math.max(0,Math.min(1,g)),h()):l},n.paddingOuter=function(g){return arguments.length?(u=Math.max(0,Math.min(1,g)),h()):u},n.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),h()):d},n.copy=function(){return aj().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(d)},h()}function EX(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return EX(r())},n}function Uve(){return EX(aj().paddingInner(1))}function Hve(n,r){return n=+n,r=+r,function(e){return Math.round(n*(1-e)+r*e)}}function sj(n){return function(){return n}}function DX(n){return+n}var AX=[0,1];function lj(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:sj(r)}function zve(n,r,e,i){var o=n[0],a=n[1],s=r[0],l=r[1];return a<o?(o=e(a,o),s=i(l,s)):(o=e(o,a),s=i(s,l)),function(u){return s(o(u))}}function Wve(n,r,e,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(n[l],n[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var d=K1(n,u,1,o)-1;return s[d](a[d](u))}}function rN(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function iN(n,r){var s,l,u,e=AX,i=AX,o=BL,a=!1;function d(){return s=Math.min(e.length,i.length)>2?Wve:zve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function jve(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,lj,a?function Gve(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=rj.call(g,DX),d()):e.slice()},h.range=function(g){return arguments.length?(i=yg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=yg.call(g),o=Hve,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 OX,Vve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oN(n){if(!(r=Vve.exec(n)))throw new Error("invalid format: "+n);var r;return new uj({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 uj(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 aN(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 Sw(n){return(n=aN(Math.abs(n)))?n[1]:NaN}function IX(n,r){var e=aN(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")}oN.prototype=uj.prototype,uj.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 PX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Yve(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 IX(100*r,e)},r:IX,s:function Xve(n,r){var e=aN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(OX=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")+aN(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 RX(n){return n}var sN,cj,NX,LX=Array.prototype.map,ZX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function $ve(n){var r=void 0===n.grouping||void 0===n.thousands?RX:function qve(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)}}(LX.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?RX:function Jve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(LX.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=oN(g)).fill,Z=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,xe=g.trim,Ve=g.type;"n"===Ve?(Se=!0,Ve="g"):PX[Ve]||(void 0===Ce&&(Ce=12),xe=!0,Ve="g"),(re||"0"===C&&"="===Z)&&(re=!0,C="0",Z="=");var at="$"===q?e:"#"===q&&/[boxX]/.test(Ve)?"0"+Ve.toLowerCase():"",De="$"===q?i:/[%p]/.test(Ve)?s:"",ot=PX[Ve],ht=/[defgprs%]/.test(Ve);function bt(Xe){var Nt,Gt,It,Pe=at,pt=De;if("c"===Ve)pt=ot(Xe)+pt,Xe="";else{var Tn=(Xe=+Xe)<0||1/Xe<0;if(Xe=isNaN(Xe)?u:ot(Math.abs(Xe),Ce),xe&&(Xe=function Qve(n){e:for(var o,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+n[e])break e;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}(Xe)),Tn&&0==+Xe&&"+"!==z&&(Tn=!1),Pe=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Pe,pt=("s"===Ve?ZX[8+OX/3]:"")+pt+(Tn&&"("===z?")":""),ht)for(Nt=-1,Gt=Xe.length;++Nt<Gt;)if(48>(It=Xe.charCodeAt(Nt))||It>57){pt=(46===It?o+Xe.slice(Nt+1):Xe.slice(Nt))+pt,Xe=Xe.slice(0,Nt);break}}Se&&!re&&(Xe=r(Xe,1/0));var jn=Pe.length+Xe.length+pt.length,zn=jn<ae?new Array(ae-jn+1).join(C):"";switch(Se&&re&&(Xe=r(zn+Xe,zn.length?ae-pt.length:1/0),zn=""),Z){case"<":Xe=Pe+Xe+pt+zn;break;case"=":Xe=Pe+zn+Xe+pt;break;case"^":Xe=zn.slice(0,jn=zn.length>>1)+Pe+Xe+pt+zn.slice(jn);break;default:Xe=zn+Pe+Xe+pt}return a(Xe)}return Ce=void 0===Ce?6:/[gprs]/.test(Ve)?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=oN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Sw(C)/3))),q=Math.pow(10,-z),re=ZX[8+z/3];return function(ae){return Z(q*ae)+re}}}}function rye(n,r,e){var s,i=n[0],o=n[n.length-1],a=Jy(i,o,null==r?10:r);switch((e=oN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Kve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Sw(r)/3)))-Sw(Math.abs(n)))}(a,l))&&(e.precision=s),NX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function tye(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Sw(r)-Sw(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 nye(n){return Math.max(0,-Sw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return cj(e)}function FE(n){var r=n.domain;return n.ticks=function(e){var i=r();return U7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return rye(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 l<s&&(u=s,s=l,l=u,u=o,o=a,a=u),(u=Xx(s,l,e))>0?u=Xx(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=Xx(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 BX(){var n=iN(lj,Yc);return n.copy=function(){return rN(n,BX())},FE(n)}function FX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=rj.call(e,DX),r):n.slice()},r.copy=function(){return FX().domain(n)},FE(r)}function UX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),n[e]=r.floor(o),n[i]=r.ceil(a),n}function iye(n,r){return(r=Math.log(r/n))?function(e){return Math.log(e/n)/r}:sj(r)}function oye(n,r){return n<0?function(e){return-Math.pow(-r,e)*Math.pow(-n,1-e)}:function(e){return Math.pow(r,e)*Math.pow(n,1-e)}}function aye(n){return isFinite(n)?+("1e"+n):n<0?0:n}function HX(n){return 10===n?aye:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function jX(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function GX(n){return function(r){return-n(-r)}}function zX(){var n=iN(iye,oye).domain([1,10]),r=n.domain,e=10,i=jX(10),o=HX(10);function a(){return i=jX(e),o=HX(e),r()[0]<0&&(i=GX(i),o=GX(o)),n}return n.base=function(s){return arguments.length?(e=+s,a()):e},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var h,l=r(),u=l[0],d=l[l.length-1];(h=d<u)&&(g=u,u=d,d=g);var Z,z,q,g=i(u),C=i(d),re=null==s?10:+s,ae=[];if(!(e%1)&&C-g<re){if(g=Math.round(g)-1,C=Math.round(C)+1,u>0){for(;g<C;++g)for(z=1,Z=o(g);z<e;++z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else for(;g<C;++g)for(z=e-1,Z=o(g);z>=1;--z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else ae=U7(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=cj(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*e<e-.5&&(h*=e),h<=u?l(d):""}},n.nice=function(){return r(UX(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},n.copy=function(){return rN(n,zX().base(e))},n}function xw(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function dj(){var n=1,r=iN(function i(a,s){return(s=xw(s,n)-(a=xw(a,n)))?function(l){return(xw(l,n)-a)/s}:sj(s)},function o(a,s){return s=xw(s,n)-(a=xw(a,n)),function(l){return xw(a+s*l,1/n)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,e(e())):n},r.copy=function(){return rN(r,dj().exponent(n))},FE(r)}function sye(){return dj().exponent(.5)}function WX(){var n=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=$x(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[K1(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:n[0],s<e.length?e[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&n.push(u);return n.sort(qy),i()},o.range=function(a){return arguments.length?(r=yg.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return WX().domain(n).range(r)},o}function VX(){var n=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[K1(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*n)/(e+1);return a}return a.domain=function(l){return arguments.length?(n=+l[0],r=+l[1],s()):[n,r]},a.range=function(l){return arguments.length?(e=(o=yg.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return VX().domain([n,r]).range(o)},FE(a)}function YX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[K1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=yg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=yg.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 YX().domain(n).range(r)},i}!function eye(n){return sN=$ve(n),cj=sN.format,NX=sN.formatPrefix,sN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var pj=new Date,fj=new Date;function Bs(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-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return Bs(function(s){if(s>=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 pj.setTime(+a),fj.setTime(+s),n(pj),n(fj),Math.floor(e(pj,fj))},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 hj=Bs(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()});hj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(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 tp=hj,KX=(hj.range,Bs(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()})),lye=KX,f0=(KX.range,6e4),uN=36e5,JX=6048e5;function h0(n){return Bs(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())*f0)/JX})}var cN=h0(0),m0=h0(1),uye=h0(2),cye=h0(3),rm=h0(4),dye=h0(5),pye=h0(6),QX=(cN.range,m0.range,uye.range,cye.range,rm.range,dye.range,pye.range,Bs(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())*f0)/864e5},function(n){return n.getDate()-1})),UE=QX,XX=(QX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*f0)},function(n,r){n.setTime(+n+r*uN)},function(n,r){return(r-n)/uN},function(n){return n.getHours()})),fye=XX,$X=(XX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*f0)},function(n,r){return(r-n)/f0},function(n){return n.getMinutes()})),hye=$X,e$=($X.range,Bs(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()})),t$=e$,dN=(e$.range,Bs(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));dN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Bs(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):dN:null};var n$=dN;dN.range;function _0(n){return Bs(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)/JX})}var pN=_0(0),g0=_0(1),mye=_0(2),_ye=_0(3),im=_0(4),gye=_0(5),vye=_0(6),r$=(pN.range,g0.range,mye.range,_ye.range,im.range,gye.range,vye.range,Bs(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})),HE=r$,mj=(r$.range,Bs(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()}));mj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(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 np=mj;mj.range;function _j(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 gj(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 jE(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Ew,v$,y$,i$={"-":"",_:" ",0:"0"},Fs=/^\s*\d+/,bye=/^%/,Cye=/[\\^$*+?|[\]().{}]/g;function Ki(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function wye(n){return n.replace(Cye,"\\$&")}function GE(n){return new RegExp("^(?:"+n.map(wye).join("|")+")","i")}function zE(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function kye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Tye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Mye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function Sye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function o$(n,r,e){var i=Fs.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function a$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Eye(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 Dye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Aye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function s$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function l$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Iye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Pye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Rye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Lye(n,r,e){var i=Fs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Zye(n,r,e){var i=bye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Nye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Bye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function u$(n,r){return Ki(n.getDate(),r,2)}function Fye(n,r){return Ki(n.getHours(),r,2)}function Uye(n,r){return Ki(n.getHours()%12||12,r,2)}function Hye(n,r){return Ki(1+UE.count(tp(n),n),r,3)}function c$(n,r){return Ki(n.getMilliseconds(),r,3)}function jye(n,r){return c$(n,r)+"000"}function Gye(n,r){return Ki(n.getMonth()+1,r,2)}function zye(n,r){return Ki(n.getMinutes(),r,2)}function Wye(n,r){return Ki(n.getSeconds(),r,2)}function Vye(n){var r=n.getDay();return 0===r?7:r}function Yye(n,r){return Ki(cN.count(tp(n)-1,n),r,2)}function d$(n){var r=n.getDay();return r>=4||0===r?rm(n):rm.ceil(n)}function Kye(n,r){return n=d$(n),Ki(rm.count(tp(n),n)+(4===tp(n).getDay()),r,2)}function qye(n){return n.getDay()}function Jye(n,r){return Ki(m0.count(tp(n)-1,n),r,2)}function Qye(n,r){return Ki(n.getFullYear()%100,r,2)}function Xye(n,r){return Ki((n=d$(n)).getFullYear()%100,r,2)}function $ye(n,r){return Ki(n.getFullYear()%1e4,r,4)}function e0e(n,r){var e=n.getDay();return Ki((n=e>=4||0===e?rm(n):rm.ceil(n)).getFullYear()%1e4,r,4)}function t0e(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ki(r/60|0,"0",2)+Ki(r%60,"0",2)}function p$(n,r){return Ki(n.getUTCDate(),r,2)}function n0e(n,r){return Ki(n.getUTCHours(),r,2)}function r0e(n,r){return Ki(n.getUTCHours()%12||12,r,2)}function i0e(n,r){return Ki(1+HE.count(np(n),n),r,3)}function f$(n,r){return Ki(n.getUTCMilliseconds(),r,3)}function o0e(n,r){return f$(n,r)+"000"}function a0e(n,r){return Ki(n.getUTCMonth()+1,r,2)}function s0e(n,r){return Ki(n.getUTCMinutes(),r,2)}function l0e(n,r){return Ki(n.getUTCSeconds(),r,2)}function u0e(n){var r=n.getUTCDay();return 0===r?7:r}function c0e(n,r){return Ki(pN.count(np(n)-1,n),r,2)}function h$(n){var r=n.getUTCDay();return r>=4||0===r?im(n):im.ceil(n)}function d0e(n,r){return n=h$(n),Ki(im.count(np(n),n)+(4===np(n).getUTCDay()),r,2)}function p0e(n){return n.getUTCDay()}function f0e(n,r){return Ki(g0.count(np(n)-1,n),r,2)}function h0e(n,r){return Ki(n.getUTCFullYear()%100,r,2)}function m0e(n,r){return Ki((n=h$(n)).getUTCFullYear()%100,r,2)}function _0e(n,r){return Ki(n.getUTCFullYear()%1e4,r,4)}function g0e(n,r){var e=n.getUTCDay();return Ki((n=e>=4||0===e?im(n):im.ceil(n)).getUTCFullYear()%1e4,r,4)}function v0e(){return"+0000"}function m$(){return"%"}function _$(n){return+n}function g$(n){return Math.floor(+n/1e3)}!function C0e(n){return Ew=function yye(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=GE(o),h=zE(o),g=GE(a),C=zE(a),Z=GE(s),z=zE(s),q=GE(l),re=zE(l),ae=GE(u),Se=zE(u),Ce={a:function Tn(Sn){return s[Sn.getDay()]},A:function jn(Sn){return a[Sn.getDay()]},b:function zn(Sn){return u[Sn.getMonth()]},B:function or(Sn){return l[Sn.getMonth()]},c:null,d:u$,e:u$,f:jye,g:Xye,G:e0e,H:Fye,I:Uye,j:Hye,L:c$,m:Gye,M:zye,p:function Sr(Sn){return o[+(Sn.getHours()>=12)]},q:function _r(Sn){return 1+~~(Sn.getMonth()/3)},Q:_$,s:g$,S:Wye,u:Vye,U:Yye,V:Kye,w:qye,W:Jye,x:null,X:null,y:Qye,Y:$ye,Z:t0e,"%":m$},xe={a:function zr(Sn){return s[Sn.getUTCDay()]},A:function Ur(Sn){return a[Sn.getUTCDay()]},b:function Kr(Sn){return u[Sn.getUTCMonth()]},B:function Fo(Sn){return l[Sn.getUTCMonth()]},c:null,d:p$,e:p$,f:o0e,g:m0e,G:g0e,H:n0e,I:r0e,j:i0e,L:f$,m:a0e,M:s0e,p:function er(Sn){return o[+(Sn.getUTCHours()>=12)]},q:function wr(Sn){return 1+~~(Sn.getUTCMonth()/3)},Q:_$,s:g$,S:l0e,u:u0e,U:c0e,V:d0e,w:p0e,W:f0e,x:null,X:null,y:h0e,Y:_0e,Z:v0e,"%":m$},Ve={a:function bt(Sn,gn,tr){var un=Z.exec(gn.slice(tr));return un?(Sn.w=z[un[0].toLowerCase()],tr+un[0].length):-1},A:function Xe(Sn,gn,tr){var un=g.exec(gn.slice(tr));return un?(Sn.w=C[un[0].toLowerCase()],tr+un[0].length):-1},b:function Pe(Sn,gn,tr){var un=ae.exec(gn.slice(tr));return un?(Sn.m=Se[un[0].toLowerCase()],tr+un[0].length):-1},B:function pt(Sn,gn,tr){var un=q.exec(gn.slice(tr));return un?(Sn.m=re[un[0].toLowerCase()],tr+un[0].length):-1},c:function Nt(Sn,gn,tr){return ot(Sn,r,gn,tr)},d:s$,e:s$,f:Lye,g:a$,G:o$,H:l$,I:l$,j:Oye,L:Rye,m:Aye,M:Iye,p:function ht(Sn,gn,tr){var un=d.exec(gn.slice(tr));return un?(Sn.p=h[un[0].toLowerCase()],tr+un[0].length):-1},q:Dye,Q:Nye,s:Bye,S:Pye,u:Tye,U:Mye,V:Sye,w:kye,W:xye,x:function Gt(Sn,gn,tr){return ot(Sn,e,gn,tr)},X:function It(Sn,gn,tr){return ot(Sn,i,gn,tr)},y:a$,Y:o$,Z:Eye,"%":Zye};function at(Sn,gn){return function(tr){var vr,io,Yu,un=[],bn=-1,Bn=0,nr=Sn.length;for(tr instanceof Date||(tr=new Date(+tr));++bn<nr;)37===Sn.charCodeAt(bn)&&(un.push(Sn.slice(Bn,bn)),null!=(io=i$[vr=Sn.charAt(++bn)])?vr=Sn.charAt(++bn):io="e"===vr?" ":"0",(Yu=gn[vr])&&(vr=Yu(tr,io)),un.push(vr),Bn=bn+1);return un.push(Sn.slice(Bn,bn)),un.join("")}}function De(Sn,gn){return function(tr){var Bn,nr,un=jE(1900,void 0,1);if(ot(un,Sn,tr+="",0)!=tr.length)return null;if("Q"in un)return new Date(un.Q);if("s"in un)return new Date(1e3*un.s+("L"in un?un.L:0));if(gn&&!("Z"in un)&&(un.Z=0),"p"in un&&(un.H=un.H%12+12*un.p),void 0===un.m&&(un.m="q"in un?un.q:0),"V"in un){if(un.V<1||un.V>53)return null;"w"in un||(un.w=1),"Z"in un?(nr=(Bn=gj(jE(un.y,0,1))).getUTCDay(),Bn=nr>4||0===nr?g0.ceil(Bn):g0(Bn),Bn=HE.offset(Bn,7*(un.V-1)),un.y=Bn.getUTCFullYear(),un.m=Bn.getUTCMonth(),un.d=Bn.getUTCDate()+(un.w+6)%7):(nr=(Bn=_j(jE(un.y,0,1))).getDay(),Bn=nr>4||0===nr?m0.ceil(Bn):m0(Bn),Bn=UE.offset(Bn,7*(un.V-1)),un.y=Bn.getFullYear(),un.m=Bn.getMonth(),un.d=Bn.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),nr="Z"in un?gj(jE(un.y,0,1)).getUTCDay():_j(jE(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(nr+5)%7:un.w+7*un.U-(nr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,gj(un)):_j(un)}}function ot(Sn,gn,tr,un){for(var vr,io,bn=0,Bn=gn.length,nr=tr.length;bn<Bn;){if(un>=nr)return-1;if(37===(vr=gn.charCodeAt(bn++))){if(vr=gn.charAt(bn++),!(io=Ve[vr in i$?gn.charAt(bn++):vr])||(un=io(Sn,tr,un))<0)return-1}else if(vr!=tr.charCodeAt(un++))return-1}return un}return Ce.x=at(e,Ce),Ce.X=at(i,Ce),Ce.c=at(r,Ce),xe.x=at(e,xe),xe.X=at(i,xe),xe.c=at(r,xe),{format:function(gn){var tr=at(gn+="",Ce);return tr.toString=function(){return gn},tr},parse:function(gn){var tr=De(gn+="",!1);return tr.toString=function(){return gn},tr},utcFormat:function(gn){var tr=at(gn+="",xe);return tr.toString=function(){return gn},tr},utcParse:function(gn){var tr=De(gn+="",!0);return tr.toString=function(){return gn},tr}}}(n),v$=Ew.format,Ew.parse,y$=Ew.utcFormat,Ew.utcParse,Ew}({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 WE=1e3,VE=6e4,YE=60*VE,KE=24*YE,b$=30*KE,vj=365*KE;function k0e(n){return new Date(n)}function T0e(n){return n instanceof Date?+n:+new Date(+n)}function yj(n,r,e,i,o,a,s,l,u){var d=iN(lj,Yc),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"),xe=[[s,1,WE],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,VE],[a,5,5*VE],[a,15,15*VE],[a,30,30*VE],[o,1,YE],[o,3,3*YE],[o,6,6*YE],[o,12,12*YE],[i,1,KE],[i,2,2*KE],[e,1,6048e5],[r,1,b$],[r,3,3*b$],[n,1,vj]];function Ve(De){return(s(De)<De?C:a(De)<De?Z:o(De)<De?z:i(De)<De?q:r(De)<De?e(De)<De?re:ae:n(De)<De?Se:Ce)(De)}function at(De,ot,ht,bt){if(null==De&&(De=10),"number"==typeof De){var Xe=Math.abs(ht-ot)/De,Pe=L7(function(pt){return pt[2]}).right(xe,Xe);Pe===xe.length?(bt=Jy(ot/vj,ht/vj,De),De=n):Pe?(bt=(Pe=xe[Xe/xe[Pe-1][2]<xe[Pe][2]/Xe?Pe-1:Pe])[1],De=Pe[0]):(bt=Math.max(Jy(ot,ht,De),1),De=l)}return null==bt?De:De.every(bt)}return d.invert=function(De){return new Date(h(De))},d.domain=function(De){return arguments.length?g(rj.call(De,T0e)):g().map(k0e)},d.ticks=function(De,ot){var pt,ht=g(),bt=ht[0],Xe=ht[ht.length-1],Pe=Xe<bt;return Pe&&(pt=bt,bt=Xe,Xe=pt),pt=(pt=at(De,bt,Xe,ot))?pt.range(bt,Xe+1):[],Pe?pt.reverse():pt},d.tickFormat=function(De,ot){return null==ot?Ve:u(ot)},d.nice=function(De,ot){var ht=g();return(De=at(De,ht[0],ht[ht.length-1],ot))?g(UX(ht,De)):d},d.copy=function(){return rN(d,yj(n,r,e,i,o,a,s,l,u))},d}function M0e(){return yj(tp,lye,cN,UE,fye,hye,t$,n$,v$).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var C$=Bs(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()}),S0e=C$,w$=(C$.range,Bs(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*uN)},function(n,r){return(r-n)/uN},function(n){return n.getUTCHours()})),x0e=w$,k$=(w$.range,Bs(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*f0)},function(n,r){return(r-n)/f0},function(n){return n.getUTCMinutes()})),E0e=k$;k$.range;function D0e(){return yj(np,S0e,pN,HE,x0e,E0e,t$,n$,y$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function T$(n){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return T$(n).domain([r,e]).clamp(i)},FE(o)}function oi(n){for(var r=n.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+n.slice(6*i,6*++i);return e}var A0e=oi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),O0e=oi("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),I0e=oi("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),P0e=oi("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),R0e=oi("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),L0e=oi("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Z0e=oi("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),N0e=oi("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),B0e=oi("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Oo(n){return ipe(n[n.length-1])}var M$=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(oi),F0e=Oo(M$),S$=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(oi),U0e=Oo(S$),x$=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(oi),H0e=Oo(x$),E$=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(oi),j0e=Oo(E$),D$=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(oi),G0e=Oo(D$),A$=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(oi),z0e=Oo(A$),O$=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(oi),W0e=Oo(O$),I$=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(oi),V0e=Oo(I$),P$=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(oi),Y0e=Oo(P$),R$=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(oi),K0e=Oo(R$),L$=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(oi),q0e=Oo(L$),Z$=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(oi),J0e=Oo(Z$),N$=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(oi),Q0e=Oo(N$),B$=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(oi),X0e=Oo(B$),F$=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(oi),$0e=Oo(F$),U$=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(oi),ebe=Oo(U$),H$=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(oi),tbe=Oo(H$),j$=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(oi),nbe=Oo(j$),G$=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(oi),rbe=Oo(G$),z$=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(oi),ibe=Oo(z$),W$=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(oi),obe=Oo(W$),V$=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(oi),abe=Oo(V$),Y$=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(oi),sbe=Oo(Y$),K$=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(oi),lbe=Oo(K$),q$=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(oi),ube=Oo(q$),J$=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(oi),cbe=Oo(J$),Q$=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(oi),dbe=Oo(Q$),pbe=Math.PI/180,fbe=180/Math.PI,bj=1.78277,Cj=-.29227,fN=-.90649,qE=1.97294,$$=qE*fN,eee=qE*bj,tee=bj*Cj- -.14861*fN;function hbe(n){if(n instanceof v0)return new v0(n.h,n.s,n.l,n.opacity);n instanceof nu||(n=xK(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(tee*i+$$*r-eee*e)/(tee+$$-eee),a=i-o,s=(qE*(e-o)-Cj*a)/fN,l=Math.sqrt(s*s+a*a)/(qE*o*(1-o)),u=l?Math.atan2(s,a)*fbe-120:NaN;return new v0(u<0?u+360:u,l,o,n.opacity)}function yf(n,r,e,i){return 1===arguments.length?hbe(n):new v0(n,r,e,null==i?1:i)}function v0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function nee(n){return function r(e){function i(o,a){var s=n((o=yf(o)).h,(a=yf(a)).h),l=ew(o.s,a.s),u=ew(o.l,a.l),d=ew(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}PL(v0,yf,q7(Q1,{brighter:function(r){return r=null==r?X1:Math.pow(X1,r),new v0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new v0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*pbe,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new nu(255*(e+i*(-.14861*o+bj*a)),255*(e+i*(Cj*o+fN*a)),255*(e+i*(qE*o)),this.opacity)}}));nee(function npe(n,r){var e=r-n;return e?PK(n,e>180||e<-180?e-360*Math.round(e/360):e):ZL(isNaN(n)?r:n)});var wj=nee(ew),mbe=wj(yf(300,.5,0),yf(-240,.5,1)),_be=wj(yf(-100,.75,.35),yf(80,1.5,.8)),gbe=wj(yf(260,.75,.35),yf(80,1.5,.8)),hN=yf();function vbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return hN.h=360*n-100,hN.s=1.5-1.5*r,hN.l=.8-.9*r,hN+""}function mN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var ybe=mN(oi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),bbe=mN(oi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Cbe=mN(oi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),wbe=mN(oi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),kj="http://www.w3.org/1999/xhtml",Tj={svg:"http://www.w3.org/2000/svg",xhtml:kj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mj(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Tj.hasOwnProperty(r)?{space:Tj[r],local:n}:n}function kbe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===kj&&r.documentElement.namespaceURI===kj?r.createElement(n):r.createElementNS(e,n)}}function Tbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function _N(n){var r=Mj(n);return(r.local?Tbe:kbe)(r)}function Mbe(){}function Sj(n){return null==n?Mbe:function(){return this.querySelector(n)}}function xbe(){return[]}function ree(n){return null==n?xbe:function(){return this.querySelectorAll(n)}}var iee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var JE=document.documentElement;if(!JE.matches){var Dbe=JE.webkitMatchesSelector||JE.msMatchesSelector||JE.mozMatchesSelector||JE.oMatchesSelector;iee=function(r){return function(){return Dbe.call(this,r)}}}}var oee=iee;function aee(n){return new Array(n.length)}function gN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}gN.prototype={constructor:gN,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 Pbe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new gN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Rbe(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new gN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Ube(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Ybe(n){return function(){this.removeAttribute(n)}}function Kbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function qbe(n,r){return function(){this.setAttribute(n,r)}}function Jbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Qbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Xbe(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 xj(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function eCe(n){return function(){this.style.removeProperty(n)}}function tCe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function nCe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function lee(n,r){return n.style.getPropertyValue(r)||xj(n).getComputedStyle(n,null).getPropertyValue(r)}function iCe(n){return function(){delete this[n]}}function oCe(n,r){return function(){this[n]=r}}function aCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function uee(n){return n.trim().split(/^|\s+/)}function Ej(n){return n.classList||new cee(n)}function cee(n){this._node=n,this._names=uee(n.getAttribute("class")||"")}function dee(n,r){for(var e=Ej(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function pee(n,r){for(var e=Ej(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function lCe(n){return function(){dee(this,n)}}function uCe(n){return function(){pee(this,n)}}function cCe(n,r){return function(){(r.apply(this,arguments)?dee:pee)(this,n)}}function pCe(){this.textContent=""}function fCe(n){return function(){this.textContent=n}}function hCe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function _Ce(){this.innerHTML=""}function gCe(n){return function(){this.innerHTML=n}}function vCe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function bCe(){this.nextSibling&&this.parentNode.appendChild(this)}function wCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function MCe(){return null}function xCe(){var n=this.parentNode;n&&n.removeChild(this)}function DCe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ACe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}cee.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var fee={},om=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(fee={mouseenter:"mouseover",mouseleave:"mouseout"}));function RCe(n,r,e){return n=hee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function hee(n,r,e){return function(i){var o=om;om=i;try{n.call(this,this.__data__,r,e)}finally{om=o}}}function LCe(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 ZCe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function NCe(n,r,e){var i=fee.hasOwnProperty(n.type)?RCe:hee;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function FCe(n,r,e,i){var o=om;n.sourceEvent=om,om=n;try{return r.apply(e,i)}finally{om=o}}function mee(n,r,e){var i=xj(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function UCe(n,r){return function(){return mee(this,n,r)}}function HCe(n,r){return function(){return mee(this,n,r.apply(this,arguments))}}var Dj=[null];function uu(n,r){this._groups=n,this._parents=r}function _ee(){return new uu([[document.documentElement]],Dj)}uu.prototype=_ee.prototype={constructor:uu,select:function Sbe(n){"function"!=typeof n&&(n=Sj(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new uu(i,this._parents)},selectAll:function Ebe(n){"function"!=typeof n&&(n=ree(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new uu(i,o)},filter:function Abe(n){"function"!=typeof n&&(n=oee(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new uu(i,this._parents)},data:function Lbe(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(at){Z[++d]=at}),Z;var e=r?Rbe:Pbe,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Ibe(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var xe,Ve,Se=0,Ce=0;Se<z;++Se)if(xe=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);xe._next=Ve||null}}return(s=new uu(s,i))._enter=l,s._exit=u,s},enter:function Obe(){return new uu(this._enter||this._groups.map(aee),this._parents)},exit:function Zbe(){return new uu(this._exit||this._groups.map(aee),this._parents)},merge:function Nbe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new uu(s,this._parents)},order:function Bbe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Fbe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Ube);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new uu(o,this._parents).order()},call:function Hbe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function jbe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Gbe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function zbe(){var n=0;return this.each(function(){++n}),n},empty:function Wbe(){return!this.node()},each:function Vbe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function $be(n,r){var e=Mj(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?Kbe:Ybe:"function"==typeof r?e.local?Xbe:Qbe:e.local?Jbe:qbe)(e,r))},style:function rCe(n,r,e){return arguments.length>1?this.each((null==r?eCe:"function"==typeof r?nCe:tCe)(n,r,null==e?"":e)):lee(this.node(),n)},property:function sCe(n,r){return arguments.length>1?this.each((null==r?iCe:"function"==typeof r?aCe:oCe)(n,r)):this.node()[n]},classed:function dCe(n,r){var e=uee(n+"");if(arguments.length<2){for(var i=Ej(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?cCe:r?lCe:uCe)(e,r))},text:function mCe(n){return arguments.length?this.each(null==n?pCe:("function"==typeof n?hCe:fCe)(n)):this.node().textContent},html:function yCe(n){return arguments.length?this.each(null==n?_Ce:("function"==typeof n?vCe:gCe)(n)):this.node().innerHTML},raise:function CCe(){return this.each(bCe)},lower:function kCe(){return this.each(wCe)},append:function TCe(n){var r="function"==typeof n?n:_N(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function SCe(n,r){var e="function"==typeof n?n:_N(n),i=null==r?MCe:"function"==typeof r?r:Sj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function ECe(){return this.each(xCe)},clone:function OCe(n){return this.select(n?ACe:DCe)},datum:function ICe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function BCe(n,r,e){var o,s,i=LCe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?NCe:ZCe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function jCe(n,r){return this.each(("function"==typeof r?HCe:UCe)(n,r))}};var GCe=_ee;function gee(n){return"string"==typeof n?new uu([[document.querySelector(n)]],[document.documentElement]):new uu([[n]],Dj)}function zCe(n){return gee(_N(n).call(document.documentElement))}var WCe=0;function vee(){return new Aj}function Aj(){this._="@"+(++WCe).toString(36)}function Oj(){for(var r,n=om;r=n.sourceEvent;)n=r;return n}function vN(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function VCe(n){var r=Oj();return r.changedTouches&&(r=r.changedTouches[0]),vN(n,r)}function YCe(n){return"string"==typeof n?new uu([document.querySelectorAll(n)],[document.documentElement]):new uu([null==n?[]:n],Dj)}function KCe(n,r,e){arguments.length<3&&(e=r,r=Oj().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return vN(n,a);return null}function qCe(n,r){null==r&&(r=Oj().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=vN(n,r[e]);return o}function JCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this);for(var o in e)i.attr(o,e[o])})}function QCe(n,r){for(var e in r)n.attr(e,r[e]);return n}function $Ce(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=vi(this);for(var a in i)o.style(a,i[a],e)})}function e1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function n1e(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this);for(var o in e)i.property(o,e[o])})}function r1e(n,r){for(var e in r)n.property(e,r[e]);return n}function o1e(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this).transition(n);for(var o in e)i.attr(o,e[o])})}function a1e(n,r){for(var e in r)n.attr(e,r[e]);return n}function l1e(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=vi(this).transition(n);for(var a in i)o.style(a,i[a],e)})}function u1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function pi(n){return function(){return n}}Aj.prototype=vee.prototype={constructor:Aj,get:function(r){for(var e=this._;!(e in r);)if(!(r=r.parentNode))return;return r[e]},set:function(r,e){return r[this._]=e},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}},lg.prototype.attrs=function XCe(n){return("function"==typeof n?JCe:QCe)(this,n)},lg.prototype.styles=function t1e(n,r){return("function"==typeof n?$Ce:e1e)(this,n,null==r?"":r)},lg.prototype.properties=function i1e(n){return("function"==typeof n?n1e:r1e)(this,n)},s9.prototype.attrs=function s1e(n){return("function"==typeof n?o1e:a1e)(this,n)},s9.prototype.styles=function c1e(n,r){return("function"==typeof n?l1e:u1e)(this,n,null==r?"":r)};var yee=Math.abs,Ml=Math.atan2,y0=Math.cos,d1e=Math.max,Ij=Math.min,bf=Math.sin,Dw=Math.sqrt,ol=1e-12,b0=Math.PI,yN=b0/2,am=2*b0;function p1e(n){return n>1?0:n<-1?b0:Math.acos(n)}function bee(n){return n>=1?yN:n<=-1?-yN:Math.asin(n)}function f1e(n){return n.innerRadius}function h1e(n){return n.outerRadius}function m1e(n){return n.startAngle}function _1e(n){return n.endAngle}function g1e(n){return n&&n.padAngle}function v1e(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*C<ol))return[n+(C=(h*(r-a)-g*(n-o))/C)*u,r+C*d]}function bN(n,r,e,i,o,a,s){var l=n-e,u=r-i,d=(s?a:-a)/Dw(l*l+u*u),h=d*u,g=-d*l,C=n+h,Z=r+g,z=e+h,q=i+g,re=(C+z)/2,ae=(Z+q)/2,Se=z-C,Ce=q-Z,xe=Se*Se+Ce*Ce,Ve=o-a,at=C*q-z*Z,De=(Ce<0?-1:1)*Dw(d1e(0,Ve*Ve*xe-at*at)),ot=(at*Ce-Se*De)/xe,ht=(-at*Se-Ce*De)/xe,bt=(at*Ce+Se*De)/xe,Xe=(-at*Se+Ce*De)/xe,Pe=ot-re,pt=ht-ae,Nt=bt-re,Gt=Xe-ae;return Pe*Pe+pt*pt>Nt*Nt+Gt*Gt&&(ot=bt,ht=Xe),{cx:ot,cy:ht,x01:-h,y01:-g,x11:ot*(o/Ve-1),y11:ht*(o/Ve-1)}}function y1e(){var n=f1e,r=h1e,e=pi(0),i=null,o=m1e,a=_1e,s=g1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),C=+r.apply(this,arguments),Z=o.apply(this,arguments)-yN,z=a.apply(this,arguments)-yN,q=yee(z-Z),re=z>Z;if(l||(l=d=Jd()),C<g&&(h=C,C=g,g=h),C>ol)if(q>am-ol)l.moveTo(C*y0(Z),C*bf(Z)),l.arc(0,0,C,Z,z,!re),g>ol&&(l.moveTo(g*y0(z),g*bf(z)),l.arc(0,0,g,z,Z,re));else{var Pe,pt,ae=Z,Se=z,Ce=Z,xe=z,Ve=q,at=q,De=s.apply(this,arguments)/2,ot=De>ol&&(i?+i.apply(this,arguments):Dw(g*g+C*C)),ht=Ij(yee(C-g)/2,+e.apply(this,arguments)),bt=ht,Xe=ht;if(ot>ol){var Nt=bee(ot/g*bf(De)),Gt=bee(ot/C*bf(De));(Ve-=2*Nt)>ol?(Ce+=Nt*=re?1:-1,xe-=Nt):(Ve=0,Ce=xe=(Z+z)/2),(at-=2*Gt)>ol?(ae+=Gt*=re?1:-1,Se-=Gt):(at=0,ae=Se=(Z+z)/2)}var It=C*y0(ae),Tn=C*bf(ae),jn=g*y0(xe),zn=g*bf(xe);if(ht>ol){var Ur,or=C*y0(Se),Sr=C*bf(Se),_r=g*y0(Ce),zr=g*bf(Ce);if(q<=am-ol&&(Ur=v1e(It,Tn,_r,zr,or,Sr,jn,zn))){var Kr=It-Ur[0],Fo=Tn-Ur[1],er=or-Ur[0],wr=Sr-Ur[1],Sn=1/bf(p1e((Kr*er+Fo*wr)/(Dw(Kr*Kr+Fo*Fo)*Dw(er*er+wr*wr)))/2),gn=Dw(Ur[0]*Ur[0]+Ur[1]*Ur[1]);bt=Ij(ht,(g-gn)/(Sn-1)),Xe=Ij(ht,(C-gn)/(Sn+1))}}at>ol?Xe>ol?(Pe=bN(_r,zr,It,Tn,C,Xe,re),pt=bN(or,Sr,jn,zn,C,Xe,re),l.moveTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),Xe<ht?l.arc(Pe.cx,Pe.cy,Xe,Ml(Pe.y01,Pe.x01),Ml(pt.y01,pt.x01),!re):(l.arc(Pe.cx,Pe.cy,Xe,Ml(Pe.y01,Pe.x01),Ml(Pe.y11,Pe.x11),!re),l.arc(0,0,C,Ml(Pe.cy+Pe.y11,Pe.cx+Pe.x11),Ml(pt.cy+pt.y11,pt.cx+pt.x11),!re),l.arc(pt.cx,pt.cy,Xe,Ml(pt.y11,pt.x11),Ml(pt.y01,pt.x01),!re))):(l.moveTo(It,Tn),l.arc(0,0,C,ae,Se,!re)):l.moveTo(It,Tn),g>ol&&Ve>ol?bt>ol?(Pe=bN(jn,zn,or,Sr,g,-bt,re),pt=bN(It,Tn,_r,zr,g,-bt,re),l.lineTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),bt<ht?l.arc(Pe.cx,Pe.cy,bt,Ml(Pe.y01,Pe.x01),Ml(pt.y01,pt.x01),!re):(l.arc(Pe.cx,Pe.cy,bt,Ml(Pe.y01,Pe.x01),Ml(Pe.y11,Pe.x11),!re),l.arc(0,0,g,Ml(Pe.cy+Pe.y11,Pe.cx+Pe.x11),Ml(pt.cy+pt.y11,pt.cx+pt.x11),re),l.arc(pt.cx,pt.cy,bt,Ml(pt.y11,pt.x11),Ml(pt.y01,pt.x01),!re))):l.arc(0,0,g,xe,Ce,re):l.lineTo(jn,zn)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-b0/2;return[y0(h)*d,bf(h)*d]},u.innerRadius=function(d){return arguments.length?(n="function"==typeof d?d:pi(+d),u):n},u.outerRadius=function(d){return arguments.length?(r="function"==typeof d?d:pi(+d),u):r},u.cornerRadius=function(d){return arguments.length?(e="function"==typeof d?d:pi(+d),u):e},u.padRadius=function(d){return arguments.length?(i=null==d?null:"function"==typeof d?d:pi(+d),u):i},u.startAngle=function(d){return arguments.length?(o="function"==typeof d?d:pi(+d),u):o},u.endAngle=function(d){return arguments.length?(a="function"==typeof d?d:pi(+d),u):a},u.padAngle=function(d){return arguments.length?(s="function"==typeof d?d:pi(+d),u):s},u.context=function(d){return arguments.length?(l=null==d?null:d,u):l},u}function Cee(n){this._context=n}function CN(n){return new Cee(n)}function Pj(n){return n[0]}function Rj(n){return n[1]}function wN(){var n=Pj,r=Rj,e=pi(!0),i=null,o=CN,a=null;function s(l){var u,h,C,d=l.length,g=!1;for(null==i&&(a=o(C=Jd())),u=0;u<=d;++u)!(u<d&&e(h=l[u],u,l))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+n(h,u,l),+r(h,u,l));if(C)return a=null,C+""||null}return s.x=function(l){return arguments.length?(n="function"==typeof l?l:pi(+l),s):n},s.y=function(l){return arguments.length?(r="function"==typeof l?l:pi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:pi(!!l),s):e},s.curve=function(l){return arguments.length?(o=l,null!=i&&(a=o(i)),s):o},s.context=function(l){return arguments.length?(null==l?i=a=null:a=o(i=l),s):i},s}function wee(){var n=Pj,r=null,e=pi(0),i=Rj,o=pi(!0),a=null,s=CN,l=null;function u(h){var g,C,Z,q,ae,z=h.length,re=!1,Se=new Array(z),Ce=new Array(z);for(null==a&&(l=s(ae=Jd())),g=0;g<=z;++g){if(!(g<z&&o(q=h[g],g,h))===re)if(re=!re)C=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),Z=g-1;Z>=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 wN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:pi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:pi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:pi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:pi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:pi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:pi(+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:pi(!!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 b1e(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function C1e(n){return n}function w1e(){var n=C1e,r=b1e,e=null,i=pi(0),o=pi(am),a=pi(0);function s(l){var u,h,g,ae,xe,d=l.length,C=0,Z=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(am,Math.max(-am,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;u<d;++u)(xe=z[Z[u]=u]=+n(l[u],u,l))>0&&(C+=xe);for(null!=r?Z.sort(function(Ve,at){return r(z[Ve],z[at])}):null!=e&&Z.sort(function(Ve,at){return e(l[Ve],l[at])}),u=0,g=C?(re-d*Ce)/C:0;u<d;++u,q=ae)h=Z[u],ae=q+((xe=z[h])>0?xe*g:0)+Ce,z[h]={data:l[h],index:u,value:xe,startAngle:q,endAngle:ae,padAngle:Se};return z}return s.value=function(l){return arguments.length?(n="function"==typeof l?l:pi(+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:pi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:pi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:pi(+l),s):a},s}Cee.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 kee=Lj(CN);function Tee(n){this._curve=n}function Lj(n){function r(e){return new Tee(n(e))}return r._curve=n,r}function QE(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(Lj(e)):r()._curve},n}function Mee(){return QE(wN().curve(kee))}function See(){var n=wee().curve(kee),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 QE(e())},delete n.lineX0,n.lineEndAngle=function(){return QE(i())},delete n.lineX1,n.lineInnerRadius=function(){return QE(o())},delete n.lineY0,n.lineOuterRadius=function(){return QE(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(Lj(s)):r()._curve},n}function XE(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}Tee.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 Zj=Array.prototype.slice;function k1e(n){return n.source}function T1e(n){return n.target}function Nj(n){var r=k1e,e=T1e,i=Pj,o=Rj,a=null;function s(){var l,u=Zj.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:pi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:pi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function M1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function S1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function x1e(n,r,e,i,o){var a=XE(r,e),s=XE(r,e=(e+o)/2),l=XE(i,e),u=XE(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function E1e(){return Nj(M1e)}function D1e(){return Nj(S1e)}function A1e(){var n=Nj(x1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var Bj={draw:function(r,e){var i=Math.sqrt(e/b0);r.moveTo(i,0),r.arc(0,0,i,0,am)}},xee={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()}},Eee=Math.sqrt(1/3),O1e=2*Eee,Dee={draw:function(r,e){var i=Math.sqrt(e/O1e),o=i*Eee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},Aee=Math.sin(b0/10)/Math.sin(7*b0/10),P1e=Math.sin(am/10)*Aee,R1e=-Math.cos(am/10)*Aee,Oee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=P1e*i,a=R1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=am*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()}},Iee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},Fj=Math.sqrt(3),Pee={draw:function(r,e){var i=-Math.sqrt(e/(3*Fj));r.moveTo(0,2*i),r.lineTo(-Fj*i,-i),r.lineTo(Fj*i,-i),r.closePath()}},Jc=-.5,Qc=Math.sqrt(3)/2,Uj=1/Math.sqrt(12),L1e=3*(Uj/2+1),Ree={draw:function(r,e){var i=Math.sqrt(e/L1e),o=i/2,a=i*Uj,s=o,l=i*Uj+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Jc*o-Qc*a,Qc*o+Jc*a),r.lineTo(Jc*s-Qc*l,Qc*s+Jc*l),r.lineTo(Jc*u-Qc*d,Qc*u+Jc*d),r.lineTo(Jc*o+Qc*a,Jc*a-Qc*o),r.lineTo(Jc*s+Qc*l,Jc*l-Qc*s),r.lineTo(Jc*u+Qc*d,Jc*d-Qc*u),r.closePath()}},Z1e=[Bj,xee,Dee,Iee,Oee,Pee,Ree];function N1e(){var n=pi(Bj),r=pi(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:pi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:pi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function bg(){}function kN(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 TN(n){this._context=n}function B1e(n){return new TN(n)}function Lee(n){this._context=n}function F1e(n){return new Lee(n)}function Zee(n){this._context=n}function U1e(n){return new Zee(n)}function Nee(n,r){this._basis=new TN(n),this._beta=r}TN.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:kN(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:kN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Lee.prototype={areaStart:bg,areaEnd:bg,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:kN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Zee.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:kN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Nee.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 H1e=function n(r){function e(i){return 1===r?new TN(i):new Nee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function MN(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 Hj(n,r){this._context=n,this._k=(1-r)/6}Hj.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:MN(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:MN(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 Hj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function jj(n,r){this._context=n,this._k=(1-r)/6}jj.prototype={areaStart:bg,areaEnd:bg,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:MN(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 G1e=function n(r){function e(i){return new jj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Gj(n,r){this._context=n,this._k=(1-r)/6}Gj.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:MN(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 z1e=function n(r){function e(i){return new Gj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function zj(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>ol){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>ol){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 Bee(n,r){this._context=n,this._alpha=r}Bee.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:zj(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 W1e=function n(r){function e(i){return r?new Bee(i,r):new Hj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Fee(n,r){this._context=n,this._alpha=r}Fee.prototype={areaStart:bg,areaEnd:bg,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:zj(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 V1e=function n(r){function e(i){return r?new Fee(i,r):new jj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);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(){(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:zj(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 Y1e=function n(r){function e(i){return r?new Uee(i,r):new Gj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Hee(n){this._context=n}function K1e(n){return new Hee(n)}function jee(n){return n<0?-1:1}function Gee(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(jee(a)+jee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function zee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function Wj(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 SN(n){this._context=n}function Wee(n){this._context=new Vee(n)}function Vee(n){this._context=n}function q1e(n){return new SN(n)}function J1e(n){return new Wee(n)}function Yee(n){this._context=n}function Kee(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<e-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*n[e-1]+n[e],r=1;r<e;++r)i=o[r]/a[r-1],a[r]-=i,s[r]-=i*s[r-1];for(o[e-1]=s[e-1]/a[e-1],r=e-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function Q1e(n){return new Yee(n)}function xN(n,r){this._context=n,this._t=r}function X1e(n){return new xN(n,.5)}function $1e(n){return new xN(n,0)}function ewe(n){return new xN(n,1)}function Aw(n,r){if((s=n.length)>1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e<s;++e)for(o=a,a=n[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Ow(n){for(var r=n.length,e=new Array(r);--r>=0;)e[r]=r;return e}function twe(n,r){return n[r]}function nwe(){var n=pi([]),r=Ow,e=Aw,i=twe;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l<d;++l){for(var q,C=s[l],Z=h[l]=new Array(u),z=0;z<u;++z)Z[z]=q=[0,+i(a[z],C,z,a)],q.data=a[z];Z.key=C}for(l=0,g=r(h);l<d;++l)h[g[l]].index=l;return e(h,g),h}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:pi(Zj.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:pi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?Ow:"function"==typeof a?a:pi(Zj.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?Aw:a,o):e},o}function rwe(n,r){if((i=n.length)>0){for(var e,i,s,o=0,a=n[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=n[e][o][1]||0;if(s)for(e=0;e<i;++e)n[e][o][1]/=s}Aw(n,r)}}function iwe(n,r){if((u=n.length)>1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i<d;++i)for(s=l=0,e=0;e<u;++e)(a=(o=n[r[e]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function owe(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=n[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}Aw(n,r)}}function awe(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,d=0;l<s;++l){for(var h=n[r[l]],g=h[i][1]||0,Z=(g-(h[i-1][1]||0))/2,z=0;z<l;++z){var q=n[r[z]];Z+=(q[i][1]||0)-(q[i-1][1]||0)}u+=g,d+=Z*g}o[i-1][1]+=o[i-1][0]=e,u&&(e-=d/u)}o[i-1][1]+=o[i-1][0]=e,Aw(n,r)}}function qee(n){var r=n.map(Jee);return Ow(n).sort(function(e,i){return r[e]-r[i]})}function Jee(n){for(var o,r=0,e=-1,i=n.length;++e<i;)(o=+n[e][1])&&(r+=o);return r}function swe(n){return qee(n).reverse()}function lwe(n){var e,i,r=n.length,o=n.map(Jee),a=Ow(n).sort(function(h,g){return o[g]-o[h]}),s=0,l=0,u=[],d=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],d.push(i));return d.reverse().concat(u)}function uwe(n){return Ow(n).reverse()}Hee.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,e){r=+r,e=+e,this._point?this._context.lineTo(r,e):(this._point=1,this._context.moveTo(r,e))}},SN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wj(this,this._t0,zee(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){var i=NaN;if(e=+e,(r=+r)!==this._x1||e!==this._y1){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,Wj(this,zee(this,i=Gee(this,r,e)),i);break;default:Wj(this,this._t0,i=Gee(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(Wee.prototype=Object.create(SN.prototype)).point=function(n,r){SN.prototype.point.call(this,r,n)},Vee.prototype={moveTo:function(r,e){this._context.moveTo(e,r)},closePath:function(){this._context.closePath()},lineTo:function(r,e){this._context.lineTo(e,r)},bezierCurveTo:function(r,e,i,o,a,s){this._context.bezierCurveTo(e,r,o,i,s,a)}},Yee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,e=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],e[0]):this._context.moveTo(r[0],e[0]),2===i)this._context.lineTo(r[1],e[1]);else for(var o=Kee(r),a=Kee(e),s=0,l=1;l<i;++s,++l)this._context.bezierCurveTo(o[0][s],a[0][s],o[1][s],a[1][s],r[l],e[l]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(r,e){this._x.push(+r),this._y.push(+e)}},xN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=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 Vj=new Date,Yj=new Date;function ws(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-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return ws(function(s){if(s>=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 Vj.setTime(+a),Yj.setTime(+s),n(Vj),n(Yj),Math.floor(e(Vj,Yj))},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 EN=ws(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});EN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ws(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):EN:null};var Qee=EN,Xee=EN.range,C0=6e4,AN=36e5,tte=ws(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()}),nte=tte,rte=tte.range,ite=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*C0)},function(n,r){return(r-n)/C0},function(n){return n.getMinutes()}),cwe=ite,dwe=ite.range,ote=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*C0)},function(n,r){n.setTime(+n+r*AN)},function(n,r){return(r-n)/AN},function(n){return n.getHours()}),pwe=ote,fwe=ote.range,ate=ws(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())*C0)/864e5},function(n){return n.getDate()-1}),hwe=ate,mwe=ate.range;function w0(n){return ws(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())*C0)/6048e5})}var Kj=w0(0),ste=w0(1),lte=w0(2),ute=w0(3),cte=w0(4),dte=w0(5),pte=w0(6),fte=Kj.range,_we=ste.range,gwe=lte.range,vwe=ute.range,ywe=cte.range,bwe=dte.range,Cwe=pte.range,hte=ws(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()}),wwe=hte,kwe=hte.range,qj=ws(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()});qj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(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 Twe=qj,Mwe=qj.range,mte=ws(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*C0)},function(n,r){return(r-n)/C0},function(n){return n.getUTCMinutes()}),Swe=mte,xwe=mte.range,_te=ws(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*AN)},function(n,r){return(r-n)/AN},function(n){return n.getUTCHours()}),Ewe=_te,Dwe=_te.range,gte=ws(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}),Awe=gte,Owe=gte.range;function k0(n){return ws(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 Jj=k0(0),vte=k0(1),yte=k0(2),bte=k0(3),Cte=k0(4),wte=k0(5),kte=k0(6),Tte=Jj.range,Iwe=vte.range,Pwe=yte.range,Rwe=bte.range,Lwe=Cte.range,Zwe=wte.range,Nwe=kte.range,Mte=ws(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()}),Bwe=Mte,Fwe=Mte.range,Qj=ws(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()});Qj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(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 Uwe=Qj,Hwe=Qj.range;function jwe(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 ON(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 $E(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function Ste(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=eD(o),h=tD(o),g=eD(a),C=tD(a),Z=eD(s),z=tD(s),q=eD(l),re=tD(l),ae=eD(u),Se=tD(u),Ce={a:function Tn(er){return s[er.getDay()]},A:function jn(er){return a[er.getDay()]},b:function zn(er){return u[er.getMonth()]},B:function or(er){return l[er.getMonth()]},c:null,d:Ate,e:Ate,f:pke,H:uke,I:cke,j:dke,L:Ote,m:fke,M:hke,p:function Sr(er){return o[+(er.getHours()>=12)]},Q:Lte,s:Zte,S:mke,u:_ke,U:gke,V:vke,w:yke,W:bke,x:null,X:null,y:Cke,Y:wke,Z:kke,"%":Rte},xe={a:function _r(er){return s[er.getUTCDay()]},A:function zr(er){return a[er.getUTCDay()]},b:function Ur(er){return u[er.getUTCMonth()]},B:function Kr(er){return l[er.getUTCMonth()]},c:null,d:Ite,e:Ite,f:xke,H:Tke,I:Mke,j:Ske,L:Pte,m:Eke,M:Dke,p:function Fo(er){return o[+(er.getUTCHours()>=12)]},Q:Lte,s:Zte,S:Ake,u:Oke,U:Ike,V:Pke,w:Rke,W:Lke,x:null,X:null,y:Zke,Y:Nke,Z:Bke,"%":Rte},Ve={a:function bt(er,wr,Sn){var gn=Z.exec(wr.slice(Sn));return gn?(er.w=z[gn[0].toLowerCase()],Sn+gn[0].length):-1},A:function Xe(er,wr,Sn){var gn=g.exec(wr.slice(Sn));return gn?(er.w=C[gn[0].toLowerCase()],Sn+gn[0].length):-1},b:function Pe(er,wr,Sn){var gn=ae.exec(wr.slice(Sn));return gn?(er.m=Se[gn[0].toLowerCase()],Sn+gn[0].length):-1},B:function pt(er,wr,Sn){var gn=q.exec(wr.slice(Sn));return gn?(er.m=re[gn[0].toLowerCase()],Sn+gn[0].length):-1},c:function Nt(er,wr,Sn){return ot(er,r,wr,Sn)},d:Ete,e:Ete,f:oke,H:Dte,I:Dte,j:tke,L:ike,m:eke,M:nke,p:function ht(er,wr,Sn){var gn=d.exec(wr.slice(Sn));return gn?(er.p=h[gn[0].toLowerCase()],Sn+gn[0].length):-1},Q:ske,s:lke,S:rke,u:Ywe,U:Kwe,V:qwe,w:Vwe,W:Jwe,x:function Gt(er,wr,Sn){return ot(er,e,wr,Sn)},X:function It(er,wr,Sn){return ot(er,i,wr,Sn)},y:Xwe,Y:Qwe,Z:$we,"%":ake};function at(er,wr){return function(Sn){var Bn,nr,vr,gn=[],tr=-1,un=0,bn=er.length;for(Sn instanceof Date||(Sn=new Date(+Sn));++tr<bn;)37===er.charCodeAt(tr)&&(gn.push(er.slice(un,tr)),null!=(nr=xte[Bn=er.charAt(++tr)])?Bn=er.charAt(++tr):nr="e"===Bn?" ":"0",(vr=wr[Bn])&&(Bn=vr(Sn,nr)),gn.push(Bn),un=tr+1);return gn.push(er.slice(un,tr)),gn.join("")}}function De(er,wr){return function(Sn){var un,bn,gn=$E(1900);if(ot(gn,er,Sn+="",0)!=Sn.length)return null;if("Q"in gn)return new Date(gn.Q);if("p"in gn&&(gn.H=gn.H%12+12*gn.p),"V"in gn){if(gn.V<1||gn.V>53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=ON($E(gn.y))).getUTCDay(),un=bn>4||0===bn?g0.ceil(un):g0(un),un=HE.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=wr($E(gn.y))).getDay(),un=bn>4||0===bn?m0.ceil(un):m0(un),un=UE.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?ON($E(gn.y)).getUTCDay():wr($E(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,ON(gn)):wr(gn)}}function ot(er,wr,Sn,gn){for(var Bn,nr,tr=0,un=wr.length,bn=Sn.length;tr<un;){if(gn>=bn)return-1;if(37===(Bn=wr.charCodeAt(tr++))){if(Bn=wr.charAt(tr++),!(nr=Ve[Bn in xte?wr.charAt(tr++):Bn])||(gn=nr(er,Sn,gn))<0)return-1}else if(Bn!=Sn.charCodeAt(gn++))return-1}return gn}return Ce.x=at(e,Ce),Ce.X=at(i,Ce),Ce.c=at(r,Ce),xe.x=at(e,xe),xe.X=at(i,xe),xe.c=at(r,xe),{format:function(wr){var Sn=at(wr+="",Ce);return Sn.toString=function(){return wr},Sn},parse:function(wr){var Sn=De(wr+="",jwe);return Sn.toString=function(){return wr},Sn},utcFormat:function(wr){var Sn=at(wr+="",xe);return Sn.toString=function(){return wr},Sn},utcParse:function(wr){var Sn=De(wr,ON);return Sn.toString=function(){return wr},Sn}}}var Iw,Nte,Bte,Xj,$j,xte={"-":"",_:" ",0:"0"},al=/^\s*\d+/,Gwe=/^%/,zwe=/[\\^$*+?|[\]().{}]/g;function wo(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Wwe(n){return n.replace(zwe,"\\$&")}function eD(n){return new RegExp("^(?:"+n.map(Wwe).join("|")+")","i")}function tD(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function Vwe(n,r,e){var i=al.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Ywe(n,r,e){var i=al.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Kwe(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function qwe(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function Jwe(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Qwe(n,r,e){var i=al.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function $we(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 eke(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ete(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function tke(n,r,e){var i=al.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Dte(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function nke(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function rke(n,r,e){var i=al.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function ike(n,r,e){var i=al.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function oke(n,r,e){var i=al.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function ake(n,r,e){var i=Gwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function ske(n,r,e){var i=al.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function lke(n,r,e){var i=al.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ate(n,r){return wo(n.getDate(),r,2)}function uke(n,r){return wo(n.getHours(),r,2)}function cke(n,r){return wo(n.getHours()%12||12,r,2)}function dke(n,r){return wo(1+UE.count(tp(n),n),r,3)}function Ote(n,r){return wo(n.getMilliseconds(),r,3)}function pke(n,r){return Ote(n,r)+"000"}function fke(n,r){return wo(n.getMonth()+1,r,2)}function hke(n,r){return wo(n.getMinutes(),r,2)}function mke(n,r){return wo(n.getSeconds(),r,2)}function _ke(n){var r=n.getDay();return 0===r?7:r}function gke(n,r){return wo(cN.count(tp(n),n),r,2)}function vke(n,r){var e=n.getDay();return n=e>=4||0===e?rm(n):rm.ceil(n),wo(rm.count(tp(n),n)+(4===tp(n).getDay()),r,2)}function yke(n){return n.getDay()}function bke(n,r){return wo(m0.count(tp(n),n),r,2)}function Cke(n,r){return wo(n.getFullYear()%100,r,2)}function wke(n,r){return wo(n.getFullYear()%1e4,r,4)}function kke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+wo(r/60|0,"0",2)+wo(r%60,"0",2)}function Ite(n,r){return wo(n.getUTCDate(),r,2)}function Tke(n,r){return wo(n.getUTCHours(),r,2)}function Mke(n,r){return wo(n.getUTCHours()%12||12,r,2)}function Ske(n,r){return wo(1+HE.count(np(n),n),r,3)}function Pte(n,r){return wo(n.getUTCMilliseconds(),r,3)}function xke(n,r){return Pte(n,r)+"000"}function Eke(n,r){return wo(n.getUTCMonth()+1,r,2)}function Dke(n,r){return wo(n.getUTCMinutes(),r,2)}function Ake(n,r){return wo(n.getUTCSeconds(),r,2)}function Oke(n){var r=n.getUTCDay();return 0===r?7:r}function Ike(n,r){return wo(pN.count(np(n),n),r,2)}function Pke(n,r){var e=n.getUTCDay();return n=e>=4||0===e?im(n):im.ceil(n),wo(im.count(np(n),n)+(4===np(n).getUTCDay()),r,2)}function Rke(n){return n.getUTCDay()}function Lke(n,r){return wo(g0.count(np(n),n),r,2)}function Zke(n,r){return wo(n.getUTCFullYear()%100,r,2)}function Nke(n,r){return wo(n.getUTCFullYear()%1e4,r,4)}function Bke(){return"+0000"}function Rte(){return"%"}function Lte(n){return+n}function Zte(n){return Math.floor(+n/1e3)}function Fte(n){return Iw=Ste(n),Nte=Iw.format,Bte=Iw.parse,Xj=Iw.utcFormat,$j=Iw.utcParse,Iw}Fte({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 Ute="%Y-%m-%dT%H:%M:%S.%LZ";var Uke=Date.prototype.toISOString?function Fke(n){return n.toISOString()}:Xj(Ute),Hke=Uke;var Gke=+new Date("2000-01-01T00:00:00.000Z")?function jke(n){var r=new Date(n);return isNaN(r)?null:r}:$j(Ute),zke=Gke;function Wke(n,r,e){var i=new aE,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?ug():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function Vke(){}function eG(n){return null==n?Vke:function(){return this.querySelector(n)}}function Kke(){return[]}function Hte(n){return null==n?Kke:function(){return this.querySelectorAll(n)}}function jte(n){return function(){return this.matches(n)}}function Gte(n){return new Array(n.length)}function IN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}IN.prototype={constructor:IN,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 $ke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new IN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function eTe(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new IN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function sTe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var tG="http://www.w3.org/1999/xhtml",Wte={svg:"http://www.w3.org/2000/svg",xhtml:tG,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function PN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Wte.hasOwnProperty(r)?{space:Wte[r],local:n}:n}function hTe(n){return function(){this.removeAttribute(n)}}function mTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function _Te(n,r){return function(){this.setAttribute(n,r)}}function gTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function vTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function yTe(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 Vte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function CTe(n){return function(){this.style.removeProperty(n)}}function wTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function kTe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Pw(n,r){return n.style.getPropertyValue(r)||Vte(n).getComputedStyle(n,null).getPropertyValue(r)}function MTe(n){return function(){delete this[n]}}function STe(n,r){return function(){this[n]=r}}function xTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Yte(n){return n.trim().split(/^|\s+/)}function nG(n){return n.classList||new Kte(n)}function Kte(n){this._node=n,this._names=Yte(n.getAttribute("class")||"")}function qte(n,r){for(var e=nG(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function Jte(n,r){for(var e=nG(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function DTe(n){return function(){qte(this,n)}}function ATe(n){return function(){Jte(this,n)}}function OTe(n,r){return function(){(r.apply(this,arguments)?qte:Jte)(this,n)}}function PTe(){this.textContent=""}function RTe(n){return function(){this.textContent=n}}function LTe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function NTe(){this.innerHTML=""}function BTe(n){return function(){this.innerHTML=n}}function FTe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function HTe(){this.nextSibling&&this.parentNode.appendChild(this)}function GTe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function WTe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===tG&&r.documentElement.namespaceURI===tG?r.createElement(n):r.createElementNS(e,n)}}function VTe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Qte(n){var r=PN(n);return(r.local?VTe:WTe)(r)}function KTe(){return null}function JTe(){var n=this.parentNode;n&&n.removeChild(this)}function XTe(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function $Te(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}Kte.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var e=this._names.indexOf(r);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var Xte={},T0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Xte={mouseenter:"mouseover",mouseleave:"mouseout"}));function rMe(n,r,e){return n=$te(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function $te(n,r,e){return function(i){var o=T0;T0=i;try{n.call(this,this.__data__,r,e)}finally{T0=o}}}function iMe(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 oMe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function aMe(n,r,e){var i=Xte.hasOwnProperty(n.type)?rMe:$te;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function ene(n,r,e){var i=Vte(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function lMe(n,r){return function(){return ene(this,n,r)}}function uMe(n,r){return function(){return ene(this,n,r.apply(this,arguments))}}var dMe=[null];function rp(n,r){this._groups=n,this._parents=r}function tne(){return new rp([[document.documentElement]],dMe)}rp.prototype=tne.prototype={constructor:rp,select:function Yke(n){"function"!=typeof n&&(n=eG(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new rp(i,this._parents)},selectAll:function qke(n){"function"!=typeof n&&(n=Hte(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new rp(i,o)},filter:function Jke(n){"function"!=typeof n&&(n=jte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new rp(i,this._parents)},data:function tTe(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(at){Z[++d]=at}),Z;var e=r?eTe:$ke,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Xke(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var xe,Ve,Se=0,Ce=0;Se<z;++Se)if(xe=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);xe._next=Ve||null}}return(s=new rp(s,i))._enter=l,s._exit=u,s},enter:function Qke(){return new rp(this._enter||this._groups.map(Gte),this._parents)},exit:function nTe(){return new rp(this._exit||this._groups.map(Gte),this._parents)},join:function rTe(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function iTe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new rp(s,this._parents)},order:function oTe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function aTe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=sTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new rp(o,this._parents).order()},call:function lTe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function uTe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function cTe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function dTe(){var n=0;return this.each(function(){++n}),n},empty:function pTe(){return!this.node()},each:function fTe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function bTe(n,r){var e=PN(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?mTe:hTe:"function"==typeof r?e.local?yTe:vTe:e.local?gTe:_Te)(e,r))},style:function TTe(n,r,e){return arguments.length>1?this.each((null==r?CTe:"function"==typeof r?kTe:wTe)(n,r,null==e?"":e)):Pw(this.node(),n)},property:function ETe(n,r){return arguments.length>1?this.each((null==r?MTe:"function"==typeof r?xTe:STe)(n,r)):this.node()[n]},classed:function ITe(n,r){var e=Yte(n+"");if(arguments.length<2){for(var i=nG(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?OTe:r?DTe:ATe)(e,r))},text:function ZTe(n){return arguments.length?this.each(null==n?PTe:("function"==typeof n?LTe:RTe)(n)):this.node().textContent},html:function UTe(n){return arguments.length?this.each(null==n?NTe:("function"==typeof n?FTe:BTe)(n)):this.node().innerHTML},raise:function jTe(){return this.each(HTe)},lower:function zTe(){return this.each(GTe)},append:function YTe(n){var r="function"==typeof n?n:Qte(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function qTe(n,r){var e="function"==typeof n?n:Qte(n),i=null==r?KTe:"function"==typeof r?r:eG(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function QTe(){return this.each(JTe)},clone:function eMe(n){return this.select(n?$Te:XTe)},datum:function tMe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function sMe(n,r,e){var o,s,i=iMe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?aMe:oMe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function cMe(n,r){return this.each(("function"==typeof r?uMe:lMe)(n,r))}};var nD=tne,pMe=Qy("start","end","interrupt"),fMe=[];function ZN(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function hMe(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 lE(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),delete i[h])}if(lE(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,C=o.length;++g<C;)o[g].call(null,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=sE(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:pMe,tween:fMe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function aG(n,r){var e=ip(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function M0(n,r){var e=ip(n,r);if(e.state>2)throw new Error("too late; already started");return e}function ip(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function ine(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 Cg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var rD,lG,sne,NN,one=180/Math.PI,sG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ane(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*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*one,skewX:Math.atan(u)*one,scaleX:s,scaleY:l}}function lne(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:Cg(d,g)},{i:q-2,x:Cg(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Cg(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:Cg(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:Cg(d,g)},{i:q-2,x:Cg(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<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var vMe=lne(function _Me(n){return"none"===n?sG:(rD||(rD=document.createElement("DIV"),lG=document.documentElement,sne=document.defaultView),rD.style.transform=n,n=sne.getComputedStyle(lG.appendChild(rD),null).getPropertyValue("transform"),lG.removeChild(rD),ane(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),yMe=lne(function gMe(n){return null!=n&&(NN||(NN=document.createElementNS("http://www.w3.org/2000/svg","g")),NN.setAttribute("transform",n),n=NN.transform.baseVal.consolidate())?ane((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):sG},", ",")",")");function bMe(n,r){var e,i;return function(){var o=M0(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function CMe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=M0(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function uG(n,r,e){var i=n._id;return n.each(function(){var o=M0(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return ip(o,i).value[r]}}function cG(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function une(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function iD(){}var BN=1/.7,Rw="\\s*([+-]?\\d+)\\s*",aD="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kMe=/^#([0-9a-f]{3,8})$/,TMe=new RegExp("^rgb\\("+[Rw,Rw,Rw]+"\\)$"),MMe=new RegExp("^rgb\\("+[Cf,Cf,Cf]+"\\)$"),SMe=new RegExp("^rgba\\("+[Rw,Rw,Rw,aD]+"\\)$"),xMe=new RegExp("^rgba\\("+[Cf,Cf,Cf,aD]+"\\)$"),EMe=new RegExp("^hsl\\("+[aD,Cf,Cf]+"\\)$"),DMe=new RegExp("^hsla\\("+[aD,Cf,Cf,aD]+"\\)$"),cne={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 dne(){return this.rgb().formatHex()}function pne(){return this.rgb().formatRgb()}function sD(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=kMe.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?fne(r):3===e?new yc(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?FN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?FN(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=TMe.exec(n))?new yc(r[1],r[2],r[3],1):(r=MMe.exec(n))?new yc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=SMe.exec(n))?FN(r[1],r[2],r[3],r[4]):(r=xMe.exec(n))?FN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=EMe.exec(n))?_ne(r[1],r[2]/100,r[3]/100,1):(r=DMe.exec(n))?_ne(r[1],r[2]/100,r[3]/100,r[4]):cne.hasOwnProperty(n)?fne(cne[n]):"transparent"===n?new yc(NaN,NaN,NaN,0):null}function fne(n){return new yc(n>>16&255,n>>8&255,255&n,1)}function FN(n,r,e,i){return i<=0&&(n=r=e=NaN),new yc(n,r,e,i)}function OMe(n){return n instanceof iD||(n=sD(n)),n?new yc((n=n.rgb()).r,n.g,n.b,n.opacity):new yc}function UN(n,r,e,i){return 1===arguments.length?OMe(n):new yc(n,r,e,null==i?1:i)}function yc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function hne(){return"#"+dG(this.r)+dG(this.g)+dG(this.b)}function mne(){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 dG(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function _ne(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new wf(n,r,e,i)}function gne(n){if(n instanceof wf)return new wf(n.h,n.s,n.l,n.opacity);if(n instanceof iD||(n=sD(n)),!n)return new wf;if(n instanceof wf)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*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new wf(s,l,u,n.opacity)}function wf(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function pG(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 vne(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 yne(n){return function(){return n}}function bne(n,r){return function(e){return n+e*r}}function ZMe(n){return 1==(n=+n)?Cne:function(r,e){return e-r?function LMe(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):yne(isNaN(r)?e:r)}}function Cne(n,r){var e=r-n;return e?bne(n,e):yne(isNaN(n)?r:n)}cG(iD,sD,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:dne,formatHex:dne,formatHsl:function AMe(){return gne(this).formatHsl()},formatRgb:pne,toString:pne}),cG(yc,UN,une(iD,{brighter:function(r){return r=null==r?BN:Math.pow(BN,r),new yc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new yc(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:hne,formatHex:hne,formatRgb:mne,toString:mne})),cG(wf,function IMe(n,r,e,i){return 1===arguments.length?gne(n):new wf(n,r,e,null==i?1:i)},une(iD,{brighter:function(r){return r=null==r?BN:Math.pow(BN,r),new wf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wf(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 yc(pG(r>=240?r-240:r+120,a,o),pG(r,a,o),pG(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 wne=function n(r){var e=ZMe(r);function i(o,a){var s=e((o=UN(o)).r,(a=UN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Cne(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 kne(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<e;++s)l=UN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}kne(function PMe(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=i<r-1?n[i+2]:2*a-o;return vne((e-i/r)*r,s,o,a,l)}}),kne(function RMe(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return vne((e-i/r)*r,o,a,s,l)}});var fG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hG=new RegExp(fG.source,"g");function FMe(n,r){var i,o,a,e=fG.lastIndex=hG.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=fG.exec(n))&&(o=hG.exec(r));)(a=o.index)>e&&(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:Cg(i,o)})),e=hG.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function BMe(n){return function(r){return n(r)+""}}(u[0].x):function NMe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function Tne(n,r){var e;return("number"==typeof r?Cg:r instanceof sD?wne:(e=sD(r))?(r=e,wne):FMe)(n,r)}function UMe(n){return function(){this.removeAttribute(n)}}function HMe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function jMe(n,r,e){var i,o;return function(){var a=this.getAttribute(n);return a===e?null:a===i?o:o=r(i=a,e)}}function GMe(n,r,e){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===e?null:a===i?o:o=r(i=a,e)}}function zMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function WMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function YMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return e._value=r,e}function KMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return e._value=r,e}function JMe(n,r){return function(){aG(this,n).delay=+r.apply(this,arguments)}}function QMe(n,r){return r=+r,function(){aG(this,n).delay=r}}function $Me(n,r){return function(){M0(this,n).duration=+r.apply(this,arguments)}}function eSe(n,r){return r=+r,function(){M0(this,n).duration=r}}function nSe(n,r){if("function"!=typeof r)throw new Error;return function(){M0(this,n).ease=r}}function sSe(n,r,e){var i,o,a=function aSe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?aG:M0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var fSe=nD.prototype.constructor;function bSe(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 SSe=0;function kf(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Mne(n){return nD().transition(n)}function Sne(){return++SSe}var Lw=nD.prototype;kf.prototype=Mne.prototype={constructor:kf,select:function dSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=eG(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,ZN(d[C],r,e,C,d,ip(h,e)));return new kf(a,this._parents,r,e)},selectAll:function pSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hte(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var Z,C=n.call(h,h.__data__,g,u),z=ip(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&ZN(Z,r,e,q,C,z);a.push(C),s.push(h)}return new kf(a,s,r,e)},filter:function iSe(n){"function"!=typeof n&&(n=jte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new kf(i,this._parents,this._name,this._id)},merge:function oSe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new kf(s,this._parents,this._name,this._id)},selection:function hSe(){return new fSe(this._groups,this._parents)},transition:function MSe(){for(var n=this._name,r=this._id,e=Sne(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=ip(u,r);ZN(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kf(i,this._parents,n,e)},call:Lw.call,nodes:Lw.nodes,node:Lw.node,size:Lw.size,empty:Lw.empty,each:Lw.each,on:function lSe(n,r){var e=this._id;return arguments.length<2?ip(this.node(),e).on.on(n):this.each(sSe(e,n,r))},attr:function VMe(n,r){var e=PN(n),i="transform"===e?yMe:Tne;return this.attrTween(n,"function"==typeof r?(e.local?WMe:zMe)(e,i,uG(this,"attr."+n,r)):null==r?(e.local?HMe:UMe)(e):(e.local?GMe:jMe)(e,i,r+""))},attrTween:function qMe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=PN(n);return this.tween(e,(i.local?YMe:KMe)(i,r))},style:function ySe(n,r,e){var i="transform"==(n+="")?vMe:Tne;return null==r?this.styleTween(n,function mSe(n,r){var e,i,o;return function(){var a=Pw(this,n),s=(this.style.removeProperty(n),Pw(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,function _Se(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function vSe(n,r,e){var i,o,a;return function(){var s=Pw(this,n),l=e(this);return null==l&&(this.style.removeProperty(n),l=Pw(this,n)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(n,i,uG(this,"style."+n,r)):function gSe(n,r,e){var i,o;return function(){var a=Pw(this,n);return a===e?null:a===i?o:o=r(i=a,e)}}(n,i,r+""),e)},styleTween:function CSe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,bSe(n,r,null==e?"":e))},text:function TSe(n){return this.tween("text","function"==typeof n?function kSe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(uG(this,"text",n)):function wSe(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function cSe(){return this.on("end.remove",function uSe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function wMe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=ip(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?bMe:CMe)(e,n,r))},delay:function XMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?JMe:QMe)(r,n)):ip(this.node(),r).delay},duration:function tSe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?$Me:eSe)(r,n)):ip(this.node(),r).duration},ease:function rSe(n){var r=this._id;return arguments.length?this.each(nSe(r,n)):ip(this.node(),r).ease}};var mG={time:null,delay:0,duration:250,ease:VL};function xSe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return mG.time=ug(),mG;return e}nD.prototype.interrupt=function mMe(n){return this.each(function(){ine(this,n)})},nD.prototype.transition=function ESe(n){var r,e;n instanceof kf?(r=n._id,n=n._name):(r=Sne(),(e=mG).time=ug(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&ZN(u,n,r,d,s,e||xSe(u,r));return new kf(i,this._parents,n,r)};var DSe=[null];function ASe(n,r){var i,o,e=n.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new kf([[n]],DSe,r,+o);return null}function xne(n){return function(){return n}}function OSe(n){return n[0]}function ISe(n){return n[1]}function _G(){this._=null}function HN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function lD(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 uD(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 Ene(n){for(;n.L;)n=n.L;return n}_G.prototype={constructor:_G,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=Ene(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&&(lD(this,i),i=(r=i).U),i.C=!1,o.C=!0,uD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(uD(this,i),i=(r=i).U),i.C=!1,o.C=!0,lD(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?Ene(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,lD(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,uD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,lD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,uD(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,lD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,uD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Dne=_G;function cD(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),bc[n.index].halfedges.push(a),bc[r.index].halfedges.push(a),o}function dD(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 PSe(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(q<g)return;q<C&&(C=q)}else if(Z>0){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(q<g)return;q<C&&(C=q)}if(q=e-u,z||!(q>0)){if(q/=z,z<0){if(q<g)return;q<C&&(C=q)}else if(z>0){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(q<g)return;q<C&&(C=q)}return!(g>0)&&!(C<1)||(g>0&&(n[0]=[l+g*Z,u+g*z]),C<1&&(n[1]=[l+C*Z,u+C*z])),!0}}}}}function RSe(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<r||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]<e)return}else s=[Z,o];a=[Z,e]}}else if(re=z-(q=(d-g)/(C-h))*Z,q<-1||q>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]<e)return}else s=[(o-re)/q,o];a=[(e-re)/q,e]}else if(h<C){if(s){if(s[0]>=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]<r)return}else s=[i,q*i+re];a=[r,q*r+re]}return n[0]=s,n[1]=a,!0}function NSe(n,r){var e=n.site,i=r.left,o=r.right;return e===o&&(o=i,i=e),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(e===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function Ane(n,r){return r[+(r.left!==n.site)]}function BSe(n,r){return r[+(r.left===n.site)]}var gG,One=[];function HSe(){HN(this),this.x=this.y=this.arc=this.site=this.cy=null}function Zw(n){var r=n.P,e=n.N;if(r&&e){var i=r.site,o=n.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,d=i[1]-l,h=a[0]-s,g=a[1]-l,C=2*(u*g-d*h);if(!(C>=-VSe)){var Z=u*u+d*d,z=h*h+g*g,q=(g*Z-d*z)/C,re=(u*z-h*Z)/C,ae=One.pop()||new HSe;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=pD._;Ce;)if(ae.y<Ce.y||ae.y===Ce.y&&ae.x<=Ce.x){if(!Ce.L){Se=Ce.P;break}Ce=Ce.L}else{if(!Ce.R){Se=Ce;break}Ce=Ce.R}pD.insert(Se,ae),Se||(gG=ae)}}}}function Nw(n){var r=n.circle;r&&(r.P||(gG=r.N),pD.remove(r),One.push(r),HN(r),n.circle=null)}var Ine=[];function jSe(){HN(this),this.edge=this.site=this.circle=null}function Pne(n){var r=Ine.pop()||new jSe;return r.site=n,r}function vG(n){Nw(n),Bw.remove(n),Ine.push(n),HN(n)}function GSe(n){var r=n.circle,e=r.x,i=r.cy,o=[e,i],a=n.P,s=n.N,l=[n];vG(n);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<ko&&Math.abs(i-u.circle.cy)<ko;)a=u.P,l.unshift(u),vG(u),u=a;l.unshift(u),Nw(u);for(var d=s;d.circle&&Math.abs(e-d.circle.x)<ko&&Math.abs(i-d.circle.cy)<ko;)s=d.N,l.push(d),vG(d),d=s;l.push(d),Nw(d);var g,h=l.length;for(g=1;g<h;++g)d=l[g],u=l[g-1],jN(d.edge,u.site,d.site,o);u=l[0],(d=l[h-1]).edge=cD(u.site,d.site,null,o),Zw(u),Zw(d)}function zSe(n){for(var i,o,a,s,r=n[0],e=n[1],l=Bw._;l;)if((a=Rne(l,e)-r)>ko)l=l.L;else{if(!((s=r-WSe(l,e))>ko)){a>-ko?(i=l.P,o=l):s>-ko?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function ZSe(n){return bc[n.index]={site:n,halfedges:[]}}(n);var u=Pne(n);if(Bw.insert(i,u),i||o){if(i===o)return Nw(i),o=Pne(i.site),Bw.insert(u,o),u.edge=o.edge=cD(i.site,u.site),Zw(i),void Zw(o);if(!o)return void(u.edge=cD(i.site,u.site));Nw(i),Nw(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,xe=[(re*Se-Z*Ce)/ae+h,(C*Ce-q*Se)/ae+g];jN(o.edge,d,z,xe),u.edge=cD(d,n,null,xe),o.edge=cD(n,z,null,xe),Zw(i),Zw(o)}}function Rne(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 WSe(n,r){var e=n.N;if(e)return Rne(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var Bw,bc,pD,Sl,ko=1e-6,VSe=1e-12;function YSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function KSe(n,r){return r[1]-n[1]||r[0]-n[0]}function yG(n,r){var i,o,a,e=n.sort(KSe).pop();for(Sl=[],bc=new Array(n.length),Bw=new Dne,pD=new Dne;;)if(a=gG,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(zSe(e),i=e[0],o=e[1]),e=n.pop();else{if(!a)break;GSe(a.arc)}if(function FSe(){for(var e,i,o,a,n=0,r=bc.length;n<r;++n)if((e=bc[n])&&(a=(i=e.halfedges).length)){var s=new Array(a),l=new Array(a);for(o=0;o<a;++o)s[o]=o,l[o]=NSe(e,Sl[i[o]]);for(s.sort(function(u,d){return l[d]-l[u]}),o=0;o<a;++o)l[o]=i[s[o]];for(o=0;o<a;++o)i[o]=l[o]}}(),r){var s=+r[0][0],l=+r[0][1],u=+r[1][0],d=+r[1][1];(function LSe(n,r,e,i){for(var a,o=Sl.length;o--;)RSe(a=Sl[o],n,r,e,i)&&PSe(a,n,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>ko||Math.abs(a[0][1]-a[1][1])>ko)||delete Sl[o]})(s,l,u,d),function USe(n,r,e,i){var a,s,l,u,d,h,g,C,Z,z,q,re,o=bc.length,ae=!0;for(a=0;a<o;++a)if(s=bc[a]){for(l=s.site,u=(d=s.halfedges).length;u--;)Sl[d[u]]||d.splice(u,1);for(u=0,h=d.length;u<h;)q=(z=BSe(s,Sl[d[u]]))[0],re=z[1],C=(g=Ane(s,Sl[d[++u%h]]))[0],Z=g[1],(Math.abs(q-C)>ko||Math.abs(re-Z)>ko)&&(d.splice(u,0,Sl.push(dD(l,z,Math.abs(q-n)<ko&&i-re>ko?[n,Math.abs(C-n)<ko?Z:i]:Math.abs(re-i)<ko&&e-q>ko?[Math.abs(Z-i)<ko?C:e,i]:Math.abs(q-e)<ko&&re-r>ko?[e,Math.abs(C-e)<ko?Z:r]:Math.abs(re-r)<ko&&q-n>ko?[Math.abs(Z-r)<ko?C:n,r]:null))-1),++h);h&&(ae=!1)}if(ae){var Se,Ce,xe,Ve=1/0;for(a=0,ae=null;a<o;++a)(s=bc[a])&&(xe=(Se=(l=s.site)[0]-n)*Se+(Ce=l[1]-r)*Ce)<Ve&&(Ve=xe,ae=s);if(ae){var at=[n,r],De=[n,i],ot=[e,i],ht=[e,r];ae.halfedges.push(Sl.push(dD(l=ae.site,at,De))-1,Sl.push(dD(l,De,ot))-1,Sl.push(dD(l,ot,ht))-1,Sl.push(dD(l,ht,at))-1)}}for(a=0;a<o;++a)(s=bc[a])&&(s.halfedges.length||delete bc[a])}(s,l,u,d)}this.edges=Sl,this.cells=bc,Bw=pD=Sl=bc=null}function qSe(){var n=OSe,r=ISe,e=null;function i(o){return new yG(o.map(function(a,s){var l=[Math.round(n(a,s,o)/ko)*ko,Math.round(r(a,s,o)/ko)*ko];return l.index=s,l.data=a,l}),e)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:xne(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:xne(+o),i):r},i.extent=function(o){return arguments.length?(e=null==o?null:[[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]],i):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},i.size=function(o){return arguments.length?(e=null==o?null:[[0,0],[+o[0],+o[1]]],i):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},i}yG.prototype={constructor:yG,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return Ane(e,r[o])});return i.data=e.site.data,i})},triangles:function(){var r=[],e=this.edges;return this.cells.forEach(function(i,o){if(u=(s=i.halfedges).length)for(var s,u,d,a=i.site,l=-1,h=e[s[u-1]],g=h.left===a?h.right:h.left;++l<u;)d=g,g=(h=e[s[l]]).left===a?h.right:h.left,d&&g&&o<d.index&&o<g.index&&YSe(a,d,g)<0&&r.push([a.data,d.data,g.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,e,i){for(var a,u,o=this,s=o._found||0,l=o.cells.length;!(u=o.cells[s]);)if(++s>=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;ae<g&&(g=ae,s=z.index)}})}while(null!==s);return o._found=a,null==i||g<=i*i?u.site:null}};var fD=Math.SQRT2;function Zne(n){return((n=Math.exp(n))+1/n)/2}function $Se(n,r){var g,C,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)C=Math.log(l/o)/fD,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(fD*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/fD,g=function(Ce){var xe=Ce*C,Ve=Zne(re),at=o/(2*Z)*(Ve*function XSe(n){return((n=Math.exp(2*n))-1)/(n+1)}(fD*xe+re)-function QSe(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+at*u,i+at*d,o*Ve/Zne(fD*xe+re)]}}return g.duration=1e3*C,g}function GN(n){return function(){return n}}function exe(n,r,e){this.target=n,this.type=r,this.transform=e}function sm(n,r,e){this.k=n,this.x=r,this.y=e}sm.prototype={constructor:sm,scale:function(r){return 1===r?this:new sm(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new sm(this.k,this.x+this.k*r,this.y+this.k*e)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var zN=new sm(1,0,0);function Nne(n){return n.__zoom||zN}function CG(){Zn.stopImmediatePropagation()}function hD(){Zn.preventDefault(),Zn.stopImmediatePropagation()}function txe(){return!Zn.ctrlKey&&!Zn.button}function nxe(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Bne(){return this.__zoom||zN}function rxe(){return-Zn.deltaY*(1===Zn.deltaMode?.05:Zn.deltaMode?1:.002)}function ixe(){return navigator.maxTouchPoints||"ontouchstart"in this}function oxe(n,r,e){var i=n.invertX(r[0][0])-e[0][0],o=n.invertX(r[1][0])-e[1][0],a=n.invertY(r[0][1])-e[0][1],s=n.invertY(r[1][1])-e[1][1];return n.translate(o>i?(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 Fne(){var h,g,n=txe,r=nxe,e=oxe,i=rxe,o=ixe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=$Se,d=Qy("start","zoom","end"),C=500,z=0;function q(Pe){Pe.property("__zoom",Bne).on("wheel.zoom",at).on("mousedown.zoom",De).on("dblclick.zoom",ot).filter(o).on("touchstart.zoom",ht).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",Xe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Pe,pt){return(pt=Math.max(a[0],Math.min(a[1],pt)))===Pe.k?Pe:new sm(pt,Pe.x,Pe.y)}function ae(Pe,pt,Nt){var Gt=pt[0]-Nt[0]*Pe.k,It=pt[1]-Nt[1]*Pe.k;return Gt===Pe.x&&It===Pe.y?Pe:new sm(Pe.k,Gt,It)}function Se(Pe){return[(+Pe[0][0]+ +Pe[1][0])/2,(+Pe[0][1]+ +Pe[1][1])/2]}function Ce(Pe,pt,Nt){Pe.on("start.zoom",function(){xe(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){xe(this,arguments).end()}).tween("zoom",function(){var Gt=this,It=arguments,Tn=xe(Gt,It),jn=r.apply(Gt,It),zn=Nt||Se(jn),or=Math.max(jn[1][0]-jn[0][0],jn[1][1]-jn[0][1]),Sr=Gt.__zoom,_r="function"==typeof pt?pt.apply(Gt,It):pt,zr=u(Sr.invert(zn).concat(or/Sr.k),_r.invert(zn).concat(or/_r.k));return function(Ur){if(1===Ur)Ur=_r;else{var Kr=zr(Ur),Fo=or/Kr[2];Ur=new sm(Fo,zn[0]-Kr[0]*Fo,zn[1]-Kr[1]*Fo)}Tn.zoom(null,Ur)}})}function xe(Pe,pt,Nt){return!Nt&&Pe.__zooming||new Ve(Pe,pt)}function Ve(Pe,pt){this.that=Pe,this.args=pt,this.active=0,this.extent=r.apply(Pe,pt),this.taps=0}function at(){if(n.apply(this,arguments)){var Pe=xe(this,arguments),pt=this.__zoom,Nt=Math.max(a[0],Math.min(a[1],pt.k*Math.pow(2,i.apply(this,arguments)))),Gt=Kd(this);pt.k!==Nt&&(Pe.wheel?((Pe.mouse[0][0]!==Gt[0]||Pe.mouse[0][1]!==Gt[1])&&(Pe.mouse[1]=pt.invert(Pe.mouse[0]=Gt)),clearTimeout(Pe.wheel)):(Pe.mouse=[Gt,pt.invert(Gt)],nw(this),Pe.start()),hD(),Pe.wheel=setTimeout(It,150),Pe.zoom("mouse",e(ae(re(pt,Nt),Pe.mouse[0],Pe.mouse[1]),Pe.extent,s)))}function It(){Pe.wheel=null,Pe.end()}}function De(){if(!g&&n.apply(this,arguments)){var Pe=xe(this,arguments,!0),pt=vi(Zn.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",jn,!0),Nt=Kd(this),Gt=Zn.clientX,It=Zn.clientY;OL(Zn.view),CG(),Pe.mouse=[Nt,this.__zoom.invert(Nt)],nw(this),Pe.start()}function Tn(){if(hD(),!Pe.moved){var zn=Zn.clientX-Gt,or=Zn.clientY-It;Pe.moved=zn*zn+or*or>z}Pe.zoom("mouse",e(ae(Pe.that.__zoom,Pe.mouse[0]=Kd(Pe.that),Pe.mouse[1]),Pe.extent,s))}function jn(){pt.on("mousemove.zoom mouseup.zoom",null),IL(Zn.view,Pe.moved),hD(),Pe.end()}}function ot(){if(n.apply(this,arguments)){var Pe=this.__zoom,pt=Kd(this),Nt=Pe.invert(pt),Gt=Pe.k*(Zn.shiftKey?.5:2),It=e(ae(re(Pe,Gt),pt,Nt),r.apply(this,arguments),s);hD(),l>0?vi(this).transition().duration(l).call(Ce,It,pt):vi(this).call(q.transform,It)}}function ht(){if(n.apply(this,arguments)){var Gt,It,Tn,jn,Pe=Zn.touches,pt=Pe.length,Nt=xe(this,arguments,Zn.changedTouches.length===pt);for(CG(),It=0;It<pt;++It)jn=[jn=E9(this,Pe,(Tn=Pe[It]).identifier),this.__zoom.invert(jn),Tn.identifier],Nt.touch0?Nt.touch1||(Nt.touch1=jn,Nt.taps=0):(Nt.touch0=jn,Gt=!0,Nt.taps=1+!!h);h&&(h=clearTimeout(h)),Gt&&(Nt.taps<2&&(h=setTimeout(function(){h=null},C)),nw(this),Nt.start())}}function bt(){if(this.__zooming){var Gt,It,Tn,jn,Pe=xe(this,arguments),pt=Zn.changedTouches,Nt=pt.length;for(hD(),h&&(h=clearTimeout(h)),Pe.taps=0,Gt=0;Gt<Nt;++Gt)Tn=E9(this,pt,(It=pt[Gt]).identifier),Pe.touch0&&Pe.touch0[2]===It.identifier?Pe.touch0[0]=Tn:Pe.touch1&&Pe.touch1[2]===It.identifier&&(Pe.touch1[0]=Tn);if(It=Pe.that.__zoom,Pe.touch1){var zn=Pe.touch0[0],or=Pe.touch0[1],Sr=Pe.touch1[0],_r=Pe.touch1[1],zr=(zr=Sr[0]-zn[0])*zr+(zr=Sr[1]-zn[1])*zr,Ur=(Ur=_r[0]-or[0])*Ur+(Ur=_r[1]-or[1])*Ur;It=re(It,Math.sqrt(zr/Ur)),Tn=[(zn[0]+Sr[0])/2,(zn[1]+Sr[1])/2],jn=[(or[0]+_r[0])/2,(or[1]+_r[1])/2]}else{if(!Pe.touch0)return;Tn=Pe.touch0[0],jn=Pe.touch0[1]}Pe.zoom("touch",e(ae(It,Tn,jn),Pe.extent,s))}}function Xe(){if(this.__zooming){var Gt,It,Pe=xe(this,arguments),pt=Zn.changedTouches,Nt=pt.length;for(CG(),g&&clearTimeout(g),g=setTimeout(function(){g=null},C),Gt=0;Gt<Nt;++Gt)It=pt[Gt],Pe.touch0&&Pe.touch0[2]===It.identifier?delete Pe.touch0:Pe.touch1&&Pe.touch1[2]===It.identifier&&delete Pe.touch1;if(Pe.touch1&&!Pe.touch0&&(Pe.touch0=Pe.touch1,delete Pe.touch1),Pe.touch0)Pe.touch0[1]=this.__zoom.invert(Pe.touch0[0]);else if(Pe.end(),2===Pe.taps){var Tn=vi(this).on("dblclick.zoom");Tn&&Tn.apply(this,arguments)}}}return q.transform=function(Pe,pt){var Nt=Pe.selection?Pe.selection():Pe;Nt.property("__zoom",Bne),Pe!==Nt?Ce(Pe,pt):Nt.interrupt().each(function(){xe(this,arguments).start().zoom(null,"function"==typeof pt?pt.apply(this,arguments):pt).end()})},q.scaleBy=function(Pe,pt){q.scaleTo(Pe,function(){var Nt=this.__zoom.k,Gt="function"==typeof pt?pt.apply(this,arguments):pt;return Nt*Gt})},q.scaleTo=function(Pe,pt){q.transform(Pe,function(){var Nt=r.apply(this,arguments),Gt=this.__zoom,It=Se(Nt),Tn=Gt.invert(It),jn="function"==typeof pt?pt.apply(this,arguments):pt;return e(ae(re(Gt,jn),It,Tn),Nt,s)})},q.translateBy=function(Pe,pt,Nt){q.transform(Pe,function(){return e(this.__zoom.translate("function"==typeof pt?pt.apply(this,arguments):pt,"function"==typeof Nt?Nt.apply(this,arguments):Nt),r.apply(this,arguments),s)})},q.translateTo=function(Pe,pt,Nt){q.transform(Pe,function(){var Gt=r.apply(this,arguments),It=this.__zoom,Tn=Se(Gt);return e(zN.translate(Tn[0],Tn[1]).scale(It.k).translate("function"==typeof pt?-pt.apply(this,arguments):-pt,"function"==typeof Nt?-Nt.apply(this,arguments):-Nt),Gt,s)})},Ve.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(pt,Nt){return this.mouse&&"mouse"!==pt&&(this.mouse[1]=Nt.invert(this.mouse[0])),this.touch0&&"touch"!==pt&&(this.touch0[1]=Nt.invert(this.touch0[0])),this.touch1&&"touch"!==pt&&(this.touch1[1]=Nt.invert(this.touch1[0])),this.that.__zoom=Nt,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(pt){AL(new exe(q,pt,this.that.__zoom),d.apply,d,[pt,this.that,this.args])}},q.wheelDelta=function(Pe){return arguments.length?(i="function"==typeof Pe?Pe:GN(+Pe),q):i},q.filter=function(Pe){return arguments.length?(n="function"==typeof Pe?Pe:GN(!!Pe),q):n},q.touchable=function(Pe){return arguments.length?(o="function"==typeof Pe?Pe:GN(!!Pe),q):o},q.extent=function(Pe){return arguments.length?(r="function"==typeof Pe?Pe:GN([[+Pe[0][0],+Pe[0][1]],[+Pe[1][0],+Pe[1][1]]]),q):r},q.scaleExtent=function(Pe){return arguments.length?(a[0]=+Pe[0],a[1]=+Pe[1],q):[a[0],a[1]]},q.translateExtent=function(Pe){return arguments.length?(s[0][0]=+Pe[0][0],s[1][0]=+Pe[1][0],s[0][1]=+Pe[0][1],s[1][1]=+Pe[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(Pe){return arguments.length?(e=Pe,q):e},q.duration=function(Pe){return arguments.length?(l=+Pe,q):l},q.interpolate=function(Pe){return arguments.length?(u=Pe,q):u},q.on=function(){var Pe=d.on.apply(d,arguments);return Pe===d?q:Pe},q.clickDistance=function(Pe){return arguments.length?(z=(Pe=+Pe)*Pe,q):Math.sqrt(z)},q}Nne.prototype=sm.prototype;var wG=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getD3",value:function(){return G}}]),n}();wG=function(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=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",[])],wG);var Tf=m(8723);function lxe(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 uxe(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 cxe(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 dxe(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 pxe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,cxe,1,7,"circle",2),t.YNc(2,dxe,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 fxe(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 hxe(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 mxe(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 _xe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,hxe,1,5,"path",2),t.YNc(2,mxe,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 gxe(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 vxe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,gxe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function yxe(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 bxe(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 Cxe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,bxe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function wxe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,vxe,2,1,"ng-container",2),t.YNc(2,yxe,2,4,"tspan",2),t.YNc(3,Cxe,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 kxe(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 Txe(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,lxe,3,5,"linearGradient",2),t.YNc(3,uxe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,pxe,3,2,"ng-container",2),t.YNc(5,fxe,1,6,"circle",2),t.YNc(6,_xe,3,2,"ng-container",2),t.YNc(7,wxe,4,6,"text",3),t.YNc(8,kxe,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 WN=(0,B.Z)(function n(){(0,U.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}),mD=function(){function n(r,e,i,o){var a=this;(0,U.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 WN,this.defaultOptions=new WN,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,Nn.Z)(z,2);C=q[0],Z=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Nn.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),xe=a.options.animateSubtitle?s:a.options.percent,Ve={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 at=a.options.titleFormat(Se);at instanceof Array?Ve.texts=(0,fn.Z)(at):Ve.texts.push(at.toString())}else"auto"===a.options.title?Ve.texts.push(Ce):a.options.title instanceof Array?Ve.texts=(0,fn.Z)(a.options.title):Ve.texts.push(a.options.title.toString());var De={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 ot=a.options.subtitleFormat(xe);ot instanceof Array?De.texts=(0,fn.Z)(ot):De.texts.push(ot.toString())}else a.options.subtitle instanceof Array?De.texts=(0,fn.Z)(a.options.subtitle):De.texts.push(a.options.subtitle.toString());var ht={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,Xe=1;if(a.options.showTitle&&(bt+=Ve.texts.length),a.options.showSubtitle&&(bt+=De.texts.length),a.options.showTitle){var pt,Pe=(0,xn.Z)(Ve.texts);try{for(Pe.s();!(pt=Pe.n()).done;){var Nt=pt.value;Ve.tspans.push({span:Nt,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Pe.e(jn)}finally{Pe.f()}}if(a.options.showSubtitle){var It,Gt=(0,xn.Z)(De.texts);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;De.tspans.push({span:Tn,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Gt.e(jn)}finally{Gt.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:Ve,units:ht,subtitle:De,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<d?(0,Tf.H)(0,C).subscribe(function(){(Z+=g)<=d?!a.options.animateTitle&&!a.options.animateSubtitle&&Z>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tf.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);s<l.length;s++){var u=l[s];a.hasOwnProperty(u)&&void 0!==a[u]?a.options[u]=a[u]:a.templateOptions&&void 0!==a.templateOptions[u]&&(a.options[u]=a.templateOptions[u])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+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 s<l?s:l},this.max=function(s,l){return s>l?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,Tf.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(ge.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,B.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}();mD.\u0275fac=function(r){return new(r||mD)(t.Y36(WN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},mD.\u0275cmp=t.Xpm({type:mD,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,Txe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[ge.sg,ge.O5],encapsulation:2});var Fw=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:WN,useValue:e}]}}}]),n}();Fw.\u0275fac=function(r){return new(r||Fw)},Fw.\u0275mod=t.oAB({type:Fw}),Fw.\u0275inj=t.cJS({imports:[ge.ez]});var VN=function(){function n(r){(0,U.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,B.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}();VN.\u0275fac=function(r){return new(r||VN)(t.Y36(t.SBq))},VN.\u0275dir=t.lG2({type:VN,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 kG=function(){function n(r){(0,U.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,B.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}(),Mxe=function(){function n(r,e,i){(0,U.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 kG(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,B.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}(),Uw=function(){function n(){(0,U.Z)(this,n)}return(0,B.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}();Uw.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"],Uw.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"],Uw.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"],Uw.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],Uw.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 wg=function(){function n(r){(0,U.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,B.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;l<this.queue.length;l++)this.queue[l].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var d,a=this,s=i,l=[],u=(0,xn.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.push(h)}}catch(z){u.e(z)}finally{u.f()}var g=this._getFilters(o),C=this.queue.length,Z=[];l.map(function(z){s||(s=a.options);var q=new kG(z);if(a._isValidFile(q,g,s)){var re=new Mxe(a,z,s);Z.push(re),a.queue.push(re),a._onAfterAddingFile(re)}else if(a._failFilterIndex){var ae=g[a._failFilterIndex];a._onWhenAddingFileFailed(q,ae,s)}}),this.queue.length!==C&&(this._onAfterAddingAll(Z),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i];o.isUploading&&o.cancel(),this.queue.splice(i,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[a](o))}},{key:"cancelItem",value:function(e){var i=this.getIndexOfItem(e),o=this.queue[i],a=this.options.isHTML5?o._xhr:o._form;o&&o.isUploading&&a.abort()}},{key:"uploadAll",value:function(){var e=this.getNotUploadedItems().filter(function(i){return!i.isUploading});!e.length||(e.map(function(i){return i._prepareToUploading()}),e[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(i){return i.cancel()})}},{key:"isFile",value:function(e){return function Sxe(n){return File&&n instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof kG}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(e){return!e.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,i){return e.index-i.index})}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,i){return{fileItem:e,form:i}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,i,o){return{item:e,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,i){return{fileItem:e,progress:i}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){var i;return!((null==e?void 0:e.type)&&this.options.allowedMimeType&&-1===(null===(i=this.options.allowedMimeType)||void 0===i?void 0:i.indexOf(e.type)))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Uw.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,xn.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,xn.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<this.options.queueLimit}},{key:"_isValidFile",value:function(e,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex&&a._failFilterIndex++,s.fn.call(a,e,o)})}},{key:"_isSuccessCode",value:function(e){return e>=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}(),Mf=function(){function n(r){(0,U.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,B.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}();Mf.\u0275fac=function(r){return new(r||Mf)(t.Y36(t.SBq))},Mf.\u0275dir=t.lG2({type:Mf,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&t.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}});var Hw=(0,B.Z)(function n(){(0,U.Z)(this,n)});Hw.\u0275fac=function(r){return new(r||Hw)},Hw.\u0275mod=t.oAB({type:Hw}),Hw.\u0275inj=t.cJS({imports:[ge.ez]});var TG=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}(),xxe=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)}}(),Une=function(n){function r(){return n.call(this)||this}return xxe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(TG);Une.ctorParameters=function(){return[]};var Hne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:TG,useClass:Une}]}),n}();Hne.ctorParameters=function(){return[]};var sl=function(){function n(){(0,U.Z)(this,n)}return(0,B.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}(),S0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.call(this)}return(0,B.Z)(e)}(sl);S0.\u0275fac=function(r){return new(r||S0)},S0.\u0275prov=t.Yz7({token:S0,factory:S0.\u0275fac}),S0.ctorParameters=function(){return[]};var jw=(0,B.Z)(function n(){(0,U.Z)(this,n)});jw.\u0275fac=function(r){return new(r||jw)},jw.\u0275mod=t.oAB({type:jw}),jw.\u0275inj=t.cJS({providers:[{provide:sl,useClass:S0}]});var _D=m(7326),Gw=m(4942),Exe=m(4450),Dxe=m(1961),gD=m(8514),Axe=m(4843),x0=m(1737),E0=m(8896),jne=m(1762),kg=m(7224),D0=m(1406),Xc=m(7221),Gne=m(2014),zne=m(8127),Oxe=m(4290),Wne=m(7314),YN=m(537),Vne=m(4327),KN=m(9146),ui="primary",vD=Symbol("RouteTitle"),Ixe=function(){function n(r){(0,U.Z)(this,n),this.params=r||{}}return(0,B.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 zw(n){return new Ixe(n)}function Pxe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=n[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function Sf(n,r){var e=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!e||!i||e.length!=i.length)return!1;for(var o,a=0;a<e.length;a++)if(!Yne(n[o=e[a]],r[o]))return!1;return!0}function Yne(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var e=(0,fn.Z)(n).sort(),i=(0,fn.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return n===r}function Kne(n){return Array.prototype.concat.apply([],n)}function qne(n){return n.length>0?n[n.length-1]:null}function ll(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Tg(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,Zs.D)(Promise.resolve(n)):(0,qn.of)(n)}var Zxe={exact:function Xne(n,r,e){if(!O0(n.segments,r.segments)||!qN(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!Xne(n.children[i],r.children[i],e))return!1;return!0},subset:$ne},Jne={exact:function Nxe(n,r){return Sf(n,r)},subset:function Bxe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Yne(n[e],r[e])})},ignored:function(){return!0}};function Qne(n,r,e){return Zxe[e.paths](n.root,r.root,e.matrixParams)&&Jne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function $ne(n,r,e){return ere(n,r,r.segments,e)}function ere(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!O0(o,e)||r.hasChildren()||!qN(o,e,i))}if(n.segments.length===e.length){if(!O0(n.segments,e)||!qN(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!$ne(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!!(O0(n.segments,s)&&qN(n.segments,s,i)&&n.children[ui])&&ere(n.children[ui],r,l,i)}function qN(n,r,e){return r.every(function(i,o){return Jne[e](n[o].parameters,i.parameters)})}var A0=function(){function n(r,e,i){(0,U.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,B.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=zw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hxe.serialize(this)}}]),n}(),fi=function(){function n(r,e){var i=this;(0,U.Z)(this,n),this.segments=r,this.children=e,this.parent=null,ll(e,function(o,a){return o.parent=i})}return(0,B.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 JN(this)}}]),n}(),yD=function(){function n(r,e){(0,U.Z)(this,n),this.path=r,this.parameters=e}return(0,B.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=zw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return rre(this)}}]),n}();function O0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var Ww=(0,B.Z)(function n(){(0,U.Z)(this,n)});Ww.\u0275fac=function(r){return new(r||Ww)},Ww.\u0275prov=t.Yz7({token:Ww,factory:function(){return new SG},providedIn:"root"});var SG=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"parse",value:function(e){var i=new Jxe(e);return new A0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(bD(e.root,!0)),o=function zxe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(QN(e),"=").concat(QN(o))}).join("&"):"".concat(QN(e),"=").concat(QN(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function jxe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),Hxe=new SG;function JN(n){return n.segments.map(function(r){return rre(r)}).join("/")}function bD(n,r){if(!n.hasChildren())return JN(n);if(r){var e=n.children[ui]?bD(n.children[ui],!1):"",i=[];return ll(n.children,function(a,s){s!==ui&&i.push("".concat(s,":").concat(bD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function Uxe(n,r){var e=[];return ll(n.children,function(i,o){o===ui&&(e=e.concat(r(i,o)))}),ll(n.children,function(i,o){o!==ui&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===ui?[bD(n.children[ui],!1)]:["".concat(s,":").concat(bD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[ui]?"".concat(JN(n),"/").concat(o[0]):"".concat(JN(n),"/(").concat(o.join("//"),")")}function tre(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function QN(n){return tre(n).replace(/%3B/gi,";")}function xG(n){return tre(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function XN(n){return decodeURIComponent(n)}function nre(n){return XN(n.replace(/\+/g,"%20"))}function rre(n){return"".concat(xG(n.path)).concat(function Gxe(n){return Object.keys(n).map(function(r){return";".concat(xG(r),"=").concat(xG(n[r]))}).join("")}(n.parameters))}var Wxe=/^[^\/()?;=#]+/;function $N(n){var r=n.match(Wxe);return r?r[0]:""}var Vxe=/^[^=?&#]+/;var Kxe=/^[^&#]+/;var Jxe=function(){function n(r){(0,U.Z)(this,n),this.url=r,this.remaining=r}return(0,B.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fi([],{}):new fi([],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[ui]=new fi(e,i)),o}},{key:"parseSegment",value:function(){var e=$N(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new yD(XN(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=$N(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=$N(this.remaining);a&&(o=a,this.capture(o))}e[XN(i)]=XN(o)}}},{key:"parseQueryParam",value:function(e){var i=function Yxe(n){var r=n.match(Vxe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function qxe(n){var r=n.match(Kxe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=nre(i),l=nre(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=$N(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=ui);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[ui]:new fi([],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 EG(n){return n.segments.length>0?new fi([],(0,Gw.Z)({},ui,n)):n}function eB(n){for(var r={},e=0,i=Object.keys(n.children);e<i.length;e++){var o=i[e],s=eB(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function Qxe(n){if(1===n.numberOfChildren&&n.children[ui]){var r=n.children[ui];return new fi(n.segments.concat(r.segments),r.children)}return n}(new fi(n.segments,r))}function I0(n){return n instanceof A0}function eEe(n,r,e,i,o){var a;if(0===e.length)return Vw(r.root,r.root,r.root,i,o);var l=are(e);if(l.toRoot())return Vw(r.root,r.root,new fi([],{}),i,o);var d=function u(g){var C,Z=function nEe(n,r,e,i){if(n.isAbsolute)return new Yw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Yw(e,o,0)}var a=CD(n.commands[0])?0:1;return sre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(C=n.snapshot)||void 0===C?void 0:C._urlSegment,g),z=Z.processChildren?kD(Z.segmentGroup,Z.index,l.commands):AG(Z.segmentGroup,Z.index,l.commands);return Vw(r.root,Z.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function CD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function wD(n){return"object"==typeof n&&null!=n&&n.outlets}function Vw(n,r,e,i,o){var a={};i&&ll(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=EG(eB(n===r?e:ire(n,r,e)));return new A0(l,a,o)}function ire(n,r,e){var i={};return ll(n.children,function(o,a){i[a]=o===r?e:ire(o,r,e)}),new fi(n.segments,i)}var ore=function(){function n(r,e,i){if((0,U.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&CD(i[0]))throw new t.vHH(4003,false);var o=i.find(wD);if(o&&o!==qne(i))throw new t.vHH(4004,false)}return(0,B.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function are(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ore(!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 ll(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,fn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,fn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,fn.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,fn.Z)(o),[a])},[]);return new ore(e,r,i)}var Yw=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function sre(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 Yw(i,!1,o-a)}function AG(n,r,e){if(n||(n=new fi([],{})),0===n.segments.length&&n.hasChildren())return kD(n,r,e);var i=function iEe(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=e.length)return a;var s=n.segments[o],l=e[i];if(wD(l))break;var u="".concat(l),d=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!ure(u,d,s))return a;i+=2}else{if(!ure(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.pathIndex<n.segments.length){var a=new fi(n.segments.slice(0,i.pathIndex),{});return a.children[ui]=new fi(n.segments.slice(i.pathIndex),n.children),kD(a,0,o)}return i.match&&0===o.length?new fi(n.segments,{}):i.match&&!n.hasChildren()?OG(n,r,e):i.match?kD(n,0,o):OG(n,r,e)}function kD(n,r,e){if(0===e.length)return new fi(n.segments,{});var i=function rEe(n){return wD(n[0])?n[0].outlets:(0,Gw.Z)({},ui,n)}(e),o={};return ll(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=AG(n.children[s],r,a))}),ll(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new fi(n.segments,o)}function OG(n,r,e){for(var i=n.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(wD(a)){var s=oEe(a.outlets);return new fi(i,s)}if(0===o&&CD(e[0])){var l=n.segments[r];i.push(new yD(l.path,lre(e[0]))),o++}else{var u=wD(a)?a.outlets[ui]:"".concat(a),d=o<e.length-1?e[o+1]:null;u&&d&&CD(d)?(i.push(new yD(u,lre(d))),o+=2):(i.push(new yD(u,{})),o++)}}return new fi(i,{})}function oEe(n){var r={};return ll(n,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=OG(new fi([],{}),0,e))}),r}function lre(n){var r={};return ll(n,function(e,i){return r[i]="".concat(e)}),r}function ure(n,r,e){return n==e.path&&Sf(r,e.parameters)}var lm=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.id=r,this.url=e}),tB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,U.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),op=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(lm),TD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),IG=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(lm),aEe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,B.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}(lm),sEe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,B.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}(lm),lEe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,B.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}(lm),uEe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,B.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}(lm),cEe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,B.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}(lm),dEe=function(){function n(r){(0,U.Z)(this,n),this.route=r,this.type=9}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),pEe=function(){function n(r){(0,U.Z)(this,n),this.route=r,this.type=10}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),fEe=function(){function n(r){(0,U.Z)(this,n),this.snapshot=r,this.type=11}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),hEe=function(){function n(r){(0,U.Z)(this,n),this.snapshot=r,this.type=12}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),mEe=function(){function n(r){(0,U.Z)(this,n),this.snapshot=r,this.type=13}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),_Ee=function(){function n(r){(0,U.Z)(this,n),this.snapshot=r,this.type=14}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),cre=function(){function n(r,e,i){(0,U.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,B.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 dre=function(){function n(r){(0,U.Z)(this,n),this._root=r}return(0,B.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=PG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=PG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=RG(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 RG(e,this._root).map(function(i){return i.value})}}]),n}();function PG(n,r){if(n===r.value)return r;var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=PG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function RG(n,r){if(n===r.value)return[r];var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=RG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var um=function(){function n(r,e){(0,U.Z)(this,n),this.value=r,this.children=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function Kw(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var pre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this,i)).snapshot=o,LG((0,_D.Z)(a),i),a}return(0,B.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(dre);function fre(n,r){var e=function vEe(n,r){var s=new nB([],{},{},"",{},ui,r,null,n.root,-1,{});return new mre("",new um(s,[]))}(n,r),i=new to.X([new yD("",{})]),o=new to.X({}),a=new to.X({}),s=new to.X({}),l=new to.X(""),u=new fr(i,o,s,l,a,ui,r,e.root);return u.snapshot=e.root,new pre(new um(u,[]),e)}var fr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,U.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[vD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,B.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 zw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return zw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function hre(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 yEe(e.slice(i))}function yEe(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 nB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z;(0,U.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[vD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=C?C:h,this._resolve=g}return(0,B.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=zw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=zw(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}(),mre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this,o)).url=i,LG((0,_D.Z)(a),o),a}return(0,B.Z)(e,[{key:"toString",value:function(){return _re(this._root)}}]),e}(dre);function LG(n,r){r.value._routerState=n,r.children.forEach(function(e){return LG(n,e)})}function _re(n){var r=n.children.length>0?" { ".concat(n.children.map(_re).join(", ")," } "):"";return"".concat(n.value).concat(r)}function ZG(n){if(n.snapshot){var r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Sf(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),Sf(r.params,e.params)||n.params.next(e.params),function Rxe(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;++e)if(!Sf(n[e],r[e]))return!1;return!0}(r.url,e.url)||n.url.next(e.url),Sf(r.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function NG(n,r){var e=Sf(n.params,r.params)&&function Fxe(n,r){return O0(n,r)&&n.every(function(e,i){return Sf(e.parameters,r[i].parameters)})}(n.url,r.url),i=!n.parent!=!r.parent;return e&&!i&&(!n.parent||NG(n.parent,r.parent))}function MD(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function CEe(n,r,e){return r.children.map(function(i){var a,o=(0,xn.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return MD(n,i,s)}}catch(l){o.e(l)}finally{o.f()}return MD(n,i)})}(n,r,e);return new um(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(d){return MD(n,d)}),s}}var l=function wEe(n){return new fr(new to.X(n.url),new to.X(n.params),new to.X(n.queryParams),new to.X(n.fragment),new to.X(n.data),n.outlet,n.component,n)}(r.value),u=r.children.map(function(d){return MD(n,d)});return new um(l,u)}var BG="ngNavigationCancelingError";function gre(n,r){var e=I0(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=e.redirectTo,o=e.navigationBehaviorOptions,a=vre(!1,0,r);return a.url=i,a.navigationBehaviorOptions=o,a}function vre(n,r,e){var i=new Error("NavigationCancelingError: "+(n||""));return i[BG]=!0,i.cancellationCode=r,e&&(i.url=e),i}function yre(n){return bre(n)&&I0(n.url)}function bre(n){return n&&n[BG]}var kEe=(0,B.Z)(function n(){(0,U.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new xf,this.attachRef=null}),xf=function(){function n(){(0,U.Z)(this,n),this.contexts=new Map}return(0,B.Z)(n,[{key:"onChildOutletCreated",value:function(e,i){var o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}},{key:"onChildOutletDestroyed",value:function(e){var i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var i=this.getContext(e);return i||(i=new kEe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),n}();xf.\u0275fac=function(r){return new(r||xf)},xf.\u0275prov=t.Yz7({token:xf,factory:xf.\u0275fac,providedIn:"root"});var rB=!1,cm=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.parentContexts=r,this.location=e,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=i||ui,r.onChildOutletCreated(this.name,this)}return(0,B.Z)(n,[{key:"ngOnDestroy",value:function(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new t.vHH(4012,rB);return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new t.vHH(4012,rB);return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new t.vHH(4012,rB);this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}},{key:"attach",value:function(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,i){if(this.isActivated)throw new t.vHH(4013,rB);this._activatedRoute=e;var o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new TEe(e,l,o.injector);if(i&&function MEe(n){return!!n.resolveComponentFactory}(i)){var d=i.resolveComponentFactory(s);this.activated=o.createComponent(d,o.length,u)}else{var h=null!=i?i:this.environmentInjector;this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:h})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),n}();cm.\u0275fac=function(r){return new(r||cm)(t.Y36(xf),t.Y36(t.s_b),t.$8M("name"),t.Y36(t.sBO),t.Y36(t.lqb))},cm.\u0275dir=t.lG2({type:cm,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0});var TEe=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.childContexts=e,this.parent=i}return(0,B.Z)(n,[{key:"get",value:function(e,i){return e===fr?this.route:e===xf?this.childContexts:this.parent.get(e,i)}}]),n}();var P0=(0,B.Z)(function n(){(0,U.Z)(this,n)});function Cre(n,r){var e;return n.providers&&!n._injector&&(n._injector=(0,t.MMx)(n.providers,r,"Route: ".concat(n.path))),null!==(e=n._injector)&&void 0!==e?e:r}function UG(n){var r=n.children&&n.children.map(UG),e=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ui&&(e.component=P0),e}function $c(n){return n.outlet||ui}function wre(n,r){var e=n.filter(function(i){return $c(i)===r});return e.push.apply(e,(0,fn.Z)(n.filter(function(i){return $c(i)!==r}))),e}function SD(n){var r;if(!n)return null;if(null!==(r=n.routeConfig)&&void 0!==r&&r._injector)return n.routeConfig._injector;for(var e=n.parent;e;e=e.parent){var i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}P0.\u0275fac=function(r){return new(r||P0)},P0.\u0275cmp=t.Xpm({type:P0,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"router-outlet")},dependencies:[cm],encapsulation:2});var AEe=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,B.Z)(n,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),ZG(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=Kw(i);e.children.forEach(function(l){var u=l.value.outlet;a.deactivateRoutes(l,s[u],o),delete s[u]}),ll(s,function(l,u){a.deactivateRouteAndItsChildren(l,o)})}},{key:"deactivateRoutes",value:function(e,i,o){var a=e.value,s=i?i.value:null;if(a===s)if(a.component){var l=o.getContext(a.outlet);l&&this.deactivateChildRoutes(e,i,l.children)}else this.deactivateChildRoutes(e,i,o);else s&&this.deactivateRouteAndItsChildren(i,o)}},{key:"deactivateRouteAndItsChildren",value:function(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}},{key:"detachAndStoreRouteSubtree",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Kw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}if(o&&o.outlet){var h=o.outlet.detach(),g=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:g})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Kw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(e,i,o){var a=this,s=Kw(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new _Ee(l.value.snapshot))}),e.children.length&&this.forwardEvent(new hEe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a,s=e.value,l=i?i.value:null;if(ZG(s),s===l)if(s.component){var u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,i,u.children)}else this.activateChildRoutes(e,i,o);else if(s.component){var d=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){var h=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(h.contexts),d.attachRef=h.componentRef,d.route=h.route.value,d.outlet&&d.outlet.attach(h.componentRef,h.route.value),ZG(h.route.value),this.activateChildRoutes(e,null,d.children)}else{var g=SD(s.snapshot),C=null!==(a=null==g?void 0:g.get(t._Vd))&&void 0!==a?a:null;d.attachRef=null,d.route=s,d.resolver=C,d.injector=g,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(e,null,d.children)}}else this.activateChildRoutes(e,null,o)}}]),n}(),kre=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]}),iB=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.component=r,this.route=e});function OEe(n,r,e){var i=n._root;return xD(i,r?r._root:null,e,[i.value])}function qw(n,r){var e=Symbol(),i=r.get(n,e);return i===e?"function"!=typeof n||(0,t.Z0I)(n)?r.get(n):n:i}function xD(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Kw(r);return n.children.forEach(function(s){PEe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),ll(a,function(s,l){return ED(s,e.getContext(l),o)}),o}function PEe(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=REe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new kre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?xD(n,r,l?l.children:null,i,o):xD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new iB(l.outlet.component,s))}else s&&ED(r,l,o),o.canActivateChecks.push(new kre(i)),a.component?xD(n,null,l?l.children:null,i,o):xD(n,null,e,i,o);return o}function REe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!O0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!O0(n.url,r.url)||!Sf(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!NG(n,r)||!Sf(n.queryParams,r.queryParams);default:return!NG(n,r)}}function ED(n,r,e){var i=Kw(n),o=n.value;ll(i,function(a,s){o.component?ED(a,r?r.children.getContext(s):null,e):ED(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new iB(r.outlet.component,o)):e.canDeactivateChecks.push(new iB(null,o))}function DD(n){return"function"==typeof n}function HG(n){return n instanceof Exe.K||"EmptyError"===(null==n?void 0:n.name)}var oB=Symbol("INITIAL_VALUE");function Jw(){return(0,Co.w)(function(n){return(0,G1.aj)(n.map(function(r){return r.pipe((0,xi.q)(1),(0,eo.O)(oB))})).pipe((0,$n.U)(function(r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===oB)return oB;if(!1===o||o instanceof A0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,ni.h)(function(r){return r!==oB}),(0,xi.q)(1))})}function jEe(n,r){return(0,ys.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 GEe(n,r,e,i){return(0,Zs.D)(n).pipe((0,ys.zg)(function(o){return function qEe(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=SD(r))&&void 0!==u?u:o,h=qw(l,d);return Tg(function FEe(n){return n&&DD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,kg.P)())});return(0,qn.of)(s).pipe(Jw())}(o.component,o.route,e,r,i)}),(0,kg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,ys.zg)(function(u){return u&&function LEe(n){return"boolean"==typeof n}(u)?function zEe(n,r,e,i){return(0,Zs.D)(r).pipe((0,D0.b)(function(o){return(0,Dxe.z)(function VEe(n,r){return null!==n&&r&&r(new fEe(n)),(0,qn.of)(!0)}(o.route.parent,i),function WEe(n,r){return null!==n&&r&&r(new mEe(n)),(0,qn.of)(!0)}(o.route,i),function KEe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function IEe(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,gD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=SD(s.node))&&void 0!==d?d:e,g=qw(u,h);return Tg(function BEe(n){return n&&DD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,kg.P)())});return(0,qn.of)(l).pipe(Jw())})});return(0,qn.of)(a).pipe(Jw())}(n,o.path,e),function YEe(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,gD.P)(function(){var s,l=null!==(s=SD(r))&&void 0!==s?s:e,u=qw(a,l);return Tg(function NEe(n){return n&&DD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,kg.P)())})});return(0,qn.of)(o).pipe(Jw())}(n,o.route,e))}),(0,kg.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 JEe(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=qw(s,n);return Tg(function ZEe(n){return n&&DD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(Jw(),Tre(i))}function Tre(n){return(0,Axe.z)((0,fa.b)(function(r){if(I0(r))throw gre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function QEe(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=qw(s,n);return Tg(function UEe(n){return n&&DD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(Jw(),Tre())}var jG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mre(n,r,e,i,o){var a=GG(n,r,e);return a.matched?QEe(i=Cre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},jG)})):(0,qn.of)(a)}function GG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},jG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Pxe)(e,n,r);if(!a)return Object.assign({},jG);var s={};ll(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 aB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&eDe(n,e,i)){var a=new fi(r,$Ee(n,r,i,new fi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&tDe(n,e,i)){var s=new fi(n.segments,XEe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new fi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function XEe(n,r,e,i,o,a){var u,s={},l=(0,xn.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(sB(n,e,d)&&!o[$c(d)]){var h=new fi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[$c(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function $Ee(n,r,e,i){var o={};o[ui]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,xn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&$c(l)!==ui){var u=new fi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[$c(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function eDe(n,r,e){return e.some(function(i){return sB(n,r,i)&&$c(i)!==ui})}function tDe(n,r,e){return e.some(function(i){return sB(n,r,i)})}function sB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Sre(n,r,e,i){return!!($c(n)===i||i!==ui&&sB(r,e,n))&&("**"===n.path||GG(r,n,e).matched)}function xre(n,r,e){return 0===r.length&&!n.children[e]}var lB=!1,uB=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.segmentGroup=r||null}),Ere=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.urlTree=r});function AD(n){return(0,x0._)(new uB(n))}function Dre(n){return(0,x0._)(new Ere(n))}var oDe=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,B.Z)(n,[{key:"apply",value:function(){var e=this,i=aB(this.urlTree.root,[],[],this.config).segmentGroup,o=new fi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,ui).pipe((0,$n.U)(function(l){return e.createUrlTree(eB(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Xc.K)(function(l){if(l instanceof Ere)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof uB?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,ui).pipe((0,$n.U)(function(s){return i.createUrlTree(eB(s),e.queryParams,e.fragment)})).pipe((0,Xc.K)(function(s){throw s instanceof uB?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,lB)}},{key:"createUrlTree",value:function(e,i,o){var a=EG(e);return new A0(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 fi([],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);l<u.length;l++){var d=u[l];"primary"===d?s.unshift(d):s.push(d)}return(0,Zs.D)(s).pipe((0,D0.b)(function(h){var g=o.children[h],C=wre(i,h);return a.expandSegmentGroup(e,C,g,h).pipe((0,$n.U)(function(Z){return{segment:Z,outlet:h}}))}),(0,Gne.R)(function(h,g){return h[g.outlet]=g.segment,h},{}),(0,zne.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,Zs.D)(o).pipe((0,D0.b)(function(d){return u.expandSegmentAgainstRoute(e,i,o,d,a,s,l).pipe((0,Xc.K)(function(g){if(g instanceof uB)return(0,qn.of)(null);throw g}))}),(0,kg.P)(function(d){return!!d}),(0,Xc.K)(function(d,h){if(HG(d))return xre(i,a,s)?(0,qn.of)(new fi([],{})):AD(i);throw d}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return Sre(a,i,s,l)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(e,i,a,s,l):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l):AD(i):AD(i)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,o,a,l):this.expandRegularSegmentAgainstRouteUsingRedirect(e,i,o,a,s,l)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,i,o,a){var s=this,l=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?Dre(l):this.lineralizeSegments(o,l).pipe((0,ys.zg)(function(u){var d=new fi(u,{});return s.expandSegment(e,d,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,d=GG(i,a,s),h=d.matched,g=d.consumedSegments,C=d.remainingSegments,Z=d.positionalParamSegments;if(!h)return AD(i);var z=this.applyRedirectCommands(g,a.redirectTo,Z);return a.redirectTo.startsWith("/")?Dre(z):this.lineralizeSegments(a,z).pipe((0,ys.zg)(function(q){return u.expandSegment(e,i,o,q.concat(C),l,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,i,o,a,s){var l=this;return"**"===o.path?(e=Cre(o,e),o.loadChildren?(o._loadedRoutes?(0,qn.of)({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe((0,$n.U)(function(d){return o._loadedRoutes=d.routes,o._loadedInjector=d.injector,new fi(a,{})})):(0,qn.of)(new fi(a,{}))):Mre(i,o,a,e,this.urlSerializer).pipe((0,Co.w)(function(d){var Z,h=d.matched,g=d.consumedSegments,C=d.remainingSegments;return h?(e=null!==(Z=o._injector)&&void 0!==Z?Z:e,l.getChildConfig(e,o,a).pipe((0,ys.zg)(function(q){var re,ae=null!==(re=q.injector)&&void 0!==re?re:e,Se=q.routes,Ce=aB(i,g,C,Se),xe=Ce.segmentGroup,Ve=Ce.slicedSegments,at=new fi(xe.segments,xe.children);if(0===Ve.length&&at.hasChildren())return l.expandChildren(ae,Se,at).pipe((0,$n.U)(function(bt){return new fi(g,bt)}));if(0===Se.length&&0===Ve.length)return(0,qn.of)(new fi(g,{}));var ot=$c(o)===s;return l.expandSegment(ae,at,Se,Ve,ot?ui:s,!0).pipe((0,$n.U)(function(bt){return new fi(g.concat(bt.segments),bt.children)}))}))):AD(i)}))}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,qn.of)({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):JEe(e,i,o,this.urlSerializer).pipe((0,ys.zg)(function(s){return s?a.configLoader.loadChildren(e,i).pipe((0,fa.b)(function(l){i._loadedRoutes=l.routes,i._loadedInjector=l.injector})):function rDe(n){return(0,x0._)(vre(lB,3))}()})):(0,qn.of)({routes:[],injector:e})}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,qn.of)(o);if(a.numberOfChildren>1||!a.children[ui])return e.redirectTo,(0,x0._)(new t.vHH(4e3,lB));a=a.children[ui]}}},{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 A0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return ll(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 ll(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new fi(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,lB);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,xn.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 aDe(n,r,e,i){return(0,Co.w)(function(o){return function iDe(n,r,e,i,o){return new oDe(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 sDe=(0,B.Z)(function n(){(0,U.Z)(this,n)});function lDe(n){return new $i.y(function(r){return r.error(n)})}var cDe=function(){function n(r,e,i,o,a,s,l,u){(0,U.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,B.Z)(n,[{key:"recognize",value:function(){var e=this,i=aB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,ui).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new nB([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},ui,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new um(a,o),l=new mre(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=hre(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,Zs.D)(Object.keys(o.children)).pipe((0,D0.b)(function(s){var l=o.children[s],u=wre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,Gne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,fn.Z)(l)),s):null}),(0,Oxe.o)(function(s){return null!==s}),(0,Wne.d)(null),(0,zne.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Are(s);return function dDe(n){n.sort(function(r,e){return r.value.outlet===ui?-1:e.value.outlet===ui?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,Zs.D)(i).pipe((0,D0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,kg.P)(function(u){return!!u}),(0,Xc.K)(function(u){if(HG(u))return xre(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||!Sre(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?qne(a).parameters:{},C=Ire(o)+a.length,Z=new nB(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rre(i),$c(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ore(o),C,Lre(i),C);h=(0,qn.of)({snapshot:Z,consumedSegments:[],remainingSegments:[]})}else h=Mre(o,i,a,e,this.urlSerializer).pipe((0,$n.U)(function(z){var Ce,xe,q=z.matched,re=z.consumedSegments,ae=z.remainingSegments,Se=z.parameters;if(!q)return null;var Ve=Ire(o)+re.length;return{snapshot:new nB(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Rre(i),$c(i),null!==(xe=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==xe?xe:null,i,Ore(o),Ve,Lre(i),Ve),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,Co.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 xe=null!==(re=i._loadedInjector)&&void 0!==re?re:e,Ve=function pDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),at=aB(o,Se,Ce,Ve.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),De=at.segmentGroup,ot=at.slicedSegments;if(0===ot.length&&De.hasChildren())return l.processChildren(xe,Ve,De).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}));if(0===Ve.length&&0===ot.length)return(0,qn.of)([new um(ae,[])]);var ht=$c(i)===s;return l.processSegment(xe,Ve,De,ot,ht?ui:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}))}))}}]),n}();function Are(n){var o,r=[],e=new Set,i=(0,xn.Z)(n);try{var a=function(){var g=o.value;if(!function fDe(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,fn.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,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Are(u.children);r.push(new um(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Ore(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function Ire(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 Rre(n){return n.data||{}}function Lre(n){return n.resolve||{}}function mDe(n,r,e,i,o,a){return(0,ys.zg)(function(s){return function uDe(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 cDe(n,r,e,i,o,s,l,a).recognize().pipe((0,Co.w)(function(u){return null===u?lDe(new sDe):(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 _De(n,r){return(0,ys.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,Zs.D)(o).pipe((0,D0.b)(function(s){return function gDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Zre(o)&&(a[vD]=o.title),function vDe(n,r,e,i){var o=function yDe(n){return[].concat((0,fn.Z)(Object.keys(n)),(0,fn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,Zs.D)(o).pipe((0,ys.zg)(function(s){return function bDe(n,r,e,i){var o,a=null!==(o=SD(r))&&void 0!==o?o:i,s=qw(n,a);return Tg(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,kg.P)(),(0,fa.b)(function(l){a[s]=l}))}),(0,S7.h)(1),(0,D1.h)(a),(0,Xc.K)(function(s){return HG(s)?E0.E:(0,x0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=hre(n,e).resolve,o&&Zre(o)&&(n.data[vD]=o.title),null}))}(s.route,i,n,r)}),(0,fa.b)(function(){return a++}),(0,S7.h)(1),(0,ys.zg)(function(s){return a===o.length?(0,qn.of)(e):E0.E}))})}function Zre(n){return"string"==typeof n.title||null===n.title}function zG(n){return(0,Co.w)(function(r){var e=n(r);return e?(0,Zs.D)(e).pipe((0,$n.U)(function(){return r})):(0,qn.of)(r)})}var Qw=function(){function n(){(0,U.Z)(this,n)}return(0,B.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===ui});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[vD]}}]),n}();Qw.\u0275fac=function(r){return new(r||Qw)},Qw.\u0275prov=t.Yz7({token:Qw,factory:function(){return(0,t.f3M)(R0)},providedIn:"root"});var R0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).title=i,o}return(0,B.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(Qw);R0.\u0275fac=function(r){return new(r||R0)(t.LFG(jr))},R0.\u0275prov=t.Yz7({token:R0,factory:R0.\u0275fac,providedIn:"root"});var CDe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),wDe=function(){function n(){(0,U.Z)(this,n)}return(0,B.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}(),kDe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(wDe),dB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),WG=new t.OlP("ROUTES"),Mg=function(){function n(r,e){(0,U.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,B.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=Tg(e.loadComponent()).pipe((0,fa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,YN.x)(function(){i.componentLoaders.delete(e)})),a=new jne.c(o,function(){return new In.xQ}).pipe((0,Vne.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=Kne((d=u.create(e).injector).get(WG,[],t.XFs.Self|t.XFs.Optional));var C=h.map(UG);return{routes:C,injector:d}}),(0,YN.x)(function(){o.childrenLoaders.delete(i)})),l=new jne.c(s,function(){return new In.xQ}).pipe((0,Vne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Tg(e()).pipe((0,ys.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,qn.of)(o):(0,Zs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Mg.\u0275fac=function(r){return new(r||Mg)(t.LFG(t.zs3),t.LFG(t.Sil))},Mg.\u0275prov=t.Yz7({token:Mg,factory:Mg.\u0275fac,providedIn:"root"});var MDe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),SDe=function(){function n(){(0,U.Z)(this,n)}return(0,B.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}(),pB=!1;function xDe(n){throw n}function EDe(n,r,e){return r.parse("/")}var DDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ADe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Bre(){var n,r,e=(0,t.f3M)(Ww),i=(0,t.f3M)(xf),o=(0,t.f3M)(ge.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(WG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(dB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(R0),h=(0,t.f3M)(Qw,{optional:!0}),g=(0,t.f3M)(MDe,{optional:!0}),C=(0,t.f3M)(CDe,{optional:!0}),Z=new dr(null,e,i,o,a,s,Kne(l));return g&&(Z.urlHandlingStrategy=g),C&&(Z.routeReuseStrategy=C),Z.titleStrategy=null!=h?h:d,function ODe(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 dr=function(){function n(r,e,i,o,a,s,l){var u=this;(0,U.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 In.xQ,this.errorHandler=xDe,this.malformedUriErrorHandler=EDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new SDe,this.routeReuseStrategy=new kDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Mg),this.configLoader.onLoadEndListener=function(Z){return u.triggerEvent(new pEe(Z))},this.configLoader.onLoadStartListener=function(Z){return u.triggerEvent(new dEe(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 Lxe(){return new A0(new fi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=fre(this.currentUrlTree,this.rootComponentType),this.transitions=new to.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,B.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,ni.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,Co.w)(function(a){var s=!1,l=!1;return(0,qn.of)(a).pipe((0,fa.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,Co.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 Fre(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,Co.w)(function(xe){var Ve=i.transitions.getValue();return o.next(new tB(xe.id,i.serializeUrl(xe.extractedUrl),xe.source,xe.restoredState)),Ve!==i.transitions.getValue()?E0.E:Promise.resolve(xe)}),aDe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,fa.b)(function(xe){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:xe.urlAfterRedirects}),a.urlAfterRedirects=xe.urlAfterRedirects}),mDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,fa.b)(function(xe){if(a.targetSnapshot=xe.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!xe.extras.skipLocationChange){var Ve=i.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);i.setBrowserUrl(Ve,xe)}i.browserUrlTree=xe.urlAfterRedirects}var at=new aEe(xe.id,i.serializeUrl(xe.extractedUrl),i.serializeUrl(xe.urlAfterRedirects),xe.targetSnapshot);o.next(at)}));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 tB(Z,i.serializeUrl(z),q,re);o.next(Se);var Ce=fre(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),E0.E}),(0,fa.b)(function(u){var d=new sEe(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:OEe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),jEe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,fa.b)(function(u){if(a.guardsResult=u.guardsResult,I0(u.guardsResult))throw gre(i.urlSerializer,u.guardsResult);var d=new lEe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,ni.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),zG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,fa.b)(function(d){var h=new uEe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,Co.w)(function(d){var h=!1;return(0,qn.of)(d).pipe(_De(i.paramsInheritanceStrategy,i.ngModule.injector),(0,fa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,fa.b)(function(d){var h=new cEe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),zG(function(u){return(0,G1.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,fa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,xn.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;Z.push.apply(Z,(0,fn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return Z}(u.targetSnapshot.root)).pipe((0,Wne.d)(),(0,xi.q)(1))}),zG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function bEe(n,r,e){var i=MD(n,r._root,e?e._root:void 0);return new pre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,fa.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 AEe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,fa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,YN.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,Xc.K)(function(u){var d;if(l=!0,bre(u)){yre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new TD(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),yre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),C={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Fre(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 IG(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 E0.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(UG),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)),eEe(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=I0(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 IDe(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({},DDe):!1===i?Object.assign({},ADe):i,I0(e))return Qne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Qne(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 op(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 TD(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 IDe(n){for(var r=0;r<n.length;r++){var e=n[r];if(null==e)throw new t.vHH(4008,pB)}}function Fre(n){return"imperative"!==n}dr.\u0275fac=function(r){t.$Z()},dr.\u0275prov=t.Yz7({token:dr,factory:function(){return Bre()},providedIn:"root"});var Wo=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new In.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,B.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"setTabIndexIfNotOnNativeEl",value:function(e){if(null==this.tabIndexAttribute){var i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}}},{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}},{key:"onClick",value:function(){if(null===this.urlTree)return!0;var e={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Wo.\u0275fac=function(r){return new(r||Wo)(t.Y36(dr),t.Y36(fr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Wo.\u0275dir=t.lG2({type:Wo,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var Us=function(){function n(r,e,i){var o=this;(0,U.Z)(this,n),this.router=r,this.route=e,this.locationStrategy=i,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new In.xQ,this.subscription=r.events.subscribe(function(a){a instanceof op&&o.updateTargetUrlAndHref()})}return(0,B.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,i,o,a,s){if(0!==e||i||o||a||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;var l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Us.\u0275fac=function(r){return new(r||Us)(t.Y36(dr),t.Y36(fr),t.Y36(ge.S$))},Us.\u0275dir=t.lG2({type:Us,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&t.uIk("target",e.target)("href",e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var Xw=function(){function n(r,e,i,o,a,s){var l=this;(0,U.Z)(this,n),this.router=r,this.element=e,this.renderer=i,this.cdr=o,this.link=a,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof op&&l.update()})}return(0,B.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,qn.of)(this.links.changes,this.linksWithHrefs.changes,(0,qn.of)(null)).pipe((0,KN.J)()).subscribe(function(i){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var i,e=this;null===(i=this.linkInputChangesSubscription)||void 0===i||i.unsubscribe();var o=[].concat((0,fn.Z)(this.links.toArray()),(0,fn.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,Zs.D)(o).pipe((0,KN.J)()).subscribe(function(a){e.isActive!==e.isLinkActive(e.router)(a)&&e.update()})}},{key:"routerLinkActive",set:function(e){var i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(function(o){return!!o})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var i=e.hasActiveLinks();e.isActive!==i&&(e.isActive=i,e.cdr.markForCheck(),e.classes.forEach(function(o){i?e.renderer.addClass(e.element.nativeElement,o):e.renderer.removeClass(e.element.nativeElement,o)}),i&&void 0!==e.ariaCurrentWhenActive?e.renderer.setAttribute(e.element.nativeElement,"aria-current",e.ariaCurrentWhenActive.toString()):e.renderer.removeAttribute(e.element.nativeElement,"aria-current"),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function PDe(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(o){return!!o.urlTree&&e.isActive(o.urlTree,i)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),n}();Xw.\u0275fac=function(r){return new(r||Xw)(t.Y36(dr),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Wo,8),t.Y36(Us,8))},Xw.\u0275dir=t.lG2({type:Xw,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Wo,5),t.Suo(i,Us,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.links=o),t.iGM(o=t.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]});var Ure=(0,B.Z)(function n(){(0,U.Z)(this,n)}),OD=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"preload",value:function(e,i){return i().pipe((0,Xc.K)(function(){return(0,qn.of)(null)}))}}]),n}();OD.\u0275fac=function(r){return new(r||OD)},OD.\u0275prov=t.Yz7({token:OD,factory:OD.\u0275fac,providedIn:"root"});var ID=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"preload",value:function(e,i){return(0,qn.of)(null)}}]),n}();ID.\u0275fac=function(r){return new(r||ID)},ID.\u0275prov=t.Yz7({token:ID,factory:ID.\u0275fac,providedIn:"root"});var $w=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.router=r,this.injector=i,this.preloadingStrategy=o,this.loader=a}return(0,B.Z)(n,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,ni.h)(function(i){return i instanceof op}),(0,D0.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){return this.processRoutes(this.injector,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var o,a,s,d,l=[],u=(0,xn.Z)(i);try{for(u.s();!(d=u.n()).done;){var h=d.value;h.providers&&!h._injector&&(h._injector=(0,t.MMx)(h.providers,e,"Route: ".concat(h.path)));var g=null!==(o=h._injector)&&void 0!==o?o:e,C=null!==(a=h._loadedInjector)&&void 0!==a?a:g;h.loadChildren&&!h._loadedRoutes&&void 0===h.canLoad||h.loadComponent&&!h._loadedComponent?l.push(this.preloadConfig(g,h)):(h.children||h._loadedRoutes)&&l.push(this.processRoutes(C,null!==(s=h.children)&&void 0!==s?s:h._loadedRoutes))}}catch(Z){u.e(Z)}finally{u.f()}return(0,Zs.D)(l).pipe((0,KN.J)())}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){var s=(i.loadChildren&&void 0===i.canLoad?o.loader.loadChildren(e,i):(0,qn.of)(null)).pipe((0,ys.zg)(function(u){var d;return null===u?(0,qn.of)(void 0):(i._loadedRoutes=u.routes,i._loadedInjector=u.injector,o.processRoutes(null!==(d=u.injector)&&void 0!==d?d:e,u.routes))}));if(i.loadComponent&&!i._loadedComponent){var l=o.loader.loadComponent(i);return(0,Zs.D)([s,l]).pipe((0,KN.J)())}return s})}}]),n}();$w.\u0275fac=function(r){return new(r||$w)(t.LFG(dr),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Ure),t.LFG(Mg))},$w.\u0275prov=t.Yz7({token:$w,factory:$w.\u0275fac,providedIn:"root"});var VG=new t.OlP(""),ek=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,U.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,B.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 tB?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof op&&(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 cre&&(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 cre(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}();ek.\u0275fac=function(r){t.$Z()},ek.\u0275prov=t.Yz7({token:ek,factory:ek.\u0275fac});function Hre(n){return n.routerState.root}function tk(n,r){return{"\u0275kind":n,"\u0275providers":r}}function YG(n){return[{provide:WG,multi:!0,useValue:n}]}function jre(){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(dr),s=n.get(Gre);1===n.get(KG)&&a.initialNavigation(),null===(e=n.get(zre,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(VG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var Gre=new t.OlP("",{factory:function(){return new In.xQ}}),KG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function RDe(){return tk(2,[{provide:KG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(ge.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(dr),u=e.get(Gre);(function a(s){e.get(dr).events.pipe((0,ni.h)(function(u){return u instanceof op||u instanceof TD||u instanceof IG}),(0,$n.U)(function(u){return u instanceof op||!(!(u instanceof TD)||0!==u.code&&1!==u.code)&&null}),(0,ni.h)(function(u){return null!==u}),(0,xi.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 zre=new t.OlP("");function NDe(n){return tk(0,[{provide:zre,useExisting:$w},{provide:Ure,useExisting:n}])}var Wre=new t.OlP("ROUTER_FORROOT_GUARD"),BDe=[ge.Ye,{provide:Ww,useClass:SG},{provide:dr,useFactory:Bre},xf,{provide:fr,useFactory:Hre,deps:[dr]},Mg];function FDe(){return new t.PXZ("Router",dr)}var L0=function(){function n(r){(0,U.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[BDe,[],YG(e),{provide:Wre,useFactory:GDe,deps:[[dr,new t.FiY,new t.tp0]]},{provide:dB,useValue:i||{}},null!=i&&i.useHash?{provide:ge.S$,useClass:ge.Do}:{provide:ge.S$,useClass:ge.b0},{provide:VG,useFactory:function(){var r=(0,t.f3M)(dr),e=(0,t.f3M)(ge.EM),i=(0,t.f3M)(dB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new ek(r,e,i)}},null!=i&&i.preloadingStrategy?NDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:FDe},null!=i&&i.initialNavigation?zDe(i):[],[{provide:Vre,useFactory:jre},{provide:t.tb,multi:!0,useExisting:Vre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[YG(e)]}}}]),n}();function GDe(n){return"guarded"}function zDe(n){return["disabled"===n.initialNavigation?tk(3,[{provide:t.ip1,multi:!0,useFactory:function(){var e=(0,t.f3M)(dr);return function(){e.setUpLocationChangeListener()}}},{provide:KG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?RDe().\u0275providers:[]]}L0.\u0275fac=function(r){return new(r||L0)(t.LFG(Wre,8))},L0.\u0275mod=t.oAB({type:L0}),L0.\u0275inj=t.cJS({imports:[P0]});var Vre=new t.OlP("");new t.GfV("14.3.0");var mB=(0,B.Z)(function n(){(0,U.Z)(this,n)}),mo=m(2437),rr=function(){function n(r){(0,U.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new In.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,B.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 mB;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}();rr.\u0275fac=function(r){return new(r||rr)(t.LFG(mo.zw))},rr.\u0275prov=t.Yz7({token:rr,factory:rr.\u0275fac});var PD=(0,B.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,U.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),Hs=function(){function n(){(0,U.Z)(this,n),this.state=new to.X(new PD(!1))}return(0,B.Z)(n,[{key:"setError",value:function(e){this.state.next(new PD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new PD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new PD(!0))}},{key:"deactivate",value:function(){this.state.next(new PD(!1))}}]),n}();Hs.\u0275fac=function(r){return new(r||Hs)},Hs.\u0275prov=t.Yz7({token:Hs,factory:Hs.\u0275fac});var Yre=["mat-button",""],Kre=["*"],KDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qDe=(0,Wt.pj)((0,Wt.Id)((0,Wt.Kr)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}()))),cn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;(0,U.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,xn.Z)(KDe);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,B.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<a;l++)s[l]=arguments[l];return s.some(function(u){return o._getHostElement().hasAttribute(u)})}}]),e}(qDe);cn.\u0275fac=function(r){return new(r||cn)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.QbO,8))},cn.\u0275cmp=t.Xpm({type:cn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Wt.wG,5),2&r)&&(t.iGM(i=t.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(t.uIk("disabled",e.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:Yre,ngContentSelectors:Kre,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:[Wt.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 Z0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.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,B.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,dt.Z)((0,Ut.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,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(cn);Z0.\u0275fac=function(r){return new(r||Z0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},Z0.\u0275cmp=t.Xpm({type:Z0,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:Yre,ngContentSelectors:Kre,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:[Wt.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 dm=(0,B.Z)(function n(){(0,U.Z)(this,n)});dm.\u0275fac=function(r){return new(r||dm)},dm.\u0275mod=t.oAB({type:dm}),dm.\u0275inj=t.cJS({imports:[Wt.si,Wt.BQ,Wt.BQ]});var _B,N0=m(567);function RD(n){var r;return(null===(r=function QDe(){if(void 0===_B&&(_B=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(_B=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return _B}())||void 0===r?void 0:r.createHTML(n))||n}function qre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Jre(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 Qre(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var B0=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),Ef=function(){function n(r,e,i,o){(0,U.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,B.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 B0(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 Qre(o);var l=RD(s);return this._addSvgIconConfig(e,i,new B0("",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 B0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw Qre(i);var s=RD(a);return this._addSvgIconSetConfig(e,new B0("",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;o<e;o++)i[o]=arguments[o];return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,e);if(!o)throw Jre(e);var a=this._cachedIconsByUrl.get(o);return a?(0,qn.of)(gB(a)):this._loadSvgIconFromConfig(new B0(e,null)).pipe((0,fa.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,$n.U)(function(s){return gB(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Xre(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,x0._)(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)(gB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return gB(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,Xc.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,N0.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,fa.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,fa.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(RD("<svg></svg>"));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("<svg> tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(RD("<svg></svg>")),o=e.attributes,a=0;a<o.length;a++){var s=o[a],l=s.name,u=s.value;"id"!==l&&i.setAttribute(l,u)}for(var d=0;d<e.childNodes.length;d++)e.childNodes[d].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[d].cloneNode(!0));return i}},{key:"_setSvgAttributes",value:function(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}},{key:"_fetchIcon",value:function(e){var o,i=this,a=e.url,s=e.options,l=null!==(o=null==s?void 0:s.withCredentials)&&void 0!==o&&o;if(!this._httpClient)throw function XDe(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==a)throw Error('Cannot fetch icon from URL "'.concat(a,'".'));var u=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,a);if(!u)throw Jre(a);var d=this._inProgressUrlFetches.get(u);if(d)return d;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,$n.U)(function(g){return RD(g)}),(0,YN.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,z1.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set(Xre(e,i),o),this}},{key:"_addSvgIconSetConfig",value:function(e,i){var o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,i){for(var o=0;o<this._resolvers.length;o++){var a=this._resolvers[o](i,e);if(a)return e2e(a)?new B0(a.url,null,a.options):new B0(a,null)}}}]),n}();Ef.\u0275fac=function(r){return new(r||Ef)(t.LFG(sc.eN,8),t.LFG(Jt),t.LFG(ge.K0,8),t.LFG(t.qLn))},Ef.\u0275prov=t.Yz7({token:Ef,factory:Ef.\u0275fac,providedIn:"root"});new t.FiY,new t.tp0,new t.FiY,sc.eN,t.qLn,new t.FiY,ge.K0;function gB(n){return n.cloneNode(!0)}function Xre(n,r){return n+":"+r}function e2e(n){return!(!n.url||!n.options)}var t2e=(0,Wt.pj)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}()),n2e=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),r2e=new t.OlP("mat-icon-location",{providedIn:"root",factory:function i2e(){var n=(0,t.f3M)(ge.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var $re=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],o2e=$re.map(function(n){return"[".concat(n,"]")}).join(", "),a2e=/^url\(['"]?#(.*?)['"]?\)$/,Dn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.Z)(this,e),(d=r.call(this,i))._iconRegistry=o,d._location=s,d._errorHandler=l,d._inline=!1,d._previousFontSetClass=[],d._currentIconFetch=xa.w.EMPTY,u&&(u.color&&(d.color=d.defaultColor=u.color),u.fontSet&&(d.fontSet=u.fontSet)),a||i.nativeElement.setAttribute("aria-hidden","true"),d}return(0,B.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,Mn.Ig)(o)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(o){o!==this._svgIcon&&(o?this._updateSvgIcon(o):this._svgIcon&&this._clearSvgElement(),this._svgIcon=o)}},{key:"fontSet",get:function(){return this._fontSet},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontSet&&(this._fontSet=a,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(o){if(!o)return["",""];var a=o.split(":");switch(a.length){case 1:return["",a[0]];case 2:return a;default:throw Error('Invalid icon name: "'.concat(o,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var o=this._elementsWithExternalReferences;if(o&&o.size){var a=this._location.getPathname();a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(o){this._clearSvgElement();var a=this._location.getPathname();this._previousPath=a,this._cacheChildrenWithExternalReferences(o),this._prependPathToReferences(a),this._elementRef.nativeElement.appendChild(o)}},{key:"_clearSvgElement",value:function(){var o=this._elementRef.nativeElement,a=o.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();a--;){var s=o.childNodes[a];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var o=this._elementRef.nativeElement,a=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(function(s){return s.length>0});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(o2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){$re.forEach(function(g){var C=a[h],Z=C.getAttribute(g),z=Z?Z.match(a2e):null;if(z){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:g,value:z[1]})}})},u=0;u<a.length;u++)l(u)}},{key:"_updateSvgIcon",value:function(o){var a=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),o){var s=this._splitIconName(o),l=(0,Nn.Z)(s,2),u=l[0],d=l[1];u&&(this._svgNamespace=u),d&&(this._svgName=d),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(d,u).pipe((0,xi.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var g="Error retrieving icon ".concat(u,":").concat(d,"! ").concat(h.message);a._errorHandler.handleError(new Error(g))})}}}]),e}(t2e);Dn.\u0275fac=function(r){return new(r||Dn)(t.Y36(t.SBq),t.Y36(Ef),t.$8M("aria-hidden"),t.Y36(r2e),t.Y36(t.qLn),t.Y36(n2e,8))},Dn.\u0275cmp=t.Xpm({type:Dn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(r,e){2&r&&(t.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet)("fontIcon",e._usingFontIcon()?e.fontIcon:null),t.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});var Sg=(0,B.Z)(function n(){(0,U.Z)(this,n)});function s2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}function l2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}Sg.\u0275fac=function(r){return new(r||Sg)},Sg.\u0275mod=t.oAB({type:Sg}),Sg.\u0275inj=t.cJS({imports:[Wt.BQ,Wt.BQ]});var c2e=(0,Wt.pj)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}(),"primary"),d2e=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function p2e(){return{diameter:100}}});var xl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;(0,U.Z)(this,e),(g=r.call(this,i))._document=a,g._diameter=100,g._value=0,g._resizeSubscription=xa.w.EMPTY,g.mode="determinate";var C=e._diameters;return g._spinnerAnimationLabel=g._getSpinnerAnimationLabel(),C.has(a.head)||C.set(a.head,new Set([100])),g._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(g.mode="indeterminate"),l&&(l.color&&(g.color=g.defaultColor=l.color),l.diameter&&(g.diameter=l.diameter),l.strokeWidth&&(g.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&d&&u&&h&&(g._resizeSubscription=d.change(150).subscribe(function(){"indeterminate"===g.mode&&h.run(function(){return u.markForCheck()})})),g}return(0,B.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,Mn.su)(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(o){this._strokeWidth=(0,Mn.su)(o)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(o){this._value=Math.max(0,Math.min(100,(0,Mn.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,Ii.kV)(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"ngOnDestroy",value:function(){this._resizeSubscription.unsubscribe()}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var o=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(o," ").concat(o)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_getCircleTransformOrigin",value:function(o){var a,s=50*(null!==(a=o.currentScale)&&void 0!==a?a:1);return"".concat(s,"% ").concat(s,"%")}},{key:"_attachStyleNode",value:function(){var o=this._styleRoot,a=this._diameter,s=e._diameters,l=s.get(o);if(!l||!l.has(a)){var u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),o.appendChild(u),l||(l=new Set,s.set(o,l)),l.add(a)}}},{key:"_getAnimationText",value:function(){var o=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*o)).replace(/END_VALUE/g,"".concat(.2*o)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),e}(c2e);xl._diameters=new WeakMap,xl.\u0275fac=function(r){return new(r||xl)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(ge.K0,8),t.Y36(t.QbO,8),t.Y36(d2e),t.Y36(t.sBO),t.Y36(ha.rL),t.Y36(t.R0b))},xl.\u0275cmp=t.Xpm({type:xl,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,s2e,1,11,"circle",2),t.YNc(3,l2e,1,9,"circle",3),t.qZA()),2&r&&(t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===e.mode),t.uIk("viewBox",e._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[ge.RF,ge.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});var nk=(0,B.Z)(function n(){(0,U.Z)(this,n)});nk.\u0275fac=function(r){return new(r||nk)},nk.\u0275mod=t.oAB({type:nk}),nk.\u0275inj=t.cJS({imports:[Wt.BQ,ge.ez,Wt.BQ]});var ed=m(5113),uo=m(7429),h2e=["tooltip"],eie="tooltip-panel",tie=(0,Ii.i$)({passive:!0});var nie=new t.OlP("mat-tooltip-scroll-strategy");var v2e={provide:nie,deps:[Ei.aV],useFactory:function g2e(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},y2e=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function b2e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var vB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z=this;(0,U.Z)(this,n),this._overlay=r,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=g,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new In.xQ,this._scrollStrategy=d,this._document=C,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),h.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(){Z._overlayRef&&Z._updatePosition(Z._overlayRef)})}return(0,B.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Mn.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Mn.su)(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},{key:"message",get:function(){return this._message},set:function(e){var i=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){i._ariaDescriber.describe(i._elementRef.nativeElement,i.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Br.R)(this._destroyed)).subscribe(function(i){i?"keyboard"===i&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(i){var o=(0,Nn.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,tie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var o,e=this,i=arguments.length>0&&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 uo.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,Br.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,Br.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(eie),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Br.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Br.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Br.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===xr.hY&&!(0,xr.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,xi.q)(1),(0,Br.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(eie,"-");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,Nn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,tie)})}},{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}();vB.\u0275fac=function(r){t.$Z()},vB.\u0275dir=t.lG2({type:vB,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var ai=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C,Z,z){var q;return(0,U.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,C,Z,z))._tooltipComponent=ZD,q}return(0,B.Z)(e)}(vB);ai.\u0275fac=function(r){return new(r||ai)(t.Y36(Ei.aV),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(Ii.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(nie),t.Y36(Ls.Is,8),t.Y36(y2e,8),t.Y36(ge.K0))},ai.\u0275dir=t.lG2({type:ai,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var LD=function(){function n(r,e){(0,U.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new In.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,B.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}();LD.\u0275fac=function(r){return new(r||LD)(t.Y36(t.sBO),t.Y36(t.QbO,8))},LD.\u0275dir=t.lG2({type:LD});var ZD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(ed.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,B.Z)(e)}(LD);ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(t.sBO),t.Y36(ed.Yg),t.Y36(t.QbO,8))},ZD.\u0275cmp=t.Xpm({type:ZD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(h2e,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:[ge.mk,ge.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 F0=(0,B.Z)(function n(){(0,U.Z)(this,n)});F0.\u0275fac=function(r){return new(r||F0)},F0.\u0275mod=t.oAB({type:F0}),F0.\u0275inj=t.cJS({providers:[v2e],imports:[Yr.rt,ge.ez,Ei.U8,Wt.BQ,Wt.BQ,ha.ZD]});(0,Rt.X$)("state",[(0,Rt.SB)("initial, void, hidden",(0,Rt.oB)({opacity:0,transform:"scale(0)"})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)"})),(0,Rt.eR)("* => visible",(0,Rt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.F4)([(0,Rt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Rt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Rt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Rt.eR)("* => hidden",(0,Rt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({opacity:0})))]);function C2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function w2e(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 k2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,C2e,2,0,"div",2),t.YNc(2,w2e,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 U0=function(){function n(r,e){(0,U.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,B.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}();U0.\u0275fac=function(r){return new(r||U0)(t.Y36(Hs),t.Y36(dr))},U0.\u0275cmp=t.Xpm({type:U0,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,k2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[ge.O5,Wo,cn,Dn,xl,ai],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 ND=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,B.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}();ND.\u0275fac=function(r){return new(r||ND)(t.Y36(dr),t.Y36(rr),t.Y36(Hs),t.Y36(ge.K0))},ND.\u0275cmp=t.Xpm({type:ND,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[U0]});function yi(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 Df=function(){function n(){(0,U.Z)(this,n),this.dataChange=new to.X([])}return(0,B.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 Y2e(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 K2e(n,r){}Df.\u0275fac=function(r){return new(r||Df)},Df.\u0275prov=t.Yz7({token:Df,factory:Df.\u0275fac});var ez=new t.OlP("MatSnackBarData"),yB=(0,B.Z)(function n(){(0,U.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),q2e=Math.pow(2,31)-1,bB=function(){function n(r,e){var i=this;(0,U.Z)(this,n),this._overlayRef=e,this._afterDismissed=new In.xQ,this._afterOpened=new In.xQ,this._onAction=new In.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,B.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,q2e))}},{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}(),FD=function(){function n(r,e){(0,U.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,B.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();FD.\u0275fac=function(r){return new(r||FD)(t.Y36(bB),t.Y36(ez))},FD.\u0275cmp=t.Xpm({type:FD,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,Y2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[ge.O5,cn],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 J2e={snackBarState:(0,Rt.X$)("state",[(0,Rt.SB)("void, hidden",(0,Rt.oB)({transform:"scale(0.8)",opacity:0})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)",opacity:1})),(0,Rt.eR)("* => visible",(0,Rt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Rt.eR)("* => void, * => hidden",(0,Rt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Rt.oB)({opacity:0})))])},UD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,U.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 In.xQ,u._onExit=new In.xQ,u._onEnter=new In.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,B.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,xi.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}(uo.en);UD.\u0275fac=function(r){return new(r||UD)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Ii.t4),t.Y36(yB))},UD.\u0275dir=t.lG2({type:UD,viewQuery:function(r,e){var i;(1&r&&t.Gf(uo.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var rk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,dt.Z)((0,Ut.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}(UD);rk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rk)))(e||rk)}}(),rk.\u0275cmp=t.Xpm({type:rk,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,K2e,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:[uo.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:[J2e.snackBarState]}});var H0=(0,B.Z)(function n(){(0,U.Z)(this,n)});H0.\u0275fac=function(r){return new(r||H0)},H0.\u0275mod=t.oAB({type:H0}),H0.\u0275inj=t.cJS({imports:[Ei.U8,uo.eL,ge.ez,dm,Wt.BQ,Wt.BQ]});var iie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function Q2e(){return new yB}});var j0=function(){function n(r,e,i,o,a,s){(0,U.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,B.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:yB,useValue:i}]}),s=new uo.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 yB),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new bB(l,s);if(e instanceof t.Rgc){var d=new uo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new uo.C5(e,void 0,h),C=l.attachComponentPortal(g);u.instance=C.instance}return this._breakpointObserver.observe(ed.u3.HandsetPortrait).pipe((0,Br.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 Ei.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:bB,useValue:i},{provide:ez,useValue:e.data}]})}}]),n}();j0.\u0275fac=function(r){return new(r||j0)(t.LFG(Ei.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(j0,12),t.LFG(iie))},j0.\u0275prov=t.Yz7({token:j0,factory:j0.\u0275fac});var td=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,U.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=FD,d.snackBarContainerComponent=rk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,B.Z)(e)}(j0);td.\u0275fac=function(r){return new(r||td)(t.LFG(Ei.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(td,12),t.LFG(iie))},td.\u0275prov=t.Yz7({token:td,factory:td.\u0275fac,providedIn:H0});var Pn=function(){function n(r,e){(0,U.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,B.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}();Pn.\u0275fac=function(r){return new(r||Pn)(t.LFG(td),t.LFG(t.R0b))},Pn.\u0275prov=t.Yz7({token:Pn,factory:Pn.\u0275fac});var kn=m(7322),X2e=["*",[["mat-card-footer"]]],eAe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],nAe=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],xg=(0,B.Z)(function n(){(0,U.Z)(this,n)});xg.\u0275fac=function(r){return new(r||xg)},xg.\u0275dir=t.lG2({type:xg,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var G0=(0,B.Z)(function n(){(0,U.Z)(this,n)});G0.\u0275fac=function(r){return new(r||G0)},G0.\u0275dir=t.lG2({type:G0,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var z0=(0,B.Z)(function n(){(0,U.Z)(this,n)});z0.\u0275fac=function(r){return new(r||z0)},z0.\u0275dir=t.lG2({type:z0,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var HD=(0,B.Z)(function n(){(0,U.Z)(this,n),this.align="start"});HD.\u0275fac=function(r){return new(r||HD)},HD.\u0275dir=t.lG2({type:HD,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 CB=(0,B.Z)(function n(){(0,U.Z)(this,n)});CB.\u0275fac=function(r){return new(r||CB)},CB.\u0275dir=t.lG2({type:CB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var wB=(0,B.Z)(function n(){(0,U.Z)(this,n)});wB.\u0275fac=function(r){return new(r||wB)},wB.\u0275dir=t.lG2({type:wB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var kB=(0,B.Z)(function n(){(0,U.Z)(this,n)});kB.\u0275fac=function(r){return new(r||kB)},kB.\u0275dir=t.lG2({type:kB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var TB=(0,B.Z)(function n(){(0,U.Z)(this,n)});TB.\u0275fac=function(r){return new(r||TB)},TB.\u0275dir=t.lG2({type:TB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var MB=(0,B.Z)(function n(){(0,U.Z)(this,n)});MB.\u0275fac=function(r){return new(r||MB)},MB.\u0275dir=t.lG2({type:MB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var SB=(0,B.Z)(function n(){(0,U.Z)(this,n)});SB.\u0275fac=function(r){return new(r||SB)},SB.\u0275dir=t.lG2({type:SB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var xB=(0,B.Z)(function n(){(0,U.Z)(this,n)});xB.\u0275fac=function(r){return new(r||xB)},xB.\u0275dir=t.lG2({type:xB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var si=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._animationMode=r});si.\u0275fac=function(r){return new(r||si)(t.Y36(t.QbO,8))},si.\u0275cmp=t.Xpm({type:si,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(X2e),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 EB=(0,B.Z)(function n(){(0,U.Z)(this,n)});EB.\u0275fac=function(r){return new(r||EB)},EB.\u0275cmp=t.Xpm({type:EB,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(eAe),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var DB=(0,B.Z)(function n(){(0,U.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275cmp=t.Xpm({type:DB,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(nAe),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ik=(0,B.Z)(function n(){(0,U.Z)(this,n)});ik.\u0275fac=function(r){return new(r||ik)},ik.\u0275mod=t.oAB({type:ik}),ik.\u0275inj=t.cJS({imports:[Wt.BQ,Wt.BQ]});var iAe=m(7568),oie=(0,Ii.i$)({passive:!0}),W0=function(){function n(r,e){(0,U.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,B.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return E0.E;var o=(0,Mn.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new In.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,oie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,oie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Mn.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}();W0.\u0275fac=function(r){return new(r||W0)(t.LFG(Ii.t4),t.LFG(t.R0b))},W0.\u0275prov=t.Yz7({token:W0,factory:W0.\u0275fac,providedIn:"root"});var AB=function(){function n(r,e){(0,U.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,B.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}();AB.\u0275fac=function(r){return new(r||AB)(t.Y36(t.SBq),t.Y36(W0))},AB.\u0275dir=t.lG2({type:AB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var OB=function(){function n(r,e,i,o){var a=this;(0,U.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new In.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,B.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Mn.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Mn.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Mn.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,jd.R)(i,"resize").pipe((0,iAe.e)(16),(0,Br.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}();OB.\u0275fac=function(r){return new(r||OB)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(ge.K0,8))},OB.\u0275dir=t.lG2({type:OB,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 V0=(0,B.Z)(function n(){(0,U.Z)(this,n)});V0.\u0275fac=function(r){return new(r||V0)},V0.\u0275mod=t.oAB({type:V0}),V0.\u0275inj=t.cJS({});var oAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),aAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sAe=0,lAe=(0,Wt.FD)(function(){return(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new In.xQ})}()),Kn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;(0,U.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(sAe++),Z.focused=!1,Z.stateChanges=new In.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,Ii.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,B.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Mn.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,Mn.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Ii.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,Mn.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(){aAe.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}(lAe);Kn.\u0275fac=function(r){return new(r||Kn)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Wt.rD),t.Y36(oAe,10),t.Y36(W0),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 ok=(0,B.Z)(function n(){(0,U.Z)(this,n)});ok.\u0275fac=function(r){return new(r||ok)},ok.\u0275mod=t.oAB({type:ok}),ok.\u0275inj=t.cJS({providers:[Wt.rD],imports:[V0,kn.lN,Wt.BQ,V0,kn.lN]});var $r=m(4107);function uAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function cAe(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 dAe(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 jD=function(){function n(r,e,i,o,a){(0,U.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,B.Z)(n,[{key:"ngOnInit",value:function(){return yi(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 yi(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 yi(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 mB;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}();jD.\u0275fac=function(r){return new(r||jD)(t.Y36(rr),t.Y36(Df),t.Y36(fr),t.Y36(dr),t.Y36(Pn))},jD.\u0275cmp=t.Xpm({type:jD,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,uAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,cAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,dAe,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:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,si,Kn,$r.gD,Wt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var pm=m(4834),tz=["*"],aie='.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}}',pAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],hAe=["text"];function mAe(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 _Ae=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],sie=(0,Wt.Id)((0,Wt.Kr)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}())),vAe=(0,Wt.Kr)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}()),lie=new t.OlP("MatList"),uie=new t.OlP("MatNavList"),js=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new In.xQ,i}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(sie);js.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(js)))(e||js)}}(),js.\u0275cmp=t.Xpm({type:js,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:uie,useExisting:js}]),t.qOj,t.TTD],ngContentSelectors:tz,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 fm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new In.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,B.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}(sie);fm.\u0275fac=function(r){return new(r||fm)(t.Y36(t.SBq))},fm.\u0275cmp=t.Xpm({type:fm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:lie,useExisting:fm}]),t.qOj,t.TTD],ngContentSelectors:tz,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[aie],encapsulation:2,changeDetection:0});var ak=(0,B.Z)(function n(){(0,U.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275dir=t.lG2({type:ak,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var sk=(0,B.Z)(function n(){(0,U.Z)(this,n)});sk.\u0275fac=function(r){return new(r||sk)},sk.\u0275dir=t.lG2({type:sk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var IB=(0,B.Z)(function n(){(0,U.Z)(this,n)});IB.\u0275fac=function(r){return new(r||IB)},IB.\u0275dir=t.lG2({type:IB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Aa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,U.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new In.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,Br.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Wt.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}(vAe);Aa.\u0275fac=function(r){return new(r||Aa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(uie,8),t.Y36(lie,8))},Aa.\u0275cmp=t.Xpm({type:Aa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ak,5),t.Suo(i,sk,5),t.Suo(i,Wt.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(pAe),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:[Wt.wG],encapsulation:2,changeDetection:0});var yAe=(0,Wt.Kr)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}()),bAe=(0,Wt.Kr)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}()),CAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return lk}),multi:!0},wAe=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.source=r,this.options=e}),GD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.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,B.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,Mn.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,Mn.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,Wt.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}(bAe);GD.\u0275fac=function(r){return new(r||GD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return lk})))},GD.\u0275cmp=t.Xpm({type:GD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ak,5),t.Suo(i,sk,5),t.Suo(i,Wt.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(hAe,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(_Ae),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,mAe,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:[Wt.wG,Wt.nP,ge.O5],encapsulation:2,changeDetection:0});var lk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.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 Ci.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new In.xQ,s._onTouched=function(){},s}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Mn.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Ci.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,Br.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,eo.O)(null),(0,Br.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Br.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,xn.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,xn.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,Br.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u<o.options.length;u++)if(null!==(s=o.options.get(u))&&void 0!==s&&s.selected){l=u;break}o._keyManager.setActiveItem(l)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(o){this._element.nativeElement.focus(o)}},{key:"selectAll",value:function(){return this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){return this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"_removeOptionFromList",value:function(o){var a=this._getOptionIndex(o);return a>-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,xr.Vb)(o);switch(a){case xr.L_:case xr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===xr.A&&this.multiple&&(0,xr.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===xr.LH||a===xr.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 wAe(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<this.options.length}},{key:"_getOptionIndex",value:function(o){return this.options.toArray().indexOf(o)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach(function(o){return o._markForCheck()})}},{key:"_allowFocusEscape",value:function(){var o=this;this._tabIndex=-1,setTimeout(function(){o._tabIndex=0,o._changeDetector.markForCheck()})}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}}]),e}(yAe);lk.\u0275fac=function(r){return new(r||lk)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE))},lk.\u0275cmp=t.Xpm({type:lk,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,GD,5),2&r)&&(t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&t.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[t._Bn([CAe]),t.qOj,t.TTD],ngContentSelectors:tz,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[aie],encapsulation:2,changeDetection:0});var uk=(0,B.Z)(function n(){(0,U.Z)(this,n)});uk.\u0275fac=function(r){return new(r||uk)},uk.\u0275mod=t.oAB({type:uk}),uk.\u0275inj=t.cJS({imports:[Wt.uc,Wt.si,Wt.BQ,Wt.us,ge.ez,Wt.uc,Wt.BQ,Wt.us,pm.t]});var kAe=0,nz=new t.OlP("CdkAccordion"),ck=function(){function n(){(0,U.Z)(this,n),this._stateChanges=new In.xQ,this._openCloseAllActions=new In.xQ,this.id="cdk-accordion-".concat(kAe++),this._multi=!1}return(0,B.Z)(n,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Mn.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),n}();ck.\u0275fac=function(r){return new(r||ck)},ck.\u0275dir=t.lG2({type:ck,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:nz,useExisting:ck}]),t.TTD]});var TAe=0,zD=function(){function n(r,e,i){var o=this;(0,U.Z)(this,n),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=xa.w.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-".concat(TAe++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(a,s){o.accordion&&!o.accordion.multi&&o.accordion.id===s&&o.id!==a&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,B.Z)(n,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,Mn.Ig)(e),this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();var i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(i){e.disabled||(e.expanded=i)})}}]),n}();zD.\u0275fac=function(r){return new(r||zD)(t.Y36(nz,12),t.Y36(t.sBO),t.Y36(Ci.A8))},zD.\u0275dir=t.lG2({type:zD,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:nz,useValue:void 0}])]});var Y0=(0,B.Z)(function n(){(0,U.Z)(this,n)});Y0.\u0275fac=function(r){return new(r||Y0)},Y0.\u0275mod=t.oAB({type:Y0}),Y0.\u0275inj=t.cJS({});var MAe=["body"];function SAe(n,r){}var xAe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function DAe(n,r){if(1&n&&t._UZ(0,"span",2),2&n){var e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}var AAe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rz=new t.OlP("MAT_ACCORDION"),cie="225ms cubic-bezier(0.4,0.0,0.2,1)",die={indicatorRotate:(0,Rt.X$)("indicatorRotate",[(0,Rt.SB)("collapsed, void",(0,Rt.oB)({transform:"rotate(0deg)"})),(0,Rt.SB)("expanded",(0,Rt.oB)({transform:"rotate(180deg)"})),(0,Rt.eR)("expanded <=> collapsed, void => collapsed",(0,Rt.jt)(cie))]),bodyExpansion:(0,Rt.X$)("bodyExpansion",[(0,Rt.SB)("collapsed, void",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed, void => collapsed",(0,Rt.jt)(cie))])},pie=new t.OlP("MAT_EXPANSION_PANEL"),WD=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this._template=r,this._expansionPanel=e});WD.\u0275fac=function(r){return new(r||WD)(t.Y36(t.Rgc),t.Y36(pie,8))},WD.\u0275dir=t.lG2({type:WD,selectors:[["ng-template","matExpansionPanelContent",""]]});var IAe=0,fie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),El=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.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 In.xQ,h._headerId="mat-expansion-panel-header-".concat(IAe++),h._bodyAnimationDone=new In.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,Ry.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,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Mn.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,eo.O)(null),(0,ni.h)(function(){return o.expanded&&!o._portal}),(0,xi.q)(1)).subscribe(function(){o._portal=new uo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.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}(zD);El.\u0275fac=function(r){return new(r||El)(t.Y36(rz,12),t.Y36(t.sBO),t.Y36(Ci.A8),t.Y36(t.s_b),t.Y36(ge.K0),t.Y36(t.QbO,8),t.Y36(fie,8))},El.\u0275cmp=t.Xpm({type:El,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,WD,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(MAe,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:rz,useValue:void 0},{provide:pie,useExisting:El}]),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(xAe),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,SAe,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:[uo.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:[die.bodyExpansion]},changeDetection:0});var PB=(0,B.Z)(function n(){(0,U.Z)(this,n)});PB.\u0275fac=function(r){return new(r||PB)},PB.\u0275dir=t.lG2({type:PB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var PAe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),cu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,U.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,ni.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):E0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,ji.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,ni.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,ni.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,B.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 xr.L_:case xr.K5:(0,xr.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,Wt.sb)(PAe));cu.\u0275fac=function(r){return new(r||cu)(t.Y36(El,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(fie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},cu.\u0275cmp=t.Xpm({type:cu,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(AAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,DAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[ge.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:[die.indicatorRotate]},changeDetection:0});var VD=(0,B.Z)(function n(){(0,U.Z)(this,n)});VD.\u0275fac=function(r){return new(r||VD)},VD.\u0275dir=t.lG2({type:VD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Lu=(0,B.Z)(function n(){(0,U.Z)(this,n)});Lu.\u0275fac=function(r){return new(r||Lu)},Lu.\u0275dir=t.lG2({type:Lu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var Dl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.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,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,eo.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,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(ck);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,cu,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:rz,useExisting:Dl}]),t.qOj]});var dk=(0,B.Z)(function n(){(0,U.Z)(this,n)});dk.\u0275fac=function(r){return new(r||dk)},dk.\u0275mod=t.oAB({type:dk}),dk.\u0275inj=t.cJS({imports:[ge.ez,Wt.BQ,Y0,uo.eL]});var YD=function(){function n(r){(0,U.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,B.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"),"<br />")},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"),"<br />")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();YD.\u0275fac=function(r){return new(r||YD)(t.Y36(sc.eN))},YD.\u0275cmp=t.Xpm({type:YD,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:[cn,fm,Aa,Dl,El,cu,Lu],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 Wa=m(4766),K0=function(){function n(r){(0,U.Z)(this,n),this.electronService=r}return(0,B.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}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(sl))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac});var q0=function(){function n(r){(0,U.Z)(this,n),this.platformService=r}return(0,B.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 Wa.N.solarputty_download_url&&(i.resource=Wa.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();q0.\u0275fac=function(r){return new(r||q0)(t.LFG(K0))},q0.\u0275prov=t.Yz7({token:q0,factory:q0.\u0275fac});var J0=function(){function n(r,e){(0,U.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,B.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}();J0.\u0275fac=function(r){return new(r||J0)(t.LFG(sl),t.LFG(q0))},J0.\u0275prov=t.Yz7({token:J0,factory:J0.\u0275fac});var LAe=[[["caption"]],[["colgroup"],["col"]]];function NAe(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 BAe(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 KD=(0,B.Z)(function n(){(0,U.Z)(this,n)});KD.\u0275fac=function(r){return new(r||KD)},KD.\u0275dir=t.lG2({type:KD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var To=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,B.Z)(e)}(Hd);To.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(To)))(e||To)}}(),To.\u0275cmp=t.Xpm({type:To,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:Ci.k,useClass:Ci.yy},{provide:Hd,useExisting:To},{provide:z_,useExisting:To},{provide:E1,useClass:Qp},{provide:xx,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(LAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ud,Xp,$p,ef],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 Mo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hc);Mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Mo)))(e||Mo)}}(),Mo.\u0275dir=t.lG2({type:Mo,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Hc,useExisting:Mo}]),t.qOj]});var So=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jc);So.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(So)))(e||So)}}(),So.\u0275dir=t.lG2({type:So,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:jc,useExisting:So}]),t.qOj]});var Q0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Pu);Q0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Q0)))(e||Q0)}}(),Q0.\u0275dir=t.lG2({type:Q0,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Pu,useExisting:Q0}]),t.qOj]});var _o=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(tl);_o.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_o)))(e||_o)}}(),_o.\u0275dir=t.lG2({type:_o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:tl,useExisting:_o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:_o}]),t.qOj]});var Io=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Jp);Io.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Io)))(e||Io)}}(),Io.\u0275dir=t.lG2({type:Io,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var pk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nh);pk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(pk)))(e||pk)}}(),pk.\u0275dir=t.lG2({type:pk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Po=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bh);Po.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Po)))(e||Po)}}(),Po.\u0275dir=t.lG2({type:Po,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Ro=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nd);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:Nd,useExisting:Ro}]),t.qOj]});var X0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bd);X0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(X0)))(e||X0)}}(),X0.\u0275dir=t.lG2({type:X0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Bd,useExisting:X0}]),t.qOj]});var Lo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fd);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Fd,useExisting:Lo}]),t.qOj]});var Zo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Uh);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275cmp=t.Xpm({type:Zo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Uh,useExisting:Zo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var $0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hh);$0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z($0)))(e||$0)}}(),$0.\u0275cmp=t.Xpm({type:$0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Hh,useExisting:$0}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var No=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jh);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275cmp=t.Xpm({type:No,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:jh,useExisting:No}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var eb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,B.Z)(e)}(ac);eb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eb)))(e||eb)}}(),eb.\u0275dir=t.lG2({type:eb,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:ac,useExisting:eb}]),t.qOj]});var fk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(tf);fk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(fk)))(e||fk)}}(),fk.\u0275cmp=t.Xpm({type:fk,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,NAe,2,3,"th",1),t.YNc(2,BAe,2,3,"td",2),t.BQk())},dependencies:[So,_o,Mo,Io,Po],encapsulation:2});var hk=(0,B.Z)(function n(){(0,U.Z)(this,n)});hk.\u0275fac=function(r){return new(r||hk)},hk.\u0275mod=t.oAB({type:hk}),hk.\u0275inj=t.cJS({imports:[nf,Wt.BQ,Wt.BQ]});var FAe=9007199254740991,UAe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,U.Z)(this,e),(i=r.call(this))._renderData=new to.X([]),i._filter=new to.X(""),i._internalPageChanges=new In.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Mn.t6)(l)){var u=Number(l);return u<FAe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(d,h){var g=i.sortingDataAccessor(d,l),C=i.sortingDataAccessor(h,l),Z=typeof g,z=typeof C;Z!==z&&("number"===Z&&(g+=""),"number"===z&&(C+=""));var q=0;return null!=g&&null!=C?g>C?q=1:g<C&&(q=-1):null!=g?q=1:null!=C&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(d,h){return d+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new to.X(o),i._updateChangeSubscription(),i}return(0,B.Z)(e,[{key:"data",get:function(){return this._data.value},set:function(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}},{key:"filter",get:function(){return this._filter.value},set:function(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(o){this._sort=o,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(o){this._paginator=o,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var a,o=this,s=this._sort?(0,ji.T)(this._sort.sortChange,this._sort.initialized):(0,qn.of)(null),l=this._paginator?(0,ji.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,qn.of)(null),u=this._data,d=(0,G1.aj)([u,this._filter]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._filterData(z)})),h=(0,G1.aj)([d,s]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._orderData(z)})),g=(0,G1.aj)([h,l]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._pageData(z)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=g.subscribe(function(C){return o._renderData.next(C)})}},{key:"_filterData",value:function(o){var a=this;return this.filteredData=null==this.filter||""===this.filter?o:o.filter(function(s){return a.filterPredicate(s,a.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(o){return this.sort?this.sortData(o.slice(),this.sort):o}},{key:"_pageData",value:function(o){if(!this.paginator)return o;var a=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(a,a+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(o){var a=this;Promise.resolve().then(function(){var s=a.paginator;if(s&&(s.length=o,s.pageIndex>0)){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}(Ci.o2),Af=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(UAe);function HAe(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 qD=function(){function n(r){(0,U.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,B.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}();qD.\u0275fac=function(r){return new(r||qD)(t.Y36(sl))},qD.\u0275cmp=t.Xpm({type:qD,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,HAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[ge.O5,cn]});var Cc=m(4068),jAe=function(r,e){return{hidden:r,lightTheme:e}},GAe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,JD=function(){function n(r,e,i){(0,U.Z)(this,n),this.httpClient=r,this.themeService=e,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return(0,B.Z)(n,[{key:"hide",value:function(){this.isVisible=!1}},{key:"ngOnInit",value:function(){var e=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(i){var o,a;if(null!==(a=null===(o=null==i?void 0:i.placements)||void 0===o?void 0:o.placement_1)&&void 0!==a&&a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=GAe.exec(s);e.adUrl=l[1].trim(),e.adBody=l[3].trim(),e.buttonLabel=l[4].trim()}catch(u){}e.isVisible=!0},function(i){}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.themeService.themeChanged.subscribe(function(){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1}))}}]),n}();function zAe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function WAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function VAe(n,r){1&n&&(t.ynx(0),t._UZ(1,"app-adbutler",14),t.BQk())}function YAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,WAe,2,1,"ng-container",13),t.YNc(2,VAe,2,0,"ng-container",13),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type),t.xp6(1),t.Q6J("ngIf","adbutler"===e.type)}}function KAe(n,r){1&n&&t._UZ(0,"mat-header-cell")}function qAe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-install-software",17),t.NdJ("installedChanged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onInstalled(a))}),t.qZA()}if(2&n){var i=t.oxw().$implicit;t.Q6J("software",i)}}function JAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",15),t.YNc(1,qAe,1,1,"app-install-software",16),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type)}}function QAe(n,r){1&n&&t._UZ(0,"mat-header-row")}function XAe(n,r){1&n&&t._UZ(0,"mat-row")}JD.\u0275fac=function(r){return new(r||JD)(t.Y36(sc.eN),t.Y36(Cc.f),t.Y36(ge.Ye))},JD.\u0275cmp=t.Xpm({type:JD,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),t._uU(4),t.qZA()(),t.TgZ(5,"button")(6,"a",3),t._uU(7),t.qZA()()(),t.TgZ(8,"mat-icon",4),t.NdJ("click",function(){return e.hide()}),t._uU(9,"close"),t.qZA()()),2&r&&(t.Q6J("ngClass",t.WLB(5,jAe,!e.isVisible,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.adBody),t.xp6(2),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.buttonLabel))},dependencies:[ge.mk,Dn],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:700;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:700;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]});var QD=function(){function n(r,e){(0,U.Z)(this,n),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.dataSource=new $Ae(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),n}();QD.\u0275fac=function(r){return new(r||QD)(t.Y36(J0),t.Y36(t.sBO))},QD.\u0275cmp=t.Xpm({type:QD,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Installed software"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),t.ynx(8,6),t.YNc(9,zAe,2,0,"mat-header-cell",7),t.YNc(10,YAe,3,2,"mat-cell",8),t.BQk(),t.ynx(11,9),t.YNc(12,KAe,1,0,"mat-header-cell",7),t.YNc(13,JAe,2,1,"mat-cell",10),t.BQk(),t.YNc(14,QAe,1,0,"mat-header-row",11),t.YNc(15,XAe,1,0,"mat-row",12),t.qZA()()()()),2&r&&(t.xp6(6),t.Q6J("dataSource",e.dataSource),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,qD,JD]});var $Ae=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new to.X([]),o}return(0,B.Z)(e,[{key:"connect",value:function(){return this.refresh(),this.installed}},{key:"disconnect",value:function(){}},{key:"refresh",value:function(){var o=this.installedSoftwareService.list();o.push({type:"adbutler"}),this.installed.next(o)}}]),e}(Ci.o2),hm=(m(5561),function(){function n(r){(0,U.Z)(this,n),this.httpController=r,this.controller_id=""}return(0,B.Z)(n,[{key:"login",value:function(e,i,o){var a=(new sc.LE).set("username",i).set("password",o),s={headers:(new sc.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/access/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return yi(this,void 0,void 0,Ln().mark(function o(){return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/access/users/authenticate",{username:i.username,password:i.password}).toPromise();case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o,this)}))}}]),n}());hm.\u0275fac=function(r){return new(r||hm)(t.LFG(mo.zw))},hm.\u0275prov=t.Yz7({token:hm,factory:hm.\u0275fac});var mm=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),n}();mm.\u0275fac=function(r){return new(r||mm)(t.LFG(mo.zw))},mm.\u0275prov=t.Yz7({token:mm,factory:mm.\u0275fac});var RB=m(7144),eOe=["input"],tOe=["label"],nOe=function(r){return{enterDuration:r}},iOe=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:hie});function hie(){return{color:"accent",clickAction:"check-indeterminate"}}var oOe=0,mie={color:"accent",clickAction:"check-indeterminate"},aOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ei}),multi:!0},sOe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),lOe=(0,Wt.sb)((0,Wt.pj)((0,Wt.Kr)((0,Wt.Id)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}())))),LB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.Z)(this,e),(h=r.call(this,o))._changeDetectorRef=a,h._ngZone=s,h._animationMode=u,h._options=d,h.ariaLabel="",h.ariaLabelledby=null,h.labelPosition="after",h.name=null,h.change=new t.vpe,h.indeterminateChange=new t.vpe,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||mie,h.color=h.defaultColor=h._options.color||mie.color,h.tabIndex=parseInt(l)||0,h.id=h._uniqueId="".concat(i).concat(++oOe),h}return(0,B.Z)(e,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Mn.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,Mn.Ig)(o);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(o){var a=o!=this._indeterminate;this._indeterminate=(0,Mn.Ig)(o),a&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._controlValueAccessorChangeFn=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(o){var a=this._currentCheckState,s=this._getAnimationTargetElement();if(a!==o&&s&&(this._currentAnimationClass&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(a,o),this._currentCheckState=o,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var l=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(l)},1e3)})}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_handleInputClick",value:function(){var a,o=this,s=null===(a=this._options)||void 0===a?void 0:a.clickAction;this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_onBlur",value:function(){var o=this;Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";switch(o){case 0:if(1===a)return this._animationClasses.uncheckedToChecked;if(3==a)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===a?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===a?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===a?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(lOe);LB.\u0275fac=function(r){t.$Z()},LB.\u0275dir=t.lG2({type:LB,viewQuery:function(r,e){var i;(1&r&&(t.Gf(eOe,5),t.Gf(tOe,5),t.Gf(Wt.wG,5)),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first),t.iGM(i=t.CRH())&&(e._labelElement=i.first),t.iGM(i=t.CRH())&&(e.ripple=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]});var ei=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.Z)(this,e),(h=r.call(this,"mat-checkbox-",i,o,s,l,u,d))._focusMonitor=a,h._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"},h}return(0,B.Z)(e,[{key:"_createChangeEvent",value:function(o){var a=new sOe;return a.source=this,a.checked=o,a}},{key:"_getAnimationTargetElement",value:function(){return this._elementRef.nativeElement}},{key:"ngAfterViewInit",value:function(){var o=this;(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||o._onBlur()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onInputClick",value:function(o){o.stopPropagation(),(0,dt.Z)((0,Ut.Z)(e.prototype),"_handleInputClick",this).call(this)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}}]),e}(LB);ei.\u0275fac=function(r){return new(r||ei)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(iOe,8))},ei.\u0275cmp=t.Xpm({type:ei,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([aOe]),t.qOj],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(13);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),t.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,nOe,"NoopAnimations"===e._animationMode?0:150))}},dependencies:[Wt.wG,RB.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});var uOe={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return mk}),multi:!0},mk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(J.Zs);mk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(mk)))(e||mk)}}(),mk.\u0275dir=t.lG2({type:mk,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[t._Bn([uOe]),t.qOj]});var tb=(0,B.Z)(function n(){(0,U.Z)(this,n)});tb.\u0275fac=function(r){return new(r||tb)},tb.\u0275mod=t.oAB({type:tb}),tb.\u0275inj=t.cJS({});var nb=(0,B.Z)(function n(){(0,U.Z)(this,n)});function cOe(n,r){1&n&&t._UZ(0,"mat-icon",15)}function dOe(n,r){1&n&&t._UZ(0,"mat-icon",16)}function pOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter username"),t.qZA())}function fOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter password"),t.qZA())}function hOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Authentication was unsuccessful"),t.qZA())}function mOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"The default username and password is admin"),t.qZA())}nb.\u0275fac=function(r){return new(r||nb)},nb.\u0275mod=t.oAB({type:nb}),nb.\u0275inj=t.cJS({imports:[Wt.si,Wt.BQ,RB.Q8,tb,Wt.BQ,tb]});var XD=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.loginService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.router=a,this.toasterService=s,this.versionService=l,this.themeService=u,this.isLightThemeEnabled=!1,this.loginError=!1,this.returnUrl="",this.isRememberMe=!1,this.isRememberMeChecked=!1,this.loginForm=new J.nJ({username:new J.p4("",[J.kI.required]),password:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e;return yi(this,void 0,void 0,Ln().mark(function i(){var a,s,o=this;return Ln().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=this.route.snapshot.paramMap.get("controller_id"),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.controllerService.get(parseInt(a,10)).then(function(d){o.controller=d,d.authToken&&o.router.navigate(["/controller",o.controller.id,"projects"]),o.versionService.get(o.controller).subscribe(function(h){o.version=h.version})}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,(s=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null)&&s.isRememberMe&&(this.loginForm.get("username").setValue(s.username),this.loginForm.get("password").setValue(s.password),this.isRememberMeChecked=s.isRememberMe);case 6:case"end":return u.stop()}},i,this)}))}},{key:"login",value:function(){var e=this;if(this.loginForm.get("username").invalid||this.loginForm.get("password").invalid)this.toasterService.error("Please enter username and password");else{var i=this.loginForm.get("username").value,o=this.loginForm.get("password").value;this.loginService.login(this.controller,i,o).subscribe(function(a){return yi(e,void 0,void 0,Ln().mark(function s(){var l;return Ln().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,d.next=7,this.controllerService.update(l);case 7:this.returnUrl.length<=1?this.router.navigate(["/controller",this.controller.id,"projects"]):this.router.navigateByUrl(this.returnUrl);case 8:case"end":return d.stop()}},s,this)}))},function(a){e.loginError=!0})}}},{key:"rememberMe",value:function(e){if(e.checked){var i={username:this.loginForm.get("username").value,password:this.loginForm.get("password").value,isRememberMe:e.checked};this.isRememberMeChecked=e.checked,localStorage.setItem("isRememberMe",JSON.stringify(i))}else localStorage.removeItem("isRememberMe"),this.loginForm.reset(),this.isRememberMe=e.checked}},{key:"ngDoCheck",value:function(){this.loginForm.get("username").valid&&this.loginForm.get("password").valid&&(this.isRememberMe=!0)}}]),n}();XD.\u0275fac=function(r){return new(r||XD)(t.Y36(hm),t.Y36(rr),t.Y36(Df),t.Y36(fr),t.Y36(dr),t.Y36(Pn),t.Y36(mm),t.Y36(Cc.f))},XD.\u0275cmp=t.Xpm({type:XD,selectors:[["app-login"]],decls:28,vars:10,consts:[[1,"wrapper"],[1,"loginCard"],[1,"matCard"],[1,"loginTitle"],[1,"loginIcon"],["class","mat-icon-login","svgIcon","gns3",4,"ngIf"],["class","mat-icon-login","svgIcon","gns3black",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","password","formControlName","password","placeholder","Password"],["color","primary",1,"margin-left",3,"disabled","checked","change"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"loginButton",3,"click"],[1,"errorMessage"],["svgIcon","gns3",1,"mat-icon-login"],["svgIcon","gns3black",1,"mat-icon-login"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),t.YNc(5,cOe,1,0,"mat-icon",5),t.YNc(6,dOe,1,0,"mat-icon",6),t.TgZ(7,"div")(8,"h1"),t._uU(9,"GNS3"),t.qZA(),t.TgZ(10,"h6"),t._uU(11),t.qZA()()()(),t.TgZ(12,"form",7)(13,"mat-form-field"),t._UZ(14,"input",8),t.YNc(15,pOe,2,0,"mat-error",9),t.qZA(),t.TgZ(16,"mat-form-field"),t._UZ(17,"input",10),t.YNc(18,fOe,2,0,"mat-error",9),t.qZA()(),t.TgZ(19,"mat-checkbox",11),t.NdJ("change",function(o){return e.rememberMe(o)}),t._uU(20,"Remember me"),t.qZA(),t.TgZ(21,"div",12)(22,"button",13),t.NdJ("click",function(){return e.login()}),t._uU(23,"Login"),t.qZA()()(),t.TgZ(24,"div",14),t.YNc(25,hOe,2,0,"mat-error",9),t.qZA(),t.TgZ(26,"div",14),t.YNc(27,mOe,2,0,"mat-error",9),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(5),t.hij("v",e.version,""),t.xp6(1),t.Q6J("formGroup",e.loginForm),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("username").hasError("required")),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("password").hasError("required")),t.xp6(1),t.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeChecked),t.xp6(6),t.Q6J("ngIf",e.loginError),t.xp6(2),t.Q6J("ngIf",e.loginError))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,si,Dn,Kn,ei],styles:["mat-form-field{width:100%}.wrapper{display:flex;justify-content:center}.loginCard{width:540px}.mat-icon-login{height:100px!important;width:100px!important}.loginTitle{display:flex;justify-content:center}.loginIcon{display:flex;align-items:center}.loginButton{width:100%}.errorMessage{display:flex;justify-content:center;margin-top:20px}.margin-left{margin-left:5px}\n"],encapsulation:2});var $D=(0,B.Z)(function n(){(0,U.Z)(this,n)});$D.\u0275fac=function(r){return new(r||$D)},$D.\u0275cmp=t.Xpm({type:$D,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/controllers"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"br"),t.TgZ(3,"h1"),t._uU(4,"404 Page not found"),t.qZA(),t.TgZ(5,"button",2),t._uU(6,"Navigate to homepage"),t.qZA()()())},dependencies:[Wo,cn],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var e2=function(){function n(r){(0,U.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();e2.\u0275fac=function(r){return new(r||e2)(t.Y36(fr))},e2.\u0275cmp=t.Xpm({type:e2,selectors:[["app-built-in-preferences"]],decls:19,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Built-in templates"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Ethernet hub templates "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Ethernet switch templates "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," Cloud node templates "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/preferences"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},dependencies:[Wo,cn,Dn,js,Aa],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var ZB,_Oe=new Uint8Array(16);function gOe(){if(!ZB&&!(ZB="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ZB(_Oe)}var vOe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var bOe=function yOe(n){return"string"==typeof n&&vOe.test(n)},ul=[],iz=0;iz<256;++iz)ul.push((iz+256).toString(16).substr(1));var wOe=function COe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(ul[n[r+0]]+ul[n[r+1]]+ul[n[r+2]]+ul[n[r+3]]+"-"+ul[n[r+4]]+ul[n[r+5]]+"-"+ul[n[r+6]]+ul[n[r+7]]+"-"+ul[n[r+8]]+ul[n[r+9]]+"-"+ul[n[r+10]]+ul[n[r+11]]+ul[n[r+12]]+ul[n[r+13]]+ul[n[r+14]]+ul[n[r+15]]).toLowerCase();if(!bOe(e))throw TypeError("Stringified UUID is invalid");return e};var ts=function kOe(n,r,e){var i=(n=n||{}).random||(n.rng||gOe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=i[o];return r}return wOe(i)},du=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();du.\u0275fac=function(r){return new(r||du)(t.LFG(mo.zw))},du.\u0275prov=t.Yz7({token:du,factory:du.\u0275fac});var Al=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getQemuTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",aux_type:"none",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:"qemu_guest",template_id:"",template_type:"qemu",usage:"",replicate_network_connection_state:!0,tpm:!1,uefi:!1})}},{key:"getVpcsTemplate",value:function(){return(0,qn.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:"vpcs_guest",template_id:"",template_type:"vpcs"})}},{key:"getVirtualBoxTemplate",value:function(){return(0,qn.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:"vbox_guest",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})}},{key:"getCloudNodeTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:"cloud",template_id:"",template_type:"cloud"})}},{key:"getEthernetHubTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:"hub",template_id:"",template_type:"ethernet_hub"})}},{key:"getEthernetSwitchTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:"ethernet_switch",template_id:"",template_type:"ethernet_switch"})}},{key:"getIosTemplate",value:function(){return(0,qn.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",aux_type:"none",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:"router",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})}},{key:"getVmwareTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:"vmware_guest",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})}},{key:"getDockerTemplate",value:function(){return(0,qn.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",aux_type:"none",mac_address:"",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:"docker_guest",template_id:"",template_type:"docker",usage:""})}},{key:"getIouTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:"multilayer_switch",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})}},{key:"list",value:function(){return(0,qn.of)([])}}]),n}();Al.\u0275fac=function(r){return new(r||Al)},Al.\u0275prov=t.Yz7({token:Al,factory:Al.\u0275fac});var ap=m(5542),TOe=["input"],MOe=function(r){return{enterDuration:r}},xOe=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function EOe(){return{color:"accent"}}});var _ie=0,DOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ns}),multi:!0},gie=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.source=r,this.value=e}),vie=new t.OlP("MatRadioGroup"),t2=function(){function n(r){(0,U.Z)(this,n),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(_ie++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new t.vpe}return(0,B.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,Mn.Ig)(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(i){i.name=e.name,i._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this,i=null!==this._selected&&this._selected.value===this._value;this._radios&&!i&&(this._selected=null,this._radios.forEach(function(o){o.checked=e.value===o.value,o.checked&&(e._selected=o)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new gie(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),n}();t2.\u0275fac=function(r){return new(r||t2)(t.Y36(t.sBO))},t2.\u0275dir=t.lG2({type:t2,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var ns=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(t2);ns.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ns)))(e||ns)}}(),ns.\u0275dir=t.lG2({type:ns,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Gs,5),2&r)&&(t.iGM(o=t.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([DOe,{provide:vie,useExisting:ns}]),t.qOj]});var AOe=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r}),NB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,U.Z)(this,e),(g=r.call(this,o))._changeDetector=a,g._focusMonitor=s,g._radioDispatcher=l,g._providerOverride=d,g._uniqueId="mat-radio-".concat(++_ie),g.id=g._uniqueId,g.change=new t.vpe,g._checked=!1,g._value=null,g._removeUniqueSelectionListener=function(){},g.radioGroup=i,g._noopAnimations="NoopAnimations"===u,h&&(g.tabIndex=(0,Mn.su)(h,0)),g._removeUniqueSelectionListener=l.listen(function(C,Z){C!==g.id&&Z===g.name&&(g.checked=!1)}),g}return(0,B.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Mn.Ig)(o);this._checked!==a&&(this._checked=a,a&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(o){this._value!==o&&(this._value=o,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===o),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(o){this._labelPosition=o}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(o){this._setDisabled((0,Mn.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(o){this._color=o}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngDoCheck",value:function(){this._updateTabIndex()}},{key:"ngAfterViewInit",value:function(){var o=this;this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){!a&&o.radioGroup&&o.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new gie(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"_onInputInteraction",value:function(o){if(o.stopPropagation(),!this.checked&&!this.disabled){var a=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(o){this._disabled!==o&&(this._disabled=o,this._changeDetector.markForCheck())}},{key:"_updateTabIndex",value:function(){var o,s,a=this.radioGroup;if((s=a&&a.selected&&!this.disabled?a.selected===this?this.tabIndex:-1:this.tabIndex)!==this._previousTabIndex){var l=null===(o=this._inputElement)||void 0===o?void 0:o.nativeElement;l&&(l.setAttribute("tabindex",s+""),this._previousTabIndex=s)}}}]),e}((0,Wt.Kr)((0,Wt.sb)(AOe)));NB.\u0275fac=function(r){t.$Z()},NB.\u0275dir=t.lG2({type:NB,viewQuery:function(r,e){var i;(1&r&&t.Gf(TOe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]});var Gs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,U.Z)(this,e),r.call(this,i,o,a,s,l,u,d,h)}return(0,B.Z)(e)}(NB);Gs.\u0275fac=function(r){return new(r||Gs)(t.Y36(vie,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(Ci.A8),t.Y36(t.QbO,8),t.Y36(xOe,8),t.$8M("tabindex"))},Gs.\u0275cmp=t.Xpm({type:Gs,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(t.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("for",e.inputId),t.xp6(5),t.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),t.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,MOe,e._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==e.labelPosition)}},dependencies:[Wt.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0});var _k=(0,B.Z)(function n(){(0,U.Z)(this,n)});function IOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}_k.\u0275fac=function(r){return new(r||_k)},_k.\u0275mod=t.oAB({type:_k}),_k.\u0275inj=t.cJS({imports:[Wt.si,Wt.BQ,Wt.BQ]});var n2=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"addTemplate",value:function(){var i,e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(o){i=o}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),n}();n2.\u0275fac=function(r){return new(r||n2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(dr),t.Y36(Pn),t.Y36(Al),t.Y36(J.QS),t.Y36(ap.X))},n2.\u0275cmp=t.Xpm({type:n2,selectors:[["app-cloud-nodes-add-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,IOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New cloud node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the cloud node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Dn,Kn,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var wc=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getCategoriesForCloudNodes",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForCloudNodes",value:function(){return["telnet","vnc","spice","http","https","none"]}},{key:"getCategoriesForEthernetHubs",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getCategoriesForEthernetSwitches",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForEthernetSwitches",value:function(){return["telnet","none"]}},{key:"getPortTypesForEthernetSwitches",value:function(){return["access","dot1q","qinq"]}},{key:"getEtherTypesForEthernetSwitches",value:function(){return["0x8100","0x88A8","0x9100","0x9200"]}}]),n}();wc.\u0275fac=function(r){return new(r||wc)},wc.\u0275prov=t.Yz7({token:wc,factory:wc.\u0275fac});var POe=m(5154),Of=function(){function n(r){(0,U.Z)(this,n),this.httpController=r,this.symbols=new to.X([]),this.maximumSymbolSize=80}return(0,B.Z)(n,[{key:"getMaximumSymbolSize",value:function(){return this.maximumSymbolSize}},{key:"get",value:function(e){return this.symbols.getValue().find(function(i){return i.symbol_id===e})}},{key:"getDimensions",value:function(e,i){var o=encodeURI(i);return this.httpController.get(e,"/symbols/".concat(o,"/dimensions"))}},{key:"scaleDimensionsForNode",value:function(e){var i=e.width>e.height?this.maximumSymbolSize/e.width:this.maximumSymbolSize/e.height;return{width:e.width*i,height:e.height*i}}},{key:"getByFilename",value:function(e){return this.symbols.getValue().find(function(i){return i.filename===e})}},{key:"add",value:function(e,i,o){return this.cache=null,this.httpController.post(e,"/symbols/".concat(i,"/raw"),o)}},{key:"load",value:function(e){return this.httpController.get(e,"/symbols")}},{key:"list",value:function(e){return this.cache||(this.cache=this.load(e).pipe((0,POe.d)(1))),this.cache}},{key:"raw",value:function(e,i){var o=encodeURI(i);return this.httpController.getText(e,"/symbols/".concat(o,"/raw"))}},{key:"getSymbolFromTemplate",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),n}();Of.\u0275fac=function(r){return new(r||Of)(t.LFG(mo.zw))},Of.\u0275prov=t.Yz7({token:Of,factory:Of.\u0275fac});var r2=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();r2.\u0275fac=function(r){return new(r||r2)},r2.\u0275pipe=t.Yjl({name:"filenamefilter",type:r2,pure:!0});var LOe=function(r){return{buttonSelected:r}},ZOe=function(r){return{imageSelected:r}};function NOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"button",13),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.setSelected(l.symbol_id))}),t._UZ(2,"img",14),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(3,LOe,o.isSelected===i.symbol_id)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,ZOe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),t.LSH)}}var BOe=function(){return{standalone:!0}},gk=function(){function n(r){(0,U.Z)(this,n),this.symbolService=r,this.symbolChanged=new t.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.isSelected=this.symbol,this.loadSymbols()}},{key:"setFilter",value:function(e){this.filteredSymbols="all"===e?this.symbols:"builtin"===e?this.symbols.filter(function(i){return i.builtin}):this.symbols.filter(function(i){return!i.builtin})}},{key:"setSelected",value:function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)}},{key:"loadSymbols",value:function(){var e=this;this.symbolService.list(this.controller).subscribe(function(i){e.symbols=i,e.filteredSymbols=i})}},{key:"uploadSymbolFile",value:function(e){this.readSymbolFile(e.target)}},{key:"readSymbolFile",value:function(e){var i=this,o=e.files[0],a=e.files[0].name,s=new FileReader,l=new Image;s.onloadend=function(){var u=s.result,d=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,d).subscribe(function(){i.loadSymbols()})},l.onload=function(){s.readAsDataURL(o)},l.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"getImageSourceForTemplate",value:function(e){return"".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Wa.N.current_version,"/symbols/").concat(e,"/raw")}}]),n}();gk.\u0275fac=function(r){return new(r||gk)(t.Y36(Of))},gk.\u0275cmp=t.Xpm({type:gk,selectors:[["app-symbols"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),t.NdJ("click",function(){return e.setFilter("all")}),t._uU(3,"All symbols"),t.qZA(),t.TgZ(4,"mat-radio-button",3),t.NdJ("click",function(){return e.setFilter("builtin")}),t._uU(5,"Built-in symbols"),t.qZA(),t.TgZ(6,"mat-radio-button",4),t.NdJ("click",function(){return e.setFilter("custom")}),t._uU(7,"Custom symbols"),t.qZA()(),t.TgZ(8,"input",5,6),t.NdJ("change",function(a){return e.uploadSymbolFile(a)}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(9);return t.KtG(a.click())}),t.TgZ(11,"mat-icon"),t._uU(12,"add"),t.qZA(),t._uU(13," Add symbol "),t.qZA()(),t.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()()(),t.TgZ(17,"div",10),t.YNc(18,NOe,3,7,"div",11),t.ALo(19,"filenamefilter"),t.qZA()}2&r&&(t.xp6(16),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(6,BOe)),t.xp6(2),t.Q6J("ngForOf",t.xi3(19,3,e.filteredSymbols,e.searchText)))},dependencies:[ge.mk,ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,cn,Dn,Kn,ns,Gs,r2],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0px;outline:none}.buttonSelected[_ngcontent-%COMP%]{background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]});var Zu=function(){function n(){(0,U.Z)(this,n),this.symbolChangedEmitter=new t.vpe,this.chosenSymbol=""}return(0,B.Z)(n,[{key:"symbolChanged",value:function(e){this.chosenSymbol=e}},{key:"chooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.chosenSymbol)}},{key:"cancelChooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.symbol)}}]),n}();function FOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function UOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function HOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function jOe(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"div",11),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function GOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function zOe(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"div",11),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function WOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Name "),t.qZA())}function VOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function YOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Local port "),t.qZA())}function KOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rport," ")}}function qOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Type "),t.qZA())}function JOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rhost," ")}}function QOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Remote port "),t.qZA())}function XOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.lport," ")}}function $Oe(n,r){1&n&&t._UZ(0,"tr",48)}function eIe(n,r){1&n&&t._UZ(0,"tr",49)}function tIe(n,r){if(1&n&&(t.TgZ(0,"table",37),t.ynx(1,38),t.YNc(2,WOe,2,0,"th",39),t.YNc(3,VOe,2,1,"td",40),t.BQk(),t.ynx(4,41),t.YNc(5,YOe,2,0,"th",39),t.YNc(6,KOe,2,1,"td",40),t.BQk(),t.ynx(7,42),t.YNc(8,qOe,2,0,"th",39),t.YNc(9,JOe,2,1,"td",40),t.BQk(),t.ynx(10,43),t.YNc(11,QOe,2,0,"th",39),t.YNc(12,XOe,2,1,"td",40),t.BQk(),t.YNc(13,$Oe,1,0,"tr",44),t.YNc(14,eIe,1,0,"tr",45),t.qZA()),2&n){var e=t.oxw(2);t.Q6J("dataSource",e.dataSourceUdp),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function nIe(n,r){1&n&&t._UZ(0,"br")}Zu.\u0275fac=function(r){return new(r||Zu)},Zu.\u0275cmp=t.Xpm({type:Zu,selectors:[["app-symbols-menu"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"controller","symbol","symbolChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Symbol selection"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.cancelChooseSymbol()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.chooseSymbol()}),t._uU(8,"Choose symbol"),t.qZA()()(),t.TgZ(9,"div",6)(10,"app-symbols",7),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()()),2&r&&(t.xp6(10),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[cn,gk],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var rIe=function(){return{standalone:!0}};function iIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General "),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.name=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.symbol=a)}),t.qZA()(),t.TgZ(12,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(13,"Choose symbol"),t.qZA(),t._UZ(14,"br")(15,"br"),t.TgZ(16,"mat-form-field",11)(17,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.category=a)}),t.YNc(18,UOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(19,"mat-form-field",18)(20,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.console_type=a)}),t.YNc(21,HOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(22,"mat-form-field",11)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_host=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",11)(25,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_port=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",11)(27,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Ethernet interfaces "),t.qZA()(),t.YNc(32,jOe,5,1,"div",23),t.TgZ(33,"mat-form-field",18)(34,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(35,GOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(36,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(37,"Add"),t.qZA()(),t.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),t._uU(41," TAP interfaces "),t.qZA()(),t.YNc(42,zOe,5,1,"div",23),t.TgZ(43,"mat-form-field",11)(44,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(45,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(46,"Add"),t.qZA()(),t.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," UDP tunnels "),t.qZA()(),t.YNc(51,tIe,15,3,"table",27),t.YNc(52,nIe,1,0,"br",28),t.TgZ(53,"mat-form-field",11)(54,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.name=a)}),t.qZA()(),t.TgZ(55,"mat-form-field",11)(56,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.lport=a)}),t.qZA()(),t.TgZ(57,"mat-form-field",11)(58,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rhost=a)}),t.qZA()(),t.TgZ(59,"mat-form-field",11)(60,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rport=a)}),t.qZA()(),t.TgZ(61,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddUdpInterface())}),t._uU(62,"Add"),t.qZA()(),t.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66," Usage "),t.qZA()(),t.TgZ(67,"mat-form-field",11)(68,"textarea",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.usage=a)}),t.qZA()()()(),t.TgZ(69,"div",34)(70,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(71,"Cancel"),t.qZA(),t.TgZ(72,"button",35),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(73,"Save"),t.qZA(),t._UZ(74,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(7),t.Q6J("ngModel",i.cloudNodeTemplate.name),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.cloudNodeTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),t.xp6(5),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,rIe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(7),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(7),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",i.newPort.name),t.xp6(2),t.Q6J("ngModel",i.newPort.lport),t.xp6(2),t.Q6J("ngModel",i.newPort.rhost),t.xp6(2),t.Q6J("ngModel",i.newPort.rport),t.xp6(8),t.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function oIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",50),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var aIe=function(r){return{shadowed:r}},i2=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.cloudNodeTemplate=s,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"ethernet"===l.type}),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"tap"===l.type}),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"udp"===l.type}),e.dataSourceUdp=e.portsMappingUdp})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onAddUdpInterface",value:function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,fn.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,fn.Z)(this.portsMappingEthernet),(0,fn.Z)(this.portsMappingTap)),this.builtInTemplatesService.saveTemplate(this.controller,this.cloudNodeTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=e}}]),n}();function sIe(n,r){}i2.\u0275fac=function(r){return new(r||i2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(Pn),t.Y36(wc),t.Y36(dr))},i2.\u0275cmp=t.Xpm({type:i2,selectors:[["app-cloud-nodes-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","Remote port",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,FOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud node template configuration"),t.qZA()()()(),t.YNc(8,iIe,75,24,"div",7),t.qZA(),t.YNc(9,oIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,aIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.cloudNodeTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var o2=(0,B.Z)(function n(){(0,U.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0});var rb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,U.Z)(this,e),(g=r.call(this))._elementRef=i,g._focusTrapFactory=o,g._config=s,g._interactivityChecker=l,g._ngZone=u,g._overlayRef=d,g._focusMonitor=h,g._elementFocusedBeforeDialogWasOpened=null,g._closeInteractionType=null,g.attachDomPortal=function(C){g._portalOutlet.hasAttached();var Z=g._portalOutlet.attachDomPortal(C);return g._contentAttached(),Z},g._ariaLabelledBy=g._config.ariaLabelledBy||null,g._document=a,g}return(0,B.Z)(e,[{key:"_contentAttached",value:function(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}},{key:"_captureInitialFocus",value:function(){this._trapFocus()}},{key:"ngOnDestroy",value:function(){this._restoreFocus()}},{key:"attachComponentPortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),a}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(o,a){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var s=function l(){o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",s),o.addEventListener("mousedown",s)})),o.focus(a)}},{key:"_focusByCssSelector",value:function(o,a){var s=this._elementRef.nativeElement.querySelector(o);s&&this._forceFocus(s,a)}},{key:"_trapFocus",value:function(){var o=this,a=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||a.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||o._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._config.restoreFocus,a=null;if("string"==typeof o?a=this._document.querySelector(o):"boolean"==typeof o?a=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(a=o),this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,Ii.ht)(),l=this._elementRef.nativeElement;(!s||s===this._document.body||s===l||l.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var o=this._elementRef.nativeElement,a=(0,Ii.ht)();return o===a||o.contains(a)}},{key:"_initializeFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Ii.ht)())}},{key:"_handleBackdropClicks",value:function(){var o=this;this._overlayRef.backdropClick().subscribe(function(){o._config.disableClose&&o._recaptureFocus()})}}]),e}(uo.en);rb.\u0275fac=function(r){return new(r||rb)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(o2),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Ei.Iu),t.Y36(Yr.tE))},rb.\u0275cmp=t.Xpm({type:rb,selectors:[["cdk-dialog-container"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(uo.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,e){2&r&&t.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,sIe,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});var oz=function(){function n(r,e){var i=this;(0,U.Z)(this,n),this.overlayRef=r,this.config=e,this.closed=new In.xQ,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(function(o){o.keyCode===xr.hY&&!i.disableClose&&!(0,xr.Vb)(o)&&(o.preventDefault(),i.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(function(){i.disableClose||i.close(void 0,{focusOrigin:"mouse"})})}return(0,B.Z)(n,[{key:"close",value:function(e,i){if(this.containerInstance){var o=this.closed;this.containerInstance._closeInteractionType=(null==i?void 0:i.focusOrigin)||"program",this.overlayRef.dispose(),o.next(e),o.complete(),this.componentInstance=this.containerInstance=null}}},{key:"updatePosition",value:function(){return this.overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.overlayRef.updateSize({width:e,height:i}),this}},{key:"addPanelClass",value:function(e){return this.overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this.overlayRef.removePanelClass(e),this}}]),n}(),yie=new t.OlP("DialogScrollStrategy"),bie=new t.OlP("DialogData"),lIe=new t.OlP("DefaultDialogConfig");var cIe={provide:yie,deps:[Ei.aV],useFactory:function uIe(n){return function(){return n.scrollStrategies.block()}}},dIe=0,_m=function(){function n(r,e,i,o,a,s){var l=this;(0,U.Z)(this,n),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new In.xQ,this._afterOpenedAtThisLevel=new In.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,gD.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,eo.O)(void 0))}),this._scrollStrategy=s}return(0,B.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"open",value:function(e,i){var o=this,a=this._defaultOptions||new o2;(i=Object.assign(Object.assign({},a),i)).id=i.id||"cdk-dialog-".concat(dIe++),i.id&&this.getDialogById(i.id);var s=this._getOverlayConfig(i),l=this._overlay.create(s),u=new oz(l,i),d=this._attachContainer(l,u,i);return u.containerInstance=d,this._attachDialogContent(e,u,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(function(){return o._removeOpenDialog(u,!0)}),this.afterOpened.next(u),u}},{key:"closeAll",value:function(){az(this.openDialogs,function(e){return e.close()})}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){var e=this;az(this._openDialogsAtThisLevel,function(i){!1===i.config.closeOnDestroy&&e._removeOpenDialog(i,!1)}),az(this._openDialogsAtThisLevel,function(i){return i.close()}),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}},{key:"_getOverlayConfig",value:function(e){var i=new Ei.X_({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachContainer",value:function(e,i,o){var a,u,s=o.injector||(null===(a=o.viewContainerRef)||void 0===a?void 0:a.injector),l=[{provide:o2,useValue:o},{provide:oz,useValue:i},{provide:Ei.Iu,useValue:e}];o.container?"function"==typeof o.container?u=o.container:(u=o.container.type,l.push.apply(l,(0,fn.Z)(o.container.providers(o)))):u=rb;var d=new uo.C5(u,o.viewContainerRef,t.zs3.create({parent:s||this._injector,providers:l}),o.componentFactoryResolver);return e.attach(d).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){if(e instanceof t.Rgc){var s=this._createInjector(a,i,o,void 0),l={$implicit:a.data,dialogRef:i};a.templateContext&&(l=Object.assign(Object.assign({},l),"function"==typeof a.templateContext?a.templateContext():a.templateContext)),o.attachTemplatePortal(new uo.UE(e,null,l,s))}else{var u=this._createInjector(a,i,o,this._injector),d=o.attachComponentPortal(new uo.C5(e,a.viewContainerRef,u,a.componentFactoryResolver));i.componentInstance=d.instance}}},{key:"_createInjector",value:function(e,i,o,a){var s,l=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),u=[{provide:bie,useValue:e.data},{provide:oz,useValue:i}];return e.providers&&("function"==typeof e.providers?u.push.apply(u,(0,fn.Z)(e.providers(i,e,o))):u.push.apply(u,(0,fn.Z)(e.providers))),e.direction&&(!l||!l.get(Ls.Is,null,t.XFs.Optional))&&u.push({provide:Ls.Is,useValue:{value:e.direction,change:(0,qn.of)()}}),t.zs3.create({parent:l||a,providers:u})}},{key:"_removeOpenDialog",value:function(e,i){var o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var i=e.parentElement.children,o=i.length-1;o>-1;o--){var a=i[o];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}]),n}();function az(n,r){for(var e=n.length;e--;)r(n[e])}_m.\u0275fac=function(r){return new(r||_m)(t.LFG(Ei.aV),t.LFG(t.zs3),t.LFG(lIe,8),t.LFG(_m,12),t.LFG(Ei.Xj),t.LFG(yie))},_m.\u0275prov=t.Yz7({token:_m,factory:_m.\u0275fac});var ib=(0,B.Z)(function n(){(0,U.Z)(this,n)});function pIe(n,r){}ib.\u0275fac=function(r){return new(r||ib)},ib.\u0275mod=t.oAB({type:ib}),ib.\u0275inj=t.cJS({providers:[_m,cIe],imports:[Ei.U8,uo.eL,Yr.rt,uo.eL]});var vk={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},fIe={dialogContainer:(0,Rt.X$)("dialogContainer",[(0,Rt.SB)("void, exit",(0,Rt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Rt.SB)("enter",(0,Rt.oB)({transform:"none"})),(0,Rt.eR)("* => enter",(0,Rt.ru)([(0,Rt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({transform:"none",opacity:1})),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]),vk),(0,Rt.eR)("* => void, * => exit",(0,Rt.ru)([(0,Rt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Rt.oB)({opacity:0})),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]),vk)])},BB=(0,B.Z)(function n(){(0,U.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=vk.params.enterAnimationDuration,this.exitAnimationDuration=vk.params.exitAnimationDuration}),a2=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,U.Z)(this,e),(g=r.call(this,i,o,a,s,l,u,d,h))._animationStateChanged=new t.vpe,g}return(0,B.Z)(e,[{key:"_captureInitialFocus",value:function(){this._config.delayFocusTrap||this._trapFocus()}},{key:"_openAnimationDone",value:function(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}]),e}(rb);a2.\u0275fac=function(r){return new(r||a2)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(BB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Ei.Iu),t.Y36(Yr.tE))},a2.\u0275cmp=t.Xpm({type:a2,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(r,e){},encapsulation:2});var s2=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g){var C;return(0,U.Z)(this,e),(C=r.call(this,i,o,a,s,l,u,d,g))._changeDetectorRef=h,C._state="enter",C}return(0,B.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._openAnimationDone(s):"exit"===a&&this._animationStateChanged.next({state:"closed",totalTime:s})}},{key:"_onAnimationStart",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===a||"void"===a)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_getAnimationState",value:function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||vk.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||vk.params.exitAnimationDuration}}}}]),e}(a2);s2.\u0275fac=function(r){return new(r||s2)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(BB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Ei.Iu),t.Y36(t.sBO),t.Y36(Yr.tE))},s2.\u0275cmp=t.Xpm({type:s2,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(r,e){1&r&&t.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.Ikx("id",e._config.id),t.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),t.d8E("@dialogContainer",e._getAnimationState()))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,pIe,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[fIe.dialogContainer]}});var lr=function(){function n(r,e,i){var o=this;(0,U.Z)(this,n),this._ref=r,this._containerInstance=i,this._afterOpened=new In.xQ,this._beforeClosed=new In.xQ,this._state=0,this.disableClose=e.disableClose,this.id=r.id,i._animationStateChanged.pipe((0,ni.h)(function(a){return"opened"===a.state}),(0,xi.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,ni.h)(function(a){return"closed"===a.state}),(0,xi.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._finishDialogClose()}),r.overlayRef.detachments().subscribe(function(){o._beforeClosed.next(o._result),o._beforeClosed.complete(),o._finishDialogClose()}),(0,ji.T)(this.backdropClick(),this.keydownEvents().pipe((0,ni.h)(function(a){return a.keyCode===xr.hY&&!o.disableClose&&!(0,xr.Vb)(a)}))).subscribe(function(a){o.disableClose||(a.preventDefault(),Cie(o,"keydown"===a.type?"keyboard":"mouse"))})}return(0,B.Z)(n,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,ni.h)(function(o){return"closing"===o.state}),(0,xi.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._ref.overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._ref.closed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}},{key:"updatePosition",value:function(e){var i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._ref.updateSize(e,i),this}},{key:"addPanelClass",value:function(e){return this._ref.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._ref.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}]),n}();function Cie(n,r,e){return n._closeInteractionType=r,n.close(e)}var go=new t.OlP("MatDialogData"),hIe=new t.OlP("mat-dialog-default-options"),wie=new t.OlP("mat-dialog-scroll-strategy");var _Ie={provide:wie,deps:[Ei.aV],useFactory:function mIe(n){return function(){return n.scrollStrategies.block()}}},gIe=0,l2=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,U.Z)(this,n),this._overlay=r,this._defaultOptions=i,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new In.xQ,this._afterOpenedAtThisLevel=new In.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,gD.P)(function(){return g.openDialogs.length?g._getAfterAllClosed():g._getAfterAllClosed().pipe((0,eo.O)(void 0))}),this._scrollStrategy=s,this._dialog=e.get(_m)}return(0,B.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,i){var a,o=this;(i=Object.assign(Object.assign({},this._defaultOptions||new BB),i)).id=i.id||"".concat(this._idPrefix).concat(gIe++),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();var s=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:BB,useValue:i},{provide:o2,useValue:i}]}},templateContext:function(){return{dialogRef:a}},providers:function(u,d,h){return(a=new o._dialogRefConstructor(u,i,h)).updatePosition(null==i?void 0:i.position),[{provide:o._dialogContainerType,useValue:h},{provide:o._dialogDataToken,useValue:d.data},{provide:o._dialogRefConstructor,useValue:a}]}}));return a.componentInstance=s.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(function(){var l=o.openDialogs.indexOf(a);l>-1&&(o.openDialogs.splice(l,1),o.openDialogs.length||o._getAfterAllClosed().next())}),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),n}();l2.\u0275fac=function(r){t.$Z()},l2.\u0275prov=t.Yz7({token:l2,factory:l2.\u0275fac});var Hr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,U.Z)(this,e),r.call(this,i,o,s,u,d,l,lr,s2,go,h)}return(0,B.Z)(e)}(l2);Hr.\u0275fac=function(r){return new(r||Hr)(t.LFG(Ei.aV),t.LFG(t.zs3),t.LFG(ge.Ye,8),t.LFG(hIe,8),t.LFG(wie),t.LFG(Hr,12),t.LFG(Ei.Xj),t.LFG(t.QbO,8))},Hr.\u0275prov=t.Yz7({token:Hr,factory:Hr.\u0275fac});var vIe=0,Eg=function(){function n(r,e,i){(0,U.Z)(this,n),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=kie(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}},{key:"_onButtonClick",value:function(e){Cie(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),n}();Eg.\u0275fac=function(r){return new(r||Eg)(t.Y36(lr,8),t.Y36(t.SBq),t.Y36(Hr))},Eg.\u0275dir=t.lG2({type:Eg,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&t.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.TTD]});var yr=function(){function n(r,e,i){(0,U.Z)(this,n),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(vIe++)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=kie(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),n}();yr.\u0275fac=function(r){return new(r||yr)(t.Y36(lr,8),t.Y36(t.SBq),t.Y36(Hr))},yr.\u0275dir=t.lG2({type:yr,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var cl=(0,B.Z)(function n(){(0,U.Z)(this,n)});cl.\u0275fac=function(r){return new(r||cl)},cl.\u0275dir=t.lG2({type:cl,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var ur=(0,B.Z)(function n(){(0,U.Z)(this,n),this.align="start"});function kie(n,r){for(var e=n.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}ur.\u0275fac=function(r){return new(r||ur)},ur.\u0275dir=t.lG2({type:ur,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}});var yk=(0,B.Z)(function n(){(0,U.Z)(this,n)});yk.\u0275fac=function(r){return new(r||yk)},yk.\u0275mod=t.oAB({type:yk}),yk.\u0275inj=t.cJS({providers:[Hr,_Ie],imports:[ib,Ei.U8,uo.eL,Wt.BQ,Wt.BQ]});var u2=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();u2.\u0275fac=function(r){return new(r||u2)(t.Y36(lr),t.Y36(go))},u2.\u0275cmp=t.Xpm({type:u2,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Delete template"),t.qZA(),t.TgZ(3,"div",2),t._uU(4),t.qZA(),t._UZ(5,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"No"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onYesClick()}),t._uU(10," Yes "),t.qZA()()()),2&r&&(t.xp6(4),t.hij("Are you sure you want to delete template ",e.templateName,"?"))},dependencies:[cn,yr,cl,ur],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var sp=function(){function n(r){(0,U.Z)(this,n),this.httpController=r,this.newTemplateCreated=new In.xQ}return(0,B.Z)(n,[{key:"list",value:function(e){return this.httpController.get(e,"/templates")}},{key:"deleteTemplate",value:function(e,i){return this.httpController.delete(e,"/templates/".concat(i),{observe:"body"})}}]),n}();sp.\u0275fac=function(r){return new(r||sp)(t.LFG(mo.zw))},sp.\u0275prov=t.Yz7({token:sp,factory:sp.\u0275fac});var sa=function(){function n(r,e,i){(0,U.Z)(this,n),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new t.vpe}return(0,B.Z)(n,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(u2,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(s){s&&o.templateService.deleteTemplate(o.controller,i).subscribe(function(l){o.deleteEvent.emit(i),o.toasterService.success("Template ".concat(e," deleted."))})})}}]),n}();sa.\u0275fac=function(r){return new(r||sa)(t.Y36(sp),t.Y36(Hr),t.Y36(Pn))},sa.\u0275cmp=t.Xpm({type:sa,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){}});var Tie=m(9931),sz=m(943);function bIe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}var Mie=["*"];function CIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._handleKeydown(a))})("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationStart(a))})("@transformMenu.done",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationDone(a))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var FB={transformMenu:(0,Rt.X$)("transformMenu",[(0,Rt.SB)("void",(0,Rt.oB)({opacity:0,transform:"scale(0.8)"})),(0,Rt.eR)("void => enter",(0,Rt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({opacity:1,transform:"scale(1)"}))),(0,Rt.eR)("* => void",(0,Rt.jt)("100ms 25ms linear",(0,Rt.oB)({opacity:0})))]),fadeInItems:(0,Rt.X$)("fadeInItems",[(0,Rt.SB)("showing",(0,Rt.oB)({opacity:1})),(0,Rt.eR)("void => *",[(0,Rt.oB)({opacity:0}),(0,Rt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sie=(FB.fadeInItems,FB.transformMenu,new t.OlP("MatMenuContent")),c2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new In.xQ}return(0,B.Z)(n,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new uo.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new uo.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var o=this._template.elementRef.nativeElement;o.parentNode.insertBefore(this._outlet.outletElement,o),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),n}();c2.\u0275fac=function(r){return new(r||c2)(t.Y36(t.Rgc),t.Y36(t._Vd),t.Y36(t.z2F),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(ge.K0),t.Y36(t.sBO))},c2.\u0275dir=t.lG2({type:c2});var bk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(c2);bk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bk)))(e||bk)}}(),bk.\u0275dir=t.lG2({type:bk,selectors:[["ng-template","matMenuContent",""]],features:[t._Bn([{provide:Sie,useExisting:bk}]),t.qOj]});var lz=new t.OlP("MAT_MENU_PANEL"),wIe=(0,Wt.Kr)((0,Wt.Id)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}())),Tr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d;return(0,U.Z)(this,e),(u=r.call(this))._elementRef=i,u._document=o,u._focusMonitor=a,u._parentMenu=s,u._changeDetectorRef=l,u.role="menuitem",u._hovered=new In.xQ,u._focused=new In.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(d=null==s?void 0:s.addItem)||void 0===d||d.call(s,(0,_D.Z)(u)),u}return(0,B.Z)(e,[{key:"focus",value:function(o,a){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var o,a=this._elementRef.nativeElement.cloneNode(!0),s=a.querySelectorAll("mat-icon, .material-icons"),l=0;l<s.length;l++)s[l].remove();return(null===(o=a.textContent)||void 0===o?void 0:o.trim())||""}},{key:"_setHighlighted",value:function(o){var a;this._highlighted=o,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_hasFocus",value:function(){return this._document&&this._document.activeElement===this._getHostElement()}}]),e}(wIe);Tr.\u0275fac=function(r){return new(r||Tr)(t.Y36(t.SBq),t.Y36(ge.K0),t.Y36(Yr.tE),t.Y36(lz,8),t.Y36(t.sBO))},Tr.\u0275cmp=t.Xpm({type:Tr,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(t.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),t.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:["mat-menu-item",""],ngContentSelectors:Mie,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,e){1&r&&(t.F$t(),t.Hsn(0),t._UZ(1,"div",0),t.YNc(2,bIe,2,0,"svg",1)),2&r&&(t.xp6(1),t.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),t.xp6(1),t.Q6J("ngIf",e._triggersSubmenu))},dependencies:[ge.O5,Wt.wG],encapsulation:2,changeDetection:0});var xie=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function kIe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var TIe=0,gm=function(){function n(r,e,i,o){(0,U.Z)(this,n),this._elementRef=r,this._ngZone=e,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._tabSubscription=xa.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new In.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(TIe++)}return(0,B.Z)(n,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=(0,Mn.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,Mn.Ig)(e)}},{key:"panelClass",set:function(e){var i=this,o=this._previousPanelClass;o&&o.length&&o.split(" ").forEach(function(a){i._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(a){i._classList[a]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Yr.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,eo.O)(this._directDescendantItems),(0,Co.w)(function(i){return ji.T.apply(void 0,(0,fn.Z)(i.map(function(o){return o._focused})))})).subscribe(function(i){return e._keyManager.updateActiveItem(i)}),this._directDescendantItems.changes.subscribe(function(i){var o,a=e._keyManager;if("enter"===e._panelAnimationState&&(null===(o=a.activeItem)||void 0===o?void 0:o._hasFocus())){var s=i.toArray(),l=Math.max(0,Math.min(s.length-1,a.activeItemIndex||0));s[l]&&!s[l].disabled?a.setActiveItem(l):a.setNextItemActive()}})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe((0,eo.O)(this._directDescendantItems),(0,Co.w)(function(i){return ji.T.apply(void 0,(0,fn.Z)(i.map(function(o){return o._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=this._keyManager;switch(i){case xr.hY:(0,xr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case xr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case xr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===xr.LH||i===xr.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}},{key:"focusFirstItem",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this._ngZone.onStable.pipe((0,xi.q)(1)).subscribe(function(){var o=null;if(e._directDescendantItems.length&&(o=e._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!o||!o.contains(document.activeElement)){var a=e._keyManager;a.setFocusOrigin(i).setFirstItemActive(),!a.activeItem&&o&&o.focus()}})}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var i=this,o=Math.min(this._baseElevation+e,24),a="".concat(this._elevationPrefix).concat(o),s=Object.keys(this._classList).find(function(l){return l.startsWith(i._elevationPrefix)});(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}},{key:"setPositionClasses",value:function(){var o,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===i,a["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,eo.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),n}();gm.\u0275fac=function(r){return new(r||gm)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(xie),t.Y36(t.sBO))},gm.\u0275dir=t.lG2({type:gm,contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Sie,5),t.Suo(i,Tr,5),t.Suo(i,Tr,4)),2&r)&&(t.iGM(o=t.CRH())&&(e.lazyContent=o.first),t.iGM(o=t.CRH())&&(e._allItems=o),t.iGM(o=t.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,5),2&r)&&(t.iGM(i=t.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var Va=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,B.Z)(e)}(gm);Va.\u0275fac=function(r){return new(r||Va)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(xie),t.Y36(t.sBO))},Va.\u0275cmp=t.Xpm({type:Va,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:lz,useExisting:Va}]),t.qOj],ngContentSelectors:Mie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,CIe,3,6,"ng-template"))},dependencies:[ge.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[FB.transformMenu,FB.fadeInItems]},changeDetection:0});var Eie=new t.OlP("mat-menu-scroll-strategy");var SIe={provide:Eie,deps:[Ei.aV],useFactory:function MIe(n){return function(){return n.scrollStrategies.reposition()}}},Die=(0,Ii.i$)({passive:!0}),d2=function(){function n(r,e,i,o,a,s,l,u,d){var h=this;(0,U.Z)(this,n),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xa.w.EMPTY,this._hoverSubscription=xa.w.EMPTY,this._menuCloseSubscription=xa.w.EMPTY,this._handleTouchStart=function(g){(0,Yr.yG)(g)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof gm?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Die),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,B.Z)(n,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var i=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(function(o){i._destroyMenu(o),("click"===o||"tab"===o)&&i._parentMaterialMenu&&i._parentMaterialMenu.closed.emit(o)})))}},{key:"ngAfterContentInit",value:function(){this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Die),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this,i=this.menu;if(!this._menuOpen&&i){var o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),a.hasBackdrop=null==i.hasBackdrop?!this.triggersSubmenu():i.hasBackdrop,o.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(i),i instanceof gm&&(i._startAnimation(),i._directDescendantItems.changes.pipe((0,Br.R)(i.close)).subscribe(function(){s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}},{key:"focus",value:function(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var o,i=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof gm?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,ni.h)(function(s){return"void"===s.toState}),(0,xi.q)(1),(0,Br.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(o=null==a?void 0:a.lazyContent)||void 0===o||o.detach())}}},{key:"_initMenu",value:function(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(e){if(e.setElevation){for(var i=0,o=e.parentMenu;o;)i++,o=o.parentMenu;e.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_createOverlay",value:function(e){if(!this._overlayRef){var i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(e){return new Ei.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e,i){var o=this;e.setPositionClasses&&i.positionChanges.subscribe(function(a){var s="start"===a.connectionPair.overlayX?"after":"before",l="top"===a.connectionPair.overlayY?"below":"above";o._ngZone?o._ngZone.run(function(){return e.setPositionClasses(s,l)}):e.setPositionClasses(s,l)})}},{key:"_setPosition",value:function(e,i){var o="before"===e.xPosition?["end","start"]:["start","end"],a=(0,Nn.Z)(o,2),s=a[0],l=a[1],u="above"===e.yPosition?["bottom","top"]:["top","bottom"],d=(0,Nn.Z)(u,2),h=d[0],g=d[1],C=h,Z=g,z=s,q=l,re=0;if(this.triggersSubmenu()){if(q=s="before"===e.xPosition?"start":"end",l=z="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){var ae=this._parentMaterialMenu.items.first;this._parentInnerPadding=ae?ae._getHostElement().offsetTop:0}re="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(C="top"===h?"bottom":"top",Z="top"===g?"bottom":"top");i.withPositions([{originX:s,originY:C,overlayX:z,overlayY:h,offsetY:re},{originX:l,originY:C,overlayX:q,overlayY:h,offsetY:re},{originX:s,originY:Z,overlayX:z,overlayY:g,offsetY:-re},{originX:l,originY:Z,overlayX:q,overlayY:g,offsetY:-re}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,qn.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ni.h)(function(l){return l!==e._menuItemInstance}),(0,ni.h)(function(){return e._menuOpen})):(0,qn.of)();return(0,ji.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Yr.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===xr.K5||i===xr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===xr.SV&&"ltr"===this.dir||i===xr.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ni.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,sz.g)(0,Tie.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof gm&&e.menu._isAnimating?e.menu._animationDone.pipe((0,xi.q)(1),(0,sz.g)(0,Tie.E),(0,Br.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new uo.UE(e.templateRef,this._viewContainerRef)),this._portal}}]),n}();d2.\u0275fac=function(r){return new(r||d2)(t.Y36(Ei.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Eie),t.Y36(lz,8),t.Y36(Tr,10),t.Y36(Ls.Is,8),t.Y36(Yr.tE),t.Y36(t.R0b))},d2.\u0275dir=t.lG2({type:d2,hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&t.uIk("aria-haspopup",e.menu?"menu":null)("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var _a=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(d2);_a.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_a)))(e||_a)}}(),_a.\u0275dir=t.lG2({type:_a,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]});var Dg=(0,B.Z)(function n(){(0,U.Z)(this,n)});Dg.\u0275fac=function(r){return new(r||Dg)},Dg.\u0275mod=t.oAB({type:Dg}),Dg.\u0275inj=t.cJS({providers:[SIe],imports:[ge.ez,Wt.BQ,Wt.si,Ei.U8,ha.ZD,Wt.BQ]});var Nu=(0,B.Z)(function n(){(0,U.Z)(this,n),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});function xIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function EIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function DIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function AIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function OIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,AIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.cloudNodesTemplates)}}function IIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,OIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}Nu.\u0275fac=function(r){return new(r||Nu)},Nu.\u0275cmp=t.Xpm({type:Nu,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),t._uU(3),t.qZA()()()),2&r&&(t.xp6(3),t.hij(" ",e.emptyTemplatesListMessage," "))},dependencies:[si],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var p2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.cloudNodesTemplates=i.filter(function(o){return"cloud"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function PIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}p2.\u0275fac=function(r){return new(r||p2)(t.Y36(fr),t.Y36(rr),t.Y36(du))},p2.\u0275cmp=t.Xpm({type:p2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,xIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud nodes templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,EIe,3,1,"button",7),t.qZA()()(),t.YNc(10,DIe,1,0,"app-empty-templates-list",8),t.YNc(11,IIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var f2=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetHubTemplate().subscribe(function(a){i=a}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({name:"Ethernet".concat(o),port_number:o});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(){e.goBack()})}}}]),n}();function RIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function LIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}f2.\u0275fac=function(r){return new(r||f2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(dr),t.Y36(Pn),t.Y36(Al),t.Y36(J.QS),t.Y36(ap.X))},f2.\u0275cmp=t.Xpm({type:f2,selectors:[["app-ethernet-hubs-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","min","0","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,PIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet hub template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet Hub locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,si,Dn,Kn,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Aie=function(){return{standalone:!0}};function ZIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",12)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.symbol=a)}),t.qZA()(),t.TgZ(9,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(10,"Choose symbol"),t.qZA(),t._UZ(11,"br")(12,"br"),t.TgZ(13,"mat-form-field",12)(14,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.category=a)}),t.YNc(15,LIe,2,2,"mat-option",18),t.qZA()(),t.TgZ(16,"mat-form-field",12)(17,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.numberOfPorts=a)}),t.qZA()()()(),t.TgZ(18,"div",20)(19,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(22,"Save"),t.qZA(),t._UZ(23,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(9,Aie))("ngModel",i.ethernetHubTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",t.DdM(10,Aie))}}function NIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",23),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var BIe=function(r){return{shadowed:r}},h2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.categories=e.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetHubTemplate=s,e.numberOfPorts=e.ethernetHubTemplate.ports_mapping.length})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"onSave",value:function(){var e=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetHubTemplate).subscribe(function(o){e.toasterService.success("Changes saved")})}}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=e}}]),n}();function FIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function UIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function HIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function jIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function GIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,jIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetHubsTemplates)}}function zIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,GIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}h2.\u0275fac=function(r){return new(r||h2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(Pn),t.Y36(J.QS),t.Y36(wc),t.Y36(dr))},h2.\u0275cmp=t.Xpm({type:h2,selectors:[["app-ethernet-hubs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,RIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hub template configuration"),t.qZA()()()(),t.YNc(8,ZIe,24,11,"div",7),t.qZA(),t.YNc(9,NIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,BIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetHubTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Dn,Kn,$r.gD,Wt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var m2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetHubsTemplates=i.filter(function(o){return"ethernet_hub"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function WIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}m2.\u0275fac=function(r){return new(r||m2)(t.Y36(fr),t.Y36(rr),t.Y36(du))},m2.\u0275cmp=t.Xpm({type:m2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,FIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hubs templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,UIe,3,1,"button",7),t.qZA()()(),t.YNc(10,HIe,1,0,"app-empty-templates-list",8),t.YNc(11,zIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var _2=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(a){i=a}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({ethertype:"0x8100",name:"Ethernet".concat(o),port_number:o,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(a){e.goBack()})}}}]),n}();function VIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Port number"),t.qZA())}function YIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.port_number)}}function KIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"VLAN"),t.qZA())}function qIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.vlan)}}function JIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function QIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.type)}}function XIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"EtherType"),t.qZA())}function $Ie(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.ethertype)}}function ePe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function tPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function nPe(n,r){1&n&&t._UZ(0,"tr",22)}function rPe(n,r){1&n&&t._UZ(0,"tr",23)}function iPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function oPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}_2.\u0275fac=function(r){return new(r||_2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(dr),t.Y36(Pn),t.Y36(Al),t.Y36(J.QS),t.Y36(ap.X))},_2.\u0275cmp=t.Xpm({type:_2,selectors:[["app-ethernet-switches-add-template"]],decls:23,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","min","0","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,WIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet switch template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet switch locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,si,Dn,Kn,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Oie=function(){return{standalone:!0}},Ag=function(){function n(r,e){(0,U.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.toasterService=e,this.ethernetPorts=[],this.newPort={name:"",port_number:0,vlan:1,type:"access",ethertype:"0x8100"},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration(),this.newPort.port_number=this.ethernetPorts.length}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAdd",value:function(){var e=this;if(this.ethernetPorts.some(function(a){return a.port_number===e.newPort.port_number}))this.toasterService.error("Port number ".concat(this.newPort.port_number," already exists."));else{var o=Object.assign({},this.newPort);o.name="Ethernet"+o.port_number,this.ethernetPorts.push(o),this.ethernetPorts=[].concat(this.ethernetPorts),this.newPort.port_number=this.ethernetPorts.length}}},{key:"delete",value:function(e){this.ethernetPorts=this.ethernetPorts.filter(function(i){return i!==e})}}]),n}();function aPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function sPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function lPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Ag.\u0275fac=function(r){return new(r||Ag)(t.Y36(wc),t.Y36(Pn))},Ag.\u0275cmp=t.Xpm({type:Ag,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","min","0","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,VIe,2,0,"th",2),t.YNc(3,YIe,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,KIe,2,0,"th",2),t.YNc(6,qIe,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,JIe,2,0,"th",2),t.YNc(9,QIe,2,1,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,XIe,2,0,"th",2),t.YNc(12,$Ie,2,1,"td",3),t.BQk(),t.ynx(13,7),t.YNc(14,ePe,2,0,"th",2),t.YNc(15,tPe,4,0,"td",3),t.BQk(),t.YNc(16,nPe,1,0,"tr",8),t.YNc(17,rPe,1,0,"tr",9),t.qZA(),t._UZ(18,"br"),t.TgZ(19,"mat-form-field",10)(20,"input",11),t.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),t.qZA()(),t.TgZ(21,"mat-form-field",10)(22,"input",12),t.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),t.qZA()(),t.TgZ(23,"mat-form-field",13)(24,"mat-select",14),t.NdJ("ngModelChange",function(o){return e.newPort.type=o}),t.YNc(25,iPe,2,2,"mat-option",15),t.qZA()(),t.TgZ(26,"mat-form-field",13)(27,"mat-select",16),t.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),t.YNc(28,oPe,2,2,"mat-option",15),t.qZA()(),t.TgZ(29,"button",17),t.NdJ("click",function(){return e.onAdd()}),t._uU(30,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.ethernetPorts),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("ngModel",e.newPort.port_number),t.xp6(2),t.Q6J("ngModel",e.newPort.vlan),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(11,Oie))("ngModel",e.newPort.type),t.xp6(1),t.Q6J("ngForOf",e.portTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Oie))("ngModel",e.newPort.ethertype),t.xp6(1),t.Q6J("ngForOf",e.etherTypes))},dependencies:[ge.sg,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,$r.gD,Wt.ey,ai],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Iie=function(){return{standalone:!0}};function uPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",12)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.category=a)}),t.YNc(19,sPe,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"mat-form-field",19)(21,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.console_type=a)}),t.YNc(22,lPe,2,2,"mat-option",18),t.qZA()()()(),t.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._uU(26," Port settings "),t.qZA()(),t._UZ(27,"app-ports",21,22),t.qZA()(),t.TgZ(29,"div",23)(30,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(31,"Cancel"),t.qZA(),t.TgZ(32,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(33,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(11,Iie))("ngModel",i.ethernetSwitchTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Iie))("ngModel",i.ethernetSwitchTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(5),t.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function cPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var dPe=function(r){return{shadowed:r}},g2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetSwitchTemplate=s})})}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetSwitchTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=e}}]),n}();function pPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function fPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function hPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function mPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function _Pe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,mPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function gPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,_Pe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}g2.\u0275fac=function(r){return new(r||g2)(t.Y36(fr),t.Y36(rr),t.Y36(du),t.Y36(Pn),t.Y36(J.QS),t.Y36(wc),t.Y36(dr))},g2.\u0275cmp=t.Xpm({type:g2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Ag,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button","col",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,aPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switch template configuration"),t.qZA()()()(),t.YNc(8,uPe,34,13,"div",7),t.qZA(),t.YNc(9,cPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,dPe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetSwitchTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu,Ag],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var v2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetSwitchesTemplates=i.filter(function(o){return"ethernet_switch"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();v2.\u0275fac=function(r){return new(r||v2)(t.Y36(fr),t.Y36(rr),t.Y36(du))},v2.\u0275cmp=t.Xpm({type:v2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,pPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switches templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,fPe,3,1,"button",7),t.qZA()()(),t.YNc(10,hPe,1,0,"app-empty-templates-list",8),t.YNc(11,gPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var uz=(0,B.Z)(function n(){(0,U.Z)(this,n)}),nd=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/docker/images"))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();nd.\u0275fac=function(r){return new(r||nd)(t.LFG(mo.zw))},nd.\u0275prov=t.Yz7({token:nd,factory:nd.\u0275fac});var If=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","vnc","http","https","none"]}},{key:"getAuxConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleResolutions",value:function(){return["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]}},{key:"getMacAddrRegex",value:function(){return/^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$/}}]),n}();function vPe(n,r){1&n&&t.Hsn(0)}If.\u0275fac=function(r){return new(r||If)},If.\u0275prov=t.Yz7({token:If,factory:If.\u0275fac});var Ck=function(){function n(r){(0,U.Z)(this,n),this._elementRef=r}return(0,B.Z)(n,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),n}();Ck.\u0275fac=function(r){return new(r||Ck)(t.Y36(t.SBq))},Ck.\u0275dir=t.lG2({type:Ck,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var wk=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.template=r});wk.\u0275fac=function(r){return new(r||wk)(t.Y36(t.Rgc))},wk.\u0275dir=t.lG2({type:wk,selectors:[["","cdkStepLabel",""]]});var bPe=0,vm_NUMBER="number",vm_EDIT="edit",vm_DONE="done",vm_ERROR="error",Pie=new t.OlP("STEPPER_GLOBAL_OPTIONS"),ob=function(){function n(r,e){(0,U.Z)(this,n),this._stepper=r,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,B.Z)(n,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,Mn.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,Mn.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,Mn.Ig)(e)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(e){this._customError=(0,Mn.Ig)(e)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}]),n}();ob.\u0275fac=function(r){return new(r||ob)(t.Y36((0,t.Gpc)(function(){return ym})),t.Y36(Pie,8))},ob.\u0275cmp=t.Xpm({type:ob,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,wk,5),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,7),2&r)&&(t.iGM(i=t.CRH())&&(e.content=i.first))},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.YNc(0,vPe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var ym=function(){function n(r,e,i){(0,U.Z)(this,n),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new In.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=bPe++}return(0,B.Z)(n,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,Mn.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,Mn.su)(e);this.steps&&this._steps?(this._isValidIndex(o),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==o&&!this._anyControlsInvalidOrPending(o)&&(o>=this._selectedIndex||this.steps.toArray()[o].editable)&&this._updateSelectedItemIndex(o)):this._selectedIndex=o}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}},{key:"orientation",get:function(){return this._orientation},set:function(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._steps.changes.pipe((0,eo.O)(this._steps),(0,Br.R)(this._destroyed)).subscribe(function(i){e.steps.reset(i.filter(function(o){return o._stepper===e})),e.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var e=this;this._stepHeader.changes.pipe((0,eo.O)(this._stepHeader),(0,Br.R)(this._destroyed)).subscribe(function(i){e._sortedHeaders.reset(i.toArray().sort(function(o,a){return o._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})),e._sortedHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,eo.O)(this._layoutDirection()),(0,Br.R)(this._destroyed)).subscribe(function(i){return e._keyManager.withHorizontalOrientation(i)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){e.selected||(e._selectedIndex=Math.max(e._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(e){return e.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(e){return"cdk-step-label-".concat(this._groupId,"-").concat(e)}},{key:"_getStepContentId",value:function(e){return"cdk-step-content-".concat(this._groupId,"-").concat(e)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(e){var i=e-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vm_NUMBER,o=this.steps.toArray()[e],a=this._isCurrentStep(e);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,a):this._getGuidelineLogic(o,a,i)}},{key:"_getDefaultIndicatorLogic",value:function(e,i){return e._showError()&&e.hasError&&!i?vm_ERROR:!e.completed||i?vm_NUMBER:e.editable?vm_EDIT:vm_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vm_NUMBER;return e._showError()&&e.hasError&&!i?vm_ERROR:e.completed&&!i?vm_DONE:e.completed&&i?o:e.editable&&i?vm_EDIT:o}},{key:"_isCurrentStep",value:function(e){return this._selectedIndex===e}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(e){var i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}},{key:"_onKeydown",value:function(e){var i=(0,xr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==xr.L_&&o!==xr.K5?a.onKeydown(e):(this.selectedIndex=a.activeItemIndex,e.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(function(i){var o=i.stepControl;return(o?o.invalid||o.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,i=(0,Ii.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),n}();ym.\u0275fac=function(r){return new(r||ym)(t.Y36(Ls.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},ym.\u0275dir=t.lG2({type:ym,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ob,5),t.Suo(i,Ck,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var y2=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._stepper=r,this.type="submit"});y2.\u0275fac=function(r){return new(r||y2)(t.Y36(ym))},y2.\u0275dir=t.lG2({type:y2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.next()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var b2=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._stepper=r,this.type="button"});b2.\u0275fac=function(r){return new(r||b2)(t.Y36(ym))},b2.\u0275dir=t.lG2({type:b2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.previous()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var kk=(0,B.Z)(function n(){(0,U.Z)(this,n)});function CPe(n,r){if(1&n&&t.GkF(0,8),2&n){var e=t.oxw();t.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function wPe(n,r){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function kPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.completedLabel)}}function TPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.editableLabel)}}function MPe(n,r){if(1&n&&(t.TgZ(0,"mat-icon",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function SPe(n,r){if(1&n&&(t.ynx(0,9),t.YNc(1,wPe,2,1,"span",10),t.YNc(2,kPe,2,1,"span",11),t.YNc(3,TPe,2,1,"span",11),t.YNc(4,MPe,2,1,"mat-icon",12),t.BQk()),2&n){var e=t.oxw();t.Q6J("ngSwitch",e.state),t.xp6(1),t.Q6J("ngSwitchCase","number"),t.xp6(1),t.Q6J("ngIf","done"===e.state),t.xp6(1),t.Q6J("ngIf","edit"===e.state)}}function xPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t.GkF(1,16),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function EPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.label)}}function DPe(n,r){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e._intl.optionalLabel)}}function APe(n,r){if(1&n&&(t.TgZ(0,"div",18),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function OPe(n,r){}function IPe(n,r){if(1&n&&(t.Hsn(0),t.YNc(1,OPe,0,0,"ng-template",0)),2&n){var e=t.oxw();t.xp6(1),t.Q6J("cdkPortalOutlet",e._portal)}}kk.\u0275fac=function(r){return new(r||kk)},kk.\u0275mod=t.oAB({type:kk}),kk.\u0275inj=t.cJS({imports:[Ls.vT]});function RPe(n,r){1&n&&t._UZ(0,"div",11)}var Rie=function(r,e){return{step:r,i:e}};function LPe(n,r){if(1&n&&(t.ynx(0),t.GkF(1,9),t.YNc(2,RPe,1,0,"div",10),t.BQk()),2&n){var e=r.$implicit,i=r.index,o=r.last;t.oxw(2);var a=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",t.WLB(3,Rie,e,i)),t.xp6(1),t.Q6J("ngIf",!o)}}var Lie=function(r){return{animationDuration:r}},Zie=function(r,e){return{value:r,params:e}};function ZPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12),t.NdJ("@horizontalStepTransition.done",function(l){t.CHM(e);var u=t.oxw(2);return t.KtG(u._animationDone.next(l))}),t.GkF(1,13),t.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=t.oxw(2);t.ekj("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),t.Q6J("@horizontalStepTransition",t.WLB(8,Zie,a._getAnimationDirection(o),t.VKq(6,Lie,a._getAnimationDuration())))("id",a._getStepContentId(o)),t.uIk("aria-labelledby",a._getStepLabelId(o)),t.xp6(1),t.Q6J("ngTemplateOutlet",i.content)}}function NPe(n,r){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5),t.YNc(2,LPe,3,6,"ng-container",6),t.qZA(),t.TgZ(3,"div",7),t.YNc(4,ZPe,2,11,"div",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.steps),t.xp6(2),t.Q6J("ngForOf",e.steps)}}function BPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",15),t.GkF(1,9),t.TgZ(2,"div",16)(3,"div",17),t.NdJ("@verticalStepTransition.done",function(d){t.CHM(e);var h=t.oxw(2);return t.KtG(h._animationDone.next(d))}),t.TgZ(4,"div",18),t.GkF(5,13),t.qZA()()()()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=t.oxw(2),l=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",t.WLB(10,Rie,i,o)),t.xp6(1),t.ekj("mat-stepper-vertical-line",!a),t.xp6(1),t.ekj("mat-vertical-stepper-content-inactive",s.selectedIndex!==o),t.Q6J("@verticalStepTransition",t.WLB(15,Zie,s._getAnimationDirection(o),t.VKq(13,Lie,s._getAnimationDuration())))("id",s._getStepContentId(o)),t.uIk("aria-labelledby",s._getStepLabelId(o)),t.xp6(2),t.Q6J("ngTemplateOutlet",i.content)}}function FPe(n,r){if(1&n&&(t.ynx(0),t.YNc(1,BPe,6,18,"div",14),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.steps)}}function UPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step-header",19),t.NdJ("click",function(){var u=t.CHM(e).step;return t.KtG(u.select())})("keydown",function(l){t.CHM(e);var u=t.oxw();return t.KtG(u._onKeydown(l))}),t.qZA()}if(2&n){var i=r.step,o=r.i,a=t.oxw();t.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),t.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),t.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var bm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(wk);bm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bm)))(e||bm)}}(),bm.\u0275dir=t.lG2({type:bm,selectors:[["","matStepLabel",""]],features:[t.qOj]});var Cm=(0,B.Z)(function n(){(0,U.Z)(this,n),this.changes=new In.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});Cm.\u0275fac=function(r){return new(r||Cm)},Cm.\u0275prov=t.Yz7({token:Cm,factory:Cm.\u0275fac,providedIn:"root"});var jPe={provide:Cm,deps:[[new t.FiY,new t.tp0,Cm]],useFactory:function HPe(n){return n||new Cm}},GPe=(0,Wt.pj)(function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,U.Z)(this,e),r.call(this,i)}return(0,B.Z)(e)}(Ck),"primary"),Tk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,a))._intl=i,l._focusMonitor=o,l._intlSubscription=i.changes.subscribe(function(){return s.markForCheck()}),l}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}},{key:"_stringLabel",value:function(){return this.label instanceof bm?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof bm?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(o){return"number"==o?"".concat(this.index+1):"edit"==o?"create":"error"==o?"warning":o}}]),e}(GPe);Tk.\u0275fac=function(r){return new(r||Tk)(t.Y36(Cm),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.sBO))},Tk.\u0275cmp=t.Xpm({type:Tk,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[t.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(r,e){1&r&&(t._UZ(0,"div",0),t.TgZ(1,"div")(2,"div",1),t.YNc(3,CPe,1,2,"ng-container",2),t.YNc(4,SPe,5,4,"ng-container",3),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,xPe,2,1,"div",5),t.YNc(7,EPe,2,1,"div",5),t.YNc(8,DPe,2,1,"div",6),t.YNc(9,APe,2,1,"div",7),t.qZA()),2&r&&(t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),t.xp6(1),t.Gre("mat-step-icon-state-",e.state," mat-step-icon"),t.ekj("mat-step-icon-selected",e.selected),t.xp6(1),t.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(2),t.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),t.xp6(1),t.Q6J("ngIf",e._templateLabel()),t.xp6(1),t.Q6J("ngIf",e._stringLabel()),t.xp6(1),t.Q6J("ngIf",e.optional&&"error"!=e.state),t.xp6(1),t.Q6J("ngIf","error"==e.state))},dependencies:[ge.O5,ge.tP,ge.RF,ge.n9,ge.ED,Dn,Wt.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0});var Fie={horizontalStepTransition:(0,Rt.X$)("horizontalStepTransition",[(0,Rt.SB)("previous",(0,Rt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Rt.SB)("current",(0,Rt.oB)({transform:"none",visibility:"inherit"})),(0,Rt.SB)("next",(0,Rt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Rt.eR)("* => *",(0,Rt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Rt.X$)("verticalStepTransition",[(0,Rt.SB)("previous",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("next",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("current",(0,Rt.oB)({height:"*",visibility:"inherit"})),(0,Rt.eR)("* <=> current",(0,Rt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])},C2=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.templateRef=r});C2.\u0275fac=function(r){return new(r||C2)(t.Y36(t.Rgc))},C2.\u0275dir=t.lG2({type:C2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var w2=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._template=r});w2.\u0275fac=function(r){return new(r||w2)(t.Y36(t.Rgc))},w2.\u0275dir=t.lG2({type:w2,selectors:[["ng-template","matStepContent",""]]});var rd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=xa.w.EMPTY,l}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,Co.w)(function(){return o._stepper.selectionChange.pipe((0,$n.U)(function(a){return a.selectedStep===o}),(0,eo.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new uo.UE(o._lazyContent._template,o._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(o,a){var s=this._errorStateMatcher.isErrorState(o,a),l=!!(o&&o.invalid&&this.interacted);return s||l}}]),e}(ob);rd.\u0275fac=function(r){return new(r||rd)(t.Y36((0,t.Gpc)(function(){return lp})),t.Y36(Wt.rD,4),t.Y36(t.s_b),t.Y36(Pie,8))},rd.\u0275cmp=t.Xpm({type:rd,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,bm,5),t.Suo(i,w2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first),t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[t._Bn([{provide:Wt.rD,useExisting:rd},{provide:ob,useExisting:rd}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,IPe,2,1,"ng-template"))},dependencies:[uo.Pl],encapsulation:2,changeDetection:0});var lp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;(0,U.Z)(this,e),(s=r.call(this,i,o,a)).steps=new t.n_E,s.animationDone=new t.vpe,s.labelPosition="end",s.headerPosition="top",s._iconOverrides={},s._animationDone=new In.xQ,s._animationDuration="";var l=a.nativeElement.nodeName.toLowerCase();return s.orientation="mat-vertical-stepper"===l?"vertical":"horizontal",s}return(0,B.Z)(e,[{key:"animationDuration",get:function(){return this._animationDuration},set:function(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}},{key:"ngAfterContentInit",value:function(){var o=this;(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(a){var s=a.name,l=a.templateRef;return o._iconOverrides[s]=l}),this.steps.changes.pipe((0,Br.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,Ry.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Br.R)(this._destroyed)).subscribe(function(a){"current"===a.toState&&o.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(o,a){return a.completed||this.selectedIndex===o||!this.linear}},{key:"_getAnimationDuration",value:function(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}]),e}(ym);lp.\u0275fac=function(r){return new(r||lp)(t.Y36(Ls.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},lp.\u0275cmp=t.Xpm({type:lp,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,rd,5),t.Suo(i,C2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Tk,5),2&r)&&(t.iGM(i=t.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,e){2&r&&(t.uIk("aria-orientation",e.orientation),t.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition)("mat-stepper-header-position-bottom","bottom"===e.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[t._Bn([{provide:ym,useExisting:lp}]),t.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,NPe,5,2,"div",1),t.YNc(2,FPe,2,1,"ng-container",2),t.BQk(),t.YNc(3,UPe,1,23,"ng-template",null,3,t.W1O)),2&r&&(t.Q6J("ngSwitch",e.orientation),t.xp6(1),t.Q6J("ngSwitchCase","horizontal"),t.xp6(1),t.Q6J("ngSwitchCase","vertical"))},dependencies:[ge.sg,ge.O5,ge.tP,ge.RF,ge.n9,Tk],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Fie.horizontalStepTransition,Fie.verticalStepTransition]},changeDetection:0});var Mk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(y2);Mk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Mk)))(e||Mk)}}(),Mk.\u0275dir=t.lG2({type:Mk,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Sk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(b2);Sk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Sk)))(e||Sk)}}(),Sk.\u0275dir=t.lG2({type:Sk,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var xk=(0,B.Z)(function n(){(0,U.Z)(this,n)});function zPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.image," ")}}xk.\u0275fac=function(r){return new(r||xk)},xk.\u0275mod=t.oAB({type:xk}),xk.\u0275inj=t.cJS({providers:[jPe,Wt.rD],imports:[Wt.BQ,ge.ez,uo.eL,dm,kk,Sg,Wt.si,Wt.BQ]});var cz=function(){return{standalone:!0}};function WPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,zPe,2,2,"mat-option",24),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,cz))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.dockerImages)}}function VPe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",16),t._UZ(2,"input",34),t.qZA()())}function YPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function KPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var k2=function(){function n(r,e,i,o,a,s,l,u,d){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.consoleTypes=[],this.auxConsoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new uz,this.virtualMachineForm=this.formBuilder.group({filename:new J.p4(null,J.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new J.p4("1",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.consoleTypes=e.configurationService.getConsoleTypes(),e.auxConsoleTypes=e.configurationService.getAuxConsoleTypes(),e.templateMocksService.getDockerTemplate().subscribe(function(a){e.dockerTemplate=a}),e.dockerService.getImages(o).subscribe(function(a){e.dockerImages=a})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ts(),this.newImageSelected?this.dockerTemplate.image=this.virtualMachineForm.get("filename").value:this.dockerTemplate.image=this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id="local",this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function qPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}k2.\u0275fac=function(r){return new(r||k2)(t.Y36(fr),t.Y36(rr),t.Y36(nd),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS),t.Y36(Al),t.Y36(If),t.Y36(ap.X))},k2.\u0275cmp=t.Xpm({type:k2,selectors:[["app-add-docker-template"]],decls:46,vars:23,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Auxiliary console type",3,"completed"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"New Docker container template"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5)(7,"mat-vertical-stepper",6)(8,"mat-step",7)(9,"mat-radio-group",8)(10,"mat-radio-button",9),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(11,"Run this Docker container locally"),t.qZA()()(),t.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(16,"Existing image"),t.qZA(),t.TgZ(17,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(18,"New image"),t.qZA()(),t.YNc(19,WPe,2,4,"mat-select",13),t.YNc(20,VPe,3,0,"div",14),t.qZA()(),t.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),t._UZ(24,"input",17),t.qZA()()(),t.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),t._UZ(28,"input",19),t.qZA()()(),t.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),t.qZA()()(),t.TgZ(32,"mat-step",22)(33,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),t.YNc(34,YPe,2,2,"mat-option",24),t.qZA()(),t.TgZ(35,"mat-step",25)(36,"mat-select",26),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.aux_type=o}),t.YNc(37,KPe,2,2,"mat-option",24),t.qZA()(),t.TgZ(38,"mat-step",27)(39,"mat-form-field",16)(40,"textarea",28),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),t.qZA()()()()(),t.TgZ(41,"div",29)(42,"button",30),t.NdJ("click",function(){return e.goBack()}),t._uU(43,"Cancel"),t.qZA(),t.TgZ(44,"button",31),t.NdJ("click",function(){return e.addTemplate()}),t._uU(45,"Add template"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),t.xp6(1),t.Q6J("formGroup",e.virtualMachineForm),t.xp6(6),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected),t.xp6(1),t.Q6J("completed",e.containerNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.containerNameForm),t.xp6(3),t.Q6J("completed",e.networkAdaptersForm.get("adapters").value),t.xp6(1),t.Q6J("formGroup",e.networkAdaptersForm),t.xp6(3),t.Q6J("completed",e.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",e.dockerTemplate.start_command),t.xp6(1),t.Q6J("completed",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(21,cz))("ngModel",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("completed",e.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(22,cz))("ngModel",e.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",e.auxConsoleTypes),t.xp6(3),t.Q6J("ngModel",e.dockerTemplate.environment))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,$r.gD,Wt.ey,rd,lp,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var T2=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s,e.templateName="Copy of ".concat(e.dockerTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ts(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function JPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function QPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function XPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function $Pe(n,r){if(1&n&&(t.TgZ(0,"mat-option",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function e3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}T2.\u0275fac=function(r){return new(r||T2)(t.Y36(fr),t.Y36(rr),t.Y36(nd),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS))},T2.\u0275cmp=t.Xpm({type:T2,selectors:[["app-copy-docker-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,qPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy Docker container template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var wm=function(){return{standalone:!0}};function t3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.category=a)}),t.YNc(13,QPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(14,"mat-form-field",12)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.symbol=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(17,"Choose symbol"),t.qZA(),t._UZ(18,"br")(19,"br"),t.TgZ(20,"mat-form-field",12)(21,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.start_command=a)}),t.qZA()(),t.TgZ(22,"mat-form-field",12)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.mac_address=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",12)(25,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.adapters=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",22)(27,"mat-select",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_type=a)}),t.YNc(28,XPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(29,"mat-form-field",22)(30,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.aux_type=a)}),t.YNc(31,$Pe,2,2,"mat-option",16),t.qZA()(),t.TgZ(32,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_auto_start=a)}),t._uU(33," Auto start console "),t.qZA(),t.TgZ(34,"mat-form-field",22)(35,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_resolution=a)}),t.YNc(36,e3e,2,2,"mat-option",16),t.qZA()(),t.TgZ(37,"mat-form-field",12)(38,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_port=a)}),t.qZA()(),t.TgZ(39,"mat-form-field",12)(40,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_path=a)}),t.qZA()()(),t.TgZ(41,"h6"),t._uU(42,"Environment"),t.qZA(),t.TgZ(43,"mat-form-field",12)(44,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.environment=a)}),t.qZA()()(),t.TgZ(45,"mat-expansion-panel")(46,"mat-expansion-panel-header")(47,"mat-panel-title"),t._uU(48," Advanced "),t.qZA()(),t.TgZ(49,"h6"),t._uU(50,"Extra hosts"),t.qZA(),t.TgZ(51,"mat-form-field",12)(52,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.extra_hosts=a)}),t.qZA()()(),t.TgZ(53,"mat-expansion-panel")(54,"mat-expansion-panel-header")(55,"mat-panel-title"),t._uU(56," Usage "),t.qZA()(),t.TgZ(57,"mat-form-field",12)(58,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.usage=a)}),t.qZA()()()(),t.TgZ(59,"div",30)(60,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(61,"Cancel"),t.qZA(),t.TgZ(62,"button",31),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(63,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.name),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.default_name_format),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,wm))("ngModel",i.dockerTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(31,wm))("ngModel",i.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(32,wm))("ngModel",i.dockerTemplate.mac_address),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(33,wm))("ngModel",i.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,wm))("ngModel",i.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(35,wm))("ngModel",i.dockerTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(36,wm))("ngModel",i.dockerTemplate.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(37,wm))("ngModel",i.dockerTemplate.console_http_port),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(38,wm))("ngModel",i.dockerTemplate.console_http_path),t.xp6(4),t.Q6J("ngModel",i.dockerTemplate.environment),t.xp6(8),t.Q6J("ngModel",i.dockerTemplate.extra_hosts),t.xp6(6),t.Q6J("ngModel",i.dockerTemplate.usage)}}function n3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",33),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var r3e=function(r){return{shadowed:r}},M2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.auxConsoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.auxConsoleTypes=this.configurationService.getAuxConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.dockerTemplate.symbol=e}}]),n}();function i3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function o3e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function a3e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function s3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function l3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,s3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.dockerTemplates)}}function u3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,l3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}M2.\u0275fac=function(r){return new(r||M2)(t.Y36(fr),t.Y36(rr),t.Y36(nd),t.Y36(Pn),t.Y36(If),t.Y36(J.QS),t.Y36(dr))},M2.\u0275cmp=t.Xpm({type:M2,selectors:[["app-docker-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,JPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container template configuration"),t.qZA()()()(),t.YNc(8,t3e,64,39,"div",7),t.qZA(),t.YNc(9,n3e,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,r3e,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.dockerTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var S2=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.dockerService.getTemplates(this.controller).subscribe(function(i){e.dockerTemplates=i.filter(function(o){return"docker"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates",e.template_id,"copy"])}}]),n}();S2.\u0275fac=function(r){return new(r||S2)(t.Y36(fr),t.Y36(rr),t.Y36(nd),t.Y36(dr))},S2.\u0275cmp=t.Xpm({type:S2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,i3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,o3e,3,1,"button",7),t.qZA()()(),t.YNc(10,a3e,1,0,"app-empty-templates-list",8),t.YNc(11,u3e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.dockerTemplates.length),t.xp6(1),t.Q6J("ngIf",e.dockerTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var id=function(){function n(){(0,U.Z)(this,n),this.countSource=new In.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new In.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,B.Z)(n,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),n}();id.\u0275fac=function(r){return new(r||id)},id.\u0275prov=t.Yz7({token:id,factory:id.\u0275fac,providedIn:"root"});var c3e=["primaryValueBar"],d3e=(0,Wt.pj)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}(),"primary"),p3e=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function f3e(){var n=(0,t.f3M)(ge.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var h3e=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),m3e=0,ab=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;(0,U.Z)(this,e),(d=r.call(this,i))._ngZone=o,d._animationMode=a,d._changeDetectorRef=u,d._isNoopAnimation=!1,d._value=0,d._bufferValue=0,d.animationEnd=new t.vpe,d._animationEndSubscription=xa.w.EMPTY,d.mode="determinate",d.progressbarId="mat-progress-bar-".concat(m3e++);var h=s?s.getPathname().split("#")[0]:"";return d._rectangleFillValue="url('".concat(h,"#").concat(d.progressbarId,"')"),d._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(d.color=d.defaultColor=l.color),d.mode=l.mode||d.mode),d}return(0,B.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=Uie((0,Mn.su)(o)||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(o){var a;this._bufferValue=Uie(o||0),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}},{key:"_primaryTransform",value:function(){var o=this.value/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}},{key:"_bufferTransform",value:function(){if("buffer"===this.mode){var o=this.bufferValue/100;return{transform:"scale3d(".concat(o,", 1, 1)")}}return null}},{key:"ngAfterViewInit",value:function(){var o=this;this._ngZone.runOutsideAngular(function(){var a=o._primaryValueBar.nativeElement;o._animationEndSubscription=(0,jd.R)(a,"transitionend").pipe((0,ni.h)(function(s){return s.target===a})).subscribe(function(){0!==o.animationEnd.observers.length&&("determinate"===o.mode||"buffer"===o.mode)&&o._ngZone.run(function(){return o.animationEnd.next({value:o.value})})})})}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}}]),e}(d3e);function Uie(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(e,n))}ab.\u0275fac=function(r){return new(r||ab)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(p3e,8),t.Y36(h3e,8),t.Y36(t.sBO))},ab.\u0275cmp=t.Xpm({type:ab,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(c3e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._primaryValueBar=i.first))},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),t.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&r&&(t.xp6(3),t.Q6J("id",e.progressbarId),t.xp6(2),t.uIk("fill",e._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",e._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",e._primaryTransform()))},dependencies:[ge.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0});var Ek=(0,B.Z)(function n(){(0,U.Z)(this,n)});Ek.\u0275fac=function(r){return new(r||Ek)},Ek.\u0275mod=t.oAB({type:Ek}),Ek.\u0275inj=t.cJS({imports:[ge.ez,Wt.BQ,Wt.BQ]});var km=function(){function n(r,e,i){(0,U.Z)(this,n),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.upload_file_type=this.data.upload_file_type,this.subscription=this._US.currentCount.subscribe(function(i){e.uploadProgress=i,(100===e.uploadProgress||null==e.uploadProgress)&&e.dismiss()})}},{key:"dismiss",value:function(){this._snackRef.dismiss()}},{key:"cancelItem",value:function(){this._US.cancelFileUploading(!0)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();km.\u0275fac=function(r){return new(r||km)(t.Y36(ez),t.Y36(bB),t.Y36(id))},km.\u0275cmp=t.Xpm({type:km,selectors:[["app-uploading-processbar"]],decls:8,vars:3,consts:[[1,"row","proccessBar-row"],[1,"col-md-9","proccessBar-col"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-3","proccessBar-col"],["mat-button","","color","primary",1,"file-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"div",1),t._UZ(4,"mat-progress-bar",2),t.qZA(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){return e.cancelItem()}),t._uU(7,"Cancel"),t.qZA()()()),2&r&&(t.xp6(1),t.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),t.xp6(3),t.Q6J("value",e.uploadProgress))},dependencies:[cn,ab],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var dz=(0,B.Z)(function n(){(0,U.Z)(this,n)}),od=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=ios")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}},{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"findIdlePC",value:function(e,i){return this.httpController.post(e,"/computes/".concat(Wa.N.compute_id,"/dynamips/auto_idlepc"),i)}}]),n}();od.\u0275fac=function(r){return new(r||od)(t.LFG(mo.zw))},od.\u0275prov=t.Yz7({token:od,factory:od.\u0275fac});var Tm=function(){function n(){(0,U.Z)(this,n),this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"],this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"]}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getDefaultRamSettings",value:function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}}},{key:"getDefaultNvRamSettings",value:function(){return{c1700:128,c2600:128,c2691:256,c3600:256,c3725:256,c3745:256,c7200:512}}},{key:"getAvailablePlatforms",value:function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]}},{key:"getPlatformsWithEtherSwitchRouterOption",value:function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}}},{key:"getPlatformsWithChassis",value:function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}}},{key:"getChassis",value:function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}}},{key:"getNPETypes",value:function(){return["npe-100","npe-150","npe-175","npe-200","npe-225","npe-300","npe-400","npe-g2"]}},{key:"getMidplaneTypes",value:function(){return["std","vxr"]}},{key:"getAdapterMatrix",value:function(){for(var e={},i=0,o=["c1700","c2600","c2691","c3725","c3745","c3600","c7200"];i<o.length;i++){e[o[i]]={}}for(var s=0,l=["1720","1721","1750","1751","1760"];s<l.length;s++){var u=l[s];e.c1700[u]={0:["C1700-MB-1FE"]}}for(var d=0,h=["1751","1760"];d<h.length;d++){var g=h[d];e.c1700[g][1]=["C1700-MB-WIC1"]}for(var C=0,Z=["2620","2610XM","2620XM","2650XM"];C<Z.length;C++){var z=Z[C];e.c2600[z]={0:["C2600-MB-1FE"],1:this.c2600_nms}}for(var q=0,re=["2621","2611XM","2621XM","2651XM"];q<re.length;q++){var ae=re[q];e.c2600[ae]={0:["C2600-MB-2FE"],1:this.c2600_nms}}e.c2600[2610]={0:["C2600-MB-1E"],1:this.c2600_nms},e.c2600[2611]={0:["C2600-MB-2E"],1:this.c2600_nms},e.c2691[""]={0:["GT96100-FE"],1:this.c3700_nms},e.c3600[3620]={};for(var Se=0;Se<2;Se++)e.c3600[3620][Se]=this.c3600_nms;e.c3600[3640]={};for(var Ce=0;Ce<4;Ce++)e.c3600[3640][Ce]=this.c3600_nms;e.c3600[3660]={0:["Leopard-2FE"]};for(var xe=1;xe<7;xe++)e.c3600[3660][xe]=this.c3600_nms;e.c3725[""]={0:["GT96100-FE"]};for(var Ve=1;Ve<3;Ve++)e.c3725[""][Ve]=this.c3700_nms;e.c3745[""]={0:["GT96100-FE"]};for(var at=1;at<5;at++)e.c3745[""][at]=this.c3700_nms;e.c7200[""]={0:this.c7200_io};for(var De=1;De<7;De++)e.c7200[""][De]=this.c7200_pas;return e}},{key:"getWicMatrix",value:function(){var e={};return e.c1700={0:this.c1700_wics,1:this.c1700_wics},e.c2600={0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},e.c2691={0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},e.c3725={0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},e.c3745={0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},e}},{key:"getIdlepcRegex",value:function(){return/^(0x[0-9a-fA-F]+)?$|^$/}},{key:"getMacAddrRegex",value:function(){return/^([0-9a-fA-F]{4}\.){2}[0-9a-fA-F]{4}$|^$/}}]),n}();function _3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function g3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function v3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function y3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function b3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",20)(1,"mat-select",39),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onChassisChosen(a))}),t.YNc(2,y3e,2,2,"mat-option",22),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function C3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-checkbox",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.isEtherSwitchRouter=a)}),t._uU(1," This is an EtherSwitch router "),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("ngModel",i.isEtherSwitchRouter)}}function w3e(n,r){1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",""," "))}function k3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Tm.\u0275fac=function(r){return new(r||Tm)},Tm.\u0275prov=t.Yz7({token:Tm,factory:Tm.\u0275fac});var Hie=function(){return{standalone:!0}};function T3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,w3e,2,1,"mat-option",44),t.YNc(2,k3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(5,Hie)),t.xp6(1),t.Q6J("ngIf",o.adapterMatrix[o.iosNameForm.get("platform").value][o.iosNameForm.get("chassis").value||""][i].length>1&&!o.adapterMatrix[o.iosNameForm.get("platform").value][o.iosNameForm.get("chassis").value||""][i][0].startsWith("C7200")),t.xp6(1),t.Q6J("ngForOf",o.adapterMatrix[o.iosNameForm.get("platform").value][o.iosNameForm.get("chassis").value||""][i])}}function M3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,T3e,3,6,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.adapterMatrix[i.iosNameForm.get("platform").value][i.iosNameForm.get("chassis").value||""]&&i.adapterMatrix[i.iosNameForm.get("platform").value][i.iosNameForm.get("chassis").value||""][e])}}var S3e=function(){return[0,1,2,3,4,5,6]};function x3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,M3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,S3e)))}function E3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function D3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.wicsForTemplate[l]=s)}),t.TgZ(1,"mat-option",38),t._uU(2),t.qZA(),t.YNc(3,E3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.wicsForTemplate[i])("ngModelOptions",t.DdM(5,Hie)),t.xp6(2),t.hij(" ",""," "),t.xp6(1),t.Q6J("ngForOf",o.wicMatrix[o.iosNameForm.get("platform").value][i])}}function A3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,D3e,4,6,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.wicMatrix[i.iosNameForm.get("platform").value]&&i.wicMatrix[i.iosNameForm.get("platform").value][e])}}var O3e=function(){return[0,1,2]};function I3e(n,r){1&n&&(t.TgZ(0,"mat-step",45),t.YNc(1,A3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,O3e)))}function P3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"mat-vertical-stepper",11)(3,"mat-step",12)(4,"mat-radio-group",13)(5,"mat-radio-button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setControllerType("local"))}),t._uU(6,"Run this IOS router locally"),t.qZA()()(),t.TgZ(7,"mat-step",15)(8,"input",16,17),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.addImage(a))}),t.qZA(),t.TgZ(10,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(9);return t.KtG(a.click())}),t._uU(11,"Click to add image"),t.qZA(),t._uU(12," or create from existing one "),t.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onImageChosen(a))}),t.YNc(16,g3e,2,2,"mat-option",22),t.qZA()()()(),t.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),t._UZ(20,"input",24),t.qZA(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",25),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onPlatformChosen(a))}),t.YNc(23,v3e,2,2,"mat-option",22),t.qZA()(),t.YNc(24,b3e,3,1,"mat-form-field",26),t.qZA(),t.YNc(25,C3e,2,1,"mat-checkbox",27),t.qZA(),t.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),t._UZ(29,"input",29),t.TgZ(30,"span",30),t._uU(31,"MB"),t.qZA()(),t.TgZ(32,"mat-label")(33,"a",31),t._uU(34,"Check for minimum and maximum RAM requirement"),t.qZA()()()(),t.TgZ(35,"mat-step",32),t.YNc(36,x3e,2,2,"div",33),t.qZA(),t.YNc(37,I3e,2,2,"mat-step",34),t.TgZ(38,"mat-step",35)(39,"form",19)(40,"mat-form-field",20)(41,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()()()()()(),t.TgZ(42,"div",37)(43,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(44,"Cancel"),t.qZA(),t.TgZ(45,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(46,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",i.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",i.iosImageForm.get("imageName").value),t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("formGroup",i.iosImageForm),t.xp6(3),t.Q6J("ngForOf",i.iosImages),t.xp6(1),t.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),t.xp6(1),t.Q6J("formGroup",i.iosNameForm),t.xp6(5),t.Q6J("ngForOf",i.platforms),t.xp6(1),t.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),t.xp6(1),t.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),t.xp6(1),t.Q6J("completed",i.iosMemoryForm.get("memory").value),t.xp6(1),t.Q6J("formGroup",i.iosMemoryForm),t.xp6(6),t.s9C("href",i.ciscoUrl,t.LSH),t.xp6(3),t.Q6J("ngIf",i.iosNameForm.get("platform").value),t.xp6(1),t.Q6J("ngIf",i.iosNameForm.get("platform").value&&i.wicMatrix[i.iosNameForm.get("platform").value]),t.xp6(2),t.Q6J("formGroup",i.iosIdlePCForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlepc)}}var x2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=l,this.iosConfigurationService=u,this.computeService=d,this.uploadServiceService=h,this.snackBar=g,this.isEtherSwitchRouter=!1,this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdaptersForTemplate=[],this.wicsForTemplate=[],this.adapterMatrix={},this.wicMatrix={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iosTemplate=new dz,this.iosImageForm=this.formBuilder.group({imageName:new J.p4(null,[J.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required]),platform:new J.p4(null,[J.kI.required]),chassis:new J.p4(null,[J.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new J.p4(null,[J.kI.required])}),this.iosIdlePCForm=this.formBuilder.group({idlepc:new J.p4(null,[J.kI.pattern(this.iosConfigurationService.getIdlepcRegex())])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()});var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIosTemplate().subscribe(function(a){e.iosTemplate=a,e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings(),e.adapterMatrix=e.iosConfigurationService.getAdapterMatrix(),e.wicMatrix=e.iosConfigurationService.getWicMatrix()})})}},{key:"fillDefaultSlots",value:function(){if(console.log("Fill default slots"),this.iosNameForm.get("platform").value)for(var e=0;e<=6;e++){var i=this.adapterMatrix[this.iosNameForm.get("platform").value][this.iosNameForm.get("chassis").value||""][e];i&&(1===i.length||i[0].startsWith("C7200"))&&(console.log("Set default adapter for slot"+e+" to "+i[0]),this.networkAdaptersForTemplate[e]=i[0])}}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"getImages",value:function(){var e=this;this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i})}},{key:"addImage",value:function(e){var i=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(i);var o=e.target.files[0].name,a=this.iosService.getImagePath(this.controller,o);this.uploader.queue.forEach(function(l){return l.url=a});var s=this.uploader.queue[0];s.options&&(s.options.disableMultipart=!0),s.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(s),this.snackBar.openFromComponent(km,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"addTemplate",value:function(){var e=this;this.iosImageForm.invalid||this.iosMemoryForm.invalid||this.iosIdlePCForm.invalid||!this.iosNameForm.get("templateName").value||!this.iosNameForm.get("platform").value?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=ts(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol="multilayer_switch",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.wicsForTemplate.length>0&&this.completeWicsData(),this.iosTemplate.compute_id="local",this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}},{key:"completeAdaptersData",value:function(){for(var e=0;e<=6;e++)this.adapterMatrix[this.iosTemplate.platform][this.iosTemplate.chassis||""][e]&&(void 0===this.networkAdaptersForTemplate[e]?this.iosTemplate["slot".concat(e)]="":this.iosTemplate["slot".concat(e)]=this.networkAdaptersForTemplate[e])}},{key:"completeWicsData",value:function(){for(var e=0;e<=3;e++)this.wicMatrix[this.iosTemplate.platform][e]&&(void 0===this.wicsForTemplate[e]?this.iosTemplate["wic".concat(e)]="":this.iosTemplate["wic".concat(e)]=this.wicsForTemplate[e])}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"onImageChosen",value:function(){var e=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(e),"c3620"===e||"c3640"===e||"c3660"===e?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(e),this.selectedPlatform=e),"c3620"===e||"c3640"===e||"c3660"===e?this.iosNameForm.controls.chassis.setValue(e.substring(1)):"c1700"===e?this.iosNameForm.controls.chassis.setValue("1760"):"c2600"===e?this.iosNameForm.controls.chassis.setValue("2651XM"):this.iosNameForm.controls.chassis.setValue(""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[this.selectedPlatform]),this.fillDefaultSlots()}},{key:"onPlatformChosen",value:function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.wicsForTemplate=[],this.chassis[this.iosNameForm.get("platform").value]||this.fillDefaultSlots()}},{key:"onChassisChosen",value:function(){this.networkAdaptersForTemplate=[],this.chassis[this.iosNameForm.get("platform").value]&&this.fillDefaultSlots()}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function R3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}x2.\u0275fac=function(r){return new(r||x2)(t.Y36(fr),t.Y36(rr),t.Y36(od),t.Y36(Pn),t.Y36(J.QS),t.Y36(dr),t.Y36(Al),t.Y36(Tm),t.Y36(ap.X),t.Y36(id),t.Y36(td))},x2.\u0275cmp=t.Xpm({type:x2,selectors:[["app-add-ios-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules",4,"ngIf"],["label","Idle-PC"],["matInput","","type","text","formControlName","idlepc","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngIf"],["label","WIC modules"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,_3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOS router template"),t.qZA()()()(),t.YNc(8,P3e,47,18,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mf,kn.KE,kn.hX,kn.R9,cn,Dn,Kn,ei,$r.gD,Wt.ey,rd,lp,ns,Gs],styles:[".non-visible[_ngcontent-%COMP%]{display:none}","table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var E2=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.templateName="Copy of ".concat(e.iosTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"addTemplate",value:function(){var e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=ts(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function L3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function Z3e(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("Chassis - ",e.iosTemplate.chassis,"")}}function N3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function B3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function F3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function U3e(n,r){1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",""," "))}function H3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}E2.\u0275fac=function(r){return new(r||E2)(t.Y36(fr),t.Y36(rr),t.Y36(od),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS))},E2.\u0275cmp=t.Xpm({type:E2,selectors:[["app-copy-ios-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,R3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOS router template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.formGroup),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var UB=function(){return{standalone:!0}};function j3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",46),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(2);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,U3e,2,1,"mat-option",47),t.YNc(2,H3e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(2);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(5,UB)),t.xp6(1),t.Q6J("ngIf",o.adapterMatrix[o.iosTemplate.platform][o.iosTemplate.chassis||""][i].length>1&&!o.adapterMatrix[o.iosTemplate.platform][o.iosTemplate.chassis||""][i][0].startsWith("C7200")),t.xp6(1),t.Q6J("ngForOf",o.adapterMatrix[o.iosTemplate.platform][o.iosTemplate.chassis||""][i])}}function G3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,j3e,3,6,"mat-select",45),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.adapterMatrix[i.iosTemplate.platform][i.iosTemplate.chassis||""][e])}}function z3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",44),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function W3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",46),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.wicsForTemplate[l]=s)}),t.TgZ(1,"mat-option",44),t._uU(2),t.qZA(),t.YNc(3,z3e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.wicsForTemplate[i])("ngModelOptions",t.DdM(5,UB)),t.xp6(2),t.hij(" ",""," "),t.xp6(1),t.Q6J("ngForOf",o.wicMatrix[o.iosTemplate.platform][i])}}function V3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,W3e,4,6,"mat-select",45),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.wicMatrix[i.iosTemplate.platform][e])}}var Y3e=function(){return[0,1,2]};function K3e(n,r){1&n&&(t.TgZ(0,"div")(1,"h6"),t._uU(2,"WICs"),t.qZA(),t.YNc(3,V3e,2,1,"div",33),t.qZA()),2&n&&(t.xp6(3),t.Q6J("ngForOf",t.DdM(1,Y3e)))}var q3e=function(){return[0,1,2,3,4,5,6]};function J3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-label"),t._uU(12),t.qZA(),t._UZ(13,"br")(14,"br"),t.YNc(15,Z3e,5,1,"div",15),t.TgZ(16,"mat-form-field",12)(17,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.symbol=a)}),t.qZA()(),t.TgZ(18,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(19,"Choose symbol"),t.qZA(),t._UZ(20,"br")(21,"br"),t.TgZ(22,"mat-form-field",12)(23,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.category=a)}),t.YNc(24,N3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(25,"mat-form-field",12)(26,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.image=a)}),t.qZA()(),t.TgZ(27,"mat-form-field",12)(28,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.startup_config=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",12)(30,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.private_config=a)}),t.qZA()()(),t.TgZ(31,"mat-form-field",23)(32,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_type=a)}),t.YNc(33,B3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.aux_type=a)}),t.YNc(36,F3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(37,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_auto_start=a)}),t._uU(38," Auto start console "),t.qZA()(),t.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Memories and disks "),t.qZA()(),t.TgZ(43,"form",11)(44,"mat-form-field",12)(45,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.ram=a)}),t.qZA(),t.TgZ(46,"span",28),t._uU(47,"MB"),t.qZA()(),t.TgZ(48,"mat-form-field",12)(49,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.nvram=a)}),t.qZA(),t.TgZ(50,"span",28),t._uU(51,"MB"),t.qZA()(),t.TgZ(52,"mat-form-field",12)(53,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.iomem=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",12)(55,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk0=a)}),t.qZA()(),t.TgZ(56,"mat-form-field",12)(57,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk1=a)}),t.qZA()()(),t.TgZ(58,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.auto_delete_disks=a)}),t._uU(59," Automatically delete NVRAM and disk files "),t.qZA()(),t.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Slots "),t.qZA()(),t.TgZ(64,"h6"),t._uU(65,"Adapters"),t.qZA(),t.YNc(66,G3e,2,1,"div",33),t._UZ(67,"br"),t.YNc(68,K3e,4,2,"div",15),t.qZA(),t.TgZ(69,"mat-expansion-panel")(70,"mat-expansion-panel-header")(71,"mat-panel-title"),t._uU(72," Advanced "),t.qZA()(),t.TgZ(73,"form",11)(74,"mat-form-field",12)(75,"input",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.system_id=a)}),t.qZA()(),t.TgZ(76,"mat-form-field",12)(77,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mac_addr=a)}),t.qZA()(),t.TgZ(78,"mat-form-field",12)(79,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()(),t.TgZ(80,"button",37),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.findIdlePC())}),t._uU(81,"Idle-PC finder"),t.qZA(),t._UZ(82,"br")(83,"br"),t.TgZ(84,"mat-form-field",12)(85,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlemax=a)}),t.qZA()(),t.TgZ(86,"mat-form-field",12)(87,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlesleep=a)}),t.qZA()(),t.TgZ(88,"mat-form-field",12)(89,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.exec_area=a)}),t.qZA()()(),t.TgZ(90,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mmap=a)}),t._uU(91," Enable mmap support "),t.qZA(),t._UZ(92,"br")(93,"br"),t.TgZ(94,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.sparsemem=a)}),t._uU(95," Enable sparse memory supoport "),t.qZA()(),t.TgZ(96,"mat-expansion-panel")(97,"mat-expansion-panel-header")(98,"mat-panel-title"),t._uU(99," Usage "),t.qZA()(),t.TgZ(100,"mat-form-field",12)(101,"textarea",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.usage=a)}),t.qZA()()()(),t.TgZ(102,"div",42)(103,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(104,"Cancel"),t.qZA(),t.TgZ(105,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(106,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.default_name_format),t.xp6(2),t.hij("Platform - ",i.iosTemplate.platform,""),t.xp6(3),t.Q6J("ngIf",i.iosTemplate.chassis),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(37,UB))("ngModel",i.iosTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.image),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(38,UB))("ngModel",i.iosTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.console_auto_start),t.xp6(6),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.nvram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.iomem),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk0),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk1),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.auto_delete_disks),t.xp6(8),t.Q6J("ngForOf",t.DdM(39,q3e)),t.xp6(2),t.Q6J("ngIf",i.wicMatrix[i.iosTemplate.platform]),t.xp6(5),t.Q6J("formGroup",i.advancedForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.system_id),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.mac_addr),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlepc),t.xp6(6),t.Q6J("ngModel",i.iosTemplate.idlemax),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlesleep),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.exec_area),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.mmap),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.sparsemem),t.xp6(7),t.Q6J("ngModel",i.iosTemplate.usage)}}function Q3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",48),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var X3e=function(r){return{shadowed:r}},D2=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.progressService=l,this.router=u,this.isSymbolSelectionOpened=!1,this.platforms=[],this.consoleTypes=[],this.categories=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdaptersForTemplate=[],this.wicsForTemplate=[],this.adapterMatrix={},this.wicMatrix={},this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required),iomemory:new J.p4("",J.kI.required),disk0:new J.p4("",J.kI.required),disk1:new J.p4("",J.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new J.p4("",J.kI.required),idlemax:new J.p4("",J.kI.required),idlesleep:new J.p4("",J.kI.required),execarea:new J.p4("",J.kI.required),idlepc:new J.p4("",J.kI.pattern(this.iosConfigurationService.getIdlepcRegex())),mac_addr:new J.p4("",J.kI.pattern(this.iosConfigurationService.getMacAddrRegex()))})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.fillSlotsData()})})}},{key:"getConfiguration",value:function(){this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes(),this.categories=this.iosConfigurationService.getCategories(),this.adapterMatrix=this.iosConfigurationService.getAdapterMatrix(),this.wicMatrix=this.iosConfigurationService.getWicMatrix()}},{key:"findIdlePC",value:function(){var e=this,i={image:this.iosTemplate.image,platform:this.iosTemplate.platform,ram:this.iosTemplate.ram};this.progressService.activate(),this.iosService.findIdlePC(this.controller,i).subscribe(function(o){e.progressService.deactivate(),null!==o.idlepc&&(e.iosTemplate.idlepc=o.idlepc,e.toasterService.success("Idle-PC value found: ".concat(o.idlepc)))},function(o){e.progressService.deactivate(),e.toasterService.error("Error while finding an idle-PC value")})}},{key:"fillSlotsData",value:function(){for(var e=0;e<=6;e++)this.iosTemplate["slot".concat(e)]&&(this.networkAdaptersForTemplate[e]=this.iosTemplate["slot".concat(e)]);for(var i=0;i<=3;i++)this.iosTemplate["wic".concat(i)]&&(this.wicsForTemplate[i]=this.iosTemplate["wic".concat(i)])}},{key:"saveSlotsData",value:function(){for(var e=0;e<=6;e++)this.adapterMatrix[this.iosTemplate.platform][this.iosTemplate.chassis||""][e]&&(void 0===this.networkAdaptersForTemplate[e]?this.iosTemplate["slot".concat(e)]="":this.iosTemplate["slot".concat(e)]=this.networkAdaptersForTemplate[e]);for(var i=0;i<=3;i++)this.wicMatrix[this.iosTemplate.platform][i]&&(void 0===this.wicsForTemplate[i]?this.iosTemplate["wic".concat(i)]="":this.iosTemplate["wic".concat(i)]=this.wicsForTemplate[i])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.saveSlotsData(),this.iosService.saveTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=e}}]),n}();function $3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function e6e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function t6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function n6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function r6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,n6e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iosTemplates)}}function i6e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,r6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}D2.\u0275fac=function(r){return new(r||D2)(t.Y36(fr),t.Y36(rr),t.Y36(od),t.Y36(Pn),t.Y36(J.QS),t.Y36(Tm),t.Y36(Hs),t.Y36(dr))},D2.\u0275cmp=t.Xpm({type:D2,selectors:[["app-ios-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","formControlName","mac_addr","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlepc","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],["mat-button","",1,"idlePCFinderButton",3,"click"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,L3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router template configuration"),t.qZA()()()(),t.YNc(8,J3e,107,40,"div",7),t.qZA(),t.YNc(9,Q3e,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,X3e,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,cn,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu],styles:[".idlePCFinderButton[_ngcontent-%COMP%]{width:100%}","table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var A2=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iosService.getTemplates(this.controller).subscribe(function(i){e.iosTemplates=i.filter(function(o){return"dynamips"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates",e.template_id,"copy"])}}]),n}();A2.\u0275fac=function(r){return new(r||A2)(t.Y36(fr),t.Y36(rr),t.Y36(od),t.Y36(dr))},A2.\u0275cmp=t.Xpm({type:A2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,$3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,e6e,3,1,"button",7),t.qZA()()(),t.YNc(10,t6e,1,0,"app-empty-templates-list",8),t.YNc(11,i6e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iosTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iosTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var pz=(0,B.Z)(function n(){(0,U.Z)(this,n)}),ad=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=iou")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function o6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function a6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function s6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.path),t.xp6(1),t.hij(" ",e.path," ")}}ad.\u0275fac=function(r){return new(r||ad)(t.LFG(mo.zw))},ad.\u0275prov=t.Yz7({token:ad,factory:ad.\u0275fac});var jie=function(){return{standalone:!0}};function l6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.YNc(2,s6e,2,2,"mat-option",20),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",t.DdM(3,jie)),t.xp6(1),t.Q6J("ngForOf",i.iouImages)}}function u6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",28,29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",31),t._UZ(6,"input",32),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader)}}var O2=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.computeService=u,this.uploadServiceService=d,this.snackBar=h,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iouTemplate=new pz,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIouTemplate().subscribe(function(a){e.iouTemplate=a})}),this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"getImages",value:function(){var e=this;this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.imageForm.controls.imageName.setValue(i);var o=this.iouService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(km,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(100),this.toasterService.warning("File upload cancelled")}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=ts(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id="local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function c6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}O2.\u0275fac=function(r){return new(r||O2)(t.Y36(fr),t.Y36(rr),t.Y36(ad),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS),t.Y36(Al),t.Y36(ap.X),t.Y36(id),t.Y36(td))},O2.\u0275cmp=t.Xpm({type:O2,selectors:[["app-add-iou-template"]],decls:36,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin, .image, .iol","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,o6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this IOU device locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA()()(),t.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(23,"Existing image"),t.qZA(),t.TgZ(24,"mat-radio-button",18),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(25,"New image"),t.qZA()(),t.TgZ(26,"mat-form-field",15)(27,"mat-select",19),t.NdJ("ngModelChange",function(o){return e.selectedType=o}),t.YNc(28,a6e,2,2,"mat-option",20),t.qZA()(),t.YNc(29,l6e,3,4,"mat-form-field",21),t.YNc(30,u6e,7,1,"div",22),t.qZA()()()(),t.TgZ(31,"div",23)(32,"button",24),t.NdJ("click",function(){return e.goBack()}),t._uU(33,"Cancel"),t.qZA(),t.TgZ(34,"button",25),t.NdJ("click",function(){return e.addTemplate()}),t._uU(35,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.templateNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.templateNameForm),t.xp6(4),t.Q6J("formGroup",e.imageForm),t.xp6(7),t.Q6J("ngModel",e.selectedType)("ngModelOptions",t.DdM(11,jie)),t.xp6(1),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,Mf,kn.KE,cn,Dn,Kn,$r.gD,Wt.ey,rd,lp,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var I2=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s,e.templateName="Copy of ".concat(e.iouTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=ts(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),n}();I2.\u0275fac=function(r){return new(r||I2)(t.Y36(fr),t.Y36(rr),t.Y36(ad),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS))},I2.\u0275cmp=t.Xpm({type:I2,selectors:[["app-copy-iou-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,c6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Og=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function d6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function p6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function f6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function h6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.ram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.ram)}}function m6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.nvram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.nvram)}}Og.\u0275fac=function(r){return new(r||Og)},Og.\u0275prov=t.Yz7({token:Og,factory:Og.\u0275fac});var Gie=function(){return{standalone:!0}};function _6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",2)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",2)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",2)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.category=a)}),t.YNc(19,p6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"input",19,20),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(22,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(21);return t.KtG(a.click())}),t._uU(23,"Browse"),t.qZA(),t.TgZ(24,"mat-form-field",22)(25,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",2)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.startup_config=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",2)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.private_config=a)}),t.qZA()()(),t.TgZ(30,"mat-form-field",26)(31,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_type=a)}),t.YNc(32,f6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(33,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_auto_start=a)}),t._uU(34," Auto start console "),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.l1_keepalives=a)}),t._uU(37," Enable layer 1 keepalive messages (non-functional) "),t.qZA(),t._UZ(38,"br"),t.TgZ(39,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.use_default_iou_values=a)}),t._uU(40," Use default IOU values for memories "),t.qZA(),t.YNc(41,h6e,4,1,"mat-form-field",29),t.YNc(42,m6e,4,1,"mat-form-field",29),t.qZA(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," Network "),t.qZA()(),t.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.ethernet_adapters=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",2)(51,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.serial_adapters=a)}),t.qZA()()()(),t.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),t._uU(55," Usage "),t.qZA()(),t.TgZ(56,"mat-form-field",2)(57,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.usage=a)}),t.qZA()()()(),t.TgZ(58,"div",33)(59,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(60,"Cancel"),t.qZA(),t.TgZ(61,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(62,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(22,Gie))("ngModel",i.iouTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.path),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,Gie))("ngModel",i.iouTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iouTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.l1_keepalives),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(5),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.serial_adapters),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.usage)}}function g6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",39),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var v6e=function(r){return{shadowed:r}},P2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=l,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iouService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.controller,this.iouTemplate).subscribe(function(){e.toasterService.success("Changes saved")})}},{key:"uploadImageFile",value:function(e){this.iouTemplate.path=e.target.files[0].name}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=e}}]),n}();function y6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function b6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function C6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",16)(1,"mat-list-item",17),t._uU(2),t.qZA(),t.TgZ(3,"button",18)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,19)(8,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",21)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function w6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,C6e,23,4,"div",15),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iouTemplates)}}function k6e(n,r){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14),t.YNc(2,w6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}P2.\u0275fac=function(r){return new(r||P2)(t.Y36(fr),t.Y36(rr),t.Y36(ad),t.Y36(Pn),t.Y36(Og),t.Y36(dr),t.Y36(J.QS))},P2.\u0275cmp=t.Xpm({type:P2,selectors:[["app-iou-template-details"]],decls:11,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin, .image, .iol","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","min","1","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.YNc(5,d6e,3,0,"button",5),t.qZA(),t.TgZ(6,"div",6)(7,"h1",7),t._uU(8,"IOU device template configuration"),t.qZA()()()()(),t.YNc(9,_6e,63,24,"div",8),t.qZA(),t.YNc(10,g6e,1,2,"app-symbols-menu",9)),2&r&&(t.Q6J("ngClass",t.VKq(4,v6e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iouTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var R2=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iouService.getTemplates(this.controller).subscribe(function(i){e.iouTemplates=i.filter(function(o){return"iou"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates",e.template_id,"copy"])}}]),n}();R2.\u0275fac=function(r){return new(r||R2)(t.Y36(fr),t.Y36(rr),t.Y36(ad),t.Y36(dr))},R2.\u0275cmp=t.Xpm({type:R2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:16,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"IOU device templates"),t.qZA()(),t.TgZ(10,"div",3),t.YNc(11,y6e,3,1,"button",7),t.qZA()()(),t.YNc(12,b6e,1,0,"app-empty-templates-list",8),t.YNc(13,k6e,3,1,"div",9),t.qZA(),t.TgZ(14,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iouTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iouTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var L2=function(){function n(r){(0,U.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();L2.\u0275fac=function(r){return new(r||L2)(t.Y36(fr))},L2.\u0275cmp=t.Xpm({type:L2,selectors:[["app-preferences"]],decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Template preferences"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Built-in "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Dynamips "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," IOS on Unix "),t.qZA(),t.TgZ(19,"mat-list-item",9),t._uU(20," VPCS "),t.qZA(),t.TgZ(21,"mat-list-item",9),t._uU(22," QEMU "),t.qZA(),t.TgZ(23,"mat-list-item",9),t._uU(24," VirtualBox "),t.qZA(),t.TgZ(25,"mat-list-item",9),t._uU(26," VMware "),t.qZA(),t.TgZ(27,"mat-list-item",9),t._uU(28," Docker "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/projects"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},dependencies:[Wo,cn,Dn,js,Aa],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var fz=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Bu=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/images/upload/").concat(i)}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=qemu")}},{key:"addImage",value:function(e,i){return this.httpController.post(e,"/images/upload",i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();Bu.\u0275fac=function(r){return new(r||Bu)(t.LFG(mo.zw))},Bu.\u0275prov=t.Yz7({token:Bu,factory:Bu.\u0275fac});var Mm=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getPlatform",value:function(){return["x86_64","aarch64","alpha","arm","cris","i386","lm32","m68k","microblaze","microblazeel","mips","mips64","mips64el","mipsel","moxie","or32","ppc","ppc64","ppcemb","s390x","sh4","sh4eb","sparc","sparc64","tricore","unicore32","xtensa","xtensaeb"]}},{key:"getConsoleTypes",value:function(){return["telnet","vnc","spice","spice+agent","none"]}},{key:"getAuxConsoleTypes",value:function(){return["telnet","none"]}},{key:"getDiskInterfaces",value:function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]}},{key:"getNetworkTypes",value:function(){return[{value:"e1000",name:"Intel Gigabit Ethernet"},{value:"e1000-82544gc",name:"Intel 82544GC Gigabit Ethernet"},{value:"e1000-82545em",name:"Intel 82545EM Gigabit Ethernet"},{value:"e1000e",name:"Intel PCIe Gigabit Ethernet"},{value:"i82550",name:"Intel i82550 Ethernet"},{value:"i82551",name:"Intel i82551 Ethernet"},{value:"i82557a",name:"Intel i82557A Ethernet"},{value:"i82557b",name:"Intel i82557B Ethernet"},{value:"i82557c",name:"Intel i82557C Ethernet"},{value:"i82558a",name:"Intel i82558A Ethernet"},{value:"i82558b",name:"Intel i82558B Ethernet"},{value:"i82559a",name:"Intel i82559A Ethernet"},{value:"i82559b",name:"Intel i82559B Ethernet"},{value:"i82559c",name:"Intel i82559C Ethernet"},{value:"i82559er",name:"Intel i82559ER Ethernet"},{value:"i82562",name:"Intel i82562 Ethernet"},{value:"i82801",name:"Intel i82801 Ethernet"},{value:"igb",name:"Intel 82576 Gigabit Ethernet"},{value:"ne2k_pci",name:"NE2000 Ethernet"},{value:"pcnet",name:"AMD PCNet Ethernet"},{value:"rocker",name:"Rocker L2 switch device"},{value:"rtl8139",name:"Realtek 8139 Ethernet"},{value:"virtio-net-pci",name:"Paravirtualized Network I/O"},{value:"vmxnet3",name:"VMWare Paravirtualized Ethernet v3"}]}},{key:"getBootPriorities",value:function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]}},{key:"getOnCloseOptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getPriorities",value:function(){return["realtime","very high","high","normal","low","very low"]}},{key:"getMacAddrRegex",value:function(){return/^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$/}}]),n}();function T6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function M6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function S6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function x6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.filename," ")}}Mm.\u0275fac=function(r){return new(r||Mm)},Mm.\u0275prov=t.Yz7({token:Mm,factory:Mm.\u0275fac});var HB=function(){return{standalone:!0}};function D6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,E6e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,HB))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.qemuImages)}}function A6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",35,36),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",37),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",38)(6,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.chosenImage=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("ngModel",i.chosenImage)}}var Z2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.snackBar=h,this.uploadServiceService=g,this.selectPlatform=[],this.consoleTypes=[],this.auxConsoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new fz,this.nameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new J.p4("256",J.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.qemuService.getImages(e.controller).subscribe(function(u){e.qemuImages=u}),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.templateMocksService.getQemuTemplate().subscribe(function(a){e.qemuTemplate=a}),e.qemuService.getImages(e.controller).subscribe(function(a){e.qemuImages=a}),e.selectPlatform=e.configurationService.getPlatform(),e.selectedPlatform=e.selectPlatform[0],e.consoleTypes=e.configurationService.getConsoleTypes(),e.auxConsoleTypes=e.configurationService.getAuxConsoleTypes()}),this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.diskForm.controls.fileName.setValue(i);var o=this.qemuService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(km,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image Uploading canceled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.platform=this.selectedPlatform,this.newImageSelected?this.qemuTemplate.hda_disk_image=this.diskForm.get("fileName").value:this.qemuTemplate.hda_disk_image=this.selectedImage.path,this.qemuTemplate.template_id=ts(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id="local",this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function O6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}Z2.\u0275fac=function(r){return new(r||Z2)(t.Y36(fr),t.Y36(rr),t.Y36(Bu),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS),t.Y36(Al),t.Y36(Mm),t.Y36(ap.X),t.Y36(td),t.Y36(id))},Z2.\u0275cmp=t.Xpm({type:Z2,selectors:[["app-add-qemu-virtual-machine-template"]],decls:54,vars:24,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","Platform and memory",3,"completed"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","min","1","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Auxiliary console type",3,"completed"],["placeholder","Auxiliary console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,T6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this QEMU VM locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA(),t._UZ(19,"br"),t.qZA()(),t.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),t.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),t.YNc(24,M6e,2,2,"mat-option",19),t.qZA()(),t._UZ(25,"br"),t.TgZ(26,"mat-form-field",15),t._UZ(27,"input",20),t.TgZ(28,"span",21),t._uU(29,"MB"),t.qZA()()()(),t.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),t.YNc(33,S6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(34,"mat-step",24)(35,"mat-form-field",15)(36,"mat-select",25),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.aux_type=o}),t.YNc(37,x6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(38,"mat-step",26)(39,"form",14)(40,"mat-radio-group",11)(41,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(42,"Existing image"),t.qZA(),t.TgZ(43,"mat-radio-button",27),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(44,"New image"),t.qZA()(),t._UZ(45,"br")(46,"br"),t.YNc(47,D6e,2,4,"mat-select",28),t.YNc(48,A6e,7,2,"div",29),t.qZA()()()(),t.TgZ(49,"div",30)(50,"button",31),t.NdJ("click",function(){return e.goBack()}),t._uU(51,"Cancel"),t.qZA(),t.TgZ(52,"button",32),t.NdJ("click",function(){return e.addTemplate()}),t._uU(53,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.nameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.nameForm),t.xp6(4),t.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),t.xp6(1),t.Q6J("formGroup",e.memoryForm),t.xp6(2),t.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",t.DdM(21,HB)),t.xp6(1),t.Q6J("ngForOf",e.selectPlatform),t.xp6(6),t.Q6J("completed",e.qemuTemplate.console_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",t.DdM(22,HB)),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("completed",e.qemuTemplate.aux_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.aux_type)("ngModelOptions",t.DdM(23,HB)),t.xp6(1),t.Q6J("ngForOf",e.auxConsoleTypes),t.xp6(2),t.Q6J("formGroup",e.diskForm),t.xp6(8),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,Mf,kn.KE,kn.R9,cn,Dn,Kn,$r.gD,Wt.ey,rd,lp,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var N2=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.nameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.templateName="Copy of ".concat(e.qemuTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=ts(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function I6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter number"),t.qZA())}function P6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Adapter ",e.adapter_number,"")}}function R6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Port name"),t.qZA())}function L6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Ethernet ",e.adapter_number,"")}}function Z6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter type"),t.qZA())}function N6e(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.value),t.xp6(1),t.hij(" ",e.name," ")}}function B6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"mat-select",12),t.NdJ("ngModelChange",function(s){var u=t.CHM(e).$implicit;return t.KtG(u.adapter_type=s)}),t.YNc(2,N6e,2,2,"mat-option",13),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngModel",i.adapter_type),t.xp6(1),t.Q6J("ngForOf",o.networkTypes)}}function F6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Actions"),t.qZA())}function U6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"button",15),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",16),t._uU(3,"delete"),t.qZA()()()}}function H6e(n,r){1&n&&t._UZ(0,"tr",17)}function j6e(n,r){1&n&&t._UZ(0,"tr",18)}N2.\u0275fac=function(r){return new(r||N2)(t.Y36(fr),t.Y36(rr),t.Y36(Bu),t.Y36(Pn),t.Y36(dr),t.Y36(J.QS))},N2.\u0275cmp=t.Xpm({type:N2,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,O6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var sb=function(){function n(){(0,U.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,B.Z)(n,[{key:"onAdd",value:function(){var e={adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]};this.adapters=this.adapters.concat([e])}},{key:"delete",value:function(e){this.adapters=this.adapters.filter(function(i){return i!==e})}}]),n}();sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275cmp=t.Xpm({type:sb,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,I6e,2,0,"th",2),t.YNc(3,P6e,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,R6e,2,0,"th",2),t.YNc(6,L6e,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,Z6e,2,0,"th",2),t.YNc(9,B6e,3,2,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,F6e,2,0,"th",2),t.YNc(12,U6e,4,0,"td",3),t.BQk(),t.YNc(13,H6e,1,0,"tr",7),t.YNc(14,j6e,1,0,"tr",8),t.qZA(),t.TgZ(15,"button",9),t.NdJ("click",function(){return e.onAdd()}),t._uU(16,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.adapters),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.sg,J.JJ,J.On,cn,Dn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,$r.gD,Wt.ey,ai],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var G6e=["customAdapters"],lb=function(){function n(){(0,U.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new t.vpe,this.saveConfigurationEmitter=new t.vpe}return(0,B.Z)(n,[{key:"cancelConfigureCustomAdapters",value:function(){this.closeConfiguratorEmitter.emit(!1)}},{key:"configureCustomAdapters",value:function(){var e=this;this.adapters=[],this.customAdapters.adapters.forEach(function(i){e.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)}}]),n}();lb.\u0275fac=function(r){return new(r||lb)},lb.\u0275cmp=t.Xpm({type:lb,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(G6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Custom adapters configuration"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5),t._UZ(7,"app-custom-adapters-table",6,7),t.qZA(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.configureCustomAdapters()}),t._uU(13,"Apply"),t.qZA(),t._UZ(14,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},dependencies:[cn,sb],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var z6e=["customAdaptersConfigurator"];function W6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function V6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function Y6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function K6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function q6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function J6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Q6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function X6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function $6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function eRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function tRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function nRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.AsE("",e.name," (",e.value,") ")}}function rRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",14)(1,"input",60),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.qemuTemplate.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function iRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function oRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.symbol=a)}),t.qZA()()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.category=a)}),t.YNc(19,V6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",14)(21,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.platform=a)}),t.YNc(22,Y6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-form-field",14)(24,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.ram=a)}),t.qZA(),t.TgZ(25,"span",23),t._uU(26,"MB"),t.qZA()(),t.TgZ(27,"mat-form-field",14)(28,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cpus=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.boot_priority=a)}),t.YNc(31,K6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(32,"mat-form-field",14)(33,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.on_close=a)}),t.YNc(34,q6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(35,"mat-form-field",27)(36,"mat-select",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_type=a)}),t.YNc(37,J6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(38,"mat-form-field",27)(39,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.aux_type=a)}),t.YNc(40,Q6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(41,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_auto_start=a)}),t._uU(42," Auto start console "),t.qZA()(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," HDD "),t.qZA()(),t.TgZ(47,"mat-card"),t._UZ(48,"mat-card-title"),t.TgZ(49,"mat-card-subtitle"),t._uU(50," HDA (Primary Master) "),t.qZA(),t.TgZ(51,"mat-card-content")(52,"mat-form-field",14)(53,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_image=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",14)(55,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_interface=a)}),t.YNc(56,X6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(57,"mat-card"),t._UZ(58,"mat-card-title"),t.TgZ(59,"mat-card-subtitle"),t._uU(60," HDB (Primary Slave) "),t.qZA(),t.TgZ(61,"mat-card-content")(62,"mat-form-field",14)(63,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_image=a)}),t.qZA()(),t.TgZ(64,"mat-form-field",14)(65,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_interface=a)}),t.YNc(66,$6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(67,"mat-card"),t._UZ(68,"mat-card-title"),t.TgZ(69,"mat-card-subtitle"),t._uU(70," HDC (Secondary Master) "),t.qZA(),t.TgZ(71,"mat-card-content")(72,"mat-form-field",14)(73,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_image=a)}),t.qZA()(),t.TgZ(74,"mat-form-field",14)(75,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_interface=a)}),t.YNc(76,eRe,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(77,"mat-card"),t._UZ(78,"mat-card-title"),t.TgZ(79,"mat-card-subtitle"),t._uU(80," HDD (Secondary Slave) "),t.qZA(),t.TgZ(81,"mat-card-content")(82,"mat-form-field",14)(83,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_image=a)}),t.qZA()(),t.TgZ(84,"mat-form-field",14)(85,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_interface=a)}),t.YNc(86,tRe,2,2,"mat-option",20),t.qZA()()()()(),t.TgZ(87,"mat-expansion-panel")(88,"mat-expansion-panel-header")(89,"mat-panel-title"),t._uU(90," CD/DVD "),t.qZA()(),t.TgZ(91,"div")(92,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(95);return t.KtG(a.click())}),t._uU(93,"Browse"),t.qZA(),t.TgZ(94,"input",34,35),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(96,"mat-form-field",36)(97,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cdrom_image=a)}),t.qZA()()()(),t.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),t._uU(101," Network "),t.qZA()(),t.TgZ(102,"mat-form-field",14)(103,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapters=a)}),t.qZA()(),t.TgZ(104,"mat-form-field",14)(105,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(106,"mat-form-field",14)(107,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(108,"mat-form-field",14)(109,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(110,"mat-form-field",14)(111,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.mac_address=a)}),t.qZA()(),t.TgZ(112,"mat-form-field",14)(113,"mat-select",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapter_type=a)}),t.YNc(114,nRe,2,3,"mat-option",20),t.qZA()(),t.TgZ(115,"button",44),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(116," Configure custom adapters"),t.qZA(),t._UZ(117,"br"),t.TgZ(118,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.replicate_network_connection_state=a)}),t._uU(119," Replicate network connection state "),t.qZA()(),t.TgZ(120,"mat-expansion-panel")(121,"mat-expansion-panel-header")(122,"mat-panel-title"),t._uU(123," Advanced "),t.qZA()(),t.TgZ(124,"mat-card"),t._UZ(125,"mat-card-title"),t.TgZ(126,"mat-card-subtitle"),t._uU(127," Linux boot specific settings "),t.qZA(),t.TgZ(128,"mat-card-content")(129,"div")(130,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(133);return t.KtG(a.click())}),t._uU(131,"Browse"),t.qZA(),t.TgZ(132,"input",34,45),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(134,"mat-form-field",36)(135,"input",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.initrd=a)}),t.qZA()()(),t.TgZ(136,"div")(137,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(138," Browse "),t.qZA(),t.TgZ(139,"input",34,47),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(141,"mat-form-field",36)(142,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_image=a)}),t.qZA()()(),t.TgZ(143,"mat-form-field",14)(144,"input",49),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(145,"mat-card"),t._UZ(146,"mat-card-title"),t.TgZ(147,"mat-card-subtitle"),t._uU(148," Bios "),t.qZA(),t.TgZ(149,"mat-card-content")(150,"div")(151,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(154);return t.KtG(a.click())}),t._uU(152,"Browse"),t.qZA(),t.TgZ(153,"input",34,50),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(155,"mat-form-field",36)(156,"input",51),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.bios_image=a)}),t.qZA()()()()(),t.TgZ(157,"mat-card"),t._UZ(158,"mat-card-title"),t.TgZ(159,"mat-card-subtitle"),t._uU(160," Optimization "),t.qZA(),t.TgZ(161,"mat-card-content")(162,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(163," Activate CPU throttling "),t.qZA(),t.YNc(164,rRe,2,1,"mat-form-field",52),t.TgZ(165,"mat-form-field",14)(166,"mat-select",53),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.process_priority=a)}),t.YNc(167,iRe,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(168,"mat-card"),t._UZ(169,"mat-card-title"),t.TgZ(170,"mat-card-subtitle"),t._uU(171," Additional settings "),t.qZA(),t.TgZ(172,"mat-card-content")(173,"mat-form-field",14)(174,"input",54),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.qemu_path=a)}),t.qZA()(),t.TgZ(175,"mat-form-field",14)(176,"input",55),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.options=a)}),t.qZA()(),t.TgZ(177,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.linked_clone=a)}),t._uU(178," Use as a linked base VM "),t.qZA(),t._UZ(179,"br"),t.TgZ(180,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.tpm=a)}),t._uU(181," Enable the Trusted Platform Module (TPM)"),t.qZA(),t._UZ(182,"br"),t.TgZ(183,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.uefi=a)}),t._uU(184," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(185,"mat-expansion-panel")(186,"mat-expansion-panel-header")(187,"mat-panel-title"),t._uU(188," Usage "),t.qZA()(),t.TgZ(189,"mat-form-field",14)(190,"textarea",56),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.usage=a)}),t.qZA()()()(),t.TgZ(191,"div",57)(192,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(193,"Cancel"),t.qZA(),t.TgZ(194,"button",58),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(195,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.platform),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.cpus),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.console_auto_start),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.hda_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(11),t.Q6J("ngModel",i.qemuTemplate.cdrom_image),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.mac_address),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.replicate_network_connection_state),t.xp6(17),t.Q6J("ngModel",i.qemuTemplate.initrd),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.kernel_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.qemu_path),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.options),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.linked_clone),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.tpm),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.uefi),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.usage)}}function aRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",61),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var sRe=function(r){return{shadowed:r}},B2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.auxConsoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.selectPlatform=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.fillCustomAdapters()})}),this.selectPlatform=this.configurationService.getPlatform()}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.auxConsoleTypes=this.configurationService.getAuxConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()}},{key:"uploadCdromImageFile",value:function(e){this.qemuTemplate.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.qemuTemplate.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.qemuTemplate.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.qemuTemplate.bios_image=e.target.files[0].name}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var i=0;i<this.qemuTemplate.adapters;i++)e[i]?this.qemuTemplate.custom_adapters.push(e[i]):this.qemuTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=e}}]),n}();function lRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function uRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function cRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function dRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function pRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,dRe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.qemuTemplates)}}function fRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,pRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}B2.\u0275fac=function(r){return new(r||B2)(t.Y36(fr),t.Y36(rr),t.Y36(Bu),t.Y36(Pn),t.Y36(Mm),t.Y36(J.QS),t.Y36(dr))},B2.\u0275cmp=t.Xpm({type:B2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(z6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Platform",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Custom Qemu binary path",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,W6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM template configuration"),t.qZA()()()(),t.YNc(8,oRe,196,54,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,aRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,sRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.qemuTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,si,xg,G0,z0,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu,lb],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var F2=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.qemuService.getTemplates(this.controller).subscribe(function(i){e.qemuTemplates=i.filter(function(o){return"qemu"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates",e.template_id,"copy"])}}]),n}();F2.\u0275fac=function(r){return new(r||F2)(t.Y36(fr),t.Y36(rr),t.Y36(Bu),t.Y36(dr))},F2.\u0275cmp=t.Xpm({type:F2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,lRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,uRe,3,1,"button",7),t.qZA()()(),t.YNc(10,cRe,1,0,"app-empty-templates-list",8),t.YNc(11,fRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.qemuTemplates.length),t.xp6(1),t.Q6J("ngIf",e.qemuTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Sm=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/virtualbox/vms"))}}]),n}();function hRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function mRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}function _Re(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,mRe,2,2,"mat-option",14),t.qZA()()(),t.TgZ(6,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(7," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(8,"div",16)(9,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(12,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.vmForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}Sm.\u0275fac=function(r){return new(r||Sm)(t.LFG(mo.zw))},Sm.\u0275prov=t.Yz7({token:Sm,factory:Sm.\u0275fac});var U2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.vmForm=this.formBuilder.group({vm:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.virtualBoxService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVirtualBoxTemplate().subscribe(function(s){e.virtualBoxTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"addTemplate",value:function(){var e=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=ts(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),n}();U2.\u0275fac=function(r){return new(r||U2)(t.Y36(fr),t.Y36(rr),t.Y36(Sm),t.Y36(Pn),t.Y36(Al),t.Y36(dr),t.Y36(J.QS))},U2.\u0275cmp=t.Xpm({type:U2,selectors:[["app-add-virtual-box-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[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,"div",3),t.YNc(4,hRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VirtualBox VM template"),t.qZA()()()(),t.YNc(8,_Re,13,4,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Dn,ei,$r.gD,Wt.ey],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Ig=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]}}]),n}();Ig.\u0275fac=function(r){return new(r||Ig)},Ig.\u0275prov=t.Yz7({token:Ig,factory:Ig.\u0275fac});var gRe=["customAdaptersConfigurator"];function vRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function yRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function bRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function CRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function wRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Dk=function(){return{standalone:!0}};function kRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.category=a)}),t.YNc(19,yRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_type=a)}),t.YNc(22,bRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.ram=a)}),t.qZA(),t.TgZ(27,"span",25),t._uU(28,"MB"),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.on_close=a)}),t.YNc(31,CRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(32,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.headless=a)}),t._uU(33," Start VM in headless mode "),t.qZA(),t._UZ(34,"br"),t.TgZ(35,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(36," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),t._uU(40," Network "),t.qZA()(),t.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapters=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(48,"mat-form-field",14)(49,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",14)(51,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapter_type=a)}),t.YNc(52,wRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(53,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(54," Configure custom adapters"),t.qZA(),t._UZ(55,"br"),t.TgZ(56,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.use_any_adapter=a)}),t._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA()(),t.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),t._uU(61," Usage "),t.qZA()(),t.TgZ(62,"mat-form-field",14)(63,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.usage=a)}),t.qZA()()()(),t.TgZ(64,"div",35)(65,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(66,"Cancel"),t.qZA(),t.TgZ(67,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(68,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(29,Dk))("ngModel",i.virtualBoxTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,Dk))("ngModel",i.virtualBoxTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Dk))("ngModel",i.virtualBoxTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Dk))("ngModel",i.virtualBoxTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.headless),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),t.xp6(6),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(33,Dk))("ngModel",i.virtualBoxTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,Dk))("ngModel",i.virtualBoxTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function TRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",38),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var MRe=function(r){return{shadowed:r}},H2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new J.p4("",J.kI.required),nameFormat:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.virtualBoxService.getTemplate(e.controller,o).subscribe(function(s){e.virtualBoxTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var i=0;i<this.virtualBoxTemplate.adapters;i++)e[i]?this.virtualBoxTemplate.custom_adapters.push(e[i]):this.virtualBoxTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=e}}]),n}();function SRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function xRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function ERe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function DRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function ARe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,DRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.virtualBoxTemplates)}}function ORe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,ARe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}H2.\u0275fac=function(r){return new(r||H2)(t.Y36(fr),t.Y36(rr),t.Y36(Sm),t.Y36(Pn),t.Y36(J.QS),t.Y36(Ig),t.Y36(dr))},H2.\u0275cmp=t.Xpm({type:H2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(gRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,vRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM template configuration"),t.qZA()()()(),t.YNc(8,kRe,69,35,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,TRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,MRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,cn,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu,lb],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var j2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.virtualBoxService.getTemplates(this.controller).subscribe(function(i){e.virtualBoxTemplates=i.filter(function(o){return"virtualbox"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();j2.\u0275fac=function(r){return new(r||j2)(t.Y36(fr),t.Y36(rr),t.Y36(Sm))},j2.\u0275cmp=t.Xpm({type:j2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,SRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,xRe,3,1,"button",7),t.qZA()()(),t.YNc(10,ERe,1,0,"app-empty-templates-list",8),t.YNc(11,ORe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("ngIf",e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var xm=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/vmware/vms"))}}]),n}();function IRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function PRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}xm.\u0275fac=function(r){return new(r||xm)(t.LFG(mo.zw))},xm.\u0275prov=t.Yz7({token:xm,factory:xm.\u0275fac});var RRe=function(){return{standalone:!0}};function LRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,PRe,2,2,"mat-option",14),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(8," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(9,"div",16)(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(13,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.templateNameForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(5,RRe))("ngModel",i.vmwareTemplate.linked_clone)}}var G2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.vmwareService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVmwareTemplate().subscribe(function(s){e.vmwareTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=ts(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),n}();G2.\u0275fac=function(r){return new(r||G2)(t.Y36(fr),t.Y36(rr),t.Y36(xm),t.Y36(Pn),t.Y36(Al),t.Y36(dr),t.Y36(J.QS))},G2.\u0275cmp=t.Xpm({type:G2,selectors:[["app-add-vmware-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[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,"div",3),t.YNc(4,IRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VMware VM template"),t.qZA()()()(),t.YNc(8,LRe,14,6,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Dn,ei,$r.gD,Wt.ey],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Pg=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]}}]),n}();Pg.\u0275fac=function(r){return new(r||Pg)},Pg.\u0275prov=t.Yz7({token:Pg,factory:Pg.\u0275fac});var ZRe=["customAdaptersConfigurator"];function NRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function BRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function FRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function URe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function HRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Ak=function(){return{standalone:!0}};function jRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.category=a)}),t.YNc(19,BRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_type=a)}),t.YNc(22,FRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.on_close=a)}),t.YNc(27,URe,2,2,"mat-option",20),t.qZA()(),t.TgZ(28,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.headless=a)}),t._uU(29," Start VM in headless mode "),t.qZA(),t._UZ(30,"br")(31,"br"),t.TgZ(32,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(33," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),t._uU(37," Network "),t.qZA()(),t.TgZ(38,"mat-form-field",14)(39,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapters=a)}),t.qZA()(),t.TgZ(40,"mat-form-field",14)(41,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(42,"mat-form-field",14)(43,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapter_type=a)}),t.YNc(48,HRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(49,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(50," Configure custom adapters"),t.qZA(),t._UZ(51,"br"),t.TgZ(52,"mat-checkbox",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.use_any_adapter=a)}),t._uU(53," Allow GNS3 to override non custom VMware adapter "),t.qZA()(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._uU(57," Usage "),t.qZA()(),t.TgZ(58,"mat-form-field",14)(59,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.usage=a)}),t.qZA()()()(),t.TgZ(60,"div",33)(61,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(62,"Cancel"),t.qZA(),t.TgZ(63,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(64,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(27,Ak))("ngModel",i.vmwareTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(28,Ak))("ngModel",i.vmwareTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(29,Ak))("ngModel",i.vmwareTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(30,Ak))("ngModel",i.vmwareTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Ak))("ngModel",i.vmwareTemplate.headless),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Ak))("ngModel",i.vmwareTemplate.linked_clone),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.usage)}}function GRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",36),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var zRe=function(r){return{shadowed:r}},z2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=l,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vmwareService.getTemplate(e.controller,o).subscribe(function(s){e.vmwareTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.controller,this.vmwareTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var i=0;i<this.vmwareTemplate.adapters;i++)e[i]?this.vmwareTemplate.custom_adapters.push(e[i]):this.vmwareTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.vmwareTemplate.symbol=e}}]),n}();function WRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function VRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function YRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function KRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function qRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,KRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vmwareTemplates)}}function JRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,qRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}z2.\u0275fac=function(r){return new(r||z2)(t.Y36(fr),t.Y36(rr),t.Y36(xm),t.Y36(Pn),t.Y36(J.QS),t.Y36(Pg),t.Y36(dr))},z2.\u0275cmp=t.Xpm({type:z2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(ZRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,NRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM template configuration"),t.qZA()()()(),t.YNc(8,jRe,65,33,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,GRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,zRe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,ei,Dl,El,cu,Lu,$r.gD,Wt.ey,Zu,lb],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var W2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vmwareService.getTemplates(this.controller).subscribe(function(i){e.vmwareTemplates=i.filter(function(o){return"vmware"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();W2.\u0275fac=function(r){return new(r||W2)(t.Y36(fr),t.Y36(rr),t.Y36(xm))},W2.\u0275cmp=t.Xpm({type:W2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,WRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,VRe,3,1,"button",7),t.qZA()()(),t.YNc(10,YRe,1,0,"app-empty-templates-list",8),t.YNc(11,JRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vmwareTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vmwareTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Em=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function QRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}Em.\u0275fac=function(r){return new(r||Em)(t.LFG(mo.zw))},Em.\u0275prov=t.Yz7({token:Em,factory:Em.\u0275fac});var V2=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"addTemplate",value:function(){var i,e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(o){i=o}),i.template_id=ts(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),n}();V2.\u0275fac=function(r){return new(r||V2)(t.Y36(fr),t.Y36(rr),t.Y36(Em),t.Y36(dr),t.Y36(Pn),t.Y36(Al),t.Y36(J.QS),t.Y36(ap.X))},V2.\u0275cmp=t.Xpm({type:V2,selectors:[["app-add-vpcs-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,QRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VPCS node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the VPCS node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.templateNameForm))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Dn,Kn,ns,Gs],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Dm=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function XRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function $Re(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function eLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Dm.\u0275fac=function(r){return new(r||Dm)},Dm.\u0275prov=t.Yz7({token:Dm,factory:Dm.\u0275fac});var hz=function(){return{standalone:!0}};function tLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",13)(6,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",13)(8,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.base_script_file=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",13)(10,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.symbol=a)}),t.qZA()(),t.TgZ(11,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(12,"Choose symbol"),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-form-field",13)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.category=a)}),t.YNc(17,$Re,2,2,"mat-option",20),t.qZA()(),t.TgZ(18,"mat-form-field",21)(19,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_type=a)}),t.YNc(20,eLe,2,2,"mat-option",20),t.qZA()(),t.TgZ(21,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA()()(),t.TgZ(23,"div",24)(24,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(25,"Cancel"),t.qZA(),t.TgZ(26,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(27,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.base_script_file),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(13,hz))("ngModel",i.vpcsTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(14,hz))("ngModel",i.vpcsTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(15,hz))("ngModel",i.vpcsTemplate.console_auto_start)}}function nLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var rLe=function(r){return{shadowed:r}},Y2=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),scriptFile:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vpcsService.getTemplate(e.controller,o).subscribe(function(s){e.vpcsTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.controller,this.vpcsTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=e}}]),n}();function iLe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function oLe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function aLe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function sLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"delete"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function lLe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,sLe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vpcsTemplates)}}function uLe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,lLe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}Y2.\u0275fac=function(r){return new(r||Y2)(t.Y36(fr),t.Y36(rr),t.Y36(Em),t.Y36(Pn),t.Y36(J.QS),t.Y36(Dm),t.Y36(dr))},Y2.\u0275cmp=t.Xpm({type:Y2,selectors:[["app-vpcs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,XRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node template configuration"),t.qZA()()()(),t.YNc(8,tLe,28,16,"div",7),t.qZA(),t.YNc(9,nLe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,rLe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vpcsTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Dn,Kn,ei,$r.gD,Wt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var K2=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vpcsService.getTemplates(this.controller).subscribe(function(i){e.vpcsTemplates=i.filter(function(o){return"vpcs"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();K2.\u0275fac=function(r){return new(r||K2)(t.Y36(fr),t.Y36(rr),t.Y36(Em))},K2.\u0275cmp=t.Xpm({type:K2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,iLe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,oLe,3,1,"button",7),t.qZA()()(),t.YNc(10,aLe,1,0,"app-empty-templates-list",8),t.YNc(11,uLe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vpcsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vpcsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Tr,_a,cn,Dn,js,Aa,ai,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var zs=m(9971);function cLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(null==e?null:e.name)}}function dLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function pLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"form",1),t.NdJ("ngSubmit",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.export_project_form.valid&&a.exportPortableProject())}),t.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),t._uU(4,"Export Project"),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t._UZ(9,"mat-divider"),t.TgZ(10,"div",7)(11,"div",2)(12,"div",8),t._uU(13,"Compression:"),t.qZA(),t.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectCompression(a))}),t.YNc(17,cLe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(18,"div",2)(19,"div",8),t._uU(20,"Compression level:"),t.qZA(),t.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),t.YNc(24,dLe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),t._uU(29," Include base images "),t.qZA()()()(),t.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),t._uU(34," Include snapshots "),t.qZA()()()(),t.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),t._uU(39," Reset MAC addresses"),t.qZA()()()()(),t._UZ(40,"mat-divider"),t.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),t._uU(45,"Export"),t.qZA(),t.TgZ(46,"button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t._uU(47,"Cancel"),t.qZA()()()()()}if(2&n){var i=t.oxw();t.Q6J("formGroup",i.export_project_form),t.xp6(17),t.Q6J("ngForOf",i.compression_methods),t.xp6(7),t.Q6J("ngForOf",i.compression_filter_value),t.xp6(20),t.Q6J("disabled",i.isExport)}}var Ok=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.projectService=i,this._fb=o,this.chosenImage="",this.compression_methods=[],this.compression_level=[],this.compression_filter_value=[],this.index=4,this.isExport=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.controller=this.data.controllerDetails,this.project=this.data.projectDetails,this.project&&(this.fileName=this.project.name+".gns3project"),o.next=5,this.formControls();case 5:this.compression_methods=this.projectService.getCompression(),this.compression_level=this.projectService.getCompressionLevel(),this.selectCompression({value:this.compression_methods[this.index]}),this.export_project_form.get("compression").setValue(this.compression_methods[this.index]);case 9:case"end":return o.stop()}},e,this)}))}},{key:"formControls",value:function(){this.export_project_form=this._fb.group({compression:["",J.kI.required],compression_level:[""],include_base_image:[!1,J.kI.required],include_snapshots:[!1,J.kI.required],reset_mac_address:[!1,J.kI.required]}),this.export_project_form.valueChanges.subscribe(function(){})}},{key:"selectCompression",value:function(e){var i=this;this.compression_level.length>0&&this.compression_level.map(function(o){e.value.value===o.name&&(i.export_project_form.get("compression_level").setValue(o.value),i.compression_filter_value=o.selectionValues)})}},{key:"exportPortableProject",value:function(){var e;this.isExport=!0,this.export_project_form.value.compression=null!==(e=this.export_project_form.value.compression.value)&&void 0!==e?e:"zstd",window.location.assign(this.projectService.getexportPortableProjectPath(this.controller,this.project.project_id,this.export_project_form.value)),this.dialogRef.close()}}]),n}();Ok.\u0275fac=function(r){return new(r||Ok)(t.Y36(lr),t.Y36(go),t.Y36(zs.Y),t.Y36(J.QS))},Ok.\u0275cmp=t.Xpm({type:Ok,selectors:[["app-export-portable-project"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-10"],["mat-dialog-title",""],[1,"col-md-2","txt-align"],["mat-button","","type","button",1,"close-btn",3,"click"],[1,"mat-data"],[1,"col-md-4","col-data"],[1,"col-md-8"],[1,"input-full-width"],["formControlName","compression","required","",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","compression_level"],[1,"col-md-12","checkbox-row"],[1,"checkBox-section"],["formControlName","include_base_image",1,"checkBox-margin"],["formControlName","include_snapshots",1,"checkBox-margin"],["formControlName","reset_mac_address",1,"checkBox-margin"],[1,"col-md-12"],["mat-dialog-actions","","align","end"],["mat-button","","type","submit","cdkFocusInitial","",3,"disabled"],["type","button","mat-button","","cdkFocusInitial","",3,"click"],[3,"value"]],template:function(r,e){1&r&&t.YNc(0,pLe,48,4,"form",0),2&r&&t.Q6J("ngIf",e.export_project_form)},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.Q7,J.sg,J.u,kn.KE,cn,Dn,yr,ur,ei,pm.d,$r.gD,Wt.ey],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin:0;display:block}.mat-dialog-container[_ngcontent-%COMP%]{padding:14px 14px 5px!important}.checkBox-section[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;height:35px}.checkBox-margin[_ngcontent-%COMP%]{margin:0 10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.close-btn[_ngcontent-%COMP%]{margin:0 0 20px 40px}.mat-data[_ngcontent-%COMP%]{margin:15px 0}.input-full-width[_ngcontent-%COMP%]{width:100%}.col-data[_ngcontent-%COMP%]{text-align:left;align-self:self-end;margin-bottom:20px}.checkbox-row[_ngcontent-%COMP%]{margin-top:5px 0 5px 0}"]});var Rg=m(7521),jB=m(5735),GB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(jB.o),Am=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(GB);Am.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Am)))(e||Am)}}(),Am.\u0275prov=t.Yz7({token:Am,factory:Am.\u0275fac});var Om=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(GB);Om.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Om)))(e||Om)}}(),Om.\u0275prov=t.Yz7({token:Om,factory:Om.\u0275fac});var Im=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(GB);Im.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Im)))(e||Im)}}(),Im.\u0275prov=t.Yz7({token:Im,factory:Im.\u0275fac});var Pm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(GB);Pm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pm)))(e||Pm)}}(),Pm.\u0275prov=t.Yz7({token:Pm,factory:Pm.\u0275fac});var ub=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Ik=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Pf=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"calculate",value:function(e,i){var o=document.createElement("text");o.innerText=e,o.setAttribute("fill","#00000"),o.setAttribute("fill-opacity","0"),o.setAttribute("style",i),document.documentElement.appendChild(o);var a=o.getBoundingClientRect();return document.documentElement.removeChild(o),{width:a.width,height:a.height}}}]),n}();function zie(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function Vr(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?zie(Object(e),!0).forEach(function(i){(0,Gw.Z)(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):zie(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}Pf.\u0275fac=function(r){return new(r||Pf)},Pf.\u0275prov=t.Yz7({token:Pf,factory:Pf.\u0275fac});function Ws(n){return n>=48&&n<=57}function Lg(n){return Ws(n)||n>=65&&n<=70||n>=97&&n<=102}function _z(n){return n>=65&&n<=90}function WB(n){return function mLe(n){return _z(n)||function hLe(n){return n>=97&&n<=122}(n)}(n)||function _Le(n){return n>=128}(n)||95===n}function Wie(n){return WB(n)||Ws(n)||45===n}function gLe(n){return n>=0&&n<=8||11===n||n>=14&&n<=31||127===n}function VB(n){return 10===n||13===n||12===n}function cb(n){return VB(n)||32===n||9===n}function Zf(n,r){return!(92!==n||VB(r)||0===r)}function YB(n,r,e){return 45===n?WB(r)||45===r||Zf(r,e):!!WB(n)||92===n&&Zf(n,r)}function gz(n,r,e){return 43===n||45===n?Ws(r)?2:46===r&&Ws(e)?3:0:46===n?Ws(r)?2:0:Ws(n)?1:0}function Vie(n){return 65279===n||65534===n?1:0}for(var vz=new Array(128),Zg=0;Zg<vz.length;Zg++)vz[Zg]=(cb(Zg)?130:Ws(Zg)&&131)||WB(Zg)&&132||gLe(Zg)&&133||Zg||128;function bz(n){return n<128?vz[n]:132}function Pk(n,r){return r<n.length?n.charCodeAt(r):0}function Cz(n,r,e){return 13===e&&10===Pk(n,r+1)?2:1}function Rk(n,r,e){var i=n.charCodeAt(r);return _z(i)&&(i|=32),i===e}function J2(n,r,e,i){if(e-r!==i.length||r<0||e>n.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=n.charCodeAt(o);if(_z(s)&&(s|=32),s!==a)return!1}return!0}function qB(n,r){for(;r<n.length&&cb(n.charCodeAt(r));r++);return r}function wz(n,r){for(;r<n.length&&Ws(n.charCodeAt(r));r++);return r}function Lk(n,r){if(Lg(Pk(n,(r+=2)-1))){for(var e=Math.min(n.length,r+5);r<e&&Lg(Pk(n,r));r++);var i=Pk(n,r);cb(i)&&(r+=Cz(n,r,i))}return r}function JB(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(!Wie(e)){if(Zf(e,Pk(n,r+1))){r=Lk(n,r)-1;continue}break}}return r}function QB(n,r){var e=n.charCodeAt(r);if((43===e||45===e)&&(e=n.charCodeAt(r+=1)),Ws(e)&&(r=wz(n,r+1),e=n.charCodeAt(r)),46===e&&Ws(n.charCodeAt(r+1))&&(r=wz(n,r+=2)),Rk(n,r,101)){var i=0;(45===(e=n.charCodeAt(r+1))||43===e)&&(i=1,e=n.charCodeAt(r+2)),Ws(e)&&(r=wz(n,r+1+i+1))}return r}function kz(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(41===e){r++;break}Zf(e,Pk(n,r+1))&&(r=Lk(n,r))}return r}function qie(n){if(1===n.length&&!Lg(n.charCodeAt(0)))return n[0];var r=parseInt(n,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var Jie=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function XB(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===n||n.length<r?new Uint32Array(Math.max(r+1024,16384)):n}function $ie(n){for(var r=n.source,e=r.length,i=r.length>0?Vie(r.charCodeAt(0)):0,o=XB(n.lines,e),a=XB(n.columns,e),s=n.startLine,l=n.startColumn,u=i;u<e;u++){var d=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===d||13===d||12===d)&&(13===d&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,n.lines=o,n.columns=a,n.computed=!0}var wLe=function(){function n(){(0,U.Z)(this,n),this.lines=null,this.columns=null,this.computed=!1}return(0,B.Z)(n,[{key:"setSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=i,this.startLine=o,this.startColumn=a,this.computed=!1}},{key:"getLocation",value:function(e,i){return this.computed||$ie(this),{source:i,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}},{key:"getLocationRange",value:function(e,i,o){return this.computed||$ie(this),{source:o,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+i,line:this.lines[i],column:this.columns[i]}}}}]),n}(),ld=16777215,kLe=new Map([[2,22],[21,22],[19,20],[23,24]]),TLe=function(){function n(r,e){(0,U.Z)(this,n),this.setSource(r,e)}return(0,B.Z)(n,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=(e=String(e||"")).length,a=XB(this.offsetAndType,e.length+1),s=XB(this.balance,e.length+1),l=0,u=0,d=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(C,Z,z){switch(C){default:s[l]=o;break;case u:var q=d&ld;for(d=s[q],u=d>>24,s[l]=q,s[q++]=l;q<l;q++)s[q]===o&&(s[q]=l);break;case 21:case 2:case 19:case 23:s[l]=d,u=kLe.get(C),d=u<<24|l}a[l++]=C<<24|z,-1===h&&(h=Z)}),a[l]=0|o,s[l]=o,s[o]=o;0!==d;){var g=d&ld;d=s[g],s[g]=o}this.source=e,this.firstCharOffset=-1===h?0:h,this.tokenCount=l,this.offsetAndType=a,this.balance=s,this.reset(),this.next()}},{key:"lookupType",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>24:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&ld:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&J2(this.source,this.offsetAndType[e-1]&ld,this.offsetAndType[e]&ld,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&ld:this.offsetAndType[this.tokenCount]&ld:this.firstCharOffset}},{key:"substrToCursor",value:function(e){return this.source.substring(e,this.tokenStart)}},{key:"isBalanceEdge",value:function(e){return this.balance[this.tokenIndex]<e}},{key:"isDelim",value:function(e,i){return i?9===this.lookupType(i)&&this.source.charCodeAt(this.lookupOffset(i))===e:9===this.tokenType&&this.source.charCodeAt(this.tokenStart)===e}},{key:"skip",value:function(e){var i=this.tokenIndex+e;i<this.tokenCount?(this.tokenIndex=i,this.tokenStart=this.offsetAndType[i-1]&ld,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&ld):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>24,this.tokenEnd=e&ld):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;13===this.tokenType||25===this.tokenType;)this.next()}},{key:"skipUntilBalanced",value:function(e,i){var a,s,o=e;e:for(;o<this.tokenCount&&!((a=this.balance[o])<e);o++)switch(s=o>0?this.offsetAndType[o-1]&ld:this.firstCharOffset,i(this.source.charCodeAt(s))){case 1:break e;case 2:o++;break e;default:this.balance[a]===o&&(o=a)}this.skip(o-this.tokenIndex)}},{key:"forEachToken",value:function(e){for(var i=0,o=this.firstCharOffset;i<this.tokenCount;i++){var a=o,s=this.offsetAndType[i],l=s&ld;o=l,e(s>>24,a,l,i)}}},{key:"dump",value:function(){var e=this,i=new Array(this.tokenCount);return this.forEachToken(function(o,a,s,l){i[l]={idx:l,type:Jie[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),n}();function $B(n,r){function e(C){return C<l?n.charCodeAt(C):0}function i(){return YB(e(d=QB(n,d)),e(d+1),e(d+2))?(h=12,void(d=JB(n,d))):37===e(d)?(h=11,void d++):void(h=10)}function o(){var C=d;return d=JB(n,d),J2(n,C,d,"url")&&40===e(d)?34===e(d=qB(n,d+1))||39===e(d)?(h=2,void(d=C+4)):void function s(){for(h=7,d=qB(n,d);d<n.length;d++){var C=n.charCodeAt(d);switch(bz(C)){case 41:return void d++;case 130:return 41===e(d=qB(n,d))||d>=n.length?void(d<n.length&&d++):(d=kz(n,d),void(h=8));case 34:case 39:case 40:case 133:return d=kz(n,d),void(h=8);case 92:if(Zf(C,e(d+1))){d=Lk(n,d)-1;break}return d=kz(n,d),void(h=8)}}}():40===e(d)?(h=2,void d++):void(h=1)}function a(C){for(C||(C=e(d++)),h=5;d<n.length;d++){var Z=n.charCodeAt(d);switch(bz(Z)){case C:return void d++;case 130:if(VB(Z))return d+=Cz(n,d,Z),void(h=6);break;case 92:if(d===n.length-1)break;var z=e(d+1);VB(z)?d+=Cz(n,d+1,z):Zf(Z,z)&&(d=Lk(n,d)-1)}}}for(var h,l=(n=String(n||"")).length,u=Vie(e(0)),d=u;d<l;){var g=n.charCodeAt(d);switch(bz(g)){case 130:h=13,d=qB(n,d+1);break;case 34:case 39:a();break;case 35:Wie(e(d+1))||Zf(e(d+1),e(d+2))?(h=4,d=JB(n,d+1)):(h=9,d++);break;case 40:h=21,d++;break;case 41:h=22,d++;break;case 43:case 46:gz(g,e(d+1),e(d+2))?i():(h=9,d++);break;case 44:h=18,d++;break;case 45:gz(g,e(d+1),e(d+2))?i():45===e(d+1)&&62===e(d+2)?(h=15,d+=3):YB(g,e(d+1),e(d+2))?o():(h=9,d++);break;case 47:42===e(d+1)?(h=25,d=-1===(d=n.indexOf("*/",d+2))?n.length:d+2):(h=9,d++);break;case 58:h=16,d++;break;case 59:h=17,d++;break;case 60:33===e(d+1)&&45===e(d+2)&&45===e(d+3)?(h=14,d+=4):(h=9,d++);break;case 64:YB(e(d+1),e(d+2),e(d+3))?(h=3,d=JB(n,d+1)):(h=9,d++);break;case 91:h=19,d++;break;case 92:Zf(g,e(d+1))?o():(h=9,d++);break;case 93:h=20,d++;break;case 123:h=23,d++;break;case 125:h=24,d++;break;case 131:i();break;case 132:o();break;default:h=9,d++}r(h,u,u=d)}}var Zk=null,db=function(n){function r(){(0,U.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,B.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Zk?(a=Zk,Zk=Zk.cursor,a.prev=i,a.next=o,a.cursor=this.cursor):a={prev:i,next:o,cursor:this.cursor},this.cursor=a,a}},{key:"releaseCursor",value:function(){var i=this.cursor;this.cursor=i.cursor,i.prev=null,i.next=null,i.cursor=Zk,Zk=i}},{key:"updateCursors",value:function(i,o,a,s){for(var l=this.cursor;null!==l;)l.prev===i&&(l.prev=o),l.next===a&&(l.next=s),l=l.cursor}},{key:n,value:Ln().mark(function e(){var i;return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:i=this.head;case 1:if(null===i){a.next=7;break}return a.next=4,i.data;case 4:i=i.next,a.next=1;break;case 7:case"end":return a.stop()}},e,this)})},{key:"size",get:function(){for(var i=0,o=this.head;null!==o;o=o.next)i++;return i}},{key:"isEmpty",get:function(){return null===this.head}},{key:"first",get:function(){return this.head&&this.head.data}},{key:"last",get:function(){return this.tail&&this.tail.data}},{key:"fromArray",value:function(i){var o=null;this.head=null;var s,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=r.createItem(l);null!==o?o.next=u:this.head=u,u.prev=o,o=u}}catch(d){a.e(d)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,fn.Z)(this)}},{key:"toJSON",value:function(){return(0,fn.Z)(this)}},{key:"forEach",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(null,this.head);null!==a.next;){var s=a.next;a.next=s.next,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"forEachRight",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.allocateCursor(this.tail,null);null!==a.prev;){var s=a.prev;a.prev=s.prev,i.call(o,s.data,s,this)}this.releaseCursor()}},{key:"reduce",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(null,this.head),l=o;null!==s.next;)u=s.next,s.next=u.next,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"reduceRight",value:function(i,o){for(var u,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,s=this.allocateCursor(this.tail,null),l=o;null!==s.prev;)u=s.prev,s.prev=u.prev,l=i.call(a,l,u.data,u,this);return this.releaseCursor(),l}},{key:"some",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=this.head;null!==a;a=a.next)if(i.call(o,a.data,a,this))return!0;return!1}},{key:"map",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)a.appendData(i.call(o,s.data,s,this));return a}},{key:"filter",value:function(i){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,a=new r,s=this.head;null!==s;s=s.next)i.call(o,s.data,s,this)&&a.appendData(s.data);return a}},{key:"nextUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(null,i);null!==s.next;){var l=s.next;if(s.next=l.next,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"prevUntil",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==i){for(var s=this.allocateCursor(i,null);null!==s.prev;){var l=s.prev;if(s.prev=l.prev,o.call(a,l.data,l,this))break}this.releaseCursor()}}},{key:"clear",value:function(){this.head=null,this.tail=null}},{key:"copy",value:function(){var a,i=new r,o=(0,xn.Z)(this);try{for(o.s();!(a=o.n()).done;){var s=a.value;i.appendData(s)}}catch(l){o.e(l)}finally{o.f()}return i}},{key:"prepend",value:function(i){return this.updateCursors(null,i,this.head,i),null!==this.head?(this.head.prev=i,i.next=this.head):this.tail=i,this.head=i,this}},{key:"prependData",value:function(i){return this.prepend(r.createItem(i))}},{key:"append",value:function(i){return this.insert(i)}},{key:"appendData",value:function(i){return this.insert(r.createItem(i))}},{key:"insert",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==o)if(this.updateCursors(o.prev,i,o,i),null===o.prev){if(this.head!==o)throw new Error("before doesn't belong to list");this.head=i,o.prev=i,i.next=o,this.updateCursors(null,i)}else o.prev.next=i,i.prev=o.prev,o.prev=i,i.next=o;else this.updateCursors(this.tail,i,null,i),null!==this.tail?(this.tail.next=i,i.prev=this.tail):this.head=i,this.tail=i;return this}},{key:"insertData",value:function(i,o){return this.insert(r.createItem(i),o)}},{key:"remove",value:function(i){if(this.updateCursors(i,i.prev,i,i.next),null!==i.prev)i.prev.next=i.next;else{if(this.head!==i)throw new Error("item doesn't belong to list");this.head=i.next}if(null!==i.next)i.next.prev=i.prev;else{if(this.tail!==i)throw new Error("item doesn't belong to list");this.tail=i.prev}return i.prev=null,i.next=null,i}},{key:"push",value:function(i){this.insert(r.createItem(i))}},{key:"pop",value:function(){return null!==this.tail?this.remove(this.tail):null}},{key:"unshift",value:function(i){this.prepend(r.createItem(i))}},{key:"shift",value:function(){return null!==this.head?this.remove(this.head):null}},{key:"prependList",value:function(i){return this.insertList(i,this.head)}},{key:"appendList",value:function(i){return this.insertList(i)}},{key:"insertList",value:function(i,o){return null===i.head||(null!=o?(this.updateCursors(o.prev,i.tail,o,i.head),null!==o.prev?(o.prev.next=i.head,i.head.prev=o.prev):this.head=i.head,o.prev=i.tail,i.tail.next=o):(this.updateCursors(this.tail,i.tail,null,i.head),null!==this.tail?(this.tail.next=i.head,i.head.prev=this.tail):this.head=i.head,this.tail=i.tail),i.head=null,i.tail=null),this}},{key:"replace",value:function(i,o){"head"in o?this.insertList(o,i):this.insert(o,i),this.remove(i)}}],[{key:"createItem",value:function(i){return{prev:null,next:null,data:i}}}]),r}(Symbol.iterator);function e5(n,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:n,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(n,": ").concat(r,"\n"))}})}function noe(n,r){var e=n.source,i=n.line,o=n.column;function a(C,Z){return s.slice(C,Z).map(function(z,q){return String(C+q+1).padStart(d)+" |"+z}).join("\n")}var s=e.split(/\r\n?|\n|\f/),l=Math.max(1,i-r)-1,u=Math.min(i+r,s.length+1),d=Math.max(4,String(u).length)+1,h=0;(o+=(" ".length-1)*(s[i-1].substr(0,o-1).match(/\t/g)||[]).length)>100&&(h=o-60+3,o=58);for(var g=l;g<=u;g++)g>=0&&g<s.length&&(s[g]=s[g].replace(/\t/g," "),s[g]=(h>0&&s[g].length>h?"\u2026":"")+s[g].substr(h,98)+(s[g].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+d+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function roe(n,r,e,i,o){return Object.assign(e5("SyntaxError",n),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return noe({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(n,"\n")+noe({source:r,line:i,column:o},2)}})}function MLe(n){for(var r=this.createList(),e=!1,i={recognizer:n};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=n.getNode.call(this,i);if(void 0===o)break;e&&(n.onWhiteSpace&&n.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&n.onWhiteSpace&&n.onWhiteSpace.call(this,null,r,i),r}var ioe=function(){};function ELe(n){return function(){return this[n]()}}function Sz(n){var r=Object.create(null);for(var e in n){var i=n[e],o=i.parse||i;o&&(r[e]=o)}return r}function ALe(n){var r="",e="<unknown>",i=!1,o=ioe,a=!1,s=new wLe,l=Object.assign(new TLe,function DLe(n){var r={context:Object.create(null),scope:Object.assign(Object.create(null),n.scope),atrule:Sz(n.atrule),pseudo:Sz(n.pseudo),node:Sz(n.node)};for(var e in n.parseContext)switch(typeof n.parseContext[e]){case"function":r.context[e]=n.parseContext[e];break;case"string":r.context[e]=ELe(n.parseContext[e])}return Vr(Vr({config:r},r),r.node)}(n||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:MLe,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(h){return 123===h?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(h){return 123===h||59===h?1:0},consumeUntilExclamationMarkOrSemicolon:function(h){return 33===h||59===h?1:0},consumeUntilSemicolonIncluded:function(h){return 59===h?2:0},createList:function(){return new db},createSingleNodeList:function(h){return(new db).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,g){var C=this.tokenIndex;try{return h.call(this)}catch(z){if(a)throw z;var Z=g.call(this,C);return a=!0,o(z,Z),a=!1,Z}},lookupNonWSType:function(h){var g;do{if(13!==(g=this.lookupType(h++)))return g}while(0!==g);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,g){return r.substring(h,g)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,g){return Rk(r,h,g)},cmpStr:function(h,g,C){return J2(r,h,g,C)},consume:function(h){var g=this.tokenStart;return this.eat(h),this.substrToCursor(g)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var g=r.substring(this.tokenStart,QB(r,this.tokenStart));return this.eat(h),g},eat:function(h){if(this.tokenType!==h){var g=Jie[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(z){return z.toUpperCase()}),C="".concat(/[[\](){}]/.test(g)?'"'.concat(g,'"'):g," is expected"),Z=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(Z=this.tokenEnd-1,C="Identifier is expected but function found"):C="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),Z++,C="Name is expected");break;case 11:10===this.tokenType&&(Z=this.tokenEnd,C="Percent sign is expected")}this.error(C,Z)}this.next()},eatIdent:function(h){(1!==this.tokenType||!1===this.lookupValue(0,h))&&this.error('Identifier "'.concat(h,'" is expected')),this.next()},eatDelim:function(h){this.isDelim(h)||this.error('Delim "'.concat(String.fromCharCode(h),'" is expected')),this.next()},getLocation:function(h,g){return i?s.getLocationRange(h,g,e):null},getLocationFromList:function(h){if(i){var g=this.getFirstListNode(h),C=this.getLastListNode(h);return s.getLocationRange(null!==g?g.loc.start.offset-s.startOffset:this.tokenStart,null!==C?C.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,g){var C=void 0!==g&&g<r.length?s.getLocation(g):this.eof?s.getLocation(function yLe(n,r){for(;r>=0&&cb(n.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new roe(h||"Unexpected input",r,C.offset,C.line,C.column)}});return Object.assign(function(h,g){r=h,g=g||{},l.setSource(r,$B),s.setSource(r,g.offset,g.line,g.column),e=g.filename||"<unknown>",i=Boolean(g.positions),o="function"==typeof g.onParseError?g.onParseError:ioe,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in g)||Boolean(g.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in g)||Boolean(g.parseRulePrelude),l.parseValue=!("parseValue"in g)||Boolean(g.parseValue),l.parseCustomProperty="parseCustomProperty"in g&&Boolean(g.parseCustomProperty);var C=g,Z=C.context,z=void 0===Z?"default":Z,q=C.onComment;if(!(z in l.context))throw new Error("Unknown context `"+z+"`");"function"==typeof q&&l.forEachToken(function(ae,Se,Ce){if(25===ae){var xe=l.getLocation(Se,Ce),Ve=J2(r,Ce-2,Ce,"*/")?r.slice(Se+2,Ce-2):r.slice(Se+2,Ce);q(Ve,xe)}});var re=l.context[z].call(l,g);return l.eof||l.error(),re},{SyntaxError:roe,config:l.config})}var OLe=m(3058),soe=new Set(["Atrule","Selector","Declaration"]);var xz=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},loe=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],LLe=loe.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);function uoe(n){var r=new Set(n.map(function(e){var i=(0,Nn.Z)(e,2),o=i[0],a=i[1];return xz(o)<<16|xz(a)}));return function(e,i,o){var a=xz(i,o),s=o.charCodeAt(0);return(45===s&&1!==i&&2!==i&&15!==i||43===s?r.has(e<<16|s<<8):r.has(e<<16|a))&&this.emit(" ",13,!0),a}}var ZLe=uoe(loe),coe=uoe(LLe);function BLe(n,r){var e=this;if("function"!=typeof r)n.children.forEach(this.node,this);else{var i=null;n.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function FLe(n){var r=this;$B(n,function(e,i,o){r.token(e,n.slice(i,o))})}function ULe(n){var r=new Map;for(var e in n.node){var i=n.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,d={node:function(C){if(!r.has(C.type))throw new Error("Unknown node type: "+C.type);r.get(C.type).call(h,C)},tokenBefore:coe,token:function(C,Z){u=this.tokenBefore(u,C,Z),this.emit(Z,C,!1),9===C&&92===Z.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(C){l+=C},result:function(){return l}};s&&("function"==typeof s.decorator&&(d=s.decorator(d)),s.sourceMap&&(d=function ILe(n){var r=new OLe.h,e={line:1,column:0},i={line:0,column:0},o={line:1,column:0},a={generated:o},s=1,l=0,u=!1,d=n.node;n.node=function(C){if(C.loc&&C.loc.start&&soe.has(C.type)){var Z=C.loc.start.line,z=C.loc.start.column-1;(i.line!==Z||i.column!==z)&&(i.line=Z,i.column=z,e.line=s,e.column=l,u&&(u=!1,(e.line!==o.line||e.column!==o.column)&&r.addMapping(a)),u=!0,r.addMapping({source:C.loc.source,original:i,generated:e}))}d.call(this,C),u&&soe.has(C.type)&&(o.line=s,o.column=l)};var h=n.emit;n.emit=function(C,Z,z){for(var q=0;q<C.length;q++)10===C.charCodeAt(q)?(s++,l=0):l++;h(C,Z,z)};var g=n.result;return n.result=function(){return u&&r.addMapping(a),{css:g(),map:r}},n}(d)),s.mode in W&&(d.tokenBefore=W[s.mode]));var h={node:function(C){return d.node(C)},children:BLe,token:function(C,Z){return d.token(C,Z)},tokenize:FLe};return d.node(a),d.result()}}var Ez=Object.prototype.hasOwnProperty,Q2=function(){};function doe(n){return"function"==typeof n?n:Q2}function poe(n,r){return function(e,i,o){e.type===r&&n.call(this,e,i,o)}}function jLe(n,r){var e=r.structure,i=[];for(var o in e)if(!1!==Ez.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,xn.Z)(a);try{for(l.s();!(u=l.n()).done;){var d=u.value;null===d?s.nullable=!0:"string"==typeof d?s.type="node":Array.isArray(d)&&(s.type="list")}}catch(h){l.e(h)}finally{l.f()}s.type&&i.push(s)}return i.length?{context:r.walkContext,fields:i}:null}function foe(n,r){var e=n.fields.slice(),i=n.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var d;o&&(d=s[i],s[i]=a);var g,h=(0,xn.Z)(e);try{for(h.s();!(g=h.n()).done;){var C=g.value,Z=a[C.name];if(!C.nullable||Z)if("list"===C.type){if(r?Z.reduceRight(u,!1):Z.reduce(u,!1))return!0}else if(l(Z))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=d)}}function hoe(n){var r=n.StyleSheet,e=n.Atrule,i=n.Rule,o=n.Block;return{Atrule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Rule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Declaration:{StyleSheet:r,Atrule:e,Rule:i,Block:o,DeclarationList:n.DeclarationList}}}function zLe(n){var r=function GLe(n){var r={};for(var e in n.node)if(Ez.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=jLe(0,i)}return r}(n),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)Ez.call(r,s)&&null!==r[s]&&(e[s]=foe(r[s],!1),i[s]=foe(r[s],!0));var l=hoe(e),u=hoe(i),d=function(g,C){function Z(Ce,xe,Ve){var at=z.call(Se,Ce,xe,Ve);return at===o||at!==a&&!!(re.hasOwnProperty(Ce.type)&&re[Ce.type](Ce,Se,Z,ae)||q.call(Se,Ce,xe,Ve)===o)}var z=Q2,q=Q2,re=e,ae=function(xe,Ve,at,De){return xe||Z(Ve,at,De)},Se={break:o,skip:a,root:g,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof C)z=C;else if(C&&(z=doe(C.enter),q=doe(C.leave),C.reverse&&(re=i),C.visit)){if(l.hasOwnProperty(C.visit))re=C.reverse?u[C.visit]:l[C.visit];else if(!r.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(r).sort().join(", ")+")");z=poe(z,C.visit),q=poe(q,C.visit)}if(z===Q2&&q===Q2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");Z(g)};return d.break=o,d.skip=a,d.find=function(h,g){var C=null;return d(h,function(Z,z,q){if(g.call(this,Z,z,q))return C=Z,o}),C},d.findLast=function(h,g){var C=null;return d(h,{reverse:!0,enter:function(z,q,re){if(g.call(this,z,q,re))return C=z,o}}),C},d.findAll=function(h,g){var C=[];return d(h,function(Z,z,q){g.call(this,Z,z,q)&&C.push(Z)}),C},d}function WLe(n){return n}function Dz(n,r,e,i){var o;switch(n.type){case"Group":o=function KLe(n,r,e,i){var o=" "===n.combinator||i?n.combinator:" "+n.combinator+" ",a=n.terms.map(function(s){return Dz(s,r,e,i)}).join(o);return n.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(n,r,e,i)+(n.disallowEmpty?"!":"");break;case"Multiplier":return Dz(n.term,r,e,i)+r(function VLe(n){var r=n.min,e=n.max,i=n.comma;return 0===r&&0===e?i?"#?":"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(n),n);case"Type":o="<"+n.name+(n.opts?r(function YLe(n){if("Range"===n.type)return" ["+(null===n.min?"-\u221e":n.min)+","+(null===n.max?"\u221e":n.max)+"]";throw new Error("Unknown node type `"+n.type+"`")}(n.opts),n.opts):"")+">";break;case"Property":o="<'"+n.name+"'>";break;case"Keyword":o=n.name;break;case"AtKeyword":o="@"+n.name;break;case"Function":o=n.name+"(";break;case"String":case"Token":o=n.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+n.type+"`")}return r(o,n)}function Az(n,r){var e=WLe,i=!1,o=!1;return"function"==typeof r?e=r:r&&(i=Boolean(r.forceBraces),o=Boolean(r.compact),"function"==typeof r.decorate&&(e=r.decorate)),Dz(n,e,i,o)}var moe={offset:0,line:1,column:1};function t5(n,r){var e=n&&n.loc&&n.loc[r];return e?"line"in e?X2(e):e:null}function X2(n,r){var a={offset:n.offset,line:n.line,column:n.column};if(r){var s=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=s.length-1,a.column=1===s.length?a.column+r.length:s.pop().length+1}return a}var $2=function(r,e){var i=e5("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},JLe=function(r,e,i,o){var a=e5("SyntaxMatchError",r),s=function qLe(n,r){for(var h,g,e=n.tokens,i=n.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,d="",C=0;C<e.length;C++){var Z=e[C].value;C===i&&(l=Z.length,s=d.length),null!==a&&e[C].node===a&&(C<=i?u++:u=0),d+=Z}return i===e.length||u>1?(h=t5(a||r,"end")||X2(moe,d),g=X2(h)):(h=t5(a,"start")||X2(t5(r,"start")||moe,d.slice(0,s)),g=t5(a,"end")||X2(h,d.substr(s,l))),{css:d,mismatchOffset:s,mismatchLength:l,start:h,end:g}}(o,i),l=s.css,u=s.mismatchOffset,d=s.mismatchLength,h=s.start,g=s.end;return a.rawMessage=r,a.syntax=e?Az(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=d,a.message=r+"\n syntax: "+a.syntax+"\n value: "+(l||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,h),a.loc={source:i&&i.loc&&i.loc.source||"<unknown>",start:h,end:g},a},n5=new Map,Nk=new Map,Oz=function QLe(n){if(n5.has(n))return n5.get(n);var r=n.toLowerCase(),e=n5.get(r);if(void 0===e){var i=Iz(r,0),o=i?"":goe(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return n5.set(n,e),e},_oe=function XLe(n){if(Nk.has(n))return Nk.get(n);var r=n,e=n[0];"/"===e?e="/"===n[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=Iz(r,e.length);if(!i&&(r=r.toLowerCase(),Nk.has(r))){var o=Nk.get(r);return Nk.set(n,o),o}var a=i?"":goe(r,e.length),s=r.substr(0,e.length+a.length),l=Object.freeze({basename:r.substr(s.length),name:r.substr(e.length),hack:e,vendor:a,prefix:s,custom:i});return Nk.set(n,l),l};function Iz(n,r){return r=r||0,n.length-r>=2&&45===n.charCodeAt(r)&&45===n.charCodeAt(r+1)}function goe(n,r){if(r=r||0,n.length-r>=3&&45===n.charCodeAt(r)&&45!==n.charCodeAt(r+1)){var e=n.indexOf("-",r+2);if(-1!==e)return n.substring(r,e+1)}return""}var voe=["initial","inherit","unset","revert","revert-layer"],Bk=!0;function Rz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function tA(n,r,e){for(;null!==n&&(13===n.type||25===n.type);)n=e(++r);return r}function Bg(n,r,e,i){if(!n)return 0;var o=n.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<n.value.length;r++)if(!Ws(n.value.charCodeAt(r)))return 0;return i+1}function Lz(n,r,e){var i=!1,o=tA(n,r,e);if(null===(n=e(o)))return r;if(10!==n.type){if(!Rz(n,43)&&!Rz(n,45))return r;if(i=!0,o=tA(e(++o),o,e),null===(n=e(o))||10!==n.type)return 0}if(!i){var a=n.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return Bg(n,i?0:1,i,o)}function Zz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function nA(n,r,e){for(var i=0,o=r;o<n.value.length;o++){var a=n.value.charCodeAt(o);if(45===a&&e&&0!==i)return nA(n,r+i+1,!1),6;if(!Lg(a)||++i>6)return 0}return i}function i5(n,r,e){if(!n)return 0;for(;Zz(e(r),63);){if(++n>6)return 0;r++}return r}var oZe=["calc(","-moz-calc(","-webkit-calc("],Nz=new Map([[2,22],[21,22],[19,20],[23,24]]);function cp(n,r){return r<n.length?n.charCodeAt(r):0}function Coe(n,r){return J2(n,0,n.length,r)}function woe(n,r){for(var e=0;e<r.length;e++)if(Coe(n,r[e]))return!0;return!1}function koe(n,r){return r===n.length-2&&(92===cp(n,r)&&Ws(cp(n,r+1)))}function o5(n,r,e){if(n&&"Range"===n.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==n.min&&i<n.min&&"string"!=typeof n.min||null!==n.max&&i>n.max&&"string"!=typeof n.max)return!0}return!1}function ud(n){return function(r,e,i){return null===r?0:2===r.type&&woe(r.value,oZe)?function aZe(n,r){var e=0,i=[],o=0;e:do{switch(n.type){case 24:case 22:case 20:if(n.type!==e)break e;if(e=i.pop(),0===i.length){o++;break e}break;case 2:case 21:case 19:case 23:i.push(e),e=Nz.get(n.type)}o++}while(n=r(o));return o}(r,e):n(r,e,i)}}function Yo(n){return function(r){return null===r||r.type!==n?0:1}}function Rm(n){return n&&(n=new Set(n)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=QB(r.value,0);if(null!==n){var a=r.value.indexOf("\\",o),s=-1!==a&&koe(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===n.has(s.toLowerCase()))return 0}return o5(i,r.value,o)?0:1}}function Toe(n){return"function"!=typeof n&&(n=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:n(r,e,i)}}var _Ze={"ident-token":Yo(1),"function-token":Yo(2),"at-keyword-token":Yo(3),"hash-token":Yo(4),"string-token":Yo(5),"bad-string-token":Yo(6),"url-token":Yo(7),"bad-url-token":Yo(8),"delim-token":Yo(9),"number-token":Yo(10),"percentage-token":Yo(11),"dimension-token":Yo(12),"whitespace-token":Yo(13),"CDO-token":Yo(14),"CDC-token":Yo(15),"colon-token":Yo(16),"semicolon-token":Yo(17),"comma-token":Yo(18),"[-token":Yo(19),"]-token":Yo(20),"(-token":Yo(21),")-token":Yo(22),"{-token":Yo(23),"}-token":Yo(24)},gZe={string:Yo(5),ident:Yo(1),percentage:ud(function fZe(n,r,e){return null===n||11!==n.type||o5(e,n.value,n.value.length-1)?0:1}),zero:Toe(),number:ud(function hZe(n,r,e){if(null===n)return 0;var i=QB(n.value,0);return!(i===n.value.length)&&!koe(n.value,i)||o5(e,n.value,i)?0:1}),integer:ud(function mZe(n,r,e){if(null===n||10!==n.type)return 0;for(var i=43===cp(n.value,0)||45===cp(n.value,0)?1:0;i<n.value.length;i++)if(!Ws(cp(n.value,i)))return 0;return o5(e,n.value,i)?0:1}),"custom-ident":function sZe(n){if(null===n||1!==n.type)return 0;var r=n.value.toLowerCase();return woe(r,voe)||Coe(r,"default")?0:1},"custom-property-name":function lZe(n){return null===n||1!==n.type||45!==cp(n.value,0)||45!==cp(n.value,1)?0:1},"hex-color":function uZe(n){if(null===n||4!==n.type)return 0;var r=n.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!Lg(cp(n.value,e)))return 0;return 1},"id-selector":function cZe(n){return null!==n&&4===n.type&&YB(cp(n.value,1),cp(n.value,2),cp(n.value,3))?1:0},"an-plus-b":function eZe(n,r){var e=0;if(!n)return 0;if(10===n.type)return Bg(n,0,false,e);if(1===n.type&&45===n.value.charCodeAt(0)){if(!Rk(n.value,1,110))return 0;switch(n.value.length){case 2:return Lz(r(++e),e,r);case 3:return 45!==n.value.charCodeAt(2)?0:(e=tA(r(++e),e,r),Bg(n=r(e),0,Bk,e));default:return 45!==n.value.charCodeAt(2)?0:Bg(n,3,Bk,e)}}else if(1===n.type||Rz(n,43)&&1===r(e+1).type){if(1!==n.type&&(n=r(++e)),null===n||!Rk(n.value,0,110))return 0;switch(n.value.length){case 1:return Lz(r(++e),e,r);case 2:return 45!==n.value.charCodeAt(1)?0:(e=tA(r(++e),e,r),Bg(n=r(e),0,Bk,e));default:return 45!==n.value.charCodeAt(1)?0:Bg(n,2,Bk,e)}}else if(12===n.type){for(var i=n.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<n.value.length&&Ws(n.value.charCodeAt(a));a++);return a!==o&&Rk(n.value,a,110)?a+1===n.value.length?Lz(r(++e),e,r):45!==n.value.charCodeAt(a+1)?0:a+2===n.value.length?(e=tA(r(++e),e,r),Bg(n=r(e),0,Bk,e)):Bg(n,a+2,Bk,e):0}return 0},urange:function iZe(n,r){var e=0;if(null===n||1!==n.type||!Rk(n.value,0,117)||null===(n=r(++e)))return 0;if(Zz(n,43))return null===(n=r(++e))?0:1===n.type?i5(nA(n,0,!0),++e,r):Zz(n,63)?i5(1,++e,r):0;if(10===n.type){var i=nA(n,1,!0);return 0===i?0:null===(n=r(++e))?e:12===n.type||10===n.type?function rZe(n,r){return n.value.charCodeAt(0)===r}(n,45)&&nA(n,1,!1)?e+1:0:i5(i,e,r)}return 12===n.type?i5(nA(n,1,!0),++e,r):0},"declaration-value":function dZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===n.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=Nz.get(n.type)}o++}while(n=r(o));return o},"any-value":function pZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=Nz.get(n.type)}o++}while(n=r(o));return o}};function yZe(n){return Vr(Vr(Vr({},_Ze),gZe),function vZe(n){var r=n||{},e=r.angle,i=r.decibel,o=r.frequency,a=r.flex,s=r.length,l=r.resolution,u=r.semitones,d=r.time;return{dimension:ud(Rm(null)),angle:ud(Rm(e)),decibel:ud(Rm(i)),frequency:ud(Rm(o)),flex:ud(Rm(a)),length:ud(Toe(Rm(s))),resolution:ud(Rm(l)),semitones:ud(Rm(u)),time:ud(Rm(d))}}(n))}var bZe=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],CZe=["deg","grad","rad","turn"],wZe=["s","ms"],kZe=["hz","khz"],TZe=["dpi","dpcm","dppx","x"],MZe=["fr"],SZe=["db"],xZe=["st"];function EZe(n,r,e){return Object.assign(e5("SyntaxError",n),{input:r,offset:e,rawMessage:n,message:n+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var RZe=function(){function n(r){(0,U.Z)(this,n),this.str=r,this.pos=0}return(0,B.Z)(n,[{key:"charCodeAt",value:function(e){return e<this.str.length?this.str.charCodeAt(e):0}},{key:"charCode",value:function(){return this.charCodeAt(this.pos)}},{key:"nextCharCode",value:function(){return this.charCodeAt(this.pos+1)}},{key:"nextNonWsCode",value:function(e){return this.charCodeAt(this.findWsEnd(e))}},{key:"findWsEnd",value:function(e){for(;e<this.str.length;e++){var i=this.str.charCodeAt(e);if(13!==i&&10!==i&&12!==i&&32!==i&&9!==i)break}return e}},{key:"substringToPos",value:function(e){return this.str.substring(this.pos,this.pos=e)}},{key:"eat",value:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}},{key:"peek",value:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}},{key:"error",value:function(e){throw new EZe(e,this.str,this.pos)}}]),n}(),rA=new Uint8Array(128).map(function(n,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Roe={" ":1,"&&":2,"||":3,"|":4};function u5(n){return n.substringToPos(n.findWsEnd(n.pos))}function Fk(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e>=128||0===rA[e])break}return n.pos===r&&n.error("Expect a keyword"),n.substringToPos(r)}function c5(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e<48||e>57)break}return n.pos===r&&n.error("Expect a number"),n.substringToPos(r)}function jZe(n){var r=n.str.indexOf("'",n.pos+1);return-1===r&&(n.pos=n.str.length,n.error("Expect an apostrophe")),n.substringToPos(r+1)}function Loe(n){var r,e=null;return n.eat(123),r=c5(n),44===n.charCode()?(n.pos++,125!==n.charCode()&&(e=c5(n))):e=r,n.eat(125),{min:Number(r),max:e?Number(e):0}}function Uk(n,r){var e=function GZe(n){var r=null,e=!1;switch(n.charCode()){case 42:n.pos++,r={min:0,max:0};break;case 43:n.pos++,r={min:1,max:0};break;case 63:n.pos++,r={min:0,max:1};break;case 35:n.pos++,e=!0,123===n.charCode()?r=Loe(n):63===n.charCode()?(n.pos++,r={min:0,max:0}):r={min:1,max:0};break;case 123:r=Loe(n);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(n);return null!==e?(e.term=r,35===n.charCode()&&43===n.charCodeAt(n.pos-1)?Uk(n,e):e):r}function zz(n){var r=n.peek();return""===r?null:{type:"Token",value:r}}function VZe(n){var r,e=null;return n.eat(60),r=Fk(n),40===n.charCode()&&41===n.nextCharCode()&&(n.pos+=2,r+="()"),91===n.charCodeAt(n.findWsEnd(n.pos))&&(u5(n),e=function WZe(n){var r=null,e=null,i=1;return n.eat(91),45===n.charCode()&&(n.peek(),i=-1),-1==i&&8734===n.charCode()?n.peek():(r=i*Number(c5(n)),0!==rA[n.charCode()]&&(r+=Fk(n))),u5(n),n.eat(44),u5(n),8734===n.charCode()?n.peek():(i=1,45===n.charCode()&&(n.peek(),i=-1),e=i*Number(c5(n)),0!==rA[n.charCode()]&&(e+=Fk(n))),n.eat(93),{type:"Range",min:r,max:e}}(n)),n.eat(62),Uk(n,{type:"Type",name:r,opts:e})}function KZe(n,r){function e(l,u){return{type:"Group",terms:l,combinator:u,disallowEmpty:!1,explicit:!1}}var i;for(r=Object.keys(r).sort(function(l,u){return Roe[l]-Roe[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<n.length;o++){var s=n[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),n.splice(o,1),o--):(-1!==a&&o-a>1&&(n.splice(a,o-a,e(n.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&n.splice(a,o-a,e(n.slice(a,o),i))}return i}function Zoe(n){for(var i,r=[],e={},o=null,a=n.pos;i=JZe(n);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(n.pos=a,n.error("Unexpected combinator")),e[i.value]=!0):null!==o&&"Combinator"!==o.type&&(e[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(i),o=i,a=n.pos);return null!==o&&"Combinator"===o.type&&(n.pos-=a,n.error("Unexpected combinator")),{type:"Group",terms:r,combinator:KZe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function JZe(n){var r=n.charCode();if(r<128&&1===rA[r])return function YZe(n){var r=Fk(n);return 40===n.charCode()?(n.pos++,{type:"Function",name:r}):Uk(n,{type:"Keyword",name:r})}(n);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return Uk(n,function qZe(n){var r;return n.eat(91),r=Zoe(n),n.eat(93),r.explicit=!0,33===n.charCode()&&(n.pos++,r.disallowEmpty=!0),r}(n));case 60:return 39===n.nextCharCode()?function zZe(n){var r;return n.eat(60),n.eat(39),r=Fk(n),n.eat(39),n.eat(62),Uk(n,{type:"Property",name:r})}(n):VZe(n);case 124:return{type:"Combinator",value:n.substringToPos(n.pos+(124===n.nextCharCode()?2:1))};case 38:return n.pos++,n.eat(38),{type:"Combinator",value:"&&"};case 44:return n.pos++,{type:"Comma"};case 39:return Uk(n,{type:"String",value:jZe(n)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:u5(n)};case 64:return(r=n.nextCharCode())<128&&1===rA[r]?(n.pos++,{type:"AtKeyword",name:Fk(n)}):zz(n);case 123:if((r=n.nextCharCode())<48||r>57)return zz(n);break;default:return zz(n)}}function Noe(n){var r=new RZe(n),e=Zoe(r);return r.pos!==n.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var iA=function(){};function Boe(n){return"function"==typeof n?n:iA}var XZe={decorator:function(r){var e=[],i=null;return Vr(Vr({},r),{},{node:function(a){var s=i;i=a,r.node.call(this,a),i=s},emit:function(a,s,l){e.push({type:s,value:a,node:l?null:i})},result:function(){return e}})}};function eNe(n,r){return"string"==typeof n?function $Ze(n){var r=[];return $B(n,function(e,i,o){return r.push({type:e,value:n.slice(i,o),node:null})}),r}(n):r.generate(n,XZe)}var ro={type:"Match"},Eo={type:"Mismatch"},Wz={type:"DisallowEmpty"};function Rl(n,r,e){return r===ro&&e===Eo||n===ro&&r===ro&&e===ro?n:("If"===n.type&&n.else===Eo&&r===ro&&(r=n.then,n=n.match),{type:"If",match:n,then:r,else:e})}function Foe(n){return n.length>2&&40===n.charCodeAt(n.length-2)&&41===n.charCodeAt(n.length-1)}function Uoe(n){return"Keyword"===n.type||"AtKeyword"===n.type||"Function"===n.type||"Type"===n.type&&Foe(n.name)}function Vz(n,r,e){switch(n){case" ":for(var i=ro,o=r.length-1;o>=0;o--){i=Rl(r[o],i,Eo)}return i;case"|":for(var s=Eo,l=null,u=r.length-1;u>=0;u--){var d=r[u];if(Uoe(d)&&(null===l&&u>0&&Uoe(r[u-1])&&(s=Rl({type:"Enum",map:l=Object.create(null)},ro,s)),null!==l)){var h=(Foe(d.name)?d.name.slice(0,-1):d.name).toLowerCase();if(!(h in l)){l[h]=d;continue}}l=null,s=Rl(d,ro,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var g=Eo,C=function(){var Ce,Se=r[Z];Ce=r.length>1?Vz(n,r.filter(function(xe){return xe!==Se}),!1):ro,g=Rl(Se,Ce,g)},Z=r.length-1;Z>=0;Z--)C();return g;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var z=e?ro:Eo,q=function(){var Ce,Se=r[re];Ce=r.length>1?Vz(n,r.filter(function(xe){return xe!==Se}),!0):ro,z=Rl(Se,Ce,z)},re=r.length-1;re>=0;re--)q();return z}}function Yz(n){if("function"==typeof n)return{type:"Generic",fn:n};switch(n.type){case"Group":var r=Vz(n.combinator,n.terms.map(Yz),!1);return n.disallowEmpty&&(r=Rl(r,Wz,Eo)),r;case"Multiplier":return function rNe(n){var r=ro,e=Yz(n.term);if(0===n.max)e=Rl(e,Wz,Eo),(r=Rl(e,null,Eo)).then=Rl(ro,ro,r),n.comma&&(r.then.else=Rl({type:"Comma",syntax:n},r,Eo));else for(var i=n.min||1;i<=n.max;i++)n.comma&&r!==ro&&(r=Rl({type:"Comma",syntax:n},r,Eo)),r=Rl(e,Rl(ro,ro,r),Eo);if(0===n.min)r=Rl(ro,ro,r);else for(var o=0;o<n.min-1;o++)n.comma&&r!==ro&&(r=Rl({type:"Comma",syntax:n},r,Eo)),r=Rl(e,r,Eo);return r}(n);case"Type":case"Property":return{type:n.type,name:n.name,syntax:n};case"Keyword":return{type:n.type,name:n.name.toLowerCase(),syntax:n};case"AtKeyword":return{type:n.type,name:"@"+n.name.toLowerCase(),syntax:n};case"Function":return{type:n.type,name:n.name.toLowerCase()+"(",syntax:n};case"String":return 3===n.value.length?{type:"Token",value:n.value.charAt(1),syntax:n}:{type:n.type,value:n.value.substr(1,n.value.length-2).replace(/\\'/g,"'"),syntax:n};case"Token":return{type:n.type,value:n.value,syntax:n};case"Comma":return{type:n.type,syntax:n};default:throw new Error("Unknown node type:",n.type)}}function Kz(n,r){return"string"==typeof n&&(n=Noe(n)),{type:"MatchGraph",match:Yz(n),syntax:r||null,source:n}}var Hoe=Object.prototype.hasOwnProperty;function zoe(n){for(var r=null,e=null,i=n;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Jz(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;e++){var i=r.charCodeAt(e),o=n.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function Woe(n){return null===n||(18===n.type||2===n.type||21===n.type||19===n.type||23===n.type||function uNe(n){return 9===n.type&&"?"!==n.value}(n))}function Voe(n){return null===n||(22===n.type||20===n.type||24===n.type||9===n.type&&"/"===n.value)}function Yoe(n,r,e){function i(){do{Se++,ae=Se<n.length?n[Se]:null}while(null!==ae&&(13===ae.type||25===ae.type))}function o(Tn){var jn=Se+Tn;return jn<n.length?n[jn]:null}function a(Tn,jn){return{nextState:Tn,matchStack:xe,syntaxStack:g,thenStack:C,tokenIndex:Se,prev:jn}}function s(Tn){C={nextState:Tn,matchStack:xe,syntaxStack:g,prev:C}}function l(Tn){Z=a(Tn,Z)}function u(){xe={type:1,syntax:r.syntax,token:ae,prev:xe},i(),z=null,Se>Ce&&(Ce=Se)}function h(){xe=2===xe.type?xe.prev:{type:3,syntax:g.syntax,token:xe.token,prev:xe},g=g.prev}var g=null,C=null,Z=null,z=null,q=0,re=null,ae=null,Se=-1,Ce=0,xe={type:0,syntax:null,token:null,prev:null};for(i();null===re&&++q<15e3;)switch(r.type){case"Match":if(null===C){if(null!==ae&&(Se!==n.length-1||"\\0"!==ae.value&&"\\9"!==ae.value)){r=Eo;break}re="Match";break}if((r=C.nextState)===Wz){if(C.matchStack===xe){r=Eo;break}r=ro}for(;C.syntaxStack!==g;)h();C=C.prev;break;case"Mismatch":if(null!==z&&!1!==z)(null===Z||Se>Z.tokenIndex)&&(Z=z,z=!1);else if(null===Z){re="Mismatch";break}r=Z.nextState,C=Z.thenStack,g=Z.syntaxStack,xe=Z.matchStack,Se=Z.tokenIndex,ae=Se<n.length?n[Se]:null,Z=Z.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==Eo&&l(r.else),r.then!==ro&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var Ve=r.syntax.terms;if(r.index===Ve.length){if(0===r.mask||r.syntax.all){r=Eo;break}r=ro;break}if(r.mask===(1<<Ve.length)-1){r=ro;break}for(;r.index<Ve.length;r.index++){var at=1<<r.index;if(0==(r.mask&at)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|at}),r=Ve[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==ae){var De=ae.value.toLowerCase();if(-1!==De.indexOf("\\")&&(De=De.replace(/\\[09].*$/,"")),Hoe.call(r.map,De)){r=r.map[De];break}}r=Eo;break;case"Generic":var ot=null!==g?g.opts:null,ht=Se+Math.floor(r.fn(ae,o,ot));if(!isNaN(ht)&&ht>Se){for(;Se<ht;)u();r=ro}else r=Eo;break;case"Type":case"Property":var bt="Type"===r.type?"types":"properties",Xe=Hoe.call(e,bt)?e[bt][r.name]:null;if(!Xe||!Xe.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==z&&null!==ae&&"Type"===r.type)if("custom-ident"===r.name&&1===ae.type||"length"===r.name&&"0"===ae.value){null===z&&(z=a(r,Z)),r=Eo;break}g={syntax:r.syntax,opts:r.syntax.opts||null!==g&&g.opts||null,prev:g},xe={type:2,syntax:r.syntax,token:xe.token,prev:xe},r=Xe.match;break;case"Keyword":var pt=r.name;if(null!==ae){var Nt=ae.value;if(-1!==Nt.indexOf("\\")&&(Nt=Nt.replace(/\\[09].*$/,"")),Jz(Nt,pt)){u(),r=ro;break}}r=Eo;break;case"AtKeyword":case"Function":if(null!==ae&&Jz(ae.value,r.name)){u(),r=ro;break}r=Eo;break;case"Token":if(null!==ae&&ae.value===r.value){u(),r=ro;break}r=Eo;break;case"Comma":null!==ae&&18===ae.type?Woe(xe.token)?r=Eo:(u(),r=Voe(ae)?Eo:ro):r=Woe(xe.token)||Voe(ae)?ro:Eo;break;case"String":for(var Gt="",It=Se;It<n.length&&Gt.length<r.value.length;It++)Gt+=n[It].value;if(Jz(Gt,r.value)){for(;Se<It;)u();r=ro}else r=Eo;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,re){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),re="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",xe=null;break;case"Match":for(;null!==g;)h();break;default:xe=null}return{tokens:n,reason:re,iterations:q,match:xe,longestMatch:Ce}}function Koe(n,r,e){var i=Yoe(n,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=zoe(o).prev;null!==o;){switch(o.type){case 2:a.match.push(a={syntax:o.syntax,match:[]}),s.push(a);break;case 3:s.pop(),a=s[s.length-1];break;default:a.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return i}function qoe(n){function r(o){return null!==o&&("Type"===o.type||"Property"===o.type||"Keyword"===o.type)}var i=null;return null!==this.matched&&function e(o){if(Array.isArray(o.match)){for(var a=0;a<o.match.length;a++)if(e(o.match[a]))return r(o.syntax)&&i.unshift(o.syntax),!0}else if(o.node===n)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function cNe(n,r){return Qz(this,n,function(e){return"Type"===e.type&&e.name===r})}function dNe(n,r){return Qz(this,n,function(e){return"Property"===e.type&&e.name===r})}function pNe(n){return Qz(this,n,function(r){return"Keyword"===r.type})}function Qz(n,r,e){var i=qoe.call(n,r);return null!==i&&i.some(e)}function Joe(n){return"node"in n?n.node:Joe(n.match[0])}function Qoe(n){return"node"in n?n.node:Qoe(n.match[n.match.length-1])}function Xoe(n,r,e,i,o){var s=[];return null!==e.matched&&function a(l){if(null!==l.syntax&&l.syntax.type===i&&l.syntax.name===o){var u=Joe(l),d=Qoe(l);n.syntax.walk(r,function(h,g,C){if(h===u){var Z=new db;do{if(Z.appendData(g.data),g.data===d)break;g=g.next}while(null!==g);s.push({parent:C,nodes:Z})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var oA=Object.prototype.hasOwnProperty;function Xz(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function $oe(n){return Boolean(n)&&Xz(n.offset)&&Xz(n.line)&&Xz(n.column)}function fNe(n,r){return function(i,o){if(!i||i.constructor!==Object)return o(i,"Type of node should be an Object");for(var a in i){var s=!0;if(!1!==oA.call(i,a)){if("type"===a)i.type!==n&&o(i,"Wrong node type `"+i.type+"`, expected `"+n+"`");else if("loc"===a){if(null===i.loc)continue;if(i.loc&&i.loc.constructor===Object)if("string"!=typeof i.loc.source)a+=".source";else if($oe(i.loc.start)){if($oe(i.loc.end))continue;a+=".end"}else a+=".start";s=!1}else if(r.hasOwnProperty(a)){s=!1;for(var l=0;!s&&l<r[a].length;l++){var u=r[a][l];switch(u){case String:s="string"==typeof i[a];break;case Boolean:s="boolean"==typeof i[a];break;case null:s=null===i[a];break;default:"string"==typeof u?s=i[a]&&i[a].type===u:Array.isArray(u)&&(s=i[a]instanceof db)}}}else o(i,"Unknown field `"+a+"` for "+n+" node type");s||o(i,"Bad value for `"+n+"."+a+"`")}}for(var d in r)oA.call(r,d)&&!1===oA.call(i,d)&&o(i,"Field `"+n+"."+d+"` is missed")}}function hNe(n,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+n+'"'};for(var a in e)if(!1!==oA.call(e,a)){for(var s=[],l=i[a]=Array.isArray(e[a])?e[a].slice():[e[a]],u=0;u<l.length;u++){var d=l[u];if(d===String||d===Boolean)s.push(d.name);else if(null===d)s.push("null");else if("string"==typeof d)s.push("<"+d+">");else{if(!Array.isArray(d))throw new Error("Wrong value `"+d+"` in `"+n+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:fNe(n,i)}}var _Ne=Kz(voe.join(" | "));function $z(n,r,e){var i={};for(var o in n)n[o].syntax&&(i[o]=e?n[o].syntax:Az(n[o].syntax,{compact:r}));return i}function gNe(n,r,e){for(var i={},o=0,a=Object.entries(n);o<a.length;o++){var s=(0,Nn.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:Az(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&$z(u.descriptors,r,e)}}return i}function dp(n,r,e){return Vr({matched:n,iterations:e,error:r},H)}function Hk(n,r,e,i){var a,o=eNe(e,n.syntax);return function vNe(n){for(var r=0;r<n.length;r++)if("var("===n[r].value.toLowerCase())return!0;return!1}(o)?dp(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Koe(o,n.cssWideKeywordsSyntax,n)),i&&a.match||(a=Koe(o,r.match,n)).match?dp(a.match,null,a.iterations):dp(null,new JLe(a.reason,r.syntax,e,a),a.iterations))}var eae=function(){function n(r,e,i){if((0,U.Z)(this,n),this.cssWideKeywordsSyntax=_Ne,this.syntax=e,this.generic=!1,this.units=Vr({},A),this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function mNe(n){var r={};if(n.node)for(var e in n.node)if(oA.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=hNe(e,i)}return r}(r),r){if(r.units)for(var o=0,a=Object.keys(A);o<a.length;o++){var s=a[o];Array.isArray(r.units[s])&&(this.units[s]=r.units[s])}if(r.types)for(var l in r.types)this.addType_(l,r.types[l]);if(r.generic){this.generic=!0;for(var u=0,d=Object.entries(yZe(this.units));u<d.length;u++){var h=(0,Nn.Z)(d[u],2),g=h[0],C=h[1];this.addType_(g,C)}}if(r.atrules)for(var Z in r.atrules)this.addAtrule_(Z,r.atrules[Z]);if(r.properties)for(var z in r.properties)this.addProperty_(z,r.properties[z])}}return(0,B.Z)(n,[{key:"checkStructure",value:function(e){function i(s,l){a.push({node:s,message:l})}var o=this.structure,a=[];return this.syntax.walk(e,function(s){o.hasOwnProperty(s.type)?o[s.type].check(s,i):i(s,"Unknown node type `"+s.type+"`")}),!!a.length&&a}},{key:"createDescriptor",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:i,name:o},l={type:i,name:o,parent:a,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?l.match=Kz(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Noe(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:Kz(l.syntax,s)}),l.match}})),l}},{key:"addAtrule_",value:function(e,i){var o=this;!i||(this.atrules[e]={type:"Atrule",name:e,prelude:i.prelude?this.createDescriptor(i.prelude,"AtrulePrelude",e):null,descriptors:i.descriptors?Object.keys(i.descriptors).reduce(function(a,s){return a[s]=o.createDescriptor(i.descriptors[s],"AtruleDescriptor",s,e),a},Object.create(null)):null})}},{key:"addProperty_",value:function(e,i){!i||(this.properties[e]=this.createDescriptor(i,"Property",e))}},{key:"addType_",value:function(e,i){!i||(this.types[e]=this.createDescriptor(i,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new $2("Unknown at-rule","@"+e)}},{key:"checkAtrulePrelude",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e);return!a.prelude&&i?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!a.prelude||i||Hk(this,a.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=Oz(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new $2("Unknown at-rule descriptor",i):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}},{key:"checkPropertyName",value:function(e){if(!this.getProperty(e))return new $2("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);if(o)return dp(null,o);var a=this.getAtrule(e);return a.prelude?Hk(this,a.prelude,i||"",!1):dp(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return dp(null,a);var s=this.getAtrule(e),l=Oz(i);return Hk(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?dp(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if(_oe(e).custom)return dp(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?dp(null,o):Hk(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?Hk(this,o,i,!1):dp(null,new $2("Unknown type",e))}},{key:"match",value:function(e,i){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Hk(this,e,i,!1)):dp(null,new $2("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return Xoe(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return Xoe(this,e.value,this.matchDeclaration(e),i,o)}},{key:"findAllFragments",value:function(e,i,o){var a=this,s=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(u){s.push.apply(s,a.findDeclarationValueFragments(u,i,o))}}),s}},{key:"getAtrule",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=Oz(e),a=o.vendor&&i?this.atrules[o.name]||this.atrules[o.basename]:this.atrules[o.name];return a||null}},{key:"getAtrulePrelude",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getAtrule(e,i);return o&&o.prelude||null}},{key:"getAtruleDescriptor",value:function(e,i){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[i]||null}},{key:"getProperty",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=_oe(e),a=o.vendor&&i?this.properties[o.name]||this.properties[o.basename]:this.properties[o.name];return a||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(l,u,d,h){if(d.has(u))return d.get(u);d.set(u,!1),null!==h.syntax&&function QZe(n,r,e){var o=iA,a=iA;if("function"==typeof r?o=r:r&&(o=Boe(r.enter),a=Boe(r.leave)),o===iA&&a===iA)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function i(s){switch(o.call(e,s),s.type){case"Group":s.terms.forEach(i);break;case"Multiplier":i(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}a.call(e,s)}(n)}(h.syntax,function(g){if("Type"===g.type||"Property"===g.type){var C="Type"===g.type?l.types:l.properties,Z="Type"===g.type?i:o;(!hasOwnProperty.call(C,g.name)||e(l,g.name,Z,C[g.name]))&&d.set(u,!0)}},this)}var i=new Map,o=new Map;for(var a in this.types)e(this,a,i,this.types[a]);for(var s in this.properties)e(this,s,o,this.properties[s]);return i=(0,fn.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,fn.Z)(o.keys()).filter(function(l){return o.get(l)}),i.length||o.length?{types:i,properties:o}:null}},{key:"dump",value:function(e,i){return{generic:this.generic,units:this.units,types:$z(this.types,!i,e),properties:$z(this.properties,!i,e),atrules:gNe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),n}();function eW(n,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof n?n+r:r.replace(/^\s*\|\s*/,""):r||null}function tae(n,r){for(var e=Object.create(null),i=0,o=Object.entries(n);i<o.length;i++){var a=(0,Nn.Z)(o[i],2),s=a[0],l=a[1];if(l){e[s]={};for(var u=0,d=Object.keys(l);u<d.length;u++){var h=d[u];r.includes(h)&&(e[s][h]=l[h])}}}return e}function tW(n,r){for(var e=Vr({},n),i=0,o=Object.entries(r);i<o.length;i++){var a=(0,Nn.Z)(o[i],2),s=a[0],l=a[1];switch(s){case"generic":e[s]=Boolean(l);break;case"units":e[s]=Vr({},n[s]);for(var u=0,d=Object.entries(l);u<d.length;u++){var h=(0,Nn.Z)(d[u],2),g=h[0],C=h[1];e[s][g]=Array.isArray(C)?C:[]}break;case"atrules":e[s]=Vr({},n[s]);for(var Z=0,z=Object.entries(l);Z<z.length;Z++){var q=(0,Nn.Z)(z[Z],2),re=q[0],ae=q[1],Se=e[s][re]||{},Ce=e[s][re]={prelude:Se.prelude||null,descriptors:Vr({},Se.descriptors)};if(ae){Ce.prelude=ae.prelude?eW(Ce.prelude,ae.prelude):Ce.prelude||null;for(var xe=0,Ve=Object.entries(ae.descriptors||{});xe<Ve.length;xe++){var at=(0,Nn.Z)(Ve[xe],2),De=at[0],ot=at[1];Ce.descriptors[De]=ot?eW(Ce.descriptors[De],ot):null}Object.keys(Ce.descriptors).length||(Ce.descriptors=null)}}break;case"types":case"properties":e[s]=Vr({},n[s]);for(var ht=0,bt=Object.entries(l);ht<bt.length;ht++){var Xe=(0,Nn.Z)(bt[ht],2),Pe=Xe[0],pt=Xe[1];e[s][Pe]=eW(e[s][Pe],pt)}break;case"scope":e[s]=Vr({},n[s]);for(var Nt=0,Gt=Object.entries(l);Nt<Gt.length;Nt++){var It=(0,Nn.Z)(Gt[Nt],2),Tn=It[0],jn=It[1];e[s][Tn]=Vr(Vr({},e[s][Tn]),jn)}break;case"parseContext":e[s]=Vr(Vr({},n[s]),l);break;case"atrule":case"pseudo":e[s]=Vr(Vr({},n[s]),tae(l,["parse"]));break;case"node":e[s]=Vr(Vr({},n[s]),tae(l,["name","structure","parse","generate","walkContext"]))}}return e}function nae(n){var r=ALe(n),e=zLe(n),i=ULe(n),o=function HLe(n){return{fromPlainObject:function(e){return n(e,{enter:function(o){o.children&&!(o.children instanceof db)&&(o.children=(new db).fromArray(o.children))}}),e},toPlainObject:function(e){return n(e,{leave:function(o){o.children&&o.children instanceof db&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(d){return new eae(d,l,l.lexer.structure)},tokenize:$B,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(d){var h=tW({},n);return nae("function"==typeof d?d(h,Object.assign):tW(h,d))}};return l.lexer=new eae({generic:!0,units:n.units,types:n.types,atrules:n.atrules,properties:n.properties,node:n.node},l),l}var pb=!0;function f5(n,r){var e=this.tokenStart+n,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)Ws(this.charCodeAt(e))||this.error("Integer is expected",e)}function jk(n){return f5.call(this,0,n)}function Fg(n,r){if(!this.cmpChar(this.tokenStart+n,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+n)}}function nW(){for(var n=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++n);if(10!==e){if(!this.isDelim(43,n)&&!this.isDelim(45,n))return null;r=this.isDelim(43,n)?43:45;do{e=this.lookupType(++n)}while(13===e||25===e);10!==e&&(this.skip(n),jk.call(this,pb))}return n>0&&this.skip(n),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),jk.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var wNe="AnPlusB",kNe={a:[String,null],b:[String,null]};function rae(){var n=this.tokenStart,r=null,e=null;if(10===this.tokenType)jk.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",Fg.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=nW.call(this);break;case 3:Fg.call(this,2,45),this.next(),this.skipSC(),jk.call(this,pb),e="-"+this.consume(10);break;default:Fg.call(this,2,45),f5.call(this,3,pb),this.next(),e=this.substrToCursor(n+2)}else if(1===this.tokenType||this.isDelim(43)&&1===this.lookupType(1)){var i=0;switch(r="1",this.isDelim(43)&&(i=1,this.next()),Fg.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=nW.call(this);break;case 2:Fg.call(this,1,45),this.next(),this.skipSC(),jk.call(this,pb),e="-"+this.consume(10);break;default:Fg.call(this,1,45),f5.call(this,2,pb),this.next(),e=this.substrToCursor(n+i+1)}}else if(12===this.tokenType){for(var o=this.charCodeAt(this.tokenStart),a=43===o||45===o,s=this.tokenStart+a;s<this.tokenEnd&&Ws(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),Fg.call(this,s-this.tokenStart,110),r=this.substring(n,s),s+1===this.tokenEnd?(this.next(),e=nW.call(this)):(Fg.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),jk.call(this,pb),e="-"+this.consume(10)):(f5.call(this,s-this.tokenStart+2,pb),this.next(),e=this.substrToCursor(s+1)))}else this.error();return null!==r&&43===r.charCodeAt(0)&&(r=r.substr(1)),null!==e&&43===e.charCodeAt(0)&&(e=e.substr(1)),{type:"AnPlusB",loc:this.getLocation(n,this.tokenStart),a:r,b:e}}function TNe(n){if(n.a){var r=("+1"===n.a||"1"===n.a?"n":"-1"===n.a&&"-n")||n.a+"n";if(n.b){var e="-"===n.b[0]||"+"===n.b[0]?n.b:"+"+n.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(n.b)}function iae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function MNe(){for(var r,n=1;r=this.lookupType(n);n++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var SNe="Atrule",xNe="atrule",ENe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function oae(){var e,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,o=null,a=null;switch(this.eat(3),i=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),iae):iae.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,i)&&"function"==typeof this.atrule[i].block?this.atrule[i].block.call(this,n):this.Block(MNe.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:o,block:a}}function DNe(n){this.token(3,"@"+n.name),null!==n.prelude&&this.node(n.prelude),n.block?this.node(n.block):this.token(17,";")}var ANe="AtrulePrelude",ONe="atrulePrelude",INe={children:[[]]};function aae(n){var r=null;return null!==n&&(n=n.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].prelude?this.atrule[n].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(r),children:r}}function PNe(n){this.children(n)}function NNe(){this.eof&&this.error("Unexpected end of input");var n=this.tokenStart,r=!1;return this.isDelim(42)?(r=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(1)):r&&this.error("Identifier is expected",this.tokenEnd):r&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function BNe(){var n=this.tokenStart,r=this.charCodeAt(n);return 61!==r&&126!==r&&94!==r&&36!==r&&42!==r&&124!==r&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==r&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(n)}var FNe="AttributeSelector",UNe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function lae(){var r,n=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=NNe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=BNe.call(this),this.skipSC(),i=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(n,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function HNe(n){this.token(9,"["),this.node(n.name),null!==n.matcher&&(this.tokenize(n.matcher),this.node(n.value)),null!==n.flags&&this.token(1,n.flags),this.token(9,"]")}function uae(n){return this.Raw(n,null,!0)}function cae(){return this.parseWithFallback(this.Rule,uae)}function dae(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}function GNe(){if(17===this.tokenType)return dae.call(this,this.tokenIndex);var n=this.parseWithFallback(this.Declaration,dae);return 17===this.tokenType&&this.next(),n}var zNe="Block",WNe="block",VNe={children:[["Atrule","Rule","Declaration"]]};function pae(n){var r=n?GNe:cae,e=this.tokenStart,i=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:i.push(this.parseWithFallback(this.Atrule.bind(this,n),uae));break;default:n&&this.isDelim(38)?i.push(cae.call(this)):i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function YNe(n){var r=this;this.token(23,"{"),this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var KNe="Brackets",qNe={children:[[]]};function fae(n,r){var i,e=this.tokenStart;return this.eat(19),i=n.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function JNe(n){this.token(9,"["),this.children(n),this.token(9,"]")}var QNe="CDC",XNe=[];function hae(){var n=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(n,this.tokenStart)}}function $Ne(){this.token(15,"--\x3e")}var eBe="CDO",tBe=[];function mae(){var n=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(n,this.tokenStart)}}function nBe(){this.token(14,"\x3c!--")}var iBe="ClassSelector",oBe={name:String};function _ae(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function aBe(n){this.token(9,"."),this.token(1,n.name)}var cBe="Combinator",dBe={name:String};function vae(){var r,n=this.tokenStart;switch(this.tokenType){case 13:r=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}r=this.substrToCursor(n)}return{type:"Combinator",loc:this.getLocation(n,this.tokenStart),name:r}}function pBe(n){this.tokenize(n.name)}var mBe="Comment",_Be={value:String};function yae(){var n=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-n+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(n,this.tokenStart),value:this.substring(n+2,r)}}function gBe(n){this.token(25,"/*"+n.value+"*/")}function kBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!0)}function TBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!1)}function MBe(){var n=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(n)&&this.error(),r}var SBe="Declaration",xBe="declaration",EBe={important:[Boolean,String],property:String,value:["Value","Raw"]};function wae(){var l,n=this.tokenStart,r=this.tokenIndex,e=ABe.call(this),i=Iz(e),o=i?this.parseCustomProperty:this.parseValue,a=i?TBe:kBe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(MBe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var d=u-this.tokenIndex;d<=0;d++)if(13===this.lookupType(d)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=OBe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(n,this.tokenStart),important:s,property:e,value:l}}function DBe(n){this.token(1,n.property),this.token(16,":"),this.node(n.value),n.important&&(this.token(9,"!"),this.token(1,!0===n.important?"important":n.important))}function ABe(){var n=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(n)}function OBe(){this.eat(9),this.skipSC();var n=this.consume(1);return"important"===n||n}function iW(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}var PBe="DeclarationList",RBe={children:[["Declaration","Atrule","Rule"]]};function kae(){for(var n=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule.bind(this,!0),iW));break;default:this.isDelim(38)?n.push(this.parseWithFallback(this.Rule,iW)):n.push(this.parseWithFallback(this.Declaration,iW))}return{type:"DeclarationList",loc:this.getLocationFromList(n),children:n}}function LBe(n){var r=this;this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")})}var ZBe="Dimension",NBe={value:String,unit:String};function Tae(){var n=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(n,this.tokenStart),value:r,unit:this.substring(n+r.length,this.tokenStart)}}function BBe(n){this.token(12,n.value+n.unit)}var FBe="Function",UBe="function",HBe={name:String,children:[[]]};function Mae(n,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):n.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function jBe(n){this.token(2,n.name+"("),this.children(n),this.token(22,")")}var GBe="XXX",zBe="Hash",WBe={value:String};function Sae(){var n=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n+1)}}function VBe(n){this.token(4,"#"+n.value)}var YBe="Identifier",KBe={name:String};function xae(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function qBe(n){this.token(1,n.name)}var JBe="IdSelector",QBe={name:String};function Eae(){var n=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n+1)}}function XBe(n){this.token(9,"#"+n.name)}var $Be="MediaFeature",e5e={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Dae(){var r,n=this.tokenStart,e=null;if(this.eat(21),this.skipSC(),r=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:e=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:e=this.Dimension();break;case 1:e=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(n,this.tokenStart),name:r,value:e}}function t5e(n){this.token(21,"("),this.token(1,n.name),null!==n.value&&(this.token(16,":"),this.node(n.value)),this.token(22,")")}var n5e="MediaQuery",r5e={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Aae(){var n=this.createList(),r=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:r=this.Identifier();break;case 21:r=this.MediaFeature();break;default:break e}n.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(n),children:n}}function i5e(n){this.children(n)}var o5e="MediaQueryList",a5e={children:[["MediaQuery"]]};function Oae(){var n=this.createList();for(this.skipSC();!this.eof&&(n.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(n),children:n}}function s5e(n){var r=this;this.children(n,function(){return r.token(18,",")})}var u5e="NestingSelector",c5e={};function Iae(){var n=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(n,this.tokenStart)}}function d5e(){this.token(9,"&")}var p5e="Nth",f5e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Pae(){this.skipSC();var i,n=this.tokenStart,r=n,e=null;return i=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),e=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(n,r),nth:i,selector:e}}function h5e(n){this.node(n.nth),null!==n.selector&&(this.token(1,"of"),this.node(n.selector))}var m5e="Number",_5e={value:String};function Rae(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function g5e(n){this.token(10,n.value)}var v5e="Operator",y5e={value:String};function Lae(){var n=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function b5e(n){this.tokenize(n.value)}var C5e="Parentheses",w5e={children:[[]]};function Zae(n,r){var i,e=this.tokenStart;return this.eat(21),i=n.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function k5e(n){this.token(21,"("),this.children(n),this.token(22,")")}var T5e="Percentage",M5e={value:String};function Nae(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function S5e(n){this.token(11,n.value+"%")}var x5e="PseudoClassSelector",E5e="function",D5e={name:String,children:[["Raw"],null]};function Bae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function A5e(n){this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}var O5e="PseudoElementSelector",I5e="function",P5e={name:String,children:[["Raw"],null]};function Fae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function R5e(n){this.token(16,":"),this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}function Uae(){this.skipSC();for(var n=this.consume(10),r=0;r<n.length;r++){var e=n.charCodeAt(r);!Ws(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-n.length+r)}return 0===Number(n)&&this.error("Zero number is not allowed",this.tokenStart-n.length),n}var N5e="Ratio",B5e={left:String,right:String};function Hae(){var e,n=this.tokenStart,r=Uae.call(this);return this.skipSC(),this.eatDelim(47),e=Uae.call(this),{type:"Ratio",loc:this.getLocation(n,this.tokenStart),left:r,right:e}}function F5e(n){this.token(10,n.left),this.token(9,"/"),this.token(10,n.right)}function U5e(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var H5e="Raw",j5e={value:String};function jae(n,r,e){var o,i=this.getTokenStart(n);return this.skipUntilBalanced(n,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?U5e.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function G5e(n){this.tokenize(n.value)}function Gae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracket,!0)}function z5e(){var n=this.SelectorList();return"Raw"!==n.type&&!1===this.eof&&23!==this.tokenType&&this.error(),n}var W5e="Rule",V5e="rule",Y5e={prelude:["SelectorList","Raw"],block:["Block"]};function zae(){var e,i,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(z5e,Gae):Gae.call(this,n),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function K5e(n){this.node(n.prelude),this.node(n.block)}var q5e="Selector",J5e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Wae(){var n=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(n)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(n),children:n}}function Q5e(n){this.children(n)}var X5e="SelectorList",$5e="selector",eFe={children:[["Selector","Raw"]]};function Vae(){for(var n=this.createList();!this.eof&&(n.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(n),children:n}}function tFe(n){var r=this;this.children(n,function(){return r.token(18,",")})}function qae(n){for(var r=n.length,e=n.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&n.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=n.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=n.substr(s+1));break}if(Zf(92,l=n.charCodeAt(++s))){var u=s-1,d=Lk(n,u);s=d-1,a+=qie(n.substring(u+1,d))}else 13===l&&10===n.charCodeAt(s+1)&&s++}else a+=n[s]}return a}var rFe="String",iFe={value:String};function Jae(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:qae(this.consume(5))}}function oFe(n){this.token(5,function nFe(n,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<n.length;s++){var l=n.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+n.charAt(s),a=!1):(a&&(Lg(l)||cb(l))&&(o+=" "),o+=n.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(n.value))}function Qae(n){return this.Raw(n,null,!1)}var sFe="StyleSheet",lFe="stylesheet",uFe={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Xae(){for(var e,n=this.tokenStart,r=this.createList();!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,Qae);break;default:e=this.parseWithFallback(this.Rule,Qae)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(n,this.tokenStart),children:r}}function cFe(n){this.children(n)}function aW(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var pFe="TypeSelector",fFe={name:String};function ese(){var n=this.tokenStart;return this.isDelim(124)?(this.next(),aW.call(this)):(aW.call(this),this.isDelim(124)&&(this.next(),aW.call(this))),{type:"TypeSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function hFe(n){this.tokenize(n.name)}function aA(n,r){for(var e=0,i=this.tokenStart+n;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return aA.call(this,n+e+1,!1),-1;Lg(o)||this.error(r&&0!==e?"Hyphen minus"+(e<6?" or hex digit":"")+" is expected":e<6?"Hex digit is expected":"Unexpected input",i),++e>6&&this.error("Too many hex digits",i)}return this.next(),e}function m5(n){for(var r=0;this.isDelim(63);)++r>n&&this.error("Too many question marks"),this.next()}function mFe(n){this.charCodeAt(this.tokenStart)!==n&&this.error((43===n?"Plus sign":"Hyphen minus")+" is expected")}function _Fe(){var n=0;switch(this.tokenType){case 10:if(n=aA.call(this,1,!0),this.isDelim(63)){m5.call(this,6-n);break}if(12===this.tokenType||10===this.tokenType){mFe.call(this,45),aA.call(this,1,!1);break}break;case 12:(n=aA.call(this,1,!0))>0&&m5.call(this,6-n);break;default:if(this.eatDelim(43),1===this.tokenType){(n=aA.call(this,0,!0))>0&&m5.call(this,6-n);break}if(this.isDelim(63)){this.next(),m5.call(this,5);break}this.error("Hex digit or question mark is expected")}}var gFe="UnicodeRange",vFe={value:String};function rse(){var n=this.tokenStart;return this.eatIdent("u"),_Fe.call(this),{type:"UnicodeRange",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function yFe(n){this.tokenize(n.value)}var SFe="Url",xFe={value:String};function ose(){var r,n=this.tokenStart;switch(this.tokenType){case 7:r=function TFe(n){for(var r=n.length,e=4,i=41===n.charCodeAt(r-1)?r-2:r-1,o="";e<i&&cb(n.charCodeAt(e));)e++;for(;e<i&&cb(n.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=n.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=n.substr(a+1));break}if(Zf(92,s=n.charCodeAt(++a))){var l=a-1,u=Lk(n,l);a=u-1,o+=qie(n.substring(l+1,u))}else 13===s&&10===n.charCodeAt(a+1)&&a++}else o+=n[a]}return o}(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),r=qae(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(n,this.tokenStart),value:r}}function EFe(n){this.token(7,function MFe(n){for(var r="",e=!1,i=0;i<n.length;i++){var o=n.charCodeAt(i);0!==o?o<=31||127===o?(r+="\\"+o.toString(16),e=!0):32===o||92===o||34===o||39===o||40===o||41===o?(r+="\\"+n.charAt(i),e=!1):(e&&Lg(o)&&(r+=" "),r+=n.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(n.value))}var DFe="Value",AFe={children:[[]]};function ase(){var n=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(n,this.tokenStart),children:r}}function OFe(n){this.children(n)}var IFe=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),PFe="WhiteSpace",RFe={value:String};function sse(){return this.eat(13),IFe}function LFe(n){this.token(13,n.value)}var ZFe=Vr(Vr({generic:!0},{generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221e]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221e]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221e]> [/ <number [0,\u221e]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221e]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}}}),{},{node:Ct});function use(n){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,n.recognizer);case 19:return this.Brackets(this.readSequence,n.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,n.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:var r=this.charCodeAt(this.tokenStart);if(47===r||42===r||43===r||45===r)return this.Operator();35===r&&this.error("Hex or identifier is expected",this.tokenStart+1)}}var jFe={getNode:use};var $Fe={onWhiteSpace:function QFe(n,r){null!==r.last&&"Combinator"!==r.last.type&&null!==n&&"Combinator"!==n.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function XFe(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return 16===this.lookupType(1)?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}};function dse(n){return null!==n&&"Operator"===n.type&&("-"===n.value[n.value.length-1]||"+"===n.value[n.value.length-1])}var n4e={getNode:use,onWhiteSpace:function(r,e){dse(r)&&(r.value=" "+r.value),dse(e.last)&&(e.last.value+=" ")},expression:function e4e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function t4e(){var n=this.createList();if(this.skipSC(),n.push(this.Identifier()),this.skipSC(),18===this.tokenType){n.push(this.Operator());var r=this.tokenIndex,e=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===e.type&&e.children.isEmpty)for(var i=r-this.tokenIndex;i<=0;i++)if(13===this.lookupType(i)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}n.push(e)}return n}},i4e={parse:{prelude:function(){var r=this.createList();switch(this.skipSC(),this.tokenType){case 5:r.push(this.String());break;case 7:case 2:r.push(this.Url());break;default:this.error("String or url() is expected")}return(1===this.lookupNonWSType(0)||21===this.lookupNonWSType(0))&&r.push(this.MediaQueryList()),r},block:null}};function l4e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function u4e(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):pse.call(this)}function pse(){var r,n=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(l4e,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(u4e,this.scope.AtrulePrelude);break;default:break e}n.push(r)}return n}var c4e={parse:{prelude:function(){var r=pse.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},d4e={"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:i4e,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},nest:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:c4e},fb={parse:function(){return this.createSingleNodeList(this.SelectorList())}},uW={parse:function(){return this.createSingleNodeList(this.Selector())}},fse={parse:function(){return this.createSingleNodeList(this.Identifier())}},_5={parse:function(){return this.createSingleNodeList(this.Nth())}},f4e={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(r){return this.AtrulePrelude(r.atrule?String(r.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:We,atrule:d4e,pseudo:{dir:fse,has:fb,lang:fse,matches:fb,is:fb,"-moz-any":fb,"-webkit-any":fb,where:fb,not:fb,"nth-child":_5,"nth-last-child":_5,"nth-last-of-type":_5,"nth-of-type":_5,slotted:uW,host:uW,"host-context":uW},node:ut},h4e={node:Ct},cd=function(n){return nae(tW({},n))}(Vr(Vr(Vr({},ZFe),f4e),h4e));cd.tokenize;var cW=cd.parse,_se=cd.generate,Mc=(cd.lexer,cd.createLexer,cd.walk,cd.find,cd.findLast,cd.findAll,cd.toPlainObject,cd.fromPlainObject,cd.fork,function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){var i=cW(e,{context:"declarationList"});return i.children.forEach(function(o){"font-size"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){if("Number"===a.type){var s=a.value.toString();s.indexOf("pt")>=0||s.indexOf("px")>=0||(a.value="".concat(s,"pt"))}})}),_se(i)}}]),n}());Mc.\u0275fac=function(r){return new(r||Mc)},Mc.\u0275prov=t.Yz7({token:Mc,factory:Mc.\u0275fac});var is=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){return e.font_family===n.DEFAULT_FONT&&e.font_size===n.DEFAULT_SIZE&&(e.font_family=n.REPLACE_BY_FONT,e.font_size=n.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=cW(e,{context:"declarationList"}),o=null,a=null,s=!0;if(i.children.forEach(function(h){"font-family"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Identifier"===g.type&&(o=g),"String"===g.type&&(o=g,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Dimension"===g.type&&(a=g)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var d=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=d.font_family:o.value=d.font_family,a.value=d.font_size}return _se(i)}}]),n}();is.DEFAULT_FONT="TypeWriter",is.DEFAULT_SIZE=10,is.REPLACE_BY_FONT="Noto Sans",is.REPLACE_BY_SIZE=11,is.\u0275fac=function(r){return new(r||is)},is.\u0275prov=t.Yz7({token:is,factory:is.\u0275fac});var Ug=function(){function n(r,e,i){(0,U.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,B.Z)(n,[{key:"convert",value:function(e,i){var o=new Ik;o.rotation=e.rotation,o.style=e.style,o.text=e.text,o.x=e.x,o.y=e.y,o.originalX=e.x,o.originalY=e.y,void 0!==i&&(o.id=i.node_id,o.nodeId=i.node_id);var a=this.cssFixer.fix(o.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.text,s);return null!==o.x&&(o.x+=3),null!==o.y&&(o.y+=l.height),o}}]),n}();Ug.\u0275fac=function(r){return new(r||Ug)(t.LFG(Pf),t.LFG(Mc),t.LFG(is))},Ug.\u0275prov=t.Yz7({token:Ug,factory:Ug.\u0275fac});var m4e=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Hg=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new m4e;return i.adapterNumber=e.adapter_number,i.linkType=e.link_type,i.name=e.name,i.portNumber=e.port_number,i.shortName=e.short_name,i}}]),n}();Hg.\u0275fac=function(r){return new(r||Hg)},Hg.\u0275prov=t.Yz7({token:Hg,factory:Hg.\u0275fac});var jg=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new ub;if(o.id=e.node_id,o.commandLine=e.command_line,o.computeId=e.compute_id,o.console=e.console,o.consoleHost=e.console_host,o.consoleType=e.console_type,o.firstPortName=e.first_port_name,o.height=e.height,o.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,o.locked=e.locked,o.name=e.name,o.nodeDirectory=e.node_directory,o.nodeType=e.node_type,o.portNameFormat=e.port_name_format,o.portSegmentSize=e.port_segment_size,o.ports=e.ports?e.ports.map(function(u){return i.portToMapPort.convert(u)}):[],o.properties=e.properties,o.projectId=e.project_id,o.status=e.status,o.symbol=e.symbol,o.symbolUrl=e.symbol_url,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,void 0!==o.label){var a=this.cssFixer.fix(o.label.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.label.text,s);(null===e.label.x||null===e.label.y)&&(o.label.x=e.width/2-l.width/2+3,o.label.y=-8)}return o}}]),n}();jg.\u0275fac=function(r){return new(r||jg)(t.LFG(Ug),t.LFG(Hg),t.LFG(Pf),t.LFG(Mc),t.LFG(is))},jg.\u0275prov=t.Yz7({token:jg,factory:jg.\u0275fac});var gse=(0,B.Z)(function n(){(0,U.Z)(this,n),this.isSelected=!1,this.isMultiplied=!1}),sA=(0,B.Z)(function n(){(0,U.Z)(this,n)}),hb=function(){function n(r){(0,U.Z)(this,n),this.labelToMapLabel=r}return(0,B.Z)(n,[{key:"convert",value:function(e,i){var o=new sA;return o.nodeId=e.node_id,o.adapterNumber=e.adapter_number,o.portNumber=e.port_number,o.label=this.labelToMapLabel.convert(e.label),void 0!==i&&(o.linkId=i.link_id,o.id="".concat(o.nodeId,"-").concat(o.linkId)),o}}]),n}();hb.\u0275fac=function(r){return new(r||hb)(t.LFG(Ug))},hb.\u0275prov=t.Yz7({token:hb,factory:hb.\u0275fac});var Gg=function(){function n(r){(0,U.Z)(this,n),this.linkNodeToMapLinkNode=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new gse;return o.id=e.link_id,o.captureFileName=e.capture_file_name,o.captureFilePath=e.capture_file_path,o.capturing=e.capturing,o.filters=e.filters,o.link_style=e.link_style,o.linkType=e.link_type,o.nodes=e.nodes.map(function(a){return i.linkNodeToMapLinkNode.convert(a,{link_id:e.link_id})}),o.projectId=e.project_id,o.suspend=e.suspend,o}}]),n}();Gg.\u0275fac=function(r){return new(r||Gg)(t.LFG(hb))},Gg.\u0275prov=t.Yz7({token:Gg,factory:Gg.\u0275fac});var Lm=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Zm=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new Lm;return i.id=e.drawing_id,i.projectId=e.project_id,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i}}]),n}();Zm.\u0275fac=function(r){return new(r||Zm)},Zm.\u0275prov=t.Yz7({token:Zm,factory:Zm.\u0275fac});var _4e=(0,B.Z)(function n(){(0,U.Z)(this,n)}),mb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new _4e;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();mb.\u0275fac=function(r){return new(r||mb)},mb.\u0275prov=t.Yz7({token:mb,factory:mb.\u0275fac});var g4e=(0,B.Z)(function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];(0,U.Z)(this,n),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),Nm=function(){function n(){(0,U.Z)(this,n),this.layers={}}return(0,B.Z)(n,[{key:"getLayersList",value:function(){var e=this;return Object.keys(this.layers).sort(function(i,o){return Number(i)-Number(o)}).map(function(i){return e.layers[i]})}},{key:"setNodes",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).nodes.push(o)})}},{key:"setDrawings",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).drawings.push(o)})}},{key:"setLinks",value:function(e){var i=this;console.log("from set links 2"),e.filter(function(o){return o.source&&o.target}).forEach(function(o){var a=Math.min(o.source.z,o.target.z).toString();i.getLayerForKey(a).links.push(o)})}},{key:"clear",value:function(){this.layers={}}},{key:"getLayerForKey",value:function(e){return e in this.layers||(this.layers[e]=new g4e,this.layers[e].index=Number(e)),this.layers[e]}}]),n}();Nm.\u0275fac=function(r){return new(r||Nm)},Nm.\u0275prov=t.Yz7({token:Nm,factory:Nm.\u0275fac});var Ff=function(){function n(){(0,U.Z)(this,n),this.LINK_WIDTH=2}return(0,B.Z)(n,[{key:"linkTranslation",value:function(e,i,o){var l,u,a=o.x-i.x,s=o.y-i.y;if(0===s)l=0,u=e;else{var d=Math.atan(a/s);l=-e*Math.cos(d),u=e*Math.sin(d)}return{dx:l,dy:u}}},{key:"assignDataToLinks",value:function(e){var i=this,o={};e.forEach(function(a,s){var l=a.source.id,u=a.target.id,d=l<u?l+","+u:u+","+l,h=1;d in o?h=o[d].push(s):o[d]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),n}();Ff.\u0275fac=function(r){return new(r||Ff)},Ff.\u0275prov=t.Yz7({token:Ff,factory:Ff.\u0275fac});var Uf=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.mapNodesDataSource=r,this.mapLinksDataSource=e,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=l,this.symbolToMapSymbol=u,this.layersManager=d,this.multiLinkCalculator=h}return(0,B.Z)(n,[{key:"setNodes",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.nodeToMapNode.convert(a)});this.mapNodesDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setLinks",value:function(e){var i=this;if(e){console.log("from set links");var o=e.map(function(a){return i.linkToMapLink.convert(a)});this.mapLinksDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setDrawings",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.drawingToMapDrawing.convert(a)});this.mapDrawingsDataSource.set(o),this.onDataUpdate()}}},{key:"setSymbols",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.symbolToMapSymbol.convert(a)});this.mapSymbolsDataSource.set(o)}}},{key:"getNodes",value:function(){return this.mapNodesDataSource.getItems()}},{key:"getLinks",value:function(){return this.mapLinksDataSource.getItems()}},{key:"getDrawings",value:function(){return this.mapDrawingsDataSource.getItems()}},{key:"getSymbols",value:function(){return this.mapSymbolsDataSource.getItems()}},{key:"onDataUpdate",value:function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),console.log(this.getLinks()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())}},{key:"assignDataToLinks",value:function(){var e={};this.getNodes().forEach(function(i){e[i.id]=i}),this.getLinks().forEach(function(i){var o=i.nodes[0].nodeId,a=i.nodes[1].nodeId;o in e&&(i.source=e[o]),a in e&&(i.target=e[a]),i.source&&i.target&&(i.x=i.source.x+.5*(i.target.x-i.source.x),i.y=i.source.y+.5*(i.target.y-i.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())}}]),n}();Uf.\u0275fac=function(r){return new(r||Uf)(t.LFG(Am),t.LFG(Om),t.LFG(Im),t.LFG(Pm),t.LFG(jg),t.LFG(Gg),t.LFG(Zm),t.LFG(mb),t.LFG(Nm),t.LFG(Ff))},Uf.\u0275prov=t.Yz7({token:Uf,factory:Uf.\u0275fac});var g5=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.x=r,this.y=e}),vse=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.width=r,this.height=e}),v4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.x=r,this.y=e,this.k=i}),Vs=function(){function n(){(0,U.Z)(this,n),this.centerZeroZeroPoint=!0,this.size=new vse(0,0),this.transformation=new v4e(0,0,1)}return(0,B.Z)(n,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new g5(this.size.width/2,this.size.height/2):new g5(0,0)}}]),n}();Vs.\u0275fac=function(r){return new(r||Vs)},Vs.\u0275prov=t.Yz7({token:Vs,factory:Vs.\u0275fac});var Hf=function(){function n(){(0,U.Z)(this,n),this.changesDetected=new t.vpe,this.hasBeenDrawn=!1}return(0,B.Z)(n,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),n}();Hf.\u0275fac=function(r){return new(r||Hf)},Hf.\u0275prov=t.Yz7({token:Hf,factory:Hf.\u0275fac});var zg=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getOptimalSize",value:function(e,i){var o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;return e>o&&(o=e),i>a&&(a=i),new vse(o,a)}}]),n}();zg.\u0275fac=function(r){return new(r||zg)},zg.\u0275prov=t.Yz7({token:zg,factory:zg.\u0275fac});var pp=(0,B.Z)(function n(){(0,U.Z)(this,n),this.isReadOnly=!1});pp.\u0275fac=function(r){return new(r||pp)},pp.\u0275prov=t.Yz7({token:pp,factory:pp.\u0275fac});var dW=(0,B.Z)(function n(){(0,U.Z)(this,n)}),y4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(dW),b4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(dW),C4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(dW),v5=function(){function n(){(0,U.Z)(this,n),this.start=new t.vpe,this.drag=new t.vpe,this.end=new t.vpe}return(0,B.Z)(n,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return pg().on("start",function(s){o=Zn.sourceEvent.clientX,a=Zn.sourceEvent.clientY,(i=new y4e(s)).dx=Zn.dx,i.dy=Zn.dy,i.x=Zn.x,i.y=Zn.y,e.start.emit(i)}).on("drag",function(s){var l=new b4e(s);l.dx=Zn.sourceEvent.clientX-o,l.dy=Zn.sourceEvent.clientY-a,o=Zn.sourceEvent.clientX,a=Zn.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new C4e(s);l.dx=Zn.x-i.x,l.dy=Zn.y-i.y,e.end.emit(l)})}}]),n}(),w4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.datum=r,this.dx=e,this.dy=i}),Gk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(w4e),k4e=(0,B.Z)(function n(r,e,i,o,a){(0,U.Z)(this,n),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),T4e=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.x=r,this.y=e}),M4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.datum=r,this.x=e,this.y=i}),S4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.savedText=r,this.x=e,this.y=i}),x4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.textDrawingId=r,this.editedText=e,this.textElement=i}),E4e=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.event=r,this.drawing=e}),zk=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.event=r,this.link=e}),D4e=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.event=r,this.interfaceLabel=e}),A4e=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.event=r,this.label=e}),Ll=function(){function n(){(0,U.Z)(this,n),this.selection={},this.selected=new t.vpe,this.unselected=new t.vpe}return(0,B.Z)(n,[{key:"setSelected",value:function(e){var i=this,o=this.convertToKeyDict(e),a=Object.keys(o).filter(function(l){return!i.isSelectedByKey(l)}).map(function(l){return o[l]}),s=Object.keys(this.selection).filter(function(l){return!(l in o)}).map(function(l){return i.selection[l]});this.selection=o,a.length>0&&this.selected.emit(a),s.length>0&&this.unselected.emit(s)}},{key:"getSelected",value:function(){var e=this;return Object.keys(this.selection).map(function(i){return e.selection[i]})}},{key:"isSelected",value:function(e){var i=this.getKey(e);return this.isSelectedByKey(i)}},{key:"isSelectedByKey",value:function(e){return e in this.selection}},{key:"getKey",value:function(e){var i=e.constructor.name;return"".concat(i,"-").concat(e.id)}},{key:"convertToKeyDict",value:function(e){var i=this,o={};return e.forEach(function(a){o[i.getKey(a)]=a}),o}}]),n}();Ll.\u0275fac=function(r){return new(r||Ll)},Ll.\u0275prov=t.Yz7({token:Ll,factory:Ll.\u0275fac});var fp=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new v5,this.enabled=!0}return(0,B.Z)(n,[{key:"setEnabled",value:function(e){this.enabled=e}},{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.link_node_position").data(function(g){return[[g.source,g.nodes[0]],[g.target,g.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(g){return"translate(".concat(g[0].x,", ").concat(g[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(g){return i.enabled?[g[1]]:[]}),d=u.enter().append("g").classed("interface_label_container",!0);d.append("rect").attr("class","interface_label_selection"),d.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(g){return"".concat(g.id)});var h=u.merge(d).on("contextmenu",function(g,C){event.preventDefault(),o.onContextMenu.emit(new D4e(event,g))});h.select("text.interface_label").text(function(g){return g.label.text}).attr("style",function(g){var C=i.cssFixer.fix(g.label.style);return C=i.fontFixer.fixStyles(C)}).attr("x",function(g){return g.label.x}).attr("y",function(g){return g.label.y}).attr("transform",function(g){return"rotate(".concat(g.label.rotation,", ").concat(g.label.x,", ").concat(g.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(g){return i.selectionManager.isSelected(g)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(g){var C=vi(this),z=h.select('text[interface_label_id="'.concat(g.id,'"]')).node().getBBox();C.attr("width",z.width+4),C.attr("height",z.height+4),C.attr("x",z.x-2),C.attr("y",z.y-2),C.attr("transform","rotate(".concat(g.label.rotation,", ").concat(z.x-2,", ").concat(z.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),n}();fp.SURROUNDING_TEXT_BORDER=5,fp.\u0275fac=function(r){return new(r||fp)(t.LFG(Mc),t.LFG(is),t.LFG(Ll),t.LFG(pp))},fp.\u0275prov=t.Yz7({token:fp,factory:fp.\u0275fac});var yse=(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this.x=r,this.y=e,this.width=i,this.height=o}),Wg=(0,B.Z)(function n(){(0,U.Z)(this,n),this.selected=new In.xQ});Wg.\u0275fac=function(r){return new(r||Wg)},Wg.\u0275prov=t.Yz7({token:Wg,factory:Wg.\u0275fac});var jf=function(){function n(r,e){(0,U.Z)(this,n),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new In.xQ,this.contextMenuOpened=new t.vpe,this.enabled=!1}return(0,B.Z)(n,[{key:"disableContextMenu",value:function(){}},{key:"setEnabled",value:function(e){this.enabled=e,this.contextMenuOpened.emit(!0)}},{key:"activate",value:function(e){var i=this;e.on("mousedown",function(){if(2==Zn.button)return e.on("contextmenu",function(){Zn.preventDefault()}),void i.contextMenuOpened.emit(Zn);var o=vi(window),a=this.parentElement,s=i.transformation(Kd(a));i.startSelection(s),e.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Kd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Kd(a));i.endSelection(s,l),o.on("mousemove.selection",null).on("mouseup.selection",null)})})}},{key:"deactivate",value:function(e){e.on("mousedown",null)}},{key:"draw",value:function(e,i){var o=e.select("g.canvas");if(!o.select("g.selection-line-tool").node()){var a=o.append("g");a.attr("class","selection-line-tool"),this.path=a.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var s=o.select("g.selection-line-tool"),l=s.attr("status");"activated"!==l&&this.enabled&&(this.activate(e),s.attr("activated")),"deactivated"!==l&&!this.enabled&&(this.deactivate(e),s.attr("deactivated"))}},{key:"startSelection",value:function(e){this.path.attr("d",this.rect(e[0],e[1],0,0)).attr("visibility","visible")}},{key:"moveSelection",value:function(e,i){var o=e[0]/this.context.transformation.k,a=e[1]/this.context.transformation.k;this.path.attr("d",this.rect(o,a,i[0]/this.context.transformation.k-o,i[1]/this.context.transformation.k-a)),this.selectedEvent(e,i)}},{key:"endSelection",value:function(e,i){this.path.attr("visibility","hidden"),this.selectedEvent(e,i)}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.selectionEventSource.selected.next(new yse(o,a,s,l))}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"transformation",value:function(e){var i=this.context.getZeroZeroTransformationPoint();return[e[0]-i.x-this.context.transformation.x,e[1]-i.y-this.context.transformation.y]}}]),n}();jf.SELECTABLE_CLASS=".selectable",jf.\u0275fac=function(r){return new(r||jf)(t.LFG(Vs),t.LFG(Wg))},jf.\u0275prov=t.Yz7({token:jf,factory:jf.\u0275fac});var Vg=function(){function n(r){(0,U.Z)(this,n),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Fne().scaleExtent([.5,8])}return(0,B.Z)(n,[{key:"setEnabled",value:function(e){this.enabled!=e&&(e?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=e}},{key:"draw",value:function(e,i){this.needsActivate&&(this.activate(e),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(e),this.needsDeactivate=!1)}},{key:"activate",value:function(e){var i=this;this.zoom.filter(function(){return"mousedown"===Zn.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Zn;s.attr("transform",function(){i.context.transformation.x=l.transform.x,i.context.transformation.y=l.transform.y,i.context.transformation.k=l.transform.k;var u=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,d=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(d,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),n}();Vg.\u0275fac=function(r){return new(r||Vg)(t.LFG(Vs))},Vg.\u0275prov=t.Yz7({token:Vg,factory:Vg.\u0275fac});var O4e=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.event=r,this.node=e}),bse=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(O4e),Gf=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new v5}return(0,B.Z)(n,[{key:"redrawLabel",value:function(e,i){this.drawLabel(this.selectLabel(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.label_container").data(function(l){return[l.label]}),a=o.enter().append("g").attr("class","label_container").attr("label_id",function(l){return l.id}),s=o.merge(a).on("contextmenu",function(l,u){event.preventDefault(),i.onContextMenu.emit(new A4e(event,l))});this.drawLabel(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(o)}},{key:"drawLabel",value:function(e){var i=this,o=e.selectAll("g.label_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","label_body");a.append("text").attr("class","label"),a.append("rect").attr("class","label_selection");var s=o.merge(a);s.select("text.label").attr("label_id",function(l){return l.id}).attr("style",function(l){var u=i.cssFixer.fix(l.style);return u=i.fontFixer.fixStyles(u)}).text(function(l){return l.text}).attr("x",function(l){return l.x}).attr("y",function(l){return l.y}).attr("transform",function(l){return"rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")")}),s.select("rect.label_selection").attr("visibility",function(l){return i.selectionManager.isSelected(l)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(l){var u=vi(this),h=s.select('text[label_id="'.concat(l.id,'"]')).node().getBBox();u.attr("width",h.width+4),u.attr("height",h.height+4),u.attr("x",h.x-2),u.attr("y",h.y-2),u.attr("transform","rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")"))})}},{key:"selectLabel",value:function(e,i){return e.selectAll('g.label_container[label_id="'.concat(i.id,'"]'))}}]),n}();Gf.NODE_LABEL_MARGIN=3,Gf.\u0275fac=function(r){return new(r||Gf)(t.LFG(Mc),t.LFG(is),t.LFG(Ll),t.LFG(pp))},Gf.\u0275prov=t.Yz7({token:Gf,factory:Gf.\u0275fac});var dd=(0,B.Z)(function n(){(0,U.Z)(this,n),this.dragged=new t.vpe,this.labelDragged=new t.vpe,this.clicked=new t.vpe});dd.\u0275fac=function(r){return new(r||dd)},dd.\u0275prov=t.Yz7({token:dd,factory:dd.\u0275fac});var dl=function(){function n(){(0,U.Z)(this,n),this.symbolScalingSubject=new In.xQ,this.isScrollDisabled=new In.xQ,this.isMapLocked=new In.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new In.xQ,this.mapRenderedEmitter=new t.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget"));localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme="true"===localStorage.getItem("openReadme"):localStorage.setItem("openReadme","false"),localStorage.getItem("showInterfaceLabels")?this.showInterfaceLabels="true"===localStorage.getItem("showInterfaceLabels"):localStorage.setItem("showInterfaceLabels","true")}return(0,B.Z)(n,[{key:"getSymbolScaling",value:function(){return"true"===localStorage.getItem("symbolScaling")}},{key:"setSymbolScaling",value:function(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)}},{key:"changeMapLockValue",value:function(e){this.isMapLocked.next(e)}},{key:"setConsoleContextMenuAction",value:function(e){localStorage.setItem("consoleContextMenu",e)}},{key:"getConsoleContextMenuAction",value:function(){return localStorage.getItem("consoleContextMenu")}},{key:"toggleTopologySummary",value:function(e){this.isTopologySummaryVisible=e}},{key:"toggleLogConsole",value:function(e){this.isLogConsoleVisible=e}},{key:"toggleLayers",value:function(e){this.isLayerNumberVisible=e}},{key:"toggleShowInterfaceLabels",value:function(e){this.showInterfaceLabels=e,localStorage.removeItem("showInterfaceLabels"),e?localStorage.setItem("showInterfaceLabels","true"):localStorage.setItem("showInterfaceLabels","false")}},{key:"toggleIntegrateInterfaceLabels",value:function(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")}},{key:"toggleOpenReadme",value:function(e){this.openReadme=e,localStorage.removeItem("openReadme"),e?localStorage.setItem("openReadme","true"):localStorage.setItem("openReadme","false")}},{key:"toggleOpenConsolesInWidget",value:function(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")}}]),n}();dl.\u0275fac=function(r){return new(r||dl)},dl.\u0275prov=t.Yz7({token:dl,factory:dl.\u0275fac,providedIn:"root"});var Yg=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new t.vpe,this.onContextConsoleMenu=new t.vpe,this.onNodeClicked=new t.vpe}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.node_body").data(function(u){return[u]}),s=a.enter().append("g").attr("class","node_body");s.append("image");var l=a.merge(s).classed("selected",function(u){return i.selectionManager.isSelected(u)}).on("click",function(u){i.nodesEventSource.clicked.emit(new M4e(u,Zn.pageX,Zn.pageY))});l.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),l.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),l.select("image").on("contextmenu",function(u,d){Zn.preventDefault(),o.onContextMenu.emit(new bse(Zn,u))}).on("dblclick",function(u,d){Zn.preventDefault(),o.onContextConsoleMenu.emit(new bse(Zn,u))}).attr("xnode:href",function(u){return u.symbolUrl}).attr("width",function(u){return u.width?u.width:60}).attr("height",function(u){return u.height?u.height:60}).attr("x",function(u){return 0}).attr("y",function(u){return 0}).on("mouseover",function(u){vi(this).attr("class","over")}).on("mouseout",function(u){vi(this).attr("class","")}),l.attr("transform",function(u){return u.width?"translate(".concat(u.x,",").concat(u.y,")"):"translate(".concat(u.x-30,",").concat(u.y-30,")")}),this.labelWidget.draw(l)}}]),n}();Yg.\u0275fac=function(r){return new(r||Yg)(t.LFG(Ll),t.LFG(Gf),t.LFG(dd),t.LFG(dl))},Yg.\u0275prov=t.Yz7({token:Yg,factory:Yg.\u0275fac});var zf=function(){function n(r,e){(0,U.Z)(this,n),this.nodeWidget=r,this.mapSettings=e,this.draggable=new v5}return(0,B.Z)(n,[{key:"redrawNode",value:function(e,i){this.nodeWidget.draw(this.selectNode(e,i))}},{key:"draw",value:function(e){var i=e.selectAll("g.node").data(function(s){return s.nodes?s.nodes:[]},function(s){return s.id}),o=i.enter().append("g").attr("class","node").attr("node_id",function(s){return s.id}),a=i.merge(o);this.nodeWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a)}},{key:"selectNode",value:function(e,i){return e.selectAll('g.node[node_id="'.concat(i.id,'"]'))}}]),n}();zf.NODE_LABEL_MARGIN=3,zf.\u0275fac=function(r){return new(r||zf)(t.LFG(Yg),t.LFG(pp))},zf.\u0275prov=t.Yz7({token:zf,factory:zf.\u0275fac});var I4e=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Kg=function(){function n(){(0,U.Z)(this,n),this.drawingLine=new I4e,this.drawing=!1,this.data={}}return(0,B.Z)(n,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new g5(e,i),this.drawingLine.end=new g5(e,i);this.selection.on("mousemove",function(u,d){var g=Kd(a.selection.select("g.canvas").node());a.drawingLine.end.x=g[0],a.drawingLine.end.y=g[1],a.draw(null,null)}),this.draw(null,null)}},{key:"isDrawing",value:function(){return this.drawing}},{key:"stop",value:function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data}},{key:"connect",value:function(e,i){this.selection=e}},{key:"draw",value:function(e,i){var o=this.selection.select("g.canvas");o.select("g.drawing-line-tool").node()||o.append("g").attr("class","drawing-line-tool");var a=[];this.drawing&&(a=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var s=wN(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),d=u.enter().append("path");u.merge(d).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),n}();Kg.\u0275fac=function(r){return new(r||Kg)},Kg.\u0275prov=t.Yz7({token:Kg,factory:Kg.\u0275fac});var Cse=(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this.x=r,this.y=e,this.status=i,this.port=o}),_b=function(){function n(r){(0,U.Z)(this,n),this._mapSettingsService=r,this.mapSettingsService=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=[];e.each(function(a){o.push(a)}),o.forEach(function(a){o.forEach(function(s){s.nodes[0].linkId!==a.nodes[0].linkId&&(a.nodes[0].nodeId===s.nodes[0].nodeId&&a.nodes[1].nodeId===s.nodes[1].nodeId||a.nodes[0].nodeId===s.nodes[1].nodeId&&a.nodes[1].nodeId===s.nodes[0].nodeId||a.nodes[1].nodeId===s.nodes[0].nodeId&&a.nodes[0].nodeId===s.nodes[1].nodeId)&&(a.isMultiplied=!0)})}),e.each(function(a){var s=vi(this),l=s.select("path"),u=[];if(l.node()){var d=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var g=a.nodes.find(function(It){return It.nodeId===a.source.id}).label.text,C=a.nodes.find(function(It){return It.nodeId===a.target.id}).label.text;u=[new Cse(d.x,d.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,g),new Cse(h.x,h.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.target.status,C)]}}if(s.selectAll("circle.status_started").remove(),s.selectAll("circle.status_stopped").remove(),s.selectAll("circle.status_suspended").remove(),s.selectAll("rect.status_started").remove(),s.selectAll("text.status_started_label").remove(),s.selectAll("rect.status_stopped").remove(),s.selectAll("text.status_stopped_label").remove(),s.selectAll("rect.status_suspended").remove(),s.selectAll("text.status_suspended_label").remove(),i.mapSettingsService.showInterfaceLabels&&i.mapSettingsService.integrateLinkLabelsToLinks&&!a.isMultiplied){var Z=s.selectAll("rect.status_started").data(u.filter(function(It){return"started"===It.status})),z=Z.enter().append("rect");Z.merge(z).attr("class","status_started").attr("width",function(It){return 10*It.port.length+5}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),Z.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(It){return"started"===It.status})),re=q.enter().append("text");q.merge(re).attr("class","status_started_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),q.exit().remove();var ae=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Se=ae.enter().append("rect");ae.merge(Se).attr("class","status_stopped").attr("width",function(It){return 10*It.port.length+5}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),ae.exit().remove();var Ce=s.selectAll("text.status_stopped_label").data(u.filter(function(It){return"stopped"===It.status})),xe=Ce.enter().append("text");Ce.merge(xe).attr("class","status_stopped_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),Ce.exit().remove();var Ve=s.selectAll("rect.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),at=Ve.enter().append("rect");Ve.merge(at).attr("class","status_suspended").attr("width",function(It){return 10*It.port.length+5}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),Ve.exit().remove();var De=s.selectAll("text.status_suspended_label").data(u.filter(function(It){return"suspended"===It.status})),ot=De.enter().append("text");De.merge(ot).attr("class","status_suspended_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),De.exit().remove()}else{var ht=s.selectAll("circle.status_started").data(u.filter(function(It){return"started"===It.status})),bt=ht.enter().append("circle");ht.merge(bt).attr("class","status_started").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("text",function(It){return It.port}).attr("fill","#2ecc71"),ht.exit().remove();var Xe=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Pe=Xe.enter().append("rect");Xe.merge(Pe).attr("class","status_stopped").attr("x",function(It){return It.x-5}).attr("y",function(It){return It.y-5}).attr("width",10).attr("height",10).attr("fill","red"),Xe.exit().remove();var Nt=s.selectAll("circle.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),Gt=Nt.enter().append("circle");Nt.merge(Gt).attr("class","status_suspended").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("fill","#FFFF00"),Nt.exit().remove()}})}}]),n}();_b.\u0275fac=function(r){return new(r||_b)(t.LFG(dl))},_b.\u0275prov=t.Yz7({token:_b,factory:_b.\u0275fac});var wse=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,null,[{key:"getLinkStyle",value:function(e){return 1==e.type?"10, 10":2==e.type?"".concat(e.width,", ").concat(e.width):3==e.type?"20, 10, ".concat(e.width,", ").concat(e.width,", ").concat(e.width,", 10"):"0, 0"}}]),n}(),P4e=(0,B.Z)(function n(r,e,i){(0,U.Z)(this,n),this.source=r,this.target=e,this.style=i}),qg=function(){function n(){(0,U.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,B.Z)(n,[{key:"linktoEthernetLink",value:function(e){return new P4e([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2],e.link_style.color?e.link_style:this.defaultEthernetLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.ethernet_link").data(function(l){return"ethernet"===l.linkType?[i.linktoEthernetLink(l)]:[]}),a=o.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new zk(d,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return wse.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=Jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();qg.\u0275fac=function(r){return new(r||qg)},qg.\u0275prov=t.Yz7({token:qg,factory:qg.\u0275fac});var R4e=(0,B.Z)(function n(r,e,i,o,a){(0,U.Z)(this,n),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),Jg=function(){function n(){(0,U.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,B.Z)(n,[{key:"linkToSerialLink",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return new R4e([i.x,i.y],h,g,[o.x,o.y],e.link_style.color?e.link_style:this.defaultSerialLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.serial_link").data(function(l){return"serial"===l.linkType?[i.linkToSerialLink(l)]:[]}),a=o.enter().append("path").attr("class","serial_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new zk(d,u))});a.attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return wse.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=Jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.source_angle[0],l.source_angle[1]),u.lineTo(l.target_angle[0],l.target_angle[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();Jg.\u0275fac=function(r){return new(r||Jg)},Jg.\u0275prov=t.Yz7({token:Jg,factory:Jg.\u0275fac});var Qg=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new t.vpe}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","link_body"),s=o.merge(a).attr("transform",function(l){var u=i.multiLinkCalculatorHelper.linkTranslation(l.distance,l.source,l.target);return"translate (".concat(u.dx,", ").concat(u.dy,")")});o.select(".capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&!(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new zk(u,l))}).attr("class","capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),o.select(".filter-capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new zk(u,l))}).attr("class","filter-capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),o.select(".filter-icon").remove(),o.filter(function(l){return!l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new zk(u,l))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),o.select(".pause-icon").remove(),o.filter(function(l){return l.suspend}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new zk(u,l))}).attr("class","pause-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(s),this.ethernetLinkWidget.draw(s),s.select("path").classed("selected",function(l){return i.selectionManager.isSelected(l)}),this.interfaceLabelWidget.draw(s),this.interfaceStatusWidget.draw(s)}}]),n}();Qg.\u0275fac=function(r){return new(r||Qg)(t.LFG(Ff),t.LFG(fp),t.LFG(_b),t.LFG(Ll),t.LFG(qg),t.LFG(Jg))},Qg.\u0275prov=t.Yz7({token:Qg,factory:Qg.\u0275fac});var Bm=function(){function n(r,e){(0,U.Z)(this,n),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,B.Z)(n,[{key:"redrawLink",value:function(e,i){console.log("redraw called"),this.linkWidget.draw(this.selectLink(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link").data(function(l){if(l.links){var u=l.links.filter(function(d){return d.target&&d.source});return i.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(l){return l.id}),a=o.enter().append("g").attr("class","link").attr("link_id",function(l){return l.id}).attr("map-source",function(l){return l.source.id}).attr("map-target",function(l){return l.target.id}),s=o.merge(a);this.linkWidget.draw(s),o.exit().remove()}},{key:"selectLink",value:function(e,i){return e.selectAll('g.link[link_id="'.concat(i.id,'"]'))}}]),n}();Bm.\u0275fac=function(r){return new(r||Bm)(t.LFG(Ff),t.LFG(Qg))},Bm.\u0275prov=t.Yz7({token:Bm,factory:Bm.\u0275fac});var L4e=(0,B.Z)(function n(){(0,U.Z)(this,n)}),ea=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Z4e=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new ea,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("cx");d&&(i.cx=parseInt(d.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,10));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,10)),i}}]),n}(),y5=(0,B.Z)(function n(){(0,U.Z)(this,n)}),N4e=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new y5,o=e.attributes.getNamedItem("xlink:href");o&&(i.data=o.value);var a=e.attributes.getNamedItem("width");a&&(i.width=parseInt(a.value,10));var s=e.attributes.getNamedItem("height");return s&&(i.height=parseInt(s.value,10)),i}}]),n}(),gb=(0,B.Z)(function n(){(0,U.Z)(this,n)}),B4e=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new gb,o=e.attributes.getNamedItem("stroke");o&&(i.stroke=o.value);var a=e.attributes.getNamedItem("stroke-width");o&&(i.stroke_width=parseInt(a.value,10));var s=e.attributes.getNamedItem("stroke-dasharray");s&&(i.stroke_dasharray=s.value);var l=e.attributes.getNamedItem("x1");l&&(i.x1=parseInt(l.value,10));var u=e.attributes.getNamedItem("x2");u&&(i.x2=parseInt(u.value,10));var d=e.attributes.getNamedItem("y1");d&&(i.y1=parseInt(d.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),n}(),hp=(0,B.Z)(function n(){(0,U.Z)(this,n)}),F4e=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new hp,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("width");d&&(i.width=parseInt(d.value,10));var h=e.attributes.getNamedItem("height");h&&(i.height=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,0));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,0)),i}}]),n}(),vb=(0,B.Z)(function n(){(0,U.Z)(this,n)}),U4e=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new vb;i.text=e.textContent;var o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");a&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("font-family");s&&(i.font_family=s.value);var l=e.attributes.getNamedItem("font-size");l&&(i.font_size=+l.value);var u=e.attributes.getNamedItem("font-weight");u&&(i.font_weight=u.value);var d=e.attributes.getNamedItem("text-decoration");return d&&(i.text_decoration=d.value),i}}]),n}(),Wf=function(){function n(){(0,U.Z)(this,n),this.parser=new DOMParser,this.elementParsers={text:new U4e,image:new N4e,rect:new F4e,line:new B4e,ellipse:new Z4e}}return(0,B.Z)(n,[{key:"supportedTags",value:function(){return Object.keys(this.elementParsers)}},{key:"convert",value:function(e){var o=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==o.length)throw new Error("Cannot locate svg element root in '".concat(e,"'"));var a=o[0],s=null,l=null;for(var u in a.children){var d=(l=a.children[u]).nodeName;if(d in this.elementParsers){s=this.elementParsers[d];break}}if(null===s)throw new Error("Cannot find parser for '".concat(e,"'"));var h=s.convert(l);return h.width=+a.getAttribute("width"),h.height=+a.getAttribute("height"),h}}]),n}();Wf.\u0275fac=function(r){return new(r||Wf)},Wf.\u0275prov=t.Yz7({token:Wf,factory:Wf.\u0275fac});var Xg=function(){function n(r){(0,U.Z)(this,n),this.fontFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof vb?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var g=i.fontFixer.fix(h),C=[];return g.font_family&&C.push('font-family: "'.concat(h.font_family,'"')),g.font_size&&C.push("font-size: ".concat(h.font_size,"pt")),g.font_weight&&C.push("font-weight: ".concat(h.font_weight)),C.join("; ")}).attr("fill",function(h){return h.fill}).attr("text-decoration",function(h){return h.text_decoration});var l=s.selectAll("tspan").data(function(h){return h.text.split(/\r?\n/)}),u=l.enter().append("tspan");l.merge(u).text(function(h){return h}).attr("xml:space","preserve").attr("x",0).attr("dy",function(h,g){return 0===g?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=vi(this).selectAll("tspan"),g=this.getBBox().height/h.size();return"translate(".concat(n.MARGIN,", ").concat(g-n.MARGIN,")")}),o.exit().remove()}}]),n}();Xg.MARGIN=4,Xg.\u0275fac=function(r){return new(r||Xg)(t.LFG(is))},Xg.\u0275prov=t.Yz7({token:Xg,factory:Xg.\u0275fac});var yb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof y5?[s.element]:[]}),o=i.enter().append("image").attr("class","image_element noselect");i.merge(o).attr("xlink:href",function(s){return s.data}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}),i.exit().remove()}}]),n}();yb.\u0275fac=function(r){return new(r||yb)},yb.\u0275prov=t.Yz7({token:yb,factory:yb.\u0275fac});var ju=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){if(e||""==e)return e in n.MAPPING?n.MAPPING[e]:e}}]),n}();ju.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"12, 3, 5, 3","25, 25, 5, 25, 5":"12, 3, 5, 3, 5, 3"},ju.\u0275fac=function(r){return new(r||ju)},ju.\u0275prov=t.Yz7({token:ju,factory:ju.\u0275fac});var bb=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof hp?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("rect").attr("class","rect_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("width",function(l){return l.width}).attr("height",function(l){return l.height}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();bb.\u0275fac=function(r){return new(r||bb)(t.LFG(ju))},bb.\u0275prov=t.Yz7({token:bb,factory:bb.\u0275fac});var Cb=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof gb?[l.element]:[]});o.enter().append("circle").attr("class","right"),o.enter().append("circle").attr("class","left");var a=o.enter().append("line").attr("class","line_element noselect");o.merge(a).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("x1",function(l){return l.x1}).attr("x2",function(l){return l.x2}).attr("y1",function(l){return l.y1}).attr("y2",function(l){return l.y2}),o.exit().remove()}}]),n}();Cb.\u0275fac=function(r){return new(r||Cb)(t.LFG(ju))},Cb.\u0275prov=t.Yz7({token:Cb,factory:Cb.\u0275fac});var wb=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof ea?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("ellipse").attr("class","ellipse_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("cx",function(l){return l.cx}).attr("cy",function(l){return l.cy}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();wb.\u0275fac=function(r){return new(r||wb)(t.LFG(ju))},wb.\u0275prov=t.Yz7({token:wb,factory:wb.\u0275fac});var kb=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.textDrawingWidget=r,this.imageDrawingWidget=e,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=l,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","drawing_body"),s=o.merge(a).attr("transform",function(l){return"translate(".concat(l.x,",").concat(l.y,") rotate(").concat(l.rotation,")")});this.drawingWidgets.forEach(function(l){l.draw(s)}),s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof hp||l.element instanceof ea}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(l){return l.element?l.element.width/2-13:0}).attr("y",function(l){return l.element?l.element.height/2-13:0}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof hp||l.element instanceof ea}).append("text").attr("class","layer_label").text(function(l){return l.z}).attr("x",function(l){return l.z>=100?l.element?l.element.width/2-13:0:l.z>=10?l.element?l.element.width/2-9:0:l.element.width/2-5}).attr("y",function(l){return l.element?l.element.height/2+5:0}).attr("style",function(){var l=[];return l.push('font-family: "Noto Sans"'),l.push("font-size: 11pt"),l.push("font-weight: bold"),l.join("; ")}).attr("fill","#ffffff"),s.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),s.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1",function(l){return l.element.height}).attr("y2",function(l){return l.element.height}).attr("draggable","true").attr("cursor","ns-resize"),s.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element.width}).attr("x2",function(l){return l.element.width}).attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x1}).attr("cy",function(l){return l.element.y1}).attr("r",10).attr("cursor","move"),s.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x2}).attr("cy",function(l){return l.element.y2}).attr("r",10).attr("cursor","move"),s.classed("drawing_selected",function(l){return i.selectionManager.isSelected(l)})}}]),n}();kb.\u0275fac=function(r){return new(r||kb)(t.LFG(Xg),t.LFG(yb),t.LFG(bb),t.LFG(Cb),t.LFG(wb),t.LFG(Ll),t.LFG(dl))},kb.\u0275prov=t.Yz7({token:kb,factory:kb.\u0275fac});var Vf=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new v5,this.draggingEnabled=!1,this.resizingFinished=new t.vpe,this.onContextMenu=new t.vpe,this.svgToDrawingConverter=new Wf}return(0,B.Z)(n,[{key:"redrawDrawing",value:function(e,i){this.drawingWidget.draw(this.selectDrawing(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing").data(function(De){return De.drawings.forEach(function(ot){try{ot.element=i.svgToDrawingConverter.convert(ot.svg)}catch(ht){}}),De.drawings},function(De){return De.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(De){return De.id}).on("contextmenu",function(De){Zn.preventDefault(),i.onContextMenu.emit(new E4e(Zn,De))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,d,h,z,q,re,ae,g=!1,C=pg().on("start",function(De){document.body.style.cursor="ns-resize",d=De.y}).on("drag",function(De){var ot=Zn;g?(u=l-(ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(g=!1,l=d,De.element.height=Math.abs(De.element.height+ot.dy)):(De.y=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))):De.element.height+ot.dy<0?(g=!0,l=d,De.element.height=Math.abs(De.element.height+ot.dy)):(De.element.height+=ot.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+ot.dy/2<0?1:De.element.cy+=ot.dy/2,De.element.ry=De.element.ry+ot.dy/2<0?1:De.element.ry+=ot.dy/2)),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Z=pg().on("start",function(De){l=Zn.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+De.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(De){var ot=Zn;g?De.element.height+ot.dy<0?(g=!1,l=h,De.element.height=Math.abs(De.element.height+ot.dy)):(De.element.height+=ot.dy,De.element instanceof ea&&(De.element.cy=De.element.cy+ot.dy/2<0?1:De.element.cy+=ot.dy/2,De.element.ry=De.element.ry+ot.dy/2<0?1:De.element.ry+=ot.dy/2)):(u=l-(ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+u<0?(l=h,g=!0,De.element.height=Math.abs(De.element.height+ot.dy)):(De.y=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),De.element.height+=u,De.element instanceof ea&&(De.element.cy=De.element.cy+u/2<0?1:De.element.cy+=u/2,De.element.ry=De.element.ry+u/2<0?1:De.element.ry+=u/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Se=!1,Ce=pg().on("start",function(De){z=Zn.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),ae=z+De.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(De){var ot=Zn;Se?De.element.width+ot.dx<0?(z=ae,Se=!1,De.element.width=Math.abs(De.element.width+ot.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+ot.dx/2<0?1:De.element.cx+=ot.dx/2,De.element.rx=De.element.rx+ot.dx/2<0?1:De.element.rx+=ot.dx/2),De.element.width=De.element.width+ot.dx<0?1:De.element.width+=ot.dx):(q=z-(ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=ae,Se=!0,De.element.width=Math.abs(De.element.width+ot.dx)):(De.x=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),xe=pg().on("start",function(De){document.body.style.cursor="ew-resize",re=De.x}).on("drag",function(De){var ot=Zn;Se?(q=z-(ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+q<0?(z=re,Se=!1,De.element.width=Math.abs(De.element.width+ot.dx)):(De.x=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),De.element.width+=q,De.element instanceof ea&&(De.element.cx=De.element.cx+q/2<0?1:De.element.cx+=q/2,De.element.rx=De.element.rx+q/2<0?1:De.element.rx+=q/2))):De.element.width+ot.dx<0?(z=re,Se=!0,De.element.width=Math.abs(De.element.width+ot.dx)):(De.element instanceof ea&&(De.element.cx=De.element.cx+ot.dx/2<0?1:De.element.cx+=ot.dx/2,De.element.rx=De.element.rx+ot.dx/2<0?1:De.element.rx+=ot.dx/2),De.element.width=De.element.width+ot.dx<0?1:De.element.width+=ot.dx),i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),Ve=pg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var ot=Zn;De.element.width+=ot.dx,De.element.height+=ot.dy,De.element.x2+=ot.dx,De.element.y2+=ot.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))}),at=pg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(De){var ot=Zn;De.element.width+=ot.dx,De.element.height+=ot.dy,De.element.x1+=ot.dx,De.element.y1+=ot.dy,i.redrawDrawing(e,De)}).on("end",function(De){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(De))});s.select("line.bottom").call(C),s.select("line.top").call(Z),s.select("line.right").call(Ce),s.select("line.left").call(xe),s.select("circle.right").call(Ve),s.select("circle.left").call(at)}},{key:"createResizingEvent",value:function(e){var i=new L4e;return i.x=e.x,i.y=e.y,i.width=e.element.width,i.height=e.element.height,i.datum=e,i}},{key:"selectDrawing",value:function(e,i){return e.selectAll('g.drawing[drawing_id="'.concat(i.id,'"]'))}}]),n}();Vf.\u0275fac=function(r){return new(r||Vf)(t.LFG(kb),t.LFG(Wf),t.LFG(Vs),t.LFG(pp))},Vf.\u0275prov=t.Yz7({token:Vf,factory:Vf.\u0275fac});var Tb=function(){function n(r,e,i){(0,U.Z)(this,n),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,B.Z)(n,[{key:"draw",value:function(e,i){var o=e.selectAll("g.layer").data(i,function(h){return h.index.toString()}),a=o.enter().append("g").attr("class","layer");a.append("g").attr("class","links"),a.append("g").attr("class","nodes"),a.append("g").attr("class","drawings");var s=o.merge(a);s.attr("data-index",function(h){return h.index});var l=s.select("g.links"),u=s.select("g.nodes"),d=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(d)}}]),n}();Tb.\u0275fac=function(r){return new(r||Tb)(t.LFG(Bm),t.LFG(zf),t.LFG(Vf))},Tb.\u0275prov=t.Yz7({token:Tb,factory:Tb.\u0275fac});var $g=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,B.Z)(n,[{key:"getNodesWidget",value:function(){return this.nodesWidget}},{key:"getDrawingLineTool",value:function(){return this.drawingLineTool}},{key:"getSelectionTool",value:function(){return this.selectionTool}},{key:"connect",value:function(e,i){this.drawingLineTool.connect(e,i)}},{key:"draw",value:function(e,i){e.attr("width",i.size.width).attr("height",i.size.height);var o=e.selectAll("g.canvas").data([i]),a=o.enter().append("g").attr("class","canvas");o.merge(a).attr("transform",function(s){var l=s.getZeroZeroTransformationPoint().x+s.transformation.x,u=s.getZeroZeroTransformationPoint().y+s.transformation.y,d=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")}),this.layersWidget.draw(o,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,i),this.selectionTool.draw(e,i),this.movingTool.draw(e,i)}},{key:"disconnect",value:function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()}}]),n}();$g.\u0275fac=function(r){return new(r||$g)(t.LFG(zf),t.LFG(Kg),t.LFG(jf),t.LFG(Vg),t.LFG(Tb),t.LFG(Nm))},$g.\u0275prov=t.Yz7({token:$g,factory:$g.\u0275fac});var Yf=function(){function n(){(0,U.Z)(this,n),this.isSelectionToolActivated=new In.xQ,this.isMovingToolActivated=new In.xQ,this.isTextEditingToolActivated=new In.xQ,this.isTextAddingToolActivated=new In.xQ,this.isDrawLinkToolActivated=new In.xQ}return(0,B.Z)(n,[{key:"selectionToolActivation",value:function(e){this.isSelectionToolActivated.next(e)}},{key:"movingToolActivation",value:function(e){this.isMovingToolActivated.next(e)}},{key:"textEditingToolActivation",value:function(e){this.isTextEditingToolActivated.next(e)}},{key:"textAddingToolActivation",value:function(e){this.isTextAddingToolActivated.next(e)}},{key:"drawLinkToolActivation",value:function(e){this.isDrawLinkToolActivated.next(e)}}]),n}();Yf.\u0275fac=function(r){return new(r||Yf)},Yf.\u0275prov=t.Yz7({token:Yf,factory:Yf.\u0275fac});var mp=function(){function n(r){(0,U.Z)(this,n),this.context=r,this.scaleChangeEmitter=new t.vpe,this.currentScale=1}return(0,B.Z)(n,[{key:"getScale",value:function(){return this.currentScale}},{key:"setScale",value:function(e){this.currentScale=e,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}},{key:"resetToDefault",value:function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}}]),n}();mp.\u0275fac=function(r){return new(r||mp)(t.LFG(Vs))},mp.\u0275prov=t.Yz7({token:mp,factory:mp.\u0275fac});var Zl=(0,B.Z)(function n(){(0,U.Z)(this,n),this.dragged=new t.vpe,this.resized=new t.vpe,this.selected=new t.vpe,this.pointToAddSelected=new t.vpe,this.saved=new t.vpe,this.textAdded=new t.vpe,this.textEdited=new t.vpe,this.textSaved=new t.vpe});Zl.\u0275fac=function(r){return new(r||Zl)},Zl.\u0275prov=t.Yz7({token:Zl,factory:Zl.\u0275fac});var lA=function(){function n(r,e){(0,U.Z)(this,n),this.drawingsEventSource=r,this.context=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(i){""===i?e.deactivate():e.activate()})}},{key:"activate",value:function(){var e=this;this.deactivate(),this.mapListener=function(a){var s=(a.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,l=(a.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new T4e(s,l)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivate",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"ngOnDestroy",value:function(){this.drawingSelected.unsubscribe()}}]),n}();lA.\u0275fac=function(r){return new(r||lA)(t.Y36(Zl),t.Y36(Vs))},lA.\u0275cmp=t.Xpm({type:lA,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var uA=function(){function n(r,e){(0,U.Z)(this,n),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new k4e(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),n}();uA.\u0275fac=function(r){return new(r||uA)(t.Y36(Vf),t.Y36(Zl))},uA.\u0275cmp=t.Xpm({type:uA,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var pl=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"createLink",value:function(e,i,o,a,s,l,u,d,h){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links"),{nodes:[{node_id:i.node_id,port_number:o.port_number,adapter_number:o.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:o.short_name,x:l,y:u}},{node_id:a.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:s.short_name,x:d,y:h}}]})}},{key:"getLink",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/links/").concat(o))}},{key:"deleteLink",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id))}},{key:"updateLink",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"updateLinkStyle",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"getAvailableFilters",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/available_filters"))}},{key:"updateNodes",value:function(e,i,o){var a=o.map(function(s){return{node_id:s.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:s.label.rotation,style:s.label.style,text:s.label.text,x:s.label.x,y:s.label.y}}});return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),{nodes:a})}},{key:"startCaptureOnLink",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/start"),o)}},{key:"stopCaptureOnLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stop"),{})}},{key:"resetLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/reset"),{})}},{key:"streamPcap",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stream"))}}]),n}();pl.\u0275fac=function(r){return new(r||pl)(t.LFG(mo.zw))},pl.\u0275prov=t.Yz7({token:pl,factory:pl.\u0275fac});var Fm=m(6215),Ya=m(5366),j4e=["temporaryTextElement"],cA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,U.Z)(this,n),this.drawingsEventSource=r,this.toolsService=e,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=l,this.nodesDataSource=u,this.selectionManager=d,this.fontFixer=h,this.ngZone=g,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(i){i?e.activateTextAdding():e.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))}},{key:"activateTextAdding",value:function(){var e=this;this.deactivateTextAdding(),this.mapListener=function(a){e.leftPosition=a.pageX.toString()+"px",e.topPosition=a.pageY.toString()+"px",e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.temporaryTextElement.nativeElement.focus(),document.documentElement.style.cursor="default";e.textListener=function(){e.drawingsEventSource.textAdded.emit(new S4e(e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),a.pageX,a.pageY)),e.deactivateTextAdding(),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener)},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivateTextAdding",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"activateTextEditingForNodeLabels",value:function(){var e=this,i=vi(this.svg);i.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(o,a,s){e.selectionManager.setSelected([]),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedLink=o,vi(s[a]).attr("visibility","hidden"),vi(s[a]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(o.nodeId),e.editedLink=o;var l=(o.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=(o.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=l.toString()+"px",e.topPosition=u.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.label.text;var g,d=[],h=(0,xn.Z)(o.label.style.split(";"));try{for(h.s();!(g=h.n()).done;){var C=g.value;d.push({property:C.split(": ")[0],value:C.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var Z={font_family:d.find(function(q){return"font-family"===q.property})?d.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:d.find(function(q){return"font-size"===q.property})?Number(d.find(function(q){return"font-size"===q.property}).value):10,font_weight:d.find(function(q){return"font-weight"===q.property})?d.find(function(q){return"font-weight"===q.property}).value:"normal"};Z=e.fontFixer.fix(Z),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",d.find(function(q){return"fill"===q.property})?d.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",Z.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(Z.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",Z.font_weight);e.textListener=function(){var re=e.temporaryTextElement.nativeElement.innerText,ae=e.linksDataSource.get(e.editedLink.linkId);ae.nodes.find(function(Se){return Se.node_id===e.editedNode.node_id}).label.text=re,e.linkService.updateLink(e.controller,ae).subscribe(function(Se){i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")})},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"activateTextEditingForDrawings",value:function(){var e=this,i=vi(this.svg);i.selectAll("text.text_element").on("dblclick",function(o,a,s){e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.editedElement=o,vi(s[a]).attr("visibility","hidden"),vi(s[a]).classed("editingMode",!0),e.editingDrawingId=s[a].parentElement.parentElement.getAttribute("drawing_id");var l=s[a].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(l[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,d=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=d.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",o.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",o.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(o.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",o.font_weight);e.textListener=function(){var C=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new x4e(e.editingDrawingId,C.replace(/\n$/,""),e.editedElement)),i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"ngOnDestroy",value:function(){this.textAddingSubscription.unsubscribe()}},{key:"clearStyle",value:function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")}}]),n}();cA.\u0275fac=function(r){return new(r||cA)(t.Y36(Zl),t.Y36(Yf),t.Y36(Vs),t.Y36(t.Qsj),t.Y36(mp),t.Y36(pl),t.Y36(Fm.F),t.Y36(Ya.G),t.Y36(Ll),t.Y36(is),t.Y36(t.R0b))},cA.\u0275cmp=t.Xpm({type:cA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(j4e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.temporaryTextElement=i.first))},inputs:{svg:"svg",controller:"controller"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0,1),t._uU(2),t.qZA()),2&r&&(t.Udp("top",e.topPosition)("left",e.leftPosition),t.xp6(2),t.hij(" ",e.innerText,"\n"))},styles:[".temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:Noto Sans;font-size:11pt;font-weight:700;color:#000}"]});var Mb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),n}();Mb.\u0275fac=function(r){return new(r||Mb)},Mb.\u0275prov=t.Yz7({token:Mb,factory:Mb.\u0275fac});var dA=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(i){var o=e.graphDataManager.getNodes().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),a=e.graphDataManager.getLinks().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),s=e.graphDataManager.getDrawings().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),l=e.graphDataManager.getNodes().filter(function(C){if(void 0===C.label)return!1;var Z=C.x+C.label.x,z=C.y+C.label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.label}),u=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.source||2!=C.nodes.length||void 0===C.nodes[0].label)return!1;var Z=C.source.x+C.nodes[0].label.x,z=C.source.y+C.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.nodes[0]}),d=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.target||2!=C.nodes.length||void 0===C.nodes[1].label)return!1;var Z=C.target.x+C.nodes[1].label.x,z=C.target.y+C.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.nodes[1]}),h=[].concat((0,fn.Z)(u),(0,fn.Z)(d)),g=[].concat((0,fn.Z)(o),(0,fn.Z)(a),(0,fn.Z)(s),(0,fn.Z)(l),(0,fn.Z)(h));e.selectionManager.setSelected(g)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),n}();dA.\u0275fac=function(r){return new(r||dA)(t.Y36(Wg),t.Y36(Uf),t.Y36(Mb),t.Y36(Ll))},dA.\u0275cmp=t.Xpm({type:dA,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){}});var pA=function(){function n(r,e){(0,U.Z)(this,n),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelected=this.selectionManager.selected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()}}]),n}();pA.\u0275fac=function(r){return new(r||pA)(t.Y36(Ll),t.Y36(Hf))},pA.\u0275cmp=t.Xpm({type:pA,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){}});var pd=(0,B.Z)(function n(){(0,U.Z)(this,n),this.created=new t.vpe,this.edited=new t.vpe,this.interfaceDragged=new t.vpe});pd.\u0275fac=function(r){return new(r||pd)},pd.\u0275prov=t.Yz7({token:pd,factory:pd.\u0275fac});var fA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,U.Z)(this,n),this.nodesWidget=r,this.drawingsWidget=e,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=l,this.drawingsEventSource=u,this.graphDataManager=d,this.linksEventSource=h,this.mapSettingsService=g,this.isMapLocked=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=vi(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,ji.T)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe(function(o){var a=e.selectionManager.getSelected();o.datum instanceof ub&&0===a.filter(function(s){return s instanceof ub&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Lm&&0===a.filter(function(s){return s instanceof Lm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Ik&&0===a.filter(function(s){return s instanceof Ik&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof sA&&0===a.filter(function(s){return s instanceof sA&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,ji.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof ub}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.nodesWidget.redrawNode(i,q),e.graphDataManager.getLinks().filter(function(ae){return void 0!==ae.target&&ae.target.id===q.id||void 0!==ae.source&&ae.source.id===q.id}).forEach(function(ae){e.linksWidget.redrawLink(i,ae)})}),a.filter(function(q){return q instanceof Lm}).filter(function(q){return!q.locked}).forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.drawingsWidget.redrawDrawing(i,q)}),a.filter(function(q){return q instanceof Ik}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getNodes().filter(function(Se){return Se.id===q.nodeId})[0];ae.label.x+=o.dx,ae.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof sA}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getLinks().filter(function(Se){return Se.nodes[0].id===q.id||Se.nodes[1].id===q.id})[0];ae.nodes[0].id===q.id&&(ae.nodes[0].label.x+=o.dx,ae.nodes[0].label.y+=o.dy),ae.nodes[1].id===q.id&&(ae.nodes[1].label.x+=o.dx,ae.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,ae)}})}}),this.end=(0,ji.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(o){if(!e.isMapLocked){var a=e.selectionManager.getSelected(),s=a.filter(function(q){return q instanceof ub}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){e.nodesEventSource.dragged.emit(new Gk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Lm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Gk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Ik}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Gk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof sA}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Gk(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),n}();fA.\u0275fac=function(r){return new(r||fA)(t.Y36(zf),t.Y36(Vf),t.Y36(Bm),t.Y36(Gf),t.Y36(fp),t.Y36(Ll),t.Y36(dd),t.Y36(Zl),t.Y36(Uf),t.Y36(pd),t.Y36(dl))},fA.\u0275cmp=t.Xpm({type:fA,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var hA=function(){function n(r,e){(0,U.Z)(this,n),this.linksWidget=r,this.linksEventSource=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=vi(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),n}();hA.\u0275fac=function(r){return new(r||hA)(t.Y36(Bm),t.Y36(pd))},hA.\u0275cmp=t.Xpm({type:hA,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var Um=(0,B.Z)(function n(){(0,U.Z)(this,n),this.movingModeState=new t.vpe});Um.\u0275fac=function(r){return new(r||Um)},Um.\u0275prov=t.Yz7({token:Um,factory:Um.\u0275fac});var mA=function(){function n(r,e,i){(0,U.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){e.activated=i,i||e.removelisteners()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"onMouseDown",value:function(e){var i=this;this.activated&&(this.mousemoveListener=function(o){vi(i.element.nativeElement).selectAll("g.canvas").data([i.context]).attr("transform",function(){i.context.transformation.x=i.context.transformation.x+o.movementX,i.context.transformation.y=i.context.transformation.y+o.movementY;var l=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,u=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,d=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.mouseupListener=function(o){i.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))}},{key:"removelisteners",value:function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)}}]),n}();mA.\u0275fac=function(r){return new(r||mA)(t.Y36(t.SBq),t.Y36(Um),t.Y36(Vs))},mA.\u0275dir=t.lG2({type:mA,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&t.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var _A=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){i?e.addListener():e.removeListener()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"addListener",value:function(){var e=this;this.wheelListener=function(i){i.stopPropagation(),i.preventDefault();var o=i.deltaY;o=0===i.deltaMode?o/100:o/3,vi(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",function(){e.context.transformation.k=e.context.transformation.k-o/10;var l=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,d=e.context.transformation.k;return e.mapsScaleService.setScale(d),"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),n}();_A.\u0275fac=function(r){return new(r||_A)(t.Y36(t.SBq),t.Y36(Um),t.Y36(Vs),t.Y36(mp))},_A.\u0275dir=t.lG2({type:_A,selectors:[["","zoomingCanvas",""]]});var G4e=["svg"],z4e=["textEditor"],Wk=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z){(0,U.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=l,this.selectionToolWidget=u,this.movingToolWidget=d,this.graphLayout=h,this.toolsService=g,this.mapScaleService=C,this.mapSettingsService=Z,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=s.nativeElement}return(0,B.Z)(n,[{key:"showInterfaceLabels",set:function(e){e&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){this.mapSettings.isReadOnly=e}},{key:"resize",value:function(e){if(e)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var i=window.innerHeight-16;this.height>i?this.svg.attr("height",this.height):this.svg.attr("height",i)}}},{key:"ngOnChanges",value:function(e){(e.width&&!e.width.isFirstChange()||e.height&&!e.height.isFirstChange()||e.drawings&&!e.drawings.isFirstChange()||e.nodes&&!e.nodes.isFirstChange()||e.links&&!e.links.isFirstChange()||e.symbols&&!e.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(e.symbols&&this.onSymbolsChange(e.symbols),this.changeLayout())}},{key:"ngOnInit",value:function(){var e=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.mapChangeDetectorRef.hasBeenDrawn&&e.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(i){return e.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(i){e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(i){e.selectionToolWidget.setEnabled(i),e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(i){e.drawLinkTool=i})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(i){return e.resize(i)})}},{key:"ngOnDestroy",value:function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"applyMapSettingsChanges",value:function(){this.redraw()}},{key:"createGraph",value:function(e){var i=vi(e);this.svg=i.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"changeLayout",value:function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()}},{key:"onSymbolsChange",value:function(e){this.graphDataManager.setSymbols(this.symbols)}},{key:"redraw",value:function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"updateGrid",value:function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)}},{key:"onResize",value:function(e){this.changeLayout()}}]),n}();Wk.\u0275fac=function(r){return new(r||Wk)(t.Y36(Uf),t.Y36(Vs),t.Y36(Hf),t.Y36(zg),t.Y36(pp),t.Y36(t.SBq),t.Y36(fp),t.Y36(jf),t.Y36(Vg),t.Y36($g),t.Y36(Yf),t.Y36(mp),t.Y36(dl))},Wk.\u0275cmp=t.Xpm({type:Wk,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(G4e,5),t.Gf(z4e,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.svgRef=i.first),t.iGM(i=t.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",controller:"controller",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[t.TTD],decls:20,vars:19,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"controller","svg"],["textEditor",""]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"filter",2),t._UZ(3,"feColorMatrix",3),t.qZA(),t.TgZ(4,"defs")(5,"pattern",4),t._UZ(6,"path",5),t.qZA()(),t.TgZ(7,"defs")(8,"pattern",6),t._UZ(9,"path",7),t.qZA()(),t._UZ(10,"rect",8)(11,"rect",9),t.qZA(),t.kcU(),t._UZ(12,"app-drawing-adding",10)(13,"app-drawing-resizing")(14,"app-selection-control")(15,"app-selection-select")(16,"app-text-editor",11,12)(18,"app-draggable-selection",10)(19,"app-link-editing",10)),2&r){var i=t.MAs(1);t.xp6(5),t.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),t.xp6(1),t.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(2),t.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),t.xp6(1),t.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(3),t.Q6J("svg",i),t.xp6(4),t.Q6J("controller",e.controller)("svg",i),t.xp6(2),t.Q6J("svg",i),t.xp6(1),t.Q6J("svg",i)}},dependencies:[lA,uA,cA,dA,pA,fA,hA,mA,_A],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var W4e=function(r,e){return function(i){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function V4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",2),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"No"),t.qZA(),t.TgZ(3,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onYesClick())}),t._uU(4," Yes "),t.qZA()()}}function Y4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",4),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"Ok"),t.qZA()()}}var Vk=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project ".concat(this.existingProject.name," is open. You can not overwrite it."),this.isOpen=!0):this.confirmationMessage="Project ".concat(this.existingProject.name," already exist, overwrite it?")}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();Vk.\u0275fac=function(r){return new(r||Vk)(t.Y36(lr),t.Y36(go))},Vk.\u0275cmp=t.Xpm({type:Vk,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.YNc(2,V4e,5,0,"div",0),t.YNc(3,Y4e,3,0,"div",0)),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage),t.xp6(1),t.Q6J("ngIf",!e.isOpen),t.xp6(1),t.Q6J("ngIf",e.isOpen))},dependencies:[ge.O5,cn,ur]});var Gu=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\"<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function K4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function q4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}function J4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project with this name exists"),t.qZA())}Gu.\u0275fac=function(r){return new(r||Gu)},Gu.\u0275prov=t.Yz7({token:Gu,factory:Gu.\u0275fac});var Q4e=function(r){return{"is-invalid":r}},Yk=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,this.projectNameValidator.get],[W4e(this.controller,this.projectService)])})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.uuid=ts(),this.projectService.add(this.controller,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added")),e.router.navigate(["/controller",e.controller.id,"project",i.project_id])},function(i){e.toasterService.error("Cannot create new project"),console.log(i)})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Vk,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.addProject()})})})}}]),n}();function X4e(n,r){}Yk.\u0275fac=function(r){return new(r||Yk)(t.Y36(lr),t.Y36(dr),t.Y36(Hr),t.Y36(zs.Y),t.Y36(Pn),t.Y36(J.QS),t.Y36(Gu))},Yk.\u0275cmp=t.Xpm({type:Yk,selectors:[["app-add-blank-project-dialog"]],features:[t._Bn([Gu])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new project"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,K4e,2,0,"mat-error",4),t.YNc(6,q4e,2,0,"mat-error",4),t.YNc(7,J4e,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add project "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,Q4e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var $4e={bottomSheetState:(0,Rt.X$)("state",[(0,Rt.SB)("void, hidden",(0,Rt.oB)({transform:"translateY(100%)"})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"translateY(0%)"})),(0,Rt.eR)("visible => void, visible => hidden",(0,Rt.ru)([(0,Rt.jt)("".concat(Wt.mZ.COMPLEX," ").concat(Wt.yN.ACCELERATION_CURVE)),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})])),(0,Rt.eR)("void => visible",(0,Rt.ru)([(0,Rt.jt)("".concat(Wt.mZ.EXITING," ").concat(Wt.yN.DECELERATION_CURVE)),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]))])},gA=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;return(0,U.Z)(this,e),(Z=r.call(this,i,o,a,s,l,u,d,C))._changeDetectorRef=g,Z._animationState="void",Z._animationStateChanged=new t.vpe,Z._breakpointSubscription=h.observe([ed.u3.Medium,ed.u3.Large,ed.u3.XLarge]).subscribe(function(){Z._toggleClass("mat-bottom-sheet-container-medium",h.isMatched(ed.u3.Medium)),Z._toggleClass("mat-bottom-sheet-container-large",h.isMatched(ed.u3.Large)),Z._toggleClass("mat-bottom-sheet-container-xlarge",h.isMatched(ed.u3.XLarge))}),Z}return(0,B.Z)(e,[{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_captureInitialFocus",value:function(){}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}}]),e}(rb);gA.\u0275fac=function(r){return new(r||gA)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(o2),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(Ei.Iu),t.Y36(ed.Yg),t.Y36(t.sBO),t.Y36(Yr.tE))},gA.\u0275cmp=t.Xpm({type:gA,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,e){1&r&&t.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.uIk("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-label",e._config.ariaLabel),t.d8E("@state",e._animationState))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,X4e,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[$4e.bottomSheetState]}});var Sb=(0,B.Z)(function n(){(0,U.Z)(this,n)});Sb.\u0275fac=function(r){return new(r||Sb)},Sb.\u0275mod=t.oAB({type:Sb}),Sb.\u0275inj=t.cJS({imports:[ib,Wt.BQ,uo.eL,Wt.BQ]});var e8e=new t.OlP("MatBottomSheetData"),t8e=(0,B.Z)(function n(){(0,U.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),b5=function(){function n(r,e,i){var o=this;(0,U.Z)(this,n),this._ref=r,this._afterOpened=new In.xQ,this.containerInstance=i,this.disableClose=e.disableClose,i._animationStateChanged.pipe((0,ni.h)(function(a){return"done"===a.phaseName&&"visible"===a.toState}),(0,xi.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,ni.h)(function(a){return"done"===a.phaseName&&"hidden"===a.toState}),(0,xi.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._ref.close(o._result)}),r.overlayRef.detachments().subscribe(function(){o._ref.close(o._result)}),(0,ji.T)(this.backdropClick(),this.keydownEvents().pipe((0,ni.h)(function(a){return a.keyCode===xr.hY}))).subscribe(function(a){!o.disableClose&&("keydown"!==a.type||!(0,xr.Vb)(a))&&(a.preventDefault(),o.dismiss())})}return(0,B.Z)(n,[{key:"instance",get:function(){return this._ref.componentInstance}},{key:"dismiss",value:function(e){var i=this;!this.containerInstance||(this.containerInstance._animationStateChanged.pipe((0,ni.h)(function(o){return"start"===o.phaseName}),(0,xi.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._ref.close(i._result)},o.totalTime+100),i._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}},{key:"afterDismissed",value:function(){return this._ref.closed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}}]),n}(),n8e=new t.OlP("mat-bottom-sheet-default-options"),_p=function(){function n(r,e,i,o){(0,U.Z)(this,n),this._overlay=r,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=e.get(_m)}return(0,B.Z)(n,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,i){var s,o=this,a=Object.assign(Object.assign({},this._defaultOptions||new t8e),i);return this._dialog.open(e,Object.assign(Object.assign({},a),{disableClose:!0,maxWidth:"100%",container:gA,scrollStrategy:a.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:function(){return{bottomSheetRef:s}},providers:function(u,d,h){return s=new b5(u,a,h),[{provide:b5,useValue:s},{provide:e8e,useValue:a.data}]}})),s.afterDismissed().subscribe(function(){o._openedBottomSheetRef===s&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){var l;return null===(l=s.containerInstance)||void 0===l?void 0:l.enter()}),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}]),n}();_p.\u0275fac=function(r){return new(r||_p)(t.LFG(Ei.aV),t.LFG(t.zs3),t.LFG(_p,12),t.LFG(n8e,8))},_p.\u0275prov=t.Yz7({token:_p,factory:_p.\u0275fac,providedIn:Sb});var r8e=function(r){return{lightTheme:r}},fd=function(){function n(r,e){(0,U.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();fd.\u0275fac=function(r){return new(r||fd)(t.Y36(b5),t.Y36(Cc.f))},fd.\u0275cmp=t.Xpm({type:fd,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,r8e,e.isLightThemeEnabled)),t.xp6(2),t.Oqu(e.message))},dependencies:[ge.mk,cn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var gp=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),n}();gp.\u0275fac=function(r){return new(r||gp)},gp.\u0275prov=t.Yz7({token:gp,factory:gp.\u0275fac});var Zi=m(3251);function kse(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var xb={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var Tse=/[&<>"']/,o8e=new RegExp(Tse.source,"g"),Mse=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,a8e=new RegExp(Mse.source,"g"),s8e={"&":"&","<":"<",">":">",'"':""","'":"'"},Sse=function(r){return s8e[r]};function Nl(n,r){if(r){if(Tse.test(n))return n.replace(o8e,Sse)}else if(Mse.test(n))return n.replace(a8e,Sse);return n}var l8e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xse(n){return n.replace(l8e,function(r,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var u8e=/(^|[^\[])\^/g;function Bo(n,r){n="string"==typeof n?n:n.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(u8e,"$1"),n=n.replace(o,a),e},getRegex:function(){return new RegExp(n,r)}};return e}var c8e=/[^\w:]/g,d8e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ese(n,r,e){if(n){var i;try{i=decodeURIComponent(xse(e)).replace(c8e,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!d8e.test(e)&&(e=function m8e(n,r){C5[" "+n]||(p8e.test(n)?C5[" "+n]=n+"/":C5[" "+n]=k5(n,"/",!0));var e=-1===(n=C5[" "+n]).indexOf(":");return"//"===r.substring(0,2)?e?r:n.replace(f8e,"$1")+r:"/"===r.charAt(0)?e?r:n.replace(h8e,"$1")+r:n+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var C5={},p8e=/^[^:]+:\/*[^/]*$/,f8e=/^([^:]+:)[\s\S]*$/,h8e=/^([^:]+:\/*[^/]*)[\s\S]*$/;var w5={exec:function(){}};function Dse(n,r){var i=n.replace(/\|/g,function(a,s,l){for(var u=!1,d=s;--d>=0&&"\\"===l[d];)u=!u;return u?"|":" |"}).split(/ \|/),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function k5(n,r,e){var i=n.length;if(0===i)return"";for(var o=0;o<i;){var a=n.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return n.slice(0,i-o)}function Ase(n,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=n),r>>=1,n+=n;return e+n}function Ose(n,r,e,i){var o=r.href,a=r.title?Nl(r.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;var l={type:"link",raw:e,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:a,text:Nl(s)}}var pW=function(){function n(r){(0,U.Z)(this,n),this.options=r||xb}return(0,B.Z)(n,[{key:"space",value:function(e){var i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}},{key:"code",value:function(e){var i=this.rules.block.code.exec(e);if(i){var o=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:k5(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function v8e(n,r){var e=n.match(/^(\s+)(?:```)/);if(null===e)return r;var i=e[1];return r.split("\n").map(function(o){var a=o.match(/^\s+/);return null===a?o:(0,Nn.Z)(a,1)[0].length>=i.length?o.slice(i.length):o}).join("\n")}(o,i[3]||"");return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:a}}}},{key:"heading",value:function(e){var i=this.rules.block.heading.exec(e);if(i){var o=i[2].trim();if(/#$/.test(o)){var a=k5(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}},{key:"hr",value:function(e){var i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}},{key:"blockquote",value:function(e){var i=this.rules.block.blockquote.exec(e);if(i){var o=i[0].replace(/^ *>[ \t]?/gm,""),a=this.lexer.state.top;this.lexer.state.top=!0;var s=this.lexer.blockTokens(o);return this.lexer.state.top=a,{type:"blockquote",raw:i[0],tokens:s,text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,d,h,g,C,Z,z,q,re=i[1].trim(),ae=re.length>1,Se={type:"list",raw:"",ordered:ae,start:ae?+re.slice(0,-1):"",loose:!1,items:[]};re=ae?"\\d{1,9}\\".concat(re.slice(-1)):"\\".concat(re),this.options.pedantic&&(re=ae?re:"[*+-]");for(var Ce=new RegExp("^( {0,3}".concat(re,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Ce.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),g=i[2].split("\n",1)[0].replace(/^\t+/,function(Xe){return" ".repeat(3*Xe.length)}),C=e.split("\n",1)[0],this.options.pedantic?(l=2,z=g.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,z=g.slice(l),l+=i[1].length),d=!1,!g&&/^ *$/.test(C)&&(o+=C+"\n",e=e.substring(C.length+1),q=!0),!q)for(var xe=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),Ve=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),at=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:```|~~~)")),De=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));e&&(C=Z=e.split("\n",1)[0],this.options.pedantic&&(C=C.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(at.test(C)||De.test(C)||xe.test(C)||Ve.test(e)));){if(C.search(/[^ ]/)>=l||!C.trim())z+="\n"+C.slice(l);else{if(d||g.search(/[^ ]/)>=4||at.test(g)||De.test(g)||Ve.test(g))break;z+="\n"+C}!d&&!C.trim()&&(d=!0),o+=Z+"\n",e=e.substring(Z.length+1),g=C.slice(l)}Se.loose||(h?Se.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(z))&&(s="[ ] "!==a[0],z=z.replace(/^\[[ xX]\] +/,""))),Se.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:z}),Se.raw+=o}Se.items[Se.items.length-1].raw=o.trimRight(),Se.items[Se.items.length-1].text=z.trimRight(),Se.raw=Se.raw.trimRight();var ot=Se.items.length;for(u=0;u<ot;u++)if(this.lexer.state.top=!1,Se.items[u].tokens=this.lexer.blockTokens(Se.items[u].text,[]),!Se.loose){var ht=Se.items[u].tokens.filter(function(Xe){return"space"===Xe.type}),bt=ht.length>0&&ht.some(function(Xe){return/\n.*\n/.test(Xe.raw)});Se.loose=bt}if(Se.loose)for(u=0;u<ot;u++)Se.items[u].loose=!0;return Se}}},{key:"html",value:function(e){var i=this.rules.block.html.exec(e);if(i){var o={type:"html",raw:i[0],pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]};if(this.options.sanitize){var a=this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]);o.type="paragraph",o.text=a,o.tokens=this.lexer.inline(a)}return o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i){var o=i[1].toLowerCase().replace(/\s+/g," "),a=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:a,title:s}}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:Dse(i[1]).map(function(h){return{text:h}}),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(o.header.length===o.align.length){o.raw=i[0];var s,l,u,d,a=o.align.length;for(s=0;s<a;s++)/^ *-+: *$/.test(o.align[s])?o.align[s]="right":/^ *:-+: *$/.test(o.align[s])?o.align[s]="center":/^ *:-+ *$/.test(o.align[s])?o.align[s]="left":o.align[s]=null;for(a=o.rows.length,s=0;s<a;s++)o.rows[s]=Dse(o.rows[s],o.header.length).map(function(h){return{text:h}});for(a=o.header.length,l=0;l<a;l++)o.header[l].tokens=this.lexer.inline(o.header[l].text);for(a=o.rows.length,l=0;l<a;l++)for(d=o.rows[l],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i)return{type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o="\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Nl(i[1])}}},{key:"tag",value:function(e){var i=this.rules.inline.tag.exec(e);if(i)return!this.lexer.state.inLink&&/^<a /i.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Nl(i[0]):i[0]}}},{key:"link",value:function(e){var i=this.rules.inline.link.exec(e);if(i){var o=i[2].trim();if(!this.options.pedantic&&/^</.test(o)){if(!/>$/.test(o))return;var a=k5(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function _8e(n,r){if(-1===n.indexOf(r[1]))return-1;for(var e=n.length,i=0,o=0;o<e;o++)if("\\"===n[o])o++;else if(n[o]===r[0])i++;else if(n[o]===r[1]&&--i<0)return o;return-1}(i[2],"()");if(s>-1){var u=(0===i[0].indexOf("!")?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,u).trim(),i[3]=""}}var d=i[2],h="";if(this.options.pedantic){var g=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(d);g&&(d=g[1],h=g[3])}else h=i[3]?i[3].slice(1,-1):"";return d=d.trim(),/^</.test(d)&&(d=this.options.pedantic&&!/>$/.test(o)?d.slice(1):d.slice(1,-1)),Ose(i,{href:d&&d.replace(this.rules.inline._escapes,"$1"),title:h&&h.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}},{key:"reflink",value:function(e,i){var o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){var a=(o[2]||o[1]).replace(/\s+/g," ");if(!(a=i[a.toLowerCase()])){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return Ose(o,a,o[0],this.lexer)}}},{key:"emStrong",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(e);if(a&&(!a[3]||!o.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,d,l=a[0].length-1,h=l,g=0,C="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(C.lastIndex=0,i=i.slice(-1*e.length+l);null!=(a=C.exec(i));)if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(d=u.length,a[3]||a[4]){h+=d;continue}if((a[5]||a[6])&&l%3&&!((l+d)%3)){g+=d;continue}if(!((h-=d)>0)){d=Math.min(d,d+h+g);var Z=e.slice(0,l+a.index+(a[0].length-u.length)+d);if(Math.min(l,d)%2){var z=Z.slice(1,-1);return{type:"em",raw:Z,text:z,tokens:this.lexer.inlineTokens(z)}}var q=Z.slice(2,-2);return{type:"strong",raw:Z,text:q,tokens:this.lexer.inlineTokens(q)}}}}}}},{key:"codespan",value:function(e){var i=this.rules.inline.code.exec(e);if(i){var o=i[2].replace(/\n/g," "),a=/[^ ]/.test(o),s=/^ /.test(o)&&/ $/.test(o);return a&&s&&(o=o.substring(1,o.length-1)),o=Nl(o,!0),{type:"codespan",raw:i[0],text:o}}}},{key:"br",value:function(e){var i=this.rules.inline.br.exec(e);if(i)return{type:"br",raw:i[0]}}},{key:"del",value:function(e){var i=this.rules.inline.del.exec(e);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}},{key:"autolink",value:function(e,i){var a,s,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?s="mailto:"+(a=Nl(this.options.mangle?i(o[1]):o[1])):s=a=Nl(o[1]),{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(e,i){var o;if(o=this.rules.inline.url.exec(e)){var a,s;if("@"===o[2])s="mailto:"+(a=Nl(this.options.mangle?i(o[0]):o[0]));else{var l;do{l=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0]}while(l!==o[0]);a=Nl(o[0]),s="www."===o[1]?"http://"+o[0]:o[0]}return{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(e,i){var a,o=this.rules.inline.text.exec(e);if(o)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Nl(o[0]):o[0]:Nl(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),n}(),Zr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:w5,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Zr.def=Bo(Zr.def).replace("label",Zr._label).replace("title",Zr._title).getRegex(),Zr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Zr.listItemStart=Bo(/^( *)(bull) */).replace("bull",Zr.bullet).getRegex(),Zr.list=Bo(Zr.list).replace(/bull/g,Zr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Zr.def.source+")").getRegex(),Zr._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Zr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Zr.html=Bo(Zr.html,"i").replace("comment",Zr._comment).replace("tag",Zr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zr.paragraph=Bo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.blockquote=Bo(Zr.blockquote).replace("paragraph",Zr.paragraph).getRegex(),Zr.normal=Vr({},Zr),Zr.gfm=Vr(Vr({},Zr.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Zr.gfm.table=Bo(Zr.gfm.table).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.gfm.paragraph=Bo(Zr._paragraph).replace("hr",Zr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Zr.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zr._tag).getRegex(),Zr.pedantic=Vr(Vr({},Zr.normal),{},{html:Bo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Zr._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w5,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Bo(Zr.normal._paragraph).replace("hr",Zr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Zr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var hr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:w5,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:w5,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function y8e(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function Ise(n){var e,i,r="",o=n.length;for(e=0;e<o;e++)i=n.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}hr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",hr.punctuation=Bo(hr.punctuation).replace(/punctuation/g,hr._punctuation).getRegex(),hr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,hr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,hr._comment=Bo(Zr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),hr.emStrong.lDelim=Bo(hr.emStrong.lDelim).replace(/punct/g,hr._punctuation).getRegex(),hr.emStrong.rDelimAst=Bo(hr.emStrong.rDelimAst,"g").replace(/punct/g,hr._punctuation).getRegex(),hr.emStrong.rDelimUnd=Bo(hr.emStrong.rDelimUnd,"g").replace(/punct/g,hr._punctuation).getRegex(),hr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,hr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,hr._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,hr.autolink=Bo(hr.autolink).replace("scheme",hr._scheme).replace("email",hr._email).getRegex(),hr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,hr.tag=Bo(hr.tag).replace("comment",hr._comment).replace("attribute",hr._attribute).getRegex(),hr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,hr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,hr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,hr.link=Bo(hr.link).replace("label",hr._label).replace("href",hr._href).replace("title",hr._title).getRegex(),hr.reflink=Bo(hr.reflink).replace("label",hr._label).replace("ref",Zr._label).getRegex(),hr.nolink=Bo(hr.nolink).replace("ref",Zr._label).getRegex(),hr.reflinkSearch=Bo(hr.reflinkSearch,"g").replace("reflink",hr.reflink).replace("nolink",hr.nolink).getRegex(),hr.normal=Vr({},hr),hr.pedantic=Vr(Vr({},hr.normal),{},{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Bo(/^!?\[(label)\]\((.*?)\)/).replace("label",hr._label).getRegex(),reflink:Bo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hr._label).getRegex()}),hr.gfm=Vr(Vr({},hr.normal),{},{escape:Bo(hr.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),hr.gfm.url=Bo(hr.gfm.url,"i").replace("email",hr.gfm._extended_email).getRegex(),hr.breaks=Vr(Vr({},hr.gfm),{},{br:Bo(hr.br).replace("{2,}","*").getRegex(),text:Bo(hr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var vA=function(){function n(r){(0,U.Z)(this,n),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||xb,this.options.tokenizer=this.options.tokenizer||new pW,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var e={block:Zr.normal,inline:hr.normal};this.options.pedantic?(e.block=Zr.pedantic,e.inline=hr.pedantic):this.options.gfm&&(e.block=Zr.gfm,this.options.breaks?e.inline=hr.breaks:e.inline=hr.gfm),this.tokenizer.rules=e}return(0,B.Z)(n,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var i;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(g,C,Z){return C+" ".repeat(Z.length)});for(var a,s,l,u,h,d=function(){if(i.options.extensions&&i.options.extensions.block&&i.options.extensions.block.some(function(re){return!!(a=re.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.space(e))return e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a),0;if(a=i.tokenizer.code(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?o.push(a):(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.fences(e))||(a=i.tokenizer.heading(e))||(a=i.tokenizer.hr(e))||(a=i.tokenizer.blockquote(e))||(a=i.tokenizer.list(e))||(a=i.tokenizer.html(e)))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.def(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?i.tokens.links[a.tag]||(i.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.table(e))||(a=i.tokenizer.lheading(e)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startBlock){var z,C=1/0,Z=e.slice(1);i.options.extensions.startBlock.forEach(function(re){"number"==typeof(z=re.call({lexer:this},Z))&&z>=0&&(C=Math.min(C,z))}),C<1/0&&C>=0&&(l=e.substring(0,C+1))}if(i.state.top&&(a=i.tokenizer.paragraph(l)))return s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length),0;if(a=i.tokenizer.text(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),0;if(e){var q="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(q),1;throw new Error(q)}};e&&(0===(h=d())||1!==h););return this.state.top=!0,o}},{key:"inline",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:i}),i}},{key:"inlineTokens",value:function(e){var a,s,l,d,h,g,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var C=Object.keys(this.tokens.links);if(C.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(u));)C.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+Ase("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(d=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,d.index)+"["+Ase("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(d=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,d.index+d[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var z,Z=function(){if(h||(g=""),h=!1,i.options.extensions&&i.options.extensions.inline&&i.options.extensions.inline.some(function(xe){return!!(a=xe.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.escape(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.tag(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(a=i.tokenizer.link(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.reflink(e,i.tokens.links))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if((a=i.tokenizer.emStrong(e,u,g))||(a=i.tokenizer.codespan(e))||(a=i.tokenizer.br(e))||(a=i.tokenizer.del(e))||(a=i.tokenizer.autolink(e,Ise))||!i.state.inLink&&(a=i.tokenizer.url(e,Ise)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startInline){var Se,re=1/0,ae=e.slice(1);i.options.extensions.startInline.forEach(function(xe){"number"==typeof(Se=xe.call({lexer:this},ae))&&Se>=0&&(re=Math.min(re,Se))}),re<1/0&&re>=0&&(l=e.substring(0,re+1))}if(a=i.tokenizer.inlineText(l,y8e))return e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(g=a.raw.slice(-1)),h=!0,(s=o[o.length-1])&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(e){var Ce="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(Ce),1;throw new Error(Ce)}};e&&(0===(z=Z())||1!==z););return o}}],[{key:"rules",get:function(){return{block:Zr,inline:hr}}},{key:"lex",value:function(e,i){return new n(i).lex(e)}},{key:"lexInline",value:function(e,i){return new n(i).inlineTokens(e)}}]),n}(),fW=function(){function n(r){(0,U.Z)(this,n),this.options=r||xb}return(0,B.Z)(n,[{key:"code",value:function(e,i,o){var a=(i||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,a);null!=s&&s!==e&&(o=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+Nl(a)+'">'+(o?e:Nl(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Nl(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,i,o,a){if(this.options.headerIds){var s=this.options.headerPrefix+a.slug(o);return"<h".concat(i,' id="').concat(s,'">').concat(e,"</h").concat(i,">\n")}return"<h".concat(i,">").concat(e,"</h").concat(i,">\n")}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,i,o){var a=i?"ol":"ul";return"<"+a+(i&&1!==o?' start="'+o+'"':"")+">\n"+e+"</"+a+">\n"}},{key:"listitem",value:function(e){return"<li>".concat(e,"</li>\n")}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>".concat(e,"</p>\n")}},{key:"table",value:function(e,i){return i&&(i="<tbody>".concat(i,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+i+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n".concat(e,"</tr>\n")}},{key:"tablecell",value:function(e,i){var o=i.header?"th":"td";return(i.align?"<".concat(o,' align="').concat(i.align,'">'):"<".concat(o,">"))+e+"</".concat(o,">\n")}},{key:"strong",value:function(e){return"<strong>".concat(e,"</strong>")}},{key:"em",value:function(e){return"<em>".concat(e,"</em>")}},{key:"codespan",value:function(e){return"<code>".concat(e,"</code>")}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>".concat(e,"</del>")}},{key:"link",value:function(e,i,o){if(null===(e=Ese(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+e+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=Ese(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<img src="'.concat(e,'" alt="').concat(o,'"');return i&&(a+=' title="'.concat(i,'"')),a+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),n}(),Pse=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,i,o){return""+o}},{key:"image",value:function(e,i,o){return""+o}},{key:"br",value:function(){return""}}]),n}(),Rse=function(){function n(){(0,U.Z)(this,n),this.seen={}}return(0,B.Z)(n,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,i){var o=e,a=0;if(this.seen.hasOwnProperty(o)){a=this.seen[e];do{o=e+"-"+ ++a}while(this.seen.hasOwnProperty(o))}return i||(this.seen[e]=a,this.seen[o]=0),o}},{key:"slug",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.serialize(e);return this.getNextSafeSlug(o,i.dryrun)}}]),n}(),yA=function(){function n(r){(0,U.Z)(this,n),this.options=r||xb,this.options.renderer=this.options.renderer||new fW,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pse,this.slugger=new Rse}return(0,B.Z)(n,[{key:"parse",value:function(e){var a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,xe,Ve,at,De,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",ot=e.length;for(a=0;a<ot;a++)if(z=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[z.type]&&(!1!==(De=this.options.extensions.renderers[z.type].call({parser:this},z))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(z.type)))o+=De||"";else switch(z.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(z.tokens),z.depth,xse(this.parseInline(z.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(z.text,z.lang,z.escaped);continue;case"table":for(C="",g="",u=z.header.length,s=0;s<u;s++)g+=this.renderer.tablecell(this.parseInline(z.header[s].tokens),{header:!0,align:z.align[s]});for(C+=this.renderer.tablerow(g),Z="",u=z.rows.length,s=0;s<u;s++){for(g="",d=(h=z.rows[s]).length,l=0;l<d;l++)g+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:z.align[l]});Z+=this.renderer.tablerow(g)}o+=this.renderer.table(C,Z);continue;case"blockquote":Z=this.parse(z.tokens),o+=this.renderer.blockquote(Z);continue;case"list":for(q=z.ordered,re=z.start,ae=z.loose,u=z.items.length,Z="",s=0;s<u;s++)xe=(Ce=z.items[s]).checked,Ve=Ce.task,Se="",Ce.task&&(at=this.renderer.checkbox(xe),ae?Ce.tokens.length>0&&"paragraph"===Ce.tokens[0].type?(Ce.tokens[0].text=at+" "+Ce.tokens[0].text,Ce.tokens[0].tokens&&Ce.tokens[0].tokens.length>0&&"text"===Ce.tokens[0].tokens[0].type&&(Ce.tokens[0].tokens[0].text=at+" "+Ce.tokens[0].tokens[0].text)):Ce.tokens.unshift({type:"text",text:at}):Se+=at),Se+=this.parse(Ce.tokens,ae),Z+=this.renderer.listitem(Se,Ve,xe);o+=this.renderer.list(Z,q,re);continue;case"html":o+=this.renderer.html(z.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(z.tokens));continue;case"text":for(Z=z.tokens?this.parseInline(z.tokens):z.text;a+1<ot&&"text"===e[a+1].type;)Z+="\n"+((z=e[++a]).tokens?this.parseInline(z.tokens):z.text);o+=i?this.renderer.paragraph(Z):Z;continue;default:var ht='Token with "'+z.type+'" type was not found.';if(this.options.silent)return void console.error(ht);throw new Error(ht)}return o}},{key:"parseInline",value:function(e,i){i=i||this.renderer;var a,s,l,o="",u=e.length;for(a=0;a<u;a++)if(s=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(!1!==(l=this.options.extensions.renderers[s.type].call({parser:this},s))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)))o+=l||"";else switch(s.type){case"escape":case"text":o+=i.text(s.text);break;case"html":o+=i.html(s.text);break;case"link":o+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break;case"image":o+=i.image(s.href,s.title,s.text);break;case"strong":o+=i.strong(this.parseInline(s.tokens,i));break;case"em":o+=i.em(this.parseInline(s.tokens,i));break;case"codespan":o+=i.codespan(s.text);break;case"br":o+=i.br();break;case"del":o+=i.del(this.parseInline(s.tokens,i));break;default:var d='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(d);throw new Error(d)}return o}}],[{key:"parse",value:function(e,i){return new n(i).parse(e)}},{key:"parseInline",value:function(e,i){return new n(i).parseInline(e)}}]),n}(),T5=function(){function n(r){(0,U.Z)(this,n),this.options=r||xb}return(0,B.Z)(n,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),n}();function Lse(n,r){return function(e,i,o){"function"==typeof i&&(o=i,i=null);var a=Vr({},i),s=function b8e(n,r,e){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){var o="<p>An error occurred:</p><pre>"+Nl(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):e?void e(null,o):o}if(r)return Promise.reject(i);if(!e)throw i;e(i)}}((i=Vr(Vr({},Nr.defaults),a)).silent,i.async,o);if(null==e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function g8e(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),o){var u,l=i.highlight;try{i.hooks&&(e=i.hooks.preprocess(e)),u=n(e,i)}catch(Z){return s(Z)}var d=function(z){var q;if(!z)try{i.walkTokens&&Nr.walkTokens(u,i.walkTokens),q=r(u,i),i.hooks&&(q=i.hooks.postprocess(q))}catch(re){z=re}return i.highlight=l,z?s(z):o(null,q)};if(!l||l.length<3||(delete i.highlight,!u.length))return d();var h=0;return Nr.walkTokens(u,function(Z){"code"===Z.type&&(h++,setTimeout(function(){l(Z.text,Z.lang,function(z,q){if(z)return d(z);null!=q&&q!==Z.text&&(Z.text=q,Z.escaped=!0),0===--h&&d()})},0))}),void(0===h&&d())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(function(Z){return n(Z,i)}).then(function(Z){return i.walkTokens?Promise.all(Nr.walkTokens(Z,i.walkTokens)).then(function(){return Z}):Z}).then(function(Z){return r(Z,i)}).then(function(Z){return i.hooks?i.hooks.postprocess(Z):Z}).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));var g=n(e,i);i.walkTokens&&Nr.walkTokens(g,i.walkTokens);var C=r(g,i);return i.hooks&&(C=i.hooks.postprocess(C)),C}catch(Z){return s(Z)}}}function Nr(n,r,e){return Lse(vA.lex,yA.parse)(n,r,e)}(0,Gw.Z)(T5,"passThroughHooks",new Set(["preprocess","postprocess"])),Nr.options=Nr.setOptions=function(n){return Nr.defaults=Vr(Vr({},Nr.defaults),n),function i8e(n){xb=n}(Nr.defaults),Nr},Nr.getDefaults=kse,Nr.defaults=xb,Nr.use=function(){for(var n=Nr.defaults.extensions||{renderers:{},childTokens:{}},r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];e.forEach(function(o){var a=Vr({},o);if(a.async=Nr.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach(function(re){if(!re.name)throw new Error("extension name required");if(re.renderer){var ae=n.renderers[re.name];n.renderers[re.name]=ae?function(){for(var Se=arguments.length,Ce=new Array(Se),xe=0;xe<Se;xe++)Ce[xe]=arguments[xe];var Ve=re.renderer.apply(this,Ce);return!1===Ve&&(Ve=ae.apply(this,Ce)),Ve}:re.renderer}if(re.tokenizer){if(!re.level||"block"!==re.level&&"inline"!==re.level)throw new Error("extension level must be 'block' or 'inline'");n[re.level]?n[re.level].unshift(re.tokenizer):n[re.level]=[re.tokenizer],re.start&&("block"===re.level?n.startBlock?n.startBlock.push(re.start):n.startBlock=[re.start]:"inline"===re.level&&(n.startInline?n.startInline.push(re.start):n.startInline=[re.start]))}re.childTokens&&(n.childTokens[re.name]=re.childTokens)}),a.extensions=n),o.renderer){var s=Nr.defaults.renderer||new fW,l=function(ae){var Se=s[ae];s[ae]=function(){for(var Ce=arguments.length,xe=new Array(Ce),Ve=0;Ve<Ce;Ve++)xe[Ve]=arguments[Ve];var at=o.renderer[ae].apply(s,xe);return!1===at&&(at=Se.apply(s,xe)),at}};for(var u in o.renderer)l(u);a.renderer=s}if(o.tokenizer){var d=Nr.defaults.tokenizer||new pW,h=function(ae){var Se=d[ae];d[ae]=function(){for(var Ce=arguments.length,xe=new Array(Ce),Ve=0;Ve<Ce;Ve++)xe[Ve]=arguments[Ve];var at=o.tokenizer[ae].apply(d,xe);return!1===at&&(at=Se.apply(d,xe)),at}};for(var g in o.tokenizer)h(g);a.tokenizer=d}if(o.hooks){var C=Nr.defaults.hooks||new T5,Z=function(ae){var Se=C[ae];T5.passThroughHooks.has(ae)?C[ae]=function(Ce){if(Nr.defaults.async)return Promise.resolve(o.hooks[ae].call(C,Ce)).then(function(Ve){return Se.call(C,Ve)});var xe=o.hooks[ae].call(C,Ce);return Se.call(C,xe)}:C[ae]=function(){for(var Ce=arguments.length,xe=new Array(Ce),Ve=0;Ve<Ce;Ve++)xe[Ve]=arguments[Ve];var at=o.hooks[ae].apply(C,xe);return!1===at&&(at=Se.apply(C,xe)),at}};for(var z in o.hooks)Z(z);a.hooks=C}if(o.walkTokens){var q=Nr.defaults.walkTokens;a.walkTokens=function(re){var ae=[];return ae.push(o.walkTokens.call(this,re)),q&&(ae=ae.concat(q.call(this,re))),ae}}Nr.setOptions(a)})},Nr.walkTokens=function(n,r){var o,e=[],i=(0,xn.Z)(n);try{var a=function(){var l=o.value;switch(e=e.concat(r.call(Nr,l)),l.type){case"table":var d,u=(0,xn.Z)(l.header);try{for(u.s();!(d=u.n()).done;){var h=d.value;e=e.concat(Nr.walkTokens(h.tokens,r))}}catch(ae){u.e(ae)}finally{u.f()}var C,g=(0,xn.Z)(l.rows);try{for(g.s();!(C=g.n()).done;){var q,Z=C.value,z=(0,xn.Z)(Z);try{for(z.s();!(q=z.n()).done;){var re=q.value;e=e.concat(Nr.walkTokens(re.tokens,r))}}catch(ae){z.e(ae)}finally{z.f()}}}catch(ae){g.e(ae)}finally{g.f()}break;case"list":e=e.concat(Nr.walkTokens(l.items,r));break;default:Nr.defaults.extensions&&Nr.defaults.extensions.childTokens&&Nr.defaults.extensions.childTokens[l.type]?Nr.defaults.extensions.childTokens[l.type].forEach(function(ae){e=e.concat(Nr.walkTokens(l[ae],r))}):l.tokens&&(e=e.concat(Nr.walkTokens(l.tokens,r)))}};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}return e},Nr.parseInline=Lse(vA.lexInline,yA.parseInline),Nr.Parser=yA,Nr.parser=yA.parse,Nr.Renderer=fW,Nr.TextRenderer=Pse,Nr.Lexer=vA,Nr.lexer=vA.lex,Nr.Tokenizer=pW,Nr.Slugger=Rse,Nr.Hooks=T5,Nr.parse=Nr;Nr.options,Nr.setOptions,Nr.use,Nr.walkTokens,Nr.parseInline,yA.parse,vA.lex;var bA=function(){function n(r,e){(0,U.Z)(this,n),this.elementRef=r,this.renderer=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.updateText()}},{key:"ngOnChanges",value:function(){this.updateText()}},{key:"updateText",value:function(){var e=this.text;if(e&&e.length>0){var i=Nr(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),n}();function C8e(n,r){if(1&n&&(t.TgZ(0,"span"),t._UZ(1,"div",4),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.s9C("text",e.markdown)}}bA.\u0275fac=function(r){return new(r||bA)(t.Y36(t.SBq),t.Y36(t.Qsj))},bA.\u0275dir=t.lG2({type:bA,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[t.TTD]});var CA=function(){function n(r){(0,U.Z)(this,n),this.projectService=r,this.markdown=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe({next:function(o){o&&(e.markdown=o)},error:function(o){404===o.status&&(e.markdown="")}})}}]),n}();CA.\u0275fac=function(r){return new(r||CA)(t.Y36(zs.Y))},CA.\u0275cmp=t.Xpm({type:CA,selectors:[["app-readme-editor"]],inputs:{controller:"controller",project:"project"},decls:5,vars:2,consts:[["label","Edit"],["matInput","","type","text",1,"editorWrapper",3,"ngModel","ngModelChange"],["label","Preview"],[4,"ngIf"],["appMarked","",1,"textWrapper",3,"text"]],template:function(r,e){1&r&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),t.NdJ("ngModelChange",function(o){return e.markdown=o}),t.qZA()(),t.TgZ(3,"mat-tab",2),t.YNc(4,C8e,2,1,"span",3),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngModel",e.markdown),t.xp6(2),t.Q6J("ngIf",e.markdown))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,Kn,Zi.SP,Zi.uX,bA],styles:[".textWrapper,.editorWrapper{height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var w8e=["editor"];function k8e(n,r){if(1&n&&(t.TgZ(0,"mat-tab",27),t._UZ(1,"app-readme-editor",28,29),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function T8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Name"),t.qZA())}function M8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.name," ")}}function S8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Value"),t.qZA())}function x8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.value)}}function E8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Actions"),t.qZA())}function D8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",31)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteVariable(a))}),t.TgZ(2,"mat-icon",33),t._uU(3,"delete"),t.qZA()()()}}function A8e(n,r){1&n&&t._UZ(0,"tr",34)}function O8e(n,r){1&n&&t._UZ(0,"tr",35)}var M5=function(){return{standalone:!0}},wA=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,a.get]),height:new J.p4("",[J.kI.required,a.get]),nodeGridSize:new J.p4("",[J.kI.required,a.get]),drawingGridSize:new J.p4("",[J.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new J.p4("",[J.kI.required]),value:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(i){return e.variables.push(i)}),this.auto_close=!this.project.auto_close}},{key:"addVariable",value:function(){if(this.variableFormGroup.valid){var e={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([e])}else this.toasterService.error("Fill all required fields with correct values.")}},{key:"deleteVariable",value:function(e){this.variables=this.variables.filter(function(i){return i!==e})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.controller,this.project).subscribe(function(i){e.projectService.postReadmeFile(e.controller,e.project.project_id,e.editor.markdown).subscribe(function(o){e.toasterService.success("Project ".concat(i.name," updated.")),e.onNoClick()})})):this.toasterService.error("Fill all required fields with correct values.")}}]),n}();function I8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function P8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}wA.\u0275fac=function(r){return new(r||wA)(t.Y36(lr),t.Y36(J.QS),t.Y36(zs.Y),t.Y36(Pn),t.Y36(gp))},wA.\u0275cmp=t.Xpm({type:wA,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(w8e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.editor=i.first))},decls:50,vars:18,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Readme",4,"ngIf"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Readme"],[3,"controller","project"],["editor",""],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Edit project"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",4),t._UZ(9,"input",6),t.qZA(),t.TgZ(10,"mat-form-field",4),t._UZ(11,"input",7),t.qZA(),t.TgZ(12,"mat-form-field",4),t._UZ(13,"input",8),t.qZA(),t.TgZ(14,"mat-form-field",4),t._UZ(15,"input",9),t.qZA()(),t.TgZ(16,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),t._uU(17," Open this project in the background when GNS3 controller starts "),t.qZA(),t.TgZ(18,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),t._uU(19," Start all nodes when this project is opened "),t.qZA(),t.TgZ(20,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.auto_close=o}),t._uU(21," Leave this project running in the background after closing "),t.qZA(),t.TgZ(22,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),t._uU(23," Show interface labels at start "),t.qZA()(),t.YNc(24,k8e,3,2,"mat-tab",11),t.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),t._UZ(28,"input",13),t.qZA(),t.TgZ(29,"mat-form-field",4),t._UZ(30,"input",14),t.qZA()(),t.TgZ(31,"button",15),t.NdJ("click",function(){return e.addVariable()}),t._uU(32,"Add variable"),t.qZA(),t.TgZ(33,"table",16),t.ynx(34,17),t.YNc(35,T8e,2,0,"th",18),t.YNc(36,M8e,2,1,"td",19),t.BQk(),t.ynx(37,20),t.YNc(38,S8e,2,0,"th",18),t.YNc(39,x8e,2,1,"td",19),t.BQk(),t.ynx(40,21),t.YNc(41,E8e,2,0,"th",18),t.YNc(42,D8e,4,0,"td",19),t.BQk(),t.YNc(43,A8e,1,0,"tr",22),t.YNc(44,O8e,1,0,"tr",23),t.qZA()()()(),t.TgZ(45,"div",24)(46,"button",25),t.NdJ("click",function(){return e.onNoClick()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",26),t.NdJ("click",function(){return e.onYesClick()}),t._uU(49,"Apply"),t.qZA()()),2&r&&(t.xp6(5),t.Q6J("formGroup",e.formGroup),t.xp6(11),t.Q6J("ngModelOptions",t.DdM(14,M5))("ngModel",e.project.auto_open),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,M5))("ngModel",e.project.auto_start),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,M5))("ngModel",e.auto_close),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,M5))("ngModel",e.project.show_interface_labels),t.xp6(2),t.Q6J("ngIf",e.controller&&e.project),t.xp6(2),t.Q6J("formGroup",e.variableFormGroup),t.xp6(7),t.Q6J("dataSource",e.variables),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,yr,ur,ei,ai,Zi.SP,Zi.uX,CA],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]});var R8e=function(r){return{empty:r}},L8e=function(r){return{"is-invalid":r}},Kk=function(){function n(r,e,i,o,a,s,l,u,d){(0,U.Z)(this,n),this.dialog=r,this.dialogRef=e,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.toasterService=l,this.uploadServiceService=u,this.snackBar=d,this.uploadProgress=0,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){var l=JSON.parse(o);e.resultMessage="An error has occurred: "+l.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(i,o,a,s){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0},this.uploader.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"uploadProjectFile",value:function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0}},{key:"onImportClick",value:function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.importProject()})}},{key:"importProject",value:function(){var e=this.prepareUploadPath();this.uploader.queue.forEach(function(o){return o.url=e}),this.uploader.authToken="Bearer ".concat(this.controller.authToken),this.isFirstStepCompleted=!0;var i=this.uploader.queue[0];this.uploader.uploadItem(i),this.snackBar.openFromComponent(km,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Vk,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.importProject()})})})}},{key:"onNoClick",value:function(){this.uploader.cancelAll(),this.dialogRef.close(!1)}},{key:"onFinishClick",value:function(){this.dialogRef.close(!1)}},{key:"onDeleteClick",value:function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")}},{key:"prepareUploadPath",value:function(){this.uuid=ts();var e=this.projectNameForm.controls.projectName.value;return this.projectService.getUploadPath(this.controller,this.uuid,e)}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1),this.isFirstStepCompleted=!1,this.uploader.cancelAll(),this.dialogRef.close(!0)}}]),n}();Kk.\u0275fac=function(r){return new(r||Kk)(t.Y36(Hr),t.Y36(lr),t.Y36(go),t.Y36(J.QS),t.Y36(zs.Y),t.Y36(Gu),t.Y36(Pn),t.Y36(id),t.Y36(td))},Kk.\u0275cmp=t.Xpm({type:Kk,selectors:[["app-import-project-dialog"]],features:[t._Bn([Gu])],decls:27,vars:16,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Import project"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),t.NdJ("change",function(a){return e.uploadProjectFile(a)}),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(5);return t.KtG(a.click())}),t._uU(7," Choose file "),t.qZA(),t.TgZ(8,"mat-form-field",6),t._UZ(9,"input",7),t.YNc(10,I8e,2,0,"mat-error",8),t.YNc(11,P8e,2,0,"mat-error",8),t.qZA(),t.TgZ(12,"button",9)(13,"mat-icon",10),t.NdJ("click",function(){return e.onDeleteClick()}),t._uU(14,"clear"),t.qZA()(),t.TgZ(15,"div",11)(16,"button",12),t.NdJ("click",function(){return e.onNoClick()}),t._uU(17,"Cancel"),t.qZA(),t.TgZ(18,"button",13),t.NdJ("click",function(){return e.onImportClick()}),t._uU(19," Import "),t.qZA()()()(),t.TgZ(20,"div",1)(21,"div",14)(22,"span"),t._uU(23),t.qZA()(),t.TgZ(24,"div",11)(25,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(26," Finish "),t.qZA()()()}2&r&&(t.xp6(2),t.Q6J("hidden",e.isFirstStepCompleted),t.xp6(1),t.Q6J("formGroup",e.projectNameForm),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(4),t.Q6J("ngClass",t.VKq(12,R8e,!e.isDeleteVisible)),t.xp6(1),t.Q6J("ngClass",t.VKq(14,L8e,e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),t.xp6(1),t.Q6J("hidden",!e.isDeleteVisible),t.xp6(6),t.Q6J("disabled",!e.isImportEnabled),t.xp6(2),t.Q6J("hidden",!e.isFirstStepCompleted),t.xp6(3),t.Oqu(e.resultMessage),t.xp6(2),t.Q6J("disabled",!e.isFinishEnabled))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,Mf,kn.TO,kn.KE,cn,Dn,Kn,yr,ur,ai],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']});var Z8e=function(r){return{lightTheme:r}},qk=function(){function n(r,e){(0,U.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();function N8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function B8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}qk.\u0275fac=function(r){return new(r||qk)(t.Y36(b5),t.Y36(Cc.f))},qk.\u0275cmp=t.Xpm({type:qk,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,Z8e,e.isLightThemeEnabled)),t.xp6(2),t.hij("Do you want to navigate to ",e.projectMessage,"?"))},dependencies:[ge.mk,cn],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]});var F8e=function(r){return{"is-invalid":r}},kA=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Project with this name already exists."):e.nodesDataSource.getItems().filter(function(s){return"started"===s.status&&"vpcs"===s.node_type||"started"===s.status&&"virtualbox"===s.node_type||"started"===s.status&&"vmware"===s.node_type}).length>0?e.toasterService.error("Please stop all nodes in order to save project."):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added"))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();kA.\u0275fac=function(r){return new(r||kA)(t.Y36(lr),t.Y36(zs.Y),t.Y36(Ya.G),t.Y36(Pn),t.Y36(J.QS),t.Y36(Gu))},kA.\u0275cmp=t.Xpm({type:kA,selectors:[["app-save-project-dialog"]],features:[t._Bn([Gu])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,N8e,2,0,"mat-error",4),t.YNc(6,B8e,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(11,"Save project"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,F8e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Ir=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getNodeById",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/nodes/").concat(o))}},{key:"isolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/isolate"),{})}},{key:"unisolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/unisolate"),{})}},{key:"start",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/start"),{})}},{key:"startAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/start"),{})}},{key:"stop",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/stop"),{})}},{key:"stopAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/stop"),{})}},{key:"suspend",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/suspend"),{})}},{key:"suspendAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/suspend"),{})}},{key:"reload",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/reload"),{})}},{key:"reloadAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/reload"),{})}},{key:"resetAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/console/reset"),{})}},{key:"createFromTemplate",value:function(e,i,o,a,s,l){return l?this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:l}):this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:"local"})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(l=Math.round((l+o.width/2)/i.grid_size)*i.grid_size,u=Math.round((u+o.height/2)/i.grid_size)*i.grid_size,l=Math.round(l-o.width/2),u=Math.round(u-o.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/nodes/").concat(o.node_id),{x:l,y:u})}},{key:"updateLabel",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{label:{rotation:o.rotation,style:o.style,text:o.text,x:Math.round(o.x),y:Math.round(o.y)}})}},{key:"updateSymbol",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{symbol:o})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"updateNode",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,locked:i.locked,name:i.name,properties:i.properties})}},{key:"updateNodeWithCustomAdapters",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,custom_adapters:i.custom_adapters,name:i.name,properties:i.properties})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"duplicate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/duplicate"),{x:i.x+10,y:i.y+10,z:i.z})}},{key:"getNode",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"getDefaultCommand",value:function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'}},{key:"getNetworkConfiguration",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),{responseType:"text"})}},{key:"saveNetworkConfiguration",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),o)}},{key:"getStartupConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?o+="/files/startup.vpc":"iou"===i.node_type?o+="/files/startup-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.properties.dynamips_id,"_startup-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"getPrivateConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?o+="/files/private-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.properties.dynamips_id,"_private-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"saveConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?a+="/files/startup.vpc":"iou"===i.node_type?a+="/files/startup-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.properties.dynamips_id,"_startup-config.cfg")),this.httpController.post(e,a,o)}},{key:"savePrivateConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?a+="/files/private-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.properties.dynamips_id,"_private-config.cfg")),this.httpController.post(e,a,o)}},{key:"getIdlePCProposals",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/dynamips/idlepc_proposals"))}},{key:"getAutoIdlePC",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/dynamips/auto_idlepc"))}}]),n}();function U8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start"),t.qZA()()}}Ir.\u0275fac=function(r){return new(r||Ir)(t.LFG(mo.zw))},Ir.\u0275prov=t.Yz7({token:Ir,factory:Ir.\u0275fac});var TA=function(){function n(r,e){(0,U.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(o){("stopped"===o.status||"suspended"===o.status)&&(i.isNodeWithStoppedStatus=!0)}))}},{key:"startNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.start(e.controller,i).subscribe(function(o){},function(o){e.toasterService.error(o.error.message)})})}}]),n}();TA.\u0275fac=function(r){return new(r||TA)(t.Y36(Ir),t.Y36(Pn))},TA.\u0275cmp=t.Xpm({type:TA,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,U8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStoppedStatus)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var MA=function(){function n(r,e){(0,U.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"isolate",value:function(){var e=this;this.nodeService.isolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();MA.\u0275fac=function(r){return new(r||MA)(t.Y36(Ir),t.Y36(Pn))},MA.\u0275cmp=t.Xpm({type:MA,selectors:[["app-isolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.isolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_off"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Isolate"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var SA=function(){function n(r,e){(0,U.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"unisolate",value:function(){var e=this;this.nodeService.unisolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();function H8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"stop"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop"),t.qZA()()}}SA.\u0275fac=function(r){return new(r||SA)(t.Y36(Ir),t.Y36(Pn))},SA.\u0275cmp=t.Xpm({type:SA,selectors:[["app-unisolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.unisolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_not_fixed"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Un-isolate"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var xA=function(){function n(r){(0,U.Z)(this,n),this.nodeService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"stopNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.stop(e.controller,i).subscribe(function(o){})})}}]),n}();xA.\u0275fac=function(r){return new(r||xA)(t.Y36(Ir))},xA.\u0275cmp=t.Xpm({type:xA,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,H8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var va=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(jB.o);va.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(va)))(e||va)}}(),va.\u0275prov=t.Yz7({token:va,factory:va.\u0275fac});var Ka=function(){function n(r,e){(0,U.Z)(this,n),this.httpController=r,this.svgToDrawingConverter=e}return(0,B.Z)(n,[{key:"add",value:function(e,i,o,a,s){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:s,x:Math.round(o),y:Math.round(a),z:1})}},{key:"duplicate",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:o.svg,rotation:o.rotation,x:o.x+10,y:o.y+10,z:o.z})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(o.element=this.svgToDrawingConverter.convert(o.svg),l=Math.round((l+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,u=Math.round((u+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,l=Math.round(l-o.element.width/2),u=Math.round(u-o.element.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/drawings/").concat(o.drawing_id),{x:l,y:u})}},{key:"updateSizeAndPosition",value:function(e,i,o,a,s){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:s,x:Math.round(o),y:Math.round(a)})}},{key:"updateText",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:o,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{locked:i.locked,svg:i.svg,rotation:i.rotation,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id))}},{key:"lockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/lock"),{})}},{key:"unLockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/unlock"),{})}}]),n}();Ka.\u0275fac=function(r){return new(r||Ka)(t.LFG(mo.zw),t.LFG(Wf))},Ka.\u0275prov=t.Yz7({token:Ka,factory:Ka.\u0275fac});var EA=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerDown",value:function(){var e=this;this.nodes.forEach(function(i){i.z--,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z--,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();EA.\u0275fac=function(r){return new(r||EA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Ir),t.Y36(Ka))},EA.\u0275cmp=t.Xpm({type:EA,selectors:[["app-move-layer-down-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerDown()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_down"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer down"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var DA=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerUp",value:function(){var e=this;this.nodes.forEach(function(i){i.z++,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z++,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();DA.\u0275fac=function(r){return new(r||DA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Ir),t.Y36(Ka))},DA.\u0275cmp=t.Xpm({type:DA,selectors:[["app-move-layer-up-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerUp()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_up"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer up"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var hd=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i,o="";if(e.element instanceof hp)o="".concat(""==e.element.stroke_dasharray?'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'):'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'));else if(e.element instanceof ea)o="".concat(""==e.element.stroke_dasharray?'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'"/>'):'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" />'));else if(e.element instanceof gb)o='<line stroke="'.concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" x1="').concat(e.element.x1,'" x2="').concat(e.element.x2,'" y1="').concat(e.element.y1,'" y2="').concat(e.element.y2,'" stroke-dasharray="').concat(null!==(i=e.element.stroke_dasharray)&&void 0!==i?i:"none",'" />');else{if(!(e.element instanceof vb))return"";o='<text fill="'.concat(e.element.fill,'" fill-opacity="1.0" font-family="').concat(e.element.font_family,'" font-size="').concat(e.element.font_size,'" font-weight="').concat(e.element.font_weight,'">').concat(e.element.text,"</text>")}return'<svg height="'.concat(e.element.height,'" width="').concat(e.element.width,'">').concat(o,"</svg>")}}]),n}();hd.\u0275fac=function(r){return new(r||hd)},hd.\u0275prov=t.Yz7({token:hd,factory:hd.\u0275fac});var ev=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),n}();ev.\u0275fac=function(r){return new(r||ev)},ev.\u0275prov=t.Yz7({token:ev,factory:ev.\u0275fac});var Jk=function(){return{standalone:!0}};function j8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.fill=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Jk))("ngModel",i.element.fill)}}function G8e(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.value),t.xp6(1),t.hij(" ",e.name," ")}}function z8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.width=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Jk))("ngModel",i.element.width)}}function W8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.height=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Jk))("ngModel",i.element.height)}}function V8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.rx=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Jk))("ngModel",i.element.rx)}}var AA=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=l,this.nonNegativeValidator=u,this.rotationValidator=d,this.qtDasharrayFixer=h,this.borderTypes=[{qt:"none",value:"none",name:"Solid"},{qt:"10, 2",value:"25, 25",name:"Dash"},{qt:"4, 2",value:"5, 25",name:"Dot"},{qt:"12, 3, 5, 3",value:"5, 25, 25",name:"Dash Dot"},{qt:"12, 3, 5, 3, 5, 3",value:"25, 25, 5, 25, 5",name:"Dash Dot Dot"},{qt:"",value:"",name:"No border"}],this.formGroup=this.formBuilder.group({borderWidth:new J.p4("",[J.kI.required,u.get]),rotation:new J.p4("",[J.kI.required,d.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e,i;this.element=new Y8e,this.drawing.element instanceof hp||this.drawing.element instanceof ea?(this.element.fill=this.drawing.element.fill,this.element.width=this.drawing.element.width,this.element.height=this.drawing.element.height,this.element.stroke=this.drawing.element.stroke,console.log(this.drawing.element.stroke_dasharray,this.drawing.element.stroke_width),this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(e=this.drawing.element.stroke_dasharray)&&void 0!==e?e:"none",this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof gb&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(i=this.drawing.element.stroke_dasharray)&&void 0!==i?i:"none",this.element.stroke_width=this.drawing.element.stroke_width),this.drawing.element instanceof hp&&(this.element.rx=this.drawing.element.rx,this.element.ry=this.drawing.element.ry),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var i,o,e=this;if(this.formGroup.valid){""==this.element.stroke_dasharray?this.element.stroke_width=0:this.element.stroke_width=0===this.formGroup.get("borderWidth").value?2:this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof hp||this.drawing.element instanceof ea?(this.drawing.element.fill=this.element.fill,this.drawing.element.width=this.element.width,this.drawing.element.height=this.element.height,this.drawing.element.stroke=null!==(i=this.element.stroke)&&void 0!==i?i:"#000000",this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof gb&&(""!=this.element.stroke_dasharray?(this.drawing.element.stroke=null!==(o=this.element.stroke)&&void 0!==o?o:"#000000",this.drawing.element.stroke_dasharray=""===this.element.stroke_dasharray?"none":this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width):this.toasterService.warning("No border style line element not supported"),this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width),this.drawing.element instanceof hp&&(this.drawing.element.rx=this.element.rx,this.drawing.element.ry=this.element.rx);var a=this.drawingToMapDrawingConverter.convert(this.drawing);a.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(a),this.drawingService.update(this.controller,this.drawing).subscribe(function(s){e.drawingsDataSource.update(s),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();AA.\u0275fac=function(r){return new(r||AA)(t.Y36(lr),t.Y36(Zm),t.Y36(hd),t.Y36(Ka),t.Y36(va),t.Y36(J.QS),t.Y36(Pn),t.Y36(gp),t.Y36(ev),t.Y36(ju))},AA.\u0275cmp=t.Xpm({type:AA,selectors:[["app-style-editor"]],decls:22,vars:12,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number","min","0","max","100"],["placeholder","Border style",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","placeholder","Width","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Height","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Corner radius","type","number","min","0","max","100",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2),t.YNc(4,j8e,2,3,"mat-form-field",3),t.TgZ(5,"mat-form-field",4)(6,"input",5),t.NdJ("ngModelChange",function(o){return e.element.stroke=o}),t.qZA()(),t.TgZ(7,"mat-form-field",4),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-form-field",4)(10,"mat-select",7),t.NdJ("ngModelChange",function(o){return e.element.stroke_dasharray=o}),t.YNc(11,G8e,2,2,"mat-option",8),t.qZA()(),t.YNc(12,z8e,2,3,"mat-form-field",3),t.YNc(13,W8e,2,3,"mat-form-field",3),t.YNc(14,V8e,2,3,"mat-form-field",3),t.TgZ(15,"mat-form-field",4),t._UZ(16,"input",9),t.qZA()()(),t.TgZ(17,"div",10)(18,"button",11),t.NdJ("click",function(){return e.onNoClick()}),t._uU(19,"Cancel"),t.qZA(),t.TgZ(20,"button",12),t.NdJ("click",function(){return e.onYesClick()}),t._uU(21,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.fill),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(10,Jk))("ngModel",e.element.stroke),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(11,Jk))("ngModel",e.element.stroke_dasharray),t.xp6(1),t.Q6J("ngForOf",e.borderTypes),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.width),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.height),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.rx))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,cn,Kn,yr,ur,$r.gD,Wt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var Y8e=(0,B.Z)(function n(){(0,U.Z)(this,n)});function K8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editStyle())}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()()}}var OA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r,this.isImageDrawing=!1}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof y5}},{key:"editStyle",value:function(){var i=this.dialog.open(AA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),n}();function q8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}OA.\u0275fac=function(r){return new(r||OA)(t.Y36(Hr))},OA.\u0275cmp=t.Xpm({type:OA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,K8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.isImageDrawing)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var IA=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.linkService=o,this.linksDataSource=a,this.linksEventSource=s,this.linkToMapLink=l,this.nonNegativeValidator=u,this.borderTypes=["Solid","Dash","Dot","Dash Dot","Dash Dot Dot"],this.formGroup=this.formBuilder.group({color:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,u.get]),type:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e,i;null!==(e=this.link.link_style)&&void 0!==e&&e.color?this.formGroup.controls.color.setValue(this.link.link_style.color):this.formGroup.controls.color.setValue("#000000"),this.formGroup.controls.width.setValue(this.link.link_style.width);var o=this.borderTypes[0];!(null===(i=this.link.link_style)||void 0===i)&&i.type&&(o=this.borderTypes[this.link.link_style.type]),this.formGroup.controls.type.setValue(o)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){this.link.link_style.color=this.formGroup.get("color").value,this.link.link_style.width=this.formGroup.get("width").value;var i=this.borderTypes.indexOf(this.formGroup.get("type").value);this.link.link_style.type=i,this.linkService.updateLinkStyle(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.linksEventSource.edited.next(e.linkToMapLink.convert(o)),location.reload(),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();IA.\u0275fac=function(r){return new(r||IA)(t.Y36(lr),t.Y36(J.QS),t.Y36(Pn),t.Y36(pl),t.Y36(Fm.F),t.Y36(pd),t.Y36(Gg),t.Y36(gp))},IA.\u0275cmp=t.Xpm({type:IA,selectors:[["app-link-style-editor"]],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Color","formControlName","color","type","color"],["matInput","","formControlName","width","placeholder","Width","type","number"],["placeholder","Type","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),t._UZ(5,"input",4),t.qZA(),t.TgZ(6,"mat-form-field",3),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",3)(9,"mat-select",6),t.YNc(10,q8e,2,2,"mat-option",7),t.qZA()()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(7),t.Q6J("ngForOf",e.borderTypes))},dependencies:[ge.sg,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Kn,yr,ur,$r.gD,Wt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var PA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(IA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();PA.\u0275fac=function(r){return new(r||PA)(t.Y36(Hr))},PA.\u0275cmp=t.Xpm({type:PA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[t.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editStyle()}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var J8e=["textArea"],RA=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z){(0,U.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=l,this.nodesDataSource=u,this.linkService=d,this.linksDataSource=h,this.formBuilder=g,this.toasterService=C,this.rotationValidator=Z,this.fontFixer=z}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new J.p4("",[J.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(o){return o.node_id===e.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var i={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};i=this.fontFixer.fix(i),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",i.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size","".concat(i.font_size,"pt")),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",i.font_weight)}},{key:"getTextElementFromLabel",value:function(){var a,e=[],i=new vb,o=(0,xn.Z)(this.label.style.split(";"));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.push({property:s.split(": ")[0],value:s.split(": ")[1]})}}catch(l){o.e(l)}finally{o.f()}return i.text=this.label.text?this.label.text:"",i.font_family=e.find(function(l){return"font-family"===l.property})?e.find(function(l){return"font-family"===l.property}).value:"TypeWriter",i.font_size=e.find(function(l){return"font-size"===l.property})?+e.find(function(l){return"font-size"===l.property}).value:10,i.font_weight=e.find(function(l){return"font-weight"===l.property})?e.find(function(l){return"font-weight"===l.property}).value:"normal",i.fill=e.find(function(l){return"fill"===l.property})?e.find(function(l){return"fill"===l.property}).value:"#000000",i.fill_opacity=e.find(function(l){return"fill-opacity"===l.property})?+e.find(function(l){return"fill-opacity"===l.property}).value:1,i}},{key:"getStyleFromTextElement",value:function(){return"font-family: ".concat(this.element.font_family,";font-size: ").concat(this.element.font_size,";font-weight: ").concat(this.element.font_weight,";fill: ").concat(this.element.fill,";fill-opacity: ").concat(this.element.fill_opacity,";")}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.controller,this.node,this.node.label).subscribe(function(o){e.nodesDataSource.update(o),e.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var i=this.drawingToMapDrawingConverter.convert(this.drawing);i.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(i),this.drawingService.update(this.controller,this.drawing).subscribe(function(o){e.drawingsDataSource.update(o),e.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")}},{key:"changeTextColor",value:function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)}}]),n}();RA.\u0275fac=function(r){return new(r||RA)(t.Y36(lr),t.Y36(Zm),t.Y36(hd),t.Y36(Ka),t.Y36(va),t.Y36(t.Qsj),t.Y36(Ir),t.Y36(Ya.G),t.Y36(pl),t.Y36(Fm.F),t.Y36(J.QS),t.Y36(Pn),t.Y36(ev),t.Y36(is))},RA.\u0275cmp=t.Xpm({type:RA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(J8e,7),2&r)&&(t.iGM(i=t.CRH())&&(e.textArea=i.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Text editor"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),t.qZA()(),t.TgZ(5,"form",4)(6,"mat-form-field",2),t._UZ(7,"input",5),t.qZA()(),t.TgZ(8,"textarea",6,7),t.NdJ("ngModelChange",function(o){return e.element.text=o}),t.qZA()(),t.TgZ(10,"div",8)(11,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(14,"Apply"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.element.fill),t.xp6(1),t.Q6J("formGroup",e.formGroup),t.xp6(3),t.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,yr,ur],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var LA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(RA,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing,i.node=this.node,i.label=this.label,i.link=this.link,i.linkNode=this.linkNode}}]),n}();LA.\u0275fac=function(r){return new(r||LA)(t.Y36(Hr))},LA.\u0275cmp=t.Xpm({type:LA,selectors:[["app-edit-text-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editText()}),t.TgZ(1,"mat-icon"),t._uU(2,"text_format"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit text"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var ZA=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.toasterService=r,this.nodesDataSource=e,this.drawingsDataSource=i,this.linksDataSource=o,this.nodeService=a,this.drawingService=s,this.linkService=l,this.bottomSheet=u}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(fd);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){a&&e.delete()})}},{key:"delete",value:function(){var e=this;this.nodes.forEach(function(i){i.locked?e.toasterService.error("Cannot delete locked node: "+i.name):(e.nodesDataSource.remove(i),e.nodeService.delete(e.controller,i).subscribe(function(o){}))}),this.drawings.forEach(function(i){i.locked?e.toasterService.error("Cannot delete locked drawing"):(e.drawingsDataSource.remove(i),e.drawingService.delete(e.controller,i).subscribe(function(o){}))}),0==this.nodes.length&&0==this.drawings.length&&this.links.forEach(function(i){e.linksDataSource.remove(i),e.linkService.deleteLink(e.controller,i).subscribe(function(){})})}}]),n}();ZA.\u0275fac=function(r){return new(r||ZA)(t.Y36(Pn),t.Y36(Ya.G),t.Y36(va),t.Y36(Fm.F),t.Y36(Ir),t.Y36(Ka),t.Y36(pl),t.Y36(_p))},ZA.\u0275cmp=t.Xpm({type:ZA,selectors:[["app-delete-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.confirmDelete()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Delete"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var NA=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,B.Z)(n,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,xn.Z)(this.nodes);try{for(o.s();!(a=o.n()).done;){var s=a.value;"stopped"===s.status?this.nodeService.duplicate(this.controller,s).subscribe(function(h){e.nodesDataSource.add(h)}):i+="".concat(s.name,", ")}}catch(h){o.e(h)}finally{o.f()}var u,l=(0,xn.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var d=u.value;this.drawingService.duplicate(this.controller,d.project_id,d).subscribe(function(h){e.drawingsDataSource.add(h)})}}catch(h){l.e(h)}finally{l.f()}i.length>0&&(i=i.substring(0,i.length-2),this.toasterService.error("Cannot duplicate node data for nodes: ".concat(i)))}}]),n}();function Q8e(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"h6"),t._uU(2),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.description," ")}}NA.\u0275fac=function(r){return new(r||NA)(t.Y36(Ir),t.Y36(Ya.G),t.Y36(Ka),t.Y36(va),t.Y36(Pn))},NA.\u0275cmp=t.Xpm({type:NA,selectors:[["app-duplicate-action"]],inputs:{controller:"controller",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.duplicate()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Duplicate"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var BA=function(){function n(r){(0,U.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();function X8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.frequency_drop[0]=a)}),t.qZA()()(),t.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.packet_loss[0]=a)}),t.qZA()()(),t.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[0]=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",10)(11,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[1]=a)}),t.qZA()()(),t.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.corrupt[0]=a)}),t.qZA()()(),t.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.bpf[0]=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.filters.frequency_drop[0]),t.xp6(3),t.Q6J("ngModel",i.filters.packet_loss[0]),t.xp6(3),t.Q6J("ngModel",i.filters.delay[0]),t.xp6(2),t.Q6J("ngModel",i.filters.delay[1]),t.xp6(3),t.Q6J("ngModel",i.filters.corrupt[0]),t.xp6(3),t.Q6J("ngModel",i.filters.bpf[0])}}BA.\u0275fac=function(r){return new(r||BA)(t.Y36(lr))},BA.\u0275cmp=t.Xpm({type:BA,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,Q8e,5,2,"div",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(6,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.title),t.xp6(2),t.Q6J("ngForOf",e.messages))},dependencies:[ge.sg,cn,yr,ur],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var FA=function(){function n(r,e,i){(0,U.Z)(this,n),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkService.getLink(this.controller,this.link.project_id,this.link.link_id).subscribe(function(i){e.link=i,e.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},e.link.filters&&(e.filters.bpf=e.link.filters.bpf?e.link.filters.bpf:[],e.filters.corrupt=e.link.filters.corrupt?e.link.filters.corrupt:[0],e.filters.delay=e.link.filters.delay?e.link.filters.delay:[0,0],e.filters.frequency_drop=e.link.filters.frequency_drop?e.link.filters.frequency_drop:[0],e.filters.packet_loss=e.link.filters.packet_loss?e.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.controller,this.link).subscribe(function(i){e.availableFilters=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onResetClick",value:function(){var e=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onYesClick",value:function(){var e=this;this.link.filters=this.filters,this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onHelpClick",value:function(){var i=this.dialog.open(BA,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.title="Help for filters";var o=[];this.availableFilters.forEach(function(a){o.push({name:a.name,description:a.description})}),i.messages=o}}]),n}();FA.\u0275fac=function(r){return new(r||FA)(t.Y36(lr),t.Y36(pl),t.Y36(Hr))},FA.\u0275cmp=t.Xpm({type:FA,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet filters"),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,X8e,18,6,"mat-tab-group",2),t.qZA(),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"div",5)(7,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"Cancel"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onResetClick()}),t._uU(10,"Reset"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onYesClick()}),t._uU(12,"Apply"),t.qZA(),t._UZ(13,"div",8),t.TgZ(14,"button",6),t.NdJ("click",function(){return e.onHelpClick()}),t._uU(15,"Help"),t.qZA()()()),2&r&&(t.xp6(3),t.Q6J("ngIf",e.filters))},dependencies:[ge.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,cn,Kn,yr,ur,Zi.SP,Zi.uX],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]});var UA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(FA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();UA.\u0275fac=function(r){return new(r||UA)(t.Y36(Hr))},UA.\u0275cmp=t.Xpm({type:UA,selectors:[["app-packet-filters-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openPacketFilters()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_list"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Packet filters"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var $k,x5,Qk={UKNOWN:"Unknown"},hW={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:Qk.UKNOWN},S5={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},Xk={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},tv={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:Qk.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Zse=[tv.PS4,tv.CHROME_BOOK,tv.MAC,tv.DELL,tv.ASUS,tv.UNKNOWN],$8e={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:Qk.UKNOWN},eUe={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:Qk.UKNOWN.toLowerCase()},Nse={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},nUe=Object.assign(Object.assign(Object.assign(Object.assign({},S5),Xk),Nse),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),mW={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},_W={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},rUe=Object.keys(mW).reduce(function(n,r){return n[r]=mW[r],n},{}),Bse=Object.keys(_W).reduce(function(n,r){return n[hW[r]]=_W[r],n},{}),Kf=Object.freeze({__proto__:null,GENERAL:Qk,BROWSERS:hW,MOBILES_RE:S5,TABLETS_RE:Xk,DEVICES:tv,DESKTOP_DEVICES:Zse,OS:$8e,OS_VERSIONS:eUe,OS_RE:Nse,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:nUe,OS_VERSIONS_RE_MAP:mW,BROWSER_VERSIONS_RE_MAP:_W,OS_VERSIONS_RE:rUe,BROWSER_VERSIONS_RE:Bse}),iUe=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"test",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(e):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(e,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(e,a)}):!(!i||!i.not)&&!this.test(e,i.not)}},{key:"exec",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(e):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(e,s)},null):null}}]),n}();!function(n){n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown"}($k||($k={})),function(n){n.Portrait="portrait",n.Landscape="landscape"}(x5||(x5={}));var gW="iPad",nv=function(){function n(r){(0,U.Z)(this,n),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new iUe,this.deviceType="",this.orientation="",(0,ge.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,B.Z)(n,[{key:"setDeviceInfo",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;i!==this.userAgent&&(this.userAgent=i);var o=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(o.forEach(function(l){e[l.prop]=Object.keys(Kf[l.const]).reduce(function(u,d){return"device"===Kf[l.const][d]&&(0,ge.NF)(e.platformId)&&(e.reTree.test(e.userAgent,Xk[gW])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[Kf[l.const][d]]=gW,Object):(u[Kf[l.const][d]]=e.reTree.test(i,Kf["".concat(l.const,"_RE")][d]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(Kf[l.const]).map(function(u){return Kf[l.const][u]}).reduce(function(u,d){return"device"===l.prop&&u===Kf[l.const].ANDROID?e[l.prop][d]?d:u:u===Kf[l.const].UNKNOWN&&e[l.prop][d]?d:u},Kf[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==hW.UNKNOWN){var a=Bse[this.browser],s=this.reTree.exec(i,a);s&&(this.browser_version=s[1])}"undefined"!=typeof window&&window.matchMedia?this.orientation=window.matchMedia("(orientation: landscape)").matches?x5.Landscape:x5.Portrait:this.orientation=Qk.UKNOWN,this.deviceType=this.isTablet()?$k.Tablet:this.isMobile(this.userAgent)?$k.Mobile:this.isDesktop(this.userAgent)?$k.Desktop:$k.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(i))return!1;var o=Object.keys(S5).find(function(a){return e.reTree.test(i,S5[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,ge.NF)(this.platformId)&&(this.reTree.test(this.userAgent,Xk[gW])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(Xk).find(function(a){return!!e.reTree.test(i,Xk[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==tv.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&Zse.indexOf(this.device)>-1}}]),n}();nv.\u0275fac=function(r){return new(r||nv)(t.LFG(t.Lbi))},nv.\u0275prov=t.Yz7({token:nv,factory:nv.\u0275fac,providedIn:"root"});var Hm=function(){function n(r,e){(0,U.Z)(this,n),this.toasterService=r,this.deviceService=e}return(0,B.Z)(n,[{key:"createHiddenIframe",value:function(e,i){var o=document.createElement("iframe");return o.src=i,o.id="hiddenIframe",o.style.display="none",e.appendChild(o),o}},{key:"openUriUsingFirefox",value:function(e){var i=document.querySelector("#hiddenIframe");i||(i=this.createHiddenIframe(document.body,"about:blank"));try{i.contentWindow.location.href=e}catch(o){"NS_ERROR_UNKNOWN_PROTOCOL"===o.name&&this.toasterService.error("Protocol handler does not exist")}}},{key:"open",value:function(e){var i=this.deviceService.getDeviceInfo();console.log("Launching external protocol handler with "+i.browser+": "+e),"Firefox"===i.browser?this.openUriUsingFirefox(e):location.assign(e)}}]),n}();Hm.\u0275fac=function(r){return new(r||Hm)(t.LFG(Pn),t.LFG(nv))},Hm.\u0275prov=t.Yz7({token:Hm,factory:Hm.\u0275fac});var rv=function(){function n(r){(0,U.Z)(this,n),this.protocolHandlerService=r}return(0,B.Z)(n,[{key:"startCapture",value:function(e,i,o,a){var s="gns3+pcap://".concat(e.host,":").concat(e.port,"?protocol=").concat(e.protocol.slice(0,-1),"&project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&project=").concat(i.name,"&name=").concat(a);this.protocolHandlerService.open(s)}}]),n}();function oUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}rv.\u0275fac=function(r){return new(r||rv)(t.LFG(Hm))},rv.\u0275prov=t.Yz7({token:rv,factory:rv.\u0275fac});var aUe=function(){return{standalone:!0}},HA=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.dialogRef=r,this.linkService=e,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new J.p4("",J.kI.required),fileName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"ethernet"===this.link.link_type?this.linkTypes=[["Ethernet","DLT_EN10MB"]]:this.linkTypes=[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var e=this.nodesDataSource.get(this.link.nodes[0].node_id),i=this.nodesDataSource.get(this.link.nodes[1].node_id),o=e.ports[this.link.nodes[0].port_number],a=i.ports[this.link.nodes[1].port_number];this.inputForm.controls.fileName.setValue("".concat(e.name,"_").concat(o.name,"_to_").concat(i.name,"_").concat(a.name).replace(new RegExp("[^0-9A-Za-z_-]","g"),""))}},{key:"onYesClick",value:function(){var e=this,i=!1;if(this.link.nodes.forEach(function(a){"started"===e.nodesDataSource.get(a.node_id).status&&(i=!0)}),i)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var o={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.controller,this.project,this.link,o.capture_file_name),this.linkService.startCaptureOnLink(this.controller,this.link,o).subscribe(function(){e.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function sUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"loupe"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start capture"),t.qZA()()}}HA.\u0275fac=function(r){return new(r||HA)(t.Y36(lr),t.Y36(pl),t.Y36(J.QS),t.Y36(Pn),t.Y36(Ya.G),t.Y36(rv))},HA.\u0275cmp=t.Xpm({type:HA,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet capture"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),t.YNc(6,oUe,2,2,"mat-option",5),t.qZA()(),t.TgZ(7,"mat-form-field",3),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-checkbox",7),t.NdJ("ngModelChange",function(o){return e.startProgram=o}),t._uU(10," Start the capture visualization program "),t.qZA()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Ok"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngForOf",e.linkTypes),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(4,aUe))("ngModel",e.startProgram))},dependencies:[ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,yr,ur,ei,$r.gD,Wt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var jA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"startCapture",value:function(){var i=this.dialog.open(HA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();function lUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause_circle_filled"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop capture"),t.qZA()()}}jA.\u0275fac=function(r){return new(r||jA)(t.Y36(Hr))},jA.\u0275cmp=t.Xpm({type:jA,selectors:[["app-start-capture-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,sUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.capturing)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var GA=function(){function n(r){(0,U.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),n}();function uUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.resumeLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Resume"),t.qZA()()}}GA.\u0275fac=function(r){return new(r||GA)(t.Y36(pl))},GA.\u0275cmp=t.Xpm({type:GA,selectors:[["app-stop-capture-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,lUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var zA=function(){function n(r){(0,U.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();function cUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}zA.\u0275fac=function(r){return new(r||zA)(t.Y36(pl))},zA.\u0275cmp=t.Xpm({type:zA,selectors:[["app-resume-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,uUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.suspend)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var WA=function(){function n(r){(0,U.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();WA.\u0275fac=function(r){return new(r||WA)(t.Y36(pl))},WA.\u0275cmp=t.Xpm({type:WA,selectors:[["app-suspend-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,cUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.suspend)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var jm=m(9449),VA=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i,a,s,l,u;return Ln().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0!==this.nodes.filter(function(g){return"started"===g.status&&"none"!==g.console_type}).length){h.next=5;break}return this.toasterService.error("Device needs to be started in order to console to it."),h.abrupt("return");case 5:a=(0,xn.Z)(this.nodes),h.prev=6,a.s();case 8:if((s=a.n()).done){h.next=17;break}if("started"===(l=s.value).status||"none"===l.console_type){h.next=12;break}return h.abrupt("continue",15);case 12:return u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=15,this.openConsole(u);case 15:h.next=8;break;case 17:h.next=22;break;case 19:h.prev=19,h.t0=h.catch(6),a.e(h.t0);case 22:return h.prev=22,a.f(),h.finish(22);case 25:case"end":return h.stop()}},e,this,[[6,19,22,25]])}))}},{key:"openConsole",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./console-executor.js").openConsole(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}}]),n}();VA.\u0275fac=function(r){return new(r||VA)(t.Y36(sl),t.Y36(rr),t.Y36(jm.g),t.Y36(Pn),t.Y36(Ir))},VA.\u0275cmp=t.Xpm({type:VA,selectors:[["app-console-device-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.console()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var Eb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getInfoAboutNode",value:function(e,i){var o=[];return"cloud"===e.node_type?o.push("Cloud ".concat(e.name," is always on.")):"nat"===e.node_type?o.push("NAT ".concat(e.name," is always on.")):"ethernet-hub"===e.node_type?o.push("Ethernet hub ".concat(e.name," is always on.")):"ethernet_switch"===e.node_type?o.push("Ethernet switch ".concat(e.name," is always on.")):"frame_relay_switch"===e.node_type?o.push("Frame relay switch ".concat(e.name," is always on.")):"atm_switch"===e.node_type?o.push("ATM switch ".concat(e.name," is always on.")):"docker"===e.node_type?o.push("Docker ".concat(e.name," is ").concat(e.status,".")):"dynamips"===e.node_type?o.push("Dynamips ".concat(e.name," is always on.")):"virtualbox"===e.node_type?o.push("VirtualBox VM ".concat(e.name," is ").concat(e.status,".")):"vmware"===e.node_type?o.push("VMware VM ".concat(e.name," is ").concat(e.status,".")):"qemu"===e.node_type?o.push("QEMU VM ".concat(e.name," is ").concat(e.status,".")):"iou"===e.node_type?o.push("IOU ".concat(e.name," is always on.")):"vpcs"===e.node_type&&o.push("Node ".concat(e.name," is ").concat(e.status,".")),o.push("Running on controller ".concat(i.name," with port ").concat(i.port,".")),o.push("Controller ID is ".concat(i.id,".")),"none"!==e.console_type&&"null"!==e.console_type&&o.push("Console is on port ".concat(e.console," and type is ").concat(e.console_type,".")),e.ports.forEach(function(a){o.push("Port ".concat(a.name," is ").concat(a.link_type,"."))}),o}},{key:"getInfoAboutPorts",value:function(e){var i="Ports: ";return e.forEach(function(o){i+="link_type: ".concat(o.link_type,",\n\n name: ").concat(o.name,"; ")}),i=i.substring(0,i.length-2)}},{key:"getCommandLine",value:function(e){return"cloud"===e.node_type||"nat"===e.node_type||"ethernet_hub"===e.node_type||"ethernet_switch"===e.node_type||"frame_relay_switch"===e.node_type||"atm_switch"===e.node_type||"dynamips"===e.node_type||"iou"===e.node_type?"Command line information is not supported for this type of node.":e.command_line?e.command_line:"Please start the node in order to get the command line information."}}]),n}();function dUe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e," ")}}Eb.\u0275fac=function(r){return new(r||Eb)},Eb.\u0275prov=t.Yz7({token:Eb,factory:Eb.\u0275fac});var YA=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.controller),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."}},{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();YA.\u0275fac=function(r){return new(r||YA)(t.Y36(lr),t.Y36(Eb))},YA.\u0275cmp=t.Xpm({type:YA,selectors:[["app-info-dialog"]],inputs:{controller:"controller",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),t.YNc(6,dUe,2,1,"div",5),t.qZA()(),t.TgZ(7,"mat-tab",6)(8,"div",4),t._uU(9),t.qZA()(),t.TgZ(10,"mat-tab",7)(11,"div",4),t._uU(12),t.qZA()()()(),t.TgZ(13,"div",8)(14,"button",9),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(15,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.node.name),t.xp6(5),t.Q6J("ngForOf",e.infoList),t.xp6(3),t.hij(" ",e.usage," "),t.xp6(3),t.hij(" ",e.commandLine," "))},dependencies:[ge.sg,cn,yr,ur,Zi.SP,Zi.uX],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var KA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"showNode",value:function(){var i=this.dialog.open(YA,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),n}();function pUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.config)}}function fUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()(),t.TgZ(4,"mat-tab",11)(5,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.privateConfig=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngModel",i.config),t.xp6(3),t.Q6J("ngModel",i.privateConfig)}}KA.\u0275fac=function(r){return new(r||KA)(t.Y36(Hr))},KA.\u0275cmp=t.Xpm({type:KA,selectors:[["app-show-node-action"]],inputs:{node:"node",controller:"controller"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.showNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"info"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Show node information"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var qA=function(){function n(r,e,i){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(i){e.config=i}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.controller,this.node).subscribe(function(i){e.privateConfig=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveConfiguration(this.controller,this.node,this.config).subscribe(function(i){"iou"===e.node.node_type||"dynamips"===e.node.node_type?e.nodeService.savePrivateConfiguration(e.controller,e.node,e.privateConfig).subscribe(function(o){e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))}):(e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved.")))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function hUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit config"),t.qZA()()}}qA.\u0275fac=function(r){return new(r||qA)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn))},qA.\u0275cmp=t.Xpm({type:qA,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,pUe,3,1,"div",1),t.YNc(3,fUe,7,2,"mat-tab-group",2),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(8,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf","vpcs"===e.node.node_type),t.xp6(1),t.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,cn,yr,ur,Zi.SP,Zi.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var JA=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"editConfig",value:function(){var i=this.dialog.open(qA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),n}();JA.\u0275fac=function(r){return new(r||JA)(t.Y36(Hr))},JA.\u0275cmp=t.Xpm({type:JA,selectors:[["app-edit-config-action"]],inputs:{controller:"controller",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,hUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var QA=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,fn.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,fn.Z)(this.drawings.map(function(s){return s.z}))),a=Math.max(i,o);a<100&&a++,this.nodes.forEach(function(s){s.z=a,e.nodesDataSource.update(s),e.nodeService.update(e.controller,s).subscribe(function(l){})}),this.drawings.forEach(function(s){s.z=a,e.drawingsDataSource.update(s),e.drawingService.update(e.controller,s).subscribe(function(l){})})}}]),n}();QA.\u0275fac=function(r){return new(r||QA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Ir),t.Y36(Ka))},QA.\u0275cmp=t.Xpm({type:QA,selectors:[["app-bring-to-front-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.bringToFront()}),t.TgZ(1,"mat-icon"),t._uU(2,"vertical_align_top"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Bring to front"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var eT=function(){function n(r){(0,U.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),n}();function mUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.exportConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"call_made"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Export config"),t.qZA()()}}eT.\u0275fac=function(r){return new(r||eT)(t.Y36(lr))},eT.\u0275cmp=t.Xpm({type:eT,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Choose configuration file"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),t.NdJ("click",function(){return e.close("startup-config")}),t._uU(6,"startup configuration"),t.qZA()(),t.TgZ(7,"div")(8,"button",3),t.NdJ("click",function(){return e.close("private-config")}),t._uU(9,"private configuration"),t.qZA()()()())},dependencies:[cn,yr],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var XA=function(){function n(r,e){(0,U.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,B.Z)(n,[{key:"exportConfig",value:function(){var e=this;if("vpcs"===this.node.node_type)this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(a){e.downloadByHtmlTag(a)});else{var i=this.dialog.open(eT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){"startup-config"===a?e.nodeService.getStartupConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)}):"private-config"===a&&e.nodeService.getPrivateConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)})})}}},{key:"downloadByHtmlTag",value:function(e){var i=document.createElement("a");i.setAttribute("href","data:".concat("text/plain",";charset=utf-8,").concat(encodeURIComponent(e))),"vpcs"===this.node.node_type?i.setAttribute("download","".concat(this.node.name,"_startup.vpc")):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&i.setAttribute("download","".concat(this.node.name,"_startup.cfg"));var a=new MouseEvent("click");i.dispatchEvent(a)}}]),n}();XA.\u0275fac=function(r){return new(r||XA)(t.Y36(Ir),t.Y36(Hr))},XA.\u0275cmp=t.Xpm({type:XA,selectors:[["app-export-config-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,mUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var _Ue=["fileInput"],$A=function(){function n(r,e,i){(0,U.Z)(this,n),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,B.Z)(n,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open(eT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){e.configType=a,e.fileInput.nativeElement.click()})}else this.configType="startup-config",this.fileInput.nativeElement.click()}},{key:"importConfig",value:function(e){var i=this,o=e.target.files[0],a=new FileReader;a.onload=function(s){var l=a.result;"string"!=typeof l&&(l=l.toString()),"startup-config"===i.configType?i.nodeService.saveConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))}):"private-config"===i.configType&&i.nodeService.savePrivateConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))})},a.readAsText(o)}}]),n}();$A.\u0275fac=function(r){return new(r||$A)(t.Y36(Ir),t.Y36(Pn),t.Y36(Hr))},$A.\u0275cmp=t.Xpm({type:$A,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_Ue,5),2&r)&&(t.iGM(i=t.CRH())&&(e.fileInput=i.first))},inputs:{controller:"controller",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc, .cfg",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"input",0,1),t.NdJ("change",function(o){return e.importConfig(o)}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){return e.triggerClick()}),t.TgZ(3,"mat-icon"),t._uU(4,"call_received"),t.qZA(),t.TgZ(5,"span"),t._uU(6,"Import config"),t.qZA()())},dependencies:[Tr,Dn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var Fse=m(1396);function gUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.openConsole(o.auxiliary=!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Auxiliary console"),t.qZA()()}}var eO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.toasterService=r,this.nodeService=e,this.deviceService=i,this.protocolHandlerService=o}return(0,B.Z)(n,[{key:"openConsole",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.nodeService.getNode(this.controller,this.node).subscribe(function(o){e.node=o,e.startConsole(i)})}},{key:"startConsole",value:function(e){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else{("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.controller.host);try{var i,o=this.node.console_host;if(Fse.IPv6.isValid(o)&&(o="[".concat(o,"]")),"telnet"===this.node.console_type){var a;if(!0===e){if(void 0===(a=this.node.properties.aux))return void this.toasterService.error("Auxiliary console port is not set.")}else a=this.node.console;i="gns3+telnet://".concat(o,":").concat(a,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id)}else if("vnc"===this.node.console_type)i="gns3+vnc://".concat(o,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else{if(!this.node.console_type.startsWith("spice"))return this.node.console_type.startsWith("http")?(i="".concat(this.node.console_type,"://").concat(o,":").concat(this.node.console),window.open(i)):void this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.");i="gns3+spice://".concat(o,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id)}this.protocolHandlerService.open(i)}catch(s){this.toasterService.error(s)}}}}]),n}();eO.\u0275fac=function(r){return new(r||eO)(t.Y36(Pn),t.Y36(Ir),t.Y36(nv),t.Y36(Hm))},eO.\u0275cmp=t.Xpm({type:eO,selectors:[["app-console-device-action-browser"]],inputs:{controller:"controller",node:"node"},decls:6,vars:1,consts:[["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()(),t.YNc(5,gUe,5,0,"button",1)),2&r&&(t.xp6(5),t.Q6J("ngIf","docker"===e.node.node_type||"dynamips"===e.node.node_type||"qemu"===e.node.node_type))},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var tO=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.symbol=this.node.symbol}},{key:"symbolChanged",value:function(e){this.symbol=e}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSelectClick",value:function(){var e=this;this.nodeService.updateSymbol(this.controller,this.node,this.symbol).subscribe(function(){e.onCloseClick()})}}]),n}();tO.\u0275fac=function(r){return new(r||tO)(t.Y36(lr),t.Y36(Ir))},tO.\u0275cmp=t.Xpm({type:tO,selectors:[["app-change-symbol-dialog"]],inputs:{controller:"controller",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"controller","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSelectClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change symbol for node: ",e.node.name,""),t.xp6(3),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[cn,yr,ur,gk],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var nO=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(tO,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function vUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.reloadNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"refresh"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Reload"),t.qZA()()}}nO.\u0275fac=function(r){return new(r||nO)(t.Y36(Hr))},nO.\u0275cmp=t.Xpm({type:nO,selectors:[["app-change-symbol-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeSymbol()}),t.TgZ(1,"mat-icon"),t._uU(2,"find_replace"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change symbol"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var rO=function(){function n(r){(0,U.Z)(this,n),this.nodeService=r,this.filteredNodes=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodes.forEach(function(i){("vpcs"===i.node_type||"qemu"===i.node_type||"virtualbox"===i.node_type||"vmware"===i.node_type)&&e.filteredNodes.push(i)})}},{key:"reloadNodes",value:function(){var e=this;this.filteredNodes.forEach(function(i){e.nodeService.reload(e.controller,i).subscribe(function(o){})})}}]),n}();function yUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}rO.\u0275fac=function(r){return new(r||rO)(t.Y36(Ir))},rO.\u0275cmp=t.Xpm({type:rO,selectors:[["app-reload-node-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,vUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.filteredNodes.length>0)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var iO=function(){function n(r){(0,U.Z)(this,n),this.nodeService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"suspendNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.suspend(e.controller,i).subscribe(function(o){})})}}]),n}();function bUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function CUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function wUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function kUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function TUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Actions"),t.qZA())}function MUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",28)(1,"button",29),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",30),t._uU(3,"delete"),t.qZA()()()}}function SUe(n,r){1&n&&t._UZ(0,"tr",31)}function xUe(n,r){1&n&&t._UZ(0,"tr",32)}function EUe(n,r){if(1&n&&(t.TgZ(0,"table",19),t.ynx(1,20),t.YNc(2,bUe,2,0,"th",21),t.YNc(3,CUe,2,1,"td",22),t.BQk(),t.ynx(4,23),t.YNc(5,wUe,2,0,"th",21),t.YNc(6,kUe,2,1,"td",22),t.BQk(),t.ynx(7,24),t.YNc(8,TUe,2,0,"th",21),t.YNc(9,MUe,4,0,"td",22),t.BQk(),t.YNc(10,SUe,1,0,"tr",25),t.YNc(11,xUe,1,0,"tr",26),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}iO.\u0275fac=function(r){return new(r||iO)(t.Y36(Ir))},iO.\u0275cmp=t.Xpm({type:iO,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,yUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var oO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceVci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationVci:new J.p4("",J.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new J.p4("",J.kI.required),destinationVpi:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVpi,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVpi,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Nn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Gw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function DUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Name"),t.qZA())}function AUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function OUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Local port"),t.qZA())}function IUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rport)}}function PUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function RUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rhost)}}function LUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Remote port"),t.qZA())}function ZUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.lport)}}function NUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function BUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function FUe(n,r){1&n&&t._UZ(0,"tr",22)}function UUe(n,r){1&n&&t._UZ(0,"tr",23)}function HUe(n,r){if(1&n&&(t.TgZ(0,"table",8),t.ynx(1,9),t.YNc(2,DUe,2,0,"th",10),t.YNc(3,AUe,2,1,"td",11),t.BQk(),t.ynx(4,12),t.YNc(5,OUe,2,0,"th",10),t.YNc(6,IUe,2,1,"td",11),t.BQk(),t.ynx(7,13),t.YNc(8,PUe,2,0,"th",10),t.YNc(9,RUe,2,1,"td",11),t.BQk(),t.ynx(10,14),t.YNc(11,LUe,2,0,"th",10),t.YNc(12,ZUe,2,1,"td",11),t.BQk(),t.ynx(13,15),t.YNc(14,NUe,2,0,"th",10),t.YNc(15,BUe,4,0,"td",11),t.BQk(),t.YNc(16,FUe,1,0,"tr",16),t.YNc(17,UUe,1,0,"tr",17),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.dataSourceUdp),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function jUe(n,r){1&n&&t._UZ(0,"br")}oO.\u0275fac=function(r){return new(r||oO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS))},oO.\u0275cmp=t.Xpm({type:oO,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,EUe,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"mat-checkbox",8),t.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),t._uU(12," Use VPI only (VP tunnel) "),t.qZA(),t.TgZ(13,"form",5),t._uU(14," Source "),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()()(),t.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),t.qZA()()(),t.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),t.NdJ("ngModelChange",function(o){return e.sourceVci=o}),t.qZA()(),t._uU(23," Destination "),t.TgZ(24,"mat-form-field",6)(25,"input",12),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()()(),t.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),t.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),t.qZA()()(),t.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),t.NdJ("ngModelChange",function(o){return e.destinationVci=o}),t.qZA()()(),t.TgZ(32,"button",15),t.NdJ("click",function(){return e.add()}),t._uU(33,"Add"),t.qZA()()()()(),t.TgZ(34,"div",16)(35,"button",17),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(36,"Cancel"),t.qZA(),t.TgZ(37,"button",18),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(38,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for ATM switch ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("ngModel",e.useVpiOnly),t.xp6(2),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.sourceVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.sourceVci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.destinationVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.destinationVci))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,si,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,yr,ur,ei,ai],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}","table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var aO=function(){function n(r){(0,U.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAddUdpInterface",value:function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.dataSourceUdp=this.dataSourceUdp.filter(function(i){return i!==e})}}]),n}();aO.\u0275fac=function(r){return new(r||aO)(t.Y36(wc))},aO.\u0275cmp=t.Xpm({type:aO,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","max","65535","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","max","65535","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.YNc(0,HUe,18,3,"table",0),t.YNc(1,jUe,1,0,"br",1),t.TgZ(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(o){return e.newPort.name=o}),t.qZA()(),t.TgZ(4,"mat-form-field",2)(5,"input",4),t.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),t.qZA()(),t.TgZ(6,"mat-form-field",2)(7,"input",5),t.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),t.qZA()(),t.TgZ(8,"mat-form-field",2)(9,"input",6),t.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),t.qZA()(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddUdpInterface()}),t._uU(11,"Add"),t.qZA()),2&r&&(t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",e.newPort.name),t.xp6(2),t.Q6J("ngModel",e.newPort.lport),t.xp6(2),t.Q6J("ngModel",e.newPort.rhost),t.xp6(2),t.Q6J("ngModel",e.newPort.rport))},dependencies:[ge.O5,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,ai],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var GUe=["udpTunnels"];function zUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function WUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function VUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function YUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var KUe=function(){return{standalone:!0}};function qUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t.YNc(2,zUe,5,1,"div",10),t.TgZ(3,"mat-form-field",11)(4,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(5,WUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(6,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(7,"Add"),t.qZA()(),t.TgZ(8,"mat-tab",15),t.YNc(9,VUe,5,1,"div",10),t.TgZ(10,"mat-form-field",16)(11,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(12,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(13,"Add"),t.qZA()(),t.TgZ(14,"mat-tab",18),t._UZ(15,"app-udp-tunnels",19,20),t.qZA(),t.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(21,"mat-form-field",11)(22,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,YUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(24,"mat-form-field",16)(25,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_host=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",16)(27,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",16)(29,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,KUe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(4),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(4),t.Q6J("dataSourceUdp",i.portsMappingUdp),t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_http_path),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var sO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.portsMappingEthernet=e.node.properties.ports_mapping.filter(function(o){return"ethernet"===o.type}),e.portsMappingTap=e.node.properties.ports_mapping.filter(function(o){return"tap"===o.type}),e.portsMappingUdp=e.node.properties.ports_mapping.filter(function(o){return"udp"===o.type})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function JUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),t._uU(3),t.qZA(),t.TgZ(4,"span",7)(5,"input",9),t.NdJ("ngModelChange",function(a){var l=t.CHM(e).$implicit;return t.KtG(l.port_name=a)}),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.hij(" Adapter ",i.adapter_number," "),t.xp6(2),t.Q6J("ngModel",i.port_name)}}function QUe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"span",7),t._uU(3," Adapter number "),t.qZA(),t.TgZ(4,"span",7),t._uU(5," Port name "),t.qZA()(),t.TgZ(6,"div")(7,"mat-list"),t.YNc(8,JUe,6,2,"mat-list-item",8),t.qZA()()()),2&n){var e=t.oxw();t.xp6(8),t.Q6J("ngForOf",e.adapters)}}sO.\u0275fac=function(r){return new(r||sO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(wc))},sO.\u0275cmp=t.Xpm({type:sO,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(GUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.udpTunnels=i.first))},decls:13,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,qUe,33,16,"mat-tab-group",5),t.qZA(),t._UZ(7,"div"),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(12,"Apply"),t.qZA()()()),2&r&&(t.xp6(1),t.hij("Configurator for cloud node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur,$r.gD,Wt.ey,Zi.SP,Zi.uX,aO],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var lO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(o){e.adapters.push({adapter_number:0,port_name:""})})}},{key:"onSaveClick",value:function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node ".concat(e.node.name))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();lO.\u0275fac=function(r){return new(r||lO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(If))},lO.\u0275cmp=t.Xpm({type:lO,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,QUe,9,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configure custom adapters for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,cn,Kn,yr,ur,fm,Aa],styles:["th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]});function XUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",5)(1,"textarea",6),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.configuration=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.configuration)}}var uO=function(){function n(r,e,i){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNetworkConfiguration(this.controller,this.node).subscribe(function(i){e.configuration=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveNetworkConfiguration(this.controller,this.node,this.configuration).subscribe(function(i){e.onCancelClick(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function $Ue(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function e7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function t7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}uO.\u0275fac=function(r){return new(r||uO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn))},uO.\u0275cmp=t.Xpm({type:uO,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,XUe,2,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Edit network configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,cn,Kn,yr,ur],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var E5=function(){return{standalone:!0}};function n7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.start_command=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapters=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.mac_address=a)}),t.qZA()(),t.TgZ(12,"mat-form-field",11)(13,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.memory=a)}),t.qZA(),t.TgZ(14,"span",17),t._uU(15,"MB"),t.qZA()(),t.TgZ(16,"mat-form-field",11)(17,"input",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(18,"mat-form-field",19)(19,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(20,$Ue,2,2,"mat-option",21),t.qZA()(),t.TgZ(21,"mat-form-field",19)(22,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.aux_type=a)}),t.YNc(23,e7e,2,2,"mat-option",21),t.qZA()(),t.TgZ(24,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(25," Auto start console "),t.qZA(),t.TgZ(26,"mat-form-field",11)(27,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_resolution=a)}),t.YNc(28,t7e,2,2,"mat-option",21),t.qZA()(),t.TgZ(29,"mat-form-field",11)(30,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_port=a)}),t.qZA()(),t.TgZ(31,"mat-form-field",11)(32,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_path=a)}),t.qZA()(),t.TgZ(33,"button",27),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.editNetworkConfiguration())}),t._uU(34," Edit network configuration "),t.qZA()(),t.TgZ(35,"h6"),t._uU(36,"Environment"),t.qZA(),t.TgZ(37,"mat-form-field",11)(38,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.environment=a)}),t.qZA()()(),t.TgZ(39,"mat-tab",29)(40,"h6"),t._uU(41,"Extra hosts"),t.qZA(),t.TgZ(42,"mat-form-field",11)(43,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_hosts=a)}),t.qZA()(),t._UZ(44,"br"),t.TgZ(45,"h6"),t._uU(46,"Additional volumes"),t.qZA(),t.TgZ(47,"mat-form-field",11)(48,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_volumes=a)}),t.qZA()()(),t.TgZ(49,"mat-tab",30)(50,"mat-form-field",11)(51,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.start_command),t.xp6(2),t.Q6J("ngModel",i.node.properties.adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.mac_address),t.xp6(2),t.Q6J("ngModel",i.node.properties.memory),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(24,E5))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(25,E5))("ngModel",i.node.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(26,E5))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(27,E5))("ngModel",i.node.properties.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_path),t.xp6(6),t.Q6J("ngModel",i.node.properties.environment),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_hosts),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_volumes),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var cO=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialogReference=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.nonNegativeValidator=s,this.dialog=l,this.consoleTypes=[],this.auxConsoleTypes=[],this.consoleResolutions=["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),mac_address:new J.p4("",J.kI.pattern(this.dockerConfigurationService.getMacAddrRegex())),memory:new J.p4("",s.get),cpus:new J.p4("",s.get),startCommand:new J.p4(""),consoleHttpPort:new J.p4("",J.kI.required),consoleHttpPath:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.node.properties.cpus||(e.node.properties.cpus=0)})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes(),this.auxConsoleTypes=this.dockerConfigurationService.getAuxConsoleTypes()}},{key:"configureCustomAdapters",value:function(){this.dialogRef=this.dialog.open(lO,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open(uO,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogReference.close()}}]),n}();function r7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function i7e(n,r){if(1&n&&t._UZ(0,"app-ports",17,18),2&n){var e=t.oxw(2);t.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}cO.\u0275fac=function(r){return new(r||cO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(If),t.Y36(gp),t.Y36(Hr))},cO.\u0275cmp=t.Xpm({type:cO,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","mac_address","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["formControlName","memory","matInput","","type","number","min","0","placeholder","Maximum memory",3,"ngModel","ngModelChange"],["matSuffix",""],["formControlName","cpus","matInput","","type","number","min","0","placeholder","Maximum CPUs",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,n7e,52,28,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,si,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var o7e=function(){return{standalone:!0}};function a7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(7,r7e,2,2,"mat-option",14),t.qZA()()(),t.YNc(8,i7e,2,1,"app-ports",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(6,o7e))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngIf",i.node.properties)}}var dO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();dO.\u0275fac=function(r){return new(r||dO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(wc))},dO.\u0275cmp=t.Xpm({type:dO,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Ag,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2),t.YNc(4,a7e,9,7,"div",3),t.qZA()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Ethernet switch ",e.name,""),t.xp6(3),t.Q6J("ngIf",e.node))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur,$r.gD,Wt.ey,Ag],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var s7e=function(){return{standalone:!0}},pO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.numberOfPorts=e.node.ports.length,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"onSaveClick",value:function(){var e=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.node.properties.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})}else this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function l7e(n,r){if(1&n&&(t.TgZ(0,"mat-label"),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.hij(" (chassis: ",e.node.properties.chassis,")")}}function u7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function c7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.midplane=a)}),t.YNc(2,u7e,2,2,"mat-option",17),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.midplane),t.xp6(1),t.Q6J("ngForOf",i.MidplaneTypes)}}function d7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function p7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.npe=a)}),t.YNc(2,d7e,2,2,"mat-option",17),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.npe),t.xp6(1),t.Q6J("ngForOf",i.NPETypes)}}function f7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function h7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function m7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.iomem=a)}),t.qZA(),t.TgZ(2,"span",22),t._uU(3,"%"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.iomem)}}function _7e(n,r){1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",""," "))}function g7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}pO.\u0275fac=function(r){return new(r||pO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Dm))},pO.\u0275cmp=t.Xpm({type:pO,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",6)(10,"input",8),t.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),t.qZA()()()()()()(),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Ethernet hub ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",t.DdM(5,s7e)))},dependencies:[J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var Use=function(){return{standalone:!0}};function v7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(2);return t.KtG(u.networkAdaptersForNode[l]=s)}),t.YNc(1,_7e,2,1,"mat-option",44),t.YNc(2,g7e,2,2,"mat-option",17),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(2);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForNode[i])("ngModelOptions",t.DdM(5,Use)),t.xp6(1),t.Q6J("ngIf",o.adapterMatrix[o.node.properties.platform][o.node.properties.chassis||""][i].length>1&&!o.adapterMatrix[o.node.properties.platform][o.node.properties.chassis||""][i][0].startsWith("C7200")),t.xp6(1),t.Q6J("ngForOf",o.adapterMatrix[o.node.properties.platform][o.node.properties.chassis||""][i])}}function y7e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,v7e,3,6,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.adapterMatrix[i.node.properties.platform][i.node.properties.chassis||""][e])}}function b7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function C7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.wicsForNode[l]=s)}),t.TgZ(1,"mat-option",39),t._uU(2),t.qZA(),t.YNc(3,b7e,2,2,"mat-option",17),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.wicsForNode[i])("ngModelOptions",t.DdM(5,Use)),t.xp6(2),t.hij(" ",""," "),t.xp6(1),t.Q6J("ngForOf",o.wicMatrix[o.node.properties.platform][i])}}function w7e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,C7e,4,6,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.wicMatrix[i.node.properties.platform][e])}}var k7e=function(){return[0,1,2]};function T7e(n,r){1&n&&(t.TgZ(0,"div")(1,"h6"),t._uU(2,"WICs"),t.qZA(),t.YNc(3,w7e,2,1,"div",28),t.qZA()),2&n&&(t.xp6(3),t.Q6J("ngForOf",t.DdM(1,k7e)))}var M7e=function(){return[0,1,2,3,4,5,6]};function S7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"mat-label"),t._uU(4),t.qZA(),t.YNc(5,l7e,2,1,"mat-label",5),t._UZ(6,"br")(7,"br"),t.TgZ(8,"form",10)(9,"mat-form-field",11)(10,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",11)(12,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.image=a)}),t.qZA()()(),t.YNc(13,c7e,3,2,"mat-form-field",14),t.YNc(14,p7e,3,2,"mat-form-field",14),t.TgZ(15,"mat-form-field",15)(16,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(17,f7e,2,2,"mat-option",17),t.qZA()(),t.TgZ(18,"mat-form-field",15)(19,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.aux_type=a)}),t.YNc(20,h7e,2,2,"mat-option",17),t.qZA()(),t.TgZ(21,"mat-checkbox",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA(),t._UZ(23,"br"),t.qZA(),t.TgZ(24,"mat-tab",20),t._UZ(25,"br"),t.TgZ(26,"form",10)(27,"mat-form-field",11)(28,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(29,"span",22),t._uU(30,"MiB"),t.qZA()(),t.TgZ(31,"mat-form-field",11)(32,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(33,"span",22),t._uU(34,"MiB"),t.qZA()()(),t.YNc(35,m7e,4,1,"mat-form-field",24),t.TgZ(36,"mat-form-field",11)(37,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.disk0=a)}),t.qZA(),t.TgZ(38,"span",22),t._uU(39,"MiB"),t.qZA()(),t.TgZ(40,"mat-form-field",11)(41,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.disk1=a)}),t.qZA(),t.TgZ(42,"span",22),t._uU(43,"MiB"),t.qZA()(),t.TgZ(44,"mat-checkbox",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.auto_delete_disks=a)}),t._uU(45," Automatically delete NVRAM and disk files "),t.qZA(),t._UZ(46,"br"),t.qZA(),t.TgZ(47,"mat-tab",27),t._UZ(48,"br"),t.TgZ(49,"h6"),t._uU(50,"Adapters"),t.qZA(),t.YNc(51,y7e,2,1,"div",28),t._UZ(52,"br"),t.YNc(53,T7e,4,2,"div",5),t.qZA(),t.TgZ(54,"mat-tab",29)(55,"mat-card"),t._UZ(56,"mat-card-title"),t.TgZ(57,"mat-card-subtitle"),t._uU(58," System "),t.qZA(),t.TgZ(59,"mat-card-content")(60,"mat-form-field",11)(61,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.system_id=a)}),t.qZA()(),t.TgZ(62,"form",10)(63,"mat-form-field",11)(64,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.mac_addr=a)}),t.qZA()()()()(),t.TgZ(65,"mat-card"),t._UZ(66,"mat-card-title"),t.TgZ(67,"mat-card-subtitle"),t._uU(68," Optimizations "),t.qZA(),t.TgZ(69,"mat-card-content")(70,"form",10)(71,"mat-form-field",11)(72,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.idlepc=a)}),t.qZA()()(),t.TgZ(73,"mat-form-field",11)(74,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.idlemax=a)}),t.qZA()(),t.TgZ(75,"mat-form-field",11)(76,"input",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.idlesleep=a)}),t.qZA(),t.TgZ(77,"span",22),t._uU(78,"ms"),t.qZA()(),t.TgZ(79,"mat-form-field",11)(80,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.exec_area=a)}),t.qZA(),t.TgZ(81,"span",22),t._uU(82,"MiB"),t.qZA()(),t.TgZ(83,"mat-checkbox",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.mmap=a)}),t._uU(84," Enable mmap support "),t.qZA(),t._UZ(85,"br"),t.TgZ(86,"mat-checkbox",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.sparsemem=a)}),t._uU(87," Enable sparse memory support "),t.qZA(),t._UZ(88,"br"),t.qZA()()(),t.TgZ(89,"mat-tab",36)(90,"mat-form-field",11)(91,"textarea",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(4),t.hij("Platform: ",i.node.properties.platform,""),t.xp6(1),t.Q6J("ngIf",i.node.properties.chassis),t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.image),t.xp6(1),t.Q6J("ngIf",i.node.properties.midplane),t.xp6(1),t.Q6J("ngIf",i.node.properties.npe),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.properties.aux_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(5),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.nvram),t.xp6(3),t.Q6J("ngIf",i.node.properties.iomem),t.xp6(2),t.Q6J("ngModel",i.node.properties.disk0),t.xp6(4),t.Q6J("ngModel",i.node.properties.disk1),t.xp6(3),t.Q6J("ngModel",i.node.properties.auto_delete_disks),t.xp6(7),t.Q6J("ngForOf",t.DdM(32,M7e)),t.xp6(2),t.Q6J("ngIf",i.wicMatrix[i.node.properties.platform]),t.xp6(8),t.Q6J("ngModel",i.node.properties.system_id),t.xp6(1),t.Q6J("formGroup",i.advancedSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.mac_addr),t.xp6(6),t.Q6J("formGroup",i.advancedSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.idlepc),t.xp6(2),t.Q6J("ngModel",i.node.properties.idlemax),t.xp6(2),t.Q6J("ngModel",i.node.properties.idlesleep),t.xp6(4),t.Q6J("ngModel",i.node.properties.exec_area),t.xp6(3),t.Q6J("ngModel",i.node.properties.mmap),t.xp6(3),t.Q6J("ngModel",i.node.properties.sparsemem),t.xp6(5),t.Q6J("ngModel",i.node.properties.usage)}}var fO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.NPETypes=[],this.MidplaneTypes=[],this.networkAdaptersForNode=[],this.wicsForNode=[],this.adapterMatrix={},this.wicMatrix={},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required)}),this.advancedSettingsForm=this.formBuilder.group({mac_addr:new J.p4("",J.kI.pattern(this.configurationService.getMacAddrRegex())),idlepc:new J.p4("",J.kI.pattern(this.configurationService.getIdlepcRegex()))})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.fillSlotsData()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.NPETypes=this.configurationService.getNPETypes(),this.MidplaneTypes=this.configurationService.getMidplaneTypes(),this.adapterMatrix=this.configurationService.getAdapterMatrix(),this.wicMatrix=this.configurationService.getWicMatrix()}},{key:"fillSlotsData",value:function(){for(var e=0;e<=6;e++)this.node.properties["slot".concat(e)]&&(this.networkAdaptersForNode[e]=this.node.properties["slot".concat(e)]);for(var i=0;i<=3;i++)this.node.properties["wic".concat(i)]&&(this.wicsForNode[i]=this.node.properties["wic".concat(i)])}},{key:"saveSlotsData",value:function(){for(var e=0;e<=6;e++)this.adapterMatrix[this.node.properties.platform][this.node.properties.chassis||""][e]&&(void 0===this.networkAdaptersForNode[e]?this.node.properties["slot".concat(e)]="":this.node.properties["slot".concat(e)]=this.networkAdaptersForNode[e]);for(var i=0;i<=3;i++)this.wicMatrix[this.node.properties.platform][i]&&(void 0===this.wicsForNode[i]?this.node.properties["wic".concat(i)]="":this.node.properties["wic".concat(i)]=this.wicsForNode[i])}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.memoryForm.valid&&this.advancedSettingsForm.valid?(this.saveSlotsData(),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function x7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.ram)}}function D7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.nvram)}}function A7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,x7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_default_iou_values=a)}),t._uU(13," Use default IOU values for memories "),t.qZA(),t.YNc(14,E7e,4,1,"mat-form-field",17),t.YNc(15,D7e,4,1,"mat-form-field",17),t.qZA(),t.TgZ(16,"mat-tab",18),t._UZ(17,"br"),t.TgZ(18,"form",10)(19,"mat-form-field",11)(20,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ethernet_adapters=a)}),t.qZA()(),t.TgZ(21,"mat-form-field",11)(22,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.serial_adapters=a)}),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(3),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.serial_adapters),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}fO.\u0275fac=function(r){return new(r||fO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Tm))},fO.\u0275cmp=t.Xpm({type:fO,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["class","select",4,"ngIf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","min","0","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","0","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","type","number","min","0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],["label","Slots"],[4,"ngFor","ngForOf"],["label","Advanced"],["matInput","","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","formControlName","mac_addr","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","idlepc","placeholder","Idle-PC",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","placeholder","Exec area",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],["placeholder","Midplane",3,"ngModel","ngModelChange"],[3,"value"],["placeholder","NPE",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","max","100","placeholder","I/O memory",3,"ngModel","ngModelChange"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,S7e,92,33,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for IOS router ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,cn,si,xg,G0,z0,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var hO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();hO.\u0275fac=function(r){return new(r||hO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Og))},hO.\u0275cmp=t.Xpm({type:hO,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","min","1","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","NVRAM size",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,A7e,26,12,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for IOU device ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,si,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var mO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function O7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function I7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function P7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function R7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function L7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function Z7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Size options "),t.TgZ(2,"mat-form-field",6)(3,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.preallocation=a)}),t.YNc(4,I7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(5,"mat-form-field",6)(6,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.cluster_size=a)}),t.YNc(7,P7e,2,2,"mat-option",9),t.qZA()(),t._uU(8," Refcounts "),t.TgZ(9,"mat-form-field",6)(10,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.lazy_refcounts=a)}),t.YNc(11,R7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(12,"mat-form-field",6)(13,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.refcount_bits=a)}),t.YNc(14,L7e,2,2,"mat-option",9),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.qemuImg.preallocation),t.xp6(1),t.Q6J("ngForOf",i.preallocationsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.cluster_size),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions),t.xp6(3),t.Q6J("ngModel",i.qemuImg.lazy_refcounts),t.xp6(1),t.Q6J("ngForOf",i.lazyRefcountsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.refcount_bits),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions)}}function N7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("dynamic"))}),t._uU(3,"Dynamic"),t.qZA(),t.TgZ(4,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("fixed"))}),t._uU(5,"Fixed"),t.qZA()()()}}function B7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function F7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Adapter type"),t._UZ(2,"br"),t.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("ide"))}),t._uU(5,"IDE"),t.qZA(),t.TgZ(6,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("lsilogic"))}),t._uU(7,"LSI Logic"),t.qZA(),t.TgZ(8,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("buslogic"))}),t._uU(9,"BusLogic"),t.qZA(),t.TgZ(10,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("legacyESX"))}),t._uU(11,"Legacy (ESX)"),t.qZA()(),t._UZ(12,"br")(13,"br"),t._uU(14," Image file sizing mode"),t._UZ(15,"br"),t.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("streamOptimized"))}),t._uU(18,"Stream optimized"),t.qZA(),t.TgZ(19,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentSparse"))}),t._uU(20,"Split every 2GB (sparse)"),t.qZA(),t.TgZ(21,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentFlat"))}),t._uU(22,"Split every 2GB (flat)"),t.qZA(),t.TgZ(23,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicSparse"))}),t._uU(24,"Monolithic sparse"),t.qZA(),t.TgZ(25,"mat-radio-button",26),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicFlat"))}),t._uU(26,"Monolithic flat"),t.qZA()(),t._UZ(27,"br")(28,"br"),t.TgZ(29,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.zeroed_grain=a)}),t.YNc(30,B7e,2,2,"mat-option",9),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(29),t.Q6J("ngModel",i.qemuImg.zeroed_grain),t.xp6(1),t.Q6J("ngForOf",i.zeroedGrainOptions)}}mO.\u0275fac=function(r){return new(r||mO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS))},mO.\u0275cmp=t.Xpm({type:mO,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for NAT node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var _O=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.qemuImg={}}},{key:"setSubformat",value:function(e){this.qemuImg.subformat=e}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.controller,this.qemuImg).subscribe(function(){e.dialogRef.close()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();_O.\u0275fac=function(r){return new(r||_O)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Bu))},_O.\u0275cmp=t.Xpm({type:_O,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Qemu image configurator"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),t.qZA()()(),t.TgZ(9,"mat-form-field",6)(10,"mat-select",8),t.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),t.YNc(11,O7e,2,2,"mat-option",9),t.qZA()(),t.YNc(12,Z7e,15,8,"div",10),t.YNc(13,N7e,6,0,"div",10),t.YNc(14,F7e,31,2,"div",10),t.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),t.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),t.qZA()(),t.TgZ(18,"mat-form-field",6)(19,"input",12),t.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),t.qZA()()()()()()(),t.TgZ(20,"div",13)(21,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(24,"Apply"),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.qemu_img),t.xp6(2),t.Q6J("ngModel",e.qemuImg.format),t.xp6(1),t.Q6J("ngForOf",e.formatOptions),t.xp6(1),t.Q6J("ngIf","qcow2"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vmdk"===e.qemuImg.format),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.path),t.xp6(2),t.Q6J("ngModel",e.qemuImg.size))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur,$r.gD,Wt.ey,ns,Gs],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var U7e=["customAdapters"];function H7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function j7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function G7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function z7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function W7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function V7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function Y7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function K7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function q7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function J7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function Q7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function X7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function $7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function e9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.AsE(" ",e.name," (",e.value,") ")}}function t9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",53),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.cpu_throttling)}}function n9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",52),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var r9e=function(){return{standalone:!0}};function i9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.platform=a)}),t.YNc(8,H7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(9,"mat-form-field",11)(10,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(11,"span",16),t._uU(12,"MB"),t.qZA()()(),t.TgZ(13,"mat-form-field",11)(14,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.boot_priority=a)}),t.YNc(17,j7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(18,"mat-form-field",11)(19,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(20,G7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,z7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(24,"mat-form-field",20)(25,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.aux_type=a)}),t.YNc(26,W7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(27,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_auto_start=a)}),t._uU(28," Auto start console "),t.qZA()(),t.TgZ(29,"mat-tab",24)(30,"mat-card")(31,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.openQemuImageCreator())}),t._uU(32," Create Qemu image "),t.qZA(),t._UZ(33,"mat-card-title"),t.TgZ(34,"mat-card-subtitle"),t._uU(35," HDA (Primary Master) "),t.qZA(),t.TgZ(36,"mat-card-content")(37,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_image=a)}),t.YNc(38,V7e,2,2,"mat-option",14),t.qZA(),t.TgZ(39,"mat-form-field",11)(40,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_interface=a)}),t.YNc(41,Y7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(42,"mat-card"),t._UZ(43,"mat-card-title"),t.TgZ(44,"mat-card-subtitle"),t._uU(45," HDB (Primary Slave) "),t.qZA(),t.TgZ(46,"mat-card-content")(47,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_image=a)}),t.YNc(48,K7e,2,2,"mat-option",14),t.qZA(),t.TgZ(49,"mat-form-field",11)(50,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_interface=a)}),t.YNc(51,q7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(52,"mat-card"),t._UZ(53,"mat-card-title"),t.TgZ(54,"mat-card-subtitle"),t._uU(55," HDC (Secondary Master) "),t.qZA(),t.TgZ(56,"mat-card-content")(57,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_image=a)}),t.YNc(58,J7e,2,2,"mat-option",14),t.qZA(),t.TgZ(59,"mat-form-field",11)(60,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_interface=a)}),t.YNc(61,Q7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(62,"mat-card"),t._UZ(63,"mat-card-title"),t.TgZ(64,"mat-card-subtitle"),t._uU(65," HDD (Secondary Slave) "),t.qZA(),t.TgZ(66,"mat-card-content")(67,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_image=a)}),t.YNc(68,X7e,2,2,"mat-option",14),t.qZA(),t.TgZ(69,"mat-form-field",11)(70,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_interface=a)}),t.YNc(71,$7e,2,2,"mat-option",14),t.qZA()()()()(),t.TgZ(72,"mat-tab",28)(73,"div")(74,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(77);return t.KtG(a.click())}),t._uU(75,"Browse"),t.qZA(),t.TgZ(76,"input",30,31),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(78,"mat-form-field",32)(79,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cdrom_image=a)}),t.qZA()()()(),t.TgZ(80,"mat-tab",34),t._UZ(81,"br"),t.TgZ(82,"mat-form-field",11)(83,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapters=a)}),t.qZA()(),t.TgZ(84,"form",10)(85,"mat-form-field",11)(86,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.mac_address=a)}),t.qZA()()(),t.TgZ(87,"mat-select",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapter_type=a)}),t.YNc(88,e9e,2,3,"mat-option",14),t.qZA(),t._UZ(89,"br")(90,"br"),t.TgZ(91,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.replicate_network_connection_state=a)}),t._uU(92," Replicate network connection state "),t.qZA()(),t.TgZ(93,"mat-tab",38)(94,"mat-card"),t._UZ(95,"mat-card-title"),t.TgZ(96,"mat-card-subtitle"),t._uU(97," Linux boot specific settings "),t.qZA(),t.TgZ(98,"mat-card-content")(99,"div")(100,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(103);return t.KtG(a.click())}),t._uU(101," Browse "),t.qZA(),t.TgZ(102,"input",30,39),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(104,"mat-form-field",32)(105,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.initrd=a)}),t.qZA()()(),t.TgZ(106,"div")(107,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(108," Browse "),t.qZA(),t.TgZ(109,"input",30,41),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(111,"mat-form-field",32)(112,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_image=a)}),t.qZA()()(),t.TgZ(113,"mat-form-field",11)(114,"input",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(115,"mat-card"),t._UZ(116,"mat-card-title"),t.TgZ(117,"mat-card-subtitle"),t._uU(118," Bios "),t.qZA(),t.TgZ(119,"mat-card-content")(120,"div")(121,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(124);return t.KtG(a.click())}),t._uU(122," Browse "),t.qZA(),t.TgZ(123,"input",30,44),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(125,"mat-form-field",32)(126,"input",45),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.bios_image=a)}),t.qZA()()()()(),t.TgZ(127,"mat-card"),t._UZ(128,"mat-card-title"),t.TgZ(129,"mat-card-subtitle"),t._uU(130," Optimization "),t.qZA(),t.TgZ(131,"mat-card-content")(132,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(133," Activate CPU throttling "),t.qZA(),t.YNc(134,t9e,2,1,"mat-form-field",46),t.TgZ(135,"mat-form-field",11)(136,"mat-select",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.process_priority=a)}),t.YNc(137,n9e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(138,"mat-card"),t._UZ(139,"mat-card-title"),t.TgZ(140,"mat-card-subtitle"),t._uU(141," Additional settings "),t.qZA(),t.TgZ(142,"mat-card-content")(143,"mat-form-field",11)(144,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.qemu_path=a)}),t.qZA()(),t.TgZ(145,"mat-form-field",11)(146,"input",49),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.options=a)}),t.qZA()(),t._UZ(147,"br"),t.TgZ(148,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.tpm=a)}),t._uU(149," Enable the Trusted Platform Module (TPM) "),t.qZA(),t._UZ(150,"br"),t.TgZ(151,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.uefi=a)}),t._uU(152," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(153,"mat-tab",50)(154,"mat-form-field",11)(155,"textarea",51),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",t.DdM(52,r9e)),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(2),t.Q6J("ngModel",i.node.properties.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.properties.console_auto_start),t.xp6(10),t.Q6J("ngModel",i.node.properties.hda_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdb_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdc_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdd_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(8),t.Q6J("ngModel",i.node.properties.cdrom_image),t.xp6(4),t.Q6J("ngModel",i.node.properties.adapters),t.xp6(1),t.Q6J("formGroup",i.networkSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.mac_address),t.xp6(1),t.Q6J("ngModel",i.node.properties.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(3),t.Q6J("ngModel",i.node.properties.replicate_network_connection_state),t.xp6(14),t.Q6J("ngModel",i.node.properties.initrd),t.xp6(7),t.Q6J("ngModel",i.node.properties.kernel_image),t.xp6(2),t.Q6J("ngModel",i.node.properties.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.node.properties.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.node.properties.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.node.properties.qemu_path),t.xp6(2),t.Q6J("ngModel",i.node.properties.options),t.xp6(2),t.Q6J("ngModel",i.node.properties.tpm),t.xp6(3),t.Q6J("ngModel",i.node.properties.uefi),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var gO=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialog=r,this.dialogRef=e,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=l,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.selectPlatform=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)}),this.networkSettingsForm=this.formBuilder.group({mac_address:new J.p4("",J.kI.pattern(this.qemuConfigurationService.getMacAddrRegex()))})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.selectPlatform=this.qemuConfigurationService.getPlatform()}},{key:"openQemuImageCreator",value:function(){this.dialogRefQemuImageCreator=this.dialog.open(_O,this.conf),this.dialogRefQemuImageCreator.componentInstance.controller=this.controller}},{key:"uploadCdromImageFile",value:function(e){this.node.properties.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.node.properties.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.node.properties.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.node.properties.bios_image=e.target.files[0].name}},{key:"getConfiguration",value:function(){var e=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(i){e.networkTypes.push(i)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.networkSettingsForm.valid?this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function o9e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function a9e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function s9e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function l9e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function u9e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Actions"),t.qZA())}function c9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",25)(1,"button",26),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",27),t._uU(3,"delete"),t.qZA()()()}}function d9e(n,r){1&n&&t._UZ(0,"tr",28)}function p9e(n,r){1&n&&t._UZ(0,"tr",29)}function f9e(n,r){if(1&n&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,o9e,2,0,"th",18),t.YNc(3,a9e,2,1,"td",19),t.BQk(),t.ynx(4,20),t.YNc(5,s9e,2,0,"th",18),t.YNc(6,l9e,2,1,"td",19),t.BQk(),t.ynx(7,21),t.YNc(8,u9e,2,0,"th",18),t.YNc(9,c9e,4,0,"td",19),t.BQk(),t.YNc(10,d9e,1,0,"tr",22),t.YNc(11,p9e,1,0,"tr",23),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}gO.\u0275fac=function(r){return new(r||gO)(t.Y36(Hr),t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Bu),t.Y36(Mm))},gO.\u0275cmp=t.Xpm({type:gO,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(U7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Platform",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],["matInput","","min","0","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","mac_address","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Qemu binary path",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,i9e,156,53,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Qemu VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,si,xg,G0,z0,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var vO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceDlci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationDlci:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){if(this.inputForm.valid){var e={portIn:"".concat(this.sourcePort,":").concat(this.sourceDlci),portOut:"".concat(this.destinationPort,":").concat(this.destinationDlci)};this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceDlci="1",this.destinationPort="0",this.destinationDlci="1"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Nn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Gw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();vO.\u0275fac=function(r){return new(r||vO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS))},vO.\u0275cmp=t.Xpm({type:vO,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,f9e,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"form",5),t._uU(12," Source "),t.TgZ(13,"mat-form-field",6)(14,"input",8),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()(),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),t.qZA()(),t._uU(17," Destination "),t.TgZ(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()(),t.TgZ(20,"mat-form-field",6)(21,"input",11),t.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),t.qZA()()(),t.TgZ(22,"button",12),t.NdJ("click",function(){return e.add()}),t._uU(23,"Add"),t.qZA()()()()(),t.TgZ(24,"div",13)(25,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(28,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Frame-Relay switch ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(2),t.Q6J("ngModel",e.sourceDlci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(2),t.Q6J("ngModel",e.destinationDlci))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,si,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,yr,ur,ai],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}","table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var h9e=["customAdapters"];function m9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var vW=function(){return{standalone:!0}};function g9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,m9e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(13,"span",18),t._uU(14,"MB"),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(17,_9e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(18,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(19," Start VM in headless mode "),t.qZA()(),t.TgZ(20,"mat-tab",21),t._UZ(21,"br"),t.TgZ(22,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA(),t._UZ(24,"app-custom-adapters-table",22,23),t.qZA(),t.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,vW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,vW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(19,vW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var yO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();yO.\u0275fac=function(r){return new(r||yO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Ig))},yO.\u0275cmp=t.Xpm({type:yO,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(h9e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,g9e,29,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VirtualBox VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,cn,si,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX,sb],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var v9e=["customAdapters"];function y9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function b9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var yW=function(){return{standalone:!0}};function C9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,y9e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(13,b9e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(14,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(15," Start VM in headless mode "),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.linked_clone=a)}),t._uU(18," Use a linked base VM (experimental) "),t.qZA()(),t.TgZ(19,"mat-tab",19),t._UZ(20,"br"),t.TgZ(21,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(22," Allow GNS3 to override non custom VMware adapter "),t.qZA(),t._UZ(23,"app-custom-adapters-table",20,21),t.qZA(),t.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,yW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,yW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(19,yW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(3),t.Q6J("ngModel",i.node.properties.linked_clone),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var bO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function w9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}bO.\u0275fac=function(r){return new(r||bO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Pg))},bO.\u0275cmp=t.Xpm({type:bO,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(v9e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,C9e,28,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VMware VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur,ei,$r.gD,Wt.ey,Zi.SP,Zi.uX,sb],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var Hse=function(){return{standalone:!0}},CO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();CO.\u0275fac=function(r){return new(r||CO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS),t.Y36(Dm))},CO.\u0275cmp=t.Xpm({type:CO,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"mat-select",9),t.NdJ("ngModelChange",function(o){return e.node.console_type=o}),t.YNc(11,w9e,2,2,"mat-option",10),t.qZA()(),t.TgZ(12,"mat-checkbox",11),t.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),t._uU(13," Auto start console "),t.qZA()()()()()(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(18,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VPCS node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Hse))("ngModel",e.node.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(9,Hse))("ngModel",e.node.console_auto_start))},dependencies:[ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur,ei,$r.gD,Wt.ey],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var wO=function(){function n(r){(0,U.Z)(this,n),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,B.Z)(n,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(CO,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(pO,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(dO,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(sO,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(fO,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(hO,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(gO,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(yO,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(bO,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(cO,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(mO,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(vO,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(oO,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),n}();function k9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"search"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start Wireshark"),t.qZA()()}}wO.\u0275fac=function(r){return new(r||wO)(t.Y36(Hr))},wO.\u0275cmp=t.Xpm({type:wO,selectors:[["app-config-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.configureNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_applications"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Configure"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var kO=function(){function n(r){(0,U.Z)(this,n),this.packetCaptureService=r}return(0,B.Z)(n,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),n}();kO.\u0275fac=function(r){return new(r||kO)(t.Y36(rv))},kO.\u0275cmp=t.Xpm({type:kO,selectors:[["app-start-capture-on-started-link-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,k9e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var TO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){1===this.nodes.length&&0===this.drawings.length?this.command=this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.command=this.drawings[0].locked?"Unlock item":"Lock item":this.command="Lock/unlock items"}},{key:"lock",value:function(){return yi(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:return a.next=2,this.nodes.forEach(function(s){s.locked=!s.locked,i.nodeService.updateNode(i.controller,s).subscribe(function(l){i.nodesDataSource.update(l)})});case 2:return a.next=4,this.drawings.forEach(function(s){s.locked=!s.locked,i.drawingService.update(i.controller,s).subscribe(function(l){i.drawingsDataSource.update(l)})});case 4:this.projectService.projectUpdateLockIcon();case 5:case"end":return a.stop()}},e,this)}))}}]),n}();TO.\u0275fac=function(r){return new(r||TO)(t.Y36(Ya.G),t.Y36(va),t.Y36(Ir),t.Y36(Ka),t.Y36(zs.Y))},TO.\u0275cmp=t.Xpm({type:TO,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[t.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.lock()}),t.TgZ(1,"mat-icon"),t._uU(2,"lock"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&r&&(t.xp6(4),t.Oqu(e.command))},dependencies:[Tr,Dn],encapsulation:2});var MO=function(){function n(r,e){(0,U.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignHorizontally",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.y}),i/=this.nodes.length,this.nodes.forEach(function(o){o.y=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();MO.\u0275fac=function(r){return new(r||MO)(t.Y36(Ya.G),t.Y36(Ir))},MO.\u0275cmp=t.Xpm({type:MO,selectors:[["app-align-horizontally-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignHorizontally()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_horiz"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align horizontally"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var SO=function(){function n(r,e){(0,U.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignVertically",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.x}),i/=this.nodes.length,this.nodes.forEach(function(o){o.x=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();SO.\u0275fac=function(r){return new(r||SO)(t.Y36(Ya.G),t.Y36(Ir))},SO.\u0275cmp=t.Xpm({type:SO,selectors:[["app-align-vertically-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignVertically()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align vertically"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var xO=function(){function n(r){(0,U.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),n}();xO.\u0275fac=function(r){return new(r||xO)(t.Y36(sl))},xO.\u0275cmp=t.Xpm({type:xO,selectors:[["app-open-file-explorer-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.open()}),t.TgZ(1,"mat-icon"),t._uU(2,"tab"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Open file explorer"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var fu=function(){function n(r,e,i){(0,U.Z)(this,n),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new t.vpe,this.closeNodeConsoleTrigger=new In.xQ,this.consoleResized=new In.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,B.Z)(n,[{key:"getNumberOfColumns",value:function(){return this.lastNumberOfColumns}},{key:"getNumberOfRows",value:function(){return this.lastNumberOfRows}},{key:"setNumberOfColumns",value:function(e){this.lastNumberOfColumns=e}},{key:"setNumberOfRows",value:function(e){this.lastNumberOfRows=e}},{key:"openConsoleForNode",value:function(e){this.nodeConsoleTrigger.emit(e)}},{key:"closeConsoleForNode",value:function(e){this.closeNodeConsoleTrigger.next(e)}},{key:"resizeTerminal",value:function(e){this.consoleResized.next(e)}},{key:"getLineWidth",value:function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}},{key:"getLineHeight",value:function(){return this.defaultConsoleHeight/this.defaultNumberOfRows}},{key:"getUrl",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws?token=").concat(e.authToken)}},{key:"openConsolesForAllNodesInWidget",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles for them: ",a=0;e.forEach(function(s){"none"!==s.console_type&&("started"===s.status?(i.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){i.openConsoleForNode(s)},500)):(a++,o+=s.name+" "))}),a>0&&this.toasterService.error(o)}},{key:"openConsolesForAllNodesInNewTabs",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles in tabs for them: ",a=0;e.forEach(function(s){if("telnet"===s.console_type)if("started"===s.status){var l=i.router.url.split("/"),u="/static/web-ui/".concat(l[1],"/").concat(l[2],"/").concat(l[3],"/").concat(l[4],"/nodes/").concat(s.node_id);window.open(u)}else a++,o+=s.name+" "}),a>0&&this.toasterService.error(o)}}]),n}();fu.\u0275fac=function(r){return new(r||fu)(t.LFG(dr),t.LFG(Pn),t.LFG(dl))},fu.\u0275prov=t.Yz7({token:fu,factory:fu.\u0275fac});var EO=function(){function n(r){(0,U.Z)(this,n),this.nodeConsoleService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),n}();function T9e(n,r){1&n&&(t.TgZ(0,"div")(1,"h6",4),t._uU(2,"Computing Idle-PC values, please wait..."),t.qZA(),t.TgZ(3,"div",5),t._UZ(4,"mat-spinner",6),t.qZA()())}function M9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}EO.\u0275fac=function(r){return new(r||EO)(t.Y36(fu))},EO.\u0275cmp=t.Xpm({type:EO,selectors:[["app-http-console-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var S9e=function(){return{standalone:!0}};function x9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Choose an Idle-PC value"),t.qZA(),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.idlePC=a)}),t.YNc(5,M9e,2,2,"mat-option",10),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(4),t.Q6J("ngModelOptions",t.DdM(4,S9e))("ngModel",i.idlePC)("matTooltip",i.getTooltip()),t.xp6(1),t.Q6J("ngForOf",i.idlepcs)}}function E9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onCompute())}),t._uU(1,"Compute"),t.qZA()}}function D9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onApply())}),t._uU(1,"Apply"),t.qZA()}}var DO=function(){function n(r,e,i){(0,U.Z)(this,n),this.nodeService=r,this.dialogRef=e,this.toasterService=i,this.idlepcs=[],this.idlePC="",this.isComputing=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.onCompute()}},{key:"getTooltip",value:function(){return"Best Idle-PC values are obtained when IOS is in idle state, after the 'Press RETURN to get started' message has appeared on the console, messages have finished displaying on the console and you have have actually pressed the RETURN key.\n\nFinding the right idle-pc value is a trial and error process, consisting of applying different Idle-PC values and monitoring the CPU usage.\n\nSelect each value that appears in the list and click Apply, and note the CPU usage a few moments later. When you have found the value that minimises the CPU usage, apply that value."}},{key:"onCompute",value:function(){var e=this;this.isComputing=!0,this.nodeService.getIdlePCProposals(this.controller,this.node).subscribe(function(i){var s,o=[],a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.match(/^(0x[0-9a-f]{8})\s+\[(\d+)\]$/);if(u){var d=u[1],h=parseInt(u[2],10);50<=h&&h<=60&&(l+="*"),o.push({key:d,name:l})}}}catch(g){a.e(g)}finally{a.f()}e.idlepcs=o,e.idlepcs.length>0&&(e.idlePC=e.idlepcs[0].key),e.isComputing=!1})}},{key:"onClose",value:function(){this.dialogRef.close()}},{key:"onApply",value:function(){var e=this;this.idlePC&&"0x0"!==this.idlePC&&(this.node.properties.idlepc=this.idlePC,this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated with idle-PC value ").concat(e.idlePC))}))}}]),n}();function A9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.idlePC())}),t.TgZ(1,"mat-icon"),t._uU(2,"query_builder"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Idle-PC"),t.qZA()()}}DO.\u0275fac=function(r){return new(r||DO)(t.Y36(Ir),t.Y36(lr),t.Y36(Pn))},DO.\u0275cmp=t.Xpm({type:DO,selectors:[["app-idle-pc-dialog"]],inputs:{controller:"controller",node:"node"},decls:7,vars:4,consts:[[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click",4,"ngIf"],["mat-button","","color","accent",3,"click"],["align","center"],["mat-dialog-content","","align","center"],["color","accent"],["mat-dialog-title",""],[1,"form-field"],["placeholder","Idle-PC","matTooltipClass","multiline-tooltip",3,"ngModelOptions","ngModel","matTooltip","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,e){1&r&&(t.YNc(0,T9e,5,0,"div",0),t.YNc(1,x9e,6,5,"div",0),t.TgZ(2,"div",1),t.YNc(3,E9e,2,0,"button",2),t.YNc(4,D9e,2,0,"button",2),t.TgZ(5,"button",3),t.NdJ("click",function(){return e.onClose()}),t._uU(6,"Close"),t.qZA()()),2&r&&(t.Q6J("ngIf",e.isComputing),t.xp6(1),t.Q6J("ngIf",!e.isComputing),t.xp6(2),t.Q6J("ngIf",!e.isComputing),t.xp6(1),t.Q6J("ngIf",!e.isComputing))},dependencies:[ge.sg,ge.O5,J.JJ,J.On,kn.KE,cn,yr,cl,ur,xl,$r.gD,Wt.ey,ai],styles:[".container{width:100%;display:flex;justify-content:space-between}.multiline-tooltip{background-color:gray;color:#fff;white-space:pre-line}\n"],encapsulation:2});var AO=function(){function n(r,e){(0,U.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,B.Z)(n,[{key:"idlePC",value:function(){var i=this.dialog.open(DO,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function O9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.autoIdlePC())}),t.TgZ(1,"mat-icon"),t._uU(2,"query_builder"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Auto Idle-PC"),t.qZA()()}}AO.\u0275fac=function(r){return new(r||AO)(t.Y36(Ir),t.Y36(Hr))},AO.\u0275cmp=t.Xpm({type:AO,selectors:[["app-idle-pc-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,A9e,5,0,"button",0),2&r&&t.Q6J("ngIf","dynamips"===e.node.node_type)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var OO=function(){function n(r,e,i){(0,U.Z)(this,n),this.nodeService=r,this.toasterService=e,this.progressService=i}return(0,B.Z)(n,[{key:"autoIdlePC",value:function(){var e=this;this.progressService.activate(),this.nodeService.getAutoIdlePC(this.controller,this.node).subscribe(function(i){e.progressService.deactivate(),null!==i.idlepc&&e.toasterService.success("Node ".concat(e.node.name," updated with idle-PC value ").concat(i.idlepc))},function(i){e.progressService.deactivate(),e.toasterService.error("Error while updating idle-PC value for node ".concat(e.node.name))})}}]),n}();OO.\u0275fac=function(r){return new(r||OO)(t.Y36(Ir),t.Y36(Pn),t.Y36(Hs))},OO.\u0275cmp=t.Xpm({type:OO,selectors:[["app-auto-idle-pc-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,O9e,5,0,"button",0),2&r&&t.Q6J("ngIf","dynamips"===e.node.node_type)},dependencies:[ge.O5,Tr,Dn],encapsulation:2});var IO=function(){function n(r){(0,U.Z)(this,n),this.nodeConsoleService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),n}();IO.\u0275fac=function(r){return new(r||IO)(t.Y36(fu))},IO.\u0275cmp=t.Xpm({type:IO,selectors:[["app-http-console-new-tab-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console in new tab"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var PO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name})}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();PO.\u0275fac=function(r){return new(r||PO)(t.Y36(lr),t.Y36(Ir),t.Y36(Pn),t.Y36(J.QS))},PO.\u0275cmp=t.Xpm({type:PO,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change hostname for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Kn,yr,ur],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var RO=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(PO,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function I9e(n,r){if(1&n&&t._UZ(0,"app-show-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function P9e(n,r){if(1&n&&t._UZ(0,"app-config-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function R9e(n,r){if(1&n&&t._UZ(0,"app-start-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function L9e(n,r){if(1&n&&t._UZ(0,"app-suspend-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function Z9e(n,r){if(1&n&&t._UZ(0,"app-stop-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function N9e(n,r){if(1&n&&t._UZ(0,"app-reload-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function B9e(n,r){if(1&n&&t._UZ(0,"app-http-console-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function F9e(n,r){if(1&n&&t._UZ(0,"app-http-console-new-tab-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function U9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function H9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action-browser",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function j9e(n,r){if(1&n&&t._UZ(0,"app-open-file-explorer-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function G9e(n,r){if(1&n&&t._UZ(0,"app-isolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function z9e(n,r){if(1&n&&t._UZ(0,"app-unisolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function W9e(n,r){if(1&n&&t._UZ(0,"app-change-hostname-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function V9e(n,r){if(1&n&&t._UZ(0,"app-change-symbol-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function Y9e(n,r){if(1&n&&t._UZ(0,"app-duplicate-action",16),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function K9e(n,r){if(1&n&&t._UZ(0,"app-edit-style-action",17),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function q9e(n,r){if(1&n&&t._UZ(0,"app-edit-text-action",18),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])("node",e.nodes[0])("label",e.labels[0])("link",e.links[0])("linkNode",e.linkNodes[0])}}function J9e(n,r){if(1&n&&t._UZ(0,"app-edit-config-action",19),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function Q9e(n,r){if(1&n&&t._UZ(0,"app-export-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function X9e(n,r){if(1&n&&t._UZ(0,"app-import-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function $9e(n,r){if(1&n&&t._UZ(0,"app-idle-pc-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function eHe(n,r){if(1&n&&t._UZ(0,"app-auto-idle-pc-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function tHe(n,r){if(1&n&&t._UZ(0,"app-move-layer-up-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function nHe(n,r){if(1&n&&t._UZ(0,"app-move-layer-down-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function rHe(n,r){if(1&n&&t._UZ(0,"app-bring-to-front-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function iHe(n,r){if(1&n&&t._UZ(0,"app-start-capture-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function oHe(n,r){if(1&n&&t._UZ(0,"app-stop-capture-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function aHe(n,r){if(1&n&&t._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function sHe(n,r){if(1&n&&t._UZ(0,"app-packet-filters-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function lHe(n,r){if(1&n&&t._UZ(0,"app-resume-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function uHe(n,r){if(1&n&&t._UZ(0,"app-suspend-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function cHe(n,r){if(1&n&&t._UZ(0,"app-reset-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function dHe(n,r){if(1&n&&t._UZ(0,"app-edit-link-style-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function pHe(n,r){if(1&n&&t._UZ(0,"app-lock-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function fHe(n,r){if(1&n&&t._UZ(0,"app-delete-action",23),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function hHe(n,r){if(1&n&&t._UZ(0,"app-align-horizontally-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function mHe(n,r){if(1&n&&t._UZ(0,"app-align-vertically-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}RO.\u0275fac=function(r){return new(r||RO)(t.Y36(Hr))},RO.\u0275cmp=t.Xpm({type:RO,selectors:[["app-change-hostname-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeHostname()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change hostname"),t.qZA()())},dependencies:[Tr,Dn],encapsulation:2});var tT=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledController=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledController="bundled"===this.controller.location}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"openMenuForDrawing",value:function(e,i,o){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof vb,this.drawings=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForNode",value:function(e,i,o){this.resetCapabilities(),this.nodes=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForLabel",value:function(e,i,o,a){this.resetCapabilities(),this.labels=[e],this.nodes=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForInterfaceLabel",value:function(e,i,o,a){this.resetCapabilities(),this.linkNodes=[e],this.links=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForListOfElements",value:function(e,i,o,a,s,l){this.resetCapabilities(),this.drawings=e,this.nodes=i,this.labels=o,this.links=a,this.setPosition(s,l),this.contextMenu.openMenu()}},{key:"resetCapabilities",value:function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1}}]),n}();function _He(n,r){if(1&n&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function gHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s._changePageSize(a.value))}),t.YNc(2,_He,2,2,"mat-option",18),t.qZA()()}if(2&n){var i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("panelClass",i.selectConfig.panelClass||"")("disableOptionCentering",i.selectConfig.disableOptionCentering)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function vHe(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e.pageSize)}}function yHe(n,r){if(1&n&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,gHe,3,8,"mat-form-field",14),t.YNc(4,vHe,2,1,"div",15),t.qZA()),2&n){var e=t.oxw();t.xp6(2),t.hij(" ",e._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function bHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function CHe(n,r){if(1&n){var e=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}tT.\u0275fac=function(r){return new(r||tT)(t.Y36(Jt),t.Y36(t.sBO),t.Y36(sl),t.Y36(zs.Y))},tT.\u0275cmp=t.Xpm({type:tT,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_a,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{project:"project",controller:"controller"},decls:42,vars:43,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"controller","node",4,"ngIf"],[3,"controller","nodes",4,"ngIf"],[3,"controller","project","nodes","drawings",4,"ngIf"],[3,"controller","project","drawing",4,"ngIf"],[3,"controller","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"controller","project","node",4,"ngIf"],[3,"controller","nodes","drawings",4,"ngIf"],[3,"controller","project","link",4,"ngIf"],[3,"controller","link",4,"ngIf"],[3,"controller","nodes","drawings","links",4,"ngIf"],[3,"controller","node"],[3,"controller","nodes"],[3,"controller","project","nodes","drawings"],[3,"controller","project","drawing"],[3,"controller","project","drawing","node","label","link","linkNode"],[3,"controller","project","node"],[3,"controller","nodes","drawings"],[3,"controller","project","link"],[3,"controller","link"],[3,"controller","nodes","drawings","links"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0),t._UZ(1,"span",1),t.TgZ(2,"mat-menu",2,3),t.YNc(4,I9e,1,2,"app-show-node-action",4),t.YNc(5,P9e,1,2,"app-config-node-action",4),t.YNc(6,R9e,1,2,"app-start-node-action",5),t.YNc(7,L9e,1,2,"app-suspend-node-action",5),t.YNc(8,Z9e,1,2,"app-stop-node-action",5),t.YNc(9,N9e,1,2,"app-reload-node-action",5),t.YNc(10,B9e,1,2,"app-http-console-action",5),t.YNc(11,F9e,1,2,"app-http-console-new-tab-action",5),t.YNc(12,U9e,1,2,"app-console-device-action",5),t.YNc(13,H9e,1,2,"app-console-device-action-browser",4),t.YNc(14,j9e,1,2,"app-open-file-explorer-action",4),t.YNc(15,G9e,1,2,"app-isolate-node-action",4),t.YNc(16,z9e,1,2,"app-unisolate-node-action",4),t.YNc(17,W9e,1,2,"app-change-hostname-action",4),t.YNc(18,V9e,1,2,"app-change-symbol-action",4),t.YNc(19,Y9e,1,4,"app-duplicate-action",6),t.YNc(20,K9e,1,3,"app-edit-style-action",7),t.YNc(21,q9e,1,7,"app-edit-text-action",8),t.YNc(22,J9e,1,3,"app-edit-config-action",9),t.YNc(23,Q9e,1,2,"app-export-config-action",4),t.YNc(24,X9e,1,2,"app-import-config-action",4),t.YNc(25,$9e,1,2,"app-idle-pc-action",4),t.YNc(26,eHe,1,2,"app-auto-idle-pc-action",4),t.YNc(27,tHe,1,3,"app-move-layer-up-action",10),t.YNc(28,nHe,1,3,"app-move-layer-down-action",10),t.YNc(29,rHe,1,3,"app-bring-to-front-action",10),t.YNc(30,iHe,1,3,"app-start-capture-action",11),t.YNc(31,oHe,1,2,"app-stop-capture-action",12),t.YNc(32,aHe,1,3,"app-start-capture-on-started-link-action",11),t.YNc(33,sHe,1,3,"app-packet-filters-action",11),t.YNc(34,lHe,1,2,"app-resume-link-action",12),t.YNc(35,uHe,1,2,"app-suspend-link-action",12),t.YNc(36,cHe,1,2,"app-reset-link-action",12),t.YNc(37,dHe,1,3,"app-edit-link-style-action",11),t.YNc(38,pHe,1,3,"app-lock-action",10),t.YNc(39,fHe,1,4,"app-delete-action",13),t.YNc(40,hHe,1,2,"app-align-horizontally-action",5),t.YNc(41,mHe,1,2,"app-align-vertically-action",5),t.qZA()()),2&r){var i=t.MAs(3);t.Udp("left",e.leftPosition)("top",e.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(3),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(1===e.drawings.length&&e.hasTextCapabilities&&0===e.labels.length&&0===e.linkNodes.length||1===e.labels.length&&0===e.linkNodes.length&&0===e.drawings.length||1===e.linkNodes.length&&0===e.labels.length&&0===e.drawings.length)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"dynamips"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"dynamips"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},dependencies:[ge.O5,Va,_a,TA,MA,SA,xA,EA,DA,OA,PA,LA,ZA,NA,UA,jA,GA,zA,WA,VA,KA,JA,QA,XA,$A,eO,nO,rO,iO,wO,kO,TO,MO,SO,xO,EO,AO,OO,IO,RO],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0px}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0px!important}"]});var Gm=(0,B.Z)(function n(){(0,U.Z)(this,n),this.changes=new In.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(r,e,i){if(0==i||0==e)return"0 of ".concat(i);var o=r*e,a=o<(i=Math.max(i,0))?Math.min(o+e,i):o+e;return"".concat(o+1," \u2013 ").concat(a," of ").concat(i)}});Gm.\u0275fac=function(r){return new(r||Gm)},Gm.\u0275prov=t.Yz7({token:Gm,factory:Gm.\u0275fac,providedIn:"root"});var kHe={provide:Gm,deps:[[new t.FiY,new t.tp0,Gm]],useFactory:function wHe(n){return n||new Gm}},MHe=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),SHe=(0,Wt.Id)((0,Wt.dB)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}())),D5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;if((0,U.Z)(this,e),(s=r.call(this))._intl=i,s._changeDetectorRef=o,s._pageIndex=0,s._length=0,s._pageSizeOptions=[],s._hidePageSize=!1,s._showFirstLastButtons=!1,s.selectConfig={},s.page=new t.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,d=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=d&&(s._hidePageSize=d),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,B.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,Mn.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,Mn.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,Mn.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,Mn.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,Mn.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,Mn.Ig)(o)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var o=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(o)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(o)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var o=this.pageIndex;this.pageIndex=0,this._emitPageEvent(o)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var o=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(o)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var o=this.getNumberOfPages()-1;return this.pageIndex<o&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(o){var a=this.pageIndex*this.pageSize,s=this.pageIndex;this.pageIndex=Math.floor(a/o)||0,this.pageSize=o,this._emitPageEvent(s)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(o,a){return o-a}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(o){this.page.emit({previousPageIndex:o,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),e}(SHe);D5.\u0275fac=function(r){t.$Z()},D5.\u0275dir=t.lG2({type:D5,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]});var md=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,B.Z)(e)}(D5);md.\u0275fac=function(r){return new(r||md)(t.Y36(Gm),t.Y36(t.sBO),t.Y36(MHe,8))},md.\u0275cmp=t.Xpm({type:md,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,yHe,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,bHe,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return e.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return e.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,CHe,3,5,"button",11),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("ngIf",!e.hidePageSize),t.xp6(3),t.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),t.xp6(1),t.Q6J("ngIf",e.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),t.uIk("aria-label",e._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),t.uIk("aria-label",e._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",e.showFirstLastButtons))},dependencies:[ge.sg,ge.O5,cn,kn.KE,$r.gD,Wt.ey,ai],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0});var nT=(0,B.Z)(function n(){(0,U.Z)(this,n)});nT.\u0275fac=function(r){return new(r||nT)},nT.\u0275mod=t.oAB({type:nT}),nT.\u0275inj=t.cJS({providers:[kHe],imports:[ge.ez,dm,$r.LD,F0,Wt.BQ]});var xHe=m(1452),rT=function(){function n(r){(0,U.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function EHe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function DHe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Console type: ",e.appliance.qemu.console_type,"")}}rT.\u0275fac=function(r){return new(r||rT)(t.Y36(lr))},rT.\u0275cmp=t.Xpm({type:rT,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"button",1),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4,"No"),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(6," Yes "),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage))},dependencies:[cn,ur]});var LO=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();LO.\u0275fac=function(r){return new(r||LO)(t.Y36(lr),t.Y36(go))},LO.\u0275cmp=t.Xpm({type:LO,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.qZA()(),t.TgZ(3,"div",2)(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div"),t._uU(7),t.qZA(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.YNc(10,EHe,2,1,"div",3),t.YNc(11,DHe,2,1,"div",3),t.qZA(),t.TgZ(12,"div",4)(13,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Close"),t.qZA()()),2&r&&(t.xp6(2),t.Oqu(e.appliance.name),t.xp6(3),t.hij("Vendor: ",e.appliance.vendor_name,""),t.xp6(2),t.hij("Status: ",e.appliance.status,""),t.xp6(2),t.hij("Maintainer: ",e.appliance.maintainer,""),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu))},dependencies:[ge.O5,cn,yr,cl,ur],encapsulation:2});var AHe=function(r,e){return function(i){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function OHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is required"),t.qZA())}function IHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is incorrect"),t.qZA())}function PHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template with this name exists"),t.qZA())}var RHe=function(r){return{"is-invalid":r}},iv=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=l,this.data=u}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new J.p4(i,[J.kI.required,this.templateNameValidator.get],[AHe(this.controller,this.templateService)])}),setTimeout(function(){e.templateNameForm.controls.templateName.markAsTouched()},100)}},{key:"form",get:function(){return this.templateNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.controller).subscribe(function(i){var o=e.templateNameForm.controls.templateName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Template with this name exists"):e.dialogRef.close(e.templateNameForm.controls.templateName.value)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();iv.\u0275fac=function(r){return new(r||iv)(t.Y36(lr),t.Y36(dr),t.Y36(Hr),t.Y36(Pn),t.Y36(J.QS),t.Y36(Gu),t.Y36(sp),t.Y36(go))},iv.\u0275cmp=t.Xpm({type:iv,selectors:[["app-template-name-dialog"]],features:[t._Bn([Gu])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Please enter name for the new template"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,OHe,2,0,"mat-error",4),t.YNc(6,IHe,2,0,"mat-error",4),t.YNc(7,PHe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add template "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,RHe,null==e.form.templateName?null:e.form.templateName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.touched)&&(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Db=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getAppliances",value:function(e){return this.httpController.get(e,"/appliances")}},{key:"getAppliance",value:function(e,i){return this.httpController.get(e,i)}},{key:"getUploadPath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),n}();Db.\u0275fac=function(r){return new(r||Db)(t.LFG(mo.zw))},Db.\u0275prov=t.Yz7({token:Db,factory:Db.\u0275fac});function ZHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",i._getArrowDirectionState())}}var jse=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),BHe=(0,Wt.dB)((0,Wt.Id)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}())),zu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new In.xQ,o.start="asc",o._direction="",o.sortChange=new t.vpe,o}return(0,B.Z)(e,[{key:"direction",get:function(){return this._direction},set:function(o){this._direction=o}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,Mn.Ig)(o)}},{key:"register",value:function(o){this.sortables.set(o.id,o)}},{key:"deregister",value:function(o){this.sortables.delete(o.id)}},{key:"sort",value:function(o){this.active!=o.id?(this.active=o.id,this.direction=o.start?o.start:this.start):this.direction=this.getNextSortDirection(o),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(o){var a,s,l;if(!o)return"";var u=null!==(s=null!==(a=null==o?void 0:o.disableClear)&&void 0!==a?a:this.disableClear)&&void 0!==s?s:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear),d=function FHe(n,r){var e=["asc","desc"];return"desc"==n&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=d.indexOf(this.direction)+1;return h>=d.length&&(h=0),d[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(BHe);zu.\u0275fac=function(r){return new(r||zu)(t.Y36(jse,8))},zu.\u0275dir=t.lG2({type:zu,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]});var ov=Wt.mZ.ENTERING+" "+Wt.yN.STANDARD_CURVE,iT={indicator:(0,Rt.X$)("indicator",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"translateY(0px)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"translateY(10px)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(ov))]),leftPointer:(0,Rt.X$)("leftPointer",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"rotate(-45deg)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"rotate(45deg)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(ov))]),rightPointer:(0,Rt.X$)("rightPointer",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"rotate(45deg)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"rotate(-45deg)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(ov))]),arrowOpacity:(0,Rt.X$)("arrowOpacity",[(0,Rt.SB)("desc-to-active, asc-to-active, active",(0,Rt.oB)({opacity:1})),(0,Rt.SB)("desc-to-hint, asc-to-hint, hint",(0,Rt.oB)({opacity:.54})),(0,Rt.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,Rt.oB)({opacity:0})),(0,Rt.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,Rt.jt)("0ms")),(0,Rt.eR)("* <=> *",(0,Rt.jt)(ov))]),arrowPosition:(0,Rt.X$)("arrowPosition",[(0,Rt.eR)("* => desc-to-hint, * => desc-to-active",(0,Rt.jt)(ov,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(-25%)"}),(0,Rt.oB)({transform:"translateY(0)"})]))),(0,Rt.eR)("* => hint-to-desc, * => active-to-desc",(0,Rt.jt)(ov,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(0)"}),(0,Rt.oB)({transform:"translateY(25%)"})]))),(0,Rt.eR)("* => asc-to-hint, * => asc-to-active",(0,Rt.jt)(ov,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(25%)"}),(0,Rt.oB)({transform:"translateY(0)"})]))),(0,Rt.eR)("* => hint-to-asc, * => active-to-asc",(0,Rt.jt)(ov,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(0)"}),(0,Rt.oB)({transform:"translateY(-25%)"})]))),(0,Rt.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,Rt.oB)({transform:"translateY(0)"})),(0,Rt.SB)("hint-to-desc, active-to-desc, desc",(0,Rt.oB)({transform:"translateY(-25%)"})),(0,Rt.SB)("hint-to-asc, active-to-asc, asc",(0,Rt.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,Rt.X$)("allowChildren",[(0,Rt.eR)("* <=> *",[(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})])])},zm=(0,B.Z)(function n(){(0,U.Z)(this,n),this.changes=new In.xQ});zm.\u0275fac=function(r){return new(r||zm)},zm.\u0275prov=t.Yz7({token:zm,factory:zm.\u0275fac,providedIn:"root"});var HHe={provide:zm,deps:[[new t.FiY,new t.tp0,zm]],useFactory:function UHe(n){return n||new zm}},jHe=(0,Wt.Id)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}()),vp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,U.Z)(this,e),(g=r.call(this))._intl=i,g._changeDetectorRef=o,g._sort=a,g._columnDef=s,g._focusMonitor=l,g._elementRef=u,g._ariaDescriber=d,g._showIndicatorHint=!1,g._viewState={},g._arrowDirection="",g._disableViewStateAnimation=!1,g.arrowPosition="after",g._sortActionDescription="Sort",null!=h&&h.arrowPosition&&(g.arrowPosition=null==h?void 0:h.arrowPosition),g._handleStateChanges(),g}return(0,B.Z)(e,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(o){this._updateSortActionDescription(o)}},{key:"disableClear",get:function(){return this._disableClear},set:function(o){this._disableClear=(0,Mn.Ig)(o)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){var s=!!a;s!==o._showIndicatorHint&&(o._setIndicatorHintVisible(s),o._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(o){this._isDisabled()&&o||(this._showIndicatorHint=o,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(o){this._viewState=o||{},this._disableViewStateAnimation&&(this._viewState={toState:o.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(o){!this._isDisabled()&&(o.keyCode===xr.L_||o.keyCode===xr.K5)&&(o.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var o=this._viewState.fromState;return(o?"".concat(o,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(o){var a,s;this._sortButton&&(null===(a=this._ariaDescriber)||void 0===a||a.removeDescription(this._sortButton,this._sortActionDescription),null===(s=this._ariaDescriber)||void 0===s||s.describe(this._sortButton,o)),this._sortActionDescription=o}},{key:"_handleStateChanges",value:function(){var o=this;this._rerenderSubscription=(0,ji.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){o._isSorted()&&(o._updateArrowDirection(),("hint"===o._viewState.toState||"active"===o._viewState.toState)&&(o._disableViewStateAnimation=!0),o._setAnimationTransitionState({fromState:o._arrowDirection,toState:"active"}),o._showIndicatorHint=!1),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),o._changeDetectorRef.markForCheck()})}}]),e}(jHe);vp.\u0275fac=function(r){return new(r||vp)(t.Y36(zm),t.Y36(t.sBO),t.Y36(zu,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(Yr.$s,8),t.Y36(jse,8))},vp.\u0275cmp=t.Xpm({type:vp,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._handleClick()})("keydown",function(o){return e._handleKeydown(o)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&r&&(t.uIk("aria-sort",e._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,ZHe,6,6,"div",2),t.qZA()),2&r&&(t.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"===e.arrowPosition),t.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",e._renderArrow()))},dependencies:[ge.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[iT.indicator,iT.leftPointer,iT.rightPointer,iT.arrowOpacity,iT.arrowPosition,iT.allowChildren]},changeDetection:0});var oT=(0,B.Z)(function n(){(0,U.Z)(this,n)});oT.\u0275fac=function(r){return new(r||oT)},oT.\u0275mod=t.oAB({type:oT}),oT.\u0275inj=t.cJS({providers:[HHe],imports:[ge.ez,Wt.BQ]});var ZO=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();ZO.\u0275fac=function(r){return new(r||ZO)},ZO.\u0275pipe=t.Yjl({name:"datasourcefilter",type:ZO,pure:!0});var GHe=["stepper"];function zHe(n,r){1&n&&t._uU(0,"Please select how you want to create new template")}function WHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw();t.Oqu(e.actionTitle)}}function VHe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function YHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function KHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function qHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Emulator "),t.qZA())}function JHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.emulator," ")}}function QHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Vendor "),t.qZA())}function XHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.vendor_name," ")}}function $He(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function eje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",34)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.install(a))}),t.TgZ(2,"mat-icon",36),t._uU(3,"archive"),t.qZA()(),t.TgZ(4,"button",37),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.showInfo(a))}),t.TgZ(5,"mat-icon",38),t._uU(6,"info"),t.qZA()()()}}function tje(n,r){1&n&&t._UZ(0,"mat-header-row")}function nje(n,r){1&n&&t._UZ(0,"mat-row")}function rje(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw(2);t.Oqu(e.secondActionTitle)}}function ije(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function oje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function aje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ije,3,0,"span",32),t.YNc(5,oje,3,0,"span",32),t.TgZ(6,"input",46,47),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.bios_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.bios_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.bios_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function sje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function lje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function uje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,sje,3,0,"span",32),t.YNc(5,lje,3,0,"span",32),t.TgZ(6,"input",46,51),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hda_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hda_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hda_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function cje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function dje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function pje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,cje,3,0,"span",32),t.YNc(5,dje,3,0,"span",32),t.TgZ(6,"input",46,52),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdb_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdb_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function fje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function hje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function mje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,fje,3,0,"span",32),t.YNc(5,hje,3,0,"span",32),t.TgZ(6,"input",46,53),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdc_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdc_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function _je(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function gje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function vje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,_je,3,0,"span",32),t.YNc(5,gje,3,0,"span",32),t.TgZ(6,"input",46,54),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdd_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdd_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdd_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function yje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function bje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function Cje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,yje,3,0,"span",32),t.YNc(5,bje,3,0,"span",32),t.TgZ(6,"input",46,55),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.cdrom_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.cdrom_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.cdrom_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function wje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createQemuTemplateFromVersion(l))}),t._uU(6," Create "),t.qZA()()(),t.YNc(7,aje,12,4,"div",44),t.YNc(8,uje,12,4,"div",44),t.YNc(9,pje,12,4,"div",44),t.YNc(10,mje,12,4,"div",44),t.YNc(11,vje,12,4,"div",44),t.YNc(12,Cje,12,4,"div",44),t.qZA()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.AsE("",o.applianceToInstall.name," version ",i.name,""),t.xp6(4),t.Q6J("ngIf",i.images.bios_image),t.xp6(1),t.Q6J("ngIf",i.images.hda_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdb_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdc_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdd_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.cdrom_image)}}function kje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install the required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"div"),t.YNc(8,wje,13,8,"div",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.versions)}}function Tje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.createDockerTemplate())}),t._uU(2," Create docker template "),t.qZA()()}}function Mje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function Sje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function xje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t.YNc(5,Mje,3,0,"span",32),t.YNc(6,Sje,3,0,"span",32),t.TgZ(7,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(9,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(8);return t.KtG(s.click())}),t._uU(10,"Import"),t.qZA(),t.TgZ(11,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIosTemplate(l))}),t._uU(12," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function Eje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install the required images "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,xje,13,4,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function Dje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function Aje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function Oje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.YNc(4,Dje,3,0,"span",32),t.YNc(5,Aje,3,0,"span",32),t.TgZ(6,"div")(7,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(9,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(8);return t.KtG(s.click())}),t._uU(10,"Import"),t.qZA(),t.TgZ(11,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIouTemplate(l))}),t._uU(12," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(1),t.Q6J("ngIf",o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.filename)),t.xp6(2),t.Q6J("uploader",o.uploaderImage)}}function Ije(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install the required images "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,Oje,13,4,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function Pje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step"),t.YNc(1,rje,1,1,"ng-template",3),t.TgZ(2,"mat-card",9),t.YNc(3,kje,9,1,"div",32),t.YNc(4,Tje,3,0,"div",32),t.YNc(5,Eje,9,1,"div",32),t.YNc(6,Ije,9,1,"div",32),t.qZA(),t.TgZ(7,"div")(8,"button",30),t._uU(9,"Back"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onCloseClick())}),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.qemu),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.docker),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.dynamips),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.iou)}}var Rje=function(){return{standalone:!0}},Lje=function(){return[5,10,20,50,100]},aT=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q){(0,U.Z)(this,n),this.dialogRef=r,this.applianceService=e,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=l,this.iouService=u,this.templateService=d,this.dialog=h,this.computeService=g,this.changeDetectorRef=C,this.progressService=Z,this.snackBar=z,this.uploadServiceService=q,this.action="install",this.actionTitle="Install appliance from controller",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isLinuxPlatform=!1,this.isLocalComputerChosen=!1,this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[],this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Af(e.allAppliances),e.dataSource.paginator=e.paginator}),this.templateService.list(this.controller).subscribe(function(i){e.templates=i}),this.computeService.getComputes(this.controller).subscribe(function(i){i.forEach(function(o){"linux"===o.capabilities.platform&&(e.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i}),this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Af(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(i,o,a,s){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(i.url)},this.uploaderImage=new wg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occurred because image already exists"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(i,o,a,s){e.toasterService.success("Image successfully imported"),e.refreshImages(),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"updateAppliances",value:function(){var e=this;this.progressService.activate(),this.applianceService.updateAppliances(this.controller).subscribe(function(i){e.appliances=i,e.progressService.deactivate(),e.toasterService.success("Appliances are up-to-date.")},function(i){e.progressService.deactivate(),e.toasterService.error("Appliances were not updated correctly.")})}},{key:"refreshImages",value:function(){var e=this;this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"getAppliance",value:function(e){var i=this,o=e.split("/".concat(Wa.N.current_version)),a=o[o.length-1];this.applianceService.getAppliance(this.controller,a).subscribe(function(s){i.applianceToInstall=s,setTimeout(function(){i.stepper.next()},100)})}},{key:"addAppliance",value:function(e){var i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){var d=JSON.parse(l.result);d.docker&&"docker",d.dynamips&&"dynamips",d.iou&&"iou",d.qemu&&"qemu";var h=i.applianceService.getUploadPath(i.controller,a);i.uploader.queue.forEach(function(C){return C.url=h});var g=i.uploader.queue[0];g.options&&(g.options.disableMultipart=!0),g.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(g)},l.readAsText(s)}},{key:"filterAppliances",value:function(e){var i=this,o=this.allAppliances.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all categories"!==this.category&&this.category?this.appliances=o.filter(function(a){return a.category===i.category}):this.appliances=o,this.dataSource=new Af(this.appliances),this.dataSource.paginator=this.paginator}},{key:"setAction",value:function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from controller":"import"===e&&(this.actionTitle="Import an appliance file")}},{key:"setControllerType",value:function(e){this.isLocalComputerChosen=!0}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.appliances.slice();this.appliances=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?bW(o.name,a.name,s):"emulator"===e.active?bW(o.emulator,a.emulator,s):"vendor"===e.active?bW(o.vendor_name,a.vendor_name,s):0})}}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"install",value:function(e){var i=this;this.applianceToInstall=e,setTimeout(function(){i.stepper.next()},100)}},{key:"showInfo",value:function(e){this.dialog.open(LO,{width:"250px",data:{appliance:e}}).componentInstance.appliance=e}},{key:"importImage",value:function(e,i){var o=this;this.computeChecksumMd5(e.target.files[0],!1).then(function(a){var s=o.applianceToInstall.images.filter(function(u){return u.filename===i})[0];if(s.md5sum!==a){o.progressService.deactivate();var l=o.dialog.open(rT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});l.componentInstance.confirmationMessage="This is not the correct file.\n The MD5 sum is ".concat(a," and should be ").concat(s.md5sum,". Do you want to accept it at your own risks?"),l.afterClosed().subscribe(function(u){u?(o.importImageFile(e,i),o.openSnackBar()):o.uploaderImage.clearQueue()})}else o.importImageFile(e,i),o.openSnackBar()})}},{key:"importImageFile",value:function(e,i){var o=this,l=(e.target.files[0].name.split("-")[0],e.target.files[0],new FileReader);l.onloadend=function(){o.applianceToInstall.qemu&&"qemu",o.applianceToInstall.dynamips&&"dynamips",o.applianceToInstall.iou&&"iou";var d=o.applianceService.getUploadPath(o.controller,i);o.uploaderImage.queue.forEach(function(g){return g.url=d});var h=o.uploaderImage.queue[0];h.options&&(h.options.disableMultipart=!0),h.options.headers=[{name:"Authorization",value:"Bearer "+o.controller.authToken}],o.uploaderImage.uploadItem(h)},l.onloadend(void 0)}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1)}},{key:"checkImageFromVersion",value:function(e){var i=this.applianceToInstall.images.filter(function(o){return o.filename===e})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(o){return o.checksum===i.md5sum}).length>0)return!0;return!1}},{key:"openConfirmationDialog",value:function(e,i){var o=this.dialog.open(rT,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});o.componentInstance.confirmationMessage=e,o.afterClosed().subscribe(function(a){a&&window.open(i)})}},{key:"downloadImage",value:function(e){var o="The file is compressed with ".concat(e.compression,", it must be uncompressed first.");e.direct_download_url?e.compression?this.openConfirmationDialog(o,e.direct_download_url):window.open(e.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",e.download_url)}},{key:"downloadImageFromVersion",value:function(e){var i=this;this.applianceToInstall.images.forEach(function(o){o.filename===e&&i.downloadImage(o)})}},{key:"getCategory",value:function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category}},{key:"createIouTemplate",value:function(e){var i=this,o=e.filename,a=this.applianceToInstall.images.filter(function(d){return d.filename===o})[0],s=this.iouImages.filter(function(d){return d.checksum===a.md5sum});s.length>0&&(o=s[0].filename);var l=new pz;l.nvram=this.applianceToInstall.iou.nvram,l.ram=this.applianceToInstall.iou.ram,l.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,l.serial_adapters=this.applianceToInstall.iou.serial_adapters,l.startup_config=this.applianceToInstall.iou.startup_config,l.category=this.getCategory(),l.default_name_format=this.applianceToInstall.default_name_format,l.symbol=this.applianceToInstall.symbol,l.compute_id="local",l.template_id=ts(),l.path=o,l.template_type="iou";var u=this.dialog.open(iv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});u.componentInstance.controller=this.controller,u.afterClosed().subscribe(function(d){if(!d)return!1;l.name=d,i.iouService.addTemplate(i.controller,l).subscribe(function(h){i.templateService.newTemplateCreated.next(h),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createIosTemplate",value:function(e){var i=this,o=e.filename,a=this.applianceToInstall.images.filter(function(d){return d.filename===o})[0],s=this.iosImages.filter(function(d){return d.checksum===a.md5sum});s.length>0&&(o=s[0].filename);var l=new dz;l.chassis=this.applianceToInstall.dynamips.chassis,l.nvram=this.applianceToInstall.dynamips.nvram,l.platform=this.applianceToInstall.dynamips.platform,l.ram=this.applianceToInstall.dynamips.ram,l.startup_config=this.applianceToInstall.dynamips.startup_config,l.slot0=this.applianceToInstall.dynamips.slot0,l.slot1=this.applianceToInstall.dynamips.slot1,l.slot2=this.applianceToInstall.dynamips.slot2,l.slot3=this.applianceToInstall.dynamips.slot3,l.slot4=this.applianceToInstall.dynamips.slot4,l.slot5=this.applianceToInstall.dynamips.slot5,l.slot6=this.applianceToInstall.dynamips.slot6,l.slot7=this.applianceToInstall.dynamips.slot7,l.category=this.getCategory(),l.default_name_format=this.applianceToInstall.default_name_format,l.symbol=this.applianceToInstall.symbol,l.compute_id="local",l.template_id=ts(),l.image=o,l.template_type="dynamips";var u=this.dialog.open(iv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});u.componentInstance.controller=this.controller,u.afterClosed().subscribe(function(d){if(!d)return!1;l.name=d,i.iosService.addTemplate(i.controller,l).subscribe(function(h){i.templateService.newTemplateCreated.next(h),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createDockerTemplate",value:function(){var e=this,i=new uz;i.adapters=this.applianceToInstall.docker.adapters,i.console_type=this.applianceToInstall.docker.console_type,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=ts(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(iv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.controller=this.controller,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,e.dockerService.addTemplate(e.controller,i).subscribe(function(s){e.templateService.newTemplateCreated.next(s),e.toasterService.success("Template added"),e.dialogRef.close()})})}},{key:"findControllerImageName",value:function(e){if(e){var i=this.applianceToInstall.images.filter(function(a){return a.filename===e})[0],o=this.qemuImages.filter(function(a){return a.checksum===i.md5sum});o.length>0&&(e=o[0].filename)}return e}},{key:"createQemuTemplateFromVersion",value:function(e){var i=this,o=new fz;o.ram=this.applianceToInstall.qemu.ram,o.adapters=this.applianceToInstall.qemu.adapters,o.adapter_type=this.applianceToInstall.qemu.adapter_type,o.boot_priority=this.applianceToInstall.qemu.boot_priority,o.console_type=this.applianceToInstall.qemu.console_type,o.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,o.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,o.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,o.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,o.category=this.getCategory(),o.first_port_name=this.applianceToInstall.first_port_name,o.port_name_format=this.applianceToInstall.port_name_format,o.port_segment_size=this.applianceToInstall.port_segment_size,o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ts(),o.hda_disk_image=this.findControllerImageName(e.images.hda_disk_image),o.hdb_disk_image=this.findControllerImageName(e.images.hdb_disk_image),o.hdc_disk_image=this.findControllerImageName(e.images.hdc_disk_image),o.hdd_disk_image=this.findControllerImageName(e.images.hdd_disk_image),o.cdrom_image=this.findControllerImageName(e.images.cdrom_image),o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(iv,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});a.componentInstance.controller=this.controller,a.afterClosed().subscribe(function(s){if(!s)return!1;o.name=s,i.qemuService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"computeChecksumMd5",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(o,a){var s=2097152,l=new xHe.ArrayBuffer,u=new FileReader,d=0;function h(g){var C=Math.min(e.size,g+s);u.readAsArrayBuffer(e.slice(g,C))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(g){l.append(g.target.result),(d+=s)<e.size?h(d):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(km,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),n}();function bW(n,r,e){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}aT.\u0275fac=function(r){return new(r||aT)(t.Y36(lr),t.Y36(Db),t.Y36(t.sBO),t.Y36(Pn),t.Y36(Bu),t.Y36(nd),t.Y36(od),t.Y36(ad),t.Y36(sp),t.Y36(Hr),t.Y36(ap.X),t.Y36(t.sBO),t.Y36(Hs),t.Y36(td),t.Y36(id))},aT.\u0275cmp=t.Xpm({type:aT,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(md,7),t.Gf(GHe,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.paginator=i.first),t.iGM(i=t.CRH())&&(e.stepper=i.first))},inputs:{controller:"controller",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["fileBios",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file2",""],["file3",""],["file4",""],["file5",""],["file6",""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Add new template"),t.qZA(),t.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),t.YNc(5,zHe,1,0,"ng-template",3),t.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),t.NdJ("click",function(){return e.setAction("install")}),t._uU(8,"Install new appliance from the GNS controller"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"mat-radio-button",6),t.NdJ("click",function(){return e.setAction("import")}),t._uU(11,"Import an appliance file"),t.qZA()(),t.TgZ(12,"div")(13,"button",7),t._uU(14,"Next"),t.qZA(),t.TgZ(15,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(16,"Cancel"),t.qZA()()(),t.TgZ(17,"mat-step"),t.YNc(18,WHe,1,1,"ng-template",3),t.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(23,"mat-select",13),t.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),t.YNc(24,VHe,2,2,"mat-option",14),t.qZA()(),t.TgZ(25,"mat-table",15,16),t.NdJ("matSortChange",function(a){return e.sortData(a)}),t.ALo(27,"datasourcefilter"),t.ynx(28,17),t.YNc(29,YHe,2,0,"mat-header-cell",18),t.YNc(30,KHe,2,1,"mat-cell",19),t.BQk(),t.ynx(31,20),t.YNc(32,qHe,2,0,"mat-header-cell",18),t.YNc(33,JHe,2,1,"mat-cell",19),t.BQk(),t.ynx(34,21),t.YNc(35,QHe,2,0,"mat-header-cell",18),t.YNc(36,XHe,2,1,"mat-cell",19),t.BQk(),t.ynx(37,22),t.YNc(38,$He,2,0,"mat-header-cell",18),t.YNc(39,eje,7,0,"mat-cell",23),t.BQk(),t.YNc(40,tje,1,0,"mat-header-row",24),t.YNc(41,nje,1,0,"mat-row",25),t.qZA(),t._UZ(42,"mat-paginator",26),t.qZA(),t.TgZ(43,"mat-card",9)(44,"input",27,28),t.NdJ("change",function(a){return e.addAppliance(a)}),t.qZA(),t.TgZ(46,"button",29),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(45);return t.KtG(a.click())}),t._uU(47," Click to import appliance "),t.qZA()(),t.TgZ(48,"div")(49,"button",30),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",31),t.NdJ("click",function(){return e.updateAppliances()}),t._uU(52," Update from online registry "),t.qZA(),t.TgZ(53,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(54,"Cancel"),t.qZA()()(),t.YNc(55,Pje,12,5,"mat-step",32),t.qZA()}2&r&&(t.xp6(2),t.Q6J("linear",!1),t.xp6(17),t.Q6J("hidden","install"!==e.action),t.xp6(3),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,Rje))("ngModel",e.category),t.xp6(1),t.Q6J("ngForOf",e.categories),t.xp6(1),t.Q6J("dataSource",t.xi3(27,14,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(18,Lje)),t.xp6(1),t.Q6J("hidden","install"===e.action),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(7),t.Q6J("hidden","install"!==e.action),t.xp6(4),t.Q6J("ngIf",e.applianceToInstall))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,Mf,kn.KE,md,cn,si,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,yr,fm,Aa,zu,$r.gD,Wt.ey,ai,rd,bm,lp,Mk,Sk,ns,Gs,ZO],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.tableHeader[_ngcontent-%COMP%], .filter-field[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;padding-left:30px;margin-bottom:15px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}"],data:{animation:[(0,Rt.X$)("detailExpand",[(0,Rt.SB)("collapsed",(0,Rt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed",(0,Rt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var Zje=m(2033),Nje='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Ab_xmlns="http://www.w3.org/2000/xmlns/",Ab_xlink="http://www.w3.org/1999/xlink",Ab_svg="http://www.w3.org/2000/svg",Gse="untitled";function Fje(){var n=document.createElementNS(Ab_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function Hje(n,r){function e(s){for(var u,d,l=getComputedStyle(s),h="",g=0,C=l.length;g<C;g++)u=l[g],(d=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(d,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(d){if(d&&d.hasChildNodes())for(var h=d.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(n),a=o.length;a--;)e(o[a])}function jje(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(e){return!e.href||e.href.startsWith(document.location.origin)}).map(function(e){return Array.from(e.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}var Gje=function Uje(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(Ab_xmlns,"xmlns")||n.setAttributeNS(Ab_xmlns,"xmlns",Ab_svg),n.hasAttributeNS(Ab_xmlns,"xmlns:xlink")||n.setAttributeNS(Ab_xmlns,"xmlns:xlink",Ab_xlink),"inline"===i?Hje(n,Fje()):"internal"===i&&jje(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:Nje+o};return s};function Wje(n,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var Yje=function Vje(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gse,e=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));Wje("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var Jje=function(r,e,i){return Yje(Gje(r,i),e||function zje(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||Gse}(r))};function Qje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Name for screenshot is required"),t.qZA())}function Xje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Entered name is incorrect"),t.qZA())}var $je=function(r){return{"is-invalid":r}},NO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.toasterService=e,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new J.p4("screenshot-".concat(Date.now()),[J.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.nameForm.controls}},{key:"onAddClick",value:function(){if(!this.nameForm.invalid){var e={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(e)}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"setFiletype",value:function(e){this.isPngAvailable&&(this.filetype=e)}}]),n}();NO.\u0275fac=function(r){return new(r||NO)(t.Y36(lr),t.Y36(Pn),t.Y36(J.QS),t.Y36(sl),t.Y36(nv))},NO.\u0275cmp=t.Xpm({type:NO,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Take a screenshot"),t.qZA(),t.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),t.NdJ("click",function(){return e.setFiletype("svg")}),t._uU(4,"SVG"),t.qZA(),t.TgZ(5,"mat-radio-button",3),t.NdJ("click",function(){return e.setFiletype("png")}),t._uU(6,"PNG"),t.qZA()(),t.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(10,Qje,2,0,"mat-error",7),t.YNc(11,Xje,2,0,"mat-error",7),t.qZA(),t.TgZ(12,"div",8)(13,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Cancel"),t.qZA(),t.TgZ(15,"button",10),t.NdJ("click",function(){return e.onAddClick()}),t._uU(16,"Take a screenshot"),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("disabled",!e.isPngAvailable),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,$je,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.acreenshotName?null:e.form.acreenshotName.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur,ns,Gs],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var BO=function(){function n(r,e){(0,U.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data.actionType}},{key:"confirmAction",value:function(){this.confirmActionData.isAction="Lock"==this.data.actionType,this.dialogRef.close(this.confirmActionData)}}]),n}();BO.\u0275fac=function(r){return new(r||BO)(t.Y36(go),t.Y36(lr))},BO.\u0275cmp=t.Xpm({type:BO,selectors:[["app-project-map-lock-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[cn,Eg,cl,ur,pm.d]});var Ob=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new vb;return e.height=100,e.width=100,e.fill="#000000",e.fill_opacity=0,e.font_family="Noto Sans",e.font_size=11,e.font_weight="bold",e}}]),n}();Ob.\u0275fac=function(r){return new(r||Ob)},Ob.\u0275prov=t.Yz7({token:Ob,factory:Ob.\u0275fac});var Ib=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new ea;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.cx=100,e.cy=100,e.rx=100,e.ry=100,e.width=200,e.height=200,e}}]),n}();Ib.\u0275fac=function(r){return new(r||Ib)},Ib.\u0275prov=t.Yz7({token:Ib,factory:Ib.\u0275fac});var Pb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new hp;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e.rx=0,e.ry=0,e}}]),n}();Pb.\u0275fac=function(r){return new(r||Pb)},Pb.\u0275prov=t.Yz7({token:Pb,factory:Pb.\u0275fac});var Rb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new gb;return e.stroke="#000000",e.stroke_width=2,e.x1=0,e.x2=200,e.y1=0,e.y2=0,e.width=100,e.height=0,e}}]),n}();Rb.\u0275fac=function(r){return new(r||Rb)},Rb.\u0275prov=t.Yz7({token:Rb,factory:Rb.\u0275fac});var av=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.textElementFactory=r,this.ellipseElementFactory=e,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return(0,B.Z)(n,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new Lm;return i.element=this.factory.getDrawingElement(),i}}]),n}();av.\u0275fac=function(r){return new(r||av)(t.LFG(Ob),t.LFG(Ib),t.LFG(Pb),t.LFG(Rb))},av.\u0275prov=t.Yz7({token:av,factory:av.\u0275fac});var FO=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(i){return e.onDrawingSaved(i)})}},{key:"ngOnChanges",value:function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))}},{key:"onDrawingSaved",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock(this.selectedDrawing),a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.pointToAddSelected.unsubscribe()}}]),n}();FO.\u0275fac=function(r){return new(r||FO)(t.Y36(Ka),t.Y36(va),t.Y36(Zl),t.Y36(av),t.Y36(hd))},FO.\u0275cmp=t.Xpm({type:FO,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[t.TTD],decls:0,vars:0,template:function(r,e){}});var zse=function(r){return{selected:r}};function eGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",14),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,zse,i.drawTools.isLineChosen))}}function tGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,zse,i.drawTools.isLineChosen))}}var nGe=function(r,e){return{unmarkedLight:r,marked:e}},rGe=function(r){return{unmarkedLight:r}},sT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.toolsService=r,this.mapSettingsService=e,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.projectServices=l,this.nodeService=u,this.nodesDataSource=d,this.drawingsDataSource=h,this.nodes=[],this.drawing=[],this.lock="lock_open",this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.projectSubscription=this.projectServices.projectLockIconSubject.subscribe(function(i){i&&e.getAllNodesAndDrawingStatus()}),this.getAllNodesAndDrawingStatus()}},{key:"getCssClassForIcon",value:function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}}},{key:"takeScreenshot",value:function(){var e=this;this.dialog.open(NO,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.saveImage(o)})}},{key:"saveImage",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){var o,a,s,l,u,d,h,g,C;return Ln().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if("png"!==e.filetype){q.next=21;break}o=document.getElementsByTagName("svg")[0].outerHTML.split("image"),a=1;case 3:if(!(a<o.length)){q.next=14;break}return s=o[a].split('"'),l=s[1].split("/"),q.next=8,this.symbolService.raw(this.controller,l[7]).toPromise();case 8:u=q.sent,d=u.split("--\x3e"),o[a]=d[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(g=document.createElement("div")).innerHTML=h,C=g.firstChild,Zje.saveSvgAsPng(C,"".concat(e.name,".png")),q.next=23;break;case 21:vi("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),Jje(vi("svg").node(),"".concat(e.name));case 23:case"end":return q.stop()}},i,this)}))}},{key:"addDrawing",value:function(e){switch("rectangle"===e&&this.drawTools.isRectangleChosen||"ellipse"===e&&this.drawTools.isEllipseChosen||"line"===e&&this.drawTools.isLineChosen||"text"===e&&this.drawTools.isTextChosen?document.documentElement.style.cursor="default":document.documentElement.style.cursor="crosshair",e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e}},{key:"onDrawingSaved",value:function(){this.resetDrawToolChoice()}},{key:"resetDrawToolChoice",value:function(){document.documentElement.style.cursor="default",this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}},{key:"getAllNodesAndDrawingStatus",value:function(){var e=this;this.projectServices.getProjectStatus(this.controller,this.project.project_id).subscribe(function(i){i?(e.isLocked=!0,e.lock="lock"):(e.isLocked=!1,e.lock="lock_open")}),this.projectServices.nodes(this.controller,this.project.project_id).subscribe(function(i){e.nodes=i,e.nodes.forEach(function(o){e.nodeService.updateNode(e.controller,o).subscribe(function(a){e.nodesDataSource.update(a)})})}),this.projectServices.drawings(this.controller,this.project.project_id).subscribe(function(i){e.drawing=i,e.drawing.forEach(function(o){e.drawingService.update(e.controller,o).subscribe(function(a){e.drawingsDataSource.update(a)})})})}},{key:"changeLockValue",value:function(){var e=this;this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked),this.dialog.open(BO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:{isAction:this.isLocked,actionType:1==this.isLocked?"Lock":"Unlock"}}).afterClosed().subscribe(function(o){o&&""!=o&&("Lock"==o.actionType&&o.isAction?e.lockAllNode():e.unlockAllNode())})}},{key:"lockAllNode",value:function(){var e=this;this.lock="lock",this.drawingService.lockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"unlockAllNode",value:function(){var e=this;this.lock="lock_open",this.drawingService.unLockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u=i.createSvgFileForImage(l,s);i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"ngOnDestroy",value:function(){}}]),n}();sT.\u0275fac=function(r){return new(r||sT)(t.Y36(Yf),t.Y36(dl),t.Y36(Ka),t.Y36(Of),t.Y36(Hr),t.Y36(Cc.f),t.Y36(zs.Y),t.Y36(Ir),t.Y36(Ya.G),t.Y36(va))},sT.\u0275cmp=t.Xpm({type:sT,selectors:[["app-project-map-menu"]],inputs:{project:"project",controller:"controller"},decls:24,vars:16,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"controller","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){return e.addDrawing("text")}),t.TgZ(1,"mat-icon",1),t._uU(2,"create"),t.qZA()(),t.TgZ(3,"input",2,3),t.NdJ("change",function(a){return e.uploadImageFile(a)}),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(4);return t.KtG(a.click())}),t.TgZ(6,"mat-icon"),t._uU(7,"image"),t.qZA()(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.addDrawing("rectangle")}),t.TgZ(9,"mat-icon",1),t._uU(10,"crop_3_2"),t.qZA()(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.addDrawing("ellipse")}),t.TgZ(12,"mat-icon",1),t._uU(13,"panorama_fish_eye"),t.qZA()(),t.YNc(14,eGe,3,3,"button",7),t.YNc(15,tGe,3,3,"button",7),t.TgZ(16,"button",8),t.NdJ("click",function(){return e.changeLockValue()}),t.TgZ(17,"mat-icon",1),t._uU(18),t.qZA()(),t.TgZ(19,"button",9),t.NdJ("click",function(){return e.takeScreenshot()}),t.TgZ(20,"mat-icon",1),t._uU(21,"photo_camera"),t.qZA()(),t.TgZ(22,"app-drawing-added",10),t.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),t.qZA(),t._UZ(23,"div",11)}2&r&&(t.xp6(1),t.Q6J("ngClass",e.getCssClassForIcon("text")),t.xp6(8),t.Q6J("ngClass",e.getCssClassForIcon("rectangle")),t.xp6(3),t.Q6J("ngClass",e.getCssClassForIcon("ellipse")),t.xp6(2),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(2),t.Q6J("ngClass",t.WLB(11,nGe,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),t.xp6(1),t.Oqu(e.lock),t.xp6(2),t.Q6J("ngClass",t.VKq(14,rGe,!e.isLocked&&e.isLightThemeEnabled)),t.xp6(2),t.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},dependencies:[ge.mk,ge.O5,cn,Dn,ai,FO],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var iGe=["text"],UO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,B.Z)(n,[{key:"ngAfterViewInit",value:function(){var e="";this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e=i,setTimeout(function(){var o=Nr(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();UO.\u0275fac=function(r){return new(r||UO)(t.Y36(lr),t.Y36(zs.Y),t.Y36(t.SBq),t.Y36(t.Qsj))},UO.\u0275cmp=t.Xpm({type:UO,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(iGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.text=i.first))},decls:6,vars:0,consts:[["mat-dialog-title",""],["id","text",1,"textWrapper"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Project README"),t.qZA(),t._UZ(2,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"Close"),t.qZA()())},dependencies:[cn,yr,ur],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var sv=function(){function n(r,e,i){(0,U.Z)(this,n),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new t.vpe,this.linkNotificationEmitter=new t.vpe,this.drawingNotificationEmitter=new t.vpe,this.infoNotificationEmitter=new t.vpe,this.warningNotificationEmitter=new t.vpe,this.errorNotificationEmitter=new t.vpe}return(0,B.Z)(n,[{key:"handleMessage",value:function(e){"node.updated"===e.action&&(this.nodesDataSource.update(e.event),this.nodeNotificationEmitter.emit(e)),"node.created"===e.action&&(this.nodesDataSource.add(e.event),this.nodeNotificationEmitter.emit(e)),"node.deleted"===e.action&&(this.nodesDataSource.remove(e.event),this.nodeNotificationEmitter.emit(e)),"link.created"===e.action&&(this.linksDataSource.add(e.event),this.linkNotificationEmitter.emit(e)),"link.updated"===e.action&&(this.linksDataSource.update(e.event),this.linkNotificationEmitter.emit(e)),"link.deleted"===e.action&&(this.linksDataSource.remove(e.event),this.linkNotificationEmitter.emit(e)),"drawing.created"===e.action&&(this.drawingsDataSource.add(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.updated"===e.action&&(this.drawingsDataSource.update(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.deleted"===e.action&&(this.drawingsDataSource.remove(e.event),this.drawingNotificationEmitter.emit(e)),"log.error"===e.action&&this.errorNotificationEmitter.emit(e.event.message),"log.warning"===e.action&&this.warningNotificationEmitter.emit(e.event.message),"log.info"===e.action&&this.infoNotificationEmitter.emit(e.event.message)}}]),n}();sv.\u0275fac=function(r){return new(r||sv)(t.LFG(Ya.G),t.LFG(Fm.F),t.LFG(va))},sv.\u0275prov=t.Yz7({token:sv,factory:sv.\u0275fac});var oGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),aGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),qf=function(){function n(r,e,i){(0,U.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this.cssFixer.fix(e.style),o=this.fontFixer.fixStyles(i),a=this.fontBBoxCalculator.calculate(e.text,o),s=new aGe;return s.rotation=e.rotation,s.style=e.style,s.text=e.text,s.x=e.x,s.y=e.y,null!==s.x&&(s.x-=3),null!==s.y&&(s.y-=a.height),s}}]),n}();qf.\u0275fac=function(r){return new(r||qf)(t.LFG(Pf),t.LFG(Mc),t.LFG(is))},qf.\u0275prov=t.Yz7({token:qf,factory:qf.\u0275fac});var sGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),lv=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new sGe;return i.adapter_number=e.adapterNumber,i.link_type=e.linkType,i.name=e.name,i.port_number=e.portNumber,i.short_name=e.shortName,i}}]),n}();lv.\u0275fac=function(r){return new(r||lv)},lv.\u0275prov=t.Yz7({token:lv,factory:lv.\u0275fac});var Wm=function(){function n(r,e){(0,U.Z)(this,n),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new oGe;return o.node_id=e.id,o.command_line=e.commandLine,o.compute_id=e.computeId,o.console=e.console,o.console_host=e.consoleHost,o.console_type=e.consoleType,o.first_port_name=e.firstPortName,o.height=e.height,o.label=e.label?this.mapLabelToLabel.convert(e.label):void 0,o.locked=e.locked,o.name=e.name,o.node_directory=e.nodeDirectory,o.node_type=e.nodeType,o.port_name_format=e.portNameFormat,o.port_segment_size=e.portSegmentSize,o.ports=e.ports?e.ports.map(function(a){return i.mapPortToPort.convert(a)}):[],o.properties=e.properties,o.project_id=e.projectId,o.status=e.status,o.symbol=e.symbol,o.symbol_url=e.symbolUrl,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,o}}]),n}();Wm.\u0275fac=function(r){return new(r||Wm)(t.LFG(qf),t.LFG(lv))},Wm.\u0275prov=t.Yz7({token:Wm,factory:Wm.\u0275fac});var lGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Lb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new lGe;return i.drawing_id=e.id,i.project_id=e.projectId,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i.element=e.element,i}}]),n}();Lb.\u0275fac=function(r){return new(r||Lb)},Lb.\u0275prov=t.Yz7({token:Lb,factory:Lb.\u0275fac});var uGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),cGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),uv=function(){function n(r){(0,U.Z)(this,n),this.mapLabelToLabel=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new cGe;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),n}();uv.\u0275fac=function(r){return new(r||uv)(t.LFG(qf))},uv.\u0275prov=t.Yz7({token:uv,factory:uv.\u0275fac});var Zb=function(){function n(r){(0,U.Z)(this,n),this.mapLinkNodeToMapLinkNode=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new uGe;return o.link_id=e.id,o.capture_file_name=e.captureFileName,o.capture_file_path=e.captureFilePath,o.capturing=e.capturing,o.filters=e.filters,o.link_type=e.linkType,o.link_style=e.link_style,o.nodes=e.nodes.map(function(a){return i.mapLinkNodeToMapLinkNode.convert(a)}),o.project_id=e.projectId,o.suspend=e.suspend,o}}]),n}();Zb.\u0275fac=function(r){return new(r||Zb)(t.LFG(uv))},Zb.\u0275prov=t.Yz7({token:Zb,factory:Zb.\u0275fac});var O5=m(9740),Nb=function(){function n(r){(0,U.Z)(this,n),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,B.Z)(n,[{key:"fix",value:function(e){e.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var i=this.fontBBCalculator.calculate(e.label.text,e.label.style);return e.label.x=e.width/2-i.width/2,e.label.y=-i.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,e}}]),n}();Nb.\u0275fac=function(r){return new(r||Nb)(t.LFG(Pf))},Nb.\u0275prov=t.Yz7({token:Nb,factory:Nb.\u0275fac});var Bb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/notifications/ws?token=").concat(e.authToken)}},{key:"projectNotificationsPath",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),n}();Bb.\u0275fac=function(r){return new(r||Bb)},Bb.\u0275prov=t.Yz7({token:Bb,factory:Bb.\u0275fac});var Wse=(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this.x=r,this.y=e,this.dx=i,this.dy=o}),lT=function(){function n(r){(0,U.Z)(this,n),this.elementRef=r,this.dragging=new t.vpe,this.dragged=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=$i.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){e.posX=e.item.x,e.posY=e.item.y,e.startX=d.clientX,e.startY=d.clientY});var o=$i.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=$i.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=$i.y.fromEvent(document,"scroll").startWith({}),l=$i.y.combineLatest(a,s),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Nn.Z)(h,2),C=g[0];g[1];return C}).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragging.emit(new Wse(e.item.x,e.item.y,-g,-C))}).skipUntil(o.take(1).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragged.emit(new Wse(e.item.x,e.item.y,-g,-C))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),n}();lT.\u0275fac=function(r){return new(r||lT)(t.Y36(t.SBq))},lT.\u0275cmp=t.Xpm({type:lT,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:["app-draggable",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var fGe=["label"],hGe=["image"],uT=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"ngOnChanges",value:function(e){this.cd.detectChanges()}},{key:"ngAfterViewInit",value:function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()}},{key:"OnDragging",value:function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new Gk(this.node,e.dx,e.dy))}},{key:"symbol",get:function(){var e=this;if(this.symbols){var i=this.symbols.find(function(o){return o.symbol_id===e.node.symbol});return i?"data:image/svg+xml;base64,"+btoa(i.raw):"data:image/svg+xml;base64,none"}}},{key:"label_style",get:function(){if(null!=this.node){var e=this.cssFixer.fix(this.node.label.style);return e=this.fontFixer.fixStyles(e),this.sanitizer.bypassSecurityTrustStyle(e)}}},{key:"label_x",get:function(){if(null!=this.node)return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN}},{key:"label_y",get:function(){if(this.labelHeight=this.getLabelHeight(),null!=this.node)return null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),n}();uT.NODE_LABEL_MARGIN=3,uT.\u0275fac=function(r){return new(r||uT)(t.Y36(Mc),t.Y36(is),t.Y36(Jt),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(dd))},uT.\u0275cmp=t.Xpm({type:uT,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(fGe,5),t.Gf(hGe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.label=i.first),t.iGM(i=t.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[t.TTD],attrs:["app-node",""],decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0)(1,"image",1,2),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.qZA(),t.TgZ(3,"text",3,4),t._uU(5),t.qZA()()),2&r&&(t.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),t.xp6(1),t.Q6J("app-draggable",e.node),t.uIk("width",null==e.node?null:e.node.width)("height",null==e.node?null:e.node.height)("x",0)("y",0)("href",e.symbol,null,"xlink"),t.xp6(2),t.uIk("style",e.label_style,t.Ckj)("x",e.label_x)("y",e.label_y),t.xp6(2),t.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},dependencies:[lT],changeDetection:0});var _Ge=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"d",value:function(e){var i,o,a,s,l,u,d,h=[[(null===(i=null==e?void 0:e.source)||void 0===i?void 0:i.x)+(null===(o=null==e?void 0:e.source)||void 0===o?void 0:o.width)/2,(null==e?void 0:e.source.y)+(null===(a=null==e?void 0:e.source)||void 0===a?void 0:a.height)/2],[(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.x)+(null===(l=null==e?void 0:e.target)||void 0===l?void 0:l.width)/2,(null===(u=null==e?void 0:e.target)||void 0===u?void 0:u.y)+(null===(d=null==e?void 0:e.target)||void 0===d?void 0:d.height)/2]],g=Jd();return g.moveTo(h[0][0],h[0][1]),g.lineTo(h[1][0],h[1][1]),g.toString()}}]),n}(),gGe=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"linkToPoints",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return[[i.x,i.y],h,g,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=Jd();return o.moveTo(i[0][0],i[0][1]),o.lineTo(i[1][0],i[1][1]),o.lineTo(i[2][0],i[2][1]),o.lineTo(i[3][0],i[3][1]),o.toString()}}]),n}();function yGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",3)),2&n){var e=t.oxw(2);t.uIk("cx",e.point.x)("cy",e.point.y)}}function bGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"rect",4)),2&n){var e=t.oxw(2);t.uIk("x",e.point.x-5)("y",e.point.y-5)}}function CGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,yGe,1,2,"circle",1),t.YNc(2,bGe,1,2,"rect",2),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf","started"==e.status),t.xp6(1),t.Q6J("ngIf","stopped"==e.status)}}var cT=function(){function n(r,e){(0,U.Z)(this,n),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,B.Z)(n,[{key:"status",get:function(){return this.data.status},set:function(e){this.data.status=e,this.ref.markForCheck()}},{key:"path",get:function(){return this.data.path},set:function(e){this.data.path=e,this.ref.markForCheck()}},{key:"direction",get:function(){return this.data.direction},set:function(e){this.data.direction=e,this.ref.markForCheck()}},{key:"d",set:function(e){this.data.d!==e&&(this.data.d=e,this.ref.markForCheck())}},{key:"sourceStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null}},{key:"targetStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null}},{key:"point",get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint}}]),n}();cT.STOPPED_STATUS_RECT_WIDTH=10,cT.\u0275fac=function(r){return new(r||cT)(t.Y36(t.SBq),t.Y36(t.sBO))},cT.\u0275cmp=t.Xpm({type:cT,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:["app-status",""],decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(r,e){1&r&&t.YNc(0,CGe,3,2,"g",0),2&r&&t.Q6J("ngIf",e.status&&e.point&&e.direction)},dependencies:[ge.O5]});var wGe=["textSvg"],HO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.elementRef=r,this.ref=e,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"x",set:function(e){this.label.x=e,this.ref.detectChanges()}},{key:"y",set:function(e){this.label.y=e,this.ref.detectChanges()}},{key:"text",get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()}},{key:"style",set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()}},{key:"rotation",set:function(e){this.label.rotation=e,this.ref.detectChanges()}},{key:"sanitizedStyle",get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)}},{key:"rectX",get:function(){return 0}},{key:"rectY",get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize}},{key:"rectWidth",get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize}},{key:"rectHeight",get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize}},{key:"transform",get:function(){if(this.elementRef.nativeElement.getBBox){var e=this.elementRef.nativeElement.getBBox(),i=this.label.x,o=this.label.y+e.height;return"translate(".concat(i,", ").concat(o,") rotate(").concat(this.label.rotation,", ").concat(i,", ").concat(o,")")}}}]),n}();HO.\u0275fac=function(r){return new(r||HO)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt),t.Y36(Mc))},HO.\u0275cmp=t.Xpm({type:HO,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(wGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:["app-interface-label",""],decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t._UZ(1,"rect",1),t.TgZ(2,"text",2,3),t._uU(4),t.qZA()()),2&r&&(t.uIk("transform",e.transform),t.xp6(1),t.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),t.xp6(1),t.uIk("style",e.sanitizedStyle,t.Ckj)("x",e.borderSize)("y",-e.borderSize),t.xp6(2),t.hij(" ",e.text," "))}});var TGe=["path"];function SGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",5,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function xGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",7,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function EGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),t.Q6J("x",(null==e.link||null==e.link.source?null:e.link.source.x)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.x))("y",(null==e.link||null==e.link.source?null:e.link.source.y)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.y))("text",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.text)("rotation",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.rotation)}}function DGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),t.Q6J("x",(null==e.link||null==e.link.target?null:e.link.target.x)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.x))("y",(null==e.link||null==e.link.target?null:e.link.target.y)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.y))("text",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.text)("rotation",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.rotation)}}var jO=function(){function n(r,e){(0,U.Z)(this,n),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new _Ge,this.serialLinkStrategy=new gGe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.ref.detectChanges()}},{key:"ngOnDestroy",value:function(){}},{key:"strategy",get:function(){return this.link&&null!=this.link&&"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy}},{key:"transform",get:function(){if(this.link){var e=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate (".concat(e.dx,", ").concat(e.dy,")")}}},{key:"d",get:function(){return this.strategy.d(this.link)}}]),n}();jO.\u0275fac=function(r){return new(r||jO)(t.Y36(Ff),t.Y36(t.sBO))},jO.\u0275cmp=t.Xpm({type:jO,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(TGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.path=i.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:["app-link",""],decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,SGe,2,1,"path",1),t.YNc(2,xGe,2,1,"path",2),t._UZ(3,"g",3)(4,"g",3),t.YNc(5,EGe,1,6,"g",4),t.YNc(6,DGe,1,6,"g",4),t.qZA()),2&r&&(t.uIk("link_id",null==e.link?null:e.link.id)("map-source",null==e.link||null==e.link.source?null:e.link.source.id)("map-target",null==e.link||null==e.link.target?null:e.link.target.id)("transform",e.transform),t.xp6(1),t.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels))},dependencies:[ge.O5,cT,HO]});var GO=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.ellipse&&isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null}},{key:"stroke_width",get:function(){return this.ellipse&&isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.ellipse&&this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null}}]),n}();GO.\u0275fac=function(r){return new(r||GO)(t.Y36(ju))},GO.\u0275cmp=t.Xpm({type:GO,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:["app-ellipse",""],decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"ellipse",0)),2&r&&t.uIk("fill",null==e.ellipse?null:e.ellipse.fill)("fill-opacity",e.fill_opacity)("stroke",null==e.ellipse?null:e.ellipse.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("cx",null==e.ellipse?null:e.ellipse.cx)("cy",null==e.ellipse?null:e.ellipse.cy)("rx",null==e.ellipse?null:e.ellipse.rx)("ry",null==e.ellipse?null:e.ellipse.ry)}});var zO=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();zO.\u0275fac=function(r){return new(r||zO)},zO.\u0275cmp=t.Xpm({type:zO,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:["app-image",""],decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"image",0)),2&r&&t.uIk("href",null==e.image?null:e.image.data,null,"xlink")("width",null==e.image?null:e.image.width)("height",null==e.image?null:e.image.height)}});var WO=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"stroke_width",get:function(){return this.line&&isFinite(this.line.stroke_width)?this.line.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.line&&this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null}}]),n}();WO.\u0275fac=function(r){return new(r||WO)(t.Y36(ju))},WO.\u0275cmp=t.Xpm({type:WO,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:["app-line",""],decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(r,e){var i;(1&r&&(t.O4$(),t._UZ(0,"line",0)),2&r)&&t.uIk("stroke",null==e.line?null:e.line.stroke)("stroke-width",null!==(i=e.stroke_width)&&void 0!==i?i:"")("stroke-dasharray",e.stroke_dasharray)("x1",null==e.line?null:e.line.x1)("x2",null==e.line?null:e.line.x2)("y1",null==e.line?null:e.line.y1)("y2",null==e.line?null:e.line.y2)}});var VO=function(){function n(r){(0,U.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.rect&&isFinite(this.rect.fill_opacity)&&this.rect.fill_opacity?this.rect.fill_opacity:null}},{key:"stroke_width",get:function(){return this.rect&&isFinite(this.rect.stroke_width)&&this.rect.stroke_width?this.rect.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.rect&&this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null}}]),n}();VO.\u0275fac=function(r){return new(r||VO)(t.Y36(ju))},VO.\u0275cmp=t.Xpm({type:VO,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:9,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("fill",null==e.rect?null:e.rect.fill)("fill-opacity",e.fill_opacity?e.fill_opacity:"")("stroke",null==e.rect?null:e.rect.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("width",null==e.rect?null:e.rect.width)("height",null==e.rect?null:e.rect.height)("rx",null==e.rect?null:e.rect.rx)("ry",null==e.rect?null:e.rect.ry)}});var RGe=["text"];function ZGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan",3),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.uIk("dy",0==i?"0em":"1.4em"),t.xp6(1),t.hij(" ",e," ")}}var dT=function(){function n(r,e){(0,U.Z)(this,n),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.text&&(this.lines=this.getLines(this.text.text))}},{key:"ngDoCheck",value:function(){this.transformation=this.calculateTransformation()}},{key:"style",get:function(){if(this.text){var e=this.fontFixer.fix(this.text),i=[];return e.font_family&&i.push('font-family: "'.concat(this.text.font_family,'"')),e.font_size&&i.push("font-size: ".concat(this.text.font_size,"pt")),e.font_weight&&i.push("font-weight: ".concat(this.text.font_weight)),this.sanitizer.bypassSecurityTrustStyle(i.join("; "))}}},{key:"textDecoration",get:function(){if(this.text)return this.text.text_decoration}},{key:"calculateTransformation",value:function(){if(null!=this.textRef){var e=this.textRef.nativeElement.getElementsByTagName("tspan");if(e.length>0){var i=this.textRef.nativeElement.getBBox().height/e.length;return"translate(".concat(n.MARGIN,", ").concat(i-n.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),n}();dT.MARGIN=4,dT.\u0275fac=function(r){return new(r||dT)(t.Y36(is),t.Y36(Jt))},dT.\u0275cmp=t.Xpm({type:dT,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(RGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{text:["app-text","text"]},attrs:["app-text",""],decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"text",0,1),t.YNc(2,ZGe,2,2,"tspan",2),t.qZA()),2&r){var i=t.MAs(1);t.uIk("style",e.style,t.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),t.xp6(2),t.Q6J("ngForOf",e.lines)}},dependencies:[ge.sg]});function BGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",6)),2&n){var e=t.oxw();t.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function FGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",7)),2&n){var e=t.oxw();t.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function UGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function HGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",9)),2&n){var e=t.oxw();t.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function jGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",10)),2&n){var e=t.oxw();t.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var YO=function(){function n(r,e,i){(0,U.Z)(this,n),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(e){}}},{key:"OnDragging",value:function(e){this.drawing.x=e?e.x:"",this.drawing.y=e?e.y:"",this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new Gk(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof ea:"image"===i?e instanceof y5:"line"===i?e instanceof gb:"rect"===i?e instanceof hp:"text"===i&&e instanceof vb)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),n}();YO.\u0275fac=function(r){return new(r||YO)(t.Y36(Wf),t.Y36(Zl),t.Y36(t.sBO))},YO.\u0275cmp=t.Xpm({type:YO,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:["app-drawing",""],decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.YNc(1,BGe,1,1,"g",1),t.YNc(2,FGe,1,1,"g",2),t.YNc(3,UGe,1,1,"g",3),t.YNc(4,HGe,1,1,"g",4),t.YNc(5,jGe,1,1,"g",5),t.qZA()),2&r&&(t.Q6J("app-draggable",e.drawing),t.uIk("transform",e.transformation),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},dependencies:[ge.O5,GO,zO,WO,VO,dT,lT]});function zGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",2)),2&n){var e=t.oxw();t.uIk("d",e.d)}}var KO=function(){function n(r){(0,U.Z)(this,n),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=$i.y.fromEvent(this.svg,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){d.target===e.svg&&(e.started=!0,e.startX=(null==d?void 0:d.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==d?void 0:d.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=$i.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=$i.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=$i.y.fromEvent(document,"scroll").startWith({}),l=$i.y.combineLatest([a,s]),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Nn.Z)(h,2),C=g[0];g[1];return C}).do(function(h){!e.started||(e.visible=!0,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))}).skipUntil(o.take(1).do(function(h){!e.started||(e.visible=!1,e.started=!1,e.width=h.clientX-e.startX+window.scrollX,e.height=h.clientY-e.startY+window.scrollY,e.ref.detectChanges(),e.selectedEvent([e.startX,e.startY],[e.width,e.height]))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}},{key:"d",get:function(){return this.rect(this.startX,this.startY,this.width,this.height)}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.rectangleSelected.emit(new yse(o,a,s,l))}}]),n}();KO.\u0275fac=function(r){return new(r||KO)(t.Y36(t.sBO))},KO.\u0275cmp=t.Xpm({type:KO,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:["app-selection",""],decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,zGe,1,1,"path",1),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",e.visible))},dependencies:[ge.O5]});var WGe=["svg"];function VGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",12)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function YGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",13)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-node",e)("symbols",i.symbols)}}function KGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",14)),2&n){var e=r.$implicit;t.Q6J("app-drawing",e)}}function qGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g")(1,"g",6),t.YNc(2,VGe,1,2,"g",7),t.qZA(),t.TgZ(3,"g",8),t.YNc(4,YGe,1,2,"g",9),t.qZA(),t.TgZ(5,"g",10),t.YNc(6,KGe,1,1,"g",11),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("ngForOf",e.nodes),t.xp6(2),t.Q6J("ngForOf",e.drawings)}}var qO=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=l,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return(0,B.Z)(n,[{key:"showInterfaceLabels",set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()}},{key:"movingTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"selectionTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){}},{key:"ngOnChanges",value:function(e){}},{key:"ngOnInit",value:function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.changesDetected.unsubscribe()}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"layers",get:function(){return this.layersManger.getLayersList()}},{key:"transform",get:function(){var e=new Vs;e.size=this.getSize();var i=e.getZeroZeroTransformationPoint().x+e.transformation.x,o=e.getZeroZeroTransformationPoint().y+e.transformation.y,a=e.transformation.k;return"translate(".concat(i,", ").concat(o,") scale(").concat(a,")")}},{key:"onResize",value:function(e){}}]),n}();qO.\u0275fac=function(r){return new(r||qO)(t.Y36(Uf),t.Y36(Vs),t.Y36(Hf),t.Y36(zg),t.Y36(t.sBO),t.Y36(Nm),t.Y36($g))},qO.\u0275cmp=t.Xpm({type:qO,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(WGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[t.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"g"),t.YNc(3,qGe,7,3,"g",2),t.qZA(),t._UZ(4,"g",3),t.TgZ(5,"filter",4),t._UZ(6,"feColorMatrix",5),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("width",e.width)("height",e.height),t.xp6(2),t.uIk("transform",e.transform),t.xp6(1),t.Q6J("ngForOf",e.layers),t.xp6(1),t.Q6J("app-selection",i)}},dependencies:[ge.sg,uT,jO,YO,KO],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var Fb=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"onCancelClick",value:function(){this.dialogRef.close(n.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),n}();Fb.\u0275fac=function(r){return new(r||Fb)(t.Y36(lr),t.Y36(go))},Fb.\u0275cmp=t.Xpm({type:Fb,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Operation in progress"),t.qZA(),t.TgZ(2,"div",1),t._UZ(3,"mat-progress-bar",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("value",e.value))},dependencies:[cn,yr,cl,ur,ab]});var JGe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),Vm=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"create",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots"),o)}},{key:"delete",value:function(e,i,o){return this.httpController.delete(e,"/projects/".concat(i,"/snapshots/").concat(o))}},{key:"list",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i,"/snapshots"))}},{key:"restore",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots/").concat(o,"/restore"),{})}}]),n}();Vm.\u0275fac=function(r){return new(r||Vm)(t.LFG(mo.zw))},Vm.\u0275prov=t.Yz7({token:Vm,factory:Vm.\u0275fac});var JO=function(){function n(r,e,i,o,a,s){var l=this;(0,U.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new JGe,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new J.p4("",J.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(d){l.snapshots.push(d.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,B.Z)(n,[{key:"isAlwaysRunningNode",value:function(e){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou"].includes(e)}},{key:"onAddClick",value:function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();JO.\u0275fac=function(r){return new(r||JO)(t.Y36(lr),t.Y36(J.QS),t.Y36(Pn),t.Y36(Vm),t.Y36(Ya.G),t.Y36(go))},JO.\u0275cmp=t.Xpm({type:JO,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Create snapshot"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to snapshots "),t.qZA()(),t.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),t._UZ(8,"input",6),t.qZA()()(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",9),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13,"Add"),t.qZA()()),2&r&&(t.xp6(3),t.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),t.xp6(3),t.Q6J("formGroup",e.inputForm))},dependencies:[Wo,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Kn,yr,cl,ur],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]});var cv=function(){function n(r){(0,U.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"open",value:function(){return this.dialog.open(Fb,{width:"250px",autoFocus:!1,disableClose:!0})}}]),n}();cv.\u0275fac=function(r){return new(r||cv)(t.LFG(Hr))},cv.\u0275prov=t.Yz7({token:cv,factory:cv.\u0275fac});var QO=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(JO,{width:"450px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){if(o&&e.project.project_id){var a=e.snapshotService.create(e.controller,e.project.project_id,o),s=e.progressDialogService.open(),l=a.subscribe(function(u){e.toaster.success("Snapshot '".concat(o.name,"' has been created.")),s.close()});s.afterClosed().subscribe(function(u){u===Fb.CANCELLED&&l.unsubscribe()})}})}}]),n}();QO.\u0275fac=function(r){return new(r||QO)(t.Y36(Hr),t.Y36(Vm),t.Y36(cv),t.Y36(Pn))},QO.\u0275cmp=t.Xpm({type:QO,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",controller:"controller"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.createSnapshotModal()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA()())},dependencies:[cn,Dn,ai]});var XO=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function QGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function XGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function $Ge(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function eze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",19),t.NdJ("valueChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedTemplate.compute_id=a)}),t.YNc(1,$Ge,2,2,"mat-option",8),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("value",i.selectedTemplate.compute_id),t.xp6(1),t.Q6J("ngForOf",i.nodeControllers)}}XO.\u0275fac=function(r){return new(r||XO)},XO.\u0275pipe=t.Yjl({name:"templatefilter",type:XO,pure:!0});var CW=function(){return{standalone:!0}},$O=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.dialogRef=r,this.templateService=e,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeControllers=["local","vm"],this.controller=o.controller,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new J.p4(1,[J.kI.compose([J.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new J.p4(0,J.kI.required),left:new J.p4(0,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.templates=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});this.filteredTemplates=o.filter(function(a){return a.template_type===e.value.toString()})}},{key:"chooseTemplate",value:function(e){this.selectedTemplate=e.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")}},{key:"onAddClick",value:function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var e=this.positionForm.get("left").value,i=this.positionForm.get("top").value;if(e>this.project.scene_width/2||e<-this.project.scene_width/2||i>this.project.scene_height/2||i<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var o={template:this.selectedTemplate,controller:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:e,y:i};this.dialogRef.close(o)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")}}]),n}();$O.\u0275fac=function(r){return new(r||$O)(t.Y36(lr),t.Y36(sp),t.Y36(J.QS),t.Y36(go),t.Y36(Pn),t.Y36(gp))},$O.\u0275cmp=t.Xpm({type:$O,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name","ngDefaultControl","",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose controller for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose controller for node",3,"value","valueChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Add a node"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to template preferences "),t.qZA()(),t.TgZ(5,"div",3)(6,"div",0)(7,"h6"),t._uU(8,"Template"),t.qZA()(),t.TgZ(9,"mat-form-field",4)(10,"input",5),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(11,"mat-form-field",6)(12,"mat-select",7),t.NdJ("selectionChange",function(o){return e.filterTemplates(o)})("ngModelChange",function(o){return e.selectedType=o}),t.YNc(13,QGe,2,2,"mat-option",8),t.qZA()(),t.TgZ(14,"mat-form-field",6)(15,"mat-select",9),t.NdJ("selectionChange",function(o){return e.chooseTemplate(o)})("ngModelChange",function(o){return e.selectedTemplate=o}),t.YNc(16,XGe,2,2,"mat-option",8),t.ALo(17,"templatefilter"),t.qZA()(),t.TgZ(18,"div",0)(19,"h6"),t._uU(20,"Configuration"),t.qZA()(),t.TgZ(21,"form",10)(22,"mat-form-field",6),t._UZ(23,"input",11),t.qZA()(),t.YNc(24,eze,2,2,"mat-select",12),t.TgZ(25,"div",0)(26,"h6"),t._uU(27,"Position"),t.qZA()(),t.TgZ(28,"form",10),t._uU(29," Left:\xa0 "),t.TgZ(30,"mat-form-field"),t._UZ(31,"input",13),t.qZA(),t._uU(32," Top:\xa0 "),t.TgZ(33,"mat-form-field"),t._UZ(34,"input",14),t.qZA()()(),t.TgZ(35,"div",15)(36,"button",16),t.NdJ("click",function(){return e.onNoClick()}),t._uU(37,"Close"),t.qZA(),t.TgZ(38,"button",17),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add "),t.qZA()()),2&r&&(t.xp6(3),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(15,CW)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,CW))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,CW))("ngModel",e.selectedTemplate),t.xp6(1),t.Q6J("ngForOf",t.xi3(17,12,e.filteredTemplates,e.searchText)),t.xp6(5),t.Q6J("formGroup",e.configurationForm),t.xp6(3),t.Q6J("ngIf",e.selectedTemplate),t.xp6(4),t.Q6J("formGroup",e.positionForm))},dependencies:[ge.sg,ge.O5,Wo,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,yr,cl,ur,$r.gD,Wt.ey,XO],styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}"]});function tze(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var I5=function(r,e){return{templateText:r,lightTemplateText:e}};function nze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+1]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,I5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+1].name)}}function rze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+2]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,I5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+2].name)}}function ize(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+3]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,I5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+3].name)}}function oze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",13)(1,"span",14)(2,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(2);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw().index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l]))}),t._UZ(3,"img",16),t.qZA(),t.TgZ(4,"div",17),t._uU(5),t.qZA()(),t.YNc(6,nze,5,6,"span",18),t.YNc(7,rze,5,6,"span",18),t.YNc(8,ize,5,6,"span",18),t.qZA()}if(2&n){var i=t.oxw().index,o=t.oxw();t.xp6(3),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(6,I5,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i].name),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+1]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+2]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+3])}}function aze(n,r){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,oze,9,9,"span",12),t.qZA()),2&n){var e=r.index;t.xp6(1),t.Q6J("ngIf",e%4==0)}}var Vse=function(){return{standalone:!0}},eI=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new t.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.isLightThemeEnabled=!1,this.overlay=l.getContainerElement()}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(i){e.templates.push(i)}),this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.sortTemplates(),e.templates=i}),this.symbolService.list(this.controller),"light"===this.themeService.getActualTheme()&&(this.isLightThemeEnabled=!0),this.themeSubscription=this.themeService.themeChanged.subscribe(function(i){"light-theme"===i&&(e.isLightThemeEnabled=!0),e.toggleTheme()})}},{key:"toggleTheme",value:function(){this.overlay.classList.contains("dark-theme")?(this.overlay.classList.remove("dark-theme"),this.overlay.classList.add("light-theme")):this.overlay.classList.contains("light-theme")?(this.overlay.classList.remove("light-theme"),this.overlay.classList.add("dark-theme")):this.overlay.classList.add("light-theme")}},{key:"sortTemplates",value:function(){this.filteredTemplates=this.filteredTemplates.sort(function(e,i){return e.name<i.name?-1:1})}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all"!==this.selectedType&&this.selectedType?this.filteredTemplates=o.filter(function(a){return a.template_type===i.selectedType}):this.filteredTemplates=o,this.sortTemplates()}},{key:"dragStart",value:function(e){var i=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=i.top-event.clientY,this.movementX=i.left-event.clientX}},{key:"dragEnd",value:function(e,i){var o=this;this.symbolService.raw(this.controller,i.symbol.substring(1)).subscribe(function(a){var s=+a.split('width="')[1].split('"')[0]?+a.split('width="')[1].split('"')[0]:0,l=o.scaleService.getScale(),u={template:i,controller:"local",numberOfNodes:1,x:(o.startX+e.x-o.project.scene_width/2-s/2)*l+window.scrollX,y:(o.startY+e.y-o.project.scene_height/2)*l+window.scrollY};o.onNodeCreation.emit(u)})}},{key:"openDialog",value:function(){var e=this;this.dialog.open($O,{width:"600px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){null!==o&&e.onNodeCreation.emit(o)})}},{key:"getImageSourceForTemplate",value:function(e){return this.symbolService.getSymbolFromTemplate(this.controller,e)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();eI.\u0275fac=function(r){return new(r||eI)(t.Y36(Hr),t.Y36(sp),t.Y36(mp),t.Y36(Of),t.Y36(Jt),t.Y36(Cc.f),t.Y36(Ei.Xj))},eI.\u0275cmp=t.Xpm({type:eI,selectors:[["app-template"]],inputs:{controller:"controller",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search template by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[3,"ngClass"],["class","templateIcon",4,"ngIf"]],template:function(r,e){if(1&r&&(t.TgZ(0,"button",0)(1,"mat-icon"),t._uU(2,"add"),t.qZA()(),t.TgZ(3,"mat-menu",null,1)(5,"button",2),t.NdJ("click",function(){return e.openDialog()}),t.TgZ(6,"mat-icon"),t._uU(7,"add_to_queue"),t.qZA(),t.TgZ(8,"span"),t._uU(9,"Open dialog to configure"),t.qZA()(),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(11,"input",4),t.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(12,"mat-form-field",5),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(13,"mat-select",6),t.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),t.YNc(14,tze,2,2,"mat-option",7),t.qZA()(),t.TgZ(15,"div",8)(16,"div",9),t.YNc(17,aze,2,1,"mat-list-item",10),t.qZA()()()),2&r){var i=t.MAs(4);t.Q6J("matMenuTriggerFor",i),t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(7,Vse)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Vse))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(3),t.Q6J("ngForOf",e.filteredTemplates)}},dependencies:[ge.mk,ge.sg,ge.O5,J.Fj,J.JJ,J.On,kn.KE,Va,Tr,_a,Qx,cn,Dn,Kn,Aa,$r.gD,Wt.ey,ai],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.lightTemplateText[_ngcontent-%COMP%]{word-wrap:break-word;color:#000}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]});var sze=(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function lze(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",10),t.qZA())}function uze(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",11),t.qZA())}function cze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.chooseInterface(s))}),t.YNc(1,lze,2,0,"svg",7),t.YNc(2,uze,2,0,"svg",7),t.TgZ(3,"span",8),t._uU(4),t.qZA()()}if(2&n){var i=r.$implicit;t.Q6J("disabled",!i.available),t.xp6(1),t.Q6J("ngIf",i.available),t.xp6(1),t.Q6J("ngIf",!i.available),t.xp6(2),t.Oqu(i.name)}}function dze(n,r){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"span",2),t.TgZ(2,"mat-menu",3,4),t.YNc(4,cze,5,4,"button",5),t.qZA()()),2&n){var e=t.MAs(3),i=t.oxw();t.Udp("left",i.leftPosition)("top",i.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Udp("min-height",0),t.xp6(2),t.Q6J("ngForOf",i.ports)}}var pT=function(){function n(r,e){(0,U.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0)}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"open",value:function(e,i,o){this.node=e,this.filterNodePorts(),this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"filterNodePorts",value:function(){var e=this,i=[];this.links.forEach(function(o){o.nodes.forEach(function(a){a.node_id===e.node.node_id&&i.push(a)})}),this.ports=[],this.node.ports.forEach(function(o){var a=i.filter(function(s){return s.adapter_number===o.adapter_number});0===a.length||0===a.filter(function(s){return s.port_number===o.port_number}).length?o.available=!0:o.available=!1,e.ports.push(o)})}},{key:"chooseInterface",value:function(e){this.onChooseInterface.emit({node:this.node,port:e})}}]),n}();pT.\u0275fac=function(r){return new(r||pT)(t.Y36(Jt),t.Y36(t.sBO))},pT.\u0275cmp=t.Xpm({type:pT,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_a,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(r,e){1&r&&t.YNc(0,dze,5,8,"div",0),2&r&&t.Q6J("ngIf",e.node)},dependencies:[ge.sg,ge.O5,Va,Tr,_a],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0px!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]});var tI=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(i){var o=e.mapNodeToNode.convert(i.datum);e.nodeSelectInterfaceMenu.open(o,i.y,i.x)})}},{key:"ngOnDestroy",value:function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()}},{key:"onChooseInterface",value:function(e){var i=this.nodeToMapNode.convert(e.node),o=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var a=this.drawingLineTool.stop();this.linksEventSource.created.emit(new sze(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),n}();tI.\u0275fac=function(r){return new(r||tI)(t.Y36(Kg),t.Y36(dd),t.Y36(pd),t.Y36(Wm),t.Y36(jg),t.Y36(Hg))},tI.\u0275cmp=t.Xpm({type:tI,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(pT,5),2&r)&&(t.iGM(i=t.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(t.TgZ(0,"app-node-select-interface",0),t.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),t.qZA()),2&r&&t.Q6J("links",e.links)},dependencies:[pT]});var nI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(i){return e.onDrawingResized(i)})}},{key:"onDrawingResized",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id),a=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.controller,o,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.update(s)})}},{key:"ngOnDestroy",value:function(){this.drawingResized.unsubscribe()}}]),n}();nI.\u0275fac=function(r){return new(r||nI)(t.Y36(Ka),t.Y36(va),t.Y36(Zl),t.Y36(hd))},nI.\u0275cmp=t.Xpm({type:nI,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var rI=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(i){return e.onTextAdded(i)})}},{key:"onTextAdded",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock("text");o.element.text=e.savedText;var a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textAdded.unsubscribe()}}]),n}();rI.\u0275fac=function(r){return new(r||rI)(t.Y36(Ka),t.Y36(va),t.Y36(Zl),t.Y36(av),t.Y36(hd),t.Y36(Vs))},rI.\u0275cmp=t.Xpm({type:rI,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){}});var iI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(i){return e.onTextEdited(i)})}},{key:"onTextEdited",value:function(e){var i=this,o=new Lm;o.element=e.textElement,o.element.text=e.editedText;var a=this.mapDrawingToSvgConverter.convert(o),s=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.controller,s,a).subscribe(function(l){i.drawingsDataSource.update(l),i.drawingsEventSource.textSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textEdited.unsubscribe()}}]),n}();iI.\u0275fac=function(r){return new(r||iI)(t.Y36(Ka),t.Y36(va),t.Y36(Zl),t.Y36(hd))},iI.\u0275cmp=t.Xpm({type:iI,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var oI=function(){function n(r,e,i){(0,U.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(i){return e.onNodeDragged(i)})}},{key:"onNodeDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.nodeService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.nodesDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.nodeDragged.unsubscribe()}}]),n}();oI.\u0275fac=function(r){return new(r||oI)(t.Y36(Ya.G),t.Y36(Ir),t.Y36(dd))},oI.\u0275cmp=t.Xpm({type:oI,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var aI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(i){return e.onNodeLabelDragged(i)})}},{key:"onNodeLabelDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.nodeId),a=e.datum;a.x+=e.dx,a.y+=e.dy;var s=this.mapLabelToLabel.convert(a);o.label=s,this.nodeService.updateLabel(this.controller,o,o.label).subscribe(function(l){i.nodesDataSource.update(l)})}},{key:"ngOnDestroy",value:function(){this.nodeLabelDragged.unsubscribe()}}]),n}();aI.\u0275fac=function(r){return new(r||aI)(t.Y36(Ya.G),t.Y36(Ir),t.Y36(dd),t.Y36(qf))},aI.\u0275cmp=t.Xpm({type:aI,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var sI=function(){function n(r,e,i){(0,U.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(i){return e.onDrawingDragged(i)})}},{key:"onDrawingDragged",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.drawingService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.drawingsDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.drawingDragged.unsubscribe()}}]),n}();sI.\u0275fac=function(r){return new(r||sI)(t.Y36(Ka),t.Y36(va),t.Y36(Zl))},sI.\u0275cmp=t.Xpm({type:sI,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var lI=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe(function(i){return e.onLinkCreated(i)})}},{key:"onLinkCreated",value:function(e){var i=this,o=Math.abs(e.sourceNode.x-e.targetNode.x),a=Math.abs(e.sourceNode.y-e.targetNode.y),s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2)),l=a/s,u=45/s*o,d=45/s*a,h=0,g=0,C=0,Z=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5,C=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),Z=Math.floor(e.targetNode.height/2)-Math.round(d)+5-Math.round(20*l)):e.sourceNode.x>e.targetNode.x&&e.sourceNode.y<e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=Math.floor(e.targetNode.height/2)-Math.round(d)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)-5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)-Math.round(u)-5,Z=Math.floor(e.targetNode.height/2)+Math.round(d)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=Math.floor(e.targetNode.height/2)+Math.round(d)+5);var z=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),re=this.mapNodeToNode.convert(e.targetNode),ae=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,z,q,re,ae,h,g,C,Z).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Se){i.linksDataSource.set(Se)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),n}();lI.\u0275fac=function(r){return new(r||lI)(t.Y36(zs.Y),t.Y36(pl),t.Y36(Fm.F),t.Y36(pd),t.Y36(Wm),t.Y36(lv))},lI.\u0275cmp=t.Xpm({type:lI,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var uI=function(){function n(r,e,i){(0,U.Z)(this,n),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(i){return e.onInterfaceLabelDragged(i)})}},{key:"onInterfaceLabelDragged",value:function(e){var i=this,o=this.linksDataSource.get(e.datum.linkId);o.nodes[0].node_id===e.datum.nodeId&&(o.nodes[0].label.x+=e.dx,o.nodes[0].label.y+=e.dy),o.nodes[1].node_id===e.datum.nodeId&&(o.nodes[1].label.x+=e.dx,o.nodes[1].label.y+=e.dy),this.linkService.updateNodes(this.controller,o,o.nodes).subscribe(function(a){i.linksDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.interfaceDragged.unsubscribe()}}]),n}();uI.\u0275fac=function(r){return new(r||uI)(t.Y36(pl),t.Y36(Fm.F),t.Y36(pd))},uI.\u0275cmp=t.Xpm({type:uI,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var cI=function(){function n(r,e){(0,U.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),n}();cI.\u0275fac=function(r){return new(r||cI)(t.Y36(go),t.Y36(lr))},cI.\u0275cmp=t.Xpm({type:cI,selectors:[["app-nodes-menu-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[cn,Eg,cl,ur,pm.d],styles:[".close-btn[_ngcontent-%COMP%]{height:30px;width:30px;margin-left:10px;margin-bottom:10px}.close-icon[_ngcontent-%COMP%]{font-size:15px}.text-padding[_ngcontent-%COMP%]{padding:15px 0 0}.mat-dialog-actions[_ngcontent-%COMP%]{min-height:31px}.heading-txt[_ngcontent-%COMP%]{text-transform:capitalize}"]});var dI=function(){function n(r,e,i,o,a,s,l,u,d){(0,U.Z)(this,n),this.nodeService=r,this.nodeConsoleService=e,this.nodesDataSource=i,this.toasterService=o,this.controllerService=a,this.settingsService=s,this.mapSettingsService=l,this.electronService=u,this.dialog=d}return(0,B.Z)(n,[{key:"startConsoleForAllNodes",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i,o,a,s,l,u;return Ln().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!this.electronService.isElectronApp){h.next=23;break}i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),o=this.nodesDataSource.getItems(),a=(0,xn.Z)(o),h.prev=4,a.s();case 6:if((s=a.n()).done){h.next=13;break}return l=s.value,u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=11,this.electronService.remote.require("./console-executor.js").openConsole(u);case 11:h.next=6;break;case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(4),a.e(h.t0);case 18:return h.prev=18,a.f(),h.finish(18);case 21:h.next=24;break;case 23:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems());case 24:case"end":return h.stop()}},e,this,[[4,15,18,21]])}))}},{key:"startNodes",value:function(){var e=this;this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully started")})}},{key:"stopNodes",value:function(){var e=this;this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully stopped")})}},{key:"suspendNodes",value:function(){var e=this;this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully suspended")})}},{key:"reloadNodes",value:function(){var e=this;this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.toasterService.success("All nodes successfully reloaded")})}},{key:"resetNodes",value:function(){var e=this;this.nodeService.resetAllNodes(this.controller,this.project).subscribe(function(){e.toasterService.success("Successfully reset all console connections")})}},{key:"confirmControlsActions",value:function(e){var i=this;this.dialog.open(cI,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:e}).afterClosed().subscribe(function(a){a.isAction&&"start"==a.actionType?i.startNodes():a.isAction&&"stop"==a.actionType?i.stopNodes():a.isAction&&"reload"==a.actionType?i.reloadNodes():a.isAction&&"suspend"==a.actionType?i.suspendNodes():i.resetNodes()})}}]),n}();dI.\u0275fac=function(r){return new(r||dI)(t.Y36(Ir),t.Y36(fu),t.Y36(Ya.G),t.Y36(Pn),t.Y36(rr),t.Y36(jm.g),t.Y36(dl),t.Y36(sl),t.Y36(Hr))},dI.\u0275cmp=t.Xpm({type:dI,selectors:[["app-nodes-menu"]],inputs:{project:"project",controller:"controller"},decls:19,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reset all console connections","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return e.startConsoleForAllNodes()}),t.TgZ(2,"mat-icon"),t._uU(3,"web_asset"),t.qZA()(),t.TgZ(4,"button",2),t.NdJ("click",function(){return e.confirmControlsActions("start")}),t.TgZ(5,"mat-icon"),t._uU(6,"play_arrow"),t.qZA()(),t.TgZ(7,"button",3),t.NdJ("click",function(){return e.confirmControlsActions("suspend")}),t.TgZ(8,"mat-icon"),t._uU(9,"pause"),t.qZA()(),t.TgZ(10,"button",4),t.NdJ("click",function(){return e.confirmControlsActions("stop")}),t.TgZ(11,"mat-icon"),t._uU(12,"stop"),t.qZA()(),t.TgZ(13,"button",5),t.NdJ("click",function(){return e.confirmControlsActions("reload")}),t.TgZ(14,"mat-icon"),t._uU(15,"replay"),t.qZA()(),t.TgZ(16,"button",6),t.NdJ("click",function(){return e.confirmControlsActions("reset")}),t.TgZ(17,"mat-icon"),t._uU(18,"compare_arrows"),t.qZA()()())},dependencies:[cn,Dn,ai],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var pI=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(i,o,a,s){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"iou"===e.template.template_type?e.iouService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()})}}},{key:"onUploadComplete",value:function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]}},{key:"uploadAppliance",value:function(e){var l,i=this,o=e.target.files[0],a=o.name,s=new FileReader;s.onloadend=function(){var u=JSON.parse(s.result);if(u.qemu)(l=new fz).template_type="qemu",l.adapter_type=u.qemu.adapter_type,l.adapters=u.qemu.adapters,l.ram=u.qemu.ram,l.options=u.qemu.options,l.console_type=u.qemu.console_type;else if(u.iou)(l=new pz).template_type="iou",l.console_type=u.iou.console_type,l.console_auto_start=u.iou.console_auto_start,l.ethernet_adapters=u.iou.ethernet_adapters,l.l1_keepalives=u.iou.l1_keepalives,l.use_default_iou_values=u.iou.use_default_iou_values,l.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new dz).template_type="dynamips",l.platform=u.dynamips.platform,l.ram=u.dynamips.ram,l.nvram=u.dynamips.nvram,l.startup_config=u.dynamips.startup_config,l.wic0=u.dynamips.wic0,l.wic1=u.dynamips.wic1,l.wic2=u.dynamips.wic2,l.slot0=u.dynamips.slot0,l.slot1=u.dynamips.slot1,l.slot2=u.dynamips.slot2,l.slot3=u.dynamips.slot3,l.slot4=u.dynamips.slot4,l.slot5=u.dynamips.slot5,l.slot6=u.dynamips.slot6,l.slot7=u.dynamips.slot7;else{if(!u.docker)return void i.toasterService.error("Template type not supported");(l=new uz).template_type="docker",l.adapters=u.docker.adapters,l.console_type=u.docker.console_type,l.image=u.docker.image}l.name=u.name,l.category=u.category,l.builtin=!1,l.default_name_format="{name}-{0}",l.compute_id="vm","guest"===l.category?l.symbol=":/symbols/computer.svg":l.symbol=":/symbols/".concat(l.category,"_guest.svg"),i.template=l;var h=i.getUploadPath(i.controller,a);i.uploader.queue.forEach(function(C){return C.url=h});var g=i.uploader.queue[0];i.uploader.uploadItem(g)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}}]),n}();pI.\u0275fac=function(r){return new(r||pI)(t.Y36(Pn),t.Y36(nd),t.Y36(Bu),t.Y36(ad),t.Y36(od))},pI.\u0275cmp=t.Xpm({type:pI,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){}});var Yse=m(4147).i8,dv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(jB.o);dv.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(dv)))(e||dv)}}(),dv.\u0275prov=t.Yz7({token:dv,factory:dv.\u0275fac});var pze=["console"];function fze(n,r){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t._UZ(2,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.message," ")}}var P5=function(r){return{lightTheme:r}},fI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.projectWebServiceHandler=r,this.nodeService=e,this.nodesDataSource=i,this.protocolHandlerService=o,this.logEventsDataSource=a,this.httpService=s,this.themeService=l,this.cd=u,this.nodeConsoleService=d,this.changeDetectorRef=h,this.version=Yse,this.command="",this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new J.p4(0)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeConsoleService.consoleResized.subscribe(function(i){e.style={bottom:"20px",left:"20px",width:"".concat(i.width,"px"),height:"".concat(i.height-70,"px")},e.changeDetectorRef.detectChanges()}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(i){var o=i.event,a="";a=o.label?"Event received: ".concat(i.action," - ").concat(e.printNode(o),"."):"Event received: ".concat(i.action," - ").concat(o.name,"."),e.showMessage({type:"map update",message:a})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printLink(o),".");e.showMessage({type:"map update",message:a})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printDrawing(o),".");e.showMessage({type:"map update",message:a})}),this.controllerRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(i){e.showMessage({type:"controller request",message:i})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(i){e.showMessage({type:"info",message:i})})}},{key:"ngAfterViewInit",value:function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)}},{key:"ngOnDestroy",value:function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.controllerRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()}},{key:"applyFilter",value:function(e){this.selectedFilter=e,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.handleCommand()}},{key:"handleCommand",value:function(){var e=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var i=this.command.split(/[ ,]+/),o=this.nodesDataSource.getItems().find(function(s){return s.name.valueOf()===i[1].valueOf()});if(o)if(this.regexStart.test(this.command))this.showCommand("Starting node ".concat(i[1],"...")),this.nodeService.start(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," started."))});else if(this.regexStop.test(this.command))this.showCommand("Stopping node ".concat(i[1],"...")),this.nodeService.stop(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," stopped."))});else if(this.regexSuspend.test(this.command))this.showCommand("Suspending node ".concat(i[1],"...")),this.nodeService.suspend(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," suspended."))});else if(this.regexReload.test(this.command))this.showCommand("Reloading node ".concat(i[1],"...")),this.nodeService.reload(this.controller,o).subscribe(function(){return e.showCommand("Node ".concat(o.name," reloaded."))});else if(this.regexConsole.test(this.command))if("started"===o.status){this.showCommand("Launching console for node ".concat(i[1],"..."));var a=o.console_host;Fse.IPv6.isValid(a)&&(a="[".concat(a,"]")),"telnet"===o.console_type?this.protocolHandlerService.open("gns3+telnet://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"vnc"===o.console_type?this.protocolHandlerService.open("gns3+vnc://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("spice")?this.protocolHandlerService.open("gns3+spice://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("http")?window.open("".concat(o.console_type,"://").concat(a,":").concat(o.console)):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")}else this.showCommand("This node must be started before a console can be opened.");else this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o)));else this.showCommand("Node with ".concat(i[1]," name was not found."))}else this.showCommand("Unknown syntax: ".concat(this.command));this.command="",this.cd.detectChanges()}},{key:"clearConsole",value:function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight}},{key:"showCommand",value:function(e){this.showMessage({type:"command",message:e})}},{key:"showMessage",value:function(e){var i=this;this.logEventsDataSource.add(e),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){i.console.nativeElement.scrollTop=i.console.nativeElement.scrollHeight},100),this.cd.detectChanges()}},{key:"getFilteredEvents",value:function(){return"controller requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"controller request"===e.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"error"===e.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"warning"===e.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"info"===e.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"map update"===e.type||"command"===e.type}):this.logEventsDataSource.getItems()}},{key:"printNode",value:function(e){return"command_line: ".concat(e.command_line,",\n compute_id: ").concat(e.compute_id,",\n console: ").concat(e.console,",\n console_host: ").concat(e.console_host,",\n console_type: ").concat(e.console_type,",\n first_port_name: ").concat(e.first_port_name,",\n height: ").concat(e.height,",\n label: ").concat(e.label.text,",\n name: ").concat(e.name,",\n node_directory: ").concat(e.node_directory,",\n node_id: ").concat(e.node_id,",\n node_type: ").concat(e.node_type,",\n port_name_format: ").concat(e.port_name_format,",\n port_segment_size: ").concat(e.port_segment_size,", ")+this.printPorts(e.ports)+"project_id: ".concat(e.project_id,",\n status: ").concat(e.status,",\n symbol: ").concat(e.symbol,",\n symbol_url: ").concat(e.symbol_url,",\n width: ").concat(e.width,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}},{key:"printPorts",value:function(e){var i="ports: ";return e.forEach(function(o){i+="adapter_number: ".concat(o.adapter_number,",\n link_type: ").concat(o.link_type,",\n name: ").concat(o.name,",\n port_number: ").concat(o.port_number,",\n short_name: ").concat(o.short_name,", ")}),i}},{key:"printLink",value:function(e){return"capture_file_name: ".concat(e.capture_file_name,",\n capture_file_path: ").concat(e.capture_file_path,",\n capturing: ").concat(e.capturing,",\n link_id: ").concat(e.link_id,",\n link_type: ").concat(e.link_type,",\n project_id: ").concat(e.project_id,",\n suspend: ").concat(e.suspend,", ")}},{key:"printDrawing",value:function(e){return"drawing_id: ".concat(e.drawing_id,",\n project_id: ").concat(e.project_id,",\n rotation: ").concat(e.rotation,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}}]),n}();fI.\u0275fac=function(r){return new(r||fI)(t.Y36(sv),t.Y36(Ir),t.Y36(Ya.G),t.Y36(Hm),t.Y36(dv),t.Y36(mo.zw),t.Y36(Cc.f),t.Y36(t.sBO),t.Y36(fu),t.Y36(t.sBO))},fI.\u0275cmp=t.Xpm({type:fI,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(pze,5),2&r)&&(t.iGM(i=t.CRH())&&(e.console=i.first))},inputs:{controller:"controller",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t._uU(3," Apply filter "),t.qZA(),t.TgZ(4,"mat-menu",3,4)(6,"button",5),t.NdJ("click",function(){return e.applyFilter("all")}),t._uU(7,"all"),t.qZA(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.applyFilter("errors")}),t._uU(9,"errors"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return e.applyFilter("warnings")}),t._uU(11,"warnings"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return e.applyFilter("info")}),t._uU(13,"info"),t.qZA(),t.TgZ(14,"button",5),t.NdJ("click",function(){return e.applyFilter("map updates")}),t._uU(15,"map updates"),t.qZA(),t.TgZ(16,"button",5),t.NdJ("click",function(){return e.applyFilter("controller requests")}),t._uU(17,"controller requests"),t.qZA()()()(),t.TgZ(18,"div",6,7),t.YNc(20,fze,3,1,"span",8),t.qZA(),t.TgZ(21,"div",9)(22,"mat-icon",10),t._uU(23,"keyboard_arrow_right"),t.qZA(),t.TgZ(24,"input",11),t.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Q6J("ngClass",t.VKq(8,P5,e.isLightThemeEnabled))("matMenuTriggerFor",i),t.xp6(16),t.Q6J("ngClass",t.VKq(10,P5,e.isLightThemeEnabled))("ngStyle",e.style),t.xp6(2),t.Q6J("ngForOf",e.filteredEvents),t.xp6(1),t.Q6J("ngClass",t.VKq(12,P5,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("ngClass",t.VKq(14,P5,e.isLightThemeEnabled))("ngModel",e.command)}},dependencies:[ge.mk,ge.sg,ge.PC,J.Fj,J.JJ,J.On,Va,Tr,_a,Dn],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0});var Kse=m(4793),qse=m(986),Jse=m(9162),hze=["terminal"],hI=function(){function n(r,e){(0,U.Z)(this,n),this.consoleService=r,this.themeService=e,this.term=new Kse.Terminal,this.fitAddon=new Jse.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.consoleService.consoleResized.subscribe(function(i){var o=Math.floor(i.width/9),a=Math.floor(i.height/17);e.consoleService.setNumberOfColumns(o),e.consoleService.setNumberOfRows(a),e.term.resize(o,a)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())}},{key:"ngAfterViewInit",value:function(){var e=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var i=new WebSocket(this.consoleService.getUrl(this.controller,this.node));i.onerror=function(a){e.term.write("Connection lost")},i.onclose=function(a){e.consoleService.closeConsoleForNode(e.node)};var o=new qse.AttachAddon(i);this.term.loadAddon(o),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(a){return!(("KeyC"===a.code||"KeyV"===a.code)&&a.ctrlKey&&a.shiftKey)})}}]),n}();function mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10),t.NdJ("mousemove",function(o){t.CHM(e);var a=t.oxw();return t.KtG(a.dragWidget(o))},!1,t.evT)("mouseup",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.toggleDragging(!1))},!1,t.evT),t.qZA()}}function _ze(n,r){1&n&&(t.TgZ(0,"div",11),t._uU(1,"GNS3 console"),t.qZA())}hI.\u0275fac=function(r){return new(r||hI)(t.Y36(fu),t.Y36(Cc.f))},hI.\u0275cmp=t.Xpm({type:hI,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(hze,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},inputs:{controller:"controller",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var mI=function(r){return{lightThemeConsoleHeader:r}};function gze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11),t._uU(1),t.qZA(),t.TgZ(2,"button",7),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().index,l=t.oxw();return t.KtG(l.removeTab(s))}),t.TgZ(3,"mat-icon"),t._uU(4,"close"),t.qZA()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("ngClass",t.VKq(2,mI,o.isLightThemeEnabled))}}function vze(n,r){if(1&n&&(t.TgZ(0,"mat-tab",12),t.YNc(1,gze,5,4,"ng-template",4),t.qZA()),2&n){var e=t.oxw();t.Q6J("label",e.tab)}}function yze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"remove"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,mI,i.isLightThemeEnabled))}}function bze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,mI,i.isLightThemeEnabled))}}function Cze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",13),t.NdJ("mouseover",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.disableScroll(s))})("mouseout",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.enableScroll(s))}),t._UZ(1,"app-web-console",14),t.qZA()}if(2&n){var i=r.index,o=t.oxw();t.Q6J("hidden",o.isMinimized),t.xp6(1),t.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var wze=function(r){return{lightTheme:r}},kze=function(){return{right:!0,left:!0,bottom:!0,top:!0}},_I=function(){function n(r,e,i){(0,U.Z)(this,n),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new t.vpe,this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new J.p4(0)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(i){e.addTab(i,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(i){var o=e.nodes.findIndex(function(a){return a.node_id===i.node_id});e.removeTab(o)})}},{key:"minimize",value:function(e){this.isMinimized=e,this.style=e?{bottom:"20px",left:"20px",width:"".concat(this.resizedWidth,"px"),height:"56px"}:{bottom:"20px",left:"80px",width:"".concat(this.resizedWidth,"px"),height:"".concat(this.resizedHeight,"px")}}},{key:"addTab",value:function(e,i){this.minimize(!1),this.nodes.push(e),i&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++}},{key:"removeTab",value:function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--}},{key:"toggleDragging",value:function(e){this.isDraggingEnabled=e}},{key:"dragWidget",value:function(e){var i=Number(e.movementX),o=Number(e.movementY),a=Number(this.style.width.split("px")[0]),s=Number(this.style.height.split("px")[0]),l=Number(this.style.left.split("px")[0])+i;if(this.style.top){var u=Number(this.style.top.split("px")[0])+o;this.style={position:"fixed",left:"".concat(l,"px"),top:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}else{var d=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(d,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}}},{key:"validate",value:function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))}},{key:"onResizeEnd",value:function(e){this.style={position:"fixed",left:"".concat(e.rectangle.left,"px"),top:"".concat(e.rectangle.top,"px"),width:"".concat(e.rectangle.width,"px"),height:"".concat(e.rectangle.height,"px")},this.styleInside={height:"".concat(e.rectangle.height-60,"px"),width:"".concat(e.rectangle.width,"px")},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height}},{key:"close",value:function(){this.closeConsole.emit(!1)}},{key:"enableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!1)}},{key:"disableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!0)}}]),n}();_I.\u0275fac=function(r){return new(r||_I)(t.Y36(fu),t.Y36(Cc.f),t.Y36(dl))},_I.\u0275cmp=t.Xpm({type:_I,selectors:[["app-console-wrapper"]],inputs:{controller:"controller",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","controller","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","controller","node"]],template:function(r,e){1&r&&(t.YNc(0,mze,1,0,"div",0),t.TgZ(1,"div",1),t.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),t.TgZ(2,"div",2)(3,"mat-tab-group",3),t.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),t.TgZ(4,"mat-tab"),t.YNc(5,_ze,2,0,"ng-template",4),t.qZA(),t.YNc(6,vze,2,1,"mat-tab",5),t.qZA(),t.YNc(7,yze,3,3,"button",6),t.YNc(8,bze,3,3,"button",6),t.TgZ(9,"button",7),t.NdJ("click",function(){return e.close()}),t.TgZ(10,"mat-icon"),t._uU(11,"close"),t.qZA()()(),t._UZ(12,"app-log-console",8),t.YNc(13,Cze,2,4,"div",9),t.qZA()),2&r&&(t.Q6J("ngIf",e.isDraggingEnabled),t.xp6(1),t.Q6J("ngClass",t.VKq(16,wze,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",t.DdM(18,kze))("enableGhostResize",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(19,mI,e.isLightThemeEnabled)),t.xp6(1),t.Q6J("selectedIndex",e.selected.value),t.xp6(3),t.Q6J("ngForOf",e.nodes),t.xp6(1),t.Q6J("ngIf",!e.isMinimized),t.xp6(1),t.Q6J("ngIf",e.isMinimized),t.xp6(1),t.Q6J("ngClass",t.VKq(21,mI,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),t.xp6(1),t.Q6J("ngForOf",e.nodes))},dependencies:[ge.mk,ge.sg,ge.O5,ge.PC,KY.E$,cn,Dn,Zi.SP,Zi.uD,Zi.uX,fI,hI],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:40px;left:80px;height:180px;width:600px;background:#000000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:white!important;color:#000!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:black}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]});var Tze=["topologySummaryContainer"];function Mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-d3-map",37),t.NdJ("nodeDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeDragged(a))})("drawingDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingDragged(a))})("onLinkCreated",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onLinkCreated(a))})("onDrawingResized",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingResized(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function Sze(n,r){if(1&n&&t._UZ(0,"app-experimental-map",38),2&n){var e=t.oxw(2);t.Q6J("symbols",e.symbols)("nodes",e.nodes)("links",e.links)("drawings",e.drawings)("width",e.project.scene_width)("height",e.project.scene_height)("show-interface-labels",e.isInterfaceLabelVisible)("selection-tool",e.tools.selection)("moving-tool",e.tools.moving)("draw-link-tool",e.tools.draw_link)("readonly",e.inReadOnlyMode)}}function xze(n,r){1&n&&t._UZ(0,"mat-icon",39)}function Eze(n,r){1&n&&t._UZ(0,"mat-icon",40)}var R5=function(r){return{lightTheme:r}},Dze=function(r){return{selected:r}};function Aze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",41)(1,"app-template",42),t.NdJ("onNodeCreation",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeCreation(a))}),t.qZA(),t.TgZ(2,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.toggleDrawLineMode())}),t.TgZ(3,"mat-icon"),t._uU(4,"timeline"),t.qZA()()()}if(2&n){var i=t.oxw(2);t.Q6J("ngClass",t.VKq(5,R5,i.isLightThemeEnabled)),t.xp6(1),t.Q6J("controller",i.controller)("project",i.project),t.xp6(1),t.Q6J("ngClass",t.VKq(7,Dze,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function Oze(n,r){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-snapshot-menu-item",12),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function Ize(n,r){if(1&n&&t._UZ(0,"app-draw-link-tool",44),2&n){var e=t.oxw(2);t.Q6J("links",e.links)}}function Pze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-console-wrapper",45),t.NdJ("closeConsole",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.toggleShowConsole(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)}}var Rze=function(r,e){return{unmarkedLight:r,marked:e}},Lze=function(){return["/controllers"]},Zze=function(r){return["/controller",r,"projects"]},Nze=function(r){return["/controller",r,"image-manager"]},Bze=function(r){return{visible:r}};function Fze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.YNc(1,Mze,1,10,"app-d3-map",3),t.YNc(2,Sze,1,11,"app-experimental-map",4),t.TgZ(3,"div",5)(4,"button",6),t.YNc(5,xze,1,0,"mat-icon",7),t.YNc(6,Eze,1,0,"mat-icon",8),t.qZA(),t.TgZ(7,"div",9),t.YNc(8,Aze,5,9,"div",10),t.TgZ(9,"div",11),t._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),t.qZA()(),t.TgZ(12,"div")(13,"button",14),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleShowTopologySummary(!u.isTopologySummaryVisible))}),t.TgZ(14,"mat-icon"),t._uU(15,"toc"),t.qZA()()(),t.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),t._uU(20,"developer_board"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Controllers"),t.qZA()(),t.TgZ(23,"button",17)(24,"mat-icon"),t._uU(25,"work"),t.qZA(),t.TgZ(26,"span"),t._uU(27,"Projects"),t.qZA()(),t.TgZ(28,"button",17)(29,"mat-icon"),t._uU(30,"settings_applications"),t.qZA(),t.TgZ(31,"span"),t._uU(32,"Template preferences"),t.qZA()(),t.TgZ(33,"button",17)(34,"mat-icon"),t._uU(35,"collections"),t.qZA(),t.TgZ(36,"span"),t._uU(37,"Image manager"),t.qZA()(),t.TgZ(38,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewTemplate())}),t.TgZ(39,"mat-icon"),t._uU(40,"control_point"),t.qZA(),t.TgZ(41,"span"),t._uU(42,"New template"),t.qZA()(),t._UZ(43,"app-import-appliance",12),t.TgZ(44,"button",19)(45,"mat-icon"),t._uU(46,"settings"),t.qZA(),t.TgZ(47,"span"),t._uU(48,"Project settings"),t.qZA()(),t.TgZ(49,"button",19)(50,"mat-icon"),t._uU(51,"view_module"),t.qZA(),t.TgZ(52,"span"),t._uU(53,"Map settings"),t.qZA()()(),t.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewProject())}),t.TgZ(58,"mat-icon"),t._uU(59,"add"),t.qZA(),t.TgZ(60,"span"),t._uU(61,"Add new blank project"),t.qZA()(),t.TgZ(62,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.saveProject())}),t.TgZ(63,"mat-icon"),t._uU(64,"save"),t.qZA(),t.TgZ(65,"span"),t._uU(66,"Save project as"),t.qZA()(),t.TgZ(67,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.editProject())}),t.TgZ(68,"mat-icon"),t._uU(69,"edit"),t.qZA(),t.TgZ(70,"span"),t._uU(71,"Edit project"),t.qZA()(),t.TgZ(72,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.exportProject())}),t.TgZ(73,"mat-icon"),t._uU(74,"call_made"),t.qZA(),t.TgZ(75,"span"),t._uU(76,"Export project"),t.qZA()(),t.TgZ(77,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.importProject())}),t.TgZ(78,"mat-icon"),t._uU(79,"call_received"),t.qZA(),t.TgZ(80,"span"),t._uU(81,"Import project"),t.qZA()(),t.TgZ(82,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.closeProject())}),t.TgZ(83,"mat-icon"),t._uU(84,"close"),t.qZA(),t.TgZ(85,"span"),t._uU(86,"Close project"),t.qZA()(),t.TgZ(87,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.deleteProject())}),t.TgZ(88,"mat-icon"),t._uU(89,"delete"),t.qZA(),t.TgZ(90,"span"),t._uU(91,"Delete project"),t.qZA()()()(),t.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowInterfaceLabels(u.checked))}),t._uU(96," Show interface labels "),t.qZA(),t._UZ(97,"br"),t.TgZ(98,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowConsole(u.checked))}),t._uU(99," Show console "),t.qZA(),t._UZ(100,"br"),t.TgZ(101,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowTopologySummary(u.checked))}),t._uU(102," Show topology/controllers summary "),t.qZA(),t._UZ(103,"br"),t.TgZ(104,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleNotifications(u.checked))}),t._uU(105," Show notifications "),t.qZA(),t._UZ(106,"br"),t.TgZ(107,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleLayers(u.checked))}),t._uU(108," Show layers "),t.qZA(),t._UZ(109,"br"),t.TgZ(110,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleGrid(u.checked))}),t._uU(111," Show grid "),t.qZA(),t._UZ(112,"br"),t.TgZ(113,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSnapToGrid(u.checked))}),t._uU(114," Snap to grid "),t.qZA(),t._UZ(115,"br"),t.TgZ(116,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSymbolScaling(u.checked))}),t._uU(117," Scale symbols "),t.qZA(),t._UZ(118,"br"),t.qZA()()(),t.TgZ(119,"div",24)(120,"div",25)(121,"button",26),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(122,"mat-icon"),t._uU(123,"near_me"),t.qZA()(),t.TgZ(124,"button",27),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(125,"mat-icon"),t._uU(126,"zoom_out_map"),t.qZA()(),t.TgZ(127,"button",28),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomIn())}),t.TgZ(128,"mat-icon"),t._uU(129,"zoom_in"),t.qZA()(),t.TgZ(130,"button",29),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.resetZoom())}),t.TgZ(131,"mat-icon"),t._uU(132,"adjust"),t.qZA()(),t.TgZ(133,"button",30),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomOut())}),t.TgZ(134,"mat-icon"),t._uU(135,"zoom_out"),t.qZA()()(),t.TgZ(136,"div",25),t._UZ(137,"app-project-map-menu",12),t.qZA(),t.YNc(138,Oze,2,2,"div",31),t.qZA(),t._UZ(139,"app-progress"),t.YNc(140,Ize,1,1,"app-draw-link-tool",32),t._UZ(141,"app-drawing-dragged",12)(142,"app-drawing-resized",33)(143,"app-interface-label-dragged",33)(144,"app-link-created",12)(145,"app-node-dragged",12)(146,"app-node-label-dragged",33),t.TgZ(147,"app-text-added",34),t.NdJ("drawingSaved",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.onDrawingSaved())}),t.qZA(),t._UZ(148,"app-text-edited",33),t.TgZ(149,"div",35),t.YNc(150,Pze,1,2,"app-console-wrapper",36),t.qZA()()}if(2&n){var i=t.MAs(17),o=t.MAs(55),a=t.MAs(93),s=t.oxw();t.Q6J("ngClass",t.VKq(53,R5,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("ngIf",!s.settings.angular_map),t.xp6(1),t.Q6J("ngIf",s.settings.angular_map),t.xp6(1),t.Q6J("ngClass",t.VKq(55,R5,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(1),t.Q6J("ngIf",!s.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",s.isLightThemeEnabled),t.xp6(2),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("project",s.project)("controller",s.controller),t.xp6(2),t.Q6J("ngClass",t.WLB(57,Rze,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(60,Lze)),t.xp6(5),t.Q6J("routerLink",t.VKq(61,Zze,s.controller.id)),t.xp6(5),t.MGl("routerLink","/controller/",s.controller.id,"/preferences"),t.xp6(5),t.Q6J("routerLink",t.VKq(63,Nze,s.controller.id)),t.xp6(10),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.Q6J("matMenuTriggerFor",a),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(38),t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("ngModel",s.isInterfaceLabelVisible),t.xp6(3),t.Q6J("ngModel",s.isConsoleVisible),t.xp6(3),t.Q6J("ngModel",s.isTopologySummaryVisible),t.xp6(3),t.Q6J("ngModel",s.notificationsVisibility),t.xp6(3),t.Q6J("ngModel",s.layersVisibility),t.xp6(3),t.Q6J("ngModel",s.gridVisibility),t.xp6(3),t.Q6J("ngModel",s.project.snap_to_grid),t.xp6(3),t.Q6J("ngModel",s.symbolScaling),t.xp6(3),t.Q6J("ngClass",t.VKq(65,R5,s.isLightThemeEnabled)),t.xp6(2),t.Q6J("color",s.tools.moving?"basic":"primary"),t.xp6(3),t.Q6J("color",s.tools.moving?"primary":"basic"),t.xp6(13),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("ngIf",s.tools.draw_link),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("ngClass",t.VKq(67,Bze,!s.isConsoleVisible)),t.xp6(1),t.Q6J("ngIf",s.project)}}function Uze(n,r){}var gI=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,xe,Ve,at,De,ot,ht,bt,Xe,Pe,pt,Nt,Gt,It,Tn,jn,zn,or,Sr,_r,zr,Ur,Kr,Fo,er,wr,Sn,gn,tr){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=l,this.mapChangeDetectorRef=u,this.nodeWidget=d,this.drawingsWidget=h,this.linkWidget=g,this.labelWidget=C,this.interfaceLabelWidget=Z,this.mapNodeToNode=z,this.mapDrawingToDrawing=q,this.mapLabelToLabel=re,this.mapLinkToLink=ae,this.mapLinkNodeToLinkNode=Se,this.nodesDataSource=Ce,this.linksDataSource=xe,this.drawingsDataSource=Ve,this.settingsService=at,this.toolsService=De,this.selectionManager=ot,this.selectionTool=ht,this.recentlyOpenedProjectService=bt,this.movingEventSource=Xe,this.mapScaleService=Pe,this.nodeCreatedLabelStylesFixer=pt,this.toasterService=Nt,this.dialog=Gt,this.router=It,this.mapNodesDataSource=Tn,this.mapLinksDataSource=jn,this.mapDrawingsDataSource=zn,this.mapSymbolsDataSource=or,this.mapSettingsService=Sr,this.ethernetLinkWidget=_r,this.serialLinkWidget=zr,this.bottomSheet=Ur,this.notificationService=Kr,this.themeService=Fo,this.title=er,this.nodeConsoleService=wr,this.symbolService=Sn,this.cd=gn,this.viewContainerRef=tr,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.symbolScaling=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new xa.w}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.getSettings(),this.progressService.activate(),this.controllerService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(i){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1})}},{key:"getSettings",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(i){return e.isConsoleVisible=i}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")}},{key:"lazyLoadTopologySummary",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i,o;return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isTopologySummaryVisible){s.next=10;break}return s.next=3,m.e(465).then(m.bind(m,2465));case 3:i=s.sent,o=i.TopologySummaryComponent,this.instance=this.viewContainerRef.createComponent(o),this.instance.instance.controller=this.controller,this.instance.instance.project=this.project,s.next=11;break;case 10:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy());case 11:case"end":return s.stop()}},e,this)}))}},{key:"addSubscriptions",value:function(){var e=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(i){e.scrollEnabled&&e.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(i){e.drawings=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(i){!e.controller||(i.forEach(function(o){return yi(e,void 0,void 0,Ln().mark(function a(){var s;return Ln().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.symbol_url="".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Wa.N.current_version,"/symbols/").concat(o.symbol,"/raw"),0!=o.width||0!=o.height){u.next=7;break}return u.next=4,this.symbolService.getDimensions(this.controller,o.symbol).toPromise();case 4:s=u.sent,o.width=s.width,o.height=s.height;case 7:case"end":return u.stop()}},a,this)}))}),e.nodes=i,e.mapSettingsService.getSymbolScaling()&&e.applyScalingOfNodeSymbols(),e.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(i){console.log("from project map component"),e.links=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(i){i&&e.applyScalingOfNodeSymbols()}))}},{key:"applyScalingOfNodeSymbols",value:function(){var e=this;this.nodesDataSource.getItems().forEach(function(i){if(i.height>e.symbolService.getMaximumSymbolSize()){var o=e.symbolService.scaleDimensionsForNode(i);i.width=o.width,i.height=o.height}})}},{key:"getData",value:function(){var e=this,i=this.route.paramMap.subscribe(function(o){var a=parseInt(o.get("controller_id"),10);(0,Zs.D)(e.controllerService.get(a)).pipe((0,ys.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,$n.U)(function(l){return l}))}),(0,ys.zg)(function(s){return e.project=s,s||e.router.navigate(["/controllers"]),e.projectService.open(e.controller,e.project.project_id),e.title.setTitle(e.project.name),e.isInterfaceLabelVisible=e.mapSettingsService.showInterfaceLabels,e.toggleShowTopologySummary(e.mapSettingsService.isTopologySummaryVisible),e.recentlyOpenedProjectService.setcontrollerId(e.controller.id.toString()),"opened"===e.project.status?new $i.y(function(l){l.next(e.project)}):e.projectService.open(e.controller,e.project.project_id)})).subscribe(function(s){e.onProjectLoad(s),e.mapSettingsService.openReadme&&e.showReadme()},function(s){e.progressService.setError(s)},function(){e.progressService.deactivate()})});this.projectMapSubscription.add(i)}},{key:"addKeyboardListeners",value:function(){var e=this;Rg.bind("ctrl++",function(i){i.preventDefault(),e.zoomIn()}),Rg.bind("ctrl+-",function(i){i.preventDefault(),e.zoomOut()}),Rg.bind("ctrl+0",function(i){i.preventDefault(),e.resetZoom()}),Rg.bind("ctrl+a",function(i){i.preventDefault();var o=e.mapNodesDataSource.getItems(),a=e.mapDrawingsDataSource.getItems(),s=e.mapLinksDataSource.getItems(),l=e.mapSymbolsDataSource.getItems();e.selectionManager.setSelected(o.concat(a).concat(s).concat(l))}),Rg.bind("ctrl+h",function(i){i.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),Rg.bind("ctrl+shift+a",function(i){i.preventDefault(),e.selectionManager.setSelected([])}),Rg.bind("ctrl+shift+s",function(i){i.preventDefault(),e.router.navigate(["/controller",e.controller.id,"preferences"])}),Rg.bind("del",function(i){i.preventDefault(),e.deleteItems()})}},{key:"deleteItems",value:function(){var e=this;this.bottomSheet.open(fd);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete all selected objects?";i.afterDismissed().subscribe(function(a){if(a){var s=e.selectionManager.getSelected();s.filter(function(l){return l instanceof ub}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof Lm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Drawing has been deleted")})})}})}},{key:"onProjectLoad",value:function(e){var i=this;this.readonly=this.projectService.isReadOnly(e),this.recentlyOpenedProjectService.setProjectId(this.project.project_id);var o=this.projectService.nodes(this.controller,e.project_id).pipe((0,ys.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,ys.zg)(function(a){return i.linksDataSource.set(a),i.projectService.drawings(i.controller,e.project_id)})).subscribe(function(a){i.drawingsDataSource.set(a),i.setUpMapCallbacks(),i.setUpProjectWS(e),i.progressService.deactivate()});this.projectMapSubscription.add(o)}},{key:"setUpProjectWS",value:function(e){var i=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.controller,e.project_id)),this.projectws.onmessage=function(o){i.projectWebServiceHandler.handleMessage(JSON.parse(o.data))},this.projectws.onerror=function(o){i.toasterService.error("Connection to host lost. Error: ".concat(o.data))}}},{key:"setUpWS",value:function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.controller))}},{key:"setUpMapCallbacks",value:function(){var e=this;this.readonly||this.toolsService.selectionToolActivation(!0);var i=this.linkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(g){var C=e.mapNodeToNode.convert(g.node);e.contextMenu.openMenuForNode(C,g.event.pageY,g.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(g){var C=e.mapDrawingToDrawing.convert(g.drawing);e.contextMenu.openMenuForDrawing(C,g.event.pageY,g.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(g){var C=e.mapLabelToLabel.convert(g.label),Z=e.nodes.find(function(z){return z.node_id===g.label.nodeId});e.contextMenu.openMenuForLabel(C,Z,g.event.screenY-60,g.event.screenX)}),d=this.interfaceLabelWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkNodeToLinkNode.convert(g.interfaceLabel),Z=e.links.find(function(z){return z.link_id===g.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(C,Z,g.event.pageY,g.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(g){var C=e.selectionManager.getSelected();if(!(C.length<2)&&g instanceof MouseEvent){var Z=[],z=[],q=[],re=[];C.forEach(function(ae){ae instanceof Lm?Z.push(e.mapDrawingToDrawing.convert(ae)):ae instanceof ub?z.push(e.mapNodeToNode.convert(ae)):ae instanceof Ik?q.push(e.mapLabelToLabel.convert(ae)):ae instanceof gse&&re.push(e.mapLinkToLink.convert(ae))}),e.contextMenu.openMenuForListOfElements(Z,z,q,re,g.pageY,g.pageX)}});this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(l),this.projectMapSubscription.add(h),this.projectMapSubscription.add(u),this.projectMapSubscription.add(d),this.mapChangeDetectorRef.detectChanges()}},{key:"onNodeCreation",value:function(e){var i=this;!e||(e.x=e.x/this.mapScaleService.getScale(),e.y=e.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.controller,this.project,e.template,e.x,e.y,e.controller).subscribe(function(o){i.projectService.nodes(i.controller,i.project.project_id).subscribe(function(a){a.filter(function(s){return null===s.label.style}).forEach(function(s){var l=i.nodeCreatedLabelStylesFixer.fix(s);i.nodeService.updateLabel(i.controller,s,l.label).subscribe()}),i.nodesDataSource.set(a),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<i.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<i.project.scene_height/2?e.y+50:e.y,i.onNodeCreation(e)):i.progressService.deactivate()})},function(o){i.toasterService.error(o.error.message),i.progressService.deactivate()}))}},{key:"fitInView",value:function(){if(this.drawings.forEach(function(ot){var ht=ot.svg.split('"'),bt=parseInt(ht[1],10),Xe=parseInt(ht[3],10);ot.element={width:Xe,height:bt}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(ot){var ht=new Hze;ht.node=ot,ht.top=ot.y,ht.left=ot.x,ht.bottom=ot.y+ot.height,ht.right=ot.x+ot.width,ot.y+ot.label.y<ht.top&&(ht.top=ot.y+ot.label.y),ot.x+ot.label.x<ht.left&&(ht.left=ot.x+ot.label.x),ot.y+ot.label.y>ht.bottom&&(ht.bottom=ot.y+ot.label.y),ot.x+ot.label.x>ht.right&&(ht.right=ot.x+ot.label.x),s.push(ht)});var l=s.sort(function(ot,ht){return ot.left-ht.left})[0],u=s.sort(function(ot,ht){return ot.right-ht.right})[s.length-1],d=s.sort(function(ot,ht){return ot.top-ht.top})[0],h=s.sort(function(ot,ht){return ot.bottom-ht.bottom})[s.length-1],g=[];this.drawings.forEach(function(ot){var ht=new jze;ht.drawing=ot,ht.top=ot.y,ht.left=ot.x,ht.bottom=ot.y+ot.element.height,ht.right=ot.x+ot.element.width,g.push(ht)});var C=g.sort(function(ot,ht){return ot.left-ht.left})[0],Z=g.sort(function(ot,ht){return ot.right-ht.right})[g.length-1],z=g.sort(function(ot,ht){return ot.top-ht.top})[0],q=g.sort(function(ot,ht){return ot.bottom-ht.bottom})[g.length-1];C&&l?(e=l.left<C.left?l.left:C.left,i=u.right>Z.right?u.right:Z.right,o=d.top<z.top?d.top:z.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!C?(e=l.left,i=u.right,o=d.top,a=h.bottom):C&&!l?(e=C.left,i=Z.right,o=z.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Se=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Ce=i-e,xe=a-o,Ve=Ce/ae,at=xe/Se,De=1/Math.max(Ve,at);De!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(De),this.project.scene_width=this.project.scene_width*De,this.project.scene_height=this.project.scene_height*De,at<Ce?(this.scrollX=e*De-(ae-Ce*De)/2+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De-(Se-xe*De)/2+this.project.scene_height/2)):(this.scrollX=e*De+this.project.scene_width/2,this.scrollY=o*De+this.project.scene_height/2),this.scrollEnabled=!0}}},{key:"centerCanvas",value:function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1}},{key:"centerView",value:function(){if(this.project){var e=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,i=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(e,i)}else this.toasterService.error("Please wait until all components are loaded.")}},{key:"onDrawingSaved",value:function(){this.projectMapMenuComponent.resetDrawToolChoice()}},{key:"readonly",get:function(){return this.inReadOnlyMode},set:function(e){this.inReadOnlyMode=e,e?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))}},{key:"toggleSymbolScaling",value:function(e){this.symbolScaling=e,this.mapSettingsService.setSymbolScaling(e)}},{key:"toggleMovingMode",value:function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))}},{key:"toggleDrawLineMode",value:function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)}},{key:"toggleShowInterfaceLabels",value:function(e){this.isInterfaceLabelVisible=e,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"toggleShowConsole",value:function(e){this.isConsoleVisible=e,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)}},{key:"toggleShowTopologySummary",value:function(e){this.isTopologySummaryVisible=e,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible),this.lazyLoadTopologySummary()}},{key:"toggleNotifications",value:function(e){this.notificationsVisibility=e,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")}},{key:"toggleLayers",value:function(e){this.layersVisibility=e,this.mapSettingsService.toggleLayers(e),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()}},{key:"toggleGrid",value:function(e){this.gridVisibility=e,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0}},{key:"toggleSnapToGrid",value:function(e){this.project.snap_to_grid=e}},{key:"showMessage",value:function(e){this.notificationsVisibility&&("error"===e.type&&this.toasterService.error(e.message),"warning"===e.type&&this.toasterService.warning(e.message))}},{key:"hideMenu",value:function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1}},{key:"showMenu",value:function(){this.isProjectMapMenuVisible=!0}},{key:"zoomIn",value:function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)}},{key:"zoomOut",value:function(){var e=this.mapScaleService.getScale();e-.1>0&&this.mapScaleService.setScale(e-.1)}},{key:"resetZoom",value:function(){this.mapScaleService.resetToDefault()}},{key:"addNewProject",value:function(){this.dialog.open(Yk,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(kA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(wA,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(Kk,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(l){if(s.unsubscribe(),i&&!l){e.bottomSheet.open(qk);var u=e.bottomSheet._openedBottomSheetRef;u.instance.projectMessage="imported project";u.afterDismissed().subscribe(function(h){h&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"exportProject",value:function(){this.nodes.filter(function(e){return"virtualbox"===e.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(e){return"started"===e.status&&"vpcs"===e.node_type||"started"===e.status&&"virtualbox"===e.node_type||"started"===e.status&&"vmware"===e.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Ok,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n height="'.concat(s.height,'" width="').concat(s.width,'">\n<image height="').concat(s.height,'" width="').concat(s.width,'"\n xlink:href="').concat(l,'"/>\n</svg>');i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"closeProject",value:function(){var e=this;this.bottomSheet.open(fd);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to close the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.close(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"deleteProject",value:function(){var e=this;this.bottomSheet.open(fd);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the project?";i.afterDismissed().subscribe(function(a){a&&e.projectService.delete(e.controller,e.project.project_id).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"projects"])})})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(aT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"showReadme",value:function(){var i=this.dialog.open(UO,{width:"600px",height:"650px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()}}]),n}();gI.\u0275fac=function(r){return new(r||gI)(t.Y36(fr),t.Y36(rr),t.Y36(zs.Y),t.Y36(Ir),t.Y36(Ka),t.Y36(Hs),t.Y36(sv),t.Y36(Hf),t.Y36(Yg),t.Y36(Vf),t.Y36(Qg),t.Y36(Gf),t.Y36(fp),t.Y36(Wm),t.Y36(Lb),t.Y36(qf),t.Y36(Zb),t.Y36(uv),t.Y36(Ya.G),t.Y36(Fm.F),t.Y36(va),t.Y36(jm.g),t.Y36(Yf),t.Y36(Ll),t.Y36(jf),t.Y36(O5.p),t.Y36(Um),t.Y36(mp),t.Y36(Nb),t.Y36(Pn),t.Y36(Hr),t.Y36(dr),t.Y36(Am),t.Y36(Om),t.Y36(Im),t.Y36(Pm),t.Y36(dl),t.Y36(qg),t.Y36(Jg),t.Y36(_p),t.Y36(Bb),t.Y36(Cc.f),t.Y36(jr),t.Y36(fu),t.Y36(Of),t.Y36(t.sBO),t.Y36(t.s_b))},gI.\u0275cmp=t.Xpm({type:gI,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(tT,5),t.Gf(Wk,5),t.Gf(sT,5),t.Gf(Tze,5,t.s_b)),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first),t.iGM(i=t.CRH())&&(e.mapChild=i.first),t.iGM(i=t.CRH())&&(e.projectMapMenuComponent=i.first),t.iGM(i=t.CRH())&&(e.topologySummaryContainer=i.first))},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"controller","project"],[3,"project","controller"],["matTooltip","Toggle topology/controllers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"controller"],[3,"controller","project","drawingSaved"],[3,"ngClass"],[3,"controller","project","closeConsole",4,"ngIf"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"controller","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"controller","project","closeConsole"]],template:function(r,e){1&r&&(t.YNc(0,Fze,151,69,"div",0),t.YNc(1,Uze,0,0,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",e.project)},dependencies:[ge.mk,ge.O5,Wo,J.JJ,J.On,Wk,qO,Va,Tr,_a,cn,Dn,ei,ai,QO,tT,eI,U0,tI,nI,rI,iI,oI,aI,sI,lI,uI,dI,sT,pI,_I],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0;left:0;right:0;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px #0003;z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px #0003;z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:#f4f8fcf2!important}#project-toolbar.lightTheme .zoom-button,#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px #0003,0 6px 20px -20px #00000030}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0;left:92px;right:0;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.light-theme .context-menu-items .mat-menu-item:hover{background-color:#999898cb!important}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2});var Hze=(0,B.Z)(function n(){(0,U.Z)(this,n)}),jze=(0,B.Z)(function n(){(0,U.Z)(this,n)}),vI=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.projectService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.name=this.project.name}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSaveClick",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.name).subscribe(function(){e.dialogRef.close()})}}]),n}();function Gze(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function zze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all projects?"),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected projects"),t.qZA(),t.YNc(6,Gze,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function Wze(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function Vze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}vI.\u0275fac=function(r){return new(r||vI)(t.Y36(lr),t.Y36(zs.Y))},vI.\u0275cmp=t.Xpm({type:vI,selectors:[["app-choose-name-dialog"]],inputs:{controller:"controller",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.name=o}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Save project"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.name))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,cn,Kn,yr,ur],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var Yze=function(r){return{"deleted-error-text":r}};function Kze(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,Vze,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,Yze,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function qze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Project can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,Kze,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function Jze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function Qze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,qze,4,1,"div",0),t.YNc(3,Jze,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var yI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.projectService.delete(e.deleteData.controller,o.project_id).pipe((0,Xc.K)(function(a){return(0,qn.of)(a)})))}),$i.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();function Xze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function $ze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",25),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function eWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",26),t._uU(1," Name "),t.qZA())}yI.\u0275fac=function(r){return new(r||yI)(t.Y36(go),t.Y36(lr),t.Y36(zs.Y),t.Y36(Pn))},yI.\u0275cmp=t.Xpm({type:yI,selectors:[["app-confirmation-delete-all-projects"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,zze,12,1,"div",0),t.YNc(1,Wze,5,0,"div",0),t.YNc(2,Qze,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Eg,yr,cl,ur,xl]});var tWe=function(r,e){return["/controller",r,"project",e]};function nWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",27),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,tWe,i.controller.id,e.project_id)),t.xp6(1),t.Oqu(e.name)}}function rWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",28),t._uU(1," Actions "),t.qZA())}function iWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.open(o))}),t.TgZ(1,"mat-icon",36),t._uU(2,"play_arrow"),t.qZA()()}}function oWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.close(o))}),t.TgZ(1,"mat-icon",38),t._uU(2,"pause"),t.qZA()()}}function aWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.duplicate(o))}),t.TgZ(1,"mat-icon",40),t._uU(2,"save"),t.qZA()()}}function sWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",29),t.YNc(1,iWe,3,0,"button",30),t.YNc(2,oWe,3,0,"button",31),t.YNc(3,aWe,3,0,"button",32),t.TgZ(4,"button",33),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.exportSelectProject(s))}),t.TgZ(5,"mat-icon",34),t._uU(6,"arrow_downward"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(1),t.Q6J("ngIf","closed"==i.status),t.xp6(1),t.Q6J("ngIf","opened"==i.status),t.xp6(1),t.Q6J("ngIf","closed"==i.status)}}function lWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",42),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function uWe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell",28),t.YNc(1,lWe,3,0,"button",41),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function cWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",44),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.delete(o))}),t.TgZ(1,"mat-icon",45),t._uU(2,"delete"),t.qZA()()}}function dWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",28),t.YNc(1,cWe,3,0,"button",43),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function pWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function fWe(n,r){1&n&&t._UZ(0,"mat-row")}var hWe=function(){return{standalone:!0}},fT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.route=r,this.projectService=e,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=l,this.toasterService=u,this.electronService=d,this.recentlyOpenedProjectService=h,this.projectDatabase=new mWe,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new Ci.Ov(!0,[])}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.recentlyOpenedProjectService.setcontrollerIdProjectList(this.controller.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new _We(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe(function(){return e.refresh()})}},{key:"refresh",value:function(){var e=this;this.projectService.list(this.controller).subscribe(function(i){e.projectDatabase.addProjects(i)},function(i){e.progressService.setError(i)})}},{key:"delete",value:function(e){var i=this;this.bottomSheet.open(fd);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.refresh()})})}},{key:"open",value:function(e){var i=this;this.progressService.activate(),this.projectService.open(this.controller,e.project_id).subscribe(function(){i.refresh()},function(){i.refresh(),i.progressService.deactivate(),i.toasterService.error("Project was deleted.")},function(){i.progressService.deactivate()})}},{key:"close",value:function(e){var i=this;this.bottomSheet.open(fd);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to close the project?";o.afterDismissed().subscribe(function(s){s&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.refresh(),i.progressService.deactivate()})})}},{key:"duplicate",value:function(e){var i=this,o=this.dialog.open(vI,{width:"400px",autoFocus:!1,disableClose:!0}),a=o.componentInstance;a.controller=this.controller,a.project=e,o.afterClosed().subscribe(function(){i.refresh()})}},{key:"addBlankProject",value:function(){this.dialog.open(Yk,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(Kk,{width:"400px",autoFocus:!1,disableClose:!0});o.componentInstance.controller=this.controller;var s=o.componentInstance.onImportProject.subscribe(function(l){i=l});o.afterClosed().subscribe(function(){if(e.refresh(),s.unsubscribe(),i){e.bottomSheet.open(qk);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(d){d&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(yI,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.refresh(),!1;e.unChecked(),e.refresh(),e.toasterService.success("All projects deleted")})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.projectDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.projectDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"exportSelectProject",value:function(e){this.project=e,this.project.project_id&&this.exportPortableProjectDialog()}},{key:"exportPortableProjectDialog",value:function(){this.dialog.open(Ok,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),n}();fT.\u0275fac=function(r){return new(r||fT)(t.Y36(fr),t.Y36(zs.Y),t.Y36(jm.g),t.Y36(Hs),t.Y36(Hr),t.Y36(dr),t.Y36(_p),t.Y36(Pn),t.Y36(sl),t.Y36(O5.p))},fT.\u0275cmp=t.Xpm({type:fT,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(zu,7),2&r)&&(t.iGM(i=t.CRH())&&(e.sort=i.first))},decls:31,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search project by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","actions"],["class","action",4,"matHeaderCellDef"],["class","action","style","text-align: right",4,"matCellDef"],["matColumnDef","delete"],["class","action",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[1,"action"],[1,"action",2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Export project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Export project"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Save project as"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["aria-label","Delete project"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Projects"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.addBlankProject()}),t._uU(6," Add blank project "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.importProject()}),t._uU(8," Import project "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),t.ALo(16,"projectsfilter"),t.ynx(17,12),t.YNc(18,Xze,2,2,"mat-header-cell",13),t.YNc(19,$ze,2,1,"mat-cell",14),t.BQk(),t.ynx(20,15),t.YNc(21,eWe,2,0,"mat-header-cell",16),t.YNc(22,nWe,3,5,"mat-cell",14),t.BQk(),t.ynx(23,17),t.YNc(24,rWe,2,0,"mat-header-cell",18),t.YNc(25,sWe,7,3,"mat-cell",19),t.BQk(),t.ynx(26,20),t.YNc(27,uWe,2,1,"mat-header-cell",18),t.YNc(28,dWe,2,1,"mat-cell",21),t.BQk(),t.YNc(29,pWe,1,0,"mat-header-row",22),t.YNc(30,fWe,1,0,"mat-row",23),t.qZA()()()()),2&r&&(t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(8,hWe)),t.xp6(3),t.Q6J("dataSource",t.xi3(16,5,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%], .add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}table[_ngcontent-%COMP%]{width:100%}.action[_ngcontent-%COMP%]{justify-content:center}"]});var mWe=function(){function n(){(0,U.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addProjects",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()))}}]),n}(),_We=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return ji.T.apply(void 0,a).pipe((0,$n.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],d=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+d)?d:+d)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2);function gWe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function vWe(n,r){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var bI=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialogRef=r,this.electronService=e,this.controllerService=i,this.toasterService=o,this.data=a,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),path:new J.p4(""),ubridge_path:new J.p4(""),host:new J.p4("",[J.kI.required]),port:new J.p4("",[J.kI.required,J.kI.min(1)]),protocol:new J.p4("http:")})}return(0,B.Z)(n,[{key:"getLocations",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i,o;return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.numberOfLocalControllers();case 2:return i=s.sent,o=[],this.electronService.isElectronApp&&0===i&&o.push({key:"local",name:"Local"}),o.push({key:"remote",name:"Remote"}),s.abrupt("return",o);case 7:case"end":return s.stop()}},e,this)}))}},{key:"getDefaultLocation",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i;return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.numberOfLocalControllers();case 2:if(i=a.sent,!this.electronService.isElectronApp||0!==i){a.next=5;break}return a.abrupt("return","local");case 5:return a.abrupt("return","remote");case 6:case"end":return a.stop()}},e,this)}))}},{key:"numberOfLocalControllers",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i;return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerService.findAll();case 2:return i=a.sent,a.abrupt("return",i.filter(function(s){return"local"===s.location}).length);case 4:case"end":return a.stop()}},e,this)}))}},{key:"getDefaultHost",value:function(){return"127.0.0.1"}},{key:"getDefaultPort",value:function(){return 3080}},{key:"getDefaultLocalControllerPath",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getLocalControllerPath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"getDefaultUbridgePath",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getUbridgePath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var o,a,s,i=this;return Ln().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getLocations();case 2:return this.locations=u.sent,u.next=5,this.getDefaultLocalControllerPath();case 5:return o=u.sent,u.next=8,this.getDefaultUbridgePath();case 8:return a=u.sent,this.controllerForm.get("location").valueChanges.subscribe(function(d){var h=i.controllerForm.get("path"),g=i.controllerForm.get("ubridge_path");"local"===d?(h.setValue(o),h.setValidators([J.kI.required]),g.setValue(a),g.setValidators([J.kI.required])):(h.setValue(""),h.clearValidators(),g.setValue(""),g.clearValidators()),[h,g].forEach(function(C){C.updateValueAndValidity({onlySelf:!0})})}),u.next=12,this.getDefaultLocation();case 12:s=u.sent,this.controllerForm.get("location").setValue(s),this.controllerForm.get("host").setValue(this.getDefaultHost()),this.controllerForm.get("port").setValue(this.getDefaultPort());case 16:case"end":return u.stop()}},e,this)}))}},{key:"onAddClick",value:function(){var e=this;if(this.controllerForm.valid){var i=Object.assign({},this.controllerForm.value);this.controllerService.checkControllerVersion(i).subscribe(function(o){o.version.split(".")[0]>=3?(e.dialogRef.close(i),e.toasterService.success("Controller ".concat(i.name," added."))):(e.dialogRef.close(),e.toasterService.error("Controller version is not supported."))},function(o){e.toasterService.error("Cannot connect to the controller: "+o)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();bI.\u0275fac=function(r){return new(r||bI)(t.Y36(lr),t.Y36(sl),t.Y36(rr),t.Y36(Pn),t.Y36(go))},bI.\u0275cmp=t.Xpm({type:bI,selectors:[["app-add-controller-dialog"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Add controller"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),t._UZ(5,"input",3),t.YNc(6,gWe,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",5),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",6),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",7),t.YNc(13,vWe,2,2,"mat-option",8),t.qZA()()(),t.TgZ(14,"div",9)(15,"button",10),t.NdJ("click",function(){return e.onNoClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",11),t.NdJ("click",function(){return e.onAddClick()}),t._uU(18,"Add"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.controllerForm),t.xp6(4),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(7),t.Q6J("ngForOf",e.protocols))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,cl,ur,$r.gD,Wt.ey],encapsulation:2});var pv=function(){function n(r){var e=this;(0,U.Z)(this,n),this.electronService=r,this.controllerStatusChanged=new In.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,B.Z)(n,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){var o;return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o={controllerName:e.name,status:"starting",message:""},this.controllerStatusChanged.next(o),s.next=4,this.electronService.remote.require("./local-controller.js").startLocalController(e);case 4:return s.abrupt("return",s.sent);case 5:case"end":return s.stop()}},i,this)}))}},{key:"stop",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./local-controller.js").stopLocalController(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}},{key:"stopAll",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.electronService.remote.require("./local-controller.js").stopAllLocalControllers();case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},e,this)}))}},{key:"getRunningControllers",value:function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-controller.js").getRunningControllers():[]}},{key:"ngOnDestroy",value:function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)}}]),n}();pv.\u0275fac=function(r){return new(r||pv)(t.LFG(sl))},pv.\u0275prov=t.Yz7({token:pv,factory:pv.\u0275fac});var wW=m(5887);function yWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card",2)(1,"mat-card-content",3),t._uU(2," We've discovered GNS3 controller on "),t.TgZ(3,"b"),t._uU(4),t.qZA(),t._uU(5,", would you like to add to the list? "),t.qZA(),t.TgZ(6,"mat-card-actions",4)(7,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.ignore(a.discoveredController))}),t._uU(8,"NO"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.accept(a.discoveredController))}),t._uU(10,"YES"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(4),t.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function bWe(n,r){1&n&&t._UZ(0,"mat-divider")}var hT=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized&&this.discoverFirstController(),this.controllerService.serviceInitialized.subscribe(function(i){return yi(e,void 0,void 0,Ln().mark(function o(){return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.discoverFirstController();case 1:case"end":return s.stop()}},o,this)}))})}},{key:"discoverFirstController",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var i;return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.discoverControllers();case 2:return i=s.sent,s.next=5,this.controllerService.findAll();case 5:s.sent.forEach(function(l){i=i.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),i.length>0&&(this.discoveredController=i.shift());case 8:case"end":return s.stop()}},e,this)}))}},{key:"discoverControllers",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){var o,i=this;return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o=[],this.defaultControllers.forEach(function(l){return yi(i,void 0,void 0,Ln().mark(function u(){var d;return Ln().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return(d=new mB).host=l.host,d.port=l.port,C.next=5,this.versionService.get(d).toPromise().catch(function(Z){return null});case 5:C.sent&&o.push(d);case 7:case"end":return C.stop()}},u,this)}))}),s.abrupt("return",o);case 3:case"end":return s.stop()}},e,this)}))}},{key:"discoverFirstAvailableController",value:function(){var e=this;(0,N0.D)([(0,Zs.D)(this.controllerService.findAll()).pipe((0,$n.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Nn.Z)(i,2),a=o[0],s=o[1];a.forEach(function(l){s=s.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),s.length>0&&(e.discoveredController=s.shift())},function(i){})}},{key:"discovery",value:function(){var e=this,i=[];return this.defaultControllers.forEach(function(o){i.push(e.isControllerAvailable(o.host,o.port).catch(function(a){return wW.Observable.of(null)}))}),new wW.Observable(function(o){(0,N0.D)(i).subscribe(function(a){o.next(a.filter(function(s){return null!=s})),o.complete()})})}},{key:"isControllerAvailable",value:function(e,i){var o=new mB;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return wW.Observable.of(o)})}},{key:"ignore",value:function(e){this.discoveredController=null}},{key:"accept",value:function(e){var i=this;null==e.name&&(e.name=e.host),e.location="remote",e.protocol=location.protocol,this.controllerService.create(e).then(function(o){i.controllerDatabase.addController(o),i.discoveredController=null})}}]),n}();function CWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," ID "),t.qZA())}function wWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function kWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}hT.\u0275fac=function(r){return new(r||hT)(t.Y36(mm),t.Y36(rr),t.Y36(Df),t.Y36(fr))},hT.\u0275cmp=t.Xpm({type:hT,selectors:[["app-controller-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.YNc(0,yWe,11,2,"mat-card",0),t.YNc(1,bWe,1,0,"mat-divider",1)),2&r&&(t.Q6J("ngIf",e.discoveredController),t.xp6(1),t.Q6J("ngIf",e.discoveredController))},dependencies:[ge.O5,cn,si,xg,HD,pm.d]});var TWe=function(r){return["/controller",r,"login"]};function MWe(n,r){if(1&n&&(t.TgZ(0,"a",22),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(2,TWe,e.id)),t.xp6(1),t.Oqu(e.name)}}function SWe(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function xWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,MWe,2,4,"a",20),t.YNc(2,SWe,2,1,"span",21),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),t.xp6(1),t.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function EWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Location "),t.qZA())}function DWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.location," ")}}function AWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Host "),t.qZA())}function OWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.host," ")}}function IWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Port "),t.qZA())}function PWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.port," ")}}function RWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function LWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.openProjects(o))}),t.TgZ(1,"mat-icon",31),t._uU(2,"arrow_forward"),t.qZA()()}}function ZWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.startController(o))}),t.TgZ(1,"mat-icon",33),t._uU(2,"play_arrow"),t.qZA()()}}function NWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.stopController(o))}),t.TgZ(1,"mat-icon",35),t._uU(2,"stop"),t.qZA()()}}function BWe(n,r){1&n&&t._UZ(0,"mat-spinner",36),2&n&&t.Q6J("diameter",24)}function FWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",23),t.YNc(1,LWe,3,0,"button",24),t.YNc(2,ZWe,3,0,"button",25),t.YNc(3,NWe,3,0,"button",26),t.YNc(4,BWe,1,1,"mat-spinner",27),t.TgZ(5,"button",28),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.deleteController(l))}),t.TgZ(6,"mat-icon",29),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function UWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function HWe(n,r){1&n&&t._UZ(0,"mat-row")}function jWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startLocalController())}),t._uU(1," Start local controller "),t.qZA()}}var CI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,U.Z)(this,n),this.dialog=r,this.controllerService=e,this.controllerDatabase=i,this.controllerManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=l,this.bottomSheet=u,this.route=d,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,B.Z)(n,[{key:"getControllers",value:function(){var e=this,i=this.controllerManagement.getRunningControllers();this.controllerService.findAll().then(function(o){o.forEach(function(a){i.findIndex(function(l){return a.name===l})>=0&&(a.status="running")}),o.forEach(function(a){e.controllerService.checkControllerVersion(a).subscribe(function(s){s.version.split(".")[0]>=3&&(a.protocol||(a.protocol=location.protocol),e.controllerDatabase.find(a.name)||e.controllerDatabase.addController(a))},function(s){})})})}},{key:"ngOnInit",value:function(){var e=this;this.isElectronApp=this.electronService.isElectronApp,this.controllerService&&this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService&&this.controllerService.isServiceInitialized&&this.controllerService.serviceInitialized.subscribe(function(i){return yi(e,void 0,void 0,Ln().mark(function o(){return Ln().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.getControllers();case 1:case"end":return s.stop()}},o,this)}))}),this.dataSource=new GWe(this.controllerDatabase),this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){var o=e.controllerDatabase.find(i.controllerName);!o||("starting"===i.status&&(o.status="starting"),"stopped"===i.status&&(o.status="stopped"),"errored"===i.status&&(o.status="stopped"),"started"===i.status&&(o.status="running"),e.controllerDatabase.update(o),e.changeDetector.detectChanges())})}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe()}},{key:"startLocalController",value:function(){var e=this.controllerDatabase.data.find(function(i){return"bundled"===i.location||"local"});this.startController(e)}},{key:"openProjects",value:function(e){this.router.navigate(["/controller",e.id,"projects"])}},{key:"createModal",value:function(){var e=this;this.dialog.open(bI,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.controllerService.create(o).then(function(a){e.controllerDatabase.addController(a)})})}},{key:"getControllerStatus",value:function(e){if("local"===e.location)return void 0===e.status?"stopped":e.status}},{key:"deleteController",value:function(e){var i=this;this.bottomSheet.open(fd);var o=this.bottomSheet._openedBottomSheetRef;o.instance.message="Do you want to delete the controller?";o.afterDismissed().subscribe(function(s){s&&i.controllerService.delete(e).then(function(){i.controllerDatabase.remove(e)})})}},{key:"startController",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.start(e);case 2:case"end":return a.stop()}},i,this)}))}},{key:"stopController",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.stop(e);case 2:case"end":return a.stop()}},i,this)}))}}]),n}();CI.\u0275fac=function(r){return new(r||CI)(t.Y36(Hr),t.Y36(rr),t.Y36(Df),t.Y36(pv),t.Y36(t.sBO),t.Y36(sl),t.Y36(TG),t.Y36(_p),t.Y36(fr),t.Y36(dr))},CI.\u0275cmp=t.Xpm({type:CI,selectors:[["app-controller-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove controller"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start controller"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop controller"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Controllers"),t.qZA()(),t.TgZ(4,"div",2),t._UZ(5,"app-controller-discovery"),t.TgZ(6,"div",3)(7,"mat-table",4,5),t.ynx(9,6),t.YNc(10,CWe,2,0,"mat-header-cell",7),t.YNc(11,wWe,2,1,"mat-cell",8),t.BQk(),t.ynx(12,9),t.YNc(13,kWe,2,0,"mat-header-cell",7),t.YNc(14,xWe,3,2,"mat-cell",8),t.BQk(),t.ynx(15,10),t.YNc(16,EWe,2,0,"mat-header-cell",7),t.YNc(17,DWe,2,1,"mat-cell",8),t.BQk(),t.ynx(18,11),t.YNc(19,AWe,2,0,"mat-header-cell",7),t.YNc(20,OWe,2,1,"mat-cell",8),t.BQk(),t.ynx(21,12),t.YNc(22,IWe,2,0,"mat-header-cell",7),t.YNc(23,PWe,2,1,"mat-cell",8),t.BQk(),t.ynx(24,13),t.YNc(25,RWe,2,0,"mat-header-cell",7),t.YNc(26,FWe,8,4,"mat-cell",14),t.BQk(),t.YNc(27,UWe,1,0,"mat-header-row",15),t.YNc(28,HWe,1,0,"mat-row",16),t.qZA()(),t.TgZ(29,"div",17),t.YNc(30,jWe,2,0,"button",18),t.TgZ(31,"button",19),t.NdJ("click",function(){return e.createModal()}),t._uU(32,"Add Controller"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("dataSource",e.dataSource),t.xp6(20),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isElectronApp))},dependencies:[ge.O5,Us,cn,Dn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ai,hT],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}table[_ngcontent-%COMP%]{width:100%}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}"]});var GWe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this;return(0,ji.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2),Ub=function(){function n(r){(0,U.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"get",value:function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}}}]),n}();Ub.\u0275fac=function(r){return new(r||Ub)(t.LFG(sl))},Ub.\u0275prov=t.Yz7({token:Ub,factory:Ub.\u0275fac});var fv=function(){function n(r,e){(0,U.Z)(this,n),this.defaultConsoleService=r,this.settingsService=e}return(0,B.Z)(n,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),n}();fv.\u0275fac=function(r){return new(r||fv)(t.LFG(Ub),t.LFG(jm.g))},fv.\u0275prov=t.Yz7({token:fv,factory:fv.\u0275fac});var wI=function(){function n(r,e,i){(0,U.Z)(this,n),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new J.nJ({command:new J.p4("")})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.consoleForm.get("command").setValue(this.consoleService.command)}},{key:"goBack",value:function(){this.router.navigate(["/settings"])}},{key:"save",value:function(){var e=this.consoleForm.value;this.consoleService.command=e.command,this.toasterService.success("Console command has been updated."),this.goBack()}}]),n}();wI.\u0275fac=function(r){return new(r||wI)(t.Y36(dr),t.Y36(fv),t.Y36(Pn))},wI.\u0275cmp=t.Xpm({type:wI,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Console settings"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),t._UZ(9,"textarea",7),t.qZA(),t.TgZ(10,"div",8),t._uU(11," The following variables are replaced by GNS3:"),t._UZ(12,"br"),t._uU(13," %h: console IP or hostname"),t._UZ(14,"br"),t._uU(15," %p: console port"),t._UZ(16,"br"),t._uU(17," %s: path of the serial connection"),t._UZ(18,"br"),t._uU(19," %d: title of the console"),t._UZ(20,"br"),t._uU(21," %i: Project UUID"),t._UZ(22,"br"),t._uU(23," %c: controller URL (http://user:password@controller:port) "),t.qZA()()(),t.TgZ(24,"div",9)(25,"button",10),t.NdJ("click",function(){return e.goBack()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",11),t.NdJ("click",function(){return e.save()}),t._uU(28,"Save"),t.qZA(),t._UZ(29,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("formGroup",e.consoleForm))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,si,Kn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var Hb=function(){function n(r){(0,U.Z)(this,n),this.httpClient=r}return(0,B.Z)(n,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),n}();Hb.\u0275fac=function(r){return new(r||Hb)(t.LFG(sc.eN))},Hb.\u0275prov=t.Yz7({token:Hb,factory:Hb.\u0275fac});var kI=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.settings=this.settingsService.getAll(),this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openReadme=this.mapSettingsService.openReadme,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget}},{key:"save",value:function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenReadme(this.openReadme),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)}},{key:"setDarkMode",value:function(e){this.themeService.setDarkMode(e)}},{key:"checkForUpdates",value:function(){window.open("https://gns3.com/software")}}]),n}();kI.\u0275fac=function(r){return new(r||kI)(t.Y36(jm.g),t.Y36(Pn),t.Y36(fv),t.Y36(Cc.f),t.Y36(dl),t.Y36(Hb))},kI.\u0275cmp=t.Xpm({type:kI,selectors:[["app-settings"]],decls:51,vars:8,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Settings"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Local settings "),t.qZA(),t.TgZ(11,"mat-panel-description"),t._uU(12," Customize your local settings "),t.qZA()(),t.TgZ(13,"div")(14,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),t._uU(15,"Send anonymous crash reports"),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),t._uU(18,"Integrate link labels to links"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openReadme=o}),t._uU(21,"Automatically open project README files"),t.qZA(),t._UZ(22,"br"),t.TgZ(23,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),t._uU(24,"Send anonymous usage statistics"),t.qZA(),t._UZ(25,"br"),t.TgZ(26,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),t._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),t.qZA()()(),t.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Theme settings "),t.qZA(),t.TgZ(32,"mat-panel-description"),t._uU(33," Customize theme settings "),t.qZA()(),t.TgZ(34,"div",6)(35,"button",7),t.NdJ("click",function(){return e.setDarkMode(!1)}),t._uU(36,"Switch to light theme"),t.qZA(),t.TgZ(37,"button",7),t.NdJ("click",function(){return e.setDarkMode(!0)}),t._uU(38,"Switch to dark theme"),t.qZA()()(),t.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Updates "),t.qZA(),t.TgZ(43,"mat-panel-description"),t._uU(44," Check for updates "),t.qZA()(),t.TgZ(45,"div",6)(46,"button",8),t.NdJ("click",function(){return e.checkForUpdates()}),t._uU(47,"Check for updates"),t.qZA()()()()(),t.TgZ(48,"div",9)(49,"button",10),t.NdJ("click",function(){return e.save()}),t._uU(50,"Save settings"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("expanded",!0),t.xp6(7),t.Q6J("ngModel",e.settings.crash_reports),t.xp6(3),t.Q6J("ngModel",e.integrateLinksLabelsToLinks),t.xp6(3),t.Q6J("ngModel",e.openReadme),t.xp6(3),t.Q6J("ngModel",e.settings.anonymous_statistics),t.xp6(3),t.Q6J("ngModel",e.openConsolesInWidget),t.xp6(2),t.Q6J("expanded",!1),t.xp6(11),t.Q6J("expanded",!1))},dependencies:[J.JJ,J.On,cn,ei,Dl,El,cu,Lu,VD],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var TI=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e){var i=new Date(1e3*+e),o=i.getHours(),a="0"+i.getMinutes(),s="0"+i.getSeconds(),l=i.getFullYear(),u=i.getMonth()+1,d=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+d+"/"+u+"/"+l}}]),n}();TI.\u0275fac=function(r){return new(r||TI)},TI.\u0275pipe=t.Yjl({name:"datefilter",type:TI,pure:!0});var MI=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function zWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Name "),t.qZA())}function WWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function VWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Date "),t.qZA())}function YWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.ALo(2,"datefilter"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function KWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function qWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.restoreSnapshot(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"restore"),t.qZA()(),t.TgZ(4,"button",22),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteSnapshot(a))}),t.TgZ(5,"mat-icon",23),t._uU(6,"delete"),t.qZA()()()}}function JWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function QWe(n,r){1&n&&t._UZ(0,"mat-row")}MI.\u0275fac=function(r){return new(r||MI)},MI.\u0275pipe=t.Yjl({name:"namefilter",type:MI,pure:!0});var SI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.controller=this.route.snapshot.data.controller,this.getSnapshots()}},{key:"getSnapshots",value:function(){var e=this;this.snapshotService.list(this.controller,this.projectId).subscribe(function(i){e.snapshots=i})}},{key:"restoreSnapshot",value:function(e){var i=this,o=this.snapshotService.restore(this.controller,this.projectId,e.snapshot_id.toString()),a=this.progressDialogService.open(),s=o.subscribe(function(l){i.toaster.success("Snapshot ".concat(e.name," has been restored.")),a.close()});a.afterClosed().subscribe(function(l){l===Fb.CANCELLED&&s.unsubscribe()})}},{key:"deleteSnapshot",value:function(e){var i=this;this.snapshotService.delete(this.controller,this.projectId,e.snapshot_id.toString()).subscribe(function(){i.getSnapshots(),i.toaster.success("Snapshot ".concat(e.name," has been deleted."))})}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.snapshots.slice();this.snapshots=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?function $We(n,r,e){return n=n.toLowerCase(),r=r.toLowerCase(),(n<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function XWe(n,r,e){return(n<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),n}();SI.\u0275fac=function(r){return new(r||SI)(t.Y36(fr),t.Y36(Vm),t.Y36(cv),t.Y36(Pn))},SI.\u0275cmp=t.Xpm({type:SI,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Snapshots"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(9,"mat-table",7,8),t.NdJ("matSortChange",function(o){return e.sortData(o)}),t.ALo(11,"namefilter"),t.ynx(12,9),t.YNc(13,zWe,2,0,"mat-header-cell",10),t.YNc(14,WWe,2,1,"mat-cell",11),t.BQk(),t.ynx(15,12),t.YNc(16,VWe,2,0,"mat-header-cell",10),t.YNc(17,YWe,3,3,"mat-cell",11),t.BQk(),t.ynx(18,13),t.YNc(19,KWe,2,0,"mat-header-cell",14),t.YNc(20,qWe,7,0,"mat-cell",15),t.BQk(),t.YNc(21,JWe,1,0,"mat-header-row",16),t.YNc(22,QWe,1,0,"mat-row",17),t.qZA()()()()),2&r&&(t.xp6(8),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("dataSource",t.xi3(11,4,e.snapshots,e.searchText)),t.xp6(12),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,cn,si,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,zu,vp,ai,TI,MI],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var Qse=new t.OlP("MatChipRemove"),Xse=new t.OlP("MatChipAvatar"),$se=new t.OlP("MatChipTrailingIcon"),tVe=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r}),nVe=(0,Wt.sb)((0,Wt.pj)((0,Wt.Kr)(tVe),"primary"),-1),mT=(0,B.Z)(function n(){(0,U.Z)(this,n)});mT.\u0275fac=function(r){return new(r||mT)},mT.\u0275dir=t.lG2({type:mT,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:Xse,useExisting:mT}])]});var _T=(0,B.Z)(function n(){(0,U.Z)(this,n)});_T.\u0275fac=function(r){return new(r||_T)},_T.\u0275dir=t.lG2({type:_T,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:$se,useExisting:_T}])]});var hv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,U.Z)(this,e),(g=r.call(this,i))._ngZone=o,g._changeDetectorRef=l,g._hasFocus=!1,g.chipListSelectable=!0,g._chipListMultiple=!1,g._chipListDisabled=!1,g.role="option",g._selected=!1,g._selectable=!0,g._disabled=!1,g._removable=!0,g._onFocus=new In.xQ,g._onBlur=new In.xQ,g.selectionChange=new t.vpe,g.destroyed=new t.vpe,g.removed=new t.vpe,g._addHostClassName(),g._chipRippleTarget=u.createElement("div"),g._chipRippleTarget.classList.add("mat-chip-ripple"),g._elementRef.nativeElement.appendChild(g._chipRippleTarget),g._chipRipple=new Wt.IR((0,_D.Z)(g),o,g._chipRippleTarget,a),g._chipRipple.setupTriggerEvents(i),g.rippleConfig=s||{},g._animationsDisabled="NoopAnimations"===d,g.tabIndex=null!=h&&parseInt(h)||-1,g}return(0,B.Z)(e,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(o){var a=(0,Mn.Ig)(o);a!==this._selected&&(this._selected=a,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(o){this._value=o}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(o){this._selectable=(0,Mn.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,Mn.Ig)(o)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var o="mat-basic-chip",a=this._elementRef.nativeElement;a.hasAttribute(o)||a.tagName.toLowerCase()===o?a.classList.add(o):a.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(o),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(o){this.disabled&&o.preventDefault()}},{key:"_handleKeydown",value:function(o){if(!this.disabled)switch(o.keyCode){case xr.yY:case xr.ZH:this.remove(),o.preventDefault();break;case xr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,xi.q)(1)).subscribe(function(){o._ngZone.run(function(){o._hasFocus=!1,o._onBlur.next({chip:o})})})}},{key:"_dispatchSelectionChange",value:function(){var o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:o,selected:this._selected})}}]),e}(nVe);hv.\u0275fac=function(r){return new(r||hv)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ii.t4),t.Y36(Wt.Y2,8),t.Y36(t.sBO),t.Y36(ge.K0),t.Y36(t.QbO,8),t.$8M("tabindex"))},hv.\u0275dir=t.lG2({type:hv,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Xse,5),t.Suo(i,$se,5),t.Suo(i,Qse,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.avatar=o.first),t.iGM(o=t.CRH())&&(e.trailingIcon=o.first),t.iGM(o=t.CRH())&&(e.removeIcon=o.first))},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("keydown",function(o){return e._handleKeydown(o)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&r&&(t.uIk("tabindex",e.disabled?null:e.tabIndex)("role",e.role)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),t.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[t.qOj]});var gT=function(){function n(r,e){(0,U.Z)(this,n),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,B.Z)(n,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),n}();gT.\u0275fac=function(r){return new(r||gT)(t.Y36(hv),t.Y36(t.SBq))},gT.\u0275dir=t.lG2({type:gT,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})},features:[t._Bn([{provide:Qse,useExisting:gT}])]});var ele=new t.OlP("mat-chips-default-options"),rVe=0,xI=function(){function n(r,e){(0,U.Z)(this,n),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new t.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(rVe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,B.Z)(n,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=(0,Mn.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,Mn.Ig)(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(e.keyCode===xr.Mf&&!(0,xr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===xr.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&e.keyCode===xr.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!(0,xr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),n}();xI.\u0275fac=function(r){return new(r||xI)(t.Y36(t.SBq),t.Y36(ele))},xI.\u0275dir=t.lG2({type:xI,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)})("keyup",function(o){return e._keyup(o)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&r&&(t.Ikx("id",e.id),t.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[t.TTD]});var iVe=(0,Wt.FD)(function(){return(0,B.Z)(function n(r,e,i,o){(0,U.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new In.xQ})}()),oVe=0,aVe=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.source=r,this.value=e}),jb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.Z)(this,e),(h=r.call(this,u,s,l,d))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new In.xQ,h._uid="mat-chip-list-".concat(oVe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(g,C){return g===C},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new t.vpe,h.valueChange=new t.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,_D.Z)(h)),h}return(0,B.Z)(e,[{key:"selected",get:function(){var o,a;return this.multiple?(null===(o=this._selectionModel)||void 0===o?void 0:o.selected)||[]:null===(a=this._selectionModel)||void 0===a?void 0:a.selected[0]}},{key:"role",get:function(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"},set:function(o){this._explicitRole=o}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,Mn.Ig)(o),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(o){this._compareWith=o,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(o){this.writeValue(o),this._value=o}},{key:"id",get:function(){return this._chipInput?this._chipInput.id: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,Mn.Ig)(o),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(o){this._placeholder=o,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){this._selectable=(0,Mn.Ig)(o),this._syncChipsState()}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return ji.T.apply(void 0,(0,fn.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ji.T.apply(void 0,(0,fn.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return ji.T.apply(void 0,(0,fn.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ji.T.apply(void 0,(0,fn.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Br.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,eo.O)(null),(0,Br.R)(this._destroyed)).subscribe(function(){(o.disabled||!o.selectable)&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Ci.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(o){this._chipInput=o,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",o.id)}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"writeValue",value:function(o){this.chips&&this._setSelectionByValue(o,!1)}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this.stateChanges.next()}},{key:"onContainerClick",value:function(o){this._originatesFromChip(o)||this.focus()}},{key:"focus",value:function(o){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(o),this.stateChanges.next()))}},{key:"_focusInput",value:function(o){this._chipInput&&this._chipInput.focus(o)}},{key:"_keydown",value:function(o){var a=o.target;a&&a.classList.contains("mat-chip")&&(this._keyManager.onKeydown(o),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var o=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(o)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(o){return o>=0&&o<this.chips.length}},{key:"_setSelectionByValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(u){return u.deselect()}),Array.isArray(o))o.forEach(function(u){return a._selectValue(u,s)}),this._sortValues();else{var l=this._selectValue(o,s);l&&s&&this._keyManager.setActiveItem(l)}}},{key:"_selectValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.chips.find(function(u){return null!=u.value&&a._compareWith(u.value,o)});return l&&(s?l.selectViaInteraction():l.select(),this._selectionModel.select(l)),l}},{key:"_initializeSelection",value:function(){var o=this;Promise.resolve().then(function(){(o.ngControl||o._value)&&(o._setSelectionByValue(o.ngControl?o.ngControl.value:o._value,!1),o.stateChanges.next())})}},{key:"_clearSelection",value:function(o){this._selectionModel.clear(),this.chips.forEach(function(a){a!==o&&a.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var o=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(a){a.selected&&o._selectionModel.select(a)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(o){var a=null;a=Array.isArray(this.selected)?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:o,this._value=a,this.change.emit(new aVe(this,a)),this.valueChange.emit(a),this._onChange(a),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var o=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){o.focused||o._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var o=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){o._tabIndex=o._userTabIndex||0,o._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var o=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(a){a.source.selected?o._selectionModel.select(a.source):o._selectionModel.deselect(a.source),o.multiple||o.chips.forEach(function(s){!o._selectionModel.isSelected(s)&&s.selected&&s.deselect()}),a.isUserInput&&o._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var o=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(a){var s=o.chips.toArray().indexOf(a.chip);o._isValidIndex(s)&&o._keyManager.updateActiveItem(s),o.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){o._blur(),o.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var o=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(a){var s=a.chip,l=o.chips.toArray().indexOf(a.chip);o._isValidIndex(l)&&s._hasFocus&&(o._lastDestroyedChipIndex=l)})}},{key:"_originatesFromChip",value:function(o){for(var a=o.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-chip"))return!0;a=a.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(o){return o._hasFocus})}},{key:"_syncChipsState",value:function(){var o=this;this.chips&&this.chips.forEach(function(a){a._chipListDisabled=o._disabled,a._chipListMultiple=o.multiple,a.chipListSelectable=o._selectable})}}]),e}(iVe);jb.\u0275fac=function(r){return new(r||jb)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Ls.Is,8),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Wt.rD),t.Y36(J.a5,10))},jb.\u0275cmp=t.Xpm({type:jb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,hv,5),2&r)&&(t.iGM(o=t.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.Ikx("id",e._uid),t.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),t.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[t._Bn([{provide:kn.Eo,useExisting:jb}]),t.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0});var vT=(0,B.Z)(function n(){(0,U.Z)(this,n)});vT.\u0275fac=function(r){return new(r||vT)},vT.\u0275mod=t.oAB({type:vT}),vT.\u0275inj=t.cJS({providers:[Wt.rD,{provide:ele,useValue:{separatorKeyCodes:[xr.K5]}}],imports:[Wt.BQ]});var sVe=function(){return["Load average","(last 1 minute)"]},lVe=function(){return["Load average","(last 5 minutes)"]},uVe=function(){return["Load average","(last 15 minutes)"]},EI=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"formatBytes",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var o=1024,a=i<0?0:i,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(e)/Math.log(o));return parseFloat((e/Math.pow(o,l)).toFixed(a))+" "+s[l]}}]),n}();function cVe(n,r){1&n&&(t.TgZ(0,"div"),t._uU(1,"Statistics not loaded"),t.qZA())}function dVe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t._UZ(2,"app-status-chart",2),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.compute_name," "),t.xp6(1),t.Q6J("computeStatistics",e)}}EI.\u0275fac=function(r){return new(r||EI)},EI.\u0275cmp=t.Xpm({type:EI,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(r,e){1&r&&(t.TgZ(0,"mat-card")(1,"div",0),t._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),t.qZA(),t.TgZ(6,"div",0),t._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),t.qZA(),t.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),t._uU(13),t.qZA()(),t.TgZ(14,"mat-chip-list")(15,"mat-chip",3),t._uU(16),t.qZA()(),t.TgZ(17,"mat-chip-list")(18,"mat-chip",3),t._uU(19),t.qZA()()(),t.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),t._uU(23),t.qZA()(),t.TgZ(24,"mat-chip-list")(25,"mat-chip",3),t._uU(26),t.qZA()(),t.TgZ(27,"mat-chip-list")(28,"mat-chip",3),t._uU(29),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(111,sVe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(112,lVe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(113,uVe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(4),t.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),t.xp6(3),t.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),t.xp6(3),t.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),t.xp6(4),t.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),t.xp6(3),t.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),t.xp6(3),t.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},dependencies:[si,jb,hv,mD],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:10px}"]});var DI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.getStatistics()}},{key:"getStatistics",value:function(){var e=this;this.controllerService.get(Number(this.controllerId)).then(function(i){e.computeService.getStatistics(i).subscribe(function(o){e.computeStatistics=o,setTimeout(function(){e.getStatistics()},2e4)})})}}]),n}();DI.\u0275fac=function(r){return new(r||DI)(t.Y36(fr),t.Y36(ap.X),t.Y36(rr),t.Y36(Pn))},DI.\u0275cmp=t.Xpm({type:DI,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(t.YNc(0,cVe,2,0,"div",0),t.YNc(1,dVe,3,2,"div",1)),2&r&&(t.Q6J("ngIf",!e.computeStatistics.length),t.xp6(1),t.Q6J("ngForOf",e.computeStatistics))},dependencies:[ge.sg,ge.O5,EI]});var AI=function(){function n(r){(0,U.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();AI.\u0275fac=function(r){return new(r||AI)(t.Y36(fr))},AI.\u0275cmp=t.Xpm({type:AI,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"System status"),t.qZA()()(),t.TgZ(5,"div",4),t._UZ(6,"app-status-info"),t.qZA()())},dependencies:[DI]});var pVe=["terminal"],yT=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new xa.w,this.term=new Kse.Terminal,this.fitAddon=new Jse.FitAddon}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized?this.getData():this.subscriptions.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()}))}},{key:"getData",value:function(){var e=this;this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(i){e.fitAddon.fit()}),this.controllerService.get(+this.controllerId).then(function(i){e.controller=i,e.nodeService.getNodeById(e.controller,e.projectId,e.nodeId).subscribe(function(o){e.node=o,e.title.setTitle(e.node.name),e.openTerminal()})})}},{key:"openTerminal",value:function(){var e=this;setTimeout(function(){e.term.open(e.terminal.nativeElement);var i=new WebSocket(e.consoleService.getUrl(e.controller,e.node));i.onerror=function(l){e.term.write("Connection lost\r\n")},i.onclose=function(l){e.term.write("Connection closed\r\n")};var o=new qse.AttachAddon(i);e.term.loadAddon(o),e.term.setOption("cursorBlink",!0),e.term.loadAddon(e.fitAddon),e.fitAddon.activate(e.term),e.fitAddon.fit(),e.term.focus(),e.term.attachCustomKeyEventHandler(function(l){return!(("KeyC"===l.code||"KeyV"===l.code)&&l.ctrlKey&&l.shiftKey)});var a=Math.round(window.innerWidth/e.consoleService.getLineWidth()),s=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(a,s)},0)}}]),n}();yT.\u0275fac=function(r){return new(r||yT)(t.Y36(fu),t.Y36(rr),t.Y36(fr),t.Y36(jr),t.Y36(Ir))},yT.\u0275cmp=t.Xpm({type:yT,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(pVe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2});var Gb=function(){function n(r,e){(0,U.Z)(this,n),this.consoleService=r,this.bottomSheet=e}return(0,B.Z)(n,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(fd);var e=this.bottomSheet._openedBottomSheetRef;return e.instance.message="Exiting the project will close open consoles, do you want to continue?",e.afterDismissed()}return!0}}]),n}();Gb.\u0275fac=function(r){return new(r||Gb)(t.LFG(fu),t.LFG(_p))},Gb.\u0275prov=t.Yz7({token:Gb,factory:Gb.\u0275fac});var Fr=function(){function n(r,e,i){(0,U.Z)(this,n),this.controllerService=r,this.loginService=e,this.router=i}return(0,B.Z)(n,[{key:"canActivate",value:function(e,i){return yi(this,void 0,void 0,Ln().mark(function o(){var s,l,a=this;return Ln().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,d.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=d.sent,d.prev=5,d.next=8,this.loginService.getLoggedUser(l);case 8:d.next=12;break;case 10:d.prev=10,d.t0=d.catch(5);case 12:return d.abrupt("return",this.controllerService.get(parseInt(s,10)).then(function(h){if(h.authToken&&!h.tokenExpired)return!0;a.router.navigate(["/controller",h.id,"login"],{queryParams:{returnUrl:i.url}})}));case 13:case"end":return d.stop()}},o,this,[[5,10]])}))}}]),n}();Fr.\u0275fac=function(r){return new(r||Fr)(t.LFG(rr),t.LFG(hm),t.LFG(dr))},Fr.\u0275prov=t.Yz7({token:Fr,factory:Fr.\u0275fac});var fVe=["*",[["mat-toolbar-row"]]],mVe=(0,Wt.pj)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}()),OI=(0,B.Z)(function n(){(0,U.Z)(this,n)});OI.\u0275fac=function(r){return new(r||OI)},OI.\u0275dir=t.lG2({type:OI,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var II=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return o._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){this._toolbarRows.length}}]),e}(mVe);II.\u0275fac=function(r){return new(r||II)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(ge.K0))},II.\u0275cmp=t.Xpm({type:II,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,OI,5),2&r)&&(t.iGM(o=t.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(fVe),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0});var bT=(0,B.Z)(function n(){(0,U.Z)(this,n)});function _Ve(n,r){1&n&&(t.TgZ(0,"button",16),t._UZ(1,"mat-icon",17),t.qZA())}function gVe(n,r){if(1&n&&(t.TgZ(0,"button",18),t._UZ(1,"mat-icon",17),t.qZA()),2&n){t.oxw();var e=t.MAs(45);t.Q6J("matMenuTriggerFor",e)}}function vVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.listProjects())}),t._uU(1," Projects "),t.qZA()}}function yVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.backToProject())}),t._uU(1," Back to project "),t.qZA()}}function bVe(n,r){if(1&n&&(t.TgZ(0,"button",20)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();var e=t.MAs(8);t.Q6J("matMenuTriggerFor",e)}}bT.\u0275fac=function(r){return new(r||bT)},bT.\u0275mod=t.oAB({type:bT}),bT.\u0275inj=t.cJS({imports:[Wt.BQ,Wt.BQ]});var CVe=function(r){return["controller",r,"systemstatus"]},wVe=function(r){return["controller",r,"settings"]},kVe=function(r){return["controller",r,"management","users"]},TVe=function(r){return["controller",r,"help"]},MVe=function(r){return["/controller",r,"loggeduser"]},SVe=function(){return["/controllers"]},xVe=function(r){return["/controller",r,"projects"]},EVe=function(r){return["controller",r,"preferences"]},DVe=function(r){return["controller",r,"image-manager"]};function AVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-toolbar",3),t.YNc(1,_Ve,2,0,"button",4),t.YNc(2,gVe,2,1,"button",5),t.YNc(3,vVe,2,0,"button",6),t.YNc(4,yVe,2,0,"button",6),t._UZ(5,"span",7),t.YNc(6,bVe,3,1,"button",8),t.TgZ(7,"mat-menu",null,9)(9,"button",10)(10,"mat-icon"),t._uU(11,"info"),t.qZA(),t.TgZ(12,"span"),t._uU(13,"System status"),t.qZA()(),t.TgZ(14,"button",10)(15,"mat-icon"),t._uU(16,"settings"),t.qZA(),t.TgZ(17,"span"),t._uU(18,"Settings"),t.qZA()(),t.TgZ(19,"button",10)(20,"mat-icon"),t._uU(21,"groups"),t.qZA(),t.TgZ(22,"span"),t._uU(23,"Management"),t.qZA()(),t.TgZ(24,"button",10)(25,"mat-icon"),t._uU(26,"help"),t.qZA(),t.TgZ(27,"span"),t._uU(28,"Help"),t.qZA()(),t.TgZ(29,"button",10)(30,"mat-icon"),t._uU(31,"person"),t.qZA(),t.TgZ(32,"span"),t._uU(33,"User info"),t.qZA()(),t.TgZ(34,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goToDocumentation())}),t.TgZ(35,"mat-icon"),t._uU(36,"person"),t.qZA(),t.TgZ(37,"span"),t._uU(38,"API documentation"),t.qZA()(),t.TgZ(39,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.logout())}),t.TgZ(40,"mat-icon"),t._uU(41,"highlight_off"),t.qZA(),t.TgZ(42,"span"),t._uU(43,"Logout"),t.qZA()()(),t.TgZ(44,"mat-menu",12,13)(46,"button",14)(47,"mat-icon"),t._uU(48,"developer_board"),t.qZA(),t.TgZ(49,"span"),t._uU(50,"Controllers"),t.qZA()(),t.TgZ(51,"button",14)(52,"mat-icon"),t._uU(53,"work"),t.qZA(),t.TgZ(54,"span"),t._uU(55,"Projects"),t.qZA()(),t.TgZ(56,"button",10)(57,"mat-icon"),t._uU(58,"settings_applications"),t.qZA(),t.TgZ(59,"span"),t._uU(60,"Template preferences"),t.qZA()(),t.TgZ(61,"button",10)(62,"mat-icon"),t._uU(63,"collections"),t.qZA(),t.TgZ(64,"span"),t._uU(65,"Image manager"),t.qZA()(),t.TgZ(66,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addNewTemplate())}),t.TgZ(67,"mat-icon"),t._uU(68,"control_point"),t.qZA(),t.TgZ(69,"span"),t._uU(70,"New template"),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"==i.router.url),t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(1),t.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.controllerIdProjectList),t.xp6(1),t.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedcontrollerId&&!i.isLoginPage),t.xp6(2),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(3),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(24,CVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(26,wVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(28,kVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(30,TVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(32,MVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(34,SVe)),t.xp6(5),t.Q6J("routerLink",t.VKq(35,xVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(37,EVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(39,DVe,i.controllerId))}}var PI=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,U.Z)(this,n),this.electronService=r,this.recentlyOpenedProjectService=e,this.controllerManagement=i,this.toasterService=o,this.progressService=a,this.dialog=s,this.router=l,this.route=u,this.controllerService=d,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Yse,this.isLoginPage=!1,this.currentYear=(new Date).getFullYear(),this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new xa.w,this.router.events.subscribe(function(C){C instanceof op&&(g.controllerId=g.route.children[0].snapshot.paramMap.get("controller_id"),g.getData())})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof op&&e.checkIfUserIsLoginPage()}),this.recentlyOpenedcontrollerId=this.recentlyOpenedProjectService.getcontrollerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.controllerIdProjectList=this.recentlyOpenedProjectService.getcontrollerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){"errored"===i.status&&(console.error(i.message),e.toasterService.error(i.message)),"stderr"===i.status&&(console.error(i.message),e.toasterService.error(i.message))}),this.shouldStopControllersOnClosing=this.electronService.isElectronApp}},{key:"goToDocumentation",value:function(){this.controllerService.get(+this.controllerId).then(function(e){window.open("".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/docs"))})}},{key:"checkIfUserIsLoginPage",value:function(){this.router.url.includes("login")?this.isLoginPage=!0:this.isLoginPage=!1}},{key:"logout",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){i.authToken=null,e.controllerService.update(i).then(function(o){return e.router.navigate(["/controller",i.id,"login"])})})}},{key:"listProjects",value:function(){var e=this;this.router.navigate(["/controller",this.controllerIdProjectList,"projects"]).catch(function(i){return e.toasterService.error("Cannot list projects")})}},{key:"backToProject",value:function(){var e=this;this.router.navigate(["/controller",this.recentlyOpenedcontrollerId,"project",this.recentlyOpenedProjectId]).catch(function(i){return e.toasterService.error("Cannot navigate to the last opened project")})}},{key:"onBeforeUnload",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){return Ln().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.shouldStopControllersOnClosing){a.next=2;break}return a.abrupt("return");case 2:return e.preventDefault(),e.returnValue=!1,this.progressService.activate(),a.next=7,this.controllerManagement.stopAll();case 7:return this.shouldStopControllersOnClosing=!1,this.progressService.deactivate(),window.close(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},i,this)}))}},{key:"getData",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){e.controller=i})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(aT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe(),this.routeSubscription.unsubscribe()}}]),n}();PI.\u0275fac=function(r){return new(r||PI)(t.Y36(sl),t.Y36(O5.p),t.Y36(pv),t.Y36(Pn),t.Y36(Hs),t.Y36(Hr),t.Y36(dr),t.Y36(fr),t.Y36(rr),t.Y36(zs.Y))},PI.\u0275cmp=t.Xpm({type:PI,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&t.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,t.Jf7)},decls:7,vars:3,consts:[["color","primary",4,"ngIf"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["color","primary"],["mat-icon-button","",4,"ngIf"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor",4,"ngIf"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"disabled","routerLink"],["mat-menu-item","",3,"disabled","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-icon-button",""],["svgIcon","gns3"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor"],["mat-button","",3,"click"],["mat-button","",3,"matMenuTriggerFor"]],template:function(r,e){1&r&&(t.TgZ(0,"header"),t.YNc(1,AVe,71,41,"mat-toolbar",0),t.qZA(),t.TgZ(2,"main",1),t._UZ(3,"router-outlet"),t.qZA(),t._UZ(4,"app-progress"),t.TgZ(5,"footer",2),t._uU(6),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf","/controllers"!=e.router.url),t.xp6(5),t.AsE("GNS3 Web-UI \xa92018-",e.currentYear," v",e.uiVersion,""))},dependencies:[ge.O5,cm,Wo,Va,Tr,_a,cn,II,Dn,ai,U0],styles:["html,body{height:100%}app-root,app-default-layout{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0%}.mat-dialog-content>*{width:100%}\n"],encapsulation:2});var _d=function(){function n(r){(0,U.Z)(this,n),this.controllerService=r}return(0,B.Z)(n,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),n}();_d.\u0275fac=function(r){return new(r||_d)(t.LFG(rr))},_d.\u0275prov=t.Yz7({token:_d,factory:_d.\u0275fac});var tle=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},nle=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function rle(n){n.get("password").value===n.get("confirmPassword").value||n.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var Bl=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/access/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/users/".concat(i))}},{key:"update",value:function(e,i,o){return o?this.httpController.put(e,"/access/users/me",i):this.httpController.put(e,"/access/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i,"/groups"))}}]),n}();Bl.\u0275fac=function(r){return new(r||Bl)(t.LFG(mo.zw))},Bl.\u0275prov=t.Yz7({token:Bl,factory:Bl.\u0275fac});var Sc=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/access/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/access/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),n}();Sc.\u0275fac=function(r){return new(r||Sc)(t.LFG(mo.zw))},Sc.\u0275prov=t.Yz7({token:Sc,factory:Sc.\u0275fac,providedIn:"root"});var OVe=["panel"];function IVe(n,r){if(1&n&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&n){var e=r.id,i=t.oxw();t.Q6J("id",i.id)("ngClass",i._classList),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var RVe=0,LVe=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.source=r,this.option=e}),ZVe=(0,Wt.Kr)(function(){return(0,B.Z)(function n(){(0,U.Z)(this,n)})}()),ile=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function NVe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});var RI=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=xa.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new t.vpe,l.opened=new t.vpe,l.closed=new t.vpe,l.optionActivated=new t.vpe,l._classList={},l.id="mat-autocomplete-".concat(RVe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l._autoSelectActiveOption=!!a.autoSelectActiveOption,l}return(0,B.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,Mn.Ig)(o)}},{key:"autoSelectActiveOption",get:function(){return this._autoSelectActiveOption},set:function(o){this._autoSelectActiveOption=(0,Mn.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,Mn.du)(o).reduce(function(a,s){return a[s]=!0,a},{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(a){o.isOpen&&o.optionActivated.emit({source:o,option:o.options.toArray()[a]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(o){this.panel&&(this.panel.nativeElement.scrollTop=o)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(o){var a=new LVe(this,o);this.optionSelected.emit(a)}},{key:"_getPanelAriaLabelledby",value:function(o){if(this.ariaLabel)return null;var a=o?o+" ":"";return this.ariaLabelledby?a+this.ariaLabelledby:o}},{key:"_setVisibilityClasses",value:function(o){o[this._visibleClass]=this.showPanel,o[this._hiddenClass]=!this.showPanel}}]),e}(ZVe);RI.\u0275fac=function(r){return new(r||RI)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ile),t.Y36(Ii.t4))},RI.\u0275dir=t.lG2({type:RI,viewQuery:function(r,e){var i;(1&r&&(t.Gf(t.Rgc,7),t.Gf(OVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.template=i.first),t.iGM(i=t.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]});var Jf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,B.Z)(e)}(RI);Jf.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Jf)))(e||Jf)}}(),Jf.\u0275cmp=t.Xpm({type:Jf,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Wt.K7,5),t.Suo(i,Wt.ey,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.optionGroups=o),t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:Wt.HF,useExisting:Jf}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,IVe,3,4,"ng-template"))},dependencies:[ge.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0});var ole=new t.OlP("mat-autocomplete-scroll-strategy");var FVe={provide:ole,deps:[Ei.aV],useFactory:function BVe(n){return function(){return n.scrollStrategies.reposition()}}},UVe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return Qf}),multi:!0};var LI=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,U.Z)(this,n),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=xa.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new In.xQ,this._windowBlurHandler=function(){C._canOpenOnNextFocus=C._document.activeElement!==C._element.nativeElement||C.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,gD.P)(function(){var Z=C.autocomplete?C.autocomplete.options:null;return Z?Z.changes.pipe((0,eo.O)(Z),(0,Co.w)(function(){return ji.T.apply(void 0,(0,fn.Z)(Z.map(function(z){return z.onSelectionChange})))})):C._zone.onStable.pipe((0,xi.q)(1),(0,Co.w)(function(){return C.optionSelections}))}),this._scrollStrategy=s}return(0,B.Z)(n,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,Mn.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this,i=this._getWindow();void 0!==i&&this._zone.runOutsideAngular(function(){return i.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){var e=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){e.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return(0,ji.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ni.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ni.h)(function(){return e._overlayAttached})):(0,qn.of)()).pipe((0,$n.U)(function(i){return i instanceof Wt.rN?i:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return(0,ji.T)((0,jd.R)(this._document,"click"),(0,jd.R)(this._document,"auxclick"),(0,jd.R)(this._document,"touchend")).pipe((0,ni.h)(function(i){var o=(0,Ii.sA)(i),a=e._formField?e._formField._elementRef.nativeElement:null,s=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&o!==e._element.nativeElement&&e._document.activeElement!==e._element.nativeElement&&(!a||!a.contains(o))&&(!s||!s.contains(o))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(o)}))}},{key:"writeValue",value:function(e){var i=this;Promise.resolve(null).then(function(){return i._assignOptionValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=(0,xr.Vb)(e);if(i===xr.hY&&!o&&e.preventDefault(),this.activeOption&&i===xr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===xr.LH||i===xr.JH;i===xr.Mf||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}},{key:"_handleInput",value:function(e){var i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,i=this._zone.onStable.pipe((0,xi.q)(1)),o=this.autocomplete.options.changes.pipe((0,fa.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,sz.g)(0));return(0,ji.T)(i,o).pipe((0,Co.w)(function(){return e._zone.run(function(){var a=e.panelOpen;e._resetActiveItem(),e.autocomplete._setVisibility(),e._changeDetectorRef.detectChanges(),e.panelOpen&&e._overlayRef.updatePosition(),a!==e.panelOpen&&(e.panelOpen?e.autocomplete.opened.emit():e.autocomplete.closed.emit())}),e.panelClosingActions}),(0,xi.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_assignOptionValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(null!=i?i:"")}},{key:"_updateNativeInputValue",value:function(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}},{key:"_setValueAndClose",value:function(e){var i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(i){i!==e&&i.selected&&i.deselect()})}},{key:"_attachOverlay",value:function(){var i,e=this;this.autocomplete;var o=this._overlayRef;o?(this._positionStrategy.setOrigin(this._getConnectedElement()),o.updateSize({width:this._getPanelWidth()})):(this._portal=new uo.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(i=this._formField)||void 0===i?void 0:i.getLabelId()}),o=this._overlay.create(this._getOverlayConfig()),this._overlayRef=o,this._handleOverlayEvents(o),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&o&&o.updateSize({width:e._getPanelWidth()})})),o&&!o.hasAttached()&&(o.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var a=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&a!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new Ei.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var s,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];s="above"===this.position?a:"below"===this.position?i:[].concat(i,a),e.withPositions(s)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var i=this.autocomplete,o=(0,Wt.CB)(e,i.options,i.optionGroups);if(0===e&&1===o)i._setScrollTop(0);else if(i.panel){var a=i.options.toArray()[e];if(a){var s=a._getHostElement(),l=(0,Wt.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}},{key:"_handleOverlayEvents",value:function(e){var i=this;e.keydownEvents().subscribe(function(o){var a;(o.keyCode===xr.hY&&!(0,xr.Vb)(o)||o.keyCode===xr.LH&&(0,xr.Vb)(o,"altKey"))&&(i._pendingAutoselectedOption&&(i._updateNativeInputValue(null!==(a=i._valueBeforeAutoSelection)&&void 0!==a?a:""),i._pendingAutoselectedOption=null),i._closeKeyEventStream.next(),i._resetActiveItem(),o.stopPropagation(),o.preventDefault())}),e.outsidePointerEvents().subscribe()}}]),n}();LI.\u0275fac=function(r){return new(r||LI)(t.Y36(t.SBq),t.Y36(Ei.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ole),t.Y36(Ls.Is,8),t.Y36(kn.G_,9),t.Y36(ge.K0,8),t.Y36(ha.rL),t.Y36(ile,8))},LI.\u0275dir=t.lG2({type:LI,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]});var Qf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,U.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,B.Z)(e)}(LI);Qf.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qf)))(e||Qf)}}(),Qf.\u0275dir=t.lG2({type:Qf,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&t.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(o){return e._handleInput(o)})("keydown",function(o){return e._handleKeydown(o)})("click",function(){return e._handleClick()}),2&r&&t.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([UVe]),t.qOj]});var ZI=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.elementRef=r});ZI.\u0275fac=function(r){return new(r||ZI)(t.Y36(t.SBq))},ZI.\u0275dir=t.lG2({type:ZI});var NI=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(ZI);NI.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(NI)))(e||NI)}}(),NI.\u0275dir=t.lG2({type:NI,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[t.qOj]});var CT=(0,B.Z)(function n(){(0,U.Z)(this,n)});function HVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required"),t.qZA())}function jVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect"),t.qZA())}function GVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists"),t.qZA())}function zVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required"),t.qZA())}function WVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid"),t.qZA())}function VVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"A password between 6 and 100 characters is required."),t.qZA())}function YVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}function KVe(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function qVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",21)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"mat-icon",22),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteGroup(s))}),t._uU(5,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.name)}}CT.\u0275fac=function(r){return new(r||CT)},CT.\u0275mod=t.oAB({type:CT}),CT.\u0275inj=t.cJS({providers:[FVe],imports:[Ei.U8,Wt.Ng,Wt.BQ,ge.ez,ha.ZD,Wt.Ng,Wt.BQ]});var BI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new J.p4}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new J.nJ({username:new J.p4(null,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[tle(this.controller,this.userService)]),full_name:new J.p4,email:new J.p4(null,[J.kI.email,J.kI.required],[nle(this.controller,this.userService)]),password:new J.p4(null,[J.kI.required,J.kI.minLength(6),J.kI.maxLength(100)]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),is_active:new J.p4(!0)},{validators:[rle]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.groups.filter(function(o){return o.name.toLowerCase().includes(i)})}}},{key:"form",get:function(){return this.addUserForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this;if(this.addUserForm.valid){var i=this.addUserForm.value,o=Array.from(this.groupsToAdd.values());this.userService.add(this.controller,i).subscribe(function(a){e.toasterService.success("User ".concat(a.username," added")),o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,s,a).subscribe(function(){e.toasterService.success("user ".concat(a.username," was added to group ").concat(s.name))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(a.username," to group ").concat(s.name))})}),e.dialogRef.close()},function(a){e.toasterService.error("Cannot create user : "+a)})}}},{key:"deleteGroup",value:function(e){this.groupsToAdd.delete(e)}},{key:"selectedGroup",value:function(e){this.groupsToAdd.add(e)}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}}]),n}();function JVe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}BI.\u0275fac=function(r){return new(r||BI)(t.Y36(lr),t.Y36(Bl),t.Y36(Pn),t.Y36(Sc))},BI.\u0275cmp=t.Xpm({type:BI,selectors:[["app-add-user-dialog"]],decls:40,vars:16,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["matInput","","type","password","formControlName","password","placeholder","Password"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["formControlName","is_active"],[1,"my-2"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"groups"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"groupList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new user"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2),t._UZ(4,"input",3),t.YNc(5,HVe,2,0,"mat-error",4),t.YNc(6,jVe,2,0,"mat-error",4),t.YNc(7,GVe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"mat-form-field",2),t._UZ(9,"input",5),t.qZA(),t.TgZ(10,"mat-form-field",2),t._UZ(11,"input",6),t.YNc(12,zVe,2,0,"mat-error",4),t.YNc(13,WVe,2,0,"mat-error",4),t.qZA(),t.TgZ(14,"mat-form-field",2),t._UZ(15,"input",7),t.YNc(16,VVe,2,0,"mat-error",4),t.qZA(),t.TgZ(17,"mat-form-field",2),t._UZ(18,"input",8),t.YNc(19,YVe,2,0,"mat-error",4),t.qZA(),t.TgZ(20,"mat-checkbox",9),t._uU(21,"Is active"),t.qZA(),t._UZ(22,"mat-divider",10),t.TgZ(23,"h6"),t._uU(24," Add user to groups : "),t.qZA(),t.TgZ(25,"mat-form-field",2)(26,"mat-label"),t._uU(27,"Groups"),t.qZA(),t._UZ(28,"input",11),t.TgZ(29,"mat-autocomplete",12,13),t.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),t.YNc(31,KVe,2,2,"mat-option",14),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div",15),t.YNc(34,qVe,6,1,"div",16),t.qZA(),t.TgZ(35,"div",17)(36,"button",18),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(37,"Cancel"),t.qZA(),t.TgZ(38,"button",19),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add user "),t.qZA()()()),2&r){var i=t.MAs(30);t.xp6(2),t.Q6J("formGroup",e.addUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(3),t.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),t.xp6(9),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(32,14,e.filteredGroups)),t.xp6(3),t.Q6J("ngForOf",e.groupsToAdd),t.xp6(4),t.Q6J("disabled",!e.addUserForm.valid)}},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,cn,Dn,Kn,yr,ur,ei,pm.d,Wt.ey,Jf,Qf,ge.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}"]});var wT=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();wT.\u0275fac=function(r){return new(r||wT)(t.Y36(lr),t.Y36(go))},wT.\u0275cmp=t.Xpm({type:wT,selectors:[["app-delete-user-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following users ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,JVe,2,2,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.users))},dependencies:[ge.sg,cn,yr,ur],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var FI=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.data.filter(function(o){return o.username&&o.username.toLowerCase().includes(i)||o.full_name&&o.full_name.toLowerCase().includes(i)||o.email&&o.email.toLowerCase().includes(i)})):e:[]}}]),n}();FI.\u0275fac=function(r){return new(r||FI)},FI.\u0275pipe=t.Yjl({name:"userFilter",type:FI,pure:!0});var QVe=["usersPaginator"],XVe=["usersSort"];function $Ve(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function eYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function tYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Username"),t.qZA())}var nYe=function(r,e){return["/controller",r,"management","users",e]};function rYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",37),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,nYe,i.controller.id,e.user_id))("matTooltip",e.username),t.xp6(1),t.Oqu(e.username)}}function iYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Full Name"),t.qZA())}function oYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.full_name),t.xp6(1),t.Oqu(e.full_name)}}function aYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Mail"),t.qZA())}function sYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.email),t.xp6(1),t.Oqu(e.email)}}function lYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Active"),t.qZA())}function uYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.is_active)}}function cYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Login"),t.qZA())}function dYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.last_login)}}function pYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Update"),t.qZA())}function fYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.updated_at?e.updated_at:e.created_at)}}function hYe(n,r){1&n&&t._UZ(0,"mat-header-cell",33)}function mYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"button",42),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function _Ye(n,r){1&n&&t._UZ(0,"mat-header-row")}function gYe(n,r){1&n&&t._UZ(0,"mat-row")}var vYe=function(){return{standalone:!0}},yYe=function(){return[5,10,20]};function bYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Users"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete Users "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addUser())}),t._uU(8," Add User "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"userFilter"),t.ynx(18,14),t.YNc(19,$Ve,2,2,"mat-header-cell",15),t.YNc(20,eYe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,tYe,2,0,"mat-header-cell",18),t.YNc(23,rYe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,iYe,2,0,"mat-header-cell",18),t.YNc(26,oYe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,aYe,2,0,"mat-header-cell",18),t.YNc(29,sYe,3,2,"mat-cell",19),t.BQk(),t.ynx(30,22),t.YNc(31,lYe,2,0,"mat-header-cell",23),t.YNc(32,uYe,2,1,"mat-cell",24),t.BQk(),t.ynx(33,25),t.YNc(34,cYe,2,0,"mat-header-cell",18),t.YNc(35,dYe,2,1,"mat-cell",26),t.BQk(),t.ynx(36,27),t.YNc(37,pYe,2,0,"mat-header-cell",18),t.YNc(38,fYe,2,1,"mat-cell",26),t.BQk(),t.ynx(39,28),t.YNc(40,hYe,1,0,"mat-header-cell",15),t.YNc(41,mYe,4,0,"mat-cell",16),t.BQk(),t.YNc(42,_Ye,1,0,"mat-header-row",29),t.YNc(43,gYe,1,0,"mat-row",30),t.qZA(),t._UZ(44,"mat-paginator",31,32),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,vYe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(28),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,yYe))}}function CYe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var UI=function(){function n(r,e,i,o,a,s,l,u){(0,U.Z)(this,n),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.location=u,this.dataSource=new Af,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.usersPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.usersSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"username":case"full_name":case"email":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.userService.list(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i),e.toasterService.error("Cannot open the user management page"),e.location.back()})}},{key:"addUser",value:function(){var e=this,i=this.dialog.open(BI,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(wT,{width:"500px",data:{users:[e]}}).afterClosed().subscribe(function(o){o&&i.userService.delete(i.controller,e.user_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete user ".concat(e.username))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(wT,{width:"500px",data:{users:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.userService.delete(e.controller,o.user_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete user ".concat(o.username))})}),e.selection.clear())})}}]),n}();function wYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be at least 8 characters long and contain at least one digit, one lowercase letter and one uppercase letter. "),t.qZA())}function kYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}UI.\u0275fac=function(r){return new(r||UI)(t.Y36(fr),t.Y36(dr),t.Y36(Bl),t.Y36(Hs),t.Y36(rr),t.Y36(Hr),t.Y36(Pn),t.Y36(ge.Ye))},UI.\u0275cmp=t.Xpm({type:UI,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(QVe,5),t.Gf(XVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.usersPaginator=i),t.iGM(i=t.CRH())&&(e.usersSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by username, full name or email",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","usersSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","username"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","full_name"],["matColumnDef","email"],["matColumnDef","is_active"],["mat-sort-header","","class","active-col",4,"matHeaderCellDef"],["class","active-col",4,"matCellDef"],["matColumnDef","last_login"],["class","overflow-col",4,"matCellDef"],["matColumnDef","updated_at"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["usersPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-sort-header","",1,"active-col"],[1,"active-col"],[1,"overflow-col"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,bYe,46,12,"div",0),t.YNc(1,CYe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ei,zu,vp,ai,FI],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px;white-space:pre-line}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var kT=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8}$/;this.user=this.data.user,this.editPasswordForm=new J.nJ({password:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.pattern(e),J.kI.required]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.pattern(e),J.kI.required])},{validators:[rle]})}},{key:"passwordForm",get:function(){return this.editPasswordForm.controls}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onPasswordSave",value:function(){var e=this;if(this.editPasswordForm.valid){var i={};i.password=this.editPasswordForm.get("password").value,i.user_id=this.user.user_id,this.userService.update(this.data.controller,i,this.data.self_update).subscribe(function(o){e.toasterService.success("User ".concat(o.username," password updated")),e.editPasswordForm.reset(),e.dialogRef.close(!0)},function(o){e.toasterService.error("Cannot update password for user: "+o)})}}}]),n}();function TYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),t._uU(3),t.qZA(),t.TgZ(4,"mat-list-item"),t._uU(5),t.qZA(),t.TgZ(6,"mat-list-item"),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.changePassword())}),t._uU(10,"Change password"),t.qZA(),t._UZ(11,"br"),t.qZA(),t.TgZ(12,"div",6)(13,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.copyToken())}),t._uU(14,"Click to copy access token"),t.qZA(),t._UZ(15,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(3),t.hij(" Username: ",i.user.username," "),t.xp6(2),t.hij(" Full name: ",i.user.full_name," "),t.xp6(2),t.hij(" Email: ",i.user.email," ")}}kT.\u0275fac=function(r){return new(r||kT)(t.Y36(lr),t.Y36(go),t.Y36(Bl),t.Y36(Pn))},kT.\u0275cmp=t.Xpm({type:kT,selectors:[["app-change-user-password"]],decls:15,vars:5,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","password","formControlName","password","placeholder","Password"],[4,"ngIf"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"disabled","click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),t._UZ(5,"input",3),t.YNc(6,wYe,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field",2),t._UZ(8,"input",5),t.YNc(9,kYe,2,0,"mat-error",4),t.qZA(),t.TgZ(10,"div",6)(11,"button",7),t.NdJ("click",function(){return e.onCancel()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",8),t.NdJ("click",function(){return e.onPasswordSave()}),t._uU(14," Change password "),t.qZA()()()()),2&r&&(t.xp6(1),t.hij("Change password for ",e.user.username,""),t.xp6(2),t.Q6J("formGroup",e.editPasswordForm),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),t.xp6(4),t.Q6J("disabled",!e.editPasswordForm.valid))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var HI=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o,this.dialog=a}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.userService.getInformationAboutLoggedUser(o).subscribe(function(a){e.user=a})})}},{key:"changePassword",value:function(){this.dialog.open(kT,{width:"500px",height:"300px",data:{user:this.user,controller:this.controller,self_update:!0}})}},{key:"copyToken",value:function(){var e=document.createElement("textarea");e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.opacity="0",e.value=this.controller.authToken,document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.toasterService.success("Token copied")}}]),n}();HI.\u0275fac=function(r){return new(r||HI)(t.Y36(fr),t.Y36(rr),t.Y36(Bl),t.Y36(Pn),t.Y36(Hr))},HI.\u0275cmp=t.Xpm({type:HI,selectors:[["app-logged-user"]],decls:7,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[4,"ngIf"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"full_width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Logged in user info"),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,TYe,16,3,"mat-card",5),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("ngIf",e.user))},dependencies:[ge.O5,cn,si,fm,Aa],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var mv=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images")}},{key:"getImagePath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(o,"?install_appliances=").concat(i)}},{key:"uploadedImage",value:function(e,i,o,a){return this.httpController.post(e,"/images/upload/".concat(o,"?install_appliances=").concat(i),a)}},{key:"deleteFile",value:function(e,i){return this.httpController.delete(e,"/images/".concat(i))}},{key:"pruneImages",value:function(e){return this.httpController.delete(e,"/images/prune")}},{key:"installImages",value:function(e){return this.httpController.post(e,"/images/install",{})}}]),n}();function MYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),t._uU(4,"Would you like to automatically install appliances for this image?"),t.qZA()(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t.TgZ(9,"div",5)(10,"mat-radio-group",6),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectInstallApplianceOption(a))}),t.TgZ(11,"mat-radio-button",7),t._uU(12," Yes "),t.qZA(),t.TgZ(13,"mat-radio-button",8),t._uU(14," No "),t.qZA()()(),t.TgZ(15,"div",9)(16,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.isInstallAppliance=!a.isInstallAppliance)}),t._uU(17,"Next"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(10),t.Q6J("value",i.install_appliance),t.xp6(1),t.Q6J("checked",i.install_appliance),t.xp6(2),t.Q6J("checked",!i.install_appliance)}}function SYe(n,r){1&n&&(t.TgZ(0,"h5"),t._uU(1,"Please Select image"),t.qZA())}function xYe(n,r){1&n&&(t.TgZ(0,"p",17),t._uU(1,"Uploaded image details"),t.qZA())}function EYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"input",19,20),t.NdJ("onFileSelected",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("uploader",i.uploaderImage)}}function DYe(n,r){if(1&n&&t._UZ(0,"mat-progress-bar",26),2&n){var e=t.oxw(4);t.Q6J("value",e.uploadProgress.progress)}}function AYe(n,r){1&n&&t._UZ(0,"mat-progress-bar",26),2&n&&t.Q6J("value",0)}function OYe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,DYe,1,1,"mat-progress-bar",25),t.YNc(2,AYe,1,1,"mat-progress-bar",25),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function IYe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),t.xp6(1),t.hij(" ",i.uploadProgress.progress+" %"," ")}}function PYe(n,r){1&n&&(t.TgZ(0,"div",27),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ","0 %"," "))}mv.\u0275fac=function(r){return new(r||mv)(t.LFG(mo.zw))},mv.\u0275prov=t.Yz7({token:mv,factory:mv.\u0275fac,providedIn:"root"});var RYe=function(r){return{"uploaded-error-text":r}};function LYe(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),t._uU(3),t.qZA()(),t.YNc(4,OYe,3,5,"div",23),t.YNc(5,IYe,2,4,"div",23),t.YNc(6,PYe,2,1,"div",24),t.qZA()),2&n){var e=r.$implicit,i=r.index,o=t.oxw(2);t.xp6(1),t.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),t.xp6(1),t.Q6J("ngClass",t.VKq(11,RYe,e.isError)),t.xp6(1),t.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),t.xp6(1),t.Q6J("ngIf",!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!o.uploadProgress.isUploaded)}}function ZYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1))}),t._uU(2," Cancel "),t.qZA()()}}function NYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"div",12),t.YNc(3,SYe,2,0,"h5",0),t.YNc(4,xYe,2,0,"p",13),t.qZA(),t.YNc(5,EYe,5,1,"div",14),t.TgZ(6,"div")(7,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(8,"mat-icon"),t._uU(9,"close"),t.qZA()()()(),t.YNc(10,LYe,7,13,"div",15),t.YNc(11,ZYe,3,0,"div",16),t.qZA()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),t.xp6(4),t.Q6J("ngForOf",i.uploaderImage.queue),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var jI=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.data=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.uploadServiceService=a,this.isInstallAppliance=!1,this.install_appliance=!1,this.selectFile=[],this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new wg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){var l={name:i.file.name,message:JSON.parse(o)};e.toasterService.error(null==l?void 0:l.message.message)},this.uploaderImage.onSuccessItem=function(i,o,a,s){var l={filename:i.file.name,message:JSON.parse(o)};e.toasterService.success("Image "+(null==l?void 0:l.message.filename)+" imported succesfully")},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i}}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.dialogRef.close(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image file Uploading canceled")}},{key:"selectInstallApplianceOption",value:function(e){this.install_appliance=e.value}},{key:"uploadImageFile",value:function(e){return yi(this,void 0,void 0,Ln().mark(function i(){var o,a,s;return Ln().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(d){o.e(d)}finally{o.f()}return u.next=4,this.importImageFile();case 4:case"end":return u.stop()}},i,this)}))}},{key:"importImageFile",value:function(){var e=this;this.selectFile.forEach(function(i,o){var a=i.name,s=i,l=new FileReader;l.onloadend=function(){var u=e.imageService.getImagePath(e.controller,e.install_appliance,a),d=e.uploaderImage.queue[o];d.url=u,d.options&&(d.options.disableMultipart=!0),d.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(d)},l.readAsText(s)})}}]),n}();function BYe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function FYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all files ?."),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected files"),t.qZA(),t.YNc(6,BYe,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function UYe(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function HYe(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}jI.\u0275fac=function(r){return new(r||jI)(t.Y36(go),t.Y36(lr),t.Y36(mv),t.Y36(Pn),t.Y36(id))},jI.\u0275cmp=t.Xpm({type:jI,selectors:[["app-add-image-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"row"],[1,"col-md-10"],[1,"col-md-2","txt-align"],["mat-button","",3,"click"],["mat-dialog-content",""],["name","install_appliances",1,"choose-instal-appliance",3,"value","change"],["value","true",1,"instal-appliances-button",3,"checked"],["value","false",1,"instal-appliances-button",3,"checked"],["mat-dialog-actions","","align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"row",2,"display","flex"],[1,"col-md-6"],["class","uploaded-text",4,"ngIf"],["class","col-md-4 txt-align",4,"ngIf"],["class","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end",4,"ngIf"],[1,"uploaded-text"],[1,"col-md-4","txt-align"],["type","file","accept",".bin,.image,.iol,.qcow2,.vmdk","multiple","","ng2FileSelect","",1,"non-visible",3,"uploader","onFileSelected"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[3,"ngClass"],[3,"class",4,"ngIf"],["class","col-md-2",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-2"]],template:function(r,e){1&r&&(t.YNc(0,MYe,18,3,"div",0),t.YNc(1,NYe,12,8,"div",0)),2&r&&(t.Q6J("ngIf",!e.isInstallAppliance),t.xp6(1),t.Q6J("ngIf",e.isInstallAppliance))},dependencies:[ge.mk,ge.sg,ge.O5,Mf,cn,Dn,cl,ur,ab,ns,Gs],styles:[".progress-bar[_ngcontent-%COMP%]{padding:0}.progress[_ngcontent-%COMP%]{width:50px;background-color:#263238;height:28px;margin-left:13px}.mat-input-element[_ngcontent-%COMP%]{font-size:medium;font-weight:200}#fileInput[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:10;opacity:0;height:100%;left:0;top:0}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto;background:transparent;padding:0}.mat-toolbar-single-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px}.mat-form-field[_ngcontent-%COMP%]{width:100%}.message[_ngcontent-%COMP%]{background-color:#ddd;padding:15px;color:#333;border:#aaa solid 1px;border-radius:4px;margin:15px 0}.preview[_ngcontent-%COMP%]{max-width:200px;vertical-align:middle}.list-card[_ngcontent-%COMP%]{margin-top:20px}.list-item[_ngcontent-%COMP%]{margin-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}mat-progress-bar[_ngcontent-%COMP%]{margin-top:10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.uploaded-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.uploaded-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}.choose-instal-appliance[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0 11px;align-items:flex-start}.instal-appliances-button[_ngcontent-%COMP%]{margin:11px}"],data:{animation:[(0,Rt.X$)("detailExpand",[(0,Rt.SB)("collapsed",(0,Rt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed",(0,Rt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var jYe=function(r){return{"deleted-error-text":r}};function GYe(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,HYe,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,jYe,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function zYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Images can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,GYe,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function WYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function VYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,zYe,4,1,"div",0),t.YNc(3,WYe,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var GI=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return yi(this,void 0,void 0,Ln().mark(function e(){return Ln().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.imageService.deleteFile(e.deleteData.controller,o.filename).pipe((0,Xc.K)(function(a){return(0,qn.of)(a)})))}),$i.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();GI.\u0275fac=function(r){return new(r||GI)(t.Y36(go),t.Y36(lr),t.Y36(mv),t.Y36(Pn))},GI.\u0275cmp=t.Xpm({type:GI,selectors:[["app-deleteallfiles-dialog"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,FYe,12,1,"div",0),t.YNc(1,UYe,5,0,"div",0),t.YNc(2,VYe,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Eg,yr,cl,ur,xl],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var YYe=function(){function n(){(0,U.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),n}(),KYe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this;return(0,ji.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2),TT=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function qYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function JYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",21),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function QYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," File Name "),t.qZA())}function XYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"mat-list-item",22),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.filename)}}function $Ye(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Type "),t.qZA())}function eKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.image_type," ")}}function tKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Size "),t.qZA())}function nKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function rKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function iKe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell"),t.YNc(1,rKe,3,0,"button",23),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function oKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.deleteFile(o.path))}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function aKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,oKe,3,0,"button",23),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.selection.isSelected(e))}}function sKe(n,r){1&n&&t._UZ(0,"mat-header-row")}function lKe(n,r){1&n&&t._UZ(0,"mat-row")}TT.\u0275fac=function(r){return new(r||TT)(t.Y36(lr),t.Y36(go))},TT.\u0275cmp=t.Xpm({type:TT,selectors:[["app-question-dialog"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"p"),t._uU(4),t.qZA()(),t.TgZ(5,"div",2)(6,"button",3),t.NdJ("click",function(){return e.onNoClick()}),t._uU(7,"No"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return e.onYesClick()}),t._uU(9,"Yes"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.data.title),t.xp6(3),t.Oqu(e.data.question))},dependencies:[cn,yr,cl,ur],encapsulation:2});var zI=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new YYe,this.isAllDelete=!1,this.selection=new Ci.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=parseInt(this.route.snapshot.paramMap.get("controller_id"));this.controllerService.get(i).then(function(o){e.controller=o,o.authToken&&e.getImages()}),this.dataSource=new KYe(this.imageDatabase)}},{key:"getImages",value:function(){var e=this;this.imageService.getImages(this.controller).subscribe(function(i){e.imageDatabase.addImages(i)},function(i){e.toasterService.error(i.error.message)})}},{key:"deleteFile",value:function(e){var i=this;this.imageService.deleteFile(this.controller,e).subscribe(function(o){i.getImages(),i.unChecked(),i.toasterService.success("File deleted")},function(o){i.getImages(),i.unChecked(),i.toasterService.error(o.error.message)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.imageDatabase.data.length}},{key:"selectAllImages",value:function(){this.isAllSelected()?this.unChecked():this.allChecked()}},{key:"unChecked",value:function(){this.selection.clear(),this.isAllDelete=!1}},{key:"allChecked",value:function(){var e=this;this.imageDatabase.data.forEach(function(i){return e.selection.select(i)}),this.isAllDelete=!0}},{key:"installAllImages",value:function(){var e=this;this.dialog.open(TT,{width:"450px",data:{title:"Install all images",question:"This will attempt to automatically create templates based on image checksums. Continue?"}}).afterClosed().subscribe(function(o){o&&e.imageService.installImages(e.controller).subscribe(function(){e.toasterService.success("Images installed")},function(a){e.toasterService.error(a.error.message)})})}},{key:"pruneImages",value:function(){var e=this;this.dialog.open(TT,{width:"450px",data:{title:"Prune images",question:"Delete all images not used by a template? This cannot be reverted."}}).afterClosed().subscribe(function(o){o&&e.imageService.pruneImages(e.controller).subscribe(function(){e.getImages(),e.unChecked(),e.toasterService.success("Images pruned")},function(a){e.getImages(),e.unChecked(),e.toasterService.error(a.error.message)})})}},{key:"addImageDialog",value:function(){var e=this;this.dialog.open(jI,{width:"600px",maxHeight:"550px",autoFocus:!1,disableClose:!0,data:this.controller}).afterClosed().subscribe(function(o){if(!o)return e.getImages(),e.unChecked(),!1;e.getImages(),e.unChecked()})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(GI,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.getImages(),!1;e.unChecked(),e.getImages(),e.toasterService.success("All files deleted")})}}]),n}();zI.\u0275fac=function(r){return new(r||zI)(t.Y36(mv),t.Y36(Hs),t.Y36(fr),t.Y36(rr),t.Y36(mm),t.Y36(Hr),t.Y36(Pn))},zI.\u0275cmp=t.Xpm({type:zI,selectors:[["app-image-manager"]],decls:39,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"install-all-button",3,"click"],["mat-raised-button","","color","primary",1,"prune-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","filename"],["matColumnDef","image_type"],["matColumnDef","image_size"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["role","listitem"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Image Manager"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.installAllImages()}),t.TgZ(6,"mat-icon"),t._uU(7,"done_all"),t.qZA(),t._uU(8," Install all images "),t.qZA(),t.TgZ(9,"button",5),t.NdJ("click",function(){return e.pruneImages()}),t.TgZ(10,"mat-icon"),t._uU(11,"delete"),t.qZA(),t._uU(12," Prune Images "),t.qZA(),t.TgZ(13,"button",6),t.NdJ("click",function(){return e.addImageDialog()}),t.TgZ(14,"mat-icon"),t._uU(15,"add"),t.qZA(),t._uU(16," Add Image "),t.qZA()()(),t.TgZ(17,"div",7),t._UZ(18,"app-controller-discovery"),t.TgZ(19,"div",8)(20,"mat-table",9,10),t.ynx(22,11),t.YNc(23,qYe,2,2,"mat-header-cell",12),t.YNc(24,JYe,2,1,"mat-cell",13),t.BQk(),t.ynx(25,14),t.YNc(26,QYe,2,0,"mat-header-cell",12),t.YNc(27,XYe,3,1,"mat-cell",13),t.BQk(),t.ynx(28,15),t.YNc(29,$Ye,2,0,"mat-header-cell",12),t.YNc(30,eKe,2,1,"mat-cell",13),t.BQk(),t.ynx(31,16),t.YNc(32,tKe,2,0,"mat-header-cell",12),t.YNc(33,nKe,2,1,"mat-cell",13),t.BQk(),t.ynx(34,17),t.YNc(35,iKe,2,1,"mat-header-cell",12),t.YNc(36,aKe,2,1,"mat-cell",13),t.BQk(),t.YNc(37,sKe,1,0,"mat-header-row",18),t.YNc(38,lKe,1,0,"mat-row",19),t.qZA()()()()),2&r&&(t.xp6(20),t.Q6J("dataSource",e.dataSource),t.xp6(17),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,cn,Dn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,ei,Aa,hT],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.install-all-button[_ngcontent-%COMP%], .prune-button[_ngcontent-%COMP%], .add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%], mat-footer-cell[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;overflow:initial;min-height:inherit}"]});var yp=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getEndpoints",value:function(e){return this.httpController.get(e,"/access/acl/endpoints")}},{key:"list",value:function(e){return this.httpController.get(e,"/access/acl")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/acl",i)}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/acl/".concat(i))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/acl/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/acl/".concat(i.ace_id),i)}}]),n}();yp.\u0275fac=function(r){return new(r||yp)(t.LFG(mo.zw))},yp.\u0275prov=t.Yz7({token:yp,factory:yp.\u0275fac,providedIn:"root"});var bp=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/access/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/access/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"setPrivileges",value:function(e,i,o){return this.httpController.put(e,"/access/roles/".concat(i,"/privileges/").concat(o),void 0)}},{key:"removePrivileges",value:function(e,i,o){return this.httpController.delete(e,"/access/roles/".concat(i,"/privileges/").concat(o))}}]),n}();function uKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required "),t.qZA())}function cKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect "),t.qZA())}function dKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists "),t.qZA())}function pKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required "),t.qZA())}function fKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid "),t.qZA())}function hKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this email exists "),t.qZA())}bp.\u0275fac=function(r){return new(r||bp)(t.LFG(mo.zw))},bp.\u0275prov=t.Yz7({token:bp,factory:bp.\u0275fac,providedIn:"root"});var mKe=function(r,e){return["/controller",r,"management","groups",e]};function _Ke(n,r){if(1&n&&(t.TgZ(0,"li")(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,mKe,i.controller.id,e.user_group_id)),t.xp6(1),t.Oqu(e.name)}}function gKe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Endpoint "),t.qZA())}function vKe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function yKe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Role "),t.qZA())}function bKe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function CKe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Propagate "),t.qZA())}function wKe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function kKe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Allowed "),t.qZA())}function TKe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function MKe(n,r){1&n&&t._UZ(0,"tr",36)}function SKe(n,r){1&n&&t._UZ(0,"tr",37)}var xKe=function(r){return["/controller",r,"management","users"]},WI=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.aclService=s,this.roleService=l,this.changingPassword=!1,this.aceDatasource=new Af,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.route.data.subscribe(function(i){e.user=i.user,e.user_id=e.user.user_id,e.groups=i.groups,e.aces=i.aces,e.initForm(),e.roleService.get(e.controller).subscribe(function(o){e.aclService.getEndpoints(e.controller).subscribe(function(a){e.aceDatasource.data=e.aces.map(function(s){var l=a.filter(function(d){return d.endpoint===s.path})[0],u=o.filter(function(d){return d.role_id===s.role_id})[0];return Object.assign(Object.assign({},s),{endpoint_name:l.name,role_name:u.name})})})})})}},{key:"initForm",value:function(){this.editUserForm=new J.nJ({username:new J.p4(this.user.username,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[tle(this.controller,this.userService,this.user.username)]),full_name:new J.p4(this.user.full_name),email:new J.p4(this.user.email,[J.kI.email,J.kI.required],[nle(this.controller,this.userService,this.user.email)]),is_active:new J.p4(this.user.is_active)})}},{key:"form",get:function(){return this.editUserForm.controls}},{key:"onEditClick",value:function(){var e=this;if(this.editUserForm.valid){var i=this.getUpdatedValues();i.user_id=this.user.user_id,this.userService.update(this.controller,i,!1).subscribe(function(o){e.toasterService.success("User ".concat(o.username," updated"))},function(o){e.toasterService.error("Cannot update user : "+o)})}}},{key:"getUpdatedValues",value:function(){var e=this,i={};return Object.keys(this.editUserForm.controls).forEach(function(o){var a=e.editUserForm.get(o);a.dirty&&a.value!==e.user[o]&&(i[o]=a.value)}),i}},{key:"onChangePassword",value:function(){this.dialog.open(kT,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),n}();WI.\u0275fac=function(r){return new(r||WI)(t.Y36(Bl),t.Y36(Pn),t.Y36(fr),t.Y36(dr),t.Y36(Hr),t.Y36(yp),t.Y36(bp))},WI.\u0275cmp=t.Xpm({type:WI,selectors:[["app-user-detail"]],decls:65,vars:21,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to user management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user management"],[1,"col"],[1,"default-content"],["label","Details",1,"details"],[1,"user-edit"],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["formControlName","is_active"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Groups"],[1,"user-groups"],[4,"ngFor","ngForOf"],["label","ACEs"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()()(),t.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),t._UZ(14,"input",11),t.YNc(15,uKe,2,0,"mat-error",12),t.YNc(16,cKe,2,0,"mat-error",12),t.YNc(17,dKe,2,0,"mat-error",12),t.qZA(),t.TgZ(18,"mat-form-field",10),t._UZ(19,"input",13),t.qZA(),t.TgZ(20,"mat-form-field",10),t._UZ(21,"input",14),t.YNc(22,pKe,2,0,"mat-error",12),t.YNc(23,fKe,2,0,"mat-error",12),t.YNc(24,hKe,2,0,"mat-error",12),t.qZA(),t.TgZ(25,"mat-checkbox",15),t._uU(26,"Is active"),t.qZA(),t.TgZ(27,"div")(28,"mat-checkbox",16),t._uU(29,"Is Superadmin"),t.qZA()(),t.TgZ(30,"div",17)(31,"button",18),t.NdJ("click",function(){return e.onEditClick()}),t._uU(32," Edit user "),t.qZA()()(),t.TgZ(33,"button",19),t.NdJ("click",function(){return e.onChangePassword()}),t._uU(34," Change Password "),t.qZA(),t.TgZ(35,"div")(36,"div"),t._uU(37),t.qZA(),t.TgZ(38,"div"),t._uU(39),t.qZA(),t.TgZ(40,"div"),t._uU(41),t.qZA(),t.TgZ(42,"div"),t._uU(43),t.qZA()()()(),t.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),t.YNc(47,_Ke,3,5,"li",22),t.qZA()()(),t.TgZ(48,"mat-tab",23)(49,"div",6)(50,"table",24),t.ynx(51,25),t.YNc(52,gKe,2,0,"th",26),t.YNc(53,vKe,2,1,"td",27),t.BQk(),t.ynx(54,28),t.YNc(55,yKe,2,0,"th",26),t.YNc(56,bKe,2,1,"td",27),t.BQk(),t.ynx(57,29),t.YNc(58,CKe,2,0,"th",26),t.YNc(59,wKe,2,1,"td",27),t.BQk(),t.ynx(60,30),t.YNc(61,kKe,2,0,"th",26),t.YNc(62,TKe,2,1,"td",27),t.BQk(),t.YNc(63,MKe,1,0,"tr",31),t.YNc(64,SKe,1,0,"tr",32),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(19,xKe,e.controller.id)),t.xp6(4),t.hij("User ",e.user.username,""),t.xp6(5),t.Q6J("formGroup",e.editUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),t.xp6(4),t.Q6J("checked",e.user.is_superadmin),t.xp6(3),t.Q6J("disabled",!e.editUserForm.valid),t.xp6(6),t.hij("Creation date: ",e.user.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.user.updated_at,""),t.xp6(2),t.hij("Last login: ",e.user.last_login,""),t.xp6(2),t.hij("UUID: ",e.user.user_id,""),t.xp6(4),t.Q6J("ngForOf",e.groups),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[ge.sg,ge.O5,Wo,Us,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,ur,ei,ai,Zi.SP,Zi.uX],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}table[_ngcontent-%COMP%]{width:100%}"]});var MT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.userService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();function EKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"a",2,3),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.activeLink=l)}),t._uU(2),t.qZA()}if(2&n){var i=r.$implicit,o=t.MAs(1);t.MGl("routerLink","./",i,""),t.Q6J("active",o.isActive),t.xp6(2),t.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}MT.\u0275fac=function(r){return new(r||MT)(t.LFG(rr),t.LFG(Bl))},MT.\u0275prov=t.Yz7({token:MT,factory:MT.\u0275fac,providedIn:"root"});var VI=function(){function n(r,e,i){(0,U.Z)(this,n),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","pools","ACL"],this.activeLink=this.links[0]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o})}}]),n}();VI.\u0275fac=function(r){return new(r||VI)(t.Y36(fr),t.Y36(dr),t.Y36(rr))},VI.\u0275cmp=t.Xpm({type:VI,selectors:[["app-management"]],decls:3,vars:1,consts:[["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click"],["rla","routerLinkActive"]],template:function(r,e){1&r&&(t.TgZ(0,"nav",0),t.YNc(1,EKe,3,3,"a",1),t.qZA(),t._UZ(2,"router-outlet")),2&r&&(t.xp6(1),t.Q6J("ngForOf",e.links))},dependencies:[ge.sg,cm,Us,Xw,Zi.BU,Zi.Nj]});var ST=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.userService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.getGroupsByUserId(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();ST.\u0275fac=function(r){return new(r||ST)(t.LFG(rr),t.LFG(Bl))},ST.\u0275prov=t.Yz7({token:ST,factory:ST.\u0275fac,providedIn:"root"});var DKe=function(r,e){return function(i){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.getGroups(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},zb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function AKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is required"),t.qZA())}function OKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is incorrect"),t.qZA())}function IKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group with this name exists"),t.qZA())}function PKe(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",e.username," - ",e.email," ")}}function RKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",16)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"mat-icon",17),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.delUser(s))}),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.username),t.xp6(2),t.Oqu(i.email)}}zb.\u0275fac=function(r){return new(r||zb)},zb.\u0275prov=t.Yz7({token:zb,factory:zb.\u0275fac});var LKe=function(r){return{"is-invalid":r}},YI=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.groupNameValidator=o,this.groupService=a,this.userService=s,this.toasterService=l,this.usersToAdd=new Set([]),this.loading=!1,this.autocompleteControl=new J.p4}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new J.p4(null,[J.kI.required,this.groupNameValidator.get],[DKe(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.groupNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.groupNameForm.invalid){var i=this.groupNameForm.controls.groupName.value,o=Array.from(this.usersToAdd.values());this.groupService.addGroup(this.controller,i).subscribe(function(a){o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,a,s).subscribe(function(){e.toasterService.success("user ".concat(s.username," was added"))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(s.username," to group ").concat(i))})}),e.dialogRef.close(!0)},function(a){e.toasterService.error("An error occur while trying to create new group ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"selectedUser",value:function(e){this.usersToAdd.add(e)}},{key:"delUser",value:function(e){this.usersToAdd.delete(e)}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.users.filter(function(o){var a;return o.username.toLowerCase().includes(i)||(null===(a=o.email)||void 0===a?void 0:a.toLowerCase().includes(i))})}}},{key:"displayFn",value:function(e){return e&&e.username?e.username:""}}]),n}();function ZKe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}YI.\u0275fac=function(r){return new(r||YI)(t.Y36(lr),t.Y36(go),t.Y36(J.QS),t.Y36(zb),t.Y36(Sc),t.Y36(Bl),t.Y36(Pn))},YI.\u0275cmp=t.Xpm({type:YI,selectors:[["app-add-group-dialog"]],features:[t._Bn([zb])],decls:25,vars:14,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","groupName","placeholder","Please enter group name",3,"ngClass","keydown"],[4,"ngIf"],[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"users"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"],[3,"value"],[1,"userList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new group"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(a){return e.onKeyDown(a)}),t.qZA(),t.YNc(5,AKe,2,0,"mat-error",4),t.YNc(6,OKe,2,0,"mat-error",4),t.YNc(7,IKe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"h5"),t._uU(9,"Add users to group: "),t.qZA(),t.TgZ(10,"mat-form-field",5)(11,"mat-label"),t._uU(12,"Users"),t.qZA(),t._UZ(13,"input",6),t.TgZ(14,"mat-autocomplete",7,8),t.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),t.YNc(16,PKe,2,3,"mat-option",9),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"div",10),t.YNc(19,RKe,8,2,"div",11),t.qZA(),t.TgZ(20,"div",12)(21,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",14),t.NdJ("click",function(){return e.onAddClick()}),t._uU(24," Add group "),t.qZA()()),2&r){var i=t.MAs(15);t.xp6(2),t.Q6J("formGroup",e.groupNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(12,LKe,null==e.form.groupName?null:e.form.groupName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.touched)&&(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),t.xp6(6),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(17,10,e.filteredUsers)),t.xp6(3),t.Q6J("ngForOf",e.usersToAdd)}},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,cn,Dn,Kn,yr,ur,Wt.ey,Jf,Qf,ge.Ov],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var KI=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();KI.\u0275fac=function(r){return new(r||KI)(t.Y36(lr),t.Y36(go))},KI.\u0275cmp=t.Xpm({type:KI,selectors:[["app-delete-group-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete group named: "),t.qZA(),t.YNc(2,ZKe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.groups))},dependencies:[ge.sg,cn,yr,ur],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var qI=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();qI.\u0275fac=function(r){return new(r||qI)},qI.\u0275pipe=t.Yjl({name:"groupFilter",type:qI,pure:!0});var NKe=["groupsPaginator"],BKe=["groupsSort"];function FKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",28)(1,"mat-checkbox",29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function UKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",30)(1,"mat-checkbox",31),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function HKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Name"),t.qZA())}function jKe(n,r){if(1&n&&(t.TgZ(0,"td",33)(1,"a",34),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),t.xp6(1),t.Oqu(e.name)}}function GKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Creation date"),t.qZA())}function zKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function WKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Last update"),t.qZA())}function VKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function YKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," is built-in"),t.qZA())}function KKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.is_builtin," ")}}function qKe(n,r){1&n&&t._UZ(0,"th",35)}function JKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"button",36),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function QKe(n,r){1&n&&t._UZ(0,"tr",37)}function XKe(n,r){1&n&&t._UZ(0,"tr",38)}var $Ke=function(){return{standalone:!0}},eqe=function(){return[5,10,20]};function tqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Groups"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected groups "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addGroup())}),t._uU(8," Add group "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"groupFilter"),t.ynx(16,13),t.YNc(17,FKe,2,2,"th",14),t.YNc(18,UKe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,HKe,2,0,"th",17),t.YNc(21,jKe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,GKe,2,0,"th",17),t.YNc(24,zKe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,WKe,2,0,"th",17),t.YNc(27,VKe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,YKe,2,0,"th",17),t.YNc(30,KKe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,qKe,1,0,"th",23),t.YNc(33,JKe,4,0,"td",18),t.BQk(),t.YNc(34,QKe,1,0,"tr",24),t.YNc(35,XKe,1,0,"tr",25),t.qZA(),t._UZ(36,"mat-paginator",26,27),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,$Ke)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(21),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,eqe))}}function nqe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",39),t.qZA())}var JI=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.groupService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","is_builtin","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Af,this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.groupsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.groupsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.groups.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.groups.forEach(function(i){return e.selection.select(i)})}},{key:"addGroup",value:function(){var e=this;this.dialog.open(YI,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.groupService.getGroups(this.controller).subscribe(function(i){e.isReady=!0,e.groups=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(KI,{width:"500px",height:"250px",data:{groups:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.groupService.delete(i.controller,s.user_group_id)});(0,N0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),n}();function rqe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," role name is required "),t.qZA())}function iqe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," Role name is incorrect "),t.qZA())}JI.\u0275fac=function(r){return new(r||JI)(t.Y36(fr),t.Y36(rr),t.Y36(Pn),t.Y36(Sc),t.Y36(Hr))},JI.\u0275cmp=t.Xpm({type:JI,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(NKe,5),t.Gf(BKe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.groupsPaginator=i),t.iGM(i=t.CRH())&&(e.groupsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-group-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-group-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search group by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["groupsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","is_builtin"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["groupsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,tqe,38,12,"div",0),t.YNc(1,nqe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ei,zu,vp,qI],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-group-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var oqe=function(r){return{"is-invalid":r}},QI=function(){function n(r,e,i){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new J.p4,description:new J.p4})}},{key:"form",get:function(){return this.roleNameForm.controls}},{key:"onAddClick",value:function(){if(!this.roleNameForm.invalid){var e=this.roleNameForm.controls.name.value,i=this.roleNameForm.controls.description.value;this.dialogRef.close({name:e,description:i})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function aqe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}QI.\u0275fac=function(r){return new(r||QI)(t.Y36(lr),t.Y36(go),t.Y36(J.QS))},QI.\u0275cmp=t.Xpm({type:QI,selectors:[["app-add-role-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Please enter role name",3,"ngClass"],[4,"ngIf"],["matInput","","type","text","formControlName","description","placeholder","Please enter a description"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new role"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field"),t._UZ(4,"input",2),t.YNc(5,rqe,2,0,"mat-error",3),t.YNc(6,iqe,2,0,"mat-error",3),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",4),t.qZA(),t.TgZ(9,"div",5)(10,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13," Add Role "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.roleNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,oqe,null==e.form.name?null:e.form.name.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.touched)&&(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var XI=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();XI.\u0275fac=function(r){return new(r||XI)(t.Y36(lr),t.Y36(go))},XI.\u0275cmp=t.Xpm({type:XI,selectors:[["app-delete-role-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete role named: "),t.qZA(),t.YNc(2,aqe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.roles))},dependencies:[ge.sg,cn,yr,ur],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var $I=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();$I.\u0275fac=function(r){return new(r||$I)},$I.\u0275pipe=t.Yjl({name:"roleFilter",type:$I,pure:!0});var sqe=["rolesPaginator"],lqe=["rolesSort"];function uqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",26)(1,"mat-checkbox",27),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function cqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"mat-checkbox",28),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function dqe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Name"),t.qZA())}var pqe=function(r,e){return["/controller",r,"management","roles",e]};function fqe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",30),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,pqe,i.controller.id,e.role_id))("matTooltip",e.name),t.xp6(1),t.Oqu(e.name)}}function hqe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Description"),t.qZA())}function mqe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",31),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.description),t.xp6(1),t.Oqu(e.description)}}function _qe(n,r){1&n&&t._UZ(0,"mat-header-cell",26)}function gqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function vqe(n,r){1&n&&t._UZ(0,"mat-header-row")}function yqe(n,r){1&n&&t._UZ(0,"mat-row")}var bqe=function(){return{standalone:!0}},Cqe=function(){return[5,10,20]};function wqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Roles"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete roles "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addRole())}),t._uU(8," Add role "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"roleFilter"),t.ynx(18,14),t.YNc(19,uqe,2,2,"mat-header-cell",15),t.YNc(20,cqe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,dqe,2,0,"mat-header-cell",18),t.YNc(23,fqe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,hqe,2,0,"mat-header-cell",18),t.YNc(26,mqe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,_qe,1,0,"mat-header-cell",15),t.YNc(29,gqe,4,0,"mat-cell",16),t.BQk(),t.YNc(30,vqe,1,0,"mat-header-row",22),t.YNc(31,yqe,1,0,"mat-row",23),t.qZA(),t._UZ(32,"mat-paginator",24,25),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,bqe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,Cqe))}}function kqe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",33),t.qZA())}var eP=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Af,this.displayedColumns=["select","name","description","delete"],this.selection=new Ci.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.rolesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.rolesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"refresh",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addRole",value:function(){var e=this;this.dialog.open(QI,{width:"400px",autoFocus:!1,disableClose:!0,data:{controller:this.controller}}).afterClosed().subscribe(function(o){o&&e.roleService.create(e.controller,o).subscribe(function(){e.toasterService.success("".concat(o.name," role created")),e.refresh()},function(a){return e.toasterService.error("".concat(a.message,"\n ").concat(a.error.message))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(i){return e.selection.select(i)})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(XI,{width:"500px",height:"250px",data:{roles:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.roleService.delete(i.controller,s.role_id)});(0,N0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),n}();function Tqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-icon",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.addUser(o))}),t._uU(1,"add"),t.qZA()}}function Mqe(n,r){1&n&&t._UZ(0,"mat-spinner")}function Sqe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.YNc(5,Tqe,2,0,"mat-icon",6),t.YNc(6,Mqe,1,0,"mat-spinner",7),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.email),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",i.loading)}}eP.\u0275fac=function(r){return new(r||eP)(t.Y36(fr),t.Y36(dr),t.Y36(bp),t.Y36(Hs),t.Y36(rr),t.Y36(Hr),t.Y36(Pn))},eP.\u0275cmp=t.Xpm({type:eP,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(sqe,5),t.Gf(lqe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.rolesPaginator=i),t.iGM(i=t.CRH())&&(e.rolesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search role by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","rolesSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","description"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["rolesPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,wqe,34,12,"div",0),t.YNc(1,kqe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ei,zu,vp,ai,$I],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.permission[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-right:20px;font-size:10px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]});var tP=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new to.X([]),this.displayedUsers=new to.X([]),this.loading=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,Tf.H)(500).subscribe(function(){var i=e.users.value.filter(function(o){var a;return o.username.includes(e.searchText)||(null===(a=o.email)||void 0===a?void 0:a.includes(e.searchText))});e.displayedUsers.next(i)})}},{key:"getUsers",value:function(){var e=this;(0,N0.D)([this.userService.list(this.data.controller),this.groupService.getGroupMember(this.data.controller,this.data.group.user_group_id)]).subscribe(function(i){var o=(0,Nn.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(d){return d.user_id===u.user_id})});e.users.next(l),e.displayedUsers.next(l)})}},{key:"addUser",value:function(e){var i=this;this.loading=!0,this.groupService.addMemberToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("user ".concat(e.username," was added")),i.getUsers(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding user ".concat(e.username," to group ").concat(i.data.group.name)),i.loading=!1})}}]),n}();tP.\u0275fac=function(r){return new(r||tP)(t.Y36(lr),t.Y36(go),t.Y36(Bl),t.Y36(Sc),t.Y36(Pn))},tP.\u0275cmp=t.Xpm({type:tP,selectors:[["app-add-user-to-group-dialog"]],decls:10,vars:5,consts:[[1,"title"],[1,"filter"],[1,"input-field"],["matInput","","type","text",3,"ngModel","ngModelChange","keydown"],["class","userList",4,"ngFor","ngForOf"],[1,"userList"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h3"),t._uU(2),t.qZA()(),t.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Search user "),t.qZA(),t.TgZ(7,"input",3),t.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),t.qZA()()(),t.YNc(8,Sqe,7,4,"div",4),t.ALo(9,"async")),2&r&&(t.xp6(2),t.hij("Add User To group: ",e.data.group.name,""),t.xp6(5),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(9,3,e.displayedUsers)))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,kn.KE,kn.hX,Dn,Kn,xl,ge.Ov],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}.title[_ngcontent-%COMP%]{width:100%;text-align:center}.filter[_ngcontent-%COMP%]{display:flex;width:600px;justify-content:center;margin-bottom:50px}mat-form-field[_ngcontent-%COMP%]{width:600px}input[_ngcontent-%COMP%]{width:100%}.userList[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:10px}mat-spinner[_ngcontent-%COMP%]{width:36px}"]});var xT,nP=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),n}();nP.\u0275fac=function(r){return new(r||nP)(t.Y36(lr),t.Y36(go))},nP.\u0275cmp=t.Xpm({type:nP,selectors:[["app-remove-user-to-group-dialog"]],decls:10,vars:1,consts:[[1,"header"],[1,"button"],["mat-button","","mat-raised-button","","color","primary",3,"click"],["mat-button","","mat-raised-button","","color","warn",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2,"Confirm ?"),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA()(),t.TgZ(5,"div",1)(6,"button",2),t.NdJ("click",function(){return e.onCancel()}),t._uU(7,"No, cancel"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return e.onConfirm()}),t._uU(9,"Yes, remove"),t.qZA()()),2&r&&(t.xp6(4),t.hij("Removing: ",e.data.name,""))},dependencies:[cn],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:center}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-bottom:20px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}"]}),function(n){n.group="group",n.user="user"}(xT||(xT={}));var rP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?(i||(i={length:e.length,pageIndex:0,pageSize:5}),e.slice(i.pageIndex*i.pageSize,(i.pageIndex+1)*i.pageSize)):[]}}]),n}();rP.\u0275fac=function(r){return new(r||rP)},rP.\u0275pipe=t.Yjl({name:"paginator",type:rP,pure:!0});var iP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),n}();iP.\u0275fac=function(r){return new(r||iP)},iP.\u0275pipe=t.Yjl({name:"membersFilter",type:iP,pure:!0});var xqe=function(r,e){return["/controller",r,"management","users",e]};function Eqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"a",30)(2,"div"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-icon",14),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.openRemoveUserDialog(l))}),t._uU(5,"delete"),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,xqe,o.controller.id,i.user_id)),t.xp6(2),t.Oqu(i.username)}}function Dqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Endpoint "),t.qZA())}function Aqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function Oqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Role "),t.qZA())}function Iqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function Pqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Propagate "),t.qZA())}function Rqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function Lqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Allowed "),t.qZA())}function Zqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function Nqe(n,r){1&n&&t._UZ(0,"tr",33)}function Bqe(n,r){1&n&&t._UZ(0,"tr",34)}var Fqe=function(r){return["/controller",r,"management","groups"]},Uqe=function(){return[5,20,50,100]},oP=function(){function n(r,e,i,o,a,s){var l=this;(0,U.Z)(this,n),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.aclService=a,this.roleService=s,this.aceDatasource=new Af,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"],this.route.data.subscribe(function(u){l.controller=u.controller,l.group=u.group,l.aces=u.aces,l.members=u.members.sort(function(d,h){return d.username.toLowerCase().localeCompare(h.username.toLowerCase())}),l.editGroupForm=new J.nJ({groupname:new J.p4(l.group.name,[J.kI.required])})})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.aclService.getEndpoints(e.controller).subscribe(function(o){e.aceDatasource.data=e.aces.map(function(a){var s=o.filter(function(u){return u.endpoint===a.path})[0],l=i.filter(function(u){return u.role_id===a.role_id})[0];return Object.assign(Object.assign({},a),{endpoint_name:s.name,role_name:l.name})})})})}},{key:"onUpdate",value:function(){var e=this;this.group.name=this.editGroupForm.get("groupname").value,console.log(this.editGroupForm.get("groupname")),this.groupService.update(this.controller,this.group).subscribe(function(){e.toastService.success("group updated")},function(i){e.toastService.error("Error: Cannot update group"),console.log(i)})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(tP,{width:"700px",height:"500px",data:{controller:this.controller,group:this.group}}).afterClosed().subscribe(function(){e.reloadMembers()})}},{key:"openRemoveUserDialog",value:function(e){var i=this;this.dialog.open(nP,{width:"500px",height:"200px",data:{name:e.username}}).afterClosed().subscribe(function(o){o&&i.groupService.removeUser(i.controller,i.group,e).subscribe(function(){i.toastService.success("User ".concat(e.username," was removed")),i.reloadMembers()},function(a){i.toastService.error("Error while removing user ".concat(e.username," from ").concat(i.group.name)),console.log(a)})})}},{key:"reloadMembers",value:function(){var e=this;this.groupService.getGroupMember(this.controller,this.group.user_group_id).subscribe(function(i){e.members=i})}}]),n}();oP.\u0275fac=function(r){return new(r||oP)(t.Y36(fr),t.Y36(Hr),t.Y36(Sc),t.Y36(Pn),t.Y36(yp),t.Y36(bp))},oP.\u0275cmp=t.Xpm({type:oP,selectors:[["app-group-details"]],decls:59,vars:24,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to group management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to group management"],[1,"col"],["label","Details",1,"details"],[1,"input-field",3,"formGroup"],["matInput","","type","text","formControlName","groupname"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["label","Members"],[1,"members"],[1,"clickable",3,"click"],[1,"search"],["matInput","","placeholder","filter members",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],["label","ACEs"],[1,"default-content"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"form",7)(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Group name:"),t.qZA(),t._UZ(16,"input",8),t.qZA()()(),t.TgZ(17,"div")(18,"mat-checkbox",9),t._uU(19,"Is built-in"),t.qZA()(),t.TgZ(20,"div",10)(21,"button",11),t.NdJ("click",function(){return e.onUpdate()}),t._uU(22," Update Group "),t.qZA()()(),t.TgZ(23,"div")(24,"div"),t._uU(25),t.qZA(),t.TgZ(26,"div"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.qZA()()(),t.TgZ(30,"mat-tab",12)(31,"div",13)(32,"div")(33,"mat-icon",14),t.NdJ("click",function(){return e.openAddUserDialog()}),t._uU(34,"person_add"),t.qZA()(),t.TgZ(35,"div",15)(36,"mat-form-field")(37,"input",16),t.NdJ("ngModelChange",function(o){return e.searchMembers=o}),t.qZA()()(),t.YNc(38,Eqe,6,5,"div",17),t.ALo(39,"paginator"),t.ALo(40,"membersFilter"),t.TgZ(41,"mat-paginator",18),t.NdJ("page",function(o){return e.pageEvent=o}),t.qZA()()(),t.TgZ(42,"mat-tab",19)(43,"div",20)(44,"table",21),t.ynx(45,22),t.YNc(46,Dqe,2,0,"th",23),t.YNc(47,Aqe,2,1,"td",24),t.BQk(),t.ynx(48,25),t.YNc(49,Oqe,2,0,"th",23),t.YNc(50,Iqe,2,1,"td",24),t.BQk(),t.ynx(51,26),t.YNc(52,Pqe,2,0,"th",23),t.YNc(53,Rqe,2,1,"td",24),t.BQk(),t.ynx(54,27),t.YNc(55,Lqe,2,0,"th",23),t.YNc(56,Zqe,2,1,"td",24),t.BQk(),t.YNc(57,Nqe,1,0,"tr",28),t.YNc(58,Bqe,1,0,"tr",29),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(21,Fqe,e.controller.id)),t.xp6(4),t.hij("Group ",e.group.name,""),t.xp6(5),t.Q6J("formGroup",e.editGroupForm),t.xp6(6),t.Q6J("checked",e.group.is_builtin),t.xp6(3),t.Q6J("disabled",!e.editGroupForm.valid||e.group.is_builtin),t.xp6(4),t.hij("Creation date: ",e.group.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.group.updated_at,""),t.xp6(2),t.hij("UUID: ",e.group.user_group_id,""),t.xp6(8),t.Q6J("ngModel",e.searchMembers),t.xp6(1),t.Q6J("ngForOf",t.xi3(39,15,t.xi3(40,18,e.members,e.searchMembers),e.pageEvent)),t.xp6(3),t.Q6J("length",e.members.length)("pageSizeOptions",t.DdM(23,Uqe)),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[ge.sg,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,md,cn,Z0,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,ur,ei,ai,Zi.SP,Zi.uX,rP,iP],styles:["table[_ngcontent-%COMP%]{width:100%}.main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.members[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}.members[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:5px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.details[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}.button-div[_ngcontent-%COMP%]{float:right}.members[_ngcontent-%COMP%] > .search[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:stretch;width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.roles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var ET=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.getGroupMember(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();ET.\u0275fac=function(r){return new(r||ET)(t.LFG(rr),t.LFG(Sc))},ET.\u0275prov=t.Yz7({token:ET,factory:ET.\u0275fac,providedIn:"root"});var DT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();DT.\u0275fac=function(r){return new(r||DT)(t.LFG(rr),t.LFG(Sc))},DT.\u0275prov=t.Yz7({token:DT,factory:DT.\u0275fac,providedIn:"root"});var AT=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/privileges")}}]),n}();AT.\u0275fac=function(r){return new(r||AT)(t.LFG(mo.zw))},AT.\u0275prov=t.Yz7({token:AT,factory:AT.\u0275fac,providedIn:"root"});var ale=function(){function n(r){(0,U.Z)(this,n),this.ownedPrivileges=r,this.change={add:new Set,delete:new Set}}return(0,B.Z)(n,[{key:"add",value:function(e){this.change.delete.has(e)&&this.change.delete.delete(e),!this.ownedPrivileges.includes(e)&&this.change.add.add(e)}},{key:"delete",value:function(e){this.change.add.has(e)&&this.change.add.delete(e),this.ownedPrivileges.includes(e)&&this.change.delete.add(e)}},{key:"isAdded",value:function(e){return this.change.add.has(e)}},{key:"isDeleted",value:function(e){return this.change.delete.has(e)}},{key:"get",value:function(){return{add:Array.from(this.change.add),delete:Array.from(this.change.delete)}}}]),n}(),aP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e){if(e){var i={};e.forEach(function(h){var g=h.name.split("."),C=(0,Nn.Z)(g,2),Z=C[0],z=C[1];i.hasOwnProperty(Z)?i[Z].push({verb:z,privilege:h}):i[Z]=[{verb:z,privilege:h}]});for(var o=[],a=0,s=Object.entries(i);a<s.length;a++){var l=(0,Nn.Z)(s[a],2),u=l[0],d=l[1];o.push({key:u,values:d})}return o}}}]),n}();function Hqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8)(1,"mat-icon",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!0)}),t._uU(2,"edit"),t.qZA()()}}function jqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!1)}),t._uU(1,"Cancel"),t.qZA()}}function Gqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.close())}),t._uU(1,"Update"),t.qZA()}}function zqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Hqe,3,0,"button",5),t.YNc(2,jqe,2,0,"button",6),t.YNc(3,Gqe,2,0,"button",7),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode)}}aP.\u0275fac=function(r){return new(r||aP)},aP.\u0275pipe=t.Yjl({name:"groupPrivileges",type:aP,pure:!0});var Wqe=function(r,e){return{add:r,delete:e}};function Vqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"mat-checkbox",19),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.onPrivilegeChange(s.checked,u.privilege))}),t.qZA(),t.TgZ(2,"div",20),t._uU(3),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("checked",o.ownedPrivilegesList.includes(i.privilege.privilege_id)),t.xp6(1),t.Q6J("ngClass",t.WLB(3,Wqe,o.changer.isAdded(i.privilege.privilege_id),o.changer.isDeleted(i.privilege.privilege_id))),t.xp6(1),t.hij(" ",i.verb,"")}}function Yqe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",14)(2,"div",15),t._uU(3),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,Vqe,4,6,"div",17),t.qZA()()()),2&n){var e=t.oxw().$implicit;t.xp6(3),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}var Kqe=function(r){return{box:r}};function qqe(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(4);t.Q6J("ngClass",t.VKq(2,Kqe,i.ownedPrivilegesList.includes(e.privilege.privilege_id))),t.xp6(1),t.Oqu(e.verb)}}function Jqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,qqe,2,4,"div",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngIf",i.ownedPrivilegesList.includes(e.privilege.privilege_id))}}function Qqe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t._uU(2),t.qZA(),t.TgZ(3,"div",16),t.YNc(4,Jqe,2,1,"div",4),t.qZA()()),2&n){var e=t.oxw(2).$implicit;t.xp6(2),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}function Xqe(n,r){if(1&n&&t.YNc(0,Qqe,5,2,"div",21),2&n){var e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngIf",i.ownedPrivilegesName.includes(e.key))}}function $qe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Yqe,6,2,"div",12),t.YNc(2,Xqe,1,1,"ng-template",null,13,t.W1O),t.qZA()),2&n){var e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.editMode)("ngIfElse",e)}}var sle=".header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:20px;padding-left:10px}.privileges[_ngcontent-%COMP%]{padding-left:10px;display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{justify-content:center}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:10px}.box[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{margin-right:10px}.box[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row}.privilege[_ngcontent-%COMP%]{width:32vw;display:flex;flex-direction:row;margin-bottom:10px;justify-content:center;border:solid white 1px}.key[_ngcontent-%COMP%]{color:gray;display:flex;width:15%;margin-left:10px}.values[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.values[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:20%}.add[_ngcontent-%COMP%]{color:green}.delete[_ngcontent-%COMP%]{color:red;text-decoration:line-through}",sP=function(){function n(){(0,U.Z)(this,n),this.disable=!0,this.privileges=[],this.update=new t.vpe,this.ownedPrivilegesName=[],this.ownedPrivilegesList=[],this.changer=new ale(this.ownedPrivilegesList),this.editModeState=!1}return(0,B.Z)(n,[{key:"ownedPrivilege",set:function(e){e&&(this.ownedPrivilegesName=e.map(function(i){return i.name.split(".")[0]}),this.ownedPrivilegesList=e.map(function(i){return i.privilege_id}))}},{key:"editMode",get:function(){return this.editModeState},set:function(e){e&&(this.changer=new ale(this.ownedPrivilegesList)),this.editModeState=e}},{key:"ngOnInit",value:function(){}},{key:"onPrivilegeChange",value:function(e,i){var o=i.privilege_id;e?this.changer.add(o):this.changer.delete(o)}},{key:"close",value:function(){this.update.emit(this.changer.get()),this.editMode=!1}}]),n}();sP.\u0275fac=function(r){return new(r||sP)},sP.\u0275cmp=t.Xpm({type:sP,selectors:[["app-privilege"]],inputs:{disable:"disable",privileges:"privileges",ownedPrivilege:"ownedPrivilege"},outputs:{update:"update"},decls:7,vars:4,consts:[[1,"privileges"],[1,"header"],[1,"title"],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","",4,"ngIf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-button",""],[3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf","ngIfElse"],["normalMode",""],[1,"privilege"],[1,"key"],[1,"values"],["class","box",4,"ngFor","ngForOf"],[1,"box"],[3,"checked","change"],[3,"ngClass"],["class","privilege",4,"ngIf"],[3,"ngClass",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3,"Privileges"),t.qZA(),t.YNc(4,zqe,4,3,"div",3),t.qZA(),t.YNc(5,$qe,4,2,"div",4),t.ALo(6,"groupPrivileges"),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",!e.disable),t.xp6(1),t.Q6J("ngForOf",t.lcZ(6,2,e.privileges)))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Dn,ei,aP],styles:[sle,sle]});var eJe=function(r){return["/controller",r,"management","roles"]},lP=function(){function n(r,e,i,o,a){var s=this;(0,U.Z)(this,n),this.roleService=r,this.toastService=e,this.route=i,this.privilegeService=o,this.fb=a,this.$role=new to.X({role_id:"",description:"",updated_at:"",is_builtin:!1,privileges:[],name:"",created_at:""}),this.$ownedPrivilegesId=this.$role.pipe((0,$n.U)(function(l){return l.privileges})),this.$role.subscribe(function(l){s.editRoleForm=a.group({rolename:[l.name],description:[l.description]})})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.roleId=i.role.role_id,e.privileges=e.privilegeService.get(e.controller),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})})}},{key:"onUpdate",value:function(){var e=this,i=this.$role.value;i.name=this.editRoleForm.get("rolename").value,i.description=this.editRoleForm.get("description").value,this.roleService.update(this.controller,i).subscribe(function(){e.toastService.success("role: ".concat(i.name," was updated")),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})},function(o){e.toastService.error("".concat(o.message,"\n ").concat(o.error.message))})}},{key:"onPrivilegesUpdate",value:function(e){var s,i=this,o=[],a=(0,xn.Z)(e.add);try{for(a.s();!(s=a.n()).done;){var l=s.value;o.push(this.roleService.setPrivileges(this.controller,this.roleId,l))}}catch(g){a.e(g)}finally{a.f()}var d,u=(0,xn.Z)(e.delete);try{for(u.s();!(d=u.n()).done;){var h=d.value;o.push(this.roleService.removePrivileges(this.controller,this.roleId,h))}}catch(g){u.e(g)}finally{u.f()}$i.y.forkJoin(o).subscribe(function(){i.roleService.getById(i.controller,i.roleId).subscribe(function(g){return i.$role.next(g)})})}}]),n}();lP.\u0275fac=function(r){return new(r||lP)(t.Y36(bp),t.Y36(Pn),t.Y36(fr),t.Y36(AT),t.Y36(J.qu))},lP.\u0275cmp=t.Xpm({type:lP,selectors:[["app-role-detail"]],decls:45,vars:34,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to role management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role management"],[1,"col"],[1,"main"],[1,"details"],[3,"formGroup"],["matInput","","type","text","formControlName","rolename"],["matInput","","type","text","formControlName","description"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[3,"disable","ownedPrivilege","privileges","update"]],template:function(r,e){var i,o,a,s,l,u,d;(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.ALo(8,"async"),t.qZA()(),t.TgZ(9,"div",6)(10,"div",7)(11,"form",8)(12,"div")(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Role name:"),t.qZA(),t._UZ(16,"input",9),t.qZA()(),t.TgZ(17,"div")(18,"mat-form-field")(19,"mat-label"),t._uU(20,"Description:"),t.qZA(),t._UZ(21,"input",10),t.qZA()()(),t.TgZ(22,"div"),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div"),t._uU(26),t.ALo(27,"async"),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.ALo(30,"async"),t.qZA(),t.TgZ(31,"div")(32,"mat-checkbox",11),t.ALo(33,"async"),t._uU(34,"Is built-in"),t.qZA()(),t.TgZ(35,"div",12)(36,"button",13),t.NdJ("click",function(){return e.onUpdate()}),t.ALo(37,"async"),t.ALo(38,"async"),t._uU(39," Update Role "),t.qZA()()(),t._UZ(40,"mat-divider",14),t.TgZ(41,"app-privilege",15),t.NdJ("update",function(g){return e.onPrivilegesUpdate(g)}),t.ALo(42,"async"),t.ALo(43,"async"),t.ALo(44,"async"),t.qZA()()()()),2&r)&&(t.xp6(3),t.Q6J("routerLink",t.VKq(32,eJe,e.controller.id)),t.xp6(4),t.hij("Role ",null==(i=t.lcZ(8,12,e.$role))?null:i.name,""),t.xp6(4),t.Q6J("formGroup",e.editRoleForm),t.xp6(12),t.hij("Creation date: ",null==(o=t.lcZ(24,14,e.$role))?null:o.created_at,""),t.xp6(3),t.hij("Last update Date: ",null==(a=t.lcZ(27,16,e.$role))?null:a.updated_at,""),t.xp6(3),t.hij("UUID: ",null==(s=t.lcZ(30,18,e.$role))?null:s.role_id,""),t.xp6(3),t.Q6J("checked",null==(l=t.lcZ(33,20,e.$role))?null:l.is_builtin),t.xp6(4),t.Q6J("disabled",!t.lcZ(37,22,e.editRoleForm.valueChanges)&&e.editRoleForm.valid||(null==(u=t.lcZ(38,24,e.$role))?null:u.is_builtin)),t.xp6(4),t.Q6J("vertical",!0),t.xp6(1),t.Q6J("disable",null==(d=t.lcZ(42,26,e.$role))?null:d.is_builtin)("ownedPrivilege",t.lcZ(43,28,e.$ownedPrivilegesId))("privileges",t.lcZ(44,30,e.privileges)))},dependencies:[Us,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,kn.hX,cn,Z0,Dn,Kn,ur,ei,pm.d,ai,sP,ge.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var lle,OT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.roleService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("role_id");o.controllerService.get(+s).then(function(u){o.roleService.getById(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();OT.\u0275fac=function(r){return new(r||OT)(t.LFG(rr),t.LFG(bp))},OT.\u0275prov=t.Yz7({token:OT,factory:OT.\u0275fac,providedIn:"root"}),function(n){n.project="project",n.node="node",n.link="link",n.user="user",n.group="group",n.pool="pool",n.image="image",n.template="template",n.root="root"}(lle||(lle={}));var tJe=function(){function n(){(0,U.Z)(this,n),this.expansionModel=new Ci.Ov(!0)}return(0,B.Z)(n,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,fn.Z)(this.getDescendants(e))),(i=this.expansionModel).select.apply(i,(0,fn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"collapseDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,fn.Z)(this.getDescendants(e))),(i=this.expansionModel).deselect.apply(i,(0,fn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),n}(),nJe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,U.Z)(this,e),(a=r.call(this)).getChildren=i,a.options=o,a.options&&(a.trackBy=a.options.trackBy),a}return(0,B.Z)(e,[{key:"expandAll",value:function(){var a,o=this;this.expansionModel.clear();var s=this.dataNodes.reduce(function(l,u){return[].concat((0,fn.Z)(l),(0,fn.Z)(o.getDescendants(u)),[u])},[]);(a=this.expansionModel).select.apply(a,(0,fn.Z)(s.map(function(l){return o._trackByValue(l)})))}},{key:"getDescendants",value:function(o){var a=[];return this._getDescendants(a,o),a.splice(1)}},{key:"_getDescendants",value:function(o,a){var s=this;o.push(a);var l=this.getChildren(a);Array.isArray(l)?l.forEach(function(u){return s._getDescendants(o,u)}):(0,Ay.b)(l)&&l.pipe((0,xi.q)(1),(0,ni.h)(Boolean)).subscribe(function(u){var h,d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;s._getDescendants(o,g)}}catch(C){d.e(C)}finally{d.f()}})}}]),e}(tJe),L5=new t.OlP("CDK_TREE_NODE_OUTLET_NODE"),Xf=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this._node=e});Xf.\u0275fac=function(r){return new(r||Xf)(t.Y36(t.s_b),t.Y36(L5,8))},Xf.\u0275dir=t.lG2({type:Xf,selectors:[["","cdkTreeNodeOutlet",""]]});var rJe=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.$implicit=r}),Ym=(0,B.Z)(function n(r){(0,U.Z)(this,n),this.template=r});Ym.\u0275fac=function(r){return new(r||Ym)(t.Y36(t.Rgc))},Ym.\u0275dir=t.lG2({type:Ym,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var Wu=function(){function n(r,e){(0,U.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new In.xQ,this._levels=new Map,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE})}return(0,B.Z)(n,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(i){return!i.when});e.length,this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var i,e=this;(0,Ci.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,Ay.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,qn.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Br.R)(this._onDestroy)).subscribe(function(o){return e.renderNodeChanges(o)}))}},{key:"renderNodeChanges",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,s=arguments.length>3?arguments[3]:void 0,l=o.diff(e);!l||(l.forEachOperation(function(u,d,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(d),i._levels.delete(u.item);else{var g=a.get(d);a.move(g,h)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(a){return a.when&&a.when(i,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,i,o,a){var s=this._getNodeDef(e,i),l=new rJe(e);this.treeControl.getLevel?l.level=this.treeControl.getLevel(e):void 0!==a&&this._levels.has(a)?l.level=this._levels.get(a)+1:l.level=0,this._levels.set(e,l.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,l,i),hu.mostRecentTreeNode&&(hu.mostRecentTreeNode.data=e)}}]),n}();Wu.\u0275fac=function(r){return new(r||Wu)(t.Y36(t.ZZ4),t.Y36(t.sBO))},Wu.\u0275cmp=t.Xpm({type:Wu,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Ym,5),2&r)&&(t.iGM(o=t.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Xf,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Xf],encapsulation:2});var hu=function(){function n(r,e){(0,U.Z)(this,n),this._elementRef=r,this._tree=e,this._destroyed=new In.xQ,this._dataChanges=new In.xQ,n.mostRecentTreeNode=this,this.role="treeitem"}return(0,B.Z)(n,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function iJe(n){for(var r=n.parentElement;r&&!oJe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,Mn.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}}]),n}();function oJe(n){var r=n.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}hu.mostRecentTreeNode=null,hu.\u0275fac=function(r){return new(r||hu)(t.Y36(t.SBq),t.Y36(Wu))},hu.\u0275dir=t.lG2({type:hu,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var $f=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree.treeControl.getChildren;var a=this._tree.treeControl.getChildren(this.data);Array.isArray(a)?this.updateChildrenNodes(a):(0,Ay.b)(a)&&a.pipe((0,Br.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Br.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(o){var a=this._getNodeOutlet();if(o&&(this._children=o),a&&this._children){var s=a.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,s,this._data)}else this._dataDiffer.diff([])}},{key:"_clear",value:function(){var o=this._getNodeOutlet();o&&(o.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var o=this,a=this.nodeOutlet;return a&&a.find(function(s){return!s._node||s._node===o})}}]),e}(hu);$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.SBq),t.Y36(Wu),t.Y36(t.ZZ4))},$f.\u0275dir=t.lG2({type:$f,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Xf,5),2&r)&&(t.iGM(o=t.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[t._Bn([{provide:hu,useExisting:$f},{provide:L5,useExisting:$f}]),t.qOj]});var aJe=/([A-Za-z%]+)$/,Wb=function(){function n(r,e,i,o){var a=this;(0,U.Z)(this,n),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new In.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Br.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,B.Z)(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?"".concat(i*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this._paddingIndent();if(i!==this._currentPadding||e){var o=this._element.nativeElement,a=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",s="paddingLeft"===a?"paddingRight":"paddingLeft";o.style[a]=i||"",o.style[s]="",this._currentPadding=i}}},{key:"_setLevelInput",value:function(e){this._level=(0,Mn.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(aJe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,Mn.su)(i),this._setPadding()}}]),n}();Wb.\u0275fac=function(r){return new(r||Wb)(t.Y36(hu),t.Y36(Wu),t.Y36(t.SBq),t.Y36(Ls.Is,8))},Wb.\u0275dir=t.lG2({type:Wb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var _v=function(){function n(r,e){(0,U.Z)(this,n),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,B.Z)(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,Mn.Ig)(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),n}();_v.\u0275fac=function(r){return new(r||_v)(t.Y36(Wu),t.Y36(hu))},_v.\u0275dir=t.lG2({type:_v,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var Vb=(0,B.Z)(function n(){(0,U.Z)(this,n)});Vb.\u0275fac=function(r){return new(r||Vb)},Vb.\u0275mod=t.oAB({type:Vb}),Vb.\u0275inj=t.cJS({});var sJe=function(){function n(r){(0,U.Z)(this,n),this.endpoints=r}return(0,B.Z)(n,[{key:"buildTreeFromEndpoints",value:function(){var e=this,i=[],o=[];return this.endpoints.forEach(function(a){var s=e.extractParent(a);o.push(s)}),o.forEach(function(a){a.depth>0&&o.filter(function(l){return l.splitEndp.join("/")==a.splitEndp.slice(0,a.depth-1).join("/")})[0].children.push(a)}),i.push(o.find(function(a){return 0===a.depth})),i}},{key:"extractParent",value:function(e){var i=e.endpoint.split("/"),o=[];return(i=i.filter(function(s){return""!==s&&"access"!==s})).length>0&&(o=i.slice(0,i.length-1)),{children:[],depth:i.length,splitEndp:i,endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name,parent:o}}}]),n}();function lJe(n,r){if(1&n&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.hij(" ",i.displayFn(e)," ")}}var uP=function(){function n(){(0,U.Z)(this,n),this.autocompleteControl=new J.p4,this.onSelection=new t.vpe}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){var e=this;this.filteredData=this.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(i){return e.filterFn(i,e.data)}))}}]),n}();function uJe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function cJe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function dJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div"),t._UZ(2,"button",23),t._uU(3),t.TgZ(4,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(5,uJe,3,0,"div",25),t.YNc(6,cJe,3,0,"div",25),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(2),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint)}}function pJe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function fJe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function hJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div")(2,"button",28)(3,"mat-icon",29),t._uU(4),t.qZA()(),t._uU(5),t.TgZ(6,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(7,pJe,3,0,"div",25),t.YNc(8,fJe,3,0,"div",25),t.qZA()(),t.TgZ(9,"div"),t.GkF(10,30),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.uIk("aria-label","Toggle "+i.name),t.xp6(2),t.hij(" ",o.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),t.xp6(1),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.ekj("example-tree-invisible",!o.treeControl.isExpanded(i))}}function mJe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.charAt(0).toUpperCase()+e.slice(1))}}function _Je(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.userSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.users)("eltType","Users")("displayFn",i.displayFnUser)("filterFn",i._filterUser)}}function gJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.groupSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.groups)("eltType","Groups")("displayFn",i.displayFn)("filterFn",i._filter)}}function vJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"ALLOWED "),t.qZA()}}function yJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"DENY "),t.qZA()}}uP.\u0275fac=function(r){return new(r||uP)},uP.\u0275cmp=t.Xpm({type:uP,selectors:[["app-autocomplete"]],inputs:{data:"data",eltType:"eltType",displayFn:"displayFn",filterFn:"filterFn"},outputs:{onSelection:"onSelection"},features:[t.TTD],decls:8,vars:7,consts:[[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,e){if(1&r&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",1),t.TgZ(4,"mat-autocomplete",2,3),t.NdJ("optionSelected",function(a){return e.onSelection.emit(a.option.value)}),t.YNc(6,lJe,2,2,"mat-option",4),t.ALo(7,"async"),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Oqu(e.eltType),t.xp6(1),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,5,e.filteredData))}},dependencies:[ge.sg,J.Fj,J.JJ,J.oH,kn.KE,kn.hX,Kn,Wt.ey,Jf,Qf,ge.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var cP=function(){function n(r,e,i,o,a,s,l){(0,U.Z)(this,n),this.dialogRef=r,this.aclService=e,this.userService=i,this.groupService=o,this.roleService=a,this.toasterService=s,this.data=l,this.allowed=!0,this.types=Object.values(xT),this.TREE_DATA=[],this.treeControl=new nJe(function(h){return h.children}),this.hasChild=function(h,g){return!!g.children&&g.children.length>0},this.endpoints=l.endpoints;var d=new sJe(this.endpoints).buildTreeFromEndpoints();this.treeDataSource=new Ci.P3(d),console.log(d)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addAceForm=new J.nJ({type:new J.p4(xT.user),role_id:new J.p4,propagate:new J.p4(!0)}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i}),this.userService.list(this.controller).subscribe(function(i){e.users=i}),this.roleService.get(this.controller).subscribe(function(i){e.roles=i})}},{key:"form",get:function(){return this.addAceForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this,i={ace_type:this.form.type.value,allowed:this.allowed,group_id:this.form.type.value===xT.group?this.selectedGroup.user_group_id:null,path:this.selectedEndpoint.endpoint,propagate:this.form.propagate.value,role_id:this.selectedRole.role_id,user_id:this.form.type.value===xT.user?this.selectedUser.user_id:null};i.path&&i.role_id&&(i.user_id||i.group_id)&&(this.aclService.add(this.controller,i).subscribe(function(o){e.toasterService.success("ACE was added for path ".concat(i.path))},function(o){e.toasterService.error("Cannot create ACE: ".concat(o.error.message))}),this.dialogRef.close())}},{key:"changeAllowed",value:function(){this.allowed=!this.allowed}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"displayFnUser",value:function(e){return e&&e.full_name&&e.username?e.username.concat(" - ",e.full_name):""}},{key:"_filter",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"_filterUser",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.full_name.toLowerCase().includes(o)||a.username.toLowerCase().includes(o)})}}},{key:"_filterRole",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"userSelection",value:function(e){this.selectedUser=e}},{key:"groupSelection",value:function(e){this.selectedGroup=e}},{key:"roleSelection",value:function(e){this.selectedRole=e}},{key:"endpointSelection",value:function(e){var i={endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name};this.selectedEndpoint=i}}]),n}();function bJe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.path," ")}}cP.\u0275fac=function(r){return new(r||cP)(t.Y36(lr),t.Y36(yp),t.Y36(Bl),t.Y36(Sc),t.Y36(bp),t.Y36(Pn),t.Y36(go))},cP.\u0275cmp=t.Xpm({type:cP,selectors:[["app-add-ace-dialog"]],decls:29,vars:16,consts:[["mat-dialog-title",""],[1,"input-field","d-flex",2,"height","380px",3,"formGroup"],[1,"d-inline-block",2,"width","75%","float","left","overflow-y","auto"],[3,"dataSource","treeControl"],["class","example-tree-node",4,"cdkTreeNodeDef"],["class","example-tree-node",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[2,"height","auto",3,"vertical"],[1,"form-div","d-inline-block","h-100"],[1,"typeSelect"],["placeholder","User/Group","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],[3,"data","eltType","displayFn","filterFn","onSelection",4,"ngIf"],[3,"data","eltType","displayFn","filterFn","onSelection"],[1,"d-flex","justify-content-between"],[1,"d-inline-block",2,"float","left"],["formControlName","propagate"],[1,"d-inline-block",2,"float","right"],["class","allow ","mat-button","",3,"click",4,"ngIf"],["class","deny","mat-button","",3,"click",4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"example-tree-node"],["mat-icon-button","","disabled",""],["mat-icon-button","",3,"click"],[4,"ngIf"],[1,"align-middle",2,"color","#696969"],[1,"align-middle"],["mat-icon-button","","cdkTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["cdkTreeNodeOutlet",""],[3,"value"],["mat-button","",1,"allow",3,"click"],["mat-button","",1,"deny",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new ACE"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"cdk-tree",3),t.YNc(5,dJe,7,5,"cdk-nested-tree-node",4),t.YNc(6,hJe,11,9,"cdk-nested-tree-node",5),t.qZA()(),t._UZ(7,"mat-divider",6),t.TgZ(8,"div",7)(9,"div")(10,"div",8)(11,"mat-select",9),t.YNc(12,mJe,2,2,"mat-option",10),t.qZA()(),t.YNc(13,_Je,1,4,"app-autocomplete",11),t.YNc(14,gJe,1,4,"app-autocomplete",11),t.TgZ(15,"app-autocomplete",12),t.NdJ("onSelection",function(o){return e.roleSelection(o)}),t.qZA(),t.TgZ(16,"div",13)(17,"div",14)(18,"mat-checkbox",15),t._uU(19,"Propagate"),t.qZA()(),t._UZ(20,"mat-divider",6),t.TgZ(21,"div",16),t.YNc(22,vJe,2,0,"button",17),t.YNc(23,yJe,2,0,"button",18),t.qZA()()(),t.TgZ(24,"div",19)(25,"button",20),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",21),t.NdJ("click",function(){return e.onAddClick()}),t._uU(28," Add ACE "),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.addAceForm),t.xp6(2),t.Q6J("dataSource",e.treeDataSource)("treeControl",e.treeControl),t.xp6(2),t.Q6J("cdkTreeNodeDefWhen",e.hasChild),t.xp6(1),t.Q6J("vertical",!0),t.xp6(5),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf","user"===e.form.type.value),t.xp6(1),t.Q6J("ngIf","group"===e.form.type.value),t.xp6(1),t.Q6J("data",e.roles)("eltType","Roles")("displayFn",e.displayFn)("filterFn",e._filter),t.xp6(5),t.Q6J("vertical",!0),t.xp6(2),t.Q6J("ngIf",e.allowed),t.xp6(1),t.Q6J("ngIf",!e.allowed),t.xp6(4),t.Q6J("disabled",!e.addAceForm.valid))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.sg,J.u,cn,Dn,yr,ur,ei,pm.d,$r.gD,Wt.ey,$f,Ym,_v,Wu,Xf,uP],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.height-100[_ngcontent-%COMP%]{height:100%}.button-div[_ngcontent-%COMP%]{float:right;position:absolute;right:0;bottom:0}.allow[_ngcontent-%COMP%]{background-color:green}.deny[_ngcontent-%COMP%]{background-color:#8b0000}.typeSelect[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.example-tree-node[_ngcontent-%COMP%]{display:block}.example-tree-node[_ngcontent-%COMP%] .example-tree-node[_ngcontent-%COMP%]{padding-left:40px}.form-div[_ngcontent-%COMP%]{position:relative;width:25%;float:right;margin-left:20px}.selected[_ngcontent-%COMP%]{color:green}"]});var IT=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();IT.\u0275fac=function(r){return new(r||IT)(t.Y36(lr),t.Y36(go))},IT.\u0275cmp=t.Xpm({type:IT,selectors:[["app-delete-ace-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following ACEs ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,bJe,2,1,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.aces))},dependencies:[ge.sg,cn,yr,ur]});var dP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i,o){var a=this;if(!e)return[];if(!i)return e;i=i.toLowerCase();var s=o.filter(function(l){return l.name.toLowerCase().includes(i)});return e.data.filter(function(l){var u=a.getEndpoint(l.user_id,o),d=a.getEndpoint(l.group_id,o),h=a.getEndpoint(l.path,o),g=a.getEndpoint(l.role_id,o);return s.some(function(C){return[u,d,h,g].includes(C.endpoint)})})}},{key:"getEndpoint",value:function(e,i){var o=i.filter(function(a){return a.endpoint.includes(e)});return o.length>0?o[0].endpoint.toLowerCase():""}}]),n}();dP.\u0275fac=function(r){return new(r||dP)},dP.\u0275pipe=t.Yjl({name:"aceFilter",type:dP,pure:!0});var CJe=["acesPaginator"],wJe=["acesSort"];function kJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",31)(1,"mat-checkbox",32),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function TJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"mat-checkbox",34),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function MJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Path"),t.qZA())}function SJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.path)," ")}}function xJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"User/Group"),t.qZA())}function EJe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Oqu(i.getNameByUuidFromEndpoint(e.user_id))}}function DJe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Oqu(i.getNameByUuidFromEndpoint(e.group_id))}}function AJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,EJe,2,1,"div",37),t.YNc(2,DJe,1,1,"ng-template",null,38,t.W1O),t.qZA()),2&n){var e=r.$implicit,i=t.MAs(3);t.xp6(1),t.Q6J("ngIf","user"===e.ace_type)("ngIfElse",i)}}function OJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Role"),t.qZA())}function IJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.role_id)," ")}}function PJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Propagate"),t.qZA())}function RJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function LJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Allowed"),t.qZA())}function ZJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function NJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Created"),t.qZA())}function BJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function FJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Last update"),t.qZA())}function UJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function HJe(n,r){1&n&&t._UZ(0,"th",39)}function jJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",36)(1,"button",40),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function GJe(n,r){1&n&&t._UZ(0,"tr",41)}function zJe(n,r){1&n&&t._UZ(0,"tr",42)}var WJe=function(){return{standalone:!0}},VJe=function(){return[5,10,20]};function YJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Access Control List (ACL)"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete selected ACEs "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addACE())}),t._uU(8," Add ACE "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"aceFilter"),t.ynx(16,13),t.YNc(17,kJe,2,2,"th",14),t.YNc(18,TJe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,MJe,2,0,"th",17),t.YNc(21,SJe,2,1,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,xJe,2,0,"th",17),t.YNc(24,AJe,4,2,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,OJe,2,0,"th",17),t.YNc(27,IJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,PJe,2,0,"th",17),t.YNc(30,RJe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,LJe,2,0,"th",17),t.YNc(33,ZJe,2,1,"td",18),t.BQk(),t.ynx(34,23),t.YNc(35,NJe,2,0,"th",17),t.YNc(36,BJe,2,1,"td",18),t.BQk(),t.ynx(37,24),t.YNc(38,FJe,2,0,"th",17),t.YNc(39,UJe,2,1,"td",18),t.BQk(),t.ynx(40,25),t.YNc(41,HJe,1,0,"th",26),t.YNc(42,jJe,4,0,"td",18),t.BQk(),t.YNc(43,GJe,1,0,"tr",27),t.YNc(44,zJe,1,0,"tr",28),t.qZA(),t._UZ(45,"mat-paginator",29,30),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(11,WJe)),t.xp6(2),t.Q6J("dataSource",t.Dn7(15,7,i.dataSource,i.searchText,i.endpoints)),t.xp6(30),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(12,VJe))}}function KJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var pP=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.aclService=o,this.dialog=a,this.displayedColumns=["select","path","user/group","role","propagate","allowed","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Af,this.isReady=!1,this.searchText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.aclService.getEndpoints(e.controller).subscribe(function(a){e.endpoints=a,e.refresh()})})}},{key:"ngAfterViewInit",value:function(){var e=this;this.acesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.acesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"path":case"user/group":case"role":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.aclService.list(this.controller).subscribe(function(i){e.isReady=!0,e.aces=i,e.dataSource.data=i,e.selection.clear()})}},{key:"addACE",value:function(){var e=this,i=this.dialog.open(cP,{width:"1200px",height:"500px",autoFocus:!1,disableClose:!0,data:{endpoints:this.endpoints}});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(IT,{width:"500px",data:{aces:[e]}}).afterClosed().subscribe(function(o){o&&i.aclService.delete(i.controller,e.ace_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete ace ".concat(e.ace_id))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.aces.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.aces.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(IT,{width:"500px",data:{aces:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.aclService.delete(e.controller,o.ace_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete ace ".concat(o.ace_id))})}),e.selection.clear())})}},{key:"getNameByUuidFromEndpoint",value:function(e){if(this.endpoints){var i=this.endpoints.filter(function(o){return o.endpoint.includes(e)});if(i.length>=1)return i[0].name}return""}}]),n}();pP.\u0275fac=function(r){return new(r||pP)(t.Y36(fr),t.Y36(rr),t.Y36(Pn),t.Y36(yp),t.Y36(Hr))},pP.\u0275cmp=t.Xpm({type:pP,selectors:[["app-acl-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(CJe,5),t.Gf(wJe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.acesPaginator=i),t.iGM(i=t.CRH())&&(e.acesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by path, user/group or role",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["acesSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","path"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user/group"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["acesPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["groupId",""],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,YJe,47,13,"div",0),t.YNc(1,KJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ei,zu,vp,dP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ace-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var Yb=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();Yb.\u0275fac=function(r){return new(r||Yb)},Yb.\u0275prov=t.Yz7({token:Yb,factory:Yb.\u0275fac});var qJe=function(r,e){return function(i){return(0,Tf.H)(500).pipe((0,Co.w)(function(){return e.getAll(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Km=function(){function n(r,e){(0,U.Z)(this,n),this.httpController=r,this.projectService=e}return(0,B.Z)(n,[{key:"getAll",value:function(e){return this.httpController.get(e,"/pools")}},{key:"get",value:function(e,i){return $i.y.forkJoin([this.httpController.get(e,"/pools/".concat(i)),this.httpController.get(e,"/pools/".concat(i,"/resources"))]).pipe((0,$n.U)(function(o){return o[0].resources=o[1],o[0]}))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/pools/".concat(i))}},{key:"add",value:function(e,i){return this.httpController.post(e,"/pools",{name:i})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id),{name:i.name})}},{key:"addResource",value:function(e,i,o){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id,"/resources/").concat(o.project_id),{})}},{key:"deleteResource",value:function(e,i,o){return this.httpController.delete(e,"/pools/".concat(o.resource_pool_id,"/resources/").concat(i.resource_id))}},{key:"getFreeResources",value:function(e){var i=this;return this.projectService.list(e).pipe((0,Co.w)(function(o){return i.getAllNonFreeResources(e).pipe((0,$n.U)(function(a){return a.map(function(s){return s.resource_id})}),(0,$n.U)(function(a){return o.filter(function(s){return!a.includes(s.project_id)})}))}))}},{key:"getAllNonFreeResources",value:function(e){var i=this;return this.getAll(e).pipe((0,Co.w)(function(o){return $i.y.forkJoin(o.map(function(a){return i.httpController.get(e,"/pools/".concat(a.resource_pool_id,"/resources"))}))}),(0,$n.U)(function(o){var l,a=[],s=(0,xn.Z)(o);try{for(s.s();!(l=s.n()).done;){var h,u=l.value,d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;a.push(g)}}catch(C){d.e(C)}finally{d.f()}}}catch(C){s.e(C)}finally{s.f()}return a}))}}]),n}();function JJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is required"),t.qZA())}function QJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is incorrect"),t.qZA())}function XJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool with this name exists"),t.qZA())}Km.\u0275fac=function(r){return new(r||Km)(t.LFG(mo.zw),t.LFG(zs.Y))},Km.\u0275prov=t.Yz7({token:Km,factory:Km.\u0275fac,providedIn:"root"});var $Je=function(r){return{"is-invalid":r}},fP=function(){function n(r,e,i,o,a,s){(0,U.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.poolNameValidator=o,this.resourcePoolsService=a,this.toasterService=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controller=this.data.controller,this.poolNameForm=this.formBuilder.group({poolName:new J.p4(null,[J.kI.required,this.poolNameValidator.get],[qJe(this.data.controller,this.resourcePoolsService)])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.poolNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.poolNameForm.invalid){var i=this.poolNameForm.controls.poolName.value;this.resourcePoolsService.add(this.controller,i).subscribe(function(o){e.dialogRef.close(!0)},function(o){e.toasterService.error("An error occur while trying to create new pool ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function eQe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}fP.\u0275fac=function(r){return new(r||fP)(t.Y36(lr),t.Y36(go),t.Y36(J.QS),t.Y36(Yb),t.Y36(Km),t.Y36(Pn))},fP.\u0275cmp=t.Xpm({type:fP,selectors:[["app-add-resource-pool-dialog"]],features:[t._Bn([Yb])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","poolName","placeholder","Please enter a resource pool name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new resource pool"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,JJe,2,0,"mat-error",4),t.YNc(6,QJe,2,0,"mat-error",4),t.YNc(7,XJe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add resource pool "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.poolNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,$Je,null==e.form.poolName?null:e.form.poolName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.touched)&&(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.projectExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,yr,ur],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var hP=function(){function n(r,e){(0,U.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();hP.\u0275fac=function(r){return new(r||hP)(t.Y36(lr),t.Y36(go))},hP.\u0275cmp=t.Xpm({type:hP,selectors:[["app-delete-resource-pool"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete pools named: "),t.qZA(),t.YNc(2,eQe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.pools))},dependencies:[ge.sg,cn,yr,ur],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var mP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();mP.\u0275fac=function(r){return new(r||mP)},mP.\u0275pipe=t.Yjl({name:"resourcePoolsFilter",type:mP,pure:!0});var tQe=["resourcePoolsPaginator"],nQe=["resourcePoolsSort"];function rQe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",27)(1,"mat-checkbox",28),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function iQe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",29)(1,"mat-checkbox",30),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function oQe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Name"),t.qZA())}function aQe(n,r){if(1&n&&(t.TgZ(0,"td",32)(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/pools/",e.resource_pool_id,""),t.xp6(1),t.Oqu(e.name)}}function sQe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Creation date"),t.qZA())}function lQe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function uQe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Last update"),t.qZA())}function cQe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function dQe(n,r){1&n&&t._UZ(0,"th",34)}function pQe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",32)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function fQe(n,r){1&n&&t._UZ(0,"tr",36)}function hQe(n,r){1&n&&t._UZ(0,"tr",37)}var mQe=function(){return{standalone:!0}},_Qe=function(){return[5,10,20]};function gQe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Resource pools"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected pools "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addResourcePool())}),t._uU(8," Add resource pool "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"resourcePoolsFilter"),t.ynx(16,13),t.YNc(17,rQe,2,2,"th",14),t.YNc(18,iQe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,oQe,2,0,"th",17),t.YNc(21,aQe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,sQe,2,0,"th",17),t.YNc(24,lQe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,uQe,2,0,"th",17),t.YNc(27,cQe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,dQe,1,0,"th",22),t.YNc(30,pQe,4,0,"td",18),t.BQk(),t.YNc(31,fQe,1,0,"tr",23),t.YNc(32,hQe,1,0,"tr",24),t.qZA(),t._UZ(33,"mat-paginator",25,26),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,mQe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(18),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,_Qe))}}function vQe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",38),t.qZA())}var _P=function(){function n(r,e,i,o,a){(0,U.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.resourcePoolsService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Af,this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.resourcePoolsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.resourcePoolsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.resourcePools.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.resourcePools.forEach(function(i){return e.selection.select(i)})}},{key:"addResourcePool",value:function(){var e=this;this.dialog.open(fP,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.getAll(this.controller).subscribe(function(i){e.isReady=!0,e.resourcePools=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(hP,{width:"500px",height:"250px",data:{pools:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.resourcePoolsService.delete(i.controller,s.resource_pool_id)});(0,N0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete resource pool")})}})}}]),n}();_P.\u0275fac=function(r){return new(r||_P)(t.Y36(fr),t.Y36(rr),t.Y36(Pn),t.Y36(Km),t.Y36(Hr))},_P.\u0275cmp=t.Xpm({type:_P,selectors:[["app-resource-pools-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(tQe,5),t.Gf(nQe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.resourcePoolsPaginator=i),t.iGM(i=t.CRH())&&(e.resourcePoolsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search resource pool by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["resourcePoolsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["resourcePoolsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,gQe,35,12,"div",0),t.YNc(1,vQe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,xl,ei,zu,vp,mP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ressourcePool-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var gP=function(){function n(r,e){(0,U.Z)(this,n),this.data=r,this.dialogRef=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();function yQe(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function bQe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",22)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",18)(5,"mat-icon",19),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteResource(s))}),t._uU(6,"delete"),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(2),t.Oqu(i.name)}}gP.\u0275fac=function(r){return new(r||gP)(t.Y36(bie),t.Y36(lr))},gP.\u0275cmp=t.Xpm({type:gP,selectors:[["app-delete-resource-confirmation-dialog"]],decls:7,vars:2,consts:[[1,"title"],[1,"button"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return e.dialogRef.close()}),t._uU(4,"Cancel"),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return e.dialogRef.close(e.data)}),t._uU(6,"Update"),t.qZA()()),2&r&&(t.xp6(1),t.AsE("delete resource ",e.data.resource_type,"/",e.data.name," ?"))},dependencies:[cn],styles:["[_nghost-%COMP%]{display:flex;margin:30px;flex-direction:column}.title[_ngcontent-%COMP%]{margin-bottom:50px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var CQe=function(r){return["/controller",r,"management","pools"]},vP=function(){function n(r,e,i,o){(0,U.Z)(this,n),this.toastService=r,this.route=e,this.resourcePoolsService=i,this.dialog=o,this.addResourceFormControl=new J.NI(""),this.projects=[],this.editPoolForm=new J.nJ({poolname:new J.p4})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.pool=i.pool,e.refresh()})}},{key:"onUpdate",value:function(){var e=this;this.resourcePoolsService.update(this.controller,this.pool).subscribe(function(i){e.toastService.success("pool ".concat(i.name,", updated"))})}},{key:"addResource",value:function(){var e=this,i=this.addResourceFormControl.value,o=this.projects.filter(function(a){return a.name.includes(i)});1!==o.length?0!==o.length?o.length>1&&this.toastService.error("".concat(o.length," match ").concat(i,", please be more accurate")):this.toastService.error("cannot found related project with string: ".concat(i)):this.resourcePoolsService.addResource(this.controller,this.pool,o[0]).subscribe(function(){e.toastService.success("project : ".concat(o[0].name,", added to pool: ").concat(e.pool.name)),e.refresh(),e.addResourceFormControl.setValue("")})}},{key:"deleteResource",value:function(e){var i=this;this.dialog.open(gP,{data:e}).afterClosed().subscribe(function(o){o&&i.resourcePoolsService.deleteResource(i.controller,o,i.pool).subscribe(function(){i.refresh(),i.toastService.success("resource ".concat(o.name," delete from pool ").concat(i.pool.name))})})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.get(this.controller,this.pool.resource_pool_id).subscribe(function(i){e.pool=i}),this.resourcePoolsService.getFreeResources(this.controller).subscribe(function(i){e.projects=i,e.addResourceFilteredOptions=e.addResourceFormControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e.projects.filter(function(a){return a.name.toLowerCase().includes(o.toLowerCase()||"")}).map(function(a){return a.name})}))})}}]),n}();vP.\u0275fac=function(r){return new(r||vP)(t.Y36(Pn),t.Y36(fr),t.Y36(Km),t.Y36(Hr))},vP.\u0275cmp=t.Xpm({type:vP,selectors:[["app-resource-pool-details"]],decls:38,vars:15,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","back to resource pools management","mattooltipclass","custom-tooltip",3,"routerLink"],["aria-label","back to resource pools management"],[1,"col"],[1,"main"],[1,"details"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"vertical"],[1,"resources"],[1,"addResource"],["type","text","placeholder","add project to resource pool","matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button",""],[3,"click"],["class","ownedResources",4,"ngFor","ngForOf"],[3,"value"],[1,"ownedResources"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),t._uU(13,"Resource pool name:"),t.qZA(),t.TgZ(14,"input",8),t.NdJ("ngModelChange",function(a){return e.pool.name=a}),t.qZA()()(),t.TgZ(15,"div"),t._uU(16),t.qZA(),t.TgZ(17,"div"),t._uU(18),t.qZA(),t.TgZ(19,"div"),t._uU(20),t.qZA(),t.TgZ(21,"div",9)(22,"button",10),t.NdJ("click",function(){return e.onUpdate()}),t._uU(23," Update resource pool "),t.qZA()()(),t._UZ(24,"mat-divider",11),t.TgZ(25,"div",12)(26,"div",13)(27,"div"),t._UZ(28,"input",14),t.TgZ(29,"mat-autocomplete",15,16),t.YNc(31,yQe,2,2,"mat-option",17),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div")(34,"button",18)(35,"mat-icon",19),t.NdJ("click",function(){return e.addResource()}),t._uU(36,"add"),t.qZA()()()(),t.YNc(37,bQe,7,1,"div",20),t.qZA()()()()),2&r){var i=t.MAs(30);t.xp6(3),t.Q6J("routerLink",t.VKq(13,CQe,e.controller.id)),t.xp6(4),t.hij("Resource pool ",e.pool.name,""),t.xp6(7),t.Q6J("ngModel",e.pool.name),t.xp6(2),t.hij("creation date: ",e.pool.created_at,""),t.xp6(2),t.hij("last update date: ",e.pool.updated_at,""),t.xp6(2),t.hij("uuid: ",e.pool.resource_pool_id,""),t.xp6(4),t.Q6J("vertical",!0),t.xp6(4),t.Q6J("formControl",e.addResourceFormControl)("matAutocomplete",i),t.xp6(3),t.Q6J("ngForOf",t.lcZ(32,11,e.addResourceFilteredOptions)),t.xp6(6),t.Q6J("ngForOf",e.pool.resources)}},dependencies:[ge.sg,Us,J.Fj,J.JJ,J.On,J.oH,kn.KE,kn.hX,cn,Z0,Dn,Kn,ur,pm.d,Wt.ey,ai,Jf,Qf,ge.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}.resources[_ngcontent-%COMP%]{display:flex;flex-direction:column}.ownedResources[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.addResource[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between}"]});var PT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.resourcePoolsService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("pool_id");o.controllerService.get(+s).then(function(u){o.resourcePoolsService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();PT.\u0275fac=function(r){return new(r||PT)(t.LFG(rr),t.LFG(Km))},PT.\u0275prov=t.Yz7({token:PT,factory:PT.\u0275fac,providedIn:"root"});var RT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.group_id===l});a.next(h),a.complete()})})})}}]),n}();RT.\u0275fac=function(r){return new(r||RT)(t.LFG(rr),t.LFG(yp))},RT.\u0275prov=t.Yz7({token:RT,factory:RT.\u0275fac,providedIn:"root"});var LT=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.user_id===l});a.next(h),a.complete()})})})}}]),n}();LT.\u0275fac=function(r){return new(r||LT)(t.LFG(rr),t.LFG(yp))},LT.\u0275prov=t.Yz7({token:LT,factory:LT.\u0275fac,providedIn:"root"});var wQe=[{path:"",component:PI,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:CI},{path:"bundled",component:ND},{path:"controller/:controller_id/login",component:XD},{path:"controller/:controller_id/loggeduser",component:HI},{path:"controller/:controller_id/image-manager",component:zI},{path:"controller/:controller_id/projects",component:fT,canActivate:[Fr],resolve:{controller:_d}},{path:"controller/:controller_id/help",component:YD},{path:"controller/:controller_id/settings",component:kI},{path:"controller/:controller_id/settings/console",component:wI},{path:"controller/:controller_id/management/users/:user_id",component:WI,canActivate:[Fr],resolve:{user:MT,groups:ST,aces:LT,controller:_d}},{path:"controller/:controller_id/management/pools/:pool_id",component:vP,canActivate:[Fr],resolve:{pool:PT,controller:_d}},{path:"installed-software",component:QD},{path:"controller/:controller_id/systemstatus",component:AI,canActivate:[Fr]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:jD,canActivate:[Fr]},{path:"controller/:controller_id/project/:project_id/snapshots",component:SI,canActivate:[Fr],resolve:{controller:_d}},{path:"controller/:controller_id/preferences",component:L2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin",component:e2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:m2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:f2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:h2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:v2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:_2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:g2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:p2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:n2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:i2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates",component:A2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:x2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:D2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:E2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates",component:F2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:N2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:B2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:Z2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/templates",component:K2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:Y2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:V2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:j2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:H2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:U2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/templates",component:W2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:z2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:G2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates",component:S2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:M2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:T2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:k2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates",component:R2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:P2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:I2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:O2,canActivate:[Fr]},{path:"controller/:controller_id/management",component:VI,children:[{path:"users",component:UI},{path:"groups",component:JI},{path:"roles",component:eP},{path:"pools",component:_P},{path:"ACL",component:pP}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:oP,resolve:{members:ET,controller:_d,group:DT,aces:RT}},{path:"controller/:controller_id/management/roles/:role_id",component:lP,resolve:{role:OT,controller:_d}}]},{path:"controller/:controller_id/project/:project_id",component:gI,canActivate:[Fr],canDeactivate:[Gb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:yT,canActivate:[Fr]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:yT,canActivate:[Fr]},{path:"**",component:$D}],ZT=(0,B.Z)(function n(){(0,U.Z)(this,n)});ZT.\u0275fac=function(r){return new(r||ZT)},ZT.\u0275mod=t.oAB({type:ZT}),ZT.\u0275inj=t.cJS({imports:[L0.forRoot(wQe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"}),L0]});var kQe=function(r,e){return{dark:r,light:e}},yP=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,U.Z)(this,n),this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=l,this.progressService=u,this.darkThemeEnabled=!1,e.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),e.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),l.events.subscribe(function(h){d.checkEvent(h)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(i){e.applyTheme(i)})}},{key:"applyTheme",value:function(e){this.darkThemeEnabled="dark-theme"===e,this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"checkEvent",value:function(e){e instanceof tB?this.progressService.activate():(e instanceof op||e instanceof TD||e instanceof IG)&&this.progressService.deactivate()}}]),n}();yP.\u0275fac=function(r){return new(r||yP)(t.Y36(Ei.Xj),t.Y36(Ef),t.Y36(Jt),t.Y36(jm.g),t.Y36(sl),t.Y36(Cc.f),t.Y36(dr),t.Y36(Hs))},yP.\u0275cmp=t.Xpm({type:yP,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&t.Tol(e.componentCssClass)},decls:2,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._UZ(1,"router-outlet"),t.qZA()),2&r&&t.Q6J("ngClass",t.WLB(1,kQe,e.darkThemeEnabled,!e.darkThemeEnabled))},dependencies:[ge.mk,cm],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var TQe=(0,B.Z)(function n(){(0,U.Z)(this,n)}),NT=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new TQe;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();NT.\u0275fac=function(r){return new(r||NT)},NT.\u0275prov=t.Yz7({token:NT,factory:NT.\u0275fac});var BT=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return cW(e,{context:"declarationList"}).children.forEach(function(a){"font-size"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Dimension"===s.type&&(i.font_size=parseInt(s.value))}),"font-family"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_family=s.name)}),"font-weight"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_weight=s.name)})}),i}}]),n}();BT.\u0275fac=function(r){return new(r||BT)},BT.\u0275prov=t.Yz7({token:BT,factory:BT.\u0275fac});var MQe=[$g,Bm,zf,Yg,Gf,Vf,Kg,jf,Vg,Tb,Qg,_b,fp,wb,yb,Cb,bb,Xg,kb],FT=(0,B.Z)(function n(){(0,U.Z)(this,n)});FT.\u0275fac=function(r){return new(r||FT)},FT.\u0275mod=t.oAB({type:FT}),FT.\u0275inj=t.cJS({providers:[Mc,is,av,Ob,Ib,Pb,Rb,Ff,Wf,ju,Nm,Hf,zg,Vs,Zl,dd,pd,Um,hd,Zm,Ug,Gg,hb,Lb,qf,uv,Zb,Wm,lv,NT,jg,Hg,mb,Uf,Am,Om,Im,Pm,Wg,pp,Pf,BT,qg,Jg].concat((0,fn.Z)(MQe)),imports:[ge.ez,Dg,Sg]});var Kb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(jB.o);Kb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Kb)))(e||Kb)}}(),Kb.\u0275prov=t.Yz7({token:Kb,factory:Kb.\u0275fac});var kW=function(n,r){return(kW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(n,r)};function bP(n,r){function e(){this.constructor=n}kW(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Rn=function(){return Rn=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},Rn.apply(this,arguments)};function qm(n){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&n[r],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function mu(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,i=e.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return a}function os(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(mu(arguments[r]));return n}var ya=m(7312),ule=Object.prototype.toString;function TW(n){switch(ule.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return gv(n,Error)}}function UT(n,r){return ule.call(n)==="[object "+r+"]"}function cle(n){return UT(n,"ErrorEvent")}function dle(n){return UT(n,"DOMError")}function HT(n){return UT(n,"String")}function MW(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function jT(n){return UT(n,"Object")}function N5(n){return"undefined"!=typeof Event&&gv(n,Event)}function SW(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function gv(n,r){try{return n instanceof r}catch(e){return!1}}function xW(n,r){try{for(var e=n,a=[],s=0,l=0,d=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=OQe(e,r))||s>1&&l+a.length*d+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(g){return"<unknown>"}}function OQe(n,r){var o,a,s,l,u,e=n,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var d=r&&r.length?r.filter(function(g){return e.getAttribute(g)}).map(function(g){return[g,e.getAttribute(g)]}):null;if(d&&d.length)d.forEach(function(g){i.push("["+g[0]+'="'+g[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&HT(o))for(a=o.split(/\s+/),u=0;u<a.length;u++)i.push("."+a[u]);var h=["type","name","title","alt"];for(u=0;u<h.length;u++)s=h[u],(l=e.getAttribute(s))&&i.push("["+s+'="'+l+'"]');return i.join("")}function CP(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function ple(n,r){if(!Array.isArray(n))return"";for(var e=[],i=0;i<n.length;i++){var o=n[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function EW(n,r){return!!HT(n)&&(function EQe(n){return UT(n,"RegExp")}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Fl(n,r,e){if(r in n){var i=n[r],o=e(i);if("function"==typeof o)try{fle(o,i)}catch(a){}n[r]=o}}function B5(n,r,e){Object.defineProperty(n,r,{value:e,writable:!0,configurable:!0})}function fle(n,r){var e=r.prototype||{};n.prototype=r.prototype=e,B5(n,"__sentry_original__",r)}function DW(n){return n.__sentry_original__}function hle(n){var r=n;if(TW(n))r=Rn({message:n.message,name:n.name,stack:n.stack},_le(n));else if(N5(n)){var e=n;r=Rn({type:e.type,target:mle(e.target),currentTarget:mle(e.currentTarget)},_le(e)),"undefined"!=typeof CustomEvent&&gv(n,CustomEvent)&&(r.detail=e.detail)}return r}function mle(n){try{return function xQe(n){return"undefined"!=typeof Element&&gv(n,Element)}(n)?xW(n):Object.prototype.toString.call(n)}catch(r){return"<unknown>"}}function _le(n){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}function RQe(n,r){void 0===r&&(r=40);var e=Object.keys(hle(n));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return CP(e[0],r);for(var i=e.length;i>0;i--){var o=e.slice(0,i).join(", ");if(!(o.length>r))return i===e.length?o:CP(o,r)}return""}function AW(n){var r,e;if(jT(n)){var i={};try{for(var o=qm(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==n[s]&&(i[s]=AW(n[s]))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}return Array.isArray(n)?n.map(AW):n}function GT(){var n=(0,ya.R)(),r=n.crypto||n.msCrypto;if(void 0!==r&&r.getRandomValues){var e=new Uint16Array(8);r.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var i=function(a){for(var s=a.toString(16);s.length<4;)s="0"+s;return s};return i(e[0])+i(e[1])+i(e[2])+i(e[3])+i(e[4])+i(e[5])+i(e[6])+i(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"===o?a:3&a|8).toString(16)})}function OW(n){if(!n)return{};var r=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!r)return{};var e=r[6]||"",i=r[8]||"";return{host:r[4],path:r[5],protocol:r[2],relative:r[5]+e+i}}function gle(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function qb(n){var r=n.message,e=n.event_id;if(r)return r;var i=gle(n);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function IW(n,r,e){var i=n.exception=n.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function wP(n,r){var e=gle(n);if(e){var o=e.mechanism;if(e.mechanism=Rn(Rn(Rn({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=Rn(Rn({},o&&o.data),r.data);e.mechanism.data=a}}}function vle(n){if(n&&n.__sentry_captured__)return!0;try{B5(n,"__sentry_captured__",!0)}catch(r){}return!1}var ci,zT=m(3169),WT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ZQe=(0,ya.R)(),NQe="Sentry Logger ",F5=["debug","info","warn","error","log","assert"];function yle(n){var r=(0,ya.R)();if(!("console"in r))return n();var e=r.console,i={};F5.forEach(function(o){var a=e[o]&&e[o].__sentry_original__;o in r.console&&a&&(i[o]=e[o],e[o]=a)});try{return n()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function ble(){var n=!1,r={enable:function(){n=!0},disable:function(){n=!1}};return WT?F5.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&yle(function(){var a;(a=ZQe.console)[e].apply(a,os([NQe+"["+e+"]:"],i))})}}):F5.forEach(function(e){r[e]=function(){}}),r}ci=WT?(0,ya.Y)("logger",ble):ble();var BQe=m(3295),Cle="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Jb(n){return new vv(function(r){r(n)})}function kP(n){return new vv(function(r,e){e(n)})}var vv=function(){function n(r){var e=this;this._state=0,this._handlers=[],this._resolve=function(i){e._setResult(1,i)},this._reject=function(i){e._setResult(2,i)},this._setResult=function(i,o){if(0===e._state){if(SW(o))return void o.then(e._resolve,e._reject);e._state=i,e._value=o,e._executeHandlers()}},this._executeHandlers=function(){if(0!==e._state){var i=e._handlers.slice();e._handlers=[],i.forEach(function(o){o[0]||(1===e._state&&o[1](e._value),2===e._state&&o[2](e._value),o[0]=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.prototype.then=function(r,e){var i=this;return new n(function(o,a){i._handlers.push([!1,function(s){if(r)try{o(r(s))}catch(l){a(l)}else o(s)},function(s){if(e)try{o(e(s))}catch(l){a(l)}else a(s)}]),i._executeHandlers()})},n.prototype.catch=function(r){return this.then(function(e){return e},r)},n.prototype.finally=function(r){var e=this;return new n(function(i,o){var a,s;return e.then(function(l){s=!1,a=l,r&&r()},function(l){s=!0,a=l,r&&r()}).then(function(){s?o(a):i(a)})})},n}(),U5=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return n.clone=function(r){var e=new n;return r&&(e._breadcrumbs=os(r._breadcrumbs),e._tags=Rn({},r._tags),e._extra=Rn({},r._extra),e._contexts=Rn({},r._contexts),e._user=r._user,e._level=r._level,e._span=r._span,e._session=r._session,e._transactionName=r._transactionName,e._fingerprint=r._fingerprint,e._eventProcessors=os(r._eventProcessors),e._requestSession=r._requestSession),e},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=Rn(Rn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,e){var i;return this._tags=Rn(Rn({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=Rn(Rn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,e){var i;return this._extra=Rn(Rn({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=Rn(Rn({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof n?e:this}return r instanceof n?(this._tags=Rn(Rn({},this._tags),r._tags),this._extra=Rn(Rn({},this._extra),r._extra),this._contexts=Rn(Rn({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):jT(r)&&(this._tags=Rn(Rn({},this._tags),r.tags),this._extra=Rn(Rn({},this._extra),r.extra),this._contexts=Rn(Rn({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=Rn({timestamp:(0,zT.yW)()},r);return this._breadcrumbs=os(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=Rn(Rn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Rn(Rn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Rn(Rn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Rn(Rn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Rn({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=Rn({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=os(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(os(kle(),this._eventProcessors),r,e)},n.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=Rn(Rn({},this._sdkProcessingMetadata),r),this},n.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new vv(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var d=u(Rn({},e),i);SW(d)?d.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,d,i,o+1).then(s).then(null,l)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function kle(){return(0,ya.Y)("globalEventProcessors",function(){return[]})}function PW(n){kle().push(n)}var FQe=function(){function n(r){this.errors=0,this.sid=GT(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,zT.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,zT.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:GT()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},n.prototype.toJSON=function(){return AW({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},n}(),LW=function(){function n(r,e,i){void 0===e&&(e=new U5),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=U5.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},n.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:GT(),o=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,Rn(Rn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:GT(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(l){s=l}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,e,Rn(Rn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:GT();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Rn(Rn({},e),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,e){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},l=s.beforeBreadcrumb,u=void 0===l?null:l,d=s.maxBreadcrumbs,h=void 0===d?100:d;if(!(h<=0)){var g=(0,zT.yW)(),C=Rn({timestamp:g},r),Z=u?yle(function(){return u(C,e)}):C;null!==Z&&o.addBreadcrumb(Z,h)}}},n.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},n.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},n.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},n.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},n.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},n.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},n.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},n.prototype.run=function(r){var e=Tle(this);try{r(this)}finally{Tle(e)}},n.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return Cle&&ci.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},n.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,d=((0,ya.R)().navigator||{}).userAgent,h=new FQe(Rn(Rn(Rn({release:s,environment:l},i&&{user:i.getUser()}),d&&{userAgent:d}),r));if(i){var g=i.getSession&&i.getSession();g&&"ok"===g.status&&g.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),e=r.scope,i=r.client;if(e){var o=e.getSession&&e.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,l=a.client;l&&l[r]&&(e=l)[r].apply(e,os(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=TP(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);Cle&&ci.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function TP(){var n=(0,ya.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function Tle(n){var r=TP(),e=yv(r);return ZW(r,n),e}function _u(){var n=TP();return(!Mle(n)||yv(n).isOlderThan(4))&&ZW(n,new LW),(0,BQe.KV)()?function HQe(n){try{var r=TP().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return yv(n);if(!Mle(e)||yv(e).isOlderThan(4)){var i=yv(n).getStackTop();ZW(e,new LW(i.client,U5.clone(i.scope)))}return yv(e)}catch(o){return yv(n)}}(n):yv(n)}function Mle(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function yv(n){return(0,ya.Y)("hub",function(){return new LW},n)}function ZW(n,r){return!!n&&((n.__SENTRY__=n.__SENTRY__||{}).hub=r,!0)}function Vu(n){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=_u();if(i&&i[n])return i[n].apply(i,os(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function Sle(n,r){return Vu("captureException",n,{captureContext:r,originalException:n,syntheticException:new Error("Sentry syntheticException")})}function jQe(n){Vu("withScope",n)}var as="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,GQe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],zQe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(n);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function WQe(n,r){return void 0===n&&(n={}),void 0===r&&(r={}),{allowUrls:os(n.whitelistUrls||[],n.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:os(n.blacklistUrls||[],n.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:os(n.ignoreErrors||[],r.ignoreErrors||[],GQe),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(a._options,l);return function VQe(n,r){return r.ignoreInternal&&function QQe(n){try{return"SentryError"===n.exception.values[0].type}catch(r){}return!1}(n)?(as&&ci.warn("Event dropped due to being internal Sentry Error.\nEvent: "+qb(n)),!0):function YQe(n,r){return!(!r||!r.length)&&function JQe(n){if(n.message)return[n.message];if(n.exception)try{var r=n.exception.values&&n.exception.values[0]||{},e=r.type,i=void 0===e?"":e,o=r.value,a=void 0===o?"":o;return[""+a,i+": "+a]}catch(s){return as&&ci.error("Cannot extract message for event "+qb(n)),[]}return[]}(n).some(function(e){return r.some(function(i){return EW(e,i)})})}(n,r.ignoreErrors)?(as&&ci.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+qb(n)),!0):function KQe(n,r){if(!r||!r.length)return!1;var e=H5(n);return!!e&&r.some(function(i){return EW(e,i)})}(n,r.denyUrls)?(as&&ci.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+qb(n)+".\nUrl: "+H5(n)),!0):!function qQe(n,r){if(!r||!r.length)return!0;var e=H5(n);return!e||r.some(function(i){return EW(e,i)})}(n,r.allowUrls)&&(as&&ci.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+qb(n)+".\nUrl: "+H5(n)),!0)}(i,u)?null:i}}return i})},n.id="InboundFilters",n}();function xle(n){void 0===n&&(n=[]);for(var r=n.length-1;r>=0;r--){var e=n[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function H5(n){try{if(n.stacktrace)return xle(n.stacktrace.frames);var r;try{r=n.exception.values[0].stacktrace.frames}catch(e){}return r?xle(r):null}catch(e){return as&&ci.error("Cannot extract url for event "+qb(n)),null}}var Ele,XQe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Ele=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=DW(this)||this;return Ele.apply(i,r)}},n.id="FunctionToString",n}();function nXe(n){if(!n.length)return[];var r=n,e=r[0].function||"",i=r[r.length-1].function||"";return(-1!==e.indexOf("captureMessage")||-1!==e.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return Rn(Rn({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var NW="<anonymous>";function bv(n){try{return n&&"function"==typeof n&&n.name||NW}catch(r){return NW}}function j5(){if(!("fetch"in(0,ya.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function BW(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function iXe(){if(!j5())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var G5,la=(0,ya.R)(),MP={},Dle={};function aXe(n){if(!Dle[n])switch(Dle[n]=!0,n){case"console":!function sXe(){"console"in la&&F5.forEach(function(n){n in la.console&&Fl(la.console,n,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];Cp("console",{args:e,level:n}),r&&r.apply(la.console,e)}})})}();break;case"dom":!function _Xe(){if("document"in la){var n=Cp.bind(null,"dom"),r=Ale(n,!0);la.document.addEventListener("click",r,!1),la.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=la[e]&&la[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Fl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=d[a]=d[a]||{refCount:0};if(!h.handler){var g=Ale(n);h.handler=g,o.call(this,a,g,l)}h.refCount+=1}catch(C){}return o.call(this,a,s,l)}}),Fl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__||{},h=d[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete d[a]),0===Object.keys(d).length&&delete u.__sentry_instrumentation_handlers__)}catch(g){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function dXe(){if("XMLHttpRequest"in la){var n=XMLHttpRequest.prototype;Fl(n,"open",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this,a=e[1],s=o.__sentry_xhr__={method:HT(e[0])?e[0].toUpperCase():e[0],url:e[1]};HT(a)&&"POST"===s.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var l=function(){if(4===o.readyState){try{s.status_code=o.status}catch(d){}Cp("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Fl(o,"onreadystatechange",function(u){return function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l(),u.apply(o,d)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Fl(n,"send",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),Cp("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function lXe(){!function rXe(){if(!j5())return!1;var n=(0,ya.R)();if(BW(n.fetch))return!0;var r=!1,e=n.document;if(e&&"function"==typeof e.createElement)try{var i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=BW(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){WT&&ci.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Fl(la,"fetch",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:uXe(r),url:cXe(r)},startTimestamp:Date.now()};return Cp("fetch",Rn({},i)),n.apply(la,r).then(function(o){return Cp("fetch",Rn(Rn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw Cp("fetch",Rn(Rn({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function pXe(){if(!function oXe(){var n=(0,ya.R)(),r=n.chrome,e=r&&r.app&&r.app.runtime,i="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!e&&i}())return;var n=la.onpopstate;function r(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i.length>2?i[2]:void 0;if(a){var s=G5,l=String(a);G5=l,Cp("history",{from:s,to:l})}return e.apply(this,i)}}la.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=la.location.href,a=G5;if(G5=o,Cp("history",{from:a,to:o}),n)try{return n.apply(this,e)}catch(s){}},Fl(la.history,"pushState",r),Fl(la.history,"replaceState",r)}();break;case"error":!function gXe(){FW=la.onerror,la.onerror=function(n,r,e,i,o){return Cp("error",{column:i,error:o,line:e,msg:n,url:r}),!!FW&&FW.apply(this,arguments)}}();break;case"unhandledrejection":!function vXe(){UW=la.onunhandledrejection,la.onunhandledrejection=function(n){return Cp("unhandledrejection",n),!UW||UW.apply(this,arguments)}}();break;default:return void(WT&&ci.warn("unknown instrumentation type:",n))}}function Cv(n,r){MP[n]=MP[n]||[],MP[n].push(r),aXe(n)}function Cp(n,r){var e,i;if(n&&MP[n])try{for(var o=qm(MP[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){WT&&ci.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+bv(s)+"\nError:",l)}}}catch(l){e={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}function uXe(n){return void 0===n&&(n=[]),"Request"in la&&gv(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function cXe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in la&&gv(n[0],Request)?n[0].url:String(n[0])}var z5,W5;function Ale(n,r){return void 0===r&&(r=!1),function(e){if(e&&W5!==e&&!function mXe(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(e){}return!0}(e)){var i="keypress"===e.type?"input":e.type;(void 0===z5||function hXe(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(e){}return!1}(W5,e))&&(n({event:e,name:i,global:r}),W5=e),clearTimeout(z5),z5=la.setTimeout(function(){z5=void 0},1e3)}}}var FW=null;var UW=null;var yXe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function bXe(n,r){return n.__proto__=r,n}:function CXe(n,r){for(var e in r)Object.prototype.hasOwnProperty.call(n,e)||(n[e]=r[e]);return n});var Ts=function(n){function r(e){var i=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,yXe(o,i.prototype),o}return bP(r,n),r}(Error),wXe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function SP(n,r){void 0===r&&(r=!1);var e=n.host,i=n.path,o=n.pass,a=n.port,s=n.projectId;return n.protocol+"://"+n.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function Ile(n){return"user"in n&&!("publicKey"in n)&&(n.publicKey=n.user),{user:n.publicKey||"",protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function V5(n){var r="string"==typeof n?function TXe(n){var r=wXe.exec(n);if(!r)throw new Ts("Invalid Sentry Dsn: "+n);var e=mu(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],d=void 0===u?"":u,g="",C=e[5],Z=C.split("/");if(Z.length>1&&(g=Z.slice(0,-1).join("/"),C=Z.pop()),C){var z=C.match(/^\d+/);z&&(C=z[0])}return Ile({host:l,pass:s,path:g,projectId:C,port:d,protocol:i,publicKey:o})}(n):Ile(n);return function MXe(n){if(WT){var r=n.port,e=n.projectId,i=n.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!n[a])throw new Ts("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Ts("Invalid Sentry Dsn: Invalid projectId "+e);if(!function kXe(n){return"http"===n||"https"===n}(i))throw new Ts("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Ts("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function Qb(n,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return Rle("",n,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function Ple(n,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=Qb(n,r);return function DXe(n){return function EXe(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>e?Ple(n,r-1,e):i}function Rle(n,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function SXe(){var n="function"==typeof WeakSet,r=n?new WeakSet:[];return[function e(o){if(n)return!!r.has(o)||(r.add(o),!1);for(var a=0;a<r.length;a++)if(r[a]===o)return!0;return r.push(o),!1},function i(o){if(n)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=mu(o,2),s=a[0],l=a[1],u=r;if(u&&"function"==typeof u.toJSON)try{return u.toJSON()}catch(q){}if(null===r||["number","boolean","string"].includes(typeof r)&&!function AQe(n){return"number"==typeof n&&n!=n}(r))return r;var d=function xXe(n,r){try{return"domain"===n&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function DQe(n){return jT(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+bv(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,r);if(!d.startsWith("[object "))return d;if(0===e)return d.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},g=0,C=TW(r)||N5(r)?hle(r):r;for(var Z in C)if(Object.prototype.hasOwnProperty.call(C,Z)){if(g>=i){h[Z]="[MaxProperties ~]";break}var z=C[Z];h[Z]=Rle(Z,z,e-1,i,o),g+=1}return l(r),h}var Lle=[];function Zle(n){return n.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function IXe(n){var r={};return function AXe(n){var r=n.defaultIntegrations&&os(n.defaultIntegrations)||[],e=n.integrations,i=os(Zle(r));Array.isArray(e)?i=os(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),Zle(e)):"function"==typeof e&&(i=e(i),i=Array.isArray(i)?i:[i]);var o=i.map(function(s){return s.name}),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,os(i.splice(o.indexOf(a),1))),i}(n).forEach(function(e){r[e.name]=e,function OXe(n){-1===Lle.indexOf(n.name)&&(n.setupOnce(PW,_u),Lle.push(n.name),as&&ci.log("Integration installed: "+n.name))}(e)}),B5(r,"initialized",!0),r}var Nle="Not capturing exception because it's already been captured.",PXe=function(){function n(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=V5(e.dsn))}return n.prototype.captureException=function(r,e,i){var o=this;if(!vle(r)){var a=e&&e.event_id;return this._process(this._getBackend().eventFromException(r,e).then(function(s){return o._captureEvent(s,e,i)}).then(function(s){a=s})),a}as&&ci.log(Nle)},n.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=MW(r)?this._getBackend().eventFromMessage(String(r),e,i):this._getBackend().eventFromException(r,i);return this._process(l.then(function(u){return a._captureEvent(u,i,o)}).then(function(u){s=u})),s},n.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&vle(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}as&&ci.log(Nle)},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?as&&ci.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):as&&ci.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.getTransport=function(){return this._getBackend().getTransport()},n.prototype.flush=function(r){var e=this;return this._isClientDoneProcessing(r).then(function(i){return e.getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=IXe(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return as&&ci.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,e){var i,o,a=!1,s=!1,l=e.exception&&e.exception.values;if(l){s=!0;try{for(var u=qm(l),d=u.next();!d.done;d=u.next()){var g=d.value.mechanism;if(g&&!1===g.handled){a=!0;break}}}catch(z){i={error:z}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}var C="ok"===r.status;(C&&0===r.errors||C&&a)&&(r.update(Rn(Rn({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var e=this;return new vv(function(i){var o=0,s=setInterval(function(){0==e._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,d=void 0===u?1e3:u,h=Rn(Rn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:GT()),timestamp:r.timestamp||(0,zT.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var g=e;i&&i.captureContext&&(g=U5.clone(g).update(i.captureContext));var C=Jb(h);return g&&(C=g.applyToEvent(h,i)),C.then(function(Z){return Z&&(Z.sdkProcessingMetadata=Rn(Rn({},Z.sdkProcessingMetadata),{normalizeDepth:Qb(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(Z,l,d):Z})},n.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=Rn(Rn(Rn(Rn(Rn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return Rn(Rn({},a),a.data&&{data:Qb(a.data,e,i)})})}),r.user&&{user:Qb(r.user,e,i)}),r.contexts&&{contexts:Qb(r.contexts,e,i)}),r.extra&&{extra:Qb(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=Rn(Rn({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},n.prototype._applyClientOptions=function(r){var e=this.getOptions(),i=e.environment,o=e.release,a=e.dist,s=e.maxValueLength,l=void 0===s?250:s;"environment"in r||(r.environment="environment"in e?i:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=CP(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=CP(u.value,l));var d=r.request;d&&d.url&&(d.url=CP(d.url,l))},n.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=os(r.sdk.integrations||[],e))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){as&&ci.error(o)})},n.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function d(g,C){u.recordLostEvent&&u.recordLostEvent(g,C)}if(!this._isEnabled())return kP(new Ts("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(d("sample_rate","event"),kP(new Ts("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(g){if(null===g)throw d("event_processor",r.type||"event"),new Ts("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?g:function RXe(n){var r="`beforeSend` method has to return `null` or a valid event.";if(SW(n))return n.then(function(e){if(!jT(e)&&null!==e)throw new Ts(r);return e},function(e){throw new Ts("beforeSend rejected with "+e)});if(!jT(n)&&null!==n)throw new Ts(r);return n}(s(g,e))}).then(function(g){if(null===g)throw d("before_send",r.type||"event"),new Ts("`beforeSend` returned `null`, will not send event.");var C=i&&i.getSession&&i.getSession();return!h&&C&&o._updateSessionFromEvent(C,g),o._sendEvent(g),g}).then(null,function(g){throw g instanceof Ts?g:(o.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ts("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+g))})},n.prototype._process=function(r){var e=this;this._numProcessing+=1,r.then(function(i){return e._numProcessing-=1,i},function(i){return e._numProcessing-=1,i})},n}();!function(){function n(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=V5(r),this.metadata=e,this._tunnel=i}n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){return HW(this._dsnObject)},n.prototype.getStoreEndpoint=function(){return Hle(this._dsnObject)},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return jW(this._dsnObject)},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return xP(this._dsnObject,this._tunnel)}}();function Y5(n,r,e){return{initDsn:n,metadata:r||{},dsn:V5(n),tunnel:e}}function HW(n){var r=n.protocol?n.protocol+":":"",e=n.port?":"+n.port:"";return r+"//"+n.host+e+(n.path?"/"+n.path:"")+"/api/"}function Fle(n,r){return""+HW(n)+n.projectId+"/"+r+"/"}function Ule(n){return function PQe(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:n.publicKey,sentry_version:"7"})}function Hle(n){return Fle(n,"store")}function jW(n){return Hle(n)+"?"+Ule(n)}function xP(n,r){return r||function LXe(n){return Fle(n,"envelope")}(n)+"?"+Ule(n)}function K5(n,r){return void 0===r&&(r=[]),[n,r]}function q5(n){var r=mu(n,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=mu(s,2),u=l[0],d=l[1],h=MW(d)?String(d):JSON.stringify(d);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function GW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function jle(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=os(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=os(n.sdk.packages||[],r.packages||[])),n}function Gle(n,r){var e=GW(r),o="aggregates"in n?"sessions":"session";return[K5(Rn(Rn({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:SP(r.dsn)}),[[{type:o},n]]),o]}var eh,HXe=function(){function n(){}return n.prototype.sendEvent=function(r){return Jb({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},n.prototype.close=function(r){return Jb(!0)},n}(),jXe=function(){function n(r){this._options=r,this._options.dsn||as&&ci.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,e){throw new Ts("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,e,i){throw new Ts("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function FXe(n,r){var e=GW(r),i=n.type||"event",a=(n.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return jle(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata,K5(Rn(Rn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:SP(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},n]])}(r,Y5(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){as&&ci.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){as&&ci.error("Error while sending event:",o)})},n.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=mu(Gle(r,Y5(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){as&&ci.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){as&&ci.error("Error while sending session:",a)});else as&&ci.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new HXe},n}();!function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(eh||(eh={}));function EP(n,r,e,i){var o={filename:n,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var KXe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,qXe=/\((\S*)(?::(\d+))(?::(\d+))\)/,QXe=[30,function(r){var e=KXe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=qXe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=mu(zle(e[1]||"?",e[2]),2),s=a[0];return EP(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],XXe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$Xe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t$e=[50,function(r){var e,i=XXe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=$Xe.exec(i[3]);a&&(i[1]=i[1]||"eval",i[3]=a[1],i[4]=a[2],i[5]="")}var s=i[3],l=i[1]||"?";return l=(e=mu(zle(l,s),2))[0],EP(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],n$e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i$e=[40,function(r){var e=n$e.exec(r);return e?EP(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],o$e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,s$e=[10,function(r){var e=o$e.exec(r);return e?EP(e[2],e[3]||"?",+e[1]):void 0}],l$e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,c$e=[20,function(r){var e=l$e.exec(r);return e?EP(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],zle=function(r,e){var i=-1!==r.indexOf("safari-extension"),o=-1!==r.indexOf("safari-web-extension");return i||o?[-1!==r.indexOf("@")?r.split("@")[0]:"?",i?"safari-extension:"+e:"safari-web-extension:"+e]:[r,e]};function Wle(n){var r=WW(n),e={type:n&&n.name,value:h$e(n)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function zW(n){return{exception:{values:[Wle(n)]}}}function WW(n){var r=n.stacktrace||n.stack||"",e=function f$e(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(p$e.test(n.message))return 1}return 0}(n);try{return function tXe(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var e=n.sort(function(i,o){return i[0]-o[0]}).map(function(i){return i[1]});return function(i,o){var a,s,l,u;void 0===o&&(o=0);var d=[];try{for(var h=qm(i.split("\n").slice(o)),g=h.next();!g.done;g=h.next()){var C=g.value;try{for(var Z=(l=void 0,qm(e)),z=Z.next();!z.done;z=Z.next()){var re=(0,z.value)(C);if(re){d.push(re);break}}}catch(ae){l={error:ae}}finally{try{z&&!z.done&&(u=Z.return)&&u.call(Z)}finally{if(l)throw l.error}}}}catch(ae){a={error:ae}}finally{try{g&&!g.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return nXe(d)}}(s$e,c$e,QXe,i$e,t$e)(r,e)}catch(i){}return[]}var p$e=/Minified React error #\d+;/i;function h$e(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function VW(n,r,e,i){var o;if(cle(n)&&n.error)return zW(n.error);if(dle(n)||function SQe(n){return UT(n,"DOMException")}(n)){var s=n;if("stack"in n)o=zW(n);else{var l=s.name||(dle(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;IW(o=YW(u,r,e),u)}return"code"in s&&(o.tags=Rn(Rn({},o.tags),{"DOMException.code":""+s.code})),o}return TW(n)?zW(n):jT(n)||N5(n)?(o=function d$e(n,r,e){var i={exception:{values:[{type:N5(n)?n.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+RQe(n)}]},extra:{__serialized__:Ple(n)}};if(r){var o=WW(r);o.length&&(i.stacktrace={frames:o})}return i}(n,r,i),wP(o,{synthetic:!0}),o):(IW(o=YW(n,r,e),""+n,void 0),wP(o,{synthetic:!0}),o)}function YW(n,r,e){var i={message:n};if(e&&r){var o=WW(r);o.length&&(i.stacktrace={frames:o})}return i}function Vle(n){var r=[];function i(s){return r.splice(r.indexOf(s),1)[0]}return{$:r,add:function o(s){if(!function e(){return void 0===n||r.length<n}())return kP(new Ts("Not adding Promise due to buffer limit reached."));var l=s();return-1===r.indexOf(l)&&r.push(l),l.then(function(){return i(l)}).then(null,function(){return i(l).then(null,function(){})}),l},drain:function a(s){return new vv(function(l,u){var d=r.length;if(!d)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(g){Jb(g).then(function(){--d||(clearTimeout(h),l(!0))},u)})})}}}function KW(n,r){return n[r]||n.all||0}function Yle(n,r,e){return void 0===e&&(e=Date.now()),KW(n,r)>e}function Kle(n,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=Rn({},n),u=r["x-sentry-rate-limits"],d=r["retry-after"];if(u)try{for(var h=qm(u.trim().split(",")),g=h.next();!g.done;g=h.next()){var Z=g.value.split(":",2),z=parseInt(Z[0],10),q=1e3*(isNaN(z)?60:z);if(Z[1])try{for(var re=(a=void 0,qm(Z[1].split(";"))),ae=re.next();!ae.done;ae=re.next()){l[ae.value]=e+q}}catch(Ce){a={error:Ce}}finally{try{ae&&!ae.done&&(s=re.return)&&s.call(re)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Ce){i={error:Ce}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else d&&(l.all=e+function v$e(n,r){void 0===r&&(r=Date.now());var e=parseInt(""+n,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+n);return isNaN(i)?6e4:i-r}(d,e));return l}function qle(n){return n>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown"}function Jle(n,r,e){void 0===e&&(e=Vle(n.bufferSize||30));var i={};return{send:function a(s){var l=function NXe(n){var r=mu(n,2),e=mu(r[1],1);return mu(e[0],1)[0].type}(s),u="event"===l?"error":l,d={category:u,body:q5(s)};return Yle(i,u)?kP({status:"rate_limit",reason:Qle(i,u)}):e.add(function(){return r(d).then(function(C){var Z=C.body,z=C.headers,q=C.reason,ae=qle(C.statusCode);return z&&(i=Kle(i,z)),"success"===ae?Jb({status:ae,reason:q}):kP({status:ae,reason:q||Z||("rate_limit"===ae?Qle(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Qle(n,r){return"Too many "+r+" requests, backing off until: "+new Date(KW(n,r)).toISOString()}var J5,gd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,wp=(0,ya.R)();function qW(){if(J5)return J5;if(BW(wp.fetch))return J5=wp.fetch.bind(wp);var n=wp.document,r=wp.fetch;if(n&&"function"==typeof n.createElement)try{var e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),n.head.removeChild(e)}catch(o){gd&&ci.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return J5=r.bind(wp)}function C$e(n,r){return"[object Navigator]"===Object.prototype.toString.call(wp&&wp.navigator)&&"function"==typeof wp.navigator.sendBeacon?wp.navigator.sendBeacon.bind(wp.navigator)(n,r):j5()?function b$e(n){n.then(null,function(r){console.error(r)})}(qW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function JW(n){return"event"===n?"error":n}var QW=(0,ya.R)(),Xle=function(){function n(r){var e=this;this.options=r,this._buffer=Vle(30),this._rateLimits={},this._outcomes={},this._api=Y5(r.dsn,r._metadata,r.tunnel),this.url=jW(this._api.dsn),this.options.sendClientReports&&QW.document&&QW.document.addEventListener("visibilitychange",function(){"hidden"===QW.document.visibilityState&&e._flushOutcomes()})}return n.prototype.sendEvent=function(r){return this._sendRequest(function UXe(n,r){var d,e=GW(r),i=n.type||"event",o="transaction"===i||!!r.tunnel,s=(n.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;jle(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata;try{d=JSON.stringify(n)}catch(q){n.tags.JSONStringifyError=!0,n.extra.JSONStringifyError=q;try{d=JSON.stringify(Qb(n))}catch(re){var h=re;d=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var g={body:d,type:i,url:o?xP(r.dsn,r.tunnel):jW(r.dsn)};if(o){var z=K5(Rn(Rn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:SP(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},g.body]]);g.body=q5(z)}return g}(r,this._api),r)},n.prototype.sendSession=function(r){return this._sendRequest(function BXe(n,r){var e=mu(Gle(n,r),2),i=e[0],o=e[1];return{body:q5(i),type:o,url:xP(r.dsn,r.tunnel)}}(r,this._api),r)},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=JW(e)+":"+r;gd&&ci.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},n.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(gd&&ci.log("No outcomes to flush"));gd&&ci.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=xP(this._api.dsn,this._api.tunnel),o=function k$e(n,r,e){return K5(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,zT.yW)(),discarded_events:n}]])}(Object.keys(r).map(function(a){var s=mu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&SP(this._api.dsn));try{C$e(e,q5(o))}catch(a){gd&&ci.error(a)}}},n.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=qle(i.status);this._rateLimits=Kle(this._rateLimits,o),this._isRateLimited(e)&&gd&&ci.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},n.prototype._disabledUntil=function(r){var e=JW(r);return new Date(KW(this._rateLimits,e))},n.prototype._isRateLimited=function(r){var e=JW(r);return Yle(this._rateLimits,e)},n}(),T$e=function(n){function r(e,i){void 0===i&&(i=qW());var o=n.call(this,e)||this;return o._fetch=i,o}return bP(r,n),r.prototype._sendRequest=function(e,i){var o=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var a={body:e.body,method:"POST",referrerPolicy:iXe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(a,this.options.fetchParameters),void 0!==this.options.headers&&(a.headers=this.options.headers),this._buffer.add(function(){return new vv(function(s,l){o._fetch(e.url,a).then(function(u){var d={"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")};o._handleResponse({requestType:e.type,response:u,headers:d,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Ts?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(Xle);var x$e=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return bP(r,n),r.prototype._sendRequest=function(e,i){var o=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new vv(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var d={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:d,resolve:a,reject:s})}},l.open("POST",e.url),o.options.headers)Object.prototype.hasOwnProperty.call(o.options.headers,u)&&l.setRequestHeader(u,o.options.headers[u]);l.send(e.body)})}).then(void 0,function(a){throw a instanceof Ts?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(Xle),E$e=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return bP(r,n),r.prototype.eventFromException=function(e,i){return function m$e(n,r,e){var o=VW(n,r&&r.syntheticException||void 0,e);return wP(o),o.level=eh.Error,r&&r.event_id&&(o.event_id=r.event_id),Jb(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=eh.Info),function _$e(n,r,e,i){void 0===r&&(r=eh.Info);var a=YW(n,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),Jb(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var e=Rn(Rn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=Y5(e.dsn,e._metadata,e.tunnel),o=xP(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(j5()){var a=Rn({},e.fetchParameters);return this._newTransport=function w$e(n,r){return void 0===r&&(r=qW()),Jle({bufferSize:n.bufferSize},function e(i){var o=Rn({body:i.body,method:"POST",referrerPolicy:"origin"},n.requestOptions);return r(n.url,o).then(function(a){return a.text().then(function(s){return{body:s,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")},reason:a.statusText,statusCode:a.status}})})})}({requestOptions:a,url:o}),new T$e(e)}return this._newTransport=function S$e(n){return Jle({bufferSize:n.bufferSize},function r(e){return new vv(function(i,o){var a=new XMLHttpRequest;for(var s in a.onreadystatechange=function(){if(4===a.readyState){var l={body:a.response,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")},reason:a.statusText,statusCode:a.status};i(l)}},a.open("POST",n.url),n.headers)Object.prototype.hasOwnProperty.call(n.headers,s)&&a.setRequestHeader(s,n.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new x$e(e)},r}(jXe),Q5=(0,ya.R)(),XW=0;function $le(){return XW>0}function D$e(){XW+=1,setTimeout(function(){XW-=1})}function YT(n,r,e){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(DW(n))return n}catch(l){return n}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var d=u.map(function(h){return YT(h,r)});return n.apply(this,d)}catch(h){throw D$e(),jQe(function(g){g.addEventProcessor(function(C){return r.mechanism&&(IW(C,void 0,void 0),wP(C,r.mechanism)),C.extra=Rn(Rn({},C.extra),{arguments:u}),C}),Sle(h)}),h}};try{for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}catch(l){}fle(o,n),B5(n,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return n.name}})}catch(l){}return o}function A$e(n){if(void 0===n&&(n={}),Q5.document){if(!n.eventId)return void(gd&&ci.error("Missing eventId option in showReportDialog call"));if(!n.dsn)return void(gd&&ci.error("Missing dsn option in showReportDialog call"));var r=Q5.document.createElement("script");r.async=!0,r.src=function ZXe(n,r){var e=V5(n),i=HW(e)+"embed/error-page/",o="dsn="+SP(e);for(var a in r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&(o+="&name="+encodeURIComponent(r.user.name)),r.user.email&&(o+="&email="+encodeURIComponent(r.user.email))}else o+="&"+encodeURIComponent(a)+"="+encodeURIComponent(r[a]);return i+"?"+o}(n.dsn,n),n.onLoad&&(r.onload=n.onLoad);var e=Q5.document.head||Q5.document.body;e&&e.appendChild(r)}}var O$e=["fatal","error","warning","log","info","debug","critical"];function P$e(n){return"warn"===n?eh.Warning:function I$e(n){return-1!==O$e.indexOf(n)}(n)?n:eh.Log}var eue=function(){function n(r){this.name=n.id,this._options=Rn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||_u().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:qb(r)},{event:r})},n.prototype.setupOnce=function(){this._options.console&&Cv("console",L$e),this._options.dom&&Cv("dom",function R$e(n){function r(e){var i,o="object"==typeof n?n.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?xW(e.event.target,o):xW(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&_u().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&Cv("xhr",Z$e),this._options.fetch&&Cv("fetch",N$e),this._options.history&&Cv("history",B$e)},n.id="Breadcrumbs",n}();function L$e(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:P$e(n.level),message:ple(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(ple(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}_u().addBreadcrumb(r,{input:n.args,level:n.level})}function Z$e(n){if(n.endTimestamp){if(n.xhr.__sentry_own_request__)return;var r=n.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;_u().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:n.xhr,input:a})}else;}function N$e(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?_u().addBreadcrumb({category:"fetch",data:n.fetchData,level:eh.Error,type:"http"},{data:n.error,input:n.args}):_u().addBreadcrumb({category:"fetch",data:Rn(Rn({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))}function B$e(n){var r=(0,ya.R)(),e=n.from,i=n.to,o=OW(r.location.href),a=OW(e),s=OW(i);a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(e=a.relative),_u().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var F$e=function(n){function r(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},n.call(this,E$e,e)||this}return bP(r,n),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,ya.R)().document){if(!this._isEnabled())return void(gd&&ci.error("Trying to call showReportDialog with Sentry Client disabled"));A$e(Rn(Rn({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",n.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(eue);i&&i.addSentryBreadcrumb(e),n.prototype._sendEvent.call(this,e)},r}(PXe),U$e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],H$e=function(){function n(r){this.name=n.id,this._options=Rn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,ya.R)();this._options.setTimeout&&Fl(r,"setTimeout",tue),this._options.setInterval&&Fl(r,"setInterval",tue),this._options.requestAnimationFrame&&Fl(r,"requestAnimationFrame",j$e),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Fl(XMLHttpRequest.prototype,"send",G$e);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:U$e).forEach(z$e)},n.id="TryCatch",n}();function tue(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=YT(i,{mechanism:{data:{function:bv(n)},handled:!0,type:"instrument"}}),n.apply(this,r)}}function j$e(n){return function(r){return n.apply(this,[YT(r,{mechanism:{data:{function:"requestAnimationFrame",handler:bv(n)},handled:!0,type:"instrument"}})])}}function G$e(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach(function(a){a in i&&"function"==typeof i[a]&&Fl(i,a,function(s){var l={mechanism:{data:{function:a,handler:bv(s)},handled:!0,type:"instrument"}},u=DW(s);return u&&(l.mechanism.data.handler=bv(u)),YT(s,l)})}),n.apply(this,r)}}function z$e(n){var r=(0,ya.R)(),e=r[n]&&r[n].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Fl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=YT(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:bv(a),target:n},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,YT(a,{mechanism:{data:{function:"addEventListener",handler:bv(a),target:n},handled:!0,type:"instrument"}}),s])}}),Fl(e,"removeEventListener",function(i){return function(o,a,s){var l=a;try{var u=l&&l.__sentry_wrapped__;u&&i.call(this,o,u,s)}catch(d){}return i.call(this,o,l,s)}}))}var $W=function(){function n(r){this.name=n.id,this._installFunc={onerror:W$e,onunhandledrejection:V$e},this._options=Rn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(q$e(e),i(),this._installFunc[e]=void 0)}},n.id="GlobalHandlers",n}();function W$e(){Cv("error",function(n){var r=mu(iue(),2),e=r[0],i=r[1];if(e.getIntegration($W)){var o=n.msg,a=n.url,s=n.line,l=n.column,u=n.error;if(!($le()||u&&u.__sentry_own_request__)){var d=void 0===u&&HT(o)?function K$e(n,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=cle(n)?n.message:n,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),nue({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):nue(VW(u||o,void 0,i,!1),a,s,l);d.level=eh.Error,rue(e,u,d,"onerror")}}})}function V$e(){Cv("unhandledrejection",function(n){var r=mu(iue(),2),e=r[0],i=r[1];if(e.getIntegration($W)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(s){}if($le()||o&&o.__sentry_own_request__)return!0;var a=MW(o)?function Y$e(n){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n)}]}}}(o):VW(o,void 0,i,!0);a.level=eh.Error,rue(e,o,a,"onunhandledrejection")}})}function nue(n,r,e,i){var o=n.exception=n.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,g=HT(r)&&r.length>0?r:function IQe(){var n=(0,ya.R)();try{return n.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:d,filename:g,function:"?",in_app:!0,lineno:h}),n}function q$e(n){gd&&ci.log("Global Handler attached: "+n)}function rue(n,r,e,i){wP(e,{handled:!1,type:i}),n.captureEvent(e,{originalException:r})}function iue(){var n=_u(),r=n.getClient();return[n,r&&r.getOptions().attachStacktrace]}var X$e=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){PW(function(r,e){var i=_u().getIntegration(n);return i?function $$e(n,r,e,i){if(!(e.exception&&e.exception.values&&i&&gv(i.originalException,Error)))return e;var o=oue(r,i.originalException,n);return e.exception.values=os(o,e.exception.values),e}(i._key,i._limit,r,e):r})},n.id="LinkedErrors",n}();function oue(n,r,e,i){if(void 0===i&&(i=[]),!gv(r[e],Error)||i.length+1>=n)return i;var o=Wle(r[e]);return oue(n,r[e],e,os([o],i))}var eet=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(n);if(o){try{if(function tet(n,r){return!!r&&!(!function net(n,r){var e=n.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!sue(n,r)||!aue(n,r))}(n,r)&&!function ret(n,r){var e=lue(r),i=lue(n);return!!(e&&i&&e.type===i.type&&e.value===i.value&&sue(n,r)&&aue(n,r))}(n,r))}(i,o._previousEvent))return gd&&ci.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.id="Dedupe",n}();function aue(n,r){var e=uue(n),i=uue(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||i.length!==e.length)return!1;for(var o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function sue(n,r){var e=n.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;try{return e.join("")===i.join("")}catch(o){return!1}}function lue(n){return n.exception&&n.exception.values&&n.exception.values[0]}function uue(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(n.stacktrace)return n.stacktrace.frames}var Xb=(0,ya.R)(),iet=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){PW(function(r){if(_u().getIntegration(n)){if(!Xb.navigator&&!Xb.location&&!Xb.document)return r;var e=r.request&&r.request.url||Xb.location&&Xb.location.href,i=(Xb.document||{}).referrer,o=(Xb.navigator||{}).userAgent,a=Rn(Rn(Rn({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=Rn(Rn({},e&&{url:e}),{headers:a});return Rn(Rn({},r),{request:s})}return r})},n.id="UserAgent",n}(),oet=[new zQe,new XQe,new H$e,new eue,new $W,new X$e,new eet,new iet];function cue(n){n.startSession({ignoreDuration:!0}),n.captureSession()}!function aet(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=oet),void 0===n.release){var r=(0,ya.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),void 0===n.sendClientReports&&(n.sendClientReports=!0),function $Qe(n,r){!0===r.debug&&(as?ci.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=_u(),i=e.getScope();i&&i.update(r.initialScope);var o=new n(r);e.bindClient(o)}(F$e,n),n.autoSessionTracking&&function set(){if(void 0===(0,ya.R)().document)return void(gd&&ci.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=_u();!e.captureSession||(cue(e),Cv("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||cue(_u())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var KT=function(){function n(r){(0,U.Z)(this,n),this.injector=r}return(0,B.Z)(n,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof sc.UA?e.error instanceof Error?e.error:e.error instanceof ErrorEvent?e.error.message:"string"==typeof e.error?"Server returned code ".concat(e.status,' with body "').concat(e.error,'"'):e.message:null}},{key:"handleError",value:function(e){var i=this.extractError(e)||"Handled unknown error";Sle(i);Wa.N.production||console.error(i)}}]),n}();KT.\u0275fac=function(r){return new(r||KT)(t.LFG(t.zs3))},KT.\u0275prov=t.Yz7({token:KT,factory:KT.\u0275fac});var $b=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"handleError",value:function(o){if(o.error&&o.error.status&&!(400===o.error.status||403===o.error.status||404===o.error.status||409===o.error.status)&&(0,dt.Z)((0,Ut.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get(Pn);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(KT);$b.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z($b)))(e||$b)}}(),$b.\u0275prov=t.Yz7({token:$b,factory:$b.\u0275fac});var DP=function(){function n(){(0,U.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.projectDatabase.data.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();DP.\u0275fac=function(r){return new(r||DP)},DP.\u0275pipe=t.Yjl({name:"projectsfilter",type:DP,pure:!0});var due=["*"],cet=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],fet=function(){function n(){(0,U.Z)(this,n),this.columnIndex=0,this.rowIndex=0}return(0,B.Z)(n,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,fn.Z)(this.tracker));return e>1?this.rowCount+e-1:this.rowCount}},{key:"update",value:function(e,i){var o=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=i.map(function(a){return o._trackTile(a)})}},{key:"_trackTile",value:function(e){var i=this._findMatchingGap(e.colspan);return this._markTilePosition(i,e),this.columnIndex=i+e.colspan,new het(this.rowIndex,i)}},{key:"_findMatchingGap",value:function(e){this.tracker.length;var i=-1,o=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i)):-1!=(i=this.tracker.indexOf(0,this.columnIndex))?(o=this._findGapEndIndex(i),this.columnIndex=i+1):(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i))}while(o-i<e||0==o);return Math.max(i,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var i=e+1;i<this.tracker.length;i++)if(0!=this.tracker[i])return i;return this.tracker.length}},{key:"_markTilePosition",value:function(e,i){for(var o=0;o<i.colspan;o++)this.tracker[e+o]=i.rowspan}}]),n}(),het=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.row=r,this.col=e}),pue=new t.OlP("MAT_GRID_LIST"),AP=function(){function n(r,e){(0,U.Z)(this,n),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,B.Z)(n,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,Mn.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,Mn.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),n}();AP.\u0275fac=function(r){return new(r||AP)(t.Y36(t.SBq),t.Y36(pue,8))},AP.\u0275cmp=t.Xpm({type:AP,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&t.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:due,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var X5=function(){function n(r){(0,U.Z)(this,n),this._element=r}return(0,B.Z)(n,[{key:"ngAfterContentInit",value:function(){(0,Wt.E0)(this._lines,this._element)}}]),n}();X5.\u0275fac=function(r){return new(r||X5)(t.Y36(t.SBq))},X5.\u0275cmp=t.Xpm({type:X5,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Wt.X2,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lines=o))},ngContentSelectors:["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(r,e){1&r&&(t.F$t(cet),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var $5=(0,B.Z)(function n(){(0,U.Z)(this,n)});$5.\u0275fac=function(r){return new(r||$5)},$5.\u0275dir=t.lG2({type:$5,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var eF=(0,B.Z)(function n(){(0,U.Z)(this,n)});eF.\u0275fac=function(r){return new(r||eF)},eF.\u0275dir=t.lG2({type:eF,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var tF=(0,B.Z)(function n(){(0,U.Z)(this,n)});tF.\u0275fac=function(r){return new(r||tF)},tF.\u0275dir=t.lG2({type:tF,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var met=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,eV=function(){function n(){(0,U.Z)(this,n),this._rows=0,this._rowspan=0}return(0,B.Z)(n,[{key:"init",value:function(e,i,o,a){this._gutterSize=fue(e),this._rows=i.rowCount,this._rowspan=i.rowspan,this._cols=o,this._direction=a}},{key:"getBaseTileSize",value:function(e,i){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(i,"))")}},{key:"getTilePosition",value:function(e,i){return 0===i?"0":eC("(".concat(e," + ").concat(this._gutterSize,") * ").concat(i))}},{key:"getTileSize",value:function(e,i){return"(".concat(e," * ").concat(i,") + (").concat(i-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,i,o){var a=100/this._cols,s=(this._cols-1)/this._cols;this.setColStyles(e,o,a,s),this.setRowStyles(e,i,a,s)}},{key:"setColStyles",value:function(e,i,o,a){var s=this.getBaseTileSize(o,a),l="rtl"===this._direction?"right":"left";e._setStyle(l,this.getTilePosition(s,i)),e._setStyle("width",eC(this.getTileSize(s,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),n}(),_et=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,B.Z)(e,[{key:"init",value:function(o,a,s,l){(0,dt.Z)((0,Ut.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=fue(this.fixedRowHeight),met.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(o,a){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,a)),o._setStyle("height",eC(this.getTileSize(this.fixedRowHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",eC("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["height",null]),o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(eV),get=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,U.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,B.Z)(e,[{key:"setRowStyles",value:function(o,a,s,l){var u=s/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(u,l),o._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,a)),o._setStyle("paddingTop",eC(this.getTileSize(this.baseTileHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",eC("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(o){o._setListStyle(["paddingBottom",null]),o._tiles.forEach(function(a){a._setStyle("marginTop",null),a._setStyle("paddingTop",null)})}},{key:"_parseRatio",value:function(o){var a=o.split(":");a.length,this.rowHeightRatio=parseFloat(a[0])/parseFloat(a[1])}}]),e}(eV),vet=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"setRowStyles",value:function(o,a){var s=100/this._rowspan,l=(this._rows-1)/this._rows,u=this.getBaseTileSize(s,l);o._setStyle("top",this.getTilePosition(u,a)),o._setStyle("height",eC(this.getTileSize(u,o.rowspan)))}},{key:"reset",value:function(o){o._tiles&&o._tiles.forEach(function(a){a._setStyle("top",null),a._setStyle("height",null)})}}]),e}(eV);function eC(n){return"calc(".concat(n,")")}function fue(n){return n.match(/([A-Za-z%]+)$/)?n:"".concat(n,"px")}var OP=function(){function n(r,e){(0,U.Z)(this,n),this._element=r,this._dir=e,this._gutter="1px"}return(0,B.Z)(n,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,Mn.su)(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var i="".concat(null==e?"":e);i!==this._rowHeight&&(this._rowHeight=i,this._setTileStyler(this._rowHeight))}},{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){this.cols}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),"fit"===e?this._tileStyler=new vet:e&&e.indexOf(":")>-1?this._tileStyler=new get(e):this._tileStyler=new _et(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new fet);var i=this._tileCoordinator,o=this._tiles.filter(function(s){return!s._gridList||s._gridList===e}),a=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,o),this._tileStyler.init(this.gutterSize,i,this.cols,a),o.forEach(function(s,l){var u=i.positions[l];e._tileStyler.setStyle(s,u.row,u.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}]),n}();OP.\u0275fac=function(r){return new(r||OP)(t.Y36(t.SBq),t.Y36(Ls.Is,8))},OP.\u0275cmp=t.Xpm({type:OP,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,AP,5),2&r)&&(t.iGM(o=t.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:pue,useExisting:OP}])],ngContentSelectors:due,decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var qT=(0,B.Z)(function n(){(0,U.Z)(this,n)});qT.\u0275fac=function(r){return new(r||qT)},qT.\u0275mod=t.oAB({type:qT}),qT.\u0275inj=t.cJS({imports:[Wt.uc,Wt.BQ,Wt.uc,Wt.BQ]});var JT=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,U.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,B.Z)(e,[{key:"ngOnInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,Wt.sb)((0,Wt.Id)(hu)));JT.\u0275fac=function(r){return new(r||JT)(t.Y36(t.SBq),t.Y36(Wu),t.$8M("tabindex"))},JT.\u0275dir=t.lG2({type:JT,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:hu,useExisting:JT}]),t.qOj]});var tC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Ym);tC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tC)))(e||tC)}}(),tC.\u0275dir=t.lG2({type:tC,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:Ym,useExisting:tC}]),t.qOj]});var wv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,U.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(o){this._tabIndex=null!=o?o:0}},{key:"ngOnInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}($f);wv.\u0275fac=function(r){return new(r||wv)(t.Y36(t.SBq),t.Y36(Wu),t.Y36(t.ZZ4),t.$8M("tabindex"))},wv.\u0275dir=t.lG2({type:wv,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:$f,useExisting:wv},{provide:hu,useExisting:wv},{provide:L5,useExisting:wv}]),t.qOj]});var nC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"level",get:function(){return this._level},set:function(o){this._setLevelInput(o)}},{key:"indent",get:function(){return this._indent},set:function(o){this._setIndentInput(o)}}]),e}(Wb);nC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nC)))(e||nC)}}(),nC.\u0275dir=t.lG2({type:nC,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[t._Bn([{provide:Wb,useExisting:nC}]),t.qOj]});var kv=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.viewContainer=r,this._node=e});kv.\u0275fac=function(r){return new(r||kv)(t.Y36(t.s_b),t.Y36(L5,8))},kv.\u0275dir=t.lG2({type:kv,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:Xf,useExisting:kv}])]});var rC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Wu);rC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rC)))(e||rC)}}(),rC.\u0275cmp=t.Xpm({type:rC,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(kv,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:Wu,useExisting:rC}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[kv],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});var iC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(_v);iC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(iC)))(e||iC)}}(),iC.\u0275dir=t.lG2({type:iC,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:_v,useExisting:iC}]),t.qOj]});var QT=(0,B.Z)(function n(){(0,U.Z)(this,n)});QT.\u0275fac=function(r){return new(r||QT)},QT.\u0275mod=t.oAB({type:QT}),QT.\u0275inj=t.cJS({imports:[Vb,Wt.BQ,Wt.BQ]});Ci.o2,Ci.o2;var Cet=[nT,dm,Dg,ik,bT,Sg,kn.lN,ok,hk,yk,Ek,nk,H0,nb,uk,dk,oT,$r.LD,F0,xk,_k,qT,Zi.Nh,QT,Sb,vT],oC=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),Wa.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof op&&(gtag("set","page",i.url),gtag("send","pageview"))})});oC.\u0275fac=function(r){return new(r||oC)(t.LFG(dr),t.LFG(jm.g))},oC.\u0275prov=t.Yz7({token:oC,factory:oC.\u0275fac});var XT=function(){function n(r){(0,U.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/settings")}},{key:"update",value:function(e,i){return this.httpController.post(e,"/settings",i)}},{key:"getSettingsForQemu",value:function(e){return this.httpController.get(e,"/settings/qemu")}},{key:"updateSettingsForQemu",value:function(e,i){return this.httpController.put(e,"/settings/qemu",{enable_hardware_acceleration:i.enable_hardware_acceleration,require_hardware_acceleration:i.require_hardware_acceleration})}}]),n}();XT.\u0275fac=function(r){return new(r||XT)(t.LFG(mo.zw))},XT.\u0275prov=t.Yz7({token:XT,factory:XT.\u0275fac});var $T=function(){function n(r,e){(0,U.Z)(this,n),this.controllerService=r,this.loginService=e}return(0,B.Z)(n,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,Xc.K)(function(a){if(401!==a.status&&403!==a.status)return(0,x0._)(a);o.call()}))}},{key:"call",value:function(){var e;return yi(this,void 0,void 0,Ln().mark(function i(){var o,a,s,l;return Ln().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,d.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=d.sent).tokenExpired=!0,d.next=8,this.controllerService.update(s);case 8:if(d.prev=8,!o||!o.isRememberMe){d.next=20;break}return d.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=d.sent,s.authToken=l.access_token,s.tokenExpired=!1,d.next=17,this.controllerService.update(s);case 17:return d.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:d.next=25;break;case 22:throw d.prev=22,d.t0=d.catch(8),d.t0;case 25:case"end":return d.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),n}();$T.\u0275fac=function(r){return new(r||$T)(t.LFG(rr),t.LFG(hm))},$T.\u0275prov=t.Yz7({token:$T,factory:$T.\u0275fac});var wet=["input"],ket=function(r){return{enterDuration:r}},Met=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),xet=0,Eet={provide:J.JU,useExisting:(0,t.Gpc)(function(){return IP}),multi:!0},Det=(0,B.Z)(function n(r,e){(0,U.Z)(this,n),this.source=r,this.checked=e}),Aet=(0,Wt.sb)((0,Wt.pj)((0,Wt.Kr)((0,Wt.Id)(function(){return(0,B.Z)(function n(r){(0,U.Z)(this,n),this._elementRef=r})}())))),nF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,U.Z)(this,e),(h=r.call(this,i))._focusMonitor=o,h._changeDetectorRef=a,h.defaults=l,h._onChange=function(g){},h._onTouched=function(){},h._required=!1,h._checked=!1,h.name=null,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new t.vpe,h.toggleChange=new t.vpe,h.tabIndex=parseInt(s)||0,h.color=h.defaultColor=l.color||"accent",h._noopAnimations="NoopAnimations"===u,h.id=h._uniqueId="".concat(d).concat(++xet),h}return(0,B.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,Mn.Ig)(o),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){"keyboard"===a||"program"===a?o._focused=!0:a||Promise.resolve().then(function(){o._focused=!1,o._onTouched(),o._changeDetectorRef.markForCheck()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this._changeDetectorRef.markForCheck()}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}]),e}(Aet);nF.\u0275fac=function(r){t.$Z()},nF.\u0275dir=t.lG2({type:nF,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]});var IP=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){return(0,U.Z)(this,e),r.call(this,i,o,a,s,l,u,"mat-slide-toggle-")}return(0,B.Z)(e,[{key:"_createChangeEvent",value:function(o){return new Det(this,o)}},{key:"_onChangeEvent",value:function(o){o.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(nF);IP.\u0275fac=function(r){return new(r||IP)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(Met),t.Y36(t.QbO,8))},IP.\u0275cmp=t.Xpm({type:IP,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(wet,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([Eet]),t.qOj],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()()(),t.TgZ(9,"span",9,10),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(11,"span",11),t._uU(12,"\xa0"),t.qZA(),t.Hsn(13),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(10);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),t.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(4),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,ket,e._noopAnimations?0:150))}},dependencies:[Wt.wG,RB.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0});var Oet={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return eM}),multi:!0},eM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,U.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(J.Zs);eM.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eM)))(e||eM)}}(),eM.\u0275dir=t.lG2({type:eM,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([Oet]),t.qOj]});var aC=(0,B.Z)(function n(){(0,U.Z)(this,n)});aC.\u0275fac=function(r){return new(r||aC)},aC.\u0275mod=t.oAB({type:aC}),aC.\u0275inj=t.cJS({});var tM=(0,B.Z)(function n(){(0,U.Z)(this,n)});tM.\u0275fac=function(r){return new(r||tM)},tM.\u0275mod=t.oAB({type:tM}),tM.\u0275inj=t.cJS({imports:[aC,Wt.si,Wt.BQ,RB.Q8,aC,Wt.BQ]});var nM=(0,B.Z)(function n(r){(0,U.Z)(this,n),this._googleAnalyticsService=r});nM.\u0275fac=function(r){return new(r||nM)(t.LFG(oC))},nM.\u0275mod=t.oAB({type:nM,bootstrap:[yP]}),nM.\u0275inj=t.cJS({providers:[jm.g,{provide:t.qLn,useClass:$b},{provide:sc.TP,useClass:$T,multi:!0},mm,wG,zs.Y,Of,rr,sp,Ir,pl,Ka,mo.zw,Vm,cv,Pn,Hs,sv,Fm.F,Ya.G,Kb,dv,Ll,Mb,va,mo.CJ,Df,Gu,Yf,XT,Bu,Em,Al,Sm,du,od,J0,q0,K0,Tm,Mm,Ig,Dm,wc,xm,Pg,nd,If,ad,Og,O5.p,pv,mp,fv,Ub,Nb,gp,ev,dl,Eb,ap.X,rv,Hm,Bb,Cc.f,oC,fu,_d,Fr,Gb,jr,Db,Hb,hm,Bl],imports:[ri,sc.JF,ZT,J.u5,J.UX,j1,nf,FT,jw,Hw,Wh,kn.lN,Dg,KY.ym,Y1,G_,Hne,Cet,Fw.forRoot(),Ei.U8,tM,nb,CT,Y0,Vb]}),t.B6R(fT,function(){return[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,cn,Dn,Kn,To,So,Ro,_o,Mo,Lo,Io,Po,Zo,No,ei,zu,vp,ai]},function(){return[DP]}),Wa.N.production&&(0,t.G48)(),Ra().bootstrapModule(nM).then(function(n){!function Ca(n){return qr(Uo,new Ar(n)),n}(n.injector.get(t.z2F).components[0])}).catch(function(n){return console.log(n)})},7312:function(Ae,K,m){"use strict";m.d(K,{R:function(){return A},Y:function(){return H}});var G=m(3295),W={};function A(){return(0,G.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:W}function H(R,P,x){var D=x||A(),j=D.__SENTRY__=D.__SENTRY__||{};return j[R]||(j[R]=P())}},3295:function(Ae,K,m){"use strict";function W(){return!function G(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function A(R,P){return R.require(P)}m.d(K,{l$:function(){return A},KV:function(){return W}}),Ae=m.hmd(Ae)},3169:function(Ae,K,m){"use strict";m.d(K,{ph:function(){return j},yW:function(){return D}});var G=m(7312),W=m(3295);Ae=m.hmd(Ae);var A={nowSeconds:function(){return Date.now()/1e3}};var P=(0,W.KV)()?function R(){try{return(0,W.l$)(Ae,"perf_hooks").performance}catch(S){return}}():function H(){var O=(0,G.R)().performance;if(O&&O.now)return{now:function(){return O.now()},timeOrigin:Date.now()-O.now()}}(),x=void 0===P?A:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},D=A.nowSeconds.bind(A),j=x.nowSeconds.bind(x);!function(){var O=(0,G.R)().performance;if(O&&O.now){var S=36e5,y=O.now(),T=Date.now(),M=O.timeOrigin?Math.abs(O.timeOrigin+y-T):S,E=M<S,N=O.timing&&O.timing.navigationStart,X="number"==typeof N?Math.abs(N+y-T):S;return E||X<S?M<=X?("timeOrigin",O.timeOrigin):("navigationStart",N):("dateNow",T)}"none"}()},2072:function(Ae,K,m){"use strict";m.d(K,{E$:function(){return Ze},ym:function(){return pn}});var G=m(7685),W=m(5671),A=m(3144),H=m(9808),R=m(5e3),P=m(8929),x=m(6787),D=m(8896),j=m(7451),L=m(3753),v=m(2994),k=m(8117),b=m(1059),O=m(4850),S=m(7545),y=m(7568),T=m(7625),M=m(1709),E=m(2986),N=m(519),F=m(9664),X="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function $(nt,Ot){var _t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Ct=Math.abs(nt-Ot);return Ct<_t}function Y(nt,Ot,_t,Ct){var We={top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right};return Ot.top&&(We.top+=Ct),Ot.bottom&&(We.bottom+=Ct),Ot.left&&(We.left+=_t),Ot.right&&(We.right+=_t),We.height=We.bottom-We.top,We.width=We.right-We.left,We}function ne(nt){var Ot=nt.clientY,_t=nt.rect;return Ot>=_t.top&&Ot<=_t.bottom}function be(nt){var Ot=nt.clientX,_t=nt.rect;return Ot>=_t.left&&Ot<=_t.right}function fe(nt){var Ot=nt.clientX,_t=nt.clientY,Ct=nt.elm,We=nt.allowedEdges,ut=nt.cursorPrecision,dt=Ct.nativeElement.getBoundingClientRect(),Ut={};return We.left&&$(Ot,dt.left,ut)&&ne({clientY:_t,rect:dt})&&(Ut.left=!0),We.right&&$(Ot,dt.right,ut)&&ne({clientY:_t,rect:dt})&&(Ut.right=!0),We.top&&$(_t,dt.top,ut)&&be({clientX:Ot,rect:dt})&&(Ut.top=!0),We.bottom&&$(_t,dt.bottom,ut)&&be({clientX:Ot,rect:dt})&&(Ut.bottom=!0),Ut}var de=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function le(nt,Ot){return nt.left&&nt.top?Ot.topLeft:nt.right&&nt.top?Ot.topRight:nt.left&&nt.bottom?Ot.bottomLeft:nt.right&&nt.bottom?Ot.bottomRight:nt.left||nt.right?Ot.leftOrRight:nt.top||nt.bottom?Ot.topOrBottom:""}function ce(nt){var Ot=nt.edges,_t=nt.initialRectangle,Ct=nt.newRectangle,We={};return Object.keys(Ot).forEach(function(ut){We[ut]=(Ct[ut]||0)-(_t[ut]||0)}),We}var me="resize-active",Ze=function(){function nt(Ot,_t,Ct,We){(0,W.Z)(this,nt),this.platformId=Ot,this.renderer=_t,this.elm=Ct,this.zone=We,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=de,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new R.vpe,this.resizing=new R.vpe,this.resizeEnd=new R.vpe,this.mouseup=new P.xQ,this.mousedown=new P.xQ,this.mousemove=new P.xQ,this.destroy$=new P.xQ,this.resizeEdges$=new P.xQ,this.pointerEventListeners=$t.getInstance(_t,We)}return(0,A.Z)(nt,[{key:"ngOnInit",value:function(){var dt,_t=this,Ct=(0,x.T)(this.pointerEventListeners.pointerDown,this.mousedown),We=(0,x.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,v.b)(function(tt){var Ye=tt.event;if(dt)try{Ye.preventDefault()}catch(ge){}}),(0,k.B)()),ut=(0,x.T)(this.pointerEventListeners.pointerUp,this.mouseup),Ut=function(){dt&&dt.clonedNode&&(_t.elm.nativeElement.parentElement.removeChild(dt.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","inherit"))},B=function(){return Object.assign({},de,_t.resizeCursors)};this.resizeEdges$.pipe((0,b.O)(this.resizeEdges),(0,O.U)(function(){return _t.resizeEdges&&Object.keys(_t.resizeEdges).some(function(tt){return!!_t.resizeEdges[tt]})}),(0,S.w)(function(tt){return tt?We:D.E}),(0,y.e)(this.mouseMoveThrottleMS),(0,T.R)(this.destroy$)).subscribe(function(tt){var t=fe({clientX:tt.clientX,clientY:tt.clientY,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision}),Dt=B();if(!dt){var Zt=le(t,Dt);_t.renderer.setStyle(_t.elm.nativeElement,"cursor",Zt)}_t.setElementClass(_t.elm,"resize-left-hover",!0===t.left),_t.setElementClass(_t.elm,"resize-right-hover",!0===t.right),_t.setElementClass(_t.elm,"resize-top-hover",!0===t.top),_t.setElementClass(_t.elm,"resize-bottom-hover",!0===t.bottom)}),Ct.pipe((0,M.zg)(function(tt){function Ye(Dt){return{clientX:Dt.clientX-tt.clientX,clientY:Dt.clientY-tt.clientY}}var ge=function(){var Zt={x:1,y:1};return dt&&(_t.resizeSnapGrid.left&&dt.edges.left?Zt.x=+_t.resizeSnapGrid.left:_t.resizeSnapGrid.right&&dt.edges.right&&(Zt.x=+_t.resizeSnapGrid.right),_t.resizeSnapGrid.top&&dt.edges.top?Zt.y=+_t.resizeSnapGrid.top:_t.resizeSnapGrid.bottom&&dt.edges.bottom&&(Zt.y=+_t.resizeSnapGrid.bottom)),Zt};function t(Dt,Zt){return{x:Math.ceil(Dt.clientX/Zt.x),y:Math.ceil(Dt.clientY/Zt.y)}}return(0,x.T)(We.pipe((0,E.q)(1)).pipe((0,O.U)(function(Dt){return[,Dt]})),We.pipe((0,N.G)())).pipe((0,O.U)(function(Dt){var Zt=(0,G.Z)(Dt,2),zt=Zt[0],sn=Zt[1];return[zt&&Ye(zt),Ye(sn)]})).pipe((0,F.h)(function(Dt){var Zt=(0,G.Z)(Dt,2),zt=Zt[0],sn=Zt[1];if(!zt)return!0;var qt=ge(),yn=t(zt,qt),Kt=t(sn,qt);return yn.x!==Kt.x||yn.y!==Kt.y})).pipe((0,O.U)(function(Dt){var zt=(0,G.Z)(Dt,2)[1],sn=ge();return{clientX:Math.round(zt.clientX/sn.x)*sn.x,clientY:Math.round(zt.clientY/sn.y)*sn.y}})).pipe((0,T.R)((0,x.T)(ut,Ct)))})).pipe((0,F.h)(function(){return!!dt})).pipe((0,O.U)(function(tt){var Ye=tt.clientX,ge=tt.clientY;return Y(dt.startingRect,dt.edges,Ye,ge)})).pipe((0,F.h)(function(tt){return _t.allowNegativeResizes||!!(tt.height&&tt.width&&tt.height>0&&tt.width>0)})).pipe((0,F.h)(function(tt){return!_t.validateResize||_t.validateResize({rectangle:tt,edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:tt})})}),(0,T.R)(this.destroy$)).subscribe(function(tt){dt&&dt.clonedNode&&(_t.renderer.setStyle(dt.clonedNode,"height","".concat(tt.height,"px")),_t.renderer.setStyle(dt.clonedNode,"width","".concat(tt.width,"px")),_t.renderer.setStyle(dt.clonedNode,"top","".concat(tt.top,"px")),_t.renderer.setStyle(dt.clonedNode,"left","".concat(tt.left,"px"))),_t.resizing.observers.length>0&&_t.zone.run(function(){_t.resizing.emit({edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:tt}),rectangle:tt})}),dt.currentRect=tt}),Ct.pipe((0,O.U)(function(tt){var Ye=tt.clientX,ge=tt.clientY;return tt.edges||fe({clientX:Ye,clientY:ge,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision})})).pipe((0,F.h)(function(tt){return Object.keys(tt).length>0}),(0,T.R)(this.destroy$)).subscribe(function(tt){dt&&Ut();var Ye=function Q(nt,Ot){var _t=0,Ct=0,We=nt.nativeElement.style,dt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(B){return We[B]}).find(function(B){return!!B});if(dt&&dt.includes("translate")&&(_t=dt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Ct=dt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Ot)return{height:nt.nativeElement.offsetHeight,width:nt.nativeElement.offsetWidth,top:nt.nativeElement.offsetTop-Ct,bottom:nt.nativeElement.offsetHeight+nt.nativeElement.offsetTop-Ct,left:nt.nativeElement.offsetLeft-_t,right:nt.nativeElement.offsetWidth+nt.nativeElement.offsetLeft-_t};var Ut=nt.nativeElement.getBoundingClientRect();return{height:Ut.height,width:Ut.width,top:Ut.top-Ct,bottom:Ut.bottom-Ct,left:Ut.left-_t,right:Ut.right-_t,scrollTop:nt.nativeElement.scrollTop,scrollLeft:nt.nativeElement.scrollLeft}}(_t.elm,_t.ghostElementPositioning);dt={edges:tt,startingRect:Ye,currentRect:Ye};var ge=B(),t=le(dt.edges,ge);_t.renderer.setStyle(document.body,"cursor",t),_t.setElementClass(_t.elm,me,!0),_t.enableGhostResize&&(dt.clonedNode=_t.elm.nativeElement.cloneNode(!0),_t.elm.nativeElement.parentElement.appendChild(dt.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","hidden"),_t.renderer.setStyle(dt.clonedNode,"position",_t.ghostElementPositioning),_t.renderer.setStyle(dt.clonedNode,"left","".concat(dt.startingRect.left,"px")),_t.renderer.setStyle(dt.clonedNode,"top","".concat(dt.startingRect.top,"px")),_t.renderer.setStyle(dt.clonedNode,"height","".concat(dt.startingRect.height,"px")),_t.renderer.setStyle(dt.clonedNode,"width","".concat(dt.startingRect.width,"px")),_t.renderer.setStyle(dt.clonedNode,"cursor",le(dt.edges,ge)),_t.renderer.addClass(dt.clonedNode,"resize-ghost-element"),dt.clonedNode.scrollTop=dt.startingRect.scrollTop,dt.clonedNode.scrollLeft=dt.startingRect.scrollLeft),_t.resizeStart.observers.length>0&&_t.zone.run(function(){_t.resizeStart.emit({edges:ce({edges:tt,initialRectangle:Ye,newRectangle:Ye}),rectangle:Y(Ye,{},0,0)})})}),ut.pipe((0,T.R)(this.destroy$)).subscribe(function(){dt&&(_t.renderer.removeClass(_t.elm.nativeElement,me),_t.renderer.setStyle(document.body,"cursor",""),_t.renderer.setStyle(_t.elm.nativeElement,"cursor",""),_t.resizeEnd.observers.length>0&&_t.zone.run(function(){_t.resizeEnd.emit({edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:dt.currentRect}),rectangle:dt.currentRect})}),Ut(),dt=null)})}},{key:"ngOnChanges",value:function(_t){_t.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,H.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(_t,Ct,We){We?this.renderer.addClass(_t.nativeElement,Ct):this.renderer.removeClass(_t.nativeElement,Ct)}}]),nt}();Ze.\u0275fac=function(Ot){return new(Ot||Ze)(R.Y36(R.Lbi),R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b))},Ze.\u0275dir=R.lG2({type:Ze,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[R.TTD]}),Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:R.tBr,args:[R.Lbi]}]},{type:R.Qsj},{type:R.SBq},{type:R.R0b}]},Ze.propDecorators={validateResize:[{type:R.IIB}],resizeEdges:[{type:R.IIB}],enableGhostResize:[{type:R.IIB}],resizeSnapGrid:[{type:R.IIB}],resizeCursors:[{type:R.IIB}],resizeCursorPrecision:[{type:R.IIB}],ghostElementPositioning:[{type:R.IIB}],allowNegativeResizes:[{type:R.IIB}],mouseMoveThrottleMS:[{type:R.IIB}],resizeStart:[{type:R.r_U}],resizing:[{type:R.r_U}],resizeEnd:[{type:R.r_U}]};var $t=function(){function nt(Ot,_t){(0,W.Z)(this,nt),this.pointerDown=new j.y(function(Ct){var We,ut;return _t.runOutsideAngular(function(){We=Ot.listen("document","mousedown",function(dt){Ct.next({clientX:dt.clientX,clientY:dt.clientY,event:dt})}),X&&(ut=Ot.listen("document","touchstart",function(dt){Ct.next({clientX:dt.touches[0].clientX,clientY:dt.touches[0].clientY,event:dt})}))}),function(){We(),X&&ut()}}).pipe((0,k.B)()),this.pointerMove=new j.y(function(Ct){var We,ut;return _t.runOutsideAngular(function(){We=Ot.listen("document","mousemove",function(dt){Ct.next({clientX:dt.clientX,clientY:dt.clientY,event:dt})}),X&&(ut=Ot.listen("document","touchmove",function(dt){Ct.next({clientX:dt.targetTouches[0].clientX,clientY:dt.targetTouches[0].clientY,event:dt})}))}),function(){We(),X&&ut()}}).pipe((0,k.B)()),this.pointerUp=new j.y(function(Ct){var We,ut,dt;return _t.runOutsideAngular(function(){We=Ot.listen("document","mouseup",function(Ut){Ct.next({clientX:Ut.clientX,clientY:Ut.clientY,event:Ut})}),X&&(ut=Ot.listen("document","touchend",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}),dt=Ot.listen("document","touchcancel",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}))}),function(){We(),X&&(ut(),dt())}}).pipe((0,k.B)())}return(0,A.Z)(nt,null,[{key:"getInstance",value:function(_t,Ct){return nt.instance||(nt.instance=new nt(_t,Ct)),nt.instance}}]),nt}(),Ft=function(){function nt(Ot,_t,Ct,We){(0,W.Z)(this,nt),this.renderer=Ot,this.element=_t,this.zone=Ct,this.resizableDirective=We,this.resizeEdges={},this.eventListeners={},this.destroy$=new P.xQ}return(0,A.Z)(nt,[{key:"ngOnInit",value:function(){var _t=this;this.zone.runOutsideAngular(function(){_t.listenOnTheHost("mousedown").subscribe(function(Ct){_t.onMousedown(Ct,Ct.clientX,Ct.clientY)}),_t.listenOnTheHost("mouseup").subscribe(function(Ct){_t.onMouseup(Ct.clientX,Ct.clientY)}),X&&(_t.listenOnTheHost("touchstart").subscribe(function(Ct){_t.onMousedown(Ct,Ct.touches[0].clientX,Ct.touches[0].clientY)}),(0,x.T)(_t.listenOnTheHost("touchend"),_t.listenOnTheHost("touchcancel")).subscribe(function(Ct){_t.onMouseup(Ct.changedTouches[0].clientX,Ct.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(_t,Ct,We){var ut=this;_t.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(dt){ut.onMousemove(dt,dt.targetTouches[0].clientX,dt.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(dt){ut.onMousemove(dt,dt.clientX,dt.clientY)})),this.resizable.mousedown.next({clientX:Ct,clientY:We,edges:this.resizeEdges})}},{key:"onMouseup",value:function(_t,Ct){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:_t,clientY:Ct,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(_t,Ct,We){this.resizable.mousemove.next({clientX:Ct,clientY:We,edges:this.resizeEdges,event:_t})}},{key:"unsubscribeEventListeners",value:function(){var _t=this;Object.keys(this.eventListeners).forEach(function(Ct){_t.eventListeners[Ct](),delete _t.eventListeners[Ct]})}},{key:"listenOnTheHost",value:function(_t){return(0,L.R)(this.element.nativeElement,_t).pipe((0,T.R)(this.destroy$))}}]),nt}();Ft.\u0275fac=function(Ot){return new(Ot||Ft)(R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b),R.Y36(Ze,8))},Ft.\u0275dir=R.lG2({type:Ft,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Ft.ctorParameters=function(){return[{type:R.Qsj},{type:R.SBq},{type:R.R0b},{type:Ze,decorators:[{type:R.FiY}]}]},Ft.propDecorators={resizeEdges:[{type:R.IIB}],resizableContainer:[{type:R.IIB}]};var pn=(0,A.Z)(function nt(){(0,W.Z)(this,nt)});pn.\u0275fac=function(Ot){return new(Ot||pn)},pn.\u0275mod=R.oAB({type:pn}),pn.\u0275inj=R.cJS({})},1396:function(Ae){!function(K){"use strict";var m="(0?\\d+|0x[a-f0-9]+)",G={fourOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),threeOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),twoOctet:new RegExp("^".concat(m,"\\.").concat(m,"$"),"i"),longValue:new RegExp("^".concat(m,"$"),"i")},W=new RegExp("^0[0-7]+$","i"),A=new RegExp("^0x[a-f0-9]+$","i"),H="%[0-9a-z]{1,}",R="(?:[0-9a-f]+::?)+",P={zoneIndex:new RegExp(H,"i"),native:new RegExp("^(::)?(".concat(R,")?([0-9a-f]+)?(::)?(").concat(H,")?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(H,")?)$"),"i"),transitional:new RegExp("^((?:".concat(R,")|(?:::)(?:").concat(R,")?)").concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(H,")?$"),"i")};function x(k,b){if(k.indexOf("::")!==k.lastIndexOf("::"))return null;var T,M,O=0,S=-1,y=(k.match(P.zoneIndex)||[])[0];for(y&&(y=y.substring(1),k=k.replace(/%.+$/,""));(S=k.indexOf(":",S+1))>=0;)O++;if("::"===k.substr(0,2)&&O--,"::"===k.substr(-2,2)&&O--,O>b)return null;for(M=b-O,T=":";M--;)T+="0:";return":"===(k=k.replace("::",T))[0]&&(k=k.slice(1)),":"===k[k.length-1]&&(k=k.slice(0,-1)),{parts:b=function(){for(var E=k.split(":"),N=[],F=0;F<E.length;F++)N.push(parseInt(E[F],16));return N}(),zoneId:y}}function D(k,b,O,S){if(k.length!==b.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var T,y=0;S>0;){if((T=O-S)<0&&(T=0),k[y]>>T!=b[y]>>T)return!1;S-=O,y+=1}return!0}function j(k){if(A.test(k))return parseInt(k,16);if("0"===k[0]&&!isNaN(parseInt(k[1],10))){if(W.test(k))return parseInt(k,8);throw new Error("ipaddr: cannot parse ".concat(k," as octal"))}return parseInt(k,10)}function L(k,b){for(;k.length<b;)k="0".concat(k);return k}var v={};v.IPv4=function(){function k(b){if(4!==b.length)throw new Error("ipaddr: ipv4 octet count should be 4");var O,S;for(O=0;O<b.length;O++)if(!(0<=(S=b[O])&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=b}return k.prototype.SpecialRanges={unspecified:[[new k([0,0,0,0]),8]],broadcast:[[new k([255,255,255,255]),32]],multicast:[[new k([224,0,0,0]),4]],linkLocal:[[new k([169,254,0,0]),16]],loopback:[[new k([127,0,0,0]),8]],carrierGradeNat:[[new k([100,64,0,0]),10]],private:[[new k([10,0,0,0]),8],[new k([172,16,0,0]),12],[new k([192,168,0,0]),16]],reserved:[[new k([192,0,0,0]),24],[new k([192,0,2,0]),24],[new k([192,88,99,0]),24],[new k([198,18,0,0]),15],[new k([198,51,100,0]),24],[new k([203,0,113,0]),24],[new k([240,0,0,0]),4]]},k.prototype.kind=function(){return"ipv4"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv4"!==b.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return D(this.octets,b.octets,8,O)},k.prototype.prefixLengthFromSubnetMask=function(){var y,T,M,b=0,O=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(y=3;y>=0;y-=1){if(!((T=this.octets[y])in S))return null;if(M=S[T],O&&0!==M)return null;8!==M&&(O=!0),b+=M}return 32-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){return this.octets.slice(0)},k.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse("::ffff:".concat(this.toString()))},k.prototype.toNormalizedString=function(){return this.toString()},k.prototype.toString=function(){return this.octets.join(".")},k}(),v.IPv4.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<4;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(k){return null!==this.parser(k)},v.IPv4.isValid=function(k){try{return new this(this.parser(k)),!0}catch(b){return!1}},v.IPv4.isValidFourPartDecimal=function(k){return!(!v.IPv4.isValid(k)||!k.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<4;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(k){var b=this.parser(k);if(null===b)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(b)},v.IPv4.parseCIDR=function(k){var b;if(b=k.match(/^(.+)\/(\d+)$/)){var O=parseInt(b[2]);if(O>=0&&O<=32){var S=[this.parse(b[1]),O];return Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(k){var b,O,S;if(b=k.match(G.fourOctet))return function(){for(var y=b.slice(1,6),T=[],M=0;M<y.length;M++)O=y[M],T.push(j(O));return T}();if(b=k.match(G.longValue)){if((S=j(b[1]))>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return function(){var T,y=[];for(T=0;T<=24;T+=8)y.push(S>>T&255);return y}().reverse()}return(b=k.match(G.twoOctet))?function(){var y=b.slice(1,4),T=[];if((S=j(y[1]))>16777215||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(S>>16&255),T.push(S>>8&255),T.push(255&S),T}():(b=k.match(G.threeOctet))?function(){var y=b.slice(1,5),T=[];if((S=j(y[2]))>65535||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(j(y[1])),T.push(S>>8&255),T.push(255&S),T}():null},v.IPv4.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var b=[0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<4&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.IPv6=function(){function k(b,O){var S,y;if(16===b.length)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(b[S]<<8|b[S+1]);else{if(8!==b.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=b}for(S=0;S<this.parts.length;S++)if(!(0<=(y=this.parts[S])&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");O&&(this.zoneId=O)}return k.prototype.SpecialRanges={unspecified:[new k([0,0,0,0,0,0,0,0]),128],linkLocal:[new k([65152,0,0,0,0,0,0,0]),10],multicast:[new k([65280,0,0,0,0,0,0,0]),8],loopback:[new k([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new k([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new k([0,0,0,0,0,65535,0,0]),96],rfc6145:[new k([0,0,0,0,65535,0,0,0]),96],rfc6052:[new k([100,65435,0,0,0,0,0,0]),96],"6to4":[new k([8194,0,0,0,0,0,0,0]),16],teredo:[new k([8193,0,0,0,0,0,0,0]),32],reserved:[[new k([8193,3512,0,0,0,0,0,0]),32]],benchmarking:[new k([8193,2,0,0,0,0,0,0]),48],amt:[new k([8193,3,0,0,0,0,0,0]),32],as112v6:[new k([8193,4,274,0,0,0,0,0]),48],deprecated:[new k([8193,16,0,0,0,0,0,0]),28],orchid2:[new k([8193,32,0,0,0,0,0,0]),28]},k.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},k.prototype.kind=function(){return"ipv6"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv6"!==b.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return D(this.parts,b.parts,16,O)},k.prototype.prefixLengthFromSubnetMask=function(){for(var y,T,b=0,O=!1,S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},M=7;M>=0;M-=1){if(!((y=this.parts[M])in S))return null;if(T=S[y],O&&0!==T)return null;16!==T&&(O=!0),b+=T}return 128-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){for(var b,O=[],S=this.parts,y=0;y<S.length;y++)b=S[y],O.push(b>>8),O.push(255&b);return O},k.prototype.toFixedLengthString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(L(this.parts[y].toString(16),4));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var b=this.parts.slice(-2),O=b[0],S=b[1];return new v.IPv4([O>>8,255&O,S>>8,255&S])},k.prototype.toNormalizedString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(this.parts[y].toString(16));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toRFC5952String=function(){for(var T,b=/((^|:)(0(:|$)){2,})/g,O=this.toNormalizedString(),S=0,y=-1;T=b.exec(O);)T[0].length>y&&(S=T.index,y=T[0].length);return y<0?O:"".concat(O.substring(0,S),"::").concat(O.substring(S+y))},k.prototype.toString=function(){return this.toRFC5952String()},k}(),v.IPv6.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<16;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.isIPv6=function(k){return null!==this.parser(k)},v.IPv6.isValid=function(k){if("string"==typeof k&&-1===k.indexOf(":"))return!1;try{var b=this.parser(k);return new this(b.parts,b.zoneId),!0}catch(O){return!1}},v.IPv6.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<16;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.parse=function(k){var b=this.parser(k);if(null===b.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(b.parts,b.zoneId)},v.IPv6.parseCIDR=function(k){var b,O,S;if((O=k.match(/^(.+)\/(\d+)$/))&&((b=parseInt(O[2]))>=0&&b<=128))return S=[this.parse(O[1]),b],Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(k){var b,O,S,y,T,M;if(S=k.match(P.deprecatedTransitional))return this.parser("::ffff:".concat(S[1]));if(P.native.test(k))return x(k,8);if((S=k.match(P.transitional))&&(M=S[6]||"",(b=x(S[1].slice(0,-1)+M,6)).parts)){for(T=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],O=0;O<T.length;O++)if(!(0<=(y=T[O])&&y<=255))return null;return b.parts.push(T[0]<<8|T[1]),b.parts.push(T[2]<<8|T[3]),{parts:b.parts,zoneId:b.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<16&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.fromByteArray=function(k){var b=k.length;if(4===b)return new v.IPv4(k);if(16===b)return new v.IPv6(k);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(k){return v.IPv6.isValid(k)||v.IPv4.isValid(k)},v.parse=function(k){if(v.IPv6.isValid(k))return v.IPv6.parse(k);if(v.IPv4.isValid(k))return v.IPv4.parse(k);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(k){try{return v.IPv6.parseCIDR(k)}catch(b){try{return v.IPv4.parseCIDR(k)}catch(O){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(k){var b=this.parse(k);return"ipv6"===b.kind()&&b.isIPv4MappedAddress()?b.toIPv4Address():b},v.subnetMatch=function(k,b,O){var S,y,T,M;for(y in null==O&&(O="unicast"),b)if(Object.prototype.hasOwnProperty.call(b,y))for((T=b[y])[0]&&!(T[0]instanceof Array)&&(T=[T]),S=0;S<T.length;S++)if(M=T[S],k.kind()===M[0].kind()&&k.match.apply(k,M))return y;return O},Ae.exports?Ae.exports=v:K.ipaddr=v}(this)},7521:function(Ae,K,m){var G;!function(W,A,H){if(W){for(var j,R={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},D={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},L=1;L<20;++L)R[111+L]="f"+L;for(L=0;L<=9;++L)R[L+96]=L.toString();$.prototype.bind=function(Y,Q,ne){return Y=Y instanceof Array?Y:[Y],this._bindMultiple.call(this,Y,Q,ne),this},$.prototype.unbind=function(Y,Q){return this.bind.call(this,Y,function(){},Q)},$.prototype.trigger=function(Y,Q){return this._directMap[Y+":"+Q]&&this._directMap[Y+":"+Q]({},Y),this},$.prototype.reset=function(){var Y=this;return Y._callbacks={},Y._directMap={},Y},$.prototype.stopCallback=function(Y,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||X(Q,this.target))return!1;if("composedPath"in Y&&"function"==typeof Y.composedPath){var be=Y.composedPath()[0];be!==Y.target&&(Q=be)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},$.prototype.handleKey=function(){var Y=this;return Y._handleKey.apply(Y,arguments)},$.addKeycodes=function(Y){for(var Q in Y)Y.hasOwnProperty(Q)&&(R[Q]=Y[Q]);j=null},$.init=function(){var Y=$(A);for(var Q in Y)"_"!==Q.charAt(0)&&($[Q]=function(ne){return function(){return Y[ne].apply(Y,arguments)}}(Q))},$.init(),W.Mousetrap=$,Ae.exports&&(Ae.exports=$),void 0!==(G=function(){return $}.call(K,m,K,Ae))&&(Ae.exports=G)}function v(Y,Q,ne){Y.addEventListener?Y.addEventListener(Q,ne,!1):Y.attachEvent("on"+Q,ne)}function k(Y){if("keypress"==Y.type){var Q=String.fromCharCode(Y.which);return Y.shiftKey||(Q=Q.toLowerCase()),Q}return R[Y.which]?R[Y.which]:P[Y.which]?P[Y.which]:String.fromCharCode(Y.which).toLowerCase()}function b(Y,Q){return Y.sort().join(",")===Q.sort().join(",")}function T(Y){return"shift"==Y||"ctrl"==Y||"alt"==Y||"meta"==Y}function E(Y,Q,ne){return ne||(ne=function M(){if(!j)for(var Y in j={},R)Y>95&&Y<112||R.hasOwnProperty(Y)&&(j[R[Y]]=Y);return j}()[Y]?"keydown":"keypress"),"keypress"==ne&&Q.length&&(ne="keydown"),ne}function F(Y,Q){var ne,be,fe,de=[];for(ne=function N(Y){return"+"===Y?["+"]:(Y=Y.replace(/\+{2}/g,"+plus")).split("+")}(Y),fe=0;fe<ne.length;++fe)be=ne[fe],D[be]&&(be=D[be]),Q&&"keypress"!=Q&&x[be]&&(be=x[be],de.push("shift")),T(be)&&de.push(be);return{key:be,modifiers:de,action:Q=E(be,de,Q)}}function X(Y,Q){return null!==Y&&Y!==A&&(Y===Q||X(Y.parentNode,Q))}function $(Y){var Q=this;if(Y=Y||A,!(Q instanceof $))return new $(Y);Q.target=Y,Q._callbacks={},Q._directMap={};var be,ne={},fe=!1,de=!1,le=!1;function ce(Lt){Lt=Lt||{};var $t,Ze=!1;for($t in ne)Lt[$t]?Ze=!0:ne[$t]=0;Ze||(le=!1)}function me(Lt,Ze,$t,Ft,pn,nt){var Ot,_t,Ct=[],We=$t.type;if(!Q._callbacks[Lt])return[];for("keyup"==We&&T(Lt)&&(Ze=[Lt]),Ot=0;Ot<Q._callbacks[Lt].length;++Ot)if(_t=Q._callbacks[Lt][Ot],(Ft||!_t.seq||ne[_t.seq]==_t.level)&&We==_t.action&&("keypress"==We&&!$t.metaKey&&!$t.ctrlKey||b(Ze,_t.modifiers))){var ut=!Ft&&_t.combo==pn,dt=Ft&&_t.seq==Ft&&_t.level==nt;(ut||dt)&&Q._callbacks[Lt].splice(Ot,1),Ct.push(_t)}return Ct}function je(Lt,Ze,$t,Ft){Q.stopCallback(Ze,Ze.target||Ze.srcElement,$t,Ft)||!1===Lt(Ze,$t)&&(function S(Y){Y.preventDefault?Y.preventDefault():Y.returnValue=!1}(Ze),function y(Y){Y.stopPropagation?Y.stopPropagation():Y.cancelBubble=!0}(Ze))}function st(Lt){"number"!=typeof Lt.which&&(Lt.which=Lt.keyCode);var Ze=k(Lt);if(Ze){if("keyup"==Lt.type&&fe===Ze)return void(fe=!1);Q.handleKey(Ze,function O(Y){var Q=[];return Y.shiftKey&&Q.push("shift"),Y.altKey&&Q.push("alt"),Y.ctrlKey&&Q.push("ctrl"),Y.metaKey&&Q.push("meta"),Q}(Lt),Lt)}}function Tt(Lt,Ze,$t,Ft){function pn(We){return function(){le=We,++ne[Lt],function Mt(){clearTimeout(be),be=setTimeout(ce,1e3)}()}}function nt(We){je($t,We,Lt),"keyup"!==Ft&&(fe=k(We)),setTimeout(ce,10)}ne[Lt]=0;for(var Ot=0;Ot<Ze.length;++Ot){var Ct=Ot+1===Ze.length?nt:pn(Ft||F(Ze[Ot+1]).action);Et(Ze[Ot],Ct,Ft,Lt,Ot)}}function Et(Lt,Ze,$t,Ft,pn){Q._directMap[Lt+":"+$t]=Ze;var Ot,nt=(Lt=Lt.replace(/\s+/g," ")).split(" ");nt.length>1?Tt(Lt,nt,Ze,$t):(Ot=F(Lt,$t),Q._callbacks[Ot.key]=Q._callbacks[Ot.key]||[],me(Ot.key,Ot.modifiers,{type:Ot.action},Ft,Lt,pn),Q._callbacks[Ot.key][Ft?"unshift":"push"]({callback:Ze,modifiers:Ot.modifiers,action:Ot.action,seq:Ft,level:pn,combo:Lt}))}Q._handleKey=function(Lt,Ze,$t){var pn,Ft=me(Lt,Ze,$t),nt={},Ot=0,_t=!1;for(pn=0;pn<Ft.length;++pn)Ft[pn].seq&&(Ot=Math.max(Ot,Ft[pn].level));for(pn=0;pn<Ft.length;++pn)if(Ft[pn].seq){if(Ft[pn].level!=Ot)continue;_t=!0,nt[Ft[pn].seq]=1,je(Ft[pn].callback,$t,Ft[pn].combo,Ft[pn].seq)}else _t||je(Ft[pn].callback,$t,Ft[pn].combo);var Ct="keypress"==$t.type&&de;$t.type==le&&!T(Lt)&&!Ct&&ce(nt),de=_t&&"keydown"==$t.type},Q._bindMultiple=function(Lt,Ze,$t){for(var Ft=0;Ft<Lt.length;++Ft)Et(Lt[Ft],Ze,$t)},v(Y,"keypress",st),v(Y,"keydown",st),v(Y,"keyup",st)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.Observable=G.Observable,K.Subject=G.Subject;var W=m(5718);K.AnonymousSubject=W.AnonymousSubject;var A=m(5718);K.config=A.config,m(5010),m(9471),m(2687),m(2750),m(2977),m(2925),m(2231),m(1897),m(7026),m(6187),m(1562),m(9470),m(4641),m(3408),m(7975),m(6034),m(3518),m(1305),m(9566),m(6839),m(1672),m(1216),m(987),m(8366),m(5991),m(8173),m(1357),m(5615),m(3056),m(7551),m(2080),m(8273),m(5500),m(8413),m(39),m(2964),m(3569),m(2243),m(3768),m(1989),m(7613),m(4655),m(4997),m(7417),m(5934),m(7199),m(8047),m(1381),m(1817),m(9754),m(9574),m(8124),m(230),m(2995),m(2181),m(5803),m(3928),m(9193),m(9733),m(5755),m(8744),m(1872),m(9982),m(7980),m(3368),m(1448),m(598),m(5772),m(2172),m(5136),m(600),m(69),m(7939),m(8345),m(1128),m(7943),m(7896),m(8324),m(1736),m(9473),m(8418),m(8180),m(3373),m(5313),m(1860),m(4376),m(2941),m(9762),m(5507),m(522),m(6278),m(7459),m(6269),m(1080),m(3634),m(4051),m(5161),m(5247),m(6776),m(7337),m(8),m(1405),m(5431),m(1986),m(454),m(2738),m(8201),m(7024),m(1434),m(492),m(6166),m(1730),m(7499),m(1281),m(523),m(9049),m(9061),m(9922),m(2769),m(1636),m(6044),m(9773),m(1798),m(6916),m(6694),m(9975),m(6193),m(7558),m(368);var H=m(4822);K.Subscription=H.Subscription,K.ReplaySubject=H.ReplaySubject,K.BehaviorSubject=H.BehaviorSubject,K.Notification=H.Notification,K.EmptyError=H.EmptyError,K.ArgumentOutOfRangeError=H.ArgumentOutOfRangeError,K.ObjectUnsubscribedError=H.ObjectUnsubscribedError,K.UnsubscriptionError=H.UnsubscriptionError,K.pipe=H.pipe;var R=m(9594);K.TestScheduler=R.TestScheduler;var P=m(4822);K.Subscriber=P.Subscriber,K.AsyncSubject=P.AsyncSubject,K.ConnectableObservable=P.ConnectableObservable,K.TimeoutError=P.TimeoutError,K.VirtualTimeScheduler=P.VirtualTimeScheduler;var x=m(8679);K.AjaxResponse=x.AjaxResponse,K.AjaxError=x.AjaxError,K.AjaxTimeoutError=x.AjaxTimeoutError;var D=m(4822),j=m(5718),L=m(5718);K.TimeInterval=L.TimeInterval,K.Timestamp=L.Timestamp;var v=m(6650);K.operators=v;var k={asap:D.asapScheduler,queue:D.queueScheduler,animationFrame:D.animationFrameScheduler,async:D.asyncScheduler};K.Scheduler=k;var b={rxSubscriber:j.rxSubscriber,observable:j.observable,iterator:j.iterator};K.Symbol=b},5010:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindCallback=G.bindCallback},9471:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindNodeCallback=G.bindNodeCallback},2687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.combineLatest=G.combineLatest},2750:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.concat=G.concat},2977:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.defer=G.defer},8173:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8679);G.Observable.ajax=W.ajax},1357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2301);G.Observable.webSocket=W.webSocket},2925:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.empty=G.empty},2231:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.forkJoin=G.forkJoin},1897:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.from=G.from},7026:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEvent=G.fromEvent},6187:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEventPattern=G.fromEventPattern},1562:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromPromise=G.from},9470:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.generate=G.generate},4641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.if=G.iif},3408:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.interval=G.interval},7975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.merge=G.merge},3518:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);function W(){return G.NEVER}K.staticNever=W,G.Observable.never=W},1305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.of=G.of},9566:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.onErrorResumeNext=G.onErrorResumeNext},6839:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.pairs=G.pairs},6034:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.race=G.race},1672:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.range=G.range},987:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.throw=G.throwError,G.Observable.throwError=G.throwError},8366:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.timer=G.timer},1216:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.using=G.using},5991:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.zip=G.zip},9982:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5641);G.Observable.prototype.audit=W.audit},7980:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4657);G.Observable.prototype.auditTime=W.auditTime},5615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2792);G.Observable.prototype.buffer=W.buffer},3056:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1667);G.Observable.prototype.bufferCount=W.bufferCount},7551:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4283);G.Observable.prototype.bufferTime=W.bufferTime},2080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1028);G.Observable.prototype.bufferToggle=W.bufferToggle},8273:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(188);G.Observable.prototype.bufferWhen=W.bufferWhen},5500:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8747);G.Observable.prototype.catch=W._catch,G.Observable.prototype._catch=W._catch},8413:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(572);G.Observable.prototype.combineAll=W.combineAll},39:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(648);G.Observable.prototype.combineLatest=W.combineLatest},2964:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9075);G.Observable.prototype.concat=W.concat},3569:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6979);G.Observable.prototype.concatAll=W.concatAll},2243:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3268);G.Observable.prototype.concatMap=W.concatMap},3768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3382);G.Observable.prototype.concatMapTo=W.concatMapTo},1989:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3337);G.Observable.prototype.count=W.count},4655:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1066);G.Observable.prototype.debounce=W.debounce},4997:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9959);G.Observable.prototype.debounceTime=W.debounceTime},7417:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2448);G.Observable.prototype.defaultIfEmpty=W.defaultIfEmpty},5934:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5514);G.Observable.prototype.delay=W.delay},7199:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7607);G.Observable.prototype.delayWhen=W.delayWhen},7613:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5395);G.Observable.prototype.dematerialize=W.dematerialize},8047:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9440);G.Observable.prototype.distinct=W.distinct},1381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3943);G.Observable.prototype.distinctUntilChanged=W.distinctUntilChanged},1817:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9749);G.Observable.prototype.distinctUntilKeyChanged=W.distinctUntilKeyChanged},9754:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6764);G.Observable.prototype.do=W._do,G.Observable.prototype._do=W._do},2995:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3833);G.Observable.prototype.elementAt=W.elementAt},598:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8648);G.Observable.prototype.every=W.every},9574:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(14);G.Observable.prototype.exhaust=W.exhaust},8124:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4768);G.Observable.prototype.exhaustMap=W.exhaustMap},230:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(326);G.Observable.prototype.expand=W.expand},2181:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1973);G.Observable.prototype.filter=W.filter},5803:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5032);G.Observable.prototype.finally=W._finally,G.Observable.prototype._finally=W._finally},3928:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8302);G.Observable.prototype.find=W.find},9193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5286);G.Observable.prototype.findIndex=W.findIndex},9733:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9311);G.Observable.prototype.first=W.first},5755:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6595);G.Observable.prototype.groupBy=W.groupBy},8744:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5783);G.Observable.prototype.ignoreElements=W.ignoreElements},1872:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6866);G.Observable.prototype.isEmpty=W.isEmpty},3368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1409);G.Observable.prototype.last=W.last},1448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5953);G.Observable.prototype.let=W.letProto,G.Observable.prototype.letBind=W.letProto},5772:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8137);G.Observable.prototype.map=W.map},2172:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1234);G.Observable.prototype.mapTo=W.mapTo},5136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2876);G.Observable.prototype.materialize=W.materialize},600:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8821);G.Observable.prototype.max=W.max},69:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2136);G.Observable.prototype.merge=W.merge},7939:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9883);G.Observable.prototype.mergeAll=W.mergeAll},8345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(621);G.Observable.prototype.mergeMap=W.mergeMap,G.Observable.prototype.flatMap=W.mergeMap},1128:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6881);G.Observable.prototype.flatMapTo=W.mergeMapTo,G.Observable.prototype.mergeMapTo=W.mergeMapTo},7943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8589);G.Observable.prototype.mergeScan=W.mergeScan},7896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1348);G.Observable.prototype.min=W.min},8324:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6134);G.Observable.prototype.multicast=W.multicast},1736:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(386);G.Observable.prototype.observeOn=W.observeOn},9473:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8394);G.Observable.prototype.onErrorResumeNext=W.onErrorResumeNext},8418:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(400);G.Observable.prototype.pairwise=W.pairwise},8180:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1604);G.Observable.prototype.partition=W.partition},3373:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9782);G.Observable.prototype.pluck=W.pluck},5313:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7437);G.Observable.prototype.publish=W.publish},1860:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5990);G.Observable.prototype.publishBehavior=W.publishBehavior},2941:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4254);G.Observable.prototype.publishLast=W.publishLast},4376:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(397);G.Observable.prototype.publishReplay=W.publishReplay},9762:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9023);G.Observable.prototype.race=W.race},5507:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(345);G.Observable.prototype.reduce=W.reduce},522:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2085);G.Observable.prototype.repeat=W.repeat},6278:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3679);G.Observable.prototype.repeatWhen=W.repeatWhen},7459:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7080);G.Observable.prototype.retry=W.retry},6269:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9302);G.Observable.prototype.retryWhen=W.retryWhen},1080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3266);G.Observable.prototype.sample=W.sample},3634:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(615);G.Observable.prototype.sampleTime=W.sampleTime},4051:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8305);G.Observable.prototype.scan=W.scan},5161:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1289);G.Observable.prototype.sequenceEqual=W.sequenceEqual},5247:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(896);G.Observable.prototype.share=W.share},6776:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4791);G.Observable.prototype.shareReplay=W.shareReplay},7337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6462);G.Observable.prototype.single=W.single},8:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3458);G.Observable.prototype.skip=W.skip},1405:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(801);G.Observable.prototype.skipLast=W.skipLast},5431:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8249);G.Observable.prototype.skipUntil=W.skipUntil},1986:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9603);G.Observable.prototype.skipWhile=W.skipWhile},454:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(295);G.Observable.prototype.startWith=W.startWith},2738:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1112);G.Observable.prototype.subscribeOn=W.subscribeOn},8201:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(761);G.Observable.prototype.switch=W._switch,G.Observable.prototype._switch=W._switch},7024:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3573);G.Observable.prototype.switchMap=W.switchMap},1434:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2892);G.Observable.prototype.switchMapTo=W.switchMapTo},492:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7203);G.Observable.prototype.take=W.take},6166:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7579);G.Observable.prototype.takeLast=W.takeLast},1730:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1583);G.Observable.prototype.takeUntil=W.takeUntil},7499:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7694);G.Observable.prototype.takeWhile=W.takeWhile},1281:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9259);G.Observable.prototype.throttle=W.throttle},523:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4630);G.Observable.prototype.throttleTime=W.throttleTime},9049:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3578);G.Observable.prototype.timeInterval=W.timeInterval},9061:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7945);G.Observable.prototype.timeout=W.timeout},9922:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3060);G.Observable.prototype.timeoutWith=W.timeoutWith},2769:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1265);G.Observable.prototype.timestamp=W.timestamp},1636:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2561);G.Observable.prototype.toArray=W.toArray},6044:function(){},9773:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9766);G.Observable.prototype.window=W.window},1798:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8227);G.Observable.prototype.windowCount=W.windowCount},6916:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1868);G.Observable.prototype.windowTime=W.windowTime},6694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(30);G.Observable.prototype.windowToggle=W.windowToggle},9975:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9687);G.Observable.prototype.windowWhen=W.windowWhen},6193:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5196);G.Observable.prototype.withLatestFrom=W.withLatestFrom},7558:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2357);G.Observable.prototype.zip=W.zipProto},368:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7381);G.Observable.prototype.zipAll=W.zipAll},5641:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.audit=function W(A){return G.audit(A)(this)}},4657:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.auditTime=function A(H,R){return void 0===R&&(R=G.asyncScheduler),W.auditTime(H,R)(this)}},2792:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.buffer=function W(A){return G.buffer(A)(this)}},1667:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferCount=function W(A,H){return void 0===H&&(H=null),G.bufferCount(A,H)(this)}},4283:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.bufferTime=function H(R){var P=arguments.length,x=G.asyncScheduler;W.isScheduler(arguments[arguments.length-1])&&(x=arguments[arguments.length-1],P--);var D=null;P>=2&&(D=arguments[1]);var j=Number.POSITIVE_INFINITY;return P>=3&&(j=arguments[2]),A.bufferTime(R,D,j,x)(this)}},1028:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferToggle=function W(A,H){return G.bufferToggle(A,H)(this)}},188:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferWhen=function W(A){return G.bufferWhen(A)(this)}},8747:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._catch=function W(A){return G.catchError(A)(this)}},572:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.combineAll=function W(A){return G.combineAll(A)(this)}},648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718);K.combineLatest=function A(){for(var H=[],R=0;R<arguments.length;R++)H[R]=arguments[R];var P=null;return"function"==typeof H[H.length-1]&&(P=H.pop()),1===H.length&&W.isArray(H[0])&&(H=H[0].slice()),this.lift.call(G.of.apply(void 0,[this].concat(H)),new W.CombineLatestOperator(P))}},9075:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.concat=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.concat.apply(void 0,[this].concat(A)))}},6979:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatAll=function W(){return G.concatAll()(this)}},3268:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMap=function W(A){return G.concatMap(A)(this)}},3382:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMapTo=function W(A){return G.concatMapTo(A)(this)}},3337:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.count=function W(A){return G.count(A)(this)}},1066:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.debounce=function W(A){return G.debounce(A)(this)}},9959:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.debounceTime=function A(H,R){return void 0===R&&(R=G.asyncScheduler),W.debounceTime(H,R)(this)}},2448:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.defaultIfEmpty=function W(A){return void 0===A&&(A=null),G.defaultIfEmpty(A)(this)}},5514:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.delay=function A(H,R){return void 0===R&&(R=G.asyncScheduler),W.delay(H,R)(this)}},7607:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.delayWhen=function W(A,H){return G.delayWhen(A,H)(this)}},5395:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.dematerialize=function W(){return G.dematerialize()(this)}},9440:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinct=function W(A,H){return G.distinct(A,H)(this)}},3943:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilChanged=function W(A,H){return G.distinctUntilChanged(A,H)(this)}},9749:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilKeyChanged=function W(A,H){return G.distinctUntilKeyChanged(A,H)(this)}},6764:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._do=function W(A,H,R){return G.tap(A,H,R)(this)}},3833:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.elementAt=function W(A,H){return G.elementAt.apply(void 0,arguments)(this)}},8648:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.every=function W(A,H){return G.every(A,H)(this)}},14:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaust=function W(){return G.exhaust()(this)}},4768:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaustMap=function W(A){return G.exhaustMap(A)(this)}},326:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.expand=function W(A,H,R){return void 0===H&&(H=Number.POSITIVE_INFINITY),void 0===R&&(R=void 0),H=(H||0)<1?Number.POSITIVE_INFINITY:H,G.expand(A,H,R)(this)}},1973:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.filter=function W(A,H){return G.filter(A,H)(this)}},5032:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._finally=function W(A){return G.finalize(A)(this)}},8302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.find=function W(A,H){return G.find(A,H)(this)}},5286:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.findIndex=function W(A,H){return G.findIndex(A,H)(this)}},9311:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.first=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.first.apply(void 0,A)(this)}},6595:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.groupBy=function W(A,H,R,P){return G.groupBy(A,H,R,P)(this)}},5783:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.ignoreElements=function W(){return G.ignoreElements()(this)}},6866:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.isEmpty=function W(){return G.isEmpty()(this)}},1409:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.last=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.last.apply(void 0,A)(this)}},5953:function(Ae,K){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.letProto=function m(G){return G(this)}},8137:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.map=function W(A,H){return G.map(A,H)(this)}},1234:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mapTo=function W(A){return G.mapTo(A)(this)}},2876:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.materialize=function W(){return G.materialize()(this)}},8821:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.max=function W(A){return G.max(A)(this)}},2136:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.merge=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.merge.apply(void 0,[this].concat(A)))}},9883:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeAll=function W(A){return void 0===A&&(A=Number.POSITIVE_INFINITY),G.mergeAll(A)(this)}},621:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMap=function W(A,H){return void 0===H&&(H=Number.POSITIVE_INFINITY),G.mergeMap(A,H)(this)}},6881:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMapTo=function W(A,H){return void 0===H&&(H=Number.POSITIVE_INFINITY),G.mergeMapTo(A,H)(this)}},8589:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeScan=function W(A,H,R){return void 0===R&&(R=Number.POSITIVE_INFINITY),G.mergeScan(A,H,R)(this)}},1348:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.min=function W(A){return G.min(A)(this)}},6134:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.multicast=function W(A,H){return G.multicast(A,H)(this)}},386:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.observeOn=function W(A,H){return void 0===H&&(H=0),G.observeOn(A,H)(this)}},8394:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.onErrorResumeNext=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.onErrorResumeNext.apply(void 0,A)(this)}},400:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pairwise=function W(){return G.pairwise()(this)}},1604:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.partition=function W(A,H){return G.partition(A,H)(this)}},9782:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pluck=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.pluck.apply(void 0,A)(this)}},7437:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publish=function W(A){return G.publish(A)(this)}},5990:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishBehavior=function W(A){return G.publishBehavior(A)(this)}},4254:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishLast=function W(){return G.publishLast()(this)}},397:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishReplay=function W(A,H,R,P){return G.publishReplay(A,H,R,P)(this)}},9023:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.race=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.race.apply(void 0,A)(this)}},345:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.reduce=function W(A,H){return arguments.length>=2?G.reduce(A,H)(this):G.reduce(A)(this)}},2085:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeat=function W(A){return void 0===A&&(A=-1),G.repeat(A)(this)}},3679:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeatWhen=function W(A){return G.repeatWhen(A)(this)}},7080:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retry=function W(A){return void 0===A&&(A=-1),G.retry(A)(this)}},9302:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retryWhen=function W(A){return G.retryWhen(A)(this)}},3266:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sample=function W(A){return G.sample(A)(this)}},615:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.sampleTime=function A(H,R){return void 0===R&&(R=G.asyncScheduler),W.sampleTime(H,R)(this)}},8305:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.scan=function W(A,H){return arguments.length>=2?G.scan(A,H)(this):G.scan(A)(this)}},1289:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sequenceEqual=function W(A,H){return G.sequenceEqual(A,H)(this)}},896:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.share=function W(){return G.share()(this)}},4791:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.shareReplay=function W(A,H,R){return A&&"object"==typeof A?G.shareReplay(A)(this):G.shareReplay(A,H,R)(this)}},6462:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.single=function W(A){return G.single(A)(this)}},3458:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skip=function W(A){return G.skip(A)(this)}},801:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipLast=function W(A){return G.skipLast(A)(this)}},8249:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipUntil=function W(A){return G.skipUntil(A)(this)}},9603:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipWhile=function W(A){return G.skipWhile(A)(this)}},295:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.startWith=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.startWith.apply(void 0,A)(this)}},1112:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.subscribeOn=function W(A,H){return void 0===H&&(H=0),G.subscribeOn(A,H)(this)}},761:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._switch=function W(){return G.switchAll()(this)}},3573:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMap=function W(A){return G.switchMap(A)(this)}},2892:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMapTo=function W(A){return G.switchMapTo(A)(this)}},7203:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.take=function W(A){return G.take(A)(this)}},7579:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeLast=function W(A){return G.takeLast(A)(this)}},1583:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeUntil=function W(A){return G.takeUntil(A)(this)}},7694:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeWhile=function W(A){return G.takeWhile(A)(this)}},9259:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650),W=m(5718);K.throttle=function A(H,R){return void 0===R&&(R=W.defaultThrottleConfig),G.throttle(H,R)(this)}},4630:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.throttleTime=function H(R,P,x){return void 0===P&&(P=G.asyncScheduler),void 0===x&&(x=W.defaultThrottleConfig),A.throttleTime(R,P,x)(this)}},3578:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeInterval=function A(H){return void 0===H&&(H=G.asyncScheduler),W.timeInterval(H)(this)}},7945:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeout=function A(H,R){return void 0===R&&(R=G.asyncScheduler),W.timeout(H,R)(this)}},3060:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeoutWith=function A(H,R,P){return void 0===P&&(P=G.asyncScheduler),W.timeoutWith(H,R,P)(this)}},1265:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timestamp=function A(H){return void 0===H&&(H=G.asyncScheduler),W.timestamp(H)(this)}},2561:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.toArray=function W(){return G.toArray()(this)}},9766:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.window=function W(A){return G.window(A)(this)}},8227:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowCount=function W(A,H){return void 0===H&&(H=0),G.windowCount(A,H)(this)}},1868:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.windowTime=function H(R){var P=G.asyncScheduler,x=null,D=Number.POSITIVE_INFINITY;return W.isScheduler(arguments[3])&&(P=arguments[3]),W.isScheduler(arguments[2])?P=arguments[2]:W.isNumeric(arguments[2])&&(D=Number(arguments[2])),W.isScheduler(arguments[1])?P=arguments[1]:W.isNumeric(arguments[1])&&(x=Number(arguments[1])),A.windowTime(R,x,D,P)(this)}},30:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowToggle=function W(A,H){return G.windowToggle(A,H)(this)}},9687:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowWhen=function W(A){return G.windowWhen(A)(this)}},5196:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.withLatestFrom=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return G.withLatestFrom.apply(void 0,A)(this)}},2357:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.zipProto=function W(){for(var A=[],H=0;H<arguments.length;H++)A[H]=arguments[H];return this.lift.call(G.zip.apply(void 0,[this].concat(A)))}},7381:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.zipAll=function W(A){return G.zipAll(A)(this)}},5887:function(Ae,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),function G(W){for(var A in W)K.hasOwnProperty(A)||(K[A]=W[A])}(m(285))},8679:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return W.iM},AjaxResponse:function(){return W.vD},AjaxTimeoutError:function(){return W.cw},ajax:function(){return G.h}});var G=m(8059),W=m(8452)},4822:function(Ae,K,m){"use strict";m.r(K),m.d(K,{ArgumentOutOfRangeError:function(){return X.W},AsyncSubject:function(){return D.c},BehaviorSubject:function(){return P.X},ConnectableObservable:function(){return W.c},EMPTY:function(){return nt.E},EmptyError:function(){return $.K},GroupedObservable:function(){return A.T},NEVER:function(){return Ye},Notification:function(){return T.P},NotificationKind:function(){return T.W},ObjectUnsubscribedError:function(){return Y.N},Observable:function(){return G.y},ReplaySubject:function(){return x.t},Scheduler:function(){return O.b},Subject:function(){return R.xQ},Subscriber:function(){return y.L},Subscription:function(){return S.w},TimeoutError:function(){return ne.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return b.h},VirtualTimeScheduler:function(){return b.y},animationFrame:function(){return k.r},animationFrameScheduler:function(){return k.Z},asap:function(){return j.e},asapScheduler:function(){return j.E},async:function(){return L.P},asyncScheduler:function(){return L.z},bindCallback:function(){return me},bindNodeCallback:function(){return Tt},combineLatest:function(){return $t.aj},concat:function(){return Ft.z},config:function(){return lt.v},defer:function(){return pn.P},empty:function(){return nt.c},forkJoin:function(){return Ot.D},from:function(){return _t.D},fromEvent:function(){return Ct.R},fromEventPattern:function(){return ut},generate:function(){return dt},identity:function(){return N.y},iif:function(){return B},interval:function(){return U.F},isObservable:function(){return F.b},merge:function(){return tt.T},never:function(){return ge},noop:function(){return E.Z},observable:function(){return H.L},of:function(){return t.of},onErrorResumeNext:function(){return Dt},pairs:function(){return Zt},partition:function(){return Kt},pipe:function(){return M.z},queue:function(){return v.c},queueScheduler:function(){return v.N},race:function(){return Xt.S3},range:function(){return Je.w},scheduled:function(){return Ne.x},throwError:function(){return Be._},timer:function(){return te.H},using:function(){return ye},zip:function(){return pe.$R}});var G=m(7451),W=m(1762),A=m(4002),H=m(3821),R=m(8929),P=m(591),x=m(839),D=m(2185),j=m(9931),L=m(353),v=m(341),k=m(352),b=m(9027),O=m(2221),S=m(4096),y=m(3489),T=m(9312),M=m(4843),E=m(7876),N=m(5379),F=m(4715),X=m(4231),$=m(4450),Y=m(5279),Q=m(7964),ne=m(854),be=m(4902),fe=m(4850),de=m(9476),le=m(6688),ce=m(2866);function me(ct,Bt,jt){if(Bt){if(!(0,ce.K)(Bt))return function(){return me(ct,jt).apply(void 0,arguments).pipe((0,fe.U)(function(on){return(0,le.k)(on)?Bt.apply(void 0,(0,be.Z)(on)):Bt(on)}))};jt=Bt}return function(){for(var on=arguments.length,vn=new Array(on),ln=0;ln<on;ln++)vn[ln]=arguments[ln];var hn,En=this,mn={context:En,subject:hn,callbackFunc:ct,scheduler:jt};return new G.y(function(At){if(jt){var et={args:vn,subscriber:At,params:mn};return jt.schedule(je,0,et)}if(!hn){hn=new D.c;try{ct.apply(En,[].concat(vn,[function(){for(var ze=arguments.length,Ke=new Array(ze),Re=0;Re<ze;Re++)Ke[Re]=arguments[Re];hn.next(Ke.length<=1?Ke[0]:Ke),hn.complete()}]))}catch(St){(0,de._)(hn)?hn.error(St):console.warn(St)}}return hn.subscribe(At)})}}function je(ct){var Bt=this,on=ct.args,vn=ct.subscriber,ln=ct.params,En=ln.callbackFunc,hn=ln.context,mn=ln.scheduler,At=ln.subject;if(!At){At=ln.subject=new D.c;try{En.apply(hn,[].concat((0,be.Z)(on),[function(){for(var St=arguments.length,ze=new Array(St),Ke=0;Ke<St;Ke++)ze[Ke]=arguments[Ke];var Re=ze.length<=1?ze[0]:ze;Bt.add(mn.schedule(st,0,{value:Re,subject:At}))}]))}catch(et){At.error(et)}}this.add(At.subscribe(vn))}function st(ct){var Bt=ct.value,jt=ct.subject;jt.next(Bt),jt.complete()}function Tt(ct,Bt,jt){if(Bt){if(!(0,ce.K)(Bt))return function(){return Tt(ct,jt).apply(void 0,arguments).pipe((0,fe.U)(function(on){return(0,le.k)(on)?Bt.apply(void 0,(0,be.Z)(on)):Bt(on)}))};jt=Bt}return function(){for(var on=arguments.length,vn=new Array(on),ln=0;ln<on;ln++)vn[ln]=arguments[ln];var En={subject:void 0,args:vn,callbackFunc:ct,scheduler:jt,context:this};return new G.y(function(hn){var mn=En.context,At=En.subject;if(jt)return jt.schedule(Et,0,{params:En,subscriber:hn,context:mn});if(!At){At=En.subject=new D.c;try{ct.apply(mn,[].concat(vn,[function(){for(var St=arguments.length,ze=new Array(St),Ke=0;Ke<St;Ke++)ze[Ke]=arguments[Ke];var Re=ze.shift();Re?At.error(Re):(At.next(ze.length<=1?ze[0]:ze),At.complete())}]))}catch(et){(0,de._)(At)?At.error(et):console.warn(et)}}return At.subscribe(hn)})}}function Et(ct){var Bt=this,jt=ct.params,on=ct.subscriber,vn=ct.context,ln=jt.callbackFunc,En=jt.args,hn=jt.scheduler,mn=jt.subject;if(!mn){mn=jt.subject=new D.c;try{ln.apply(vn,[].concat((0,be.Z)(En),[function(){for(var et=arguments.length,St=new Array(et),ze=0;ze<et;ze++)St[ze]=arguments[ze];var Ke=St.shift();if(Ke)Bt.add(hn.schedule(Ze,0,{err:Ke,subject:mn}));else{var Re=St.length<=1?St[0]:St;Bt.add(hn.schedule(Lt,0,{value:Re,subject:mn}))}}]))}catch(xt){this.add(hn.schedule(Ze,0,{err:xt,subject:mn}))}}this.add(mn.subscribe(on))}function Lt(ct){var Bt=ct.value,jt=ct.subject;jt.next(Bt),jt.complete()}function Ze(ct){var Bt=ct.err;ct.subject.error(Bt)}var $t=m(6053),Ft=m(1961),pn=m(8514),nt=m(8896),Ot=m(567),_t=m(3527),Ct=m(3753),We=m(7043);function ut(ct,Bt,jt){return jt?ut(ct,Bt).pipe((0,fe.U)(function(on){return(0,le.k)(on)?jt.apply(void 0,(0,be.Z)(on)):jt(on)})):new G.y(function(on){var ln,vn=function(){for(var hn=arguments.length,mn=new Array(hn),At=0;At<hn;At++)mn[At]=arguments[At];return on.next(1===mn.length?mn[0]:mn)};try{ln=ct(vn)}catch(En){return void on.error(En)}if((0,We.m)(Bt))return function(){return Bt(vn,ln)}})}function dt(ct,Bt,jt,on,vn){var ln,En;if(1==arguments.length){var hn=ct;En=hn.initialState,Bt=hn.condition,jt=hn.iterate,ln=hn.resultSelector||N.y,vn=hn.scheduler}else void 0===on||(0,ce.K)(on)?(En=ct,ln=N.y,vn=on):(En=ct,ln=on);return new G.y(function(mn){var At=En;if(vn)return vn.schedule(Ut,0,{subscriber:mn,iterate:jt,condition:Bt,resultSelector:ln,state:At});for(;;){if(Bt){var xt=void 0;try{xt=Bt(At)}catch(St){return void mn.error(St)}if(!xt){mn.complete();break}}var et=void 0;try{et=ln(At)}catch(St){return void mn.error(St)}if(mn.next(et),mn.closed)break;try{At=jt(At)}catch(St){return void mn.error(St)}}})}function Ut(ct){var Bt=ct.subscriber,jt=ct.condition;if(!Bt.closed){if(ct.needIterate)try{ct.state=ct.iterate(ct.state)}catch(ln){return void Bt.error(ln)}else ct.needIterate=!0;if(jt){var on;try{on=jt(ct.state)}catch(ln){return void Bt.error(ln)}if(!on)return void Bt.complete();if(Bt.closed)return}var vn;try{vn=ct.resultSelector(ct.state)}catch(ln){return void Bt.error(ln)}if(!Bt.closed&&(Bt.next(vn),!Bt.closed))return this.schedule(ct)}}function B(ct){var Bt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.E,jt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt.E;return(0,pn.P)(function(){return ct()?Bt:jt})}var U=m(1715),tt=m(6787),Ye=new G.y(E.Z);function ge(){return Ye}var t=m(1086);function Dt(){for(var ct=arguments.length,Bt=new Array(ct),jt=0;jt<ct;jt++)Bt[jt]=arguments[jt];if(0===Bt.length)return nt.E;var on=Bt[0],vn=Bt.slice(1);return 1===Bt.length&&(0,le.k)(on)?Dt.apply(void 0,(0,be.Z)(on)):new G.y(function(ln){var En=function(){return ln.add(Dt.apply(void 0,(0,be.Z)(vn)).subscribe(ln))};return(0,_t.D)(on).subscribe({next:function(mn){ln.next(mn)},error:En,complete:En})})}function Zt(ct,Bt){return Bt?new G.y(function(jt){var on=Object.keys(ct),vn=new S.w;return vn.add(Bt.schedule(zt,0,{keys:on,index:0,subscriber:jt,subscription:vn,obj:ct})),vn}):new G.y(function(jt){for(var on=Object.keys(ct),vn=0;vn<on.length&&!jt.closed;vn++){var ln=on[vn];ct.hasOwnProperty(ln)&&jt.next([ln,ct[ln]])}jt.complete()})}function zt(ct){var Bt=ct.keys,jt=ct.index,on=ct.subscriber,vn=ct.subscription,ln=ct.obj;if(!on.closed)if(jt<Bt.length){var En=Bt[jt];on.next([En,ln[En]]),vn.add(this.schedule({keys:Bt,index:jt+1,subscriber:on,subscription:vn,obj:ln}))}else on.complete()}var sn=m(5884),qt=m(3071),yn=m(9664);function Kt(ct,Bt,jt){return[(0,yn.h)(Bt,jt)(new G.y((0,qt.s)(ct))),(0,yn.h)((0,sn.f)(Bt,jt))(new G.y((0,qt.s)(ct)))]}var Xt=m(1946),Je=m(3103),Be=m(1737),te=m(8723);function ye(ct,Bt){return new G.y(function(jt){var on,vn;try{on=ct()}catch(hn){return void jt.error(hn)}try{vn=Bt(on)}catch(hn){return void jt.error(hn)}var En=(vn?(0,_t.D)(vn):nt.E).subscribe(jt);return function(){En.unsubscribe(),on&&on.unsubscribe()}})}var pe=m(1746),Ne=m(6266),lt=m(2830)},5718:function(Ae,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return T.iM},AjaxObservable:function(){return T.i6},AjaxResponse:function(){return T.vD},AjaxSubscriber:function(){return T.de},AjaxTimeoutError:function(){return T.cw},AnonymousSubject:function(){return R.ug},ArgumentOutOfRangeError:function(){return de.W},CombineLatestOperator:function(){return E.Ms},EmptyError:function(){return le.K},GroupedObservable:function(){return Y.T},Immediate:function(){return ce.H},InnerSubscriber:function(){return W.d},ObjectUnsubscribedError:function(){return me.N},OuterSubscriber:function(){return A.L},Scheduler:function(){return H.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return F.e},Subscriber:function(){return x.L},TimeInterval:function(){return $.R},TimeoutError:function(){return je.W},Timestamp:function(){return X.E},UnsubscriptionError:function(){return st.B},WebSocketSubject:function(){return M.p},ajax:function(){return S.h},ajaxDelete:function(){return T._c},ajaxGet:function(){return T.Ck},ajaxGetJSON:function(){return T.uX},ajaxPatch:function(){return T.YB},ajaxPost:function(){return T.tB},ajaxPut:function(){return T.Vk},applyMixins:function(){return Mt.e},config:function(){return G.v},defaultThrottleConfig:function(){return Q.d},dispatch:function(){return N.W},errorObject:function(){return Tt},fromIterable:function(){return O},fromPromise:function(){return v},hostReportError:function(){return Et.z},identity:function(){return Lt.y},isArray:function(){return Ze.k},isArrayLike:function(){return $t.z},isDate:function(){return Ft.J},isFunction:function(){return pn.m},isIterable:function(){return nt.T},isNumeric:function(){return Ot.k},isObject:function(){return _t.K},isObservable:function(){return Ct.c},isPromise:function(){return We.t},isScheduler:function(){return ut.K},iterator:function(){return be.hZ},noop:function(){return dt.Z},not:function(){return Ut.f},observable:function(){return fe.L},pipe:function(){return B.z},root:function(){return U.J},rxSubscriber:function(){return ne.b},subscribeTo:function(){return tt.s},subscribeToArray:function(){return Ye.V},subscribeToIterable:function(){return k.u},subscribeToObservable:function(){return ge.h},subscribeToPromise:function(){return j.A},subscribeToResult:function(){return t.D},toSubscriber:function(){return Dt.Y},tryCatch:function(){return sn},webSocket:function(){return y.j}});var G=m(2830),W=m(1869),A=m(826),H=m(2221),R=m(8929),P=m(5283),x=m(3489),D=m(7451),j=m(3445),L=m(8687);function v(qt,yn){return yn?(0,L.c)(qt,yn):new D.y((0,j.A)(qt))}var k=m(3720),b=m(6389);function O(qt,yn){if(!qt)throw new Error("Iterable cannot be null");return yn?(0,b.Q)(qt,yn):new D.y((0,k.u)(qt))}var Zt,S=m(8059),y=m(7623),T=m(8452),M=m(2741),E=m(6053),N=m(3103),F=m(3837),X=m(7781),$=m(3485),Y=m(4002),Q=m(2444),ne=m(7668),be=m(5430),fe=m(3821),de=m(4231),le=m(4450),ce=m(1450),me=m(5279),je=m(854),st=m(7964),Mt=m(5128),Tt={e:{}},Et=m(2782),Lt=m(5379),Ze=m(6688),$t=m(8515),Ft=m(2697),pn=m(7043),nt=m(2198),Ot=m(4241),_t=m(7830),Ct=m(8845),We=m(8955),ut=m(2866),dt=m(7876),Ut=m(5884),B=m(4843),U=m(797),tt=m(3071),Ye=m(3650),ge=m(1810),t=m(9054),Dt=m(5221);function zt(){Tt.e=void 0;try{return Zt.apply(this,arguments)}catch(qt){return Tt.e=qt,Tt}finally{Zt=void 0}}function sn(qt){return Zt=qt,zt}},2185:function(Ae,K,m){"use strict";m.d(K,{c:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(8929),D=m(4096),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(){var b;return(0,G.Z)(this,k),(b=v.apply(this,arguments)).value=null,b.hasNext=!1,b.hasCompleted=!1,b}return(0,W.Z)(k,[{key:"_subscribe",value:function(O){return this.hasError?(O.error(this.thrownError),D.w.EMPTY):this.hasCompleted&&this.hasNext?(O.next(this.value),O.complete(),D.w.EMPTY):(0,A.Z)((0,H.Z)(k.prototype),"_subscribe",this).call(this,O)}},{key:"next",value:function(O){this.hasCompleted||(this.value=O,this.hasNext=!0)}},{key:"error",value:function(O){this.hasCompleted||(0,A.Z)((0,H.Z)(k.prototype),"error",this).call(this,O)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,A.Z)((0,H.Z)(k.prototype),"next",this).call(this,this.value),(0,A.Z)((0,H.Z)(k.prototype),"complete",this).call(this)}}]),k}(x.xQ)},591:function(Ae,K,m){"use strict";m.d(K,{X:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(8929),D=m(5279),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(b){var O;return(0,G.Z)(this,k),(O=v.call(this))._value=b,O}return(0,W.Z)(k,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(O){var S=(0,A.Z)((0,H.Z)(k.prototype),"_subscribe",this).call(this,O);return S&&!S.closed&&O.next(this._value),S}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D.N;return this._value}},{key:"next",value:function(O){(0,A.Z)((0,H.Z)(k.prototype),"next",this).call(this,this._value=O)}}]),k}(x.xQ)},1869:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=function(x){(0,A.Z)(j,x);var D=(0,H.Z)(j);function j(L,v,k){var b;return(0,G.Z)(this,j),(b=D.call(this)).parent=L,b.outerValue=v,b.outerIndex=k,b.index=0,b}return(0,W.Z)(j,[{key:"_next",value:function(v){this.parent.notifyNext(this.outerValue,v,this.outerIndex,this.index++,this)}},{key:"_error",value:function(v){this.parent.notifyError(v,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),j}(m(3489).L)},9312:function(Ae,K,m){"use strict";m.d(K,{P:function(){return x},W:function(){return P}});var P,D,G=m(5671),W=m(3144),A=m(8896),H=m(1086),R=m(1737);(D=P||(P={})).NEXT="N",D.ERROR="E",D.COMPLETE="C";var x=function(){function D(j,L,v){(0,G.Z)(this,D),this.kind=j,this.value=L,this.error=v,this.hasValue="N"===j}return(0,W.Z)(D,[{key:"observe",value:function(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}},{key:"do",value:function(L,v,k){switch(this.kind){case"N":return L&&L(this.value);case"E":return v&&v(this.error);case"C":return k&&k()}}},{key:"accept",value:function(L,v,k){return L&&"function"==typeof L.next?this.observe(L):this.do(L,v,k)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,H.of)(this.value);case"E":return(0,R._)(this.error);case"C":return(0,A.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(L){return void 0!==L?new D("N",L):D.undefinedValueNotification}},{key:"createError",value:function(L){return new D("E",void 0,L)}},{key:"createComplete",value:function(){return D.completeNotification}}]),D}();x.completeNotification=new x("C"),x.undefinedValueNotification=new x("N",void 0)},7451:function(Ae,K,m){"use strict";m.d(K,{y:function(){return D}});var G=m(5671),W=m(3144),A=m(9476),H=m(5221),R=m(3821),P=m(4843),x=m(2830),D=function(){function L(v){(0,G.Z)(this,L),this._isScalar=!1,v&&(this._subscribe=v)}return(0,W.Z)(L,[{key:"lift",value:function(k){var b=new L;return b.source=this,b.operator=k,b}},{key:"subscribe",value:function(k,b,O){var S=this.operator,y=(0,H.Y)(k,b,O);if(S?y.add(S.call(y,this.source)):y.add(this.source||x.v.useDeprecatedSynchronousErrorHandling&&!y.syncErrorThrowable?this._subscribe(y):this._trySubscribe(y)),x.v.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable&&(y.syncErrorThrowable=!1,y.syncErrorThrown))throw y.syncErrorValue;return y}},{key:"_trySubscribe",value:function(k){try{return this._subscribe(k)}catch(b){x.v.useDeprecatedSynchronousErrorHandling&&(k.syncErrorThrown=!0,k.syncErrorValue=b),(0,A._)(k)?k.error(b):console.warn(b)}}},{key:"forEach",value:function(k,b){var O=this;return new(b=j(b))(function(S,y){var T;T=O.subscribe(function(M){try{k(M)}catch(E){y(E),T&&T.unsubscribe()}},y,S)})}},{key:"_subscribe",value:function(k){var b=this.source;return b&&b.subscribe(k)}},{key:R.L,value:function(){return this}},{key:"pipe",value:function(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];return 0===b.length?this:(0,P.U)(b)(this)}},{key:"toPromise",value:function(k){var b=this;return new(k=j(k))(function(O,S){var y;b.subscribe(function(T){return y=T},function(T){return S(T)},function(){return O(y)})})}}]),L}();function j(L){if(L||(L=x.v.Promise||Promise),!L)throw new Error("no Promise impl found");return L}D.create=function(L){return new D(L)}},3292:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(2830),W=m(2782),A={closed:!0,next:function(R){},error:function(R){if(G.v.useDeprecatedSynchronousErrorHandling)throw R;(0,W.z)(R)},complete:function(){}}},826:function(Ae,K,m){"use strict";m.d(K,{L:function(){return P}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=function(x){(0,A.Z)(j,x);var D=(0,H.Z)(j);function j(){return(0,G.Z)(this,j),D.apply(this,arguments)}return(0,W.Z)(j,[{key:"notifyNext",value:function(v,k,b,O,S){this.destination.next(k)}},{key:"notifyError",value:function(v,k){this.destination.error(v)}},{key:"notifyComplete",value:function(v){this.destination.complete()}}]),j}(m(3489).L)},839:function(Ae,K,m){"use strict";m.d(K,{t:function(){return b}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(8929),D=m(341),j=m(4096),L=m(7770),v=m(5279),k=m(5283),b=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(){var M,E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,G.Z)(this,T),(M=y.call(this)).scheduler=F,M._events=[],M._infiniteTimeWindow=!1,M._bufferSize=E<1?1:E,M._windowTime=N<1?1:N,N===Number.POSITIVE_INFINITY?(M._infiniteTimeWindow=!0,M.next=M.nextInfiniteTimeWindow):M.next=M.nextTimeWindow,M}return(0,W.Z)(T,[{key:"nextInfiniteTimeWindow",value:function(E){if(!this.isStopped){var N=this._events;N.push(E),N.length>this._bufferSize&&N.shift()}(0,A.Z)((0,H.Z)(T.prototype),"next",this).call(this,E)}},{key:"nextTimeWindow",value:function(E){this.isStopped||(this._events.push(new O(this._getNow(),E)),this._trimBufferThenGetEvents()),(0,A.Z)((0,H.Z)(T.prototype),"next",this).call(this,E)}},{key:"_subscribe",value:function(E){var Y,N=this._infiniteTimeWindow,F=N?this._events:this._trimBufferThenGetEvents(),X=this.scheduler,$=F.length;if(this.closed)throw new v.N;if(this.isStopped||this.hasError?Y=j.w.EMPTY:(this.observers.push(E),Y=new k.W(this,E)),X&&E.add(E=new L.ht(E,X)),N)for(var Q=0;Q<$&&!E.closed;Q++)E.next(F[Q]);else for(var ne=0;ne<$&&!E.closed;ne++)E.next(F[ne].value);return this.hasError?E.error(this.thrownError):this.isStopped&&E.complete(),Y}},{key:"_getNow",value:function(){return(this.scheduler||D.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var E=this._getNow(),N=this._bufferSize,F=this._windowTime,X=this._events,$=X.length,Y=0;Y<$&&!(E-X[Y].time<F);)Y++;return $>N&&(Y=Math.max(Y,$-N)),Y>0&&X.splice(0,Y),X}}]),T}(x.xQ),O=(0,W.Z)(function S(y,T){(0,G.Z)(this,S),this.time=y,this.value=T})},2221:function(Ae,K,m){"use strict";m.d(K,{b:function(){return A}});var G=m(5671),W=m(3144),A=function(){function H(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.now;(0,G.Z)(this,H),this.SchedulerAction=R,this.now=P}return(0,W.Z)(H,[{key:"schedule",value:function(P){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(D,x)}}]),H}();A.now=function(){return Date.now()}},8929:function(Ae,K,m){"use strict";m.d(K,{Yc:function(){return b},ug:function(){return S},xQ:function(){return O}});var G=m(3237),W=m(1120),A=m(3144),H=m(5671),R=m(136),P=m(9388),x=m(7451),D=m(3489),j=m(4096),L=m(5279),v=m(5283),k=m(7668),b=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(E){var N;return(0,H.Z)(this,M),(N=T.call(this,E)).destination=E,N}return(0,A.Z)(M)}(D.L),O=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(){var E;return(0,H.Z)(this,M),(E=T.call(this)).observers=[],E.closed=!1,E.isStopped=!1,E.hasError=!1,E.thrownError=null,E}return(0,A.Z)(M,[{key:k.b,value:function(){return new b(this)}},{key:"lift",value:function(N){var F=new S(this,this);return F.operator=N,F}},{key:"next",value:function(N){if(this.closed)throw new L.N;if(!this.isStopped)for(var F=this.observers,X=F.length,$=F.slice(),Y=0;Y<X;Y++)$[Y].next(N)}},{key:"error",value:function(N){if(this.closed)throw new L.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;for(var F=this.observers,X=F.length,$=F.slice(),Y=0;Y<X;Y++)$[Y].error(N);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new L.N;this.isStopped=!0;for(var N=this.observers,F=N.length,X=N.slice(),$=0;$<F;$++)X[$].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(N){if(this.closed)throw new L.N;return(0,G.Z)((0,W.Z)(M.prototype),"_trySubscribe",this).call(this,N)}},{key:"_subscribe",value:function(N){if(this.closed)throw new L.N;return this.hasError?(N.error(this.thrownError),j.w.EMPTY):this.isStopped?(N.complete(),j.w.EMPTY):(this.observers.push(N),new v.W(this,N))}},{key:"asObservable",value:function(){var N=new x.y;return N.source=this,N}}]),M}(x.y);O.create=function(y,T){return new S(y,T)};var S=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(E,N){var F;return(0,H.Z)(this,M),(F=T.call(this)).destination=E,F.source=N,F}return(0,A.Z)(M,[{key:"next",value:function(N){var F=this.destination;F&&F.next&&F.next(N)}},{key:"error",value:function(N){var F=this.destination;F&&F.error&&this.destination.error(N)}},{key:"complete",value:function(){var N=this.destination;N&&N.complete&&this.destination.complete()}},{key:"_subscribe",value:function(N){return this.source?this.source.subscribe(N):j.w.EMPTY}}]),M}(O)},5283:function(Ae,K,m){"use strict";m.d(K,{W:function(){return P}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=function(x){(0,A.Z)(j,x);var D=(0,H.Z)(j);function j(L,v){var k;return(0,G.Z)(this,j),(k=D.call(this)).subject=L,k.subscriber=v,k.closed=!1,k}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var v=this.subject,k=v.observers;if(this.subject=null,k&&0!==k.length&&!v.isStopped&&!v.closed){var b=k.indexOf(this.subscriber);-1!==b&&k.splice(b,1)}}}}]),j}(m(4096).w)},3489:function(Ae,K,m){"use strict";m.d(K,{L:function(){return O}});var G=m(5671),W=m(3144),A=m(7326),H=m(3237),R=m(1120),P=m(136),x=m(9388),D=m(7043),j=m(3292),L=m(4096),v=m(7668),k=m(2830),b=m(2782),O=function(y){(0,P.Z)(M,y);var T=(0,x.Z)(M);function M(E,N,F){var X;switch((0,G.Z)(this,M),(X=T.call(this)).syncErrorValue=null,X.syncErrorThrown=!1,X.syncErrorThrowable=!1,X.isStopped=!1,arguments.length){case 0:X.destination=j.c;break;case 1:if(!E){X.destination=j.c;break}if("object"==typeof E){E instanceof M?(X.syncErrorThrowable=E.syncErrorThrowable,X.destination=E,E.add((0,A.Z)(X))):(X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),E));break}default:X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),E,N,F)}return X}return(0,W.Z)(M,[{key:v.b,value:function(){return this}},{key:"next",value:function(N){this.isStopped||this._next(N)}},{key:"error",value:function(N){this.isStopped||(this.isStopped=!0,this._error(N))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,H.Z)((0,R.Z)(M.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(N){this.destination.next(N)}},{key:"_error",value:function(N){this.destination.error(N),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var N=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=N,this}}],[{key:"create",value:function(N,F,X){var $=new M(N,F,X);return $.syncErrorThrowable=!1,$}}]),M}(L.w),S=function(y){(0,P.Z)(M,y);var T=(0,x.Z)(M);function M(E,N,F,X){var $;(0,G.Z)(this,M),($=T.call(this))._parentSubscriber=E;var Y,Q=(0,A.Z)($);return(0,D.m)(N)?Y=N:N&&(Y=N.next,F=N.error,X=N.complete,N!==j.c&&(Q=Object.create(N),(0,D.m)(Q.unsubscribe)&&$.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=$.unsubscribe.bind((0,A.Z)($)))),$._context=Q,$._next=Y,$._error=F,$._complete=X,$}return(0,W.Z)(M,[{key:"next",value:function(N){if(!this.isStopped&&this._next){var F=this._parentSubscriber;k.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}},{key:"error",value:function(N){if(!this.isStopped){var F=this._parentSubscriber,X=k.v.useDeprecatedSynchronousErrorHandling;if(this._error)X&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(F.syncErrorThrowable)X?(F.syncErrorValue=N,F.syncErrorThrown=!0):(0,b.z)(N),this.unsubscribe();else{if(this.unsubscribe(),X)throw N;(0,b.z)(N)}}}},{key:"complete",value:function(){var N=this;if(!this.isStopped){var F=this._parentSubscriber;if(this._complete){var X=function(){return N._complete.call(N._context)};k.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,X),this.unsubscribe()):(this.__tryOrUnsub(X),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(N,F){try{N.call(this._context,F)}catch(X){if(this.unsubscribe(),k.v.useDeprecatedSynchronousErrorHandling)throw X;(0,b.z)(X)}}},{key:"__tryOrSetError",value:function(N,F,X){if(!k.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,X)}catch($){return k.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=$,N.syncErrorThrown=!0,!0):((0,b.z)($),!0)}return!1}},{key:"_unsubscribe",value:function(){var N=this._parentSubscriber;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}]),M}(O)},4096:function(Ae,K,m){"use strict";m.d(K,{w:function(){return x}});var j,G=m(5671),W=m(3144),A=m(6688),H=m(7830),R=m(7043),P=m(7964),x=function(){function j(L){(0,G.Z)(this,j),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,L&&(this._ctorUnsubscribe=!0,this._unsubscribe=L)}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){var v;if(!this.closed){var k=this._parentOrParents,b=this._ctorUnsubscribe,O=this._unsubscribe,S=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,k instanceof j)k.remove(this);else if(null!==k)for(var y=0;y<k.length;++y){k[y].remove(this)}if((0,R.m)(O)){b&&(this._unsubscribe=void 0);try{O.call(this)}catch(F){v=F instanceof P.B?D(F.errors):[F]}}if((0,A.k)(S))for(var M=-1,E=S.length;++M<E;){var N=S[M];if((0,H.K)(N))try{N.unsubscribe()}catch(F){v=v||[],F instanceof P.B?v=v.concat(D(F.errors)):v.push(F)}}if(v)throw new P.B(v)}}},{key:"add",value:function(v){var k=v;if(!v)return j.EMPTY;switch(typeof v){case"function":k=new j(v);case"object":if(k===this||k.closed||"function"!=typeof k.unsubscribe)return k;if(this.closed)return k.unsubscribe(),k;if(!(k instanceof j)){var b=k;(k=new j)._subscriptions=[b]}break;default:throw new Error("unrecognized teardown "+v+" added to Subscription.")}var S=k._parentOrParents;if(null===S)k._parentOrParents=this;else if(S instanceof j){if(S===this)return k;k._parentOrParents=[S,this]}else{if(-1!==S.indexOf(this))return k;S.push(this)}var y=this._subscriptions;return null===y?this._subscriptions=[k]:y.push(k),k}},{key:"remove",value:function(v){var k=this._subscriptions;if(k){var b=k.indexOf(v);-1!==b&&k.splice(b,1)}}}]),j}();function D(j){return j.reduce(function(L,v){return L.concat(v instanceof P.B?v.errors:v)},[])}x.EMPTY=((j=new x).closed=!0,j)},2830:function(Ae,K,m){"use strict";m.d(K,{v:function(){return W}});var G=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){var H=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+H.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=A},get useDeprecatedSynchronousErrorHandling(){return G}}},1177:function(Ae,K,m){"use strict";m.d(K,{Ds:function(){return L},IY:function(){return D},ft:function(){return k}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),R=m(3489),P=m(7451),x=m(3071),D=function(b){(0,A.Z)(S,b);var O=(0,H.Z)(S);function S(y){var T;return(0,G.Z)(this,S),(T=O.call(this)).parent=y,T}return(0,W.Z)(S,[{key:"_next",value:function(T){this.parent.notifyNext(T)}},{key:"_error",value:function(T){this.parent.notifyError(T),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),S}(R.L),L=function(b){(0,A.Z)(S,b);var O=(0,H.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"notifyNext",value:function(T){this.destination.next(T)}},{key:"notifyError",value:function(T){this.destination.error(T)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),S}(R.L);function k(b,O){if(!O.closed){if(b instanceof P.y)return b.subscribe(O);var S;try{S=(0,x.s)(b)(O)}catch(y){O.error(y)}return S}}},1762:function(Ae,K,m){"use strict";m.d(K,{N:function(){return b},c:function(){return k}});var T,G=m(3237),W=m(1120),A=m(5671),H=m(3144),R=m(136),P=m(9388),x=m(8929),D=m(7451),j=m(3489),L=m(4096),v=m(4327),k=function(T){(0,R.Z)(E,T);var M=(0,P.Z)(E);function E(N,F){var X;return(0,A.Z)(this,E),(X=M.call(this)).source=N,X.subjectFactory=F,X._refCount=0,X._isComplete=!1,X}return(0,H.Z)(E,[{key:"_subscribe",value:function(F){return this.getSubject().subscribe(F)}},{key:"getSubject",value:function(){var F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var F=this._connection;return F||(this._isComplete=!1,(F=this._connection=new L.w).add(this.source.subscribe(new O(this.getSubject(),this))),F.closed&&(this._connection=null,F=L.w.EMPTY)),F}},{key:"refCount",value:function(){return(0,v.x)()(this)}}]),E}(D.y),b={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(T=k.prototype)._subscribe},_isComplete:{value:T._isComplete,writable:!0},getSubject:{value:T.getSubject},connect:{value:T.connect},refCount:{value:T.refCount}},O=function(T){(0,R.Z)(E,T);var M=(0,P.Z)(E);function E(N,F){var X;return(0,A.Z)(this,E),(X=M.call(this,N)).connectable=F,X}return(0,H.Z)(E,[{key:"_error",value:function(F){this._unsubscribe(),(0,G.Z)((0,W.Z)(E.prototype),"_error",this).call(this,F)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,G.Z)((0,W.Z)(E.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var F=this.connectable;if(F){this.connectable=null;var X=F._connection;F._refCount=0,F._subject=null,F._connection=null,X&&X.unsubscribe()}}}]),E}(x.Yc);j.L},3837:function(Ae,K,m){"use strict";m.d(K,{e:function(){return D}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),R=m(7451),P=m(9931),x=m(4241),D=function(j){(0,A.Z)(v,j);var L=(0,H.Z)(v);function v(k){var b,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,G.Z)(this,v),(b=L.call(this)).source=k,b.delayTime=O,b.scheduler=S,(!(0,x.k)(O)||O<0)&&(b.delayTime=0),(!S||"function"!=typeof S.schedule)&&(b.scheduler=P.e),b}return(0,W.Z)(v,[{key:"_subscribe",value:function(b){var O=this.delayTime,S=this.source;return this.scheduler.schedule(v.dispatch,O,{source:S,subscriber:b})}}],[{key:"create",value:function(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new v(b,O,S)}},{key:"dispatch",value:function(b){var O=b.source,S=b.subscriber;return this.add(O.subscribe(S))}}]),v}(R.y)},6053:function(Ae,K,m){"use strict";m.d(K,{Ms:function(){return k},aj:function(){return v}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(2866),P=m(6688),x=m(826),D=m(9054),j=m(3009),L={};function v(){for(var O=arguments.length,S=new Array(O),y=0;y<O;y++)S[y]=arguments[y];var T=void 0,M=void 0;return(0,R.K)(S[S.length-1])&&(M=S.pop()),"function"==typeof S[S.length-1]&&(T=S.pop()),1===S.length&&(0,P.k)(S[0])&&(S=S[0]),(0,j.n)(S,M).lift(new k(T))}var k=function(){function O(S){(0,A.Z)(this,O),this.resultSelector=S}return(0,H.Z)(O,[{key:"call",value:function(y,T){return T.subscribe(new b(y,this.resultSelector))}}]),O}(),b=function(O){(0,G.Z)(y,O);var S=(0,W.Z)(y);function y(T,M){var E;return(0,A.Z)(this,y),(E=S.call(this,T)).resultSelector=M,E.active=0,E.values=[],E.observables=[],E}return(0,H.Z)(y,[{key:"_next",value:function(M){this.values.push(L),this.observables.push(M)}},{key:"_complete",value:function(){var M=this.observables,E=M.length;if(0===E)this.destination.complete();else{this.active=E,this.toRespond=E;for(var N=0;N<E;N++){var F=M[N];this.add((0,D.D)(this,F,void 0,N))}}}},{key:"notifyComplete",value:function(M){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(M,E,N){var F=this.values,X=F[N],$=this.toRespond?X===L?--this.toRespond:this.toRespond:0;F[N]=E,0===$&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}},{key:"_tryResultSelector",value:function(M){var E;try{E=this.resultSelector.apply(this,M)}catch(N){return void this.destination.error(N)}this.destination.next(E)}}]),y}(x.L)},1961:function(Ae,K,m){"use strict";m.d(K,{z:function(){return A}});var G=m(1086),W=m(534);function A(){return(0,W.u)()(G.of.apply(void 0,arguments))}},8514:function(Ae,K,m){"use strict";m.d(K,{P:function(){return H}});var G=m(7451),W=m(3527),A=m(8896);function H(R){return new G.y(function(P){var x;try{x=R()}catch(j){return void P.error(j)}return(x?(0,W.D)(x):(0,A.c)()).subscribe(P)})}},8452:function(Ae,K,m){"use strict";m.d(K,{Ck:function(){return b},Vk:function(){return y},YB:function(){return T},_c:function(){return S},cw:function(){return fe},de:function(){return F},i6:function(){return N},iM:function(){return Y},tB:function(){return O},uX:function(){return E},vD:function(){return X}});var G=m(3237),W=m(1120),A=m(5671),H=m(3144),R=m(136),P=m(9388),x=m(797),D=m(7451),j=m(3489);function b(de){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new N({method:"GET",url:de,headers:le})}function O(de,le,ce){return new N({method:"POST",url:de,body:le,headers:ce})}function S(de,le){return new N({method:"DELETE",url:de,headers:le})}function y(de,le,ce){return new N({method:"PUT",url:de,body:le,headers:ce})}function T(de,le,ce){return new N({method:"PATCH",url:de,body:le,headers:ce})}var M=(0,m(4850).U)(function(de,le){return de.response});function E(de,le){return M(new N({method:"GET",url:de,responseType:"json",headers:le}))}var de,N=function(de){(0,R.Z)(ce,de);var le=(0,P.Z)(ce);function ce(me){var je;(0,A.Z)(this,ce),je=le.call(this);var st={async:!0,createXHR:function(){return this.crossDomain?function v(){if(x.J.XMLHttpRequest)return new x.J.XMLHttpRequest;if(x.J.XDomainRequest)return new x.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function k(){if(x.J.XMLHttpRequest)return new x.J.XMLHttpRequest;var de;try{for(var le=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ce=0;ce<3;ce++)try{if(de=le[ce],new x.J.ActiveXObject(de))break}catch(me){}return new x.J.ActiveXObject(de)}catch(me){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof me)st.url=me;else for(var Mt in me)me.hasOwnProperty(Mt)&&(st[Mt]=me[Mt]);return je.request=st,je}return(0,H.Z)(ce,[{key:"_subscribe",value:function(je){return new F(je,this.request)}}]),ce}(D.y);N.create=((de=function(ce){return new N(ce)}).get=b,de.post=O,de.delete=S,de.put=y,de.patch=T,de.getJSON=E,de);var F=function(de){(0,R.Z)(ce,de);var le=(0,P.Z)(ce);function ce(me,je){var st;(0,A.Z)(this,ce),(st=le.call(this,me)).request=je,st.done=!1;var Mt=je.headers=je.headers||{};return!je.crossDomain&&!st.getHeader(Mt,"X-Requested-With")&&(Mt["X-Requested-With"]="XMLHttpRequest"),!st.getHeader(Mt,"Content-Type")&&!(x.J.FormData&&je.body instanceof x.J.FormData)&&void 0!==je.body&&(Mt["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),je.body=st.serializeBody(je.body,st.getHeader(je.headers,"Content-Type")),st.send(),st}return(0,H.Z)(ce,[{key:"next",value:function(je){this.done=!0;var Et,st=this.xhr,Mt=this.request,Tt=this.destination;try{Et=new X(je,st,Mt)}catch(Lt){return Tt.error(Lt)}Tt.next(Et)}},{key:"send",value:function(){var je=this.request,st=this.request,Mt=st.user,Tt=st.method,Et=st.url,Lt=st.async,Ze=st.password,$t=st.headers,Ft=st.body;try{var pn=this.xhr=je.createXHR();this.setupEvents(pn,je),Mt?pn.open(Tt,Et,Lt,Mt,Ze):pn.open(Tt,Et,Lt),Lt&&(pn.timeout=je.timeout,pn.responseType=je.responseType),"withCredentials"in pn&&(pn.withCredentials=!!je.withCredentials),this.setHeaders(pn,$t),Ft?pn.send(Ft):pn.send()}catch(nt){this.error(nt)}}},{key:"serializeBody",value:function(je,st){if(!je||"string"==typeof je)return je;if(x.J.FormData&&je instanceof x.J.FormData)return je;if(st){var Mt=st.indexOf(";");-1!==Mt&&(st=st.substring(0,Mt))}switch(st){case"application/x-www-form-urlencoded":return Object.keys(je).map(function(Tt){return"".concat(encodeURIComponent(Tt),"=").concat(encodeURIComponent(je[Tt]))}).join("&");case"application/json":return JSON.stringify(je);default:return je}}},{key:"setHeaders",value:function(je,st){for(var Mt in st)st.hasOwnProperty(Mt)&&je.setRequestHeader(Mt,st[Mt])}},{key:"getHeader",value:function(je,st){for(var Mt in je)if(Mt.toLowerCase()===st.toLowerCase())return je[Mt]}},{key:"setupEvents",value:function(je,st){var Mt=st.progressSubscriber;function Tt(Ft){var _t,pn=Tt.subscriber,nt=Tt.progressSubscriber,Ot=Tt.request;nt&&nt.error(Ft);try{_t=new fe(this,Ot)}catch(Ct){_t=Ct}pn.error(_t)}if(je.ontimeout=Tt,Tt.request=st,Tt.subscriber=this,Tt.progressSubscriber=Mt,je.upload&&"withCredentials"in je){var Et,Lt;if(Mt)Et=function(pn){Et.progressSubscriber.next(pn)},x.J.XDomainRequest?je.onprogress=Et:je.upload.onprogress=Et,Et.progressSubscriber=Mt;Lt=function(pn){var We,nt=Lt,Ot=nt.progressSubscriber,_t=nt.subscriber,Ct=nt.request;Ot&&Ot.error(pn);try{We=new Y("ajax error",this,Ct)}catch(ut){We=ut}_t.error(We)},je.onerror=Lt,Lt.request=st,Lt.subscriber=this,Lt.progressSubscriber=Mt}function Ze(Ft){}function $t(Ft){var pn=$t.subscriber,nt=$t.progressSubscriber,Ot=$t.request;if(4===this.readyState){var _t=1223===this.status?204:this.status,Ct="text"===this.responseType?this.response||this.responseText:this.response;if(0===_t&&(_t=Ct?200:0),_t<400)nt&&nt.complete(),pn.next(Ft),pn.complete();else{var We;nt&&nt.error(Ft);try{We=new Y("ajax error "+_t,this,Ot)}catch(ut){We=ut}pn.error(We)}}}je.onreadystatechange=Ze,Ze.subscriber=this,Ze.progressSubscriber=Mt,Ze.request=st,je.onload=$t,$t.subscriber=this,$t.progressSubscriber=Mt,$t.request=st}},{key:"unsubscribe",value:function(){var je=this.done,st=this.xhr;!je&&st&&4!==st.readyState&&"function"==typeof st.abort&&st.abort(),(0,G.Z)((0,W.Z)(ce.prototype),"unsubscribe",this).call(this)}}]),ce}(j.L),X=(0,H.Z)(function de(le,ce,me){(0,A.Z)(this,de),this.originalEvent=le,this.xhr=ce,this.request=me,this.status=ce.status,this.responseType=ce.responseType||me.responseType,this.response=ne(this.responseType,ce)}),$=function(){function de(le,ce,me){return Error.call(this),this.message=le,this.name="AjaxError",this.xhr=ce,this.request=me,this.status=ce.status,this.responseType=ce.responseType||me.responseType,this.response=ne(this.responseType,ce),this}return de.prototype=Object.create(Error.prototype),de}(),Y=$;function ne(de,le){switch(de){case"json":return function Q(de){return"response"in de?de.responseType?de.response:JSON.parse(de.response||de.responseText||"null"):JSON.parse(de.responseText||"null")}(le);case"xml":return le.responseXML;default:return"response"in le?le.response:le.responseText}}var fe=function be(de,le){return Y.call(this,"ajax timeout",de,le),this.name="AjaxTimeoutError",this}},2741:function(Ae,K,m){"use strict";m.d(K,{p:function(){return O}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(8929),D=m(3489),j=m(7451),L=m(4096),v=m(839),k={url:"",deserializer:function(y){return JSON.parse(y.data)},serializer:function(y){return JSON.stringify(y)}},O=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(M,E){var N;if((0,G.Z)(this,T),N=y.call(this),M instanceof j.y)N.destination=E,N.source=M;else{var F=N._config=Object.assign({},k);if(N._output=new x.xQ,"string"==typeof M)F.url=M;else for(var X in M)M.hasOwnProperty(X)&&(F[X]=M[X]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");N.destination=new v.t}return N}return(0,W.Z)(T,[{key:"lift",value:function(E){var N=new T(this._config,this.destination);return N.operator=E,N.source=this,N}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new v.t),this._output=new x.xQ}},{key:"multiplex",value:function(E,N,F){var X=this;return new j.y(function($){try{X.next(E())}catch(Q){$.error(Q)}var Y=X.subscribe(function(Q){try{F(Q)&&$.next(Q)}catch(ne){$.error(ne)}},function(Q){return $.error(Q)},function(){return $.complete()});return function(){try{X.next(N())}catch(Q){$.error(Q)}Y.unsubscribe()}})}},{key:"_connectSocket",value:function(){var E=this,N=this._config,F=N.WebSocketCtor,X=N.protocol,$=N.url,Y=N.binaryType,Q=this._output,ne=null;try{ne=X?new F($,X):new F($),this._socket=ne,Y&&(this._socket.binaryType=Y)}catch(fe){return void Q.error(fe)}var be=new L.w(function(){E._socket=null,ne&&1===ne.readyState&&ne.close()});ne.onopen=function(fe){if(!E._socket)return ne.close(),void E._resetState();var le=E._config.openObserver;le&&le.next(fe);var ce=E.destination;E.destination=D.L.create(function(me){if(1===ne.readyState)try{var je=E._config.serializer;ne.send(je(me))}catch(st){E.destination.error(st)}},function(me){var je=E._config.closingObserver;je&&je.next(void 0),me&&me.code?ne.close(me.code,me.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),E._resetState()},function(){var me=E._config.closingObserver;me&&me.next(void 0),ne.close(),E._resetState()}),ce&&ce instanceof v.t&&be.add(ce.subscribe(E.destination))},ne.onerror=function(fe){E._resetState(),Q.error(fe)},ne.onclose=function(fe){E._resetState();var de=E._config.closeObserver;de&&de.next(fe),fe.wasClean?Q.complete():Q.error(fe)},ne.onmessage=function(fe){try{var de=E._config.deserializer;Q.next(de(fe))}catch(le){Q.error(le)}}}},{key:"_subscribe",value:function(E){var N=this,F=this.source;return F?F.subscribe(E):(this._socket||this._connectSocket(),this._output.subscribe(E),E.add(function(){var X=N._socket;0===N._output.observers.length&&(X&&1===X.readyState&&X.close(),N._resetState())}),E)}},{key:"unsubscribe",value:function(){var E=this._socket;E&&1===E.readyState&&E.close(),this._resetState(),(0,A.Z)((0,H.Z)(T.prototype),"unsubscribe",this).call(this)}}]),T}(x.ug)},8059:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var W=m(8452).i6.create},7623:function(Ae,K,m){"use strict";m.d(K,{j:function(){return W}});var G=m(2741);function W(A){return new G.p(A)}},8896:function(Ae,K,m){"use strict";m.d(K,{E:function(){return W},c:function(){return A}});var G=m(7451),W=new G.y(function(R){return R.complete()});function A(R){return R?function H(R){return new G.y(function(P){return R.schedule(function(){return P.complete()})})}(R):W}},567:function(Ae,K,m){"use strict";m.d(K,{D:function(){return x}});var G=m(4902),W=m(7451),A=m(6688),H=m(4850),R=m(7830),P=m(3527);function x(){for(var j=arguments.length,L=new Array(j),v=0;v<j;v++)L[v]=arguments[v];if(1===L.length){var k=L[0];if((0,A.k)(k))return D(k,null);if((0,R.K)(k)&&Object.getPrototypeOf(k)===Object.prototype){var b=Object.keys(k);return D(b.map(function(S){return k[S]}),b)}}if("function"==typeof L[L.length-1]){var O=L.pop();return D(L=1===L.length&&(0,A.k)(L[0])?L[0]:L,null).pipe((0,H.U)(function(S){return O.apply(void 0,(0,G.Z)(S))}))}return D(L,null)}function D(j,L){return new W.y(function(v){var k=j.length;if(0!==k)for(var b=new Array(k),O=0,S=0,y=function(E){var N=(0,P.D)(j[E]),F=!1;v.add(N.subscribe({next:function($){F||(F=!0,S++),b[E]=$},error:function($){return v.error($)},complete:function(){(++O===k||!F)&&(S===k&&v.next(L?L.reduce(function($,Y,Q){return $[Y]=b[Q],$},{}):b),v.complete())}}))},T=0;T<k;T++)y(T);else v.complete()})}},3527:function(Ae,K,m){"use strict";m.d(K,{D:function(){return H}});var G=m(7451),W=m(3071),A=m(6266);function H(R,P){return P?(0,A.x)(R,P):R instanceof G.y?R:new G.y((0,W.s)(R))}},3009:function(Ae,K,m){"use strict";m.d(K,{n:function(){return H}});var G=m(7451),W=m(3650),A=m(6454);function H(R,P){return P?(0,A.r)(R,P):new G.y((0,W.V)(R))}},3753:function(Ae,K,m){"use strict";m.d(K,{R:function(){return x}});var G=m(4902),W=m(7451),A=m(6688),H=m(7043),R=m(4850);Object.prototype.toString;function x(k,b,O,S){return(0,H.m)(O)&&(S=O,O=void 0),S?x(k,b,O).pipe((0,R.U)(function(y){return(0,A.k)(y)?S.apply(void 0,(0,G.Z)(y)):S(y)})):new W.y(function(y){D(k,b,function T(M){arguments.length>1?y.next(Array.prototype.slice.call(arguments)):y.next(M)},y,O)})}function D(k,b,O,S,y){var T;if(function v(k){return k&&"function"==typeof k.addEventListener&&"function"==typeof k.removeEventListener}(k)){var M=k;k.addEventListener(b,O,y),T=function(){return M.removeEventListener(b,O,y)}}else if(function L(k){return k&&"function"==typeof k.on&&"function"==typeof k.off}(k)){var E=k;k.on(b,O),T=function(){return E.off(b,O)}}else if(function j(k){return k&&"function"==typeof k.addListener&&"function"==typeof k.removeListener}(k)){var N=k;k.addListener(b,O),T=function(){return N.removeListener(b,O)}}else{if(!k||!k.length)throw new TypeError("Invalid event target");for(var F=0,X=k.length;F<X;F++)D(k[F],b,O,S,y)}S.add(T)}},1715:function(Ae,K,m){"use strict";m.d(K,{F:function(){return H}});var G=m(7451),W=m(353),A=m(4241);function H(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.P;return(!(0,A.k)(P)||P<0)&&(P=0),(!x||"function"!=typeof x.schedule)&&(x=W.P),new G.y(function(D){return D.add(x.schedule(R,P,{subscriber:D,counter:0,period:P})),D})}function R(P){var x=P.subscriber,D=P.counter,j=P.period;x.next(D),this.schedule({subscriber:x,counter:D+1,period:j},j)}},6787:function(Ae,K,m){"use strict";m.d(K,{T:function(){return R}});var G=m(7451),W=m(2866),A=m(9146),H=m(3009);function R(){for(var P=Number.POSITIVE_INFINITY,x=null,D=arguments.length,j=new Array(D),L=0;L<D;L++)j[L]=arguments[L];var v=j[j.length-1];return(0,W.K)(v)?(x=j.pop(),j.length>1&&"number"==typeof j[j.length-1]&&(P=j.pop())):"number"==typeof v&&(P=j.pop()),null===x&&1===j.length&&j[0]instanceof G.y?j[0]:(0,A.J)(P)((0,H.n)(j,x))}},1086:function(Ae,K,m){"use strict";m.d(K,{of:function(){return H}});var G=m(2866),W=m(3009),A=m(6454);function H(){for(var R=arguments.length,P=new Array(R),x=0;x<R;x++)P[x]=arguments[x];var D=P[P.length-1];return(0,G.K)(D)?(P.pop(),(0,A.r)(P,D)):(0,W.n)(P)}},1946:function(Ae,K,m){"use strict";m.d(K,{S3:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(6688),P=m(3009),x=m(826),D=m(9054);function j(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];if(1===b.length){if(!(0,R.k)(b[0]))return b[0];b=b[0]}return(0,P.n)(b,void 0).lift(new L)}var L=function(){function k(){(0,A.Z)(this,k)}return(0,H.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O))}}]),k}(),v=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S){var y;return(0,A.Z)(this,O),(y=b.call(this,S)).hasFirst=!1,y.observables=[],y.subscriptions=[],y}return(0,H.Z)(O,[{key:"_next",value:function(y){this.observables.push(y)}},{key:"_complete",value:function(){var y=this.observables,T=y.length;if(0===T)this.destination.complete();else{for(var M=0;M<T&&!this.hasFirst;M++){var E=y[M],N=(0,D.D)(this,E,void 0,M);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}},{key:"notifyNext",value:function(y,T,M){if(!this.hasFirst){this.hasFirst=!0;for(var E=0;E<this.subscriptions.length;E++)if(E!==M){var N=this.subscriptions[E];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(T)}}]),O}(x.L)},3103:function(Ae,K,m){"use strict";m.d(K,{W:function(){return A},w:function(){return W}});var G=m(7451);function W(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,R=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new G.y(function(x){void 0===R&&(R=H,H=0);var D=0,j=H;if(P)return P.schedule(A,0,{index:D,count:R,start:H,subscriber:x});for(;;){if(D++>=R){x.complete();break}if(x.next(j++),x.closed)break}})}function A(H){var R=H.start,P=H.index,x=H.count,D=H.subscriber;P>=x?D.complete():(D.next(R),!D.closed&&(H.index=P+1,H.start=R+1,this.schedule(H)))}},1737:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(7451);function W(H,R){return R?new G.y(function(P){return R.schedule(A,0,{error:H,subscriber:P})}):new G.y(function(P){return P.error(H)})}function A(H){var R=H.error;H.subscriber.error(R)}},8723:function(Ae,K,m){"use strict";m.d(K,{H:function(){return R}});var G=m(7451),W=m(353),A=m(4241),H=m(2866);function R(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,D=arguments.length>1?arguments[1]:void 0,j=arguments.length>2?arguments[2]:void 0,L=-1;return(0,A.k)(D)?L=Number(D)<1?1:Number(D):(0,H.K)(D)&&(j=D),(0,H.K)(j)||(j=W.P),new G.y(function(v){var k=(0,A.k)(x)?x:+x-j.now();return j.schedule(P,k,{index:0,period:L,subscriber:v})})}function P(x){var D=x.index,j=x.period,L=x.subscriber;if(L.next(D),!L.closed){if(-1===j)return L.complete();x.index=D+1,this.schedule(x,j)}}},1746:function(Ae,K,m){"use strict";m.d(K,{$R:function(){return L},mx:function(){return v}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3009),P=m(6688),x=m(3489),D=m(5430),j=m(1177);function L(){for(var y=arguments.length,T=new Array(y),M=0;M<y;M++)T[M]=arguments[M];var E=T[T.length-1];return"function"==typeof E&&T.pop(),(0,R.n)(T,void 0).lift(new v(E))}var v=function(){function y(T){(0,A.Z)(this,y),this.resultSelector=T}return(0,H.Z)(y,[{key:"call",value:function(M,E){return E.subscribe(new k(M,this.resultSelector))}}]),y}(),k=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(E,N){var F;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,A.Z)(this,M),(F=T.call(this,E)).resultSelector=N,F.iterators=[],F.active=0,F.resultSelector="function"==typeof N?N:void 0,F}return(0,H.Z)(M,[{key:"_next",value:function(N){var F=this.iterators;(0,P.k)(N)?F.push(new O(N)):"function"==typeof N[D.hZ]?F.push(new b(N[D.hZ]())):F.push(new S(this.destination,this,N))}},{key:"_complete",value:function(){var N=this.iterators,F=N.length;if(this.unsubscribe(),0!==F){this.active=F;for(var X=0;X<F;X++){var $=N[X];if($.stillUnsubscribed)this.destination.add($.subscribe());else this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var N=this.iterators,F=N.length,X=this.destination,$=0;$<F;$++){var Y=N[$];if("function"==typeof Y.hasValue&&!Y.hasValue())return}for(var Q=!1,ne=[],be=0;be<F;be++){var fe=N[be],de=fe.next();if(fe.hasCompleted()&&(Q=!0),de.done)return void X.complete();ne.push(de.value)}this.resultSelector?this._tryresultSelector(ne):X.next(ne),Q&&X.complete()}},{key:"_tryresultSelector",value:function(N){var F;try{F=this.resultSelector.apply(this,N)}catch(X){return void this.destination.error(X)}this.destination.next(F)}}]),M}(x.L),b=function(){function y(T){(0,A.Z)(this,y),this.iterator=T,this.nextResult=T.next()}return(0,H.Z)(y,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var M=this.nextResult;return this.nextResult=this.iterator.next(),M}},{key:"hasCompleted",value:function(){var M=this.nextResult;return Boolean(M&&M.done)}}]),y}(),O=function(){function y(T){(0,A.Z)(this,y),this.array=T,this.index=0,this.length=0,this.length=T.length}return(0,H.Z)(y,[{key:D.hZ,value:function(){return this}},{key:"next",value:function(M){var E=this.index++,N=this.array;return E<this.length?{value:N[E],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),y}(),S=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(E,N,F){var X;return(0,A.Z)(this,M),(X=T.call(this,E)).parent=N,X.observable=F,X.stillUnsubscribed=!0,X.buffer=[],X.isComplete=!1,X}return(0,H.Z)(M,[{key:D.hZ,value:function(){return this}},{key:"next",value:function(){var N=this.buffer;return 0===N.length&&this.isComplete?{value:null,done:!0}:{value:N.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(N){this.buffer.push(N),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,j.ft)(this.observable,new j.IY(this))}}]),M}(j.Ds)},384:function(Ae,K,m){"use strict";m.d(K,{U:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(1177);function P(j){return function(v){return v.lift(new x(j))}}var x=function(){function j(L){(0,A.Z)(this,j),this.durationSelector=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.durationSelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).durationSelector=b,O.hasValue=!1,O}return(0,H.Z)(v,[{key:"_next",value:function(b){if(this.value=b,this.hasValue=!0,!this.throttled){var O;try{O=(0,this.durationSelector)(b)}catch(T){return this.destination.error(T)}var y=(0,R.ft)(O,new R.IY(this));!y||y.closed?this.clearThrottle():this.add(this.throttled=y)}}},{key:"clearThrottle",value:function(){var b=this.value,O=this.hasValue,S=this.throttled;S&&(this.remove(S),this.throttled=void 0,S.unsubscribe()),O&&(this.value=void 0,this.hasValue=!1,this.destination.next(b))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),v}(R.Ds)},7568:function(Ae,K,m){"use strict";m.d(K,{e:function(){return H}});var G=m(353),W=m(384),A=m(8723);function H(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.P;return(0,W.U)(function(){return(0,A.H)(R,P)})}},7221:function(Ae,K,m){"use strict";m.d(K,{K:function(){return D}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),R=m(5671),P=m(3144),x=m(1177);function D(v){return function(b){var O=new j(v),S=b.lift(O);return O.caught=S}}var j=function(){function v(k){(0,R.Z)(this,v),this.selector=k}return(0,P.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.selector,this.caught))}}]),v}(),L=function(v){(0,A.Z)(b,v);var k=(0,H.Z)(b);function b(O,S,y){var T;return(0,R.Z)(this,b),(T=k.call(this,O)).selector=S,T.caught=y,T}return(0,P.Z)(b,[{key:"error",value:function(S){if(!this.isStopped){var y;try{y=this.selector(S,this.caught)}catch(E){return void(0,G.Z)((0,W.Z)(b.prototype),"error",this).call(this,E)}this._unsubscribeAndRecycle();var T=new x.IY(this);this.add(T);var M=(0,x.ft)(y,T);M!==T&&this.add(M)}}}]),b}(x.Ds)},534:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(9146);function W(){return(0,G.J)(1)}},1406:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(1709);function W(A,H){return(0,G.zg)(A,H,1)}},3906:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new x(j,L))}}var x=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.source=v}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.source))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.source=O,S.count=0,S.index=0,S}return(0,H.Z)(v,[{key:"_next",value:function(b){this.predicate?this._tryPredicate(b):this.count++}},{key:"_tryPredicate",value:function(b){var O;try{O=this.predicate(b,this.index++,this.source)}catch(S){return void this.destination.error(S)}O&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),v}(R.L)},13:function(Ae,K,m){"use strict";m.d(K,{b:function(){return x}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489),P=m(353);function x(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(b){return b.lift(new D(v,k))}}var D=function(){function v(k,b){(0,A.Z)(this,v),this.dueTime=k,this.scheduler=b}return(0,H.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.dueTime,this.scheduler))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S,y){var T;return(0,A.Z)(this,b),(T=k.call(this,O)).dueTime=S,T.scheduler=y,T.debouncedSubscription=null,T.lastValue=null,T.hasValue=!1,T}return(0,H.Z)(b,[{key:"_next",value:function(S){this.clearDebounce(),this.lastValue=S,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var S=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(S)}}},{key:"clearDebounce",value:function(){var S=this.debouncedSubscription;null!==S&&(this.remove(S),S.unsubscribe(),this.debouncedSubscription=null)}}]),b}(R.L);function L(v){v.debouncedNext()}},7314:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(L){return L.lift(new x(j))}}var x=function(){function j(L){(0,A.Z)(this,j),this.defaultValue=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.defaultValue))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).defaultValue=b,O.isEmpty=!0,O}return(0,H.Z)(v,[{key:"_next",value:function(b){this.isEmpty=!1,this.destination.next(b)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),v}(R.L)},943:function(Ae,K,m){"use strict";m.d(K,{g:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(353),P=m(2697),x=m(3489),D=m(9312);function j(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P,S=(0,P.J)(b),y=S?+b-O.now():Math.abs(b);return function(T){return T.lift(new L(y,O))}}var L=function(){function b(O,S){(0,A.Z)(this,b),this.delay=O,this.scheduler=S}return(0,H.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new v(S,this.delay,this.scheduler))}}]),b}(),v=function(b){(0,G.Z)(S,b);var O=(0,W.Z)(S);function S(y,T,M){var E;return(0,A.Z)(this,S),(E=O.call(this,y)).delay=T,E.scheduler=M,E.queue=[],E.active=!1,E.errored=!1,E}return(0,H.Z)(S,[{key:"_schedule",value:function(T){this.active=!0,this.destination.add(T.schedule(S.dispatch,this.delay,{source:this,destination:this.destination,scheduler:T}))}},{key:"scheduleNotification",value:function(T){if(!0!==this.errored){var M=this.scheduler,E=new k(M.now()+this.delay,T);this.queue.push(E),!1===this.active&&this._schedule(M)}}},{key:"_next",value:function(T){this.scheduleNotification(D.P.createNext(T))}},{key:"_error",value:function(T){this.errored=!0,this.queue=[],this.destination.error(T),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){for(var M=T.source,E=M.queue,N=T.scheduler,F=T.destination;E.length>0&&E[0].time-N.now()<=0;)E.shift().notification.observe(F);if(E.length>0){var X=Math.max(0,E[0].time-N.now());this.schedule(T,X)}else this.unsubscribe(),M.active=!1}}]),S}(x.L),k=(0,H.Z)(function b(O,S){(0,A.Z)(this,b),this.time=O,this.notification=S})},5778:function(Ae,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j,L){return function(v){return v.lift(new x(j,L))}}var x=function(){function j(L,v){(0,A.Z)(this,j),this.compare=L,this.keySelector=v}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.compare,this.keySelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).keySelector=O,S.hasKey=!1,"function"==typeof b&&(S.compare=b),S}return(0,H.Z)(v,[{key:"compare",value:function(b,O){return b===O}},{key:"_next",value:function(b){var O;try{var S=this.keySelector;O=S?S(b):b}catch(M){return this.destination.error(M)}var y=!1;if(this.hasKey)try{y=(0,this.compare)(this.key,O)}catch(M){return this.destination.error(M)}else this.hasKey=!0;y||(this.key=O,this.destination.next(b))}}]),v}(R.L)},9664:function(Ae,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j,L){return function(k){return k.lift(new x(j,L))}}var x=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.thisArg=v}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.thisArg))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.thisArg=O,S.count=0,S}return(0,H.Z)(v,[{key:"_next",value:function(b){var O;try{O=this.predicate.call(this.thisArg,b,this.count++)}catch(S){return void this.destination.error(S)}O&&this.destination.next(b)}}]),v}(R.L)},537:function(Ae,K,m){"use strict";m.d(K,{x:function(){return x}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489),P=m(4096);function x(L){return function(v){return v.lift(new D(L))}}var D=function(){function L(v){(0,A.Z)(this,L),this.callback=v}return(0,H.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.callback))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O){var S;return(0,A.Z)(this,k),(S=v.call(this,b)).add(new P.w(O)),S}return(0,H.Z)(k)}(R.L)},7224:function(Ae,K,m){"use strict";m.d(K,{P:function(){return x}});var G=m(4450),W=m(9664),A=m(2986),H=m(7314),R=m(4907),P=m(5379);function x(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.q)(1),L?(0,H.d)(j):(0,R.T)(function(){return new G.K}))}}},4002:function(Ae,K,m){"use strict";m.d(K,{T:function(){return S},v:function(){return v}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),R=m(5671),P=m(3144),x=m(3489),D=m(4096),j=m(7451),L=m(8929);function v(T,M,E,N){return function(F){return F.lift(new k(T,M,E,N))}}var k=function(){function T(M,E,N,F){(0,R.Z)(this,T),this.keySelector=M,this.elementSelector=E,this.durationSelector=N,this.subjectSelector=F}return(0,P.Z)(T,[{key:"call",value:function(E,N){return N.subscribe(new b(E,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),T}(),b=function(T){(0,A.Z)(E,T);var M=(0,H.Z)(E);function E(N,F,X,$,Y){var Q;return(0,R.Z)(this,E),(Q=M.call(this,N)).keySelector=F,Q.elementSelector=X,Q.durationSelector=$,Q.subjectSelector=Y,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,P.Z)(E,[{key:"_next",value:function(F){var X;try{X=this.keySelector(F)}catch($){return void this.error($)}this._group(F,X)}},{key:"_group",value:function(F,X){var $=this.groups;$||($=this.groups=new Map);var Q,Y=$.get(X);if(this.elementSelector)try{Q=this.elementSelector(F)}catch(fe){this.error(fe)}else Q=F;if(!Y){Y=this.subjectSelector?this.subjectSelector():new L.xQ,$.set(X,Y);var ne=new S(X,Y,this);if(this.destination.next(ne),this.durationSelector){var be;try{be=this.durationSelector(new S(X,Y))}catch(fe){return void this.error(fe)}this.add(be.subscribe(new O(X,Y,this)))}}Y.closed||Y.next(Q)}},{key:"_error",value:function(F){var X=this.groups;X&&(X.forEach(function($,Y){$.error(F)}),X.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(X,$){X.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,G.Z)((0,W.Z)(E.prototype),"unsubscribe",this).call(this))}}]),E}(x.L),O=function(T){(0,A.Z)(E,T);var M=(0,H.Z)(E);function E(N,F,X){var $;return(0,R.Z)(this,E),($=M.call(this,F)).key=N,$.group=F,$.parent=X,$}return(0,P.Z)(E,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,X=this.key;this.key=this.parent=null,F&&F.removeGroup(X)}}]),E}(x.L),S=function(T){(0,A.Z)(E,T);var M=(0,H.Z)(E);function E(N,F,X){var $;return(0,R.Z)(this,E),($=M.call(this)).key=N,$.groupSubject=F,$.refCountSubscription=X,$}return(0,P.Z)(E,[{key:"_subscribe",value:function(F){var X=new D.w,$=this.refCountSubscription,Y=this.groupSubject;return $&&!$.closed&&X.add(new y($)),X.add(Y.subscribe(F)),X}}]),E}(j.y),y=function(T){(0,A.Z)(E,T);var M=(0,H.Z)(E);function E(N){var F;return(0,R.Z)(this,E),(F=M.call(this)).parent=N,N.count++,F}return(0,P.Z)(E,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,G.Z)((0,W.Z)(E.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),E}(D.w)},8127:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return x}});var G=m(4450),W=m(9664),A=m(2821),H=m(4907),R=m(7314),P=m(5379);function x(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.h)(1),L?(0,R.d)(j):(0,H.T)(function(){return new G.K}))}}},4850:function(Ae,K,m){"use strict";m.d(K,{U:function(){return x}});var G=m(7326),W=m(136),A=m(9388),H=m(5671),R=m(3144),P=m(3489);function x(L,v){return function(b){if("function"!=typeof L)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new D(L,v))}}var D=function(){function L(v,k){(0,H.Z)(this,L),this.project=v,this.thisArg=k}return(0,R.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.project,this.thisArg))}}]),L}(),j=function(L){(0,W.Z)(k,L);var v=(0,A.Z)(k);function k(b,O,S){var y;return(0,H.Z)(this,k),(y=v.call(this,b)).project=O,y.count=0,y.thisArg=S||(0,G.Z)(y),y}return(0,R.Z)(k,[{key:"_next",value:function(O){var S;try{S=this.project.call(this.thisArg,O,this.count++)}catch(y){return void this.destination.error(y)}this.destination.next(S)}}]),k}(P.L)},7604:function(Ae,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new x(j))}}var x=function(){function j(L){(0,A.Z)(this,j),this.value=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.value))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).value=b,O}return(0,H.Z)(v,[{key:"_next",value:function(b){this.destination.next(this.value)}}]),v}(R.L)},9146:function(Ae,K,m){"use strict";m.d(K,{J:function(){return A}});var G=m(1709),W=m(5379);function A(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,G.zg)(W.y,H)}},1709:function(Ae,K,m){"use strict";m.d(K,{VS:function(){return v},zg:function(){return D}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(4850),P=m(3527),x=m(1177);function D(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof b?function(S){return S.pipe(D(function(y,T){return(0,P.D)(k(y,T)).pipe((0,R.U)(function(M,E){return b(y,M,T,E)}))},O))}:("number"==typeof b&&(O=b),function(S){return S.lift(new j(k,O))})}var j=function(){function k(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,A.Z)(this,k),this.project=b,this.concurrent=O}return(0,H.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new L(O,this.project,this.concurrent))}}]),k}(),L=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S,y){var T,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,O),(T=b.call(this,S)).project=y,T.concurrent=M,T.hasCompleted=!1,T.buffer=[],T.active=0,T.index=0,T}return(0,H.Z)(O,[{key:"_next",value:function(y){this.active<this.concurrent?this._tryNext(y):this.buffer.push(y)}},{key:"_tryNext",value:function(y){var T,M=this.index++;try{T=this.project(y,M)}catch(E){return void this.destination.error(E)}this.active++,this._innerSub(T)}},{key:"_innerSub",value:function(y){var T=new x.IY(this),M=this.destination;M.add(T);var E=(0,x.ft)(y,T);E!==T&&M.add(E)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(y){this.destination.next(y)}},{key:"notifyComplete",value:function(){var y=this.buffer;this.active--,y.length>0?this._next(y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),O}(x.Ds),v=D},2536:function(Ae,K,m){"use strict";m.d(K,{O:function(){return H}});var G=m(5671),W=m(3144),A=m(1762);function H(P,x){return function(j){var L;if(L="function"==typeof P?P:function(){return P},"function"==typeof x)return j.lift(new R(L,x));var v=Object.create(j,A.N);return v.source=j,v.subjectFactory=L,v}}var R=function(){function P(x,D){(0,G.Z)(this,P),this.subjectFactory=x,this.selector=D}return(0,W.Z)(P,[{key:"call",value:function(D,j){var L=this.selector,v=this.subjectFactory(),k=L(v).subscribe(D);return k.add(j.subscribe(v)),k}}]),P}()},7770:function(Ae,K,m){"use strict";m.d(K,{QV:function(){return x},ht:function(){return j}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489),P=m(9312);function x(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(O){return O.lift(new D(v,k))}}var D=function(){function v(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,A.Z)(this,v),this.scheduler=k,this.delay=b}return(0,H.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.scheduler,this.delay))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,A.Z)(this,b),(y=k.call(this,O)).scheduler=S,y.delay=T,y}return(0,H.Z)(b,[{key:"scheduleMessage",value:function(S){this.destination.add(this.scheduler.schedule(b.dispatch,this.delay,new L(S,this.destination)))}},{key:"_next",value:function(S){this.scheduleMessage(P.P.createNext(S))}},{key:"_error",value:function(S){this.scheduleMessage(P.P.createError(S)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){var y=S.notification,T=S.destination;y.observe(T),this.unsubscribe()}}]),b}(R.L),L=(0,H.Z)(function v(k,b){(0,A.Z)(this,v),this.notification=k,this.destination=b})},519:function(Ae,K,m){"use strict";m.d(K,{G:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(){return function(j){return j.lift(new x)}}var x=function(){function j(){(0,A.Z)(this,j)}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).hasPrev=!1,b}return(0,H.Z)(v,[{key:"_next",value:function(b){var O;this.hasPrev?O=[this.prev,b]:this.hasPrev=!0,this.prev=b,O&&this.destination.next(O)}}]),v}(R.L)},4327:function(Ae,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(){return function(L){return L.lift(new x(L))}}var x=function(){function j(L){(0,A.Z)(this,j),this.connectable=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){var b=this.connectable;b._refCount++;var O=new D(v,b),S=k.subscribe(O);return O.closed||(O.connection=b.connect()),S}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).connectable=b,O}return(0,H.Z)(v,[{key:"_unsubscribe",value:function(){var b=this.connectable;if(b){this.connectable=null;var O=b._refCount;if(O<=0)this.connection=null;else if(b._refCount=O-1,O>1)this.connection=null;else{var S=this.connection,y=b._connection;this.connection=null,y&&(!S||y===S)&&y.unsubscribe()}}else this.connection=null}}]),v}(R.L)},2014:function(Ae,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j,L){var v=!1;return arguments.length>=2&&(v=!0),function(b){return b.lift(new x(j,L,v))}}var x=function(){function j(L,v){var k=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,A.Z)(this,j),this.accumulator=L,this.seed=v,this.hasSeed=k}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.accumulator,this.seed,this.hasSeed))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O,S){var y;return(0,A.Z)(this,v),(y=L.call(this,k)).accumulator=b,y._seed=O,y.hasSeed=S,y.index=0,y}return(0,H.Z)(v,[{key:"seed",get:function(){return this._seed},set:function(b){this.hasSeed=!0,this._seed=b}},{key:"_next",value:function(b){if(this.hasSeed)return this._tryNext(b);this.seed=b,this.destination.next(b)}},{key:"_tryNext",value:function(b){var S,O=this.index++;try{S=this.accumulator(this.seed,b,O)}catch(y){this.destination.error(y)}this.seed=S,this.destination.next(S)}}]),v}(R.L)},8117:function(Ae,K,m){"use strict";m.d(K,{B:function(){return R}});var G=m(2536),W=m(4327),A=m(8929);function H(){return new A.xQ}function R(){return function(P){return(0,W.x)()((0,G.O)(H)(P))}}},5154:function(Ae,K,m){"use strict";m.d(K,{d:function(){return W}});var G=m(839);function W(H,R,P){var x;return x=H&&"object"==typeof H?H:{bufferSize:H,windowTime:R,refCount:!1,scheduler:P},function(D){return D.lift(function A(H){var v,b,R=H.bufferSize,P=void 0===R?Number.POSITIVE_INFINITY:R,x=H.windowTime,D=void 0===x?Number.POSITIVE_INFINITY:x,j=H.refCount,L=H.scheduler,k=0,O=!1,S=!1;return function(T){var M;k++,!v||O?(O=!1,v=new G.t(P,D,L),M=v.subscribe(this),b=T.subscribe({next:function(N){v.next(N)},error:function(N){O=!0,v.error(N)},complete:function(){S=!0,b=void 0,v.complete()}}),S&&(b=void 0)):M=v.subscribe(this),this.add(function(){k--,M.unsubscribe(),M=void 0,b&&!S&&j&&0===k&&(b.unsubscribe(),b=void 0,v=void 0)})}}(x))}}},1307:function(Ae,K,m){"use strict";m.d(K,{T:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new x(j))}}var x=function(){function j(L){(0,A.Z)(this,j),this.total=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.total))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).total=b,O.count=0,O}return(0,H.Z)(v,[{key:"_next",value:function(b){++this.count>this.total&&this.destination.next(b)}}]),v}(R.L)},1059:function(Ae,K,m){"use strict";m.d(K,{O:function(){return A}});var G=m(1961),W=m(2866);function A(){for(var H=arguments.length,R=new Array(H),P=0;P<H;P++)R[P]=arguments[P];var x=R[R.length-1];return(0,W.K)(x)?(R.pop(),function(D){return(0,G.z)(R,D,x)}):function(D){return(0,G.z)(R,D)}}},7545:function(Ae,K,m){"use strict";m.d(K,{w:function(){return L}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),R=m(5671),P=m(3144),x=m(4850),D=m(3527),j=m(1177);function L(b,O){return"function"==typeof O?function(S){return S.pipe(L(function(y,T){return(0,D.D)(b(y,T)).pipe((0,x.U)(function(M,E){return O(y,M,T,E)}))}))}:function(S){return S.lift(new v(b))}}var v=function(){function b(O){(0,R.Z)(this,b),this.project=O}return(0,P.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new k(S,this.project))}}]),b}(),k=function(b){(0,A.Z)(S,b);var O=(0,H.Z)(S);function S(y,T){var M;return(0,R.Z)(this,S),(M=O.call(this,y)).project=T,M.index=0,M}return(0,P.Z)(S,[{key:"_next",value:function(T){var M,E=this.index++;try{M=this.project(T,E)}catch(N){return void this.destination.error(N)}this._innerSub(M)}},{key:"_innerSub",value:function(T){var M=this.innerSubscription;M&&M.unsubscribe();var E=new j.IY(this),N=this.destination;N.add(E),this.innerSubscription=(0,j.ft)(T,E),this.innerSubscription!==E&&N.add(this.innerSubscription)}},{key:"_complete",value:function(){var T=this.innerSubscription;(!T||T.closed)&&(0,G.Z)((0,W.Z)(S.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,G.Z)((0,W.Z)(S.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(T){this.destination.next(T)}}]),S}(j.Ds)},2986:function(Ae,K,m){"use strict";m.d(K,{q:function(){return D}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489),P=m(4231),x=m(8896);function D(v){return function(k){return 0===v?(0,x.c)():k.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,H.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.count=0,y}return(0,H.Z)(b,[{key:"_next",value:function(S){var y=this.total,T=++this.count;T<=y&&(this.destination.next(S),T===y&&(this.destination.complete(),this.unsubscribe()))}}]),b}(R.L)},2821:function(Ae,K,m){"use strict";m.d(K,{h:function(){return D}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489),P=m(4231),x=m(8896);function D(v){return function(b){return 0===v?(0,x.c)():b.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,H.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.ring=new Array,y.count=0,y}return(0,H.Z)(b,[{key:"_next",value:function(S){var y=this.ring,T=this.total,M=this.count++;y.length<T?y.push(S):y[M%T]=S}},{key:"_complete",value:function(){var S=this.destination,y=this.count;if(y>0)for(var T=this.count>=this.total?this.total:this.count,M=this.ring,E=0;E<T;E++){var N=y++%T;S.next(M[N])}S.complete()}}]),b}(R.L)},7625:function(Ae,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(1177);function P(j){return function(L){return L.lift(new x(j))}}var x=function(){function j(L){(0,A.Z)(this,j),this.notifier=L}return(0,H.Z)(j,[{key:"call",value:function(v,k){var b=new D(v),O=(0,R.ft)(this.notifier,new R.IY(b));return O&&!b.seenValue?(b.add(O),k.subscribe(b)):b}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).seenValue=!1,b}return(0,H.Z)(v,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),v}(R.Ds)},4290:function(Ae,K,m){"use strict";m.d(K,{o:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(3489);function P(j){var L=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(v){return v.lift(new x(j,L))}}var x=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.inclusive=v}return(0,H.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.inclusive))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.inclusive=O,S.index=0,S}return(0,H.Z)(v,[{key:"_next",value:function(b){var S,O=this.destination;try{S=this.predicate(b,this.index++)}catch(y){return void O.error(y)}this.nextOrComplete(b,S)}},{key:"nextOrComplete",value:function(b,O){var S=this.destination;Boolean(O)?S.next(b):(this.inclusive&&S.next(b),S.complete())}}]),v}(R.L)},2994:function(Ae,K,m){"use strict";m.d(K,{b:function(){return j}});var G=m(7326),W=m(136),A=m(9388),H=m(5671),R=m(3144),P=m(3489),x=m(7876),D=m(7043);function j(k,b,O){return function(y){return y.lift(new L(k,b,O))}}var L=function(){function k(b,O,S){(0,H.Z)(this,k),this.nextOrObserver=b,this.error=O,this.complete=S}return(0,R.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O,this.nextOrObserver,this.error,this.complete))}}]),k}(),v=function(k){(0,W.Z)(O,k);var b=(0,A.Z)(O);function O(S,y,T,M){var E;return(0,H.Z)(this,O),(E=b.call(this,S))._tapNext=x.Z,E._tapError=x.Z,E._tapComplete=x.Z,E._tapError=T||x.Z,E._tapComplete=M||x.Z,(0,D.m)(y)?(E._context=(0,G.Z)(E),E._tapNext=y):y&&(E._context=y,E._tapNext=y.next||x.Z,E._tapError=y.error||x.Z,E._tapComplete=y.complete||x.Z),E}return(0,R.Z)(O,[{key:"_next",value:function(y){try{this._tapNext.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.next(y)}},{key:"_error",value:function(y){try{this._tapError.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.error(y)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(y){return void this.destination.error(y)}return this.destination.complete()}}]),O}(P.L)},2444:function(Ae,K,m){"use strict";m.d(K,{P:function(){return x},d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(1177),P={leading:!0,trailing:!1};function x(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(k){return k.lift(new D(L,!!v.leading,!!v.trailing))}}var D=function(){function L(v,k,b){(0,A.Z)(this,L),this.durationSelector=v,this.leading=k,this.trailing=b}return(0,H.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.durationSelector,this.leading,this.trailing))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O,S,y){var T;return(0,A.Z)(this,k),(T=v.call(this,b)).destination=b,T.durationSelector=O,T._leading=S,T._trailing=y,T._hasValue=!1,T}return(0,H.Z)(k,[{key:"_next",value:function(O){this._hasValue=!0,this._sendValue=O,this._throttled||(this._leading?this.send():this.throttle(O))}},{key:"send",value:function(){var O=this._hasValue,S=this._sendValue;O&&(this.destination.next(S),this.throttle(S)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(O){var S=this.tryDurationSelector(O);S&&this.add(this._throttled=(0,R.ft)(S,new R.IY(this)))}},{key:"tryDurationSelector",value:function(O){try{return this.durationSelector(O)}catch(S){return this.destination.error(S),null}}},{key:"throttlingDone",value:function(){var O=this._throttled,S=this._trailing;O&&O.unsubscribe(),this._throttled=void 0,S&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),k}(R.Ds)},4907:function(Ae,K,m){"use strict";m.d(K,{T:function(){return x}});var G=m(136),W=m(9388),A=m(5671),H=m(3144),R=m(4450),P=m(3489);function x(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;return function(k){return k.lift(new D(v))}}var D=function(){function v(k){(0,A.Z)(this,v),this.errorFactory=k}return(0,H.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.errorFactory))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).errorFactory=S,y.hasValue=!1,y}return(0,H.Z)(b,[{key:"_next",value:function(S){this.hasValue=!0,this.destination.next(S)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var S;try{S=this.errorFactory()}catch(y){S=y}this.destination.error(S)}}]),b}(P.L);function L(){return new R.K}},3485:function(Ae,K,m){"use strict";m.d(K,{J:function(){return x},R:function(){return D}});var G=m(3144),W=m(5671),A=m(353),H=m(2014),R=m(8514),P=m(4850);function x(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return function(L){return(0,R.P)(function(){return L.pipe((0,H.R)(function(v,k){var b=v.current;return{value:k,current:j.now(),last:b}},{current:j.now(),value:void 0,last:void 0}),(0,P.U)(function(v){var k=v.current,b=v.last,O=v.value;return new D(O,k-b)}))})}}var D=(0,G.Z)(function j(L,v){(0,W.Z)(this,j),this.value=L,this.interval=v})},7781:function(Ae,K,m){"use strict";m.d(K,{A:function(){return R},E:function(){return P}});var G=m(3144),W=m(5671),A=m(353),H=m(4850);function R(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return(0,H.U)(function(D){return new P(D,x.now())})}var P=(0,G.Z)(function x(D,j){(0,W.Z)(this,x),this.value=D,this.timestamp=j})},6454:function(Ae,K,m){"use strict";m.d(K,{r:function(){return A}});var G=m(7451),W=m(4096);function A(H,R){return new G.y(function(P){var x=new W.w,D=0;return x.add(R.schedule(function(){D!==H.length?(P.next(H[D++]),P.closed||x.add(this.schedule())):P.complete()})),x})}},6389:function(Ae,K,m){"use strict";m.d(K,{Q:function(){return H}});var G=m(7451),W=m(4096),A=m(5430);function H(R,P){if(!R)throw new Error("Iterable cannot be null");return new G.y(function(x){var j,D=new W.w;return D.add(function(){j&&"function"==typeof j.return&&j.return()}),D.add(P.schedule(function(){j=R[A.hZ](),D.add(P.schedule(function(){if(!x.closed){var L,v;try{var k=j.next();L=k.value,v=k.done}catch(b){return void x.error(b)}v?x.complete():(x.next(L),this.schedule())}}))})),D})}},8687:function(Ae,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(7451),W=m(4096);function A(H,R){return new G.y(function(P){var x=new W.w;return x.add(R.schedule(function(){return H.then(function(D){x.add(R.schedule(function(){P.next(D),x.add(R.schedule(function(){return P.complete()}))}))},function(D){x.add(R.schedule(function(){return P.error(D)}))})})),x})}},6266:function(Ae,K,m){"use strict";m.d(K,{x:function(){return k}});var G=m(7451),W=m(4096),A=m(3821);var R=m(8687),P=m(6454),x=m(6389),D=m(8845),j=m(8955),L=m(8515),v=m(2198);function k(b,O){if(null!=b){if((0,D.c)(b))return function H(b,O){return new G.y(function(S){var y=new W.w;return y.add(O.schedule(function(){var T=b[A.L]();y.add(T.subscribe({next:function(E){y.add(O.schedule(function(){return S.next(E)}))},error:function(E){y.add(O.schedule(function(){return S.error(E)}))},complete:function(){y.add(O.schedule(function(){return S.complete()}))}}))})),y})}(b,O);if((0,j.t)(b))return(0,R.c)(b,O);if((0,L.z)(b))return(0,P.r)(b,O);if((0,v.T)(b)||"string"==typeof b)return(0,x.Q)(b,O)}throw new TypeError((null!==b&&typeof b||b)+" is not observable")}},6686:function(Ae,K,m){"use strict";m.d(K,{o:function(){return x}});var G=m(5671),W=m(3144),A=m(136),H=m(9388),P=function(D){(0,A.Z)(L,D);var j=(0,H.Z)(L);function L(v,k){return(0,G.Z)(this,L),j.call(this)}return(0,W.Z)(L,[{key:"schedule",value:function(k){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),L}(m(4096).w),x=function(D){(0,A.Z)(L,D);var j=(0,H.Z)(L);function L(v,k){var b;return(0,G.Z)(this,L),(b=j.call(this,v,k)).scheduler=v,b.work=k,b.pending=!1,b}return(0,W.Z)(L,[{key:"schedule",value:function(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=k;var O=this.id,S=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId(S,O,b)),this.pending=!0,this.delay=b,this.id=this.id||this.requestAsyncId(S,this.id,b),this}},{key:"requestAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(k.flush.bind(k,this),O)}},{key:"recycleAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&this.delay===O&&!1===this.pending)return b;clearInterval(b)}},{key:"execute",value:function(k,b){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var O=this._execute(k,b);if(O)return O;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(k,b){var O=!1,S=void 0;try{this.work(k)}catch(y){O=!0,S=!!y&&y||new Error(y)}if(O)return this.unsubscribe(),S}},{key:"_unsubscribe",value:function(){var k=this.id,b=this.scheduler,O=b.actions,S=O.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==S&&O.splice(S,1),null!=k&&(this.id=this.recycleAsyncId(b,k,null)),this.delay=null}}]),L}(P)},198:function(Ae,K,m){"use strict";m.d(K,{v:function(){return j}});var G=m(5671),W=m(3144),A=m(7326),H=m(3237),R=m(1120),P=m(136),x=m(9388),D=m(2221),j=function(L){(0,P.Z)(k,L);var v=(0,x.Z)(k);function k(b){var O,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.b.now;return(0,G.Z)(this,k),(O=v.call(this,b,function(){return k.delegate&&k.delegate!==(0,A.Z)(O)?k.delegate.now():S()})).actions=[],O.active=!1,O.scheduled=void 0,O}return(0,W.Z)(k,[{key:"schedule",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,y=arguments.length>2?arguments[2]:void 0;return k.delegate&&k.delegate!==this?k.delegate.schedule(O,S,y):(0,H.Z)((0,R.Z)(k.prototype),"schedule",this).call(this,O,S,y)}},{key:"flush",value:function(O){var S=this.actions;if(this.active)S.push(O);else{var y;this.active=!0;do{if(y=O.execute(O.state,O.delay))break}while(O=S.shift());if(this.active=!1,y){for(;O=S.shift();)O.unsubscribe();throw y}}}}]),k}(D.b)},9027:function(Ae,K,m){"use strict";m.d(K,{h:function(){return L},y:function(){return j}});var G=m(3237),W=m(1120),A=m(5671),H=m(3144),R=m(136),P=m(9388),x=m(6686),j=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(){var O,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,b),(O=k.call(this,S,function(){return O.frame})).maxFrames=y,O.frame=0,O.index=-1,O}return(0,H.Z)(b,[{key:"flush",value:function(){for(var T,M,S=this.actions,y=this.maxFrames;(M=S[0])&&M.delay<=y&&(S.shift(),this.frame=M.delay,!(T=M.execute(M.state,M.delay))););if(T){for(;M=S.shift();)M.unsubscribe();throw T}}}]),b}(m(198).v);j.frameTimeFactor=10;var L=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O.index+=1;return(0,A.Z)(this,b),(y=k.call(this,O,S)).scheduler=O,y.work=S,y.index=T,y.active=!0,y.index=O.index=T,y}return(0,H.Z)(b,[{key:"schedule",value:function(S){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,G.Z)((0,W.Z)(b.prototype),"schedule",this).call(this,S,y);this.active=!1;var T=new b(this.scheduler,this.work);return this.add(T),T.schedule(S,y)}},{key:"requestAsyncId",value:function(S,y){var T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=S.frame+T;var M=S.actions;return M.push(this),M.sort(b.sortActions),!0}},{key:"recycleAsyncId",value:function(S,y){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(S,y){if(!0===this.active)return(0,G.Z)((0,W.Z)(b.prototype),"_execute",this).call(this,S,y)}}],[{key:"sortActions",value:function(S,y){return S.delay===y.delay?S.index===y.index?0:S.index>y.index?1:-1:S.delay>y.delay?1:-1}}]),b}(x.o)},352:function(Ae,K,m){"use strict";m.d(K,{r:function(){return k},Z:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"requestAsyncId",value:function(T,M){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==E&&E>0?(0,A.Z)((0,H.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,E):(T.actions.push(this),T.scheduled||(T.scheduled=requestAnimationFrame(function(){return T.flush(null)})))}},{key:"recycleAsyncId",value:function(T,M){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==E&&E>0||null===E&&this.delay>0)return(0,A.Z)((0,H.Z)(S.prototype),"recycleAsyncId",this).call(this,T,M,E);0===T.actions.length&&(cancelAnimationFrame(M),T.scheduled=void 0)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"flush",value:function(T){this.active=!0,this.scheduled=void 0;var E,M=this.actions,N=-1,F=M.length;T=T||M.shift();do{if(E=T.execute(T.state,T.delay))break}while(++N<F&&(T=M.shift()));if(this.active=!1,E){for(;++N<F&&(T=M.shift());)T.unsubscribe();throw E}}}]),S}(m(198).v),v=new L(D),k=v},9931:function(Ae,K,m){"use strict";m.d(K,{e:function(){return b},E:function(){return k}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(1450),j=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(T,M){var E;return(0,G.Z)(this,y),(E=S.call(this,T,M)).scheduler=T,E.work=M,E}return(0,W.Z)(y,[{key:"requestAsyncId",value:function(M,E){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==N&&N>0?(0,A.Z)((0,H.Z)(y.prototype),"requestAsyncId",this).call(this,M,E,N):(M.actions.push(this),M.scheduled||(M.scheduled=x.H.setImmediate(M.flush.bind(M,null))))}},{key:"recycleAsyncId",value:function(M,E){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==N&&N>0||null===N&&this.delay>0)return(0,A.Z)((0,H.Z)(y.prototype),"recycleAsyncId",this).call(this,M,E,N);0===M.actions.length&&(x.H.clearImmediate(E),M.scheduled=void 0)}}]),y}(m(6686).o),v=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(){return(0,G.Z)(this,y),S.apply(this,arguments)}return(0,W.Z)(y,[{key:"flush",value:function(M){this.active=!0,this.scheduled=void 0;var N,E=this.actions,F=-1,X=E.length;M=M||E.shift();do{if(N=M.execute(M.state,M.delay))break}while(++F<X&&(M=E.shift()));if(this.active=!1,N){for(;++F<X&&(M=E.shift());)M.unsubscribe();throw N}}}]),y}(m(198).v),k=new v(j),b=k},353:function(Ae,K,m){"use strict";m.d(K,{P:function(){return H},z:function(){return A}});var G=m(6686),A=new(m(198).v)(G.o),H=A},341:function(Ae,K,m){"use strict";m.d(K,{c:function(){return k},N:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"schedule",value:function(T){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M>0?(0,A.Z)((0,H.Z)(S.prototype),"schedule",this).call(this,T,M):(this.delay=M,this.state=T,this.scheduler.flush(this),this)}},{key:"execute",value:function(T,M){return M>0||this.closed?(0,A.Z)((0,H.Z)(S.prototype),"execute",this).call(this,T,M):this._execute(T,M)}},{key:"requestAsyncId",value:function(T,M){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==E&&E>0||null===E&&this.delay>0?(0,A.Z)((0,H.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,E):T.flush(this)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S)}(m(198).v),v=new L(D),k=v},5430:function(Ae,K,m){"use strict";m.d(K,{hZ:function(){return W}});var W=function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(Ae,K,m){"use strict";m.d(K,{L:function(){return G}});var G="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(Ae,K,m){"use strict";m.d(K,{b:function(){return G}});var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}()},4450:function(Ae,K,m){"use strict";m.d(K,{K:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}()},1450:function(Ae,K,m){"use strict";m.d(K,{H:function(){return R}});var G=1,W=Promise.resolve(),A={};function H(x){return x in A&&(delete A[x],!0)}var R={setImmediate:function(D){var j=G++;return A[j]=!0,W.then(function(){return H(j)&&D()}),j},clearImmediate:function(D){H(D)}}},5279:function(Ae,K,m){"use strict";m.d(K,{N:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}()},854:function(Ae,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return A.prototype=Object.create(Error.prototype),A}()},7964:function(Ae,K,m){"use strict";m.d(K,{B:function(){return W}});var W=function(){function A(H){return Error.call(this),this.message=H?"".concat(H.length," errors occurred during unsubscription:\n").concat(H.map(function(R,P){return"".concat(P+1,") ").concat(R.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=H,this}return A.prototype=Object.create(Error.prototype),A}()},5128:function(Ae,K,m){"use strict";function G(W,A){for(var H=0,R=A.length;H<R;H++)for(var P=A[H],x=Object.getOwnPropertyNames(P.prototype),D=0,j=x.length;D<j;D++){var L=x[D];W.prototype[L]=P.prototype[L]}}m.d(K,{e:function(){return G}})},9476:function(Ae,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(3489);function W(A){for(;A;){var H=A,R=H.closed,P=H.destination,x=H.isStopped;if(R||x)return!1;A=P&&P instanceof G.L?P:null}return!0}},2782:function(Ae,K,m){"use strict";function G(W){setTimeout(function(){throw W},0)}m.d(K,{z:function(){return G}})},5379:function(Ae,K,m){"use strict";function G(W){return W}m.d(K,{y:function(){return G}})},6688:function(Ae,K,m){"use strict";m.d(K,{k:function(){return G}});var G=Array.isArray||function(W){return W&&"number"==typeof W.length}},8515:function(Ae,K,m){"use strict";m.d(K,{z:function(){return G}});var G=function(A){return A&&"number"==typeof A.length&&"function"!=typeof A}},2697:function(Ae,K,m){"use strict";function G(W){return W instanceof Date&&!isNaN(+W)}m.d(K,{J:function(){return G}})},7043:function(Ae,K,m){"use strict";function G(W){return"function"==typeof W}m.d(K,{m:function(){return G}})},8845:function(Ae,K,m){"use strict";m.d(K,{c:function(){return W}});var G=m(3821);function W(A){return A&&"function"==typeof A[G.L]}},2198:function(Ae,K,m){"use strict";m.d(K,{T:function(){return W}});var G=m(5430);function W(A){return A&&"function"==typeof A[G.hZ]}},4241:function(Ae,K,m){"use strict";m.d(K,{k:function(){return W}});var G=m(6688);function W(A){return!(0,G.k)(A)&&A-parseFloat(A)+1>=0}},7830:function(Ae,K,m){"use strict";function G(W){return null!==W&&"object"==typeof W}m.d(K,{K:function(){return G}})},4715:function(Ae,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(7451);function W(A){return!!A&&(A instanceof G.y||"function"==typeof A.lift&&"function"==typeof A.subscribe)}},8955:function(Ae,K,m){"use strict";function G(W){return!!W&&"function"!=typeof W.subscribe&&"function"==typeof W.then}m.d(K,{t:function(){return G}})},2866:function(Ae,K,m){"use strict";function G(W){return W&&"function"==typeof W.schedule}m.d(K,{K:function(){return G}})},7876:function(Ae,K,m){"use strict";function G(){}m.d(K,{Z:function(){return G}})},5884:function(Ae,K,m){"use strict";function G(W,A){function H(){return!H.pred.apply(H.thisArg,arguments)}return H.pred=W,H.thisArg=A,H}m.d(K,{f:function(){return G}})},4843:function(Ae,K,m){"use strict";m.d(K,{U:function(){return A},z:function(){return W}});var G=m(5379);function W(){for(var H=arguments.length,R=new Array(H),P=0;P<H;P++)R[P]=arguments[P];return A(R)}function A(H){return 0===H.length?G.y:1===H.length?H[0]:function(P){return H.reduce(function(x,D){return D(x)},P)}}},797:function(Ae,K,m){"use strict";m.d(K,{J:function(){return H}});var G="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A="undefined"!=typeof global&&global,H=G||A||W;!function(){if(!H)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(Ae,K,m){"use strict";m.d(K,{s:function(){return L}});var G=m(3650),W=m(3445),A=m(3720),H=m(1810),R=m(8515),P=m(8955),x=m(7830),D=m(5430),j=m(3821),L=function(k){if(k&&"function"==typeof k[j.L])return(0,H.h)(k);if((0,R.z)(k))return(0,G.V)(k);if((0,P.t)(k))return(0,W.A)(k);if(k&&"function"==typeof k[D.hZ])return(0,A.u)(k);var b=(0,x.K)(k)?"an invalid object":"'".concat(k,"'"),O="You provided ".concat(b," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(O)}},3650:function(Ae,K,m){"use strict";m.d(K,{V:function(){return G}});var G=function(A){return function(H){for(var R=0,P=A.length;R<P&&!H.closed;R++)H.next(A[R]);H.complete()}}},3720:function(Ae,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(5430),W=function(H){return function(R){for(var P=H[G.hZ]();;){var x=void 0;try{x=P.next()}catch(D){return R.error(D),R}if(x.done){R.complete();break}if(R.next(x.value),R.closed)break}return"function"==typeof P.return&&R.add(function(){P.return&&P.return()}),R}}},1810:function(Ae,K,m){"use strict";m.d(K,{h:function(){return W}});var G=m(3821),W=function(H){return function(R){var P=H[G.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(R)}}},3445:function(Ae,K,m){"use strict";m.d(K,{A:function(){return W}});var G=m(2782),W=function(H){return function(R){return H.then(function(P){R.closed||(R.next(P),R.complete())},function(P){return R.error(P)}).then(null,G.z),R}}},9054:function(Ae,K,m){"use strict";m.d(K,{D:function(){return H}});var G=m(1869),W=m(3071),A=m(7451);function H(R,P,x,D){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new G.d(R,x,D);if(!j.closed)return P instanceof A.y?P.subscribe(j):(0,W.s)(P)(j)}},5221:function(Ae,K,m){"use strict";m.d(K,{Y:function(){return H}});var G=m(3489),W=m(7668),A=m(3292);function H(R,P,x){if(R){if(R instanceof G.L)return R;if(R[W.b])return R[W.b]()}return R||P||x?new G.L(R,P,x):new G.L(A.c)}},6650:function(Ae,K,m){"use strict";m.r(K),m.d(K,{audit:function(){return G.U},auditTime:function(){return W.e},buffer:function(){return j},bufferCount:function(){return S},bufferTime:function(){return F},bufferToggle:function(){return ce},bufferWhen:function(){return st},catchError:function(){return Et.K},combineAll:function(){return Ze},combineLatest:function(){return Ot},concat:function(){return Ct},concatAll:function(){return We.u},concatMap:function(){return ut.b},concatMapTo:function(){return dt},count:function(){return Ut.Q},debounce:function(){return B},debounceTime:function(){return Ye.b},defaultIfEmpty:function(){return ge.d},delay:function(){return t.g},delayWhen:function(){return Zt},dematerialize:function(){return Kt},distinct:function(){return Be},distinctUntilChanged:function(){return pe.x},distinctUntilKeyChanged:function(){return Ne},elementAt:function(){return on},endWith:function(){return ln},every:function(){return En},exhaust:function(){return At},exhaustMap:function(){return ze},expand:function(){return qe},filter:function(){return ct.h},finalize:function(){return Hn.x},find:function(){return Yt},findIndex:function(){return gt},first:function(){return yt.P},flatMap:function(){return ki.VS},groupBy:function(){return nn.v},ignoreElements:function(){return Gn},isEmpty:function(){return ar},last:function(){return Gi.Z},map:function(){return St.U},mapTo:function(){return Pa.h},materialize:function(){return ua},max:function(){return br},merge:function(){return Ni},mergeAll:function(){return Ms.J},mergeMap:function(){return ki.zg},mergeMapTo:function(){return Ko},mergeScan:function(){return qr},min:function(){return Ar},multicast:function(){return Fi.O},observeOn:function(){return Uo.QV},onErrorResumeNext:function(){return Ca},pairwise:function(){return ls.G},partition:function(){return po},pluck:function(){return La},publish:function(){return gu},publishBehavior:function(){return Ui},publishLast:function(){return qi},publishReplay:function(){return Jt},race:function(){return Mi},reduce:function(){return Yn},refCount:function(){return Vi.x},repeat:function(){return Ho},repeatWhen:function(){return vo},retry:function(){return xn},retryWhen:function(){return Ji},sample:function(){return ti},sampleTime:function(){return Do},scan:function(){return ri.R},sequenceEqual:function(){return oo},share:function(){return Na.B},shareReplay:function(){return ao.d},single:function(){return ka},skip:function(){return Hi.T},skipLast:function(){return Yi},skipUntil:function(){return kp},skipWhile:function(){return so},startWith:function(){return Ec.O},subscribeOn:function(){return Dc},switchAll:function(){return Mp},switchMap:function(){return cs.w},switchMapTo:function(){return Ks},take:function(){return jt.q},takeLast:function(){return Ys.h},takeUntil:function(){return Ku.R},takeWhile:function(){return jl.o},tap:function(){return nh.b},throttle:function(){return ds.P},throttleTime:function(){return Mr},throwIfEmpty:function(){return Bt.T},timeInterval:function(){return ih.J},timeout:function(){return Te},timeoutWith:function(){return qu},timestamp:function(){return se.A},toArray:function(){return Oe},window:function(){return mt},windowCount:function(){return sr},windowTime:function(){return zl},windowToggle:function(){return oh},windowWhen:function(){return Ju},withLatestFrom:function(){return hs},zip:function(){return ia},zipAll:function(){return ah}});var G=m(384),W=m(7568),A=m(7326),H=m(136),R=m(9388),P=m(5671),x=m(3144),D=m(1177);function j(Ie){return function(_e){return _e.lift(new L(Ie))}}var L=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingNotifier=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new v(_e,this.closingNotifier))}}]),Ie}(),v=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).buffer=[],Ge.add((0,D.ft)(ke,new D.IY((0,A.Z)(Ge)))),Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.buffer.push(ke)}},{key:"notifyNext",value:function(){var ke=this.buffer;this.buffer=[],this.destination.next(ke)}}]),_e}(D.Ds),k=m(3237),b=m(1120),O=m(3489);function S(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ee){return Ee.lift(new y(Ie,Ue))}}var y=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.bufferSize=Ue,this.startBufferEvery=_e,this.subscriberClass=_e&&Ue!==_e?M:T}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new this.subscriberClass(_e,this.bufferSize,this.startBufferEvery))}}]),Ie}(),T=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).bufferSize=ke,Ge.buffer=[],Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.buffer;Ge.push(ke),Ge.length==this.bufferSize&&(this.destination.next(Ge),this.buffer=[])}},{key:"_complete",value:function(){var ke=this.buffer;ke.length>0&&this.destination.next(ke),(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),M=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).bufferSize=ke,it.startBufferEvery=Ge,it.buffers=[],it.count=0,it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.bufferSize,it=this.startBufferEvery,Vt=this.buffers,Cn=this.count;this.count++,Cn%it==0&&Vt.push([]);for(var gr=Vt.length;gr--;){var Rr=Vt[gr];Rr.push(ke),Rr.length===Ge&&(Vt.splice(gr,1),this.destination.next(Rr))}}},{key:"_complete",value:function(){for(var ke=this.buffers,Ge=this.destination;ke.length>0;){var it=ke.shift();it.length>0&&Ge.next(it)}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),E=m(353),N=m(2866);function F(Ie){var Ue=arguments.length,_e=E.P;(0,N.K)(arguments[arguments.length-1])&&(_e=arguments[arguments.length-1],Ue--);var Ee=null;Ue>=2&&(Ee=arguments[1]);var ke=Number.POSITIVE_INFINITY;return Ue>=3&&(ke=arguments[2]),function(it){return it.lift(new X(Ie,Ee,ke,_e))}}var X=function(){function Ie(Ue,_e,Ee,ke){(0,P.Z)(this,Ie),this.bufferTimeSpan=Ue,this.bufferCreationInterval=_e,this.maxBufferSize=Ee,this.scheduler=ke}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Y(_e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ie}(),$=(0,x.Z)(function Ie(){(0,P.Z)(this,Ie),this.buffer=[]}),Y=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it,Vt){var Cn;(0,P.Z)(this,_e),(Cn=Ue.call(this,Ee)).bufferTimeSpan=ke,Cn.bufferCreationInterval=Ge,Cn.maxBufferSize=it,Cn.scheduler=Vt,Cn.contexts=[];var gr=Cn.openContext();if(Cn.timespanOnly=null==Ge||Ge<0,Cn.timespanOnly){var Rr={subscriber:(0,A.Z)(Cn),context:gr,bufferTimeSpan:ke};Cn.add(gr.closeAction=Vt.schedule(Q,ke,Rr))}else{var ms={subscriber:(0,A.Z)(Cn),context:gr},vl={bufferTimeSpan:ke,bufferCreationInterval:Ge,subscriber:(0,A.Z)(Cn),scheduler:Vt};Cn.add(gr.closeAction=Vt.schedule(be,ke,ms)),Cn.add(Vt.schedule(ne,Ge,vl))}return Cn}return(0,x.Z)(_e,[{key:"_next",value:function(ke){for(var Vt,Ge=this.contexts,it=Ge.length,Cn=0;Cn<it;Cn++){var gr=Ge[Cn],Rr=gr.buffer;Rr.push(ke),Rr.length==this.maxBufferSize&&(Vt=gr)}Vt&&this.onBufferFull(Vt)}},{key:"_error",value:function(ke){this.contexts.length=0,(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){for(var ke=this.contexts,Ge=this.destination;ke.length>0;){var it=ke.shift();Ge.next(it.buffer)}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(ke){this.closeContext(ke);var Ge=ke.closeAction;if(Ge.unsubscribe(),this.remove(Ge),!this.closed&&this.timespanOnly){ke=this.openContext();var it=this.bufferTimeSpan,Vt={subscriber:this,context:ke,bufferTimeSpan:it};this.add(ke.closeAction=this.scheduler.schedule(Q,it,Vt))}}},{key:"openContext",value:function(){var ke=new $;return this.contexts.push(ke),ke}},{key:"closeContext",value:function(ke){this.destination.next(ke.buffer);var Ge=this.contexts;(Ge?Ge.indexOf(ke):-1)>=0&&Ge.splice(Ge.indexOf(ke),1)}}]),_e}(O.L);function Q(Ie){var Ue=Ie.subscriber,_e=Ie.context;_e&&Ue.closeContext(_e),Ue.closed||(Ie.context=Ue.openContext(),Ie.context.closeAction=this.schedule(Ie,Ie.bufferTimeSpan))}function ne(Ie){var Ue=Ie.bufferCreationInterval,_e=Ie.bufferTimeSpan,Ee=Ie.subscriber,ke=Ie.scheduler,Ge=Ee.openContext();Ee.closed||(Ee.add(Ge.closeAction=ke.schedule(be,_e,{subscriber:Ee,context:Ge})),this.schedule(Ie,Ue))}function be(Ie){var Ue=Ie.subscriber,_e=Ie.context;Ue.closeContext(_e)}var fe=m(4096),de=m(9054),le=m(826);function ce(Ie,Ue){return function(Ee){return Ee.lift(new me(Ie,Ue))}}var me=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.openings=Ue,this.closingSelector=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new je(_e,this.openings,this.closingSelector))}}]),Ie}(),je=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).closingSelector=Ge,it.contexts=[],it.add((0,de.D)((0,A.Z)(it),ke)),it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.contexts,it=Ge.length,Vt=0;Vt<it;Vt++)Ge[Vt].buffer.push(ke)}},{key:"_error",value:function(ke){for(var Ge=this.contexts;Ge.length>0;){var it=Ge.shift();it.subscription.unsubscribe(),it.buffer=null,it.subscription=null}this.contexts=null,(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){for(var ke=this.contexts;ke.length>0;){var Ge=ke.shift();this.destination.next(Ge.buffer),Ge.subscription.unsubscribe(),Ge.buffer=null,Ge.subscription=null}this.contexts=null,(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(ke,Ge){ke?this.closeBuffer(ke):this.openBuffer(Ge)}},{key:"notifyComplete",value:function(ke){this.closeBuffer(ke.context)}},{key:"openBuffer",value:function(ke){try{var it=this.closingSelector.call(this,ke);it&&this.trySubscribe(it)}catch(Vt){this._error(Vt)}}},{key:"closeBuffer",value:function(ke){var Ge=this.contexts;if(Ge&&ke){var it=ke.buffer,Vt=ke.subscription;this.destination.next(it),Ge.splice(Ge.indexOf(ke),1),this.remove(Vt),Vt.unsubscribe()}}},{key:"trySubscribe",value:function(ke){var Ge=this.contexts,Vt=new fe.w,Cn={buffer:[],subscription:Vt};Ge.push(Cn);var gr=(0,de.D)(this,ke,Cn);!gr||gr.closed?this.closeBuffer(Cn):(gr.context=Cn,this.add(gr),Vt.add(gr))}}]),_e}(le.L);function st(Ie){return function(Ue){return Ue.lift(new Mt(Ie))}}var Mt=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingSelector=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Tt(_e,this.closingSelector))}}]),Ie}(),Tt=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).closingSelector=ke,Ge.subscribing=!1,Ge.openBuffer(),Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.buffer.push(ke)}},{key:"_complete",value:function(){var ke=this.buffer;ke&&this.destination.next(ke),(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var ke=this.closingSubscription;ke&&(this.remove(ke),ke.unsubscribe());var it,Ge=this.buffer;this.buffer&&this.destination.next(Ge),this.buffer=[];try{it=(0,this.closingSelector)()}catch(Cn){return this.error(Cn)}ke=new fe.w,this.closingSubscription=ke,this.add(ke),this.subscribing=!0,ke.add((0,D.ft)(it,new D.IY(this))),this.subscribing=!1}}]),_e}(D.Ds),Et=m(7221),Lt=m(6053);function Ze(Ie){return function(Ue){return Ue.lift(new Lt.Ms(Ie))}}var $t=m(4902),Ft=m(6688),pn=m(3527);function Ot(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];var Ee=null;return"function"==typeof Ue[Ue.length-1]&&(Ee=Ue.pop()),1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0].slice()),function(ke){return ke.lift.call((0,pn.D)([ke].concat((0,$t.Z)(Ue))),new Lt.Ms(Ee))}}var _t=m(1961);function Ct(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(Ee){return Ee.lift.call(_t.z.apply(void 0,[Ee].concat(Ue)))}}var We=m(534),ut=m(1406);function dt(Ie,Ue){return(0,ut.b)(function(){return Ie},Ue)}var Ut=m(3906);function B(Ie){return function(Ue){return Ue.lift(new U(Ie))}}var U=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.durationSelector=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new tt(_e,this.durationSelector))}}]),Ie}(),tt=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).durationSelector=ke,Ge.hasValue=!1,Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){try{var Ge=this.durationSelector.call(this,ke);Ge&&this._tryNext(ke,Ge)}catch(it){this.destination.error(it)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(ke,Ge){var it=this.durationSubscription;this.value=ke,this.hasValue=!0,it&&(it.unsubscribe(),this.remove(it)),(it=(0,D.ft)(Ge,new D.IY(this)))&&!it.closed&&this.add(this.durationSubscription=it)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var ke=this.value,Ge=this.durationSubscription;Ge&&(this.durationSubscription=void 0,Ge.unsubscribe(),this.remove(Ge)),this.value=void 0,this.hasValue=!1,(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}}}]),_e}(D.Ds),Ye=m(13),ge=m(7314),t=m(943),Dt=m(7451);function Zt(Ie,Ue){return Ue?function(_e){return new qt(_e,Ue).lift(new zt(Ie))}:function(_e){return _e.lift(new zt(Ie))}}var zt=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.delayDurationSelector=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new sn(_e,this.delayDurationSelector))}}]),Ie}(),sn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).delayDurationSelector=ke,Ge.completed=!1,Ge.delayNotifierSubscriptions=[],Ge.index=0,Ge}return(0,x.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it,Vt,Cn){this.destination.next(ke),this.removeSubscription(Cn),this.tryComplete()}},{key:"notifyError",value:function(ke,Ge){this._error(ke)}},{key:"notifyComplete",value:function(ke){var Ge=this.removeSubscription(ke);Ge&&this.destination.next(Ge),this.tryComplete()}},{key:"_next",value:function(ke){var Ge=this.index++;try{var it=this.delayDurationSelector(ke,Ge);it&&this.tryDelay(it,ke)}catch(Vt){this.destination.error(Vt)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(ke){ke.unsubscribe();var Ge=this.delayNotifierSubscriptions.indexOf(ke);return-1!==Ge&&this.delayNotifierSubscriptions.splice(Ge,1),ke.outerValue}},{key:"tryDelay",value:function(ke,Ge){var it=(0,de.D)(this,ke,Ge);it&&!it.closed&&(this.destination.add(it),this.delayNotifierSubscriptions.push(it))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),_e}(le.L),qt=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this)).source=Ee,Ge.subscriptionDelay=ke,Ge}return(0,x.Z)(_e,[{key:"_subscribe",value:function(ke){this.subscriptionDelay.subscribe(new yn(ke,this.source))}}]),_e}(Dt.y),yn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this)).parent=Ee,Ge.source=ke,Ge.sourceSubscribed=!1,Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.subscribeToSource()}},{key:"_error",value:function(ke){this.unsubscribe(),this.parent.error(ke)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),_e}(O.L);function Kt(){return function(Ue){return Ue.lift(new Xt)}}var Xt=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Je(_e))}}]),Ie}(),Je=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee){return(0,P.Z)(this,_e),Ue.call(this,Ee)}return(0,x.Z)(_e,[{key:"_next",value:function(ke){ke.observe(this.destination)}}]),_e}(O.L);function Be(Ie,Ue){return function(_e){return _e.lift(new te(Ie,Ue))}}var te=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.keySelector=Ue,this.flushes=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new ye(_e,this.keySelector,this.flushes))}}]),Ie}(),ye=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).keySelector=ke,it.values=new Set,Ge&&it.add((0,D.ft)(Ge,new D.IY((0,A.Z)(it)))),it}return(0,x.Z)(_e,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"_next",value:function(ke){this.keySelector?this._useKeySelector(ke):this._finalizeNext(ke,ke)}},{key:"_useKeySelector",value:function(ke){var Ge,it=this.destination;try{Ge=this.keySelector(ke)}catch(Vt){return void it.error(Vt)}this._finalizeNext(Ge,ke)}},{key:"_finalizeNext",value:function(ke,Ge){var it=this.values;it.has(ke)||(it.add(ke),this.destination.next(Ge))}}]),_e}(D.Ds),pe=m(5778);function Ne(Ie,Ue){return(0,pe.x)(function(_e,Ee){return Ue?Ue(_e[Ie],Ee[Ie]):_e[Ie]===Ee[Ie]})}var lt=m(4231),ct=m(9664),Bt=m(4907),jt=m(2986);function on(Ie,Ue){if(Ie<0)throw new lt.W;var _e=arguments.length>=2;return function(Ee){return Ee.pipe((0,ct.h)(function(ke,Ge){return Ge===Ie}),(0,jt.q)(1),_e?(0,ge.d)(Ue):(0,Bt.T)(function(){return new lt.W}))}}var vn=m(1086);function ln(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(Ee){return(0,_t.z)(Ee,vn.of.apply(void 0,Ue))}}function En(Ie,Ue){return function(_e){return _e.lift(new hn(Ie,Ue,_e))}}var hn=function(){function Ie(Ue,_e,Ee){(0,P.Z)(this,Ie),this.predicate=Ue,this.thisArg=_e,this.source=Ee}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new mn(_e,this.predicate,this.thisArg,this.source))}}]),Ie}(),mn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it){var Vt;return(0,P.Z)(this,_e),(Vt=Ue.call(this,Ee)).predicate=ke,Vt.thisArg=Ge,Vt.source=it,Vt.index=0,Vt.thisArg=Ge||(0,A.Z)(Vt),Vt}return(0,x.Z)(_e,[{key:"notifyComplete",value:function(ke){this.destination.next(ke),this.destination.complete()}},{key:"_next",value:function(ke){var Ge=!1;try{Ge=this.predicate.call(this.thisArg,ke,this.index++,this.source)}catch(it){return void this.destination.error(it)}Ge||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(O.L);function At(){return function(Ie){return Ie.lift(new xt)}}var xt=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new et(_e))}}]),Ie}(),et=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee){var ke;return(0,P.Z)(this,_e),(ke=Ue.call(this,Ee)).hasCompleted=!1,ke.hasSubscription=!1,ke}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.hasSubscription||(this.hasSubscription=!0,this.add((0,D.ft)(ke,new D.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(D.Ds),St=m(4850);function ze(Ie,Ue){return Ue?function(_e){return _e.pipe(ze(function(Ee,ke){return(0,pn.D)(Ie(Ee,ke)).pipe((0,St.U)(function(Ge,it){return Ue(Ee,Ge,ke,it)}))}))}:function(_e){return _e.lift(new Ke(Ie))}}var Ke=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.project=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Re(_e,this.project))}}]),Ie}(),Re=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).project=ke,Ge.hasSubscription=!1,Ge.hasCompleted=!1,Ge.index=0,Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.hasSubscription||this.tryNext(ke)}},{key:"tryNext",value:function(ke){var Ge,it=this.index++;try{Ge=this.project(ke,it)}catch(Vt){return void this.destination.error(Vt)}this.hasSubscription=!0,this._innerSub(Ge)}},{key:"_innerSub",value:function(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Vt=(0,D.ft)(ke,Ge);Vt!==Ge&&it.add(Vt)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(ke){this.destination.next(ke)}},{key:"notifyError",value:function(ke){this.destination.error(ke)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(D.Ds);function qe(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,_e=arguments.length>2?arguments[2]:void 0;return Ue=(Ue||0)<1?Number.POSITIVE_INFINITY:Ue,function(Ee){return Ee.lift(new vt(Ie,Ue,_e))}}var vt=function(){function Ie(Ue,_e,Ee){(0,P.Z)(this,Ie),this.project=Ue,this.concurrent=_e,this.scheduler=Ee}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new dn(_e,this.project,this.concurrent,this.scheduler))}}]),Ie}(),dn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it){var Vt;return(0,P.Z)(this,_e),(Vt=Ue.call(this,Ee)).project=ke,Vt.concurrent=Ge,Vt.scheduler=it,Vt.index=0,Vt.active=0,Vt.hasCompleted=!1,Ge<Number.POSITIVE_INFINITY&&(Vt.buffer=[]),Vt}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.destination;if(Ge.closed)this._complete();else{var it=this.index++;if(this.active<this.concurrent){Ge.next(ke);try{var Cn=(0,this.project)(ke,it);if(this.scheduler){var gr={subscriber:this,result:Cn,value:ke,index:it};this.destination.add(this.scheduler.schedule(_e.dispatch,0,gr))}else this.subscribeToProjection(Cn,ke,it)}catch(ms){Ge.error(ms)}}else this.buffer.push(ke)}}},{key:"subscribeToProjection",value:function(ke,Ge,it){this.active++,this.destination.add((0,D.ft)(ke,new D.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(ke){this._next(ke)}},{key:"notifyComplete",value:function(){var ke=this.buffer;this.active--,ke&&ke.length>0&&this._next(ke.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(ke){var Ge=ke.subscriber,it=ke.result,Vt=ke.value,Cn=ke.index;Ge.subscribeToProjection(it,Vt,Cn)}}]),_e}(D.Ds),Hn=m(537);function Yt(Ie,Ue){if("function"!=typeof Ie)throw new TypeError("predicate is not a function");return function(_e){return _e.lift(new kt(Ie,_e,!1,Ue))}}var kt=function(){function Ie(Ue,_e,Ee,ke){(0,P.Z)(this,Ie),this.predicate=Ue,this.source=_e,this.yieldIndex=Ee,this.thisArg=ke}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new $e(_e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ie}(),$e=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it,Vt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,Ee)).predicate=ke,Cn.source=Ge,Cn.yieldIndex=it,Cn.thisArg=Vt,Cn.index=0,Cn}return(0,x.Z)(_e,[{key:"notifyComplete",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete(),this.unsubscribe()}},{key:"_next",value:function(ke){var Ge=this.predicate,it=this.thisArg,Vt=this.index++;try{Ge.call(it||this,ke,Vt,this.source)&&this.notifyComplete(this.yieldIndex?Vt:ke)}catch(gr){this.destination.error(gr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),_e}(O.L);function gt(Ie,Ue){return function(_e){return _e.lift(new kt(Ie,_e,!0,Ue))}}var yt=m(7224),nn=m(4002);function Gn(){return function(Ue){return Ue.lift(new Vn)}}var Vn=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Wn(_e))}}]),Ie}(),Wn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){return(0,P.Z)(this,_e),Ue.apply(this,arguments)}return(0,x.Z)(_e,[{key:"_next",value:function(ke){}}]),_e}(O.L);function ar(){return function(Ie){return Ie.lift(new Or)}}var Or=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new hi(_e))}}]),Ie}(),hi=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee){return(0,P.Z)(this,_e),Ue.call(this,Ee)}return(0,x.Z)(_e,[{key:"notifyComplete",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete()}},{key:"_next",value:function(ke){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(O.L),Gi=m(8127),Pa=m(7604),Ra=m(9312);function ua(){return function(Ue){return Ue.lift(new ss)}}var ss=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new ta(_e))}}]),Ie}(),ta=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee){return(0,P.Z)(this,_e),Ue.call(this,Ee)}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.destination.next(Ra.P.createNext(ke))}},{key:"_error",value:function(ke){var Ge=this.destination;Ge.next(Ra.P.createError(ke)),Ge.complete()}},{key:"_complete",value:function(){var ke=this.destination;ke.next(Ra.P.createComplete()),ke.complete()}}]),_e}(O.L),ri=m(2014),Ys=m(2821),zi=m(4843);function Yn(Ie,Ue){return arguments.length>=2?function(Ee){return(0,zi.z)((0,ri.R)(Ie,Ue),(0,Ys.h)(1),(0,ge.d)(Ue))(Ee)}:function(Ee){return(0,zi.z)((0,ri.R)(function(ke,Ge,it){return Ie(ke,Ge,it+1)}),(0,Ys.h)(1))(Ee)}}function br(Ie){return Yn("function"==typeof Ie?function(_e,Ee){return Ie(_e,Ee)>0?_e:Ee}:function(_e,Ee){return _e>Ee?_e:Ee})}var jr=m(6787);function Ni(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(Ee){return Ee.lift.call(jr.T.apply(void 0,[Ee].concat(Ue)))}}var Ms=m(9146),ki=m(1709);function Ko(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ue?(0,ki.zg)(function(){return Ie},Ue,_e):("number"==typeof Ue&&(_e=Ue),(0,ki.zg)(function(){return Ie},_e))}function qr(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ee){return Ee.lift(new Bi(Ie,Ue,_e))}}var Bi=function(){function Ie(Ue,_e,Ee){(0,P.Z)(this,Ie),this.accumulator=Ue,this.seed=_e,this.concurrent=Ee}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new ba(_e,this.accumulator,this.seed,this.concurrent))}}]),Ie}(),ba=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it){var Vt;return(0,P.Z)(this,_e),(Vt=Ue.call(this,Ee)).accumulator=ke,Vt.acc=Ge,Vt.concurrent=it,Vt.hasValue=!1,Vt.hasCompleted=!1,Vt.buffer=[],Vt.active=0,Vt.index=0,Vt}return(0,x.Z)(_e,[{key:"_next",value:function(ke){if(this.active<this.concurrent){var Vt,Ge=this.index++,it=this.destination;try{Vt=(0,this.accumulator)(this.acc,ke,Ge)}catch(gr){return it.error(gr)}this.active++,this._innerSub(Vt)}else this.buffer.push(ke)}},{key:"_innerSub",value:function(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Vt=(0,D.ft)(ke,Ge);Vt!==Ge&&it.add(Vt)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(ke){var Ge=this.destination;this.acc=ke,this.hasValue=!0,Ge.next(ke)}},{key:"notifyComplete",value:function(){var ke=this.buffer;this.active--,ke.length>0?this._next(ke.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),_e}(D.Ds);function Ar(Ie){return Yn("function"==typeof Ie?function(_e,Ee){return Ie(_e,Ee)<0?_e:Ee}:function(_e,Ee){return _e<Ee?_e:Ee})}var Fi=m(2536),Uo=m(7770);function Ca(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return 1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0]),function(Ee){return Ee.lift(new co(Ue))}}var co=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.nextSources=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new na(_e,this.nextSources))}}]),Ie}(),na=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).destination=Ee,Ge.nextSources=ke,Ge}return(0,x.Z)(_e,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(ke){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var ke=this.nextSources.shift();if(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Vt=(0,D.ft)(ke,Ge);Vt!==Ge&&it.add(Vt)}else this.destination.complete()}}]),_e}(D.Ds),ls=m(519),Ai=m(5884);function po(Ie,Ue){return function(_e){return[(0,ct.h)(Ie,Ue)(_e),(0,ct.h)((0,Ai.f)(Ie,Ue))(_e)]}}function La(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];var Ee=Ue.length;if(0===Ee)throw new Error("list of properties cannot be empty.");return function(ke){return(0,St.U)(Ti(Ue,Ee))(ke)}}function Ti(Ie,Ue){return function(ke){for(var Ge=ke,it=0;it<Ue;it++){var Vt=null!=Ge?Ge[Ie[it]]:void 0;if(void 0===Vt)return;Ge=Vt}return Ge}}var qo=m(8929);function gu(Ie){return Ie?(0,Fi.O)(function(){return new qo.xQ},Ie):(0,Fi.O)(new qo.xQ)}var Wi=m(591);function Ui(Ie){return function(Ue){return(0,Fi.O)(new Wi.X(Ie))(Ue)}}var Ss=m(2185);function qi(){return function(Ie){return(0,Fi.O)(new Ss.c)(Ie)}}var tn=m(839);function Jt(Ie,Ue,_e,Ee){_e&&"function"!=typeof _e&&(Ee=_e);var ke="function"==typeof _e?_e:void 0,Ge=new tn.t(Ie,Ue,Ee);return function(it){return(0,Fi.O)(function(){return Ge},ke)(it)}}var Jr=m(1946);function Mi(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(ke){return 1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0]),ke.lift.call(Jr.S3.apply(void 0,[ke].concat((0,$t.Z)(Ue))))}}var Jo=m(8896);function Ho(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ue){return 0===Ie?(0,Jo.c)():Ie<0?Ue.lift(new bi(-1,Ue)):Ue.lift(new bi(Ie-1,Ue))}}var bi=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.count=Ue,this.source=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Ln(_e,this.count,this.source))}}]),Ie}(),Ln=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).count=ke,it.source=Ge,it}return(0,x.Z)(_e,[{key:"complete",value:function(){if(!this.isStopped){var ke=this.source,Ge=this.count;if(0===Ge)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this);Ge>-1&&(this.count=Ge-1),ke.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function vo(Ie){return function(Ue){return Ue.lift(new Ul(Ie))}}var Ul=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Nn(_e,this.notifier,Ee))}}]),Ie}(),Nn=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).notifier=ke,it.source=Ge,it.sourceIsBeingSubscribedTo=!0,it}return(0,x.Z)(_e,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var ke=this.notifications,Ge=this.retriesSubscription;ke&&(ke.unsubscribe(),this.notifications=void 0),Ge&&(Ge.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var ke=this._unsubscribe;return this._unsubscribe=null,(0,k.Z)((0,b.Z)(_e.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=ke,this}},{key:"subscribeToRetries",value:function(){var ke;this.notifications=new qo.xQ;try{ke=(0,this.notifier)(this.notifications)}catch(it){return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this)}this.retries=ke,this.retriesSubscription=(0,D.ft)(ke,new D.IY(this))}}]),_e}(D.Ds);function xn(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ue){return Ue.lift(new fn(Ie,Ue))}}var fn=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.count=Ue,this.source=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new mi(_e,this.count,this.source))}}]),Ie}(),mi=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).count=ke,it.source=Ge,it}return(0,x.Z)(_e,[{key:"error",value:function(ke){if(!this.isStopped){var Ge=this.source,it=this.count;if(0===it)return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,ke);it>-1&&(this.count=it-1),Ge.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function Ji(Ie){return function(Ue){return Ue.lift(new jo(Ie,Ue))}}var jo=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.notifier=Ue,this.source=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Qi(_e,this.notifier,this.source))}}]),Ie}(),Qi=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).notifier=ke,it.source=Ge,it}return(0,x.Z)(_e,[{key:"error",value:function(ke){if(!this.isStopped){var Ge=this.errors,it=this.retries,Vt=this.retriesSubscription;if(it)this.errors=void 0,this.retriesSubscription=void 0;else{Ge=new qo.xQ;try{it=(0,this.notifier)(Ge)}catch(gr){return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,gr)}Vt=(0,D.ft)(it,new D.IY(this))}this._unsubscribeAndRecycle(),this.errors=Ge,this.retries=it,this.retriesSubscription=Vt,Ge.next(ke)}}},{key:"_unsubscribe",value:function(){var ke=this.errors,Ge=this.retriesSubscription;ke&&(ke.unsubscribe(),this.errors=void 0),Ge&&(Ge.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var ke=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=ke,this.source.subscribe(this)}}]),_e}(D.Ds),Vi=m(4327);function ti(Ie){return function(Ue){return Ue.lift(new _i(Ie))}}var _i=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){var ke=new ir(_e),Ge=Ee.subscribe(ke);return Ge.add((0,D.ft)(this.notifier,new D.IY(ke))),Ge}}]),Ie}(),ir=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){var Ee;return(0,P.Z)(this,_e),(Ee=Ue.apply(this,arguments)).hasValue=!1,Ee}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.value=ke,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),_e}(D.Ds);function Do(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.P;return function(_e){return _e.lift(new Xi(Ie,Ue))}}var Xi=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.period=Ue,this.scheduler=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new wa(_e,this.period,this.scheduler))}}]),Ie}(),wa=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).period=ke,it.scheduler=Ge,it.hasValue=!1,it.add(Ge.schedule(Za,ke,{subscriber:(0,A.Z)(it),period:ke})),it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.lastValue=ke,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),_e}(O.L);function Za(Ie){var Ue=Ie.subscriber,_e=Ie.period;Ue.notifyNext(),this.schedule(Ie,_e)}function oo(Ie,Ue){return function(_e){return _e.lift(new Qo(Ie,Ue))}}var Qo=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.compareTo=Ue,this.comparator=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new ra(_e,this.compareTo,this.comparator))}}]),Ie}(),ra=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).compareTo=ke,it.comparator=Ge,it._a=[],it._b=[],it._oneComplete=!1,it.destination.add(ke.subscribe(new fl(Ee,(0,A.Z)(it)))),it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(ke),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var ke=this._a,Ge=this._b,it=this.comparator;ke.length>0&&Ge.length>0;){var Vt=ke.shift(),Cn=Ge.shift(),gr=!1;try{gr=it?it(Vt,Cn):Vt===Cn}catch(Rr){this.destination.error(Rr)}gr||this.emit(!1)}}},{key:"emit",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete()}},{key:"nextB",value:function(ke){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(ke),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),_e}(O.L),fl=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).parent=ke,Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.parent.nextB(ke)}},{key:"_error",value:function(ke){this.parent.error(ke),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),_e}(O.L),Na=m(8117),ao=m(5154),qa=m(4450);function ka(Ie){return function(Ue){return Ue.lift(new vu(Ie,Ue))}}var vu=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.predicate=Ue,this.source=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new vd(_e,this.predicate,this.source))}}]),Ie}(),vd=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).predicate=ke,it.source=Ge,it.seenValue=!1,it.index=0,it}return(0,x.Z)(_e,[{key:"applySingleValue",value:function(ke){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=ke)}},{key:"_next",value:function(ke){var Ge=this.index++;this.predicate?this.tryNext(ke,Ge):this.applySingleValue(ke)}},{key:"tryNext",value:function(ke,Ge){try{this.predicate(ke,Ge,this.source)&&this.applySingleValue(ke)}catch(it){this.destination.error(it)}}},{key:"_complete",value:function(){var ke=this.destination;this.index>0?(ke.next(this.seenValue?this.singleValue:void 0),ke.complete()):ke.error(new qa.K)}}]),_e}(O.L),Hi=m(1307);function Yi(Ie){return function(Ue){return Ue.lift(new xc(Ie))}}var xc=function(){function Ie(Ue){if((0,P.Z)(this,Ie),this._skipCount=Ue,this._skipCount<0)throw new lt.W}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return 0===this._skipCount?Ee.subscribe(new O.L(_e)):Ee.subscribe(new hl(_e,this._skipCount))}}]),Ie}(),hl=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee))._skipCount=ke,Ge._count=0,Ge._ring=new Array(ke),Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this._skipCount,it=this._count++;if(it<Ge)this._ring[it]=ke;else{var Vt=it%Ge,Cn=this._ring,gr=Cn[Vt];Cn[Vt]=ke,this.destination.next(gr)}}}]),_e}(O.L);function kp(Ie){return function(Ue){return Ue.lift(new us(Ie))}}var us=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Tp(_e,this.notifier))}}]),Ie}(),Tp=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).hasValue=!1;var it=new D.IY((0,A.Z)(Ge));Ge.add(it),Ge.innerSubscription=it;var Vt=(0,D.ft)(ke,it);return Vt!==it&&(Ge.add(Vt),Ge.innerSubscription=Vt),Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.hasValue&&(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),_e}(D.Ds);function so(Ie){return function(Ue){return Ue.lift(new xs(Ie))}}var xs=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.predicate=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Hl(_e,this.predicate))}}]),Ie}(),Hl=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).predicate=ke,Ge.skipping=!0,Ge.index=0,Ge}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.destination;this.skipping&&this.tryCallPredicate(ke),this.skipping||Ge.next(ke)}},{key:"tryCallPredicate",value:function(ke){try{var Ge=this.predicate(ke,this.index++);this.skipping=Boolean(Ge)}catch(it){this.destination.error(it)}}}]),_e}(O.L),Ec=m(1059),yo=m(3837);function Dc(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ee){return Ee.lift(new Ba(Ie,Ue))}}var Ba=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.scheduler=Ue,this.delay=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return new yo.e(Ee,this.delay,this.scheduler).subscribe(_e)}}]),Ie}(),cs=m(7545),fo=m(5379);function Mp(){return(0,cs.w)(fo.y)}function Ks(Ie,Ue){return Ue?(0,cs.w)(function(){return Ie},Ue):(0,cs.w)(function(){return Ie})}var Ku=m(7625),jl=m(4290),nh=m(2994),ds=m(2444);function Mr(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.P,_e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ds.d;return function(Ee){return Ee.lift(new Es(Ie,Ue,_e.leading,_e.trailing))}}var Es=function(){function Ie(Ue,_e,Ee,ke){(0,P.Z)(this,Ie),this.duration=Ue,this.scheduler=_e,this.leading=Ee,this.trailing=ke}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Qm(_e,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ie}(),Qm=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it,Vt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,Ee)).duration=ke,Cn.scheduler=Ge,Cn.leading=it,Cn.trailing=Vt,Cn._hasTrailingValue=!1,Cn._trailingValue=null,Cn}return(0,x.Z)(_e,[{key:"_next",value:function(ke){this.throttled?this.trailing&&(this._trailingValue=ke,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(rh,this.duration,{subscriber:this})),this.leading?this.destination.next(ke):this.trailing&&(this._trailingValue=ke,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var ke=this.throttled;ke&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),ke.unsubscribe(),this.remove(ke),this.throttled=null)}}]),_e}(O.L);function rh(Ie){Ie.subscriber.clearThrottle()}var ih=m(3485),Sp=m(854),Ds=m(2697);function qu(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.P;return function(Ee){var ke=(0,Ds.J)(Ie),Ge=ke?+Ie-_e.now():Math.abs(Ie);return Ee.lift(new Gl(Ge,ke,Ue,_e))}}var Gl=function(){function Ie(Ue,_e,Ee,ke){(0,P.Z)(this,Ie),this.waitFor=Ue,this.absoluteTimeout=_e,this.withObservable=Ee,this.scheduler=ke}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new An(_e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ie}(),An=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it,Vt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,Ee)).absoluteTimeout=ke,Cn.waitFor=Ge,Cn.withObservable=it,Cn.scheduler=Vt,Cn.scheduleTimeout(),Cn}return(0,x.Z)(_e,[{key:"scheduleTimeout",value:function(){var ke=this.action;ke?this.action=ke.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(_e.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(ke){this.absoluteTimeout||this.scheduleTimeout(),(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(ke){var Ge=ke.withObservable;ke._unsubscribeAndRecycle(),ke.add((0,D.ft)(Ge,new D.IY(ke)))}}]),_e}(D.Ds),we=m(1737);function Te(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.P;return qu(Ie,(0,we._)(new Sp.W),Ue)}var se=m(7781);function Me(Ie,Ue,_e){return 0===_e?[Ue]:(Ie.push(Ue),Ie)}function Oe(){return Yn(Me,[])}function mt(Ie){return function(_e){return _e.lift(new Ht(Ie))}}var Ht=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.windowBoundaries=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){var ke=new On(_e),Ge=Ee.subscribe(ke);return Ge.closed||ke.add((0,D.ft)(this.windowBoundaries,new D.IY(ke))),Ge}}]),Ie}(),On=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee){var ke;return(0,P.Z)(this,_e),(ke=Ue.call(this,Ee)).window=new qo.xQ,Ee.next(ke.window),ke}return(0,x.Z)(_e,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(ke){this.window.next(ke)}},{key:"_error",value:function(ke){this.window.error(ke),this.destination.error(ke)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var ke=this.window;ke&&ke.complete();var Ge=this.destination,it=this.window=new qo.xQ;Ge.next(it)}}]),_e}(D.Ds);function sr(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ee){return Ee.lift(new ml(Ie,Ue))}}var ml=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.windowSize=Ue,this.startWindowEvery=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new lo(_e,this.windowSize,this.startWindowEvery))}}]),Ie}(),lo=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).destination=Ee,it.windowSize=ke,it.startWindowEvery=Ge,it.windows=[new qo.xQ],it.count=0,Ee.next(it.windows[0]),it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,it=this.destination,Vt=this.windowSize,Cn=this.windows,gr=Cn.length,Rr=0;Rr<gr&&!this.closed;Rr++)Cn[Rr].next(ke);var ms=this.count-Vt+1;if(ms>=0&&ms%Ge==0&&!this.closed&&Cn.shift().complete(),++this.count%Ge==0&&!this.closed){var vl=new qo.xQ;Cn.push(vl),it.next(vl)}}},{key:"_error",value:function(ke){var Ge=this.windows;if(Ge)for(;Ge.length>0&&!this.closed;)Ge.shift().error(ke);this.destination.error(ke)}},{key:"_complete",value:function(){var ke=this.windows;if(ke)for(;ke.length>0&&!this.closed;)ke.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),_e}(O.L),yd=m(4241);function zl(Ie){var Ue=E.P,_e=null,Ee=Number.POSITIVE_INFINITY;return(0,N.K)(arguments[3])&&(Ue=arguments[3]),(0,N.K)(arguments[2])?Ue=arguments[2]:(0,yd.k)(arguments[2])&&(Ee=Number(arguments[2])),(0,N.K)(arguments[1])?Ue=arguments[1]:(0,yd.k)(arguments[1])&&(_e=Number(arguments[1])),function(Ge){return Ge.lift(new Xo(Ie,_e,Ee,Ue))}}var Xo=function(){function Ie(Ue,_e,Ee,ke){(0,P.Z)(this,Ie),this.windowTimeSpan=Ue,this.windowCreationInterval=_e,this.maxWindowSize=Ee,this.scheduler=ke}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new qs(_e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ie}(),Ta=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){var Ee;return(0,P.Z)(this,_e),(Ee=Ue.apply(this,arguments))._numberOfNextedValues=0,Ee}return(0,x.Z)(_e,[{key:"next",value:function(ke){this._numberOfNextedValues++,(0,k.Z)((0,b.Z)(_e.prototype),"next",this).call(this,ke)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),_e}(qo.xQ),qs=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge,it,Vt){var Cn;(0,P.Z)(this,_e),(Cn=Ue.call(this,Ee)).destination=Ee,Cn.windowTimeSpan=ke,Cn.windowCreationInterval=Ge,Cn.maxWindowSize=it,Cn.scheduler=Vt,Cn.windows=[];var gr=Cn.openWindow();if(null!==Ge&&Ge>=0){var Rr={subscriber:(0,A.Z)(Cn),window:gr,context:null},ms={windowTimeSpan:ke,windowCreationInterval:Ge,subscriber:(0,A.Z)(Cn),scheduler:Vt};Cn.add(Vt.schedule(Xm,ke,Rr)),Cn.add(Vt.schedule(ps,Ge,ms))}else{var vl={subscriber:(0,A.Z)(Cn),window:gr,windowTimeSpan:ke};Cn.add(Vt.schedule(_l,ke,vl))}return Cn}return(0,x.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.windows,it=Ge.length,Vt=0;Vt<it;Vt++){var Cn=Ge[Vt];Cn.closed||(Cn.next(ke),Cn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Cn))}}},{key:"_error",value:function(ke){for(var Ge=this.windows;Ge.length>0;)Ge.shift().error(ke);this.destination.error(ke)}},{key:"_complete",value:function(){for(var ke=this.windows;ke.length>0;){var Ge=ke.shift();Ge.closed||Ge.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var ke=new Ta;return this.windows.push(ke),this.destination.next(ke),ke}},{key:"closeWindow",value:function(ke){ke.complete();var Ge=this.windows;Ge.splice(Ge.indexOf(ke),1)}}]),_e}(O.L);function _l(Ie){var Ue=Ie.subscriber,_e=Ie.windowTimeSpan,Ee=Ie.window;Ee&&Ue.closeWindow(Ee),Ie.window=Ue.openWindow(),this.schedule(Ie,_e)}function ps(Ie){var Ue=Ie.windowTimeSpan,_e=Ie.subscriber,Ee=Ie.scheduler,ke=Ie.windowCreationInterval,Ge=_e.openWindow(),Vt={action:this,subscription:null},Cn={subscriber:_e,window:Ge,context:Vt};Vt.subscription=Ee.schedule(Xm,Ue,Cn),this.add(Vt.subscription),this.schedule(Ie,ke)}function Xm(Ie){var Ue=Ie.subscriber,_e=Ie.window,Ee=Ie.context;Ee&&Ee.action&&Ee.subscription&&Ee.action.remove(Ee.subscription),Ue.closeWindow(_e)}function oh(Ie,Ue){return function(_e){return _e.lift(new $m(Ie,Ue))}}var $m=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.openings=Ue,this.closingSelector=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new bd(_e,this.openings,this.closingSelector))}}]),Ie}(),bd=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).openings=ke,it.closingSelector=Ge,it.contexts=[],it.add(it.openSubscription=(0,de.D)((0,A.Z)(it),ke,ke)),it}return(0,x.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.contexts;if(Ge)for(var it=Ge.length,Vt=0;Vt<it;Vt++)Ge[Vt].window.next(ke)}},{key:"_error",value:function(ke){var Ge=this.contexts;if(this.contexts=null,Ge)for(var it=Ge.length,Vt=-1;++Vt<it;){var Cn=Ge[Vt];Cn.window.error(ke),Cn.subscription.unsubscribe()}(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){var ke=this.contexts;if(this.contexts=null,ke)for(var Ge=ke.length,it=-1;++it<Ge;){var Vt=ke[it];Vt.window.complete(),Vt.subscription.unsubscribe()}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var ke=this.contexts;if(this.contexts=null,ke)for(var Ge=ke.length,it=-1;++it<Ge;){var Vt=ke[it];Vt.window.unsubscribe(),Vt.subscription.unsubscribe()}}},{key:"notifyNext",value:function(ke,Ge,it,Vt,Cn){if(ke===this.openings){var gr;try{gr=(0,this.closingSelector)(Ge)}catch(xp){return this.error(xp)}var ms=new qo.xQ,vl=new fe.w,Pr={window:ms,subscription:vl};this.contexts.push(Pr);var Ac=(0,de.D)(this,gr,Pr);Ac.closed?this.closeWindow(this.contexts.length-1):(Ac.context=Pr,vl.add(Ac)),this.destination.next(ms)}else this.closeWindow(this.contexts.indexOf(ke))}},{key:"notifyError",value:function(ke){this.error(ke)}},{key:"notifyComplete",value:function(ke){ke!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(ke.context))}},{key:"closeWindow",value:function(ke){if(-1!==ke){var Ge=this.contexts,it=Ge[ke],Vt=it.window,Cn=it.subscription;Ge.splice(ke,1),Vt.complete(),Cn.unsubscribe()}}}]),_e}(le.L);function Ju(Ie){return function(_e){return _e.lift(new fs(Ie))}}var fs=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingSelector=Ue}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new gl(_e,this.closingSelector))}}]),Ie}(),gl=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,Ee)).destination=Ee,Ge.closingSelector=ke,Ge.openWindow(),Ge}return(0,x.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it,Vt,Cn){this.openWindow(Cn)}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"notifyComplete",value:function(ke){this.openWindow(ke)}},{key:"_next",value:function(ke){this.window.next(ke)}},{key:"_error",value:function(ke){this.window.error(ke),this.destination.error(ke),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ke&&(this.remove(ke),ke.unsubscribe());var Ge=this.window;Ge&&Ge.complete();var Vt,it=this.window=new qo.xQ;this.destination.next(it);try{var Cn=this.closingSelector;Vt=Cn()}catch(gr){return this.destination.error(gr),void this.window.error(gr)}this.add(this.closingNotification=(0,de.D)(this,Vt))}}]),_e}(le.L);function hs(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(Ee){var ke;"function"==typeof Ue[Ue.length-1]&&(ke=Ue.pop());var Ge=Ue;return Ee.lift(new Sv(Ge,ke))}}var Sv=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.observables=Ue,this.project=_e}return(0,x.Z)(Ie,[{key:"call",value:function(_e,Ee){return Ee.subscribe(new Cd(_e,this.observables,this.project))}}]),Ie}(),Cd=function(Ie){(0,H.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(Ee,ke,Ge){var it;(0,P.Z)(this,_e),(it=Ue.call(this,Ee)).observables=ke,it.project=Ge,it.toRespond=[];var Vt=ke.length;it.values=new Array(Vt);for(var Cn=0;Cn<Vt;Cn++)it.toRespond.push(Cn);for(var gr=0;gr<Vt;gr++){var Rr=ke[gr];it.add((0,de.D)((0,A.Z)(it),Rr,void 0,gr))}return it}return(0,x.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it){this.values[it]=Ge;var Vt=this.toRespond;if(Vt.length>0){var Cn=Vt.indexOf(it);-1!==Cn&&Vt.splice(Cn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(ke){if(0===this.toRespond.length){var Ge=[ke].concat((0,$t.Z)(this.values));this.project?this._tryProject(Ge):this.destination.next(Ge)}}},{key:"_tryProject",value:function(ke){var Ge;try{Ge=this.project.apply(this,ke)}catch(it){return void this.destination.error(it)}this.destination.next(Ge)}}]),_e}(le.L),Js=m(1746);function ia(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(ke){return ke.lift.call(Js.$R.apply(void 0,[ke].concat(Ue)))}}function ah(Ie){return function(Ue){return Ue.lift(new Js.mx(Ie))}}},9594:function(Ae,K,m){"use strict";m.r(K),m.d(K,{TestScheduler:function(){return E}});var G=m(5671),W=m(3144),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(7451),D=m(9312),j=m(4096),L=(0,W.Z)(function N(F){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,G.Z)(this,N),this.subscribedFrame=F,this.unsubscribedFrame=X}),v=function(){function N(){(0,G.Z)(this,N),this.subscriptions=[]}return(0,W.Z)(N,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new L(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(X){var $=this.subscriptions,Y=$[X];$[X]=new L(Y.subscribedFrame,this.scheduler.now())}}]),N}(),k=m(5128),b=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($,Y){var Q;return(0,G.Z)(this,X),(Q=F.call(this,function(ne){var be=this,fe=be.logSubscribedFrame(),de=new j.w;return de.add(new j.w(function(){be.logUnsubscribedFrame(fe)})),be.scheduleMessages(ne),de})).messages=$,Q.subscriptions=[],Q.scheduler=Y,Q}return(0,W.Z)(X,[{key:"scheduleMessages",value:function(Y){for(var Q=this.messages.length,ne=0;ne<Q;ne++){var be=this.messages[ne];Y.add(this.scheduler.schedule(function(fe){var de=fe.message,le=fe.subscriber;de.notification.observe(le)},be.frame,{message:be,subscriber:Y}))}}}]),X}(x.y);(0,k.e)(b,[v]);var S=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($,Y){var Q;return(0,G.Z)(this,X),(Q=F.call(this)).messages=$,Q.subscriptions=[],Q.scheduler=Y,Q}return(0,W.Z)(X,[{key:"_subscribe",value:function(Y){var Q=this,ne=Q.logSubscribedFrame(),be=new j.w;return be.add(new j.w(function(){Q.logUnsubscribedFrame(ne)})),be.add((0,A.Z)((0,H.Z)(X.prototype),"_subscribe",this).call(this,Y)),be}},{key:"setup",value:function(){for(var Y=this,Q=Y.messages.length,ne=0;ne<Q;ne++)!function(){var be=Y.messages[ne];Y.scheduler.schedule(function(){be.notification.observe(Y)},be.frame)}()}}]),X}(m(8929).xQ);(0,k.e)(S,[v]);var y=m(9027),T=m(198),E=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($){var Y;return(0,G.Z)(this,X),(Y=F.call(this,y.h,750)).assertDeepEqual=$,Y.hotObservables=[],Y.coldObservables=[],Y.flushTests=[],Y.runMode=!1,Y}return(0,W.Z)(X,[{key:"createTime",value:function(Y){var Q=Y.indexOf("|");if(-1===Q)throw new Error('marble diagram for time should have a completion marker "|"');return Q*X.frameTimeFactor}},{key:"createColdObservable",value:function(Y,Q,ne){if(-1!==Y.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==Y.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var be=X.parseMarbles(Y,Q,ne,void 0,this.runMode),fe=new b(be,this);return this.coldObservables.push(fe),fe}},{key:"createHotObservable",value:function(Y,Q,ne){if(-1!==Y.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var be=X.parseMarbles(Y,Q,ne,void 0,this.runMode),fe=new S(be,this);return this.hotObservables.push(fe),fe}},{key:"materializeInnerObservable",value:function(Y,Q){var ne=this,be=[];return Y.subscribe(function(fe){be.push({frame:ne.frame-Q,notification:D.P.createNext(fe)})},function(fe){be.push({frame:ne.frame-Q,notification:D.P.createError(fe)})},function(){be.push({frame:ne.frame-Q,notification:D.P.createComplete()})}),be}},{key:"expectObservable",value:function(Y){var me,Q=this,ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,be=[],fe={actual:be,ready:!1},de=X.parseMarblesAsSubscriptions(ne,this.runMode),le=de.subscribedFrame===Number.POSITIVE_INFINITY?0:de.subscribedFrame,ce=de.unsubscribedFrame;this.schedule(function(){me=Y.subscribe(function(st){var Mt=st;st instanceof x.y&&(Mt=Q.materializeInnerObservable(Mt,Q.frame)),be.push({frame:Q.frame,notification:D.P.createNext(Mt)})},function(st){be.push({frame:Q.frame,notification:D.P.createError(st)})},function(){be.push({frame:Q.frame,notification:D.P.createComplete()})})},le),ce!==Number.POSITIVE_INFINITY&&this.schedule(function(){return me.unsubscribe()},ce),this.flushTests.push(fe);var je=this.runMode;return{toBe:function(Mt,Tt,Et){fe.ready=!0,fe.expected=X.parseMarbles(Mt,Tt,Et,!0,je)}}}},{key:"expectSubscriptions",value:function(Y){var Q={actual:Y,ready:!1};this.flushTests.push(Q);var ne=this.runMode;return{toBe:function(fe){var de="string"==typeof fe?[fe]:fe;Q.ready=!0,Q.expected=de.map(function(le){return X.parseMarblesAsSubscriptions(le,ne)})}}}},{key:"flush",value:function(){for(var Y=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,A.Z)((0,H.Z)(X.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ne){return!ne.ready||(Y.assertDeepEqual(ne.actual,ne.expected),!1)})}},{key:"run",value:function(Y){var Q=X.frameTimeFactor,ne=this.maxFrames;X.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,T.v.delegate=this;var be={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var fe=Y(be);return this.flush(),fe}finally{X.frameTimeFactor=Q,this.maxFrames=ne,this.runMode=!1,T.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(Y){var Q=this,ne=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof Y)return new L(Number.POSITIVE_INFINITY);for(var be=Y.length,fe=-1,de=Number.POSITIVE_INFINITY,le=Number.POSITIVE_INFINITY,ce=0,me=function(Mt){var Tt=ce,Et=function(_t){Tt+=_t*Q.frameTimeFactor},Lt=Y[Mt];switch(Lt){case" ":ne||Et(1);break;case"-":Et(1);break;case"(":fe=ce,Et(1);break;case")":fe=-1,Et(1);break;case"^":if(de!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");de=fe>-1?fe:ce,Et(1);break;case"!":if(le!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");le=fe>-1?fe:ce;break;default:if(ne&&Lt.match(/^[0-9]$/)&&(0===Mt||" "===Y[Mt-1])){var $t=Y.slice(Mt).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if($t){Mt+=$t[0].length-1;var nt,Ft=parseFloat($t[1]);switch($t[2]){case"ms":nt=Ft;break;case"s":nt=1e3*Ft;break;case"m":nt=1e3*Ft*60}Et(nt/Q.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Lt+"'.")}ce=Tt,je=Mt},je=0;je<be;je++)me(je);return le<0?new L(de):new L(de,le)}},{key:"parseMarbles",value:function(Y,Q,ne){var be=this,fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],de=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==Y.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var le=Y.length,ce=[],me=de?Y.replace(/^[ ]+/,"").indexOf("^"):Y.indexOf("^"),je=-1===me?0:me*-this.frameTimeFactor,st="object"!=typeof Q?function(Lt){return Lt}:function(Lt){return fe&&Q[Lt]instanceof b?Q[Lt].messages:Q[Lt]},Mt=-1,Tt=function(Ze){var pn,$t=je,Ft=function(Ut){$t+=Ut*be.frameTimeFactor},nt=Y[Ze];switch(nt){case" ":de||Ft(1);break;case"-":case"^":Ft(1);break;case"(":Mt=je,Ft(1);break;case")":Mt=-1,Ft(1);break;case"|":pn=D.P.createComplete(),Ft(1);break;case"#":pn=D.P.createError(ne||"error"),Ft(1);break;default:if(de&&nt.match(/^[0-9]$/)&&(0===Ze||" "===Y[Ze-1])){var _t=Y.slice(Ze).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){Ze+=_t[0].length-1;var ut,Ct=parseFloat(_t[1]);switch(_t[2]){case"ms":ut=Ct;break;case"s":ut=1e3*Ct;break;case"m":ut=1e3*Ct*60}Ft(ut/be.frameTimeFactor);break}}pn=D.P.createNext(st(nt)),Ft(1)}pn&&ce.push({frame:Mt>-1?Mt:je,notification:pn}),je=$t,Et=Ze},Et=0;Et<le;Et++)Tt(Et);return ce}}]),X}(y.y)},2301:function(Ae,K,m){"use strict";m.r(K),m.d(K,{WebSocketSubject:function(){return W.p},webSocket:function(){return G.j}});var G=m(7623),W=m(2741)},5561:function(Ae,K,m){"use strict";m(5772)},2033:function(Ae,K){"use strict";var m,G;!function(){var W=K||{};m=[],void 0!==(G=function(){return W}.apply(K,m))&&(Ae.exports=G),W.default=W;var A="http://www.w3.org/2000/xmlns/",R="http://www.w3.org/2000/svg",x=/url\(["']?(.+?)["']?\)/,D={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},j=function(de){return de instanceof HTMLElement||de instanceof SVGElement},L=function(de){if(!j(de))throw new Error("an HTMLElement or SVGElement is required; got "+de)},v=function(de){return new Promise(function(le,ce){j(de)?le(de):ce(new Error("an HTMLElement or SVGElement is required; got "+de))})},b=function(de){var le=Object.keys(D).filter(function(ce){return de.indexOf("."+ce)>0}).map(function(ce){return D[ce]});return le?le[0]:(console.error("Unknown font format for "+de+". Fonts may not be working correctly."),"application/octet-stream")},S=function(de,le,ce){var me=de.viewBox&&de.viewBox.baseVal&&de.viewBox.baseVal[ce]||null!==le.getAttribute(ce)&&!le.getAttribute(ce).match(/%$/)&&parseInt(le.getAttribute(ce))||de.getBoundingClientRect()[ce]||parseInt(le.style[ce])||parseInt(window.getComputedStyle(de).getPropertyValue(ce));return null==me||isNaN(parseFloat(me))?0:me},M=function(de){for(var le=window.atob(de.split(",")[1]),ce=de.split(",")[0].split(":")[1].split(";")[0],me=new ArrayBuffer(le.length),je=new Uint8Array(me),st=0;st<le.length;st++)je[st]=le.charCodeAt(st);return new Blob([me],{type:ce})},F=function(de){return Promise.all(Array.from(de.querySelectorAll("image")).map(function(le){var ce=le.getAttributeNS("http://www.w3.org/1999/xlink","href")||le.getAttribute("href");return ce?(function(de){return de&&0===de.lastIndexOf("http",0)&&-1===de.lastIndexOf(window.location.host)}(ce)&&(ce+=(-1===ce.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(me,je){var st=document.createElement("canvas"),Mt=new Image;Mt.crossOrigin="anonymous",Mt.src=ce,Mt.onerror=function(){return je(new Error("Could not load "+ce))},Mt.onload=function(){st.width=Mt.width,st.height=Mt.height,st.getContext("2d").drawImage(Mt,0,0),le.setAttributeNS("http://www.w3.org/1999/xlink","href",st.toDataURL("image/png")),me(!0)}})):Promise.resolve(null)}))},X={},$=function(de){return Promise.all(de.map(function(le){return new Promise(function(ce,me){if(X[le.url])return ce(X[le.url]);var je=new XMLHttpRequest;je.addEventListener("load",function(){var st=function(de){for(var le="",ce=new Uint8Array(de),me=0;me<ce.byteLength;me++)le+=String.fromCharCode(ce[me]);return window.btoa(le)}(je.response),Mt=le.text.replace(x,'url("data:'+le.format+";base64,"+st+'")')+"\n";X[le.url]=Mt,ce(Mt)}),je.addEventListener("error",function(st){console.warn("Failed to load font from: "+le.url,st),X[le.url]=null,ce(null)}),je.addEventListener("abort",function(st){console.warn("Aborted loading font from: "+le.url,st),ce(null)}),je.open("GET",le.url),je.responseType="arraybuffer",je.send()})})).then(function(le){return le.filter(function(ce){return ce}).join("")})},Y=null,ne=function(de,le){var ce=le||{},me=ce.selectorRemap,je=ce.modifyStyle,st=ce.modifyCss,Mt=ce.fonts,Tt=ce.excludeUnusedCss,Et=st||function(Ft,pn){return(me?me(Ft):Ft)+"{"+(je?je(pn):pn)+"}\n"},Lt=[],Ze=void 0===Mt,$t=Mt||[];return(Y||(Y=Array.from(document.styleSheets).map(function(de){try{return{rules:de.cssRules,href:de.href}}catch(le){return console.warn("Stylesheet could not be loaded: "+de.href,le),{}}}))).forEach(function(Ft){var pn=Ft.rules,nt=Ft.href;!pn||Array.from(pn).forEach(function(Ot){if(void 0!==Ot.style)if(function(de,le){if(le)try{return de.querySelector(le)||de.parentNode&&de.parentNode.querySelector(le)}catch(ce){console.warn('Invalid CSS selector "'+le+'"',ce)}}(de,Ot.selectorText))Lt.push(Et(Ot.selectorText,Ot.style.cssText));else if(Ze&&Ot.cssText.match(/^@font-face/)){var _t=function(de,le){var ce=de.cssText.match(x),me=ce&&ce[1]||"";if(me&&!me.match(/^data:/)&&"about:blank"!==me){var je=me.startsWith("../")?le+"/../"+me:me.startsWith("./")?le+"/."+me:me;return{text:de.cssText,format:b(je),url:je}}}(Ot,nt);_t&&$t.push(_t)}else Tt||Lt.push(Ot.cssText)})}),$($t).then(function(Ft){return Lt.join("\n")+Ft})},be=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};W.prepareSvg=function(fe,de,le){L(fe);var ce=de||{},me=ce.left,je=void 0===me?0:me,st=ce.top,Mt=void 0===st?0:st,Tt=ce.width,Et=ce.height,Lt=ce.scale,Ze=void 0===Lt?1:Lt,$t=ce.responsive,Ft=void 0!==$t&&$t,pn=ce.excludeCss,nt=void 0!==pn&&pn;return F(fe).then(function(){var Ot=fe.cloneNode(!0);Ot.style.backgroundColor=(de||{}).backgroundColor||fe.style.backgroundColor;var _t=function(de,le,ce,me){if("svg"===de.tagName)return{width:ce||S(de,le,"width"),height:me||S(de,le,"height")};if(de.getBBox){var je=de.getBBox(),st=je.x,Mt=je.y;return{width:st+je.width,height:Mt+je.height}}}(fe,Ot,Tt,Et),Ct=_t.width,We=_t.height;if("svg"!==fe.tagName){if(!fe.getBBox)return void console.error("Attempted to render non-SVG element",fe);null!=Ot.getAttribute("transform")&&Ot.setAttribute("transform",Ot.getAttribute("transform").replace(/translate\(.*?\)/,""));var ut=document.createElementNS("http://www.w3.org/2000/svg","svg");ut.appendChild(Ot),Ot=ut}if(Ot.setAttribute("version","1.1"),Ot.setAttribute("viewBox",[je,Mt,Ct,We].join(" ")),Ot.getAttribute("xmlns")||Ot.setAttributeNS(A,"xmlns",R),Ot.getAttribute("xmlns:xlink")||Ot.setAttributeNS(A,"xmlns:xlink","http://www.w3.org/1999/xlink"),Ft?(Ot.removeAttribute("width"),Ot.removeAttribute("height"),Ot.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ot.setAttribute("width",Ct*Ze),Ot.setAttribute("height",We*Ze)),Array.from(Ot.querySelectorAll("foreignObject > *")).forEach(function(B){B.setAttributeNS(A,"xmlns","svg"===B.tagName?R:"http://www.w3.org/1999/xhtml")}),!nt)return ne(fe,de).then(function(B){var U=document.createElement("style");U.setAttribute("type","text/css"),U.innerHTML="<![CDATA[\n"+B+"\n]]>";var tt=document.createElement("defs");tt.appendChild(U),Ot.insertBefore(tt,Ot.firstChild);var Ye=document.createElement("div");Ye.appendChild(Ot);var ge=Ye.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof le)return{src:ge,width:Ct,height:We};le(ge,Ct,We)});var dt=document.createElement("div");dt.appendChild(Ot);var Ut=dt.innerHTML;if("function"!=typeof le)return{src:Ut,width:Ct,height:We};le(Ut,Ct,We)})},W.svgAsDataUri=function(fe,de,le){return L(fe),W.prepareSvg(fe,de).then(function(ce){var me=ce.src,je=ce.width,st=ce.height,Mt="data:image/svg+xml;base64,"+window.btoa(function(de){return decodeURIComponent(encodeURIComponent(de).replace(/%([0-9A-F]{2})/g,function(le,ce){var me=String.fromCharCode("0x"+ce);return"%"===me?"%25":me}))}('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+me));return"function"==typeof le&&le(Mt,je,st),Mt})},W.svgAsPngUri=function(fe,de,le){L(fe);var ce=de||{},me=ce.encoderType,je=void 0===me?"image/png":me,st=ce.encoderOptions,Mt=void 0===st?.8:st,Tt=ce.canvg,Et=function(Ze){var $t=Ze.src,Ft=Ze.width,pn=Ze.height,nt=document.createElement("canvas"),Ot=nt.getContext("2d"),_t=window.devicePixelRatio||1;nt.width=Ft*_t,nt.height=pn*_t,nt.style.width=nt.width+"px",nt.style.height=nt.height+"px",Ot.setTransform(_t,0,0,_t,0,0),Tt?Tt(nt,$t):Ot.drawImage($t,0,0);var Ct=void 0;try{Ct=nt.toDataURL(je,Mt)}catch(We){if("undefined"!=typeof SecurityError&&We instanceof SecurityError||"SecurityError"===We.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw We}return"function"==typeof le&&le(Ct,nt.width,nt.height),Promise.resolve(Ct)};return Tt?W.prepareSvg(fe,de).then(Et):W.svgAsDataUri(fe,de).then(function(Lt){return new Promise(function(Ze,$t){var Ft=new Image;Ft.onload=function(){return Ze(Et({src:Ft,width:Ft.width,height:Ft.height}))},Ft.onerror=function(){$t("There was an error loading the data URI as an image on the following SVG\n"+window.atob(Lt.slice(26))+"Open the following link to see browser's diagnosis\n"+Lt)},Ft.src=Lt})})},W.download=function(fe,de,le){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(M(de),fe);else{var ce=document.createElement("a");if("download"in ce){ce.download=fe,ce.style.display="none",document.body.appendChild(ce);try{var me=M(de),je=URL.createObjectURL(me);ce.href=je,ce.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(je)})}}catch(st){console.error(st),console.warn("Error while getting object URL. Falling back to string URL."),ce.href=de}ce.click(),document.body.removeChild(ce)}else le&&le.popup&&(le.popup.document.title=fe,le.popup.location.replace(de))}},W.saveSvg=function(fe,de,le){var ce=be();return v(fe).then(function(me){return W.svgAsDataUri(me,le||{})}).then(function(me){return W.download(de,me,ce)})},W.saveSvgAsPng=function(fe,de,le){var ce=be();return v(fe).then(function(me){return W.svgAsPngUri(me,le||{})}).then(function(me){return W.download(de,me,ce)})}}()},6842:function(Ae,K,m){var G=m(2472),W=Object.prototype.hasOwnProperty,A="undefined"!=typeof Map;function H(){this._array=[],this._set=A?new Map:Object.create(null)}H.fromArray=function(P,x){for(var D=new H,j=0,L=P.length;j<L;j++)D.add(P[j],x);return D},H.prototype.size=function(){return A?this._set.size:Object.getOwnPropertyNames(this._set).length},H.prototype.add=function(P,x){var D=A?P:G.toSetString(P),j=A?this.has(P):W.call(this._set,D),L=this._array.length;(!j||x)&&this._array.push(P),j||(A?this._set.set(P,L):this._set[D]=L)},H.prototype.has=function(P){if(A)return this._set.has(P);var x=G.toSetString(P);return W.call(this._set,x)},H.prototype.indexOf=function(P){if(A){var x=this._set.get(P);if(x>=0)return x}else{var D=G.toSetString(P);if(W.call(this._set,D))return this._set[D]}throw new Error('"'+P+'" is not in the set.')},H.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw new Error("No element indexed by "+P)},H.prototype.toArray=function(){return this._array.slice()},K.I=H},3357:function(Ae,K,m){var G=m(5773);K.encode=function(j){var v,L="",k=function P(D){return D<0?1+(-D<<1):0+(D<<1)}(j);do{v=31&k,(k>>>=5)>0&&(v|=32),L+=G.encode(v)}while(k>0);return L},K.decode=function(j,L,v){var S,y,k=j.length,b=0,O=0;do{if(L>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(y=G.decode(j.charCodeAt(L++))))throw new Error("Invalid base64 digit: "+j.charAt(L-1));S=!!(32&y),b+=(y&=31)<<O,O+=5}while(S);v.value=function x(D){var L=D>>1;return 1==(1&D)?-L:L}(b),v.rest=L}},5773:function(Ae,K){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");K.encode=function(G){if(0<=G&&G<m.length)return m[G];throw new TypeError("Must be between 0 and 63: "+G)},K.decode=function(G){return 65<=G&&G<=90?G-65:97<=G&&G<=122?G-97+26:48<=G&&G<=57?G-48+52:43==G?62:47==G?63:-1}},1490:function(Ae,K,m){var G=m(2472);function A(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}A.prototype.unsortedForEach=function(R,P){this._array.forEach(R,P)},A.prototype.add=function(R){!function W(H,R){var P=H.generatedLine,x=R.generatedLine,D=H.generatedColumn,j=R.generatedColumn;return x>P||x==P&&j>=D||G.compareByGeneratedPositionsInflated(H,R)<=0}(this._last,R)?(this._sorted=!1,this._array.push(R)):(this._last=R,this._array.push(R))},A.prototype.toArray=function(){return this._sorted||(this._array.sort(G.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},K.H=A},3058:function(Ae,K,m){var G=m(3357),W=m(2472),A=m(6842).I,H=m(1490).H;function R(P){P||(P={}),this._file=W.getArg(P,"file",null),this._sourceRoot=W.getArg(P,"sourceRoot",null),this._skipValidation=W.getArg(P,"skipValidation",!1),this._sources=new A,this._names=new A,this._mappings=new H,this._sourcesContents=null}R.prototype._version=3,R.fromSourceMap=function(x){var D=x.sourceRoot,j=new R({file:x.file,sourceRoot:D});return x.eachMapping(function(L){var v={generated:{line:L.generatedLine,column:L.generatedColumn}};null!=L.source&&(v.source=L.source,null!=D&&(v.source=W.relative(D,v.source)),v.original={line:L.originalLine,column:L.originalColumn},null!=L.name&&(v.name=L.name)),j.addMapping(v)}),x.sources.forEach(function(L){var v=L;null!==D&&(v=W.relative(D,L)),j._sources.has(v)||j._sources.add(v);var k=x.sourceContentFor(L);null!=k&&j.setSourceContent(L,k)}),j},R.prototype.addMapping=function(x){var D=W.getArg(x,"generated"),j=W.getArg(x,"original",null),L=W.getArg(x,"source",null),v=W.getArg(x,"name",null);this._skipValidation||this._validateMapping(D,j,L,v),null!=L&&(L=String(L),this._sources.has(L)||this._sources.add(L)),null!=v&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:D.line,generatedColumn:D.column,originalLine:null!=j&&j.line,originalColumn:null!=j&&j.column,source:L,name:v})},R.prototype.setSourceContent=function(x,D){var j=x;null!=this._sourceRoot&&(j=W.relative(this._sourceRoot,j)),null!=D?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(j)]=D):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(j)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},R.prototype.applySourceMap=function(x,D,j){var L=D;if(null==D){if(null==x.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');L=x.file}var v=this._sourceRoot;null!=v&&(L=W.relative(v,L));var k=new A,b=new A;this._mappings.unsortedForEach(function(O){if(O.source===L&&null!=O.originalLine){var S=x.originalPositionFor({line:O.originalLine,column:O.originalColumn});null!=S.source&&(O.source=S.source,null!=j&&(O.source=W.join(j,O.source)),null!=v&&(O.source=W.relative(v,O.source)),O.originalLine=S.line,O.originalColumn=S.column,null!=S.name&&(O.name=S.name))}var y=O.source;null!=y&&!k.has(y)&&k.add(y);var T=O.name;null!=T&&!b.has(T)&&b.add(T)},this),this._sources=k,this._names=b,x.sources.forEach(function(O){var S=x.sourceContentFor(O);null!=S&&(null!=j&&(O=W.join(j,O)),null!=v&&(O=W.relative(v,O)),this.setSourceContent(O,S))},this)},R.prototype._validateMapping=function(x,D,j,L){if(D&&"number"!=typeof D.line&&"number"!=typeof D.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(x&&"line"in x&&"column"in x&&x.line>0&&x.column>=0)||D||j||L){if(x&&"line"in x&&"column"in x&&D&&"line"in D&&"column"in D&&x.line>0&&x.column>=0&&D.line>0&&D.column>=0&&j)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:x,source:j,original:D,name:L}))}},R.prototype._serializeMappings=function(){for(var O,S,y,T,x=0,D=1,j=0,L=0,v=0,k=0,b="",M=this._mappings.toArray(),E=0,N=M.length;E<N;E++){if(O="",(S=M[E]).generatedLine!==D)for(x=0;S.generatedLine!==D;)O+=";",D++;else if(E>0){if(!W.compareByGeneratedPositionsInflated(S,M[E-1]))continue;O+=","}O+=G.encode(S.generatedColumn-x),x=S.generatedColumn,null!=S.source&&(T=this._sources.indexOf(S.source),O+=G.encode(T-k),k=T,O+=G.encode(S.originalLine-1-L),L=S.originalLine-1,O+=G.encode(S.originalColumn-j),j=S.originalColumn,null!=S.name&&(y=this._names.indexOf(S.name),O+=G.encode(y-v),v=y)),b+=O}return b},R.prototype._generateSourcesContent=function(x,D){return x.map(function(j){if(!this._sourcesContents)return null;null!=D&&(j=W.relative(D,j));var L=W.toSetString(j);return Object.prototype.hasOwnProperty.call(this._sourcesContents,L)?this._sourcesContents[L]:null},this)},R.prototype.toJSON=function(){var x={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(x.file=this._file),null!=this._sourceRoot&&(x.sourceRoot=this._sourceRoot),this._sourcesContents&&(x.sourcesContent=this._generateSourcesContent(x.sources,x.sourceRoot)),x},R.prototype.toString=function(){return JSON.stringify(this.toJSON())},K.h=R},2472:function(Ae,K){K.getArg=function m($,Y,Q){if(Y in $)return $[Y];if(3===arguments.length)return Q;throw new Error('"'+Y+'" is a required argument.')};var G=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,W=/^data:.+\,.+$/;function A($){var Y=$.match(G);return Y?{scheme:Y[1],auth:Y[2],host:Y[3],port:Y[4],path:Y[5]}:null}function H($){var Y="";return $.scheme&&(Y+=$.scheme+":"),Y+="//",$.auth&&(Y+=$.auth+"@"),$.host&&(Y+=$.host),$.port&&(Y+=":"+$.port),$.path&&(Y+=$.path),Y}K.urlParse=A,K.urlGenerate=H;var x=function P($){var Y=[];return function(Q){for(var ne=0;ne<Y.length;ne++)if(Y[ne].input===Q){var be=Y[0];return Y[0]=Y[ne],Y[ne]=be,Y[0].result}var fe=$(Q);return Y.unshift({input:Q,result:fe}),Y.length>32&&Y.pop(),fe}}(function(Y){var Q=Y,ne=A(Y);if(ne){if(!ne.path)return Y;Q=ne.path}for(var be=K.isAbsolute(Q),fe=[],de=0,le=0;;){if(de=le,-1===(le=Q.indexOf("/",de))){fe.push(Q.slice(de));break}for(fe.push(Q.slice(de,le));le<Q.length&&"/"===Q[le];)le++}var ce,me=0;for(le=fe.length-1;le>=0;le--)"."===(ce=fe[le])?fe.splice(le,1):".."===ce?me++:me>0&&(""===ce?(fe.splice(le+1,me),me=0):(fe.splice(le,2),me--));return""===(Q=fe.join("/"))&&(Q=be?"/":"."),ne?(ne.path=Q,H(ne)):Q});function D($,Y){""===$&&($="."),""===Y&&(Y=".");var Q=A(Y),ne=A($);if(ne&&($=ne.path||"/"),Q&&!Q.scheme)return ne&&(Q.scheme=ne.scheme),H(Q);if(Q||Y.match(W))return Y;if(ne&&!ne.host&&!ne.path)return ne.host=Y,H(ne);var be="/"===Y.charAt(0)?Y:x($.replace(/\/+$/,"")+"/"+Y);return ne?(ne.path=be,H(ne)):be}K.normalize=x,K.join=D,K.isAbsolute=function($){return"/"===$.charAt(0)||G.test($)},K.relative=function j($,Y){""===$&&($="."),$=$.replace(/\/$/,"");for(var Q=0;0!==Y.indexOf($+"/");){var ne=$.lastIndexOf("/");if(ne<0||($=$.slice(0,ne)).match(/^([^\/]+:\/)?\/*$/))return Y;++Q}return Array(Q+1).join("../")+Y.substr($.length+1)};var L=!("__proto__"in Object.create(null));function v($){return $}function O($){if(!$)return!1;var Y=$.length;if(Y<9||95!==$.charCodeAt(Y-1)||95!==$.charCodeAt(Y-2)||111!==$.charCodeAt(Y-3)||116!==$.charCodeAt(Y-4)||111!==$.charCodeAt(Y-5)||114!==$.charCodeAt(Y-6)||112!==$.charCodeAt(Y-7)||95!==$.charCodeAt(Y-8)||95!==$.charCodeAt(Y-9))return!1;for(var Q=Y-10;Q>=0;Q--)if(36!==$.charCodeAt(Q))return!1;return!0}function E($,Y){return $===Y?0:null===$?1:null===Y?-1:$>Y?1:-1}K.toSetString=L?v:function k($){return O($)?"$"+$:$},K.fromSetString=L?v:function b($){return O($)?$.slice(1):$},K.compareByOriginalPositions=function S($,Y,Q){var ne=E($.source,Y.source);return 0!==ne||0!==(ne=$.originalLine-Y.originalLine)||(0!==(ne=$.originalColumn-Y.originalColumn)||Q)||0!==(ne=$.generatedColumn-Y.generatedColumn)||0!==(ne=$.generatedLine-Y.generatedLine)?ne:E($.name,Y.name)},K.compareByOriginalPositionsNoSource=function y($,Y,Q){var ne;return 0!==(ne=$.originalLine-Y.originalLine)||(0!==(ne=$.originalColumn-Y.originalColumn)||Q)||0!==(ne=$.generatedColumn-Y.generatedColumn)||0!==(ne=$.generatedLine-Y.generatedLine)?ne:E($.name,Y.name)},K.compareByGeneratedPositionsDeflated=function T($,Y,Q){var ne=$.generatedLine-Y.generatedLine;return 0!==ne||(0!==(ne=$.generatedColumn-Y.generatedColumn)||Q)||0!==(ne=E($.source,Y.source))||0!==(ne=$.originalLine-Y.originalLine)||0!==(ne=$.originalColumn-Y.originalColumn)?ne:E($.name,Y.name)},K.compareByGeneratedPositionsDeflatedNoLine=function M($,Y,Q){var ne=$.generatedColumn-Y.generatedColumn;return 0!==ne||Q||0!==(ne=E($.source,Y.source))||0!==(ne=$.originalLine-Y.originalLine)||0!==(ne=$.originalColumn-Y.originalColumn)?ne:E($.name,Y.name)},K.compareByGeneratedPositionsInflated=function N($,Y){var Q=$.generatedLine-Y.generatedLine;return 0!==Q||0!==(Q=$.generatedColumn-Y.generatedColumn)||0!==(Q=E($.source,Y.source))||0!==(Q=$.originalLine-Y.originalLine)||0!==(Q=$.originalColumn-Y.originalColumn)?Q:E($.name,Y.name)},K.parseSourceMapInput=function F($){return JSON.parse($.replace(/^\)]}'[^\n]*\n/,""))},K.computeSourceURL=function X($,Y,Q){if(Y=Y||"",$&&("/"!==$[$.length-1]&&"/"!==Y[0]&&($+="/"),Y=$+Y),Q){var ne=A(Q);if(!ne)throw new Error("sourceMapURL could not be parsed");if(ne.path){var be=ne.path.lastIndexOf("/");be>=0&&(ne.path=ne.path.substring(0,be+1))}Y=D(H(ne),Y)}return x(Y)}},1452:function(Ae){Ae.exports=function(K){"use strict";var G=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function A(y,T){var M=y[0],E=y[1],N=y[2],F=y[3];E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&N|~E&F)+T[0]-680876936|0)<<7|M>>>25)+E|0)&E|~M&N)+T[1]-389564586|0)<<12|F>>>20)+M|0)&M|~F&E)+T[2]+606105819|0)<<17|N>>>15)+F|0)&F|~N&M)+T[3]-1044525330|0)<<22|E>>>10)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&N|~E&F)+T[4]-176418897|0)<<7|M>>>25)+E|0)&E|~M&N)+T[5]+1200080426|0)<<12|F>>>20)+M|0)&M|~F&E)+T[6]-1473231341|0)<<17|N>>>15)+F|0)&F|~N&M)+T[7]-45705983|0)<<22|E>>>10)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&N|~E&F)+T[8]+1770035416|0)<<7|M>>>25)+E|0)&E|~M&N)+T[9]-1958414417|0)<<12|F>>>20)+M|0)&M|~F&E)+T[10]-42063|0)<<17|N>>>15)+F|0)&F|~N&M)+T[11]-1990404162|0)<<22|E>>>10)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&N|~E&F)+T[12]+1804603682|0)<<7|M>>>25)+E|0)&E|~M&N)+T[13]-40341101|0)<<12|F>>>20)+M|0)&M|~F&E)+T[14]-1502002290|0)<<17|N>>>15)+F|0)&F|~N&M)+T[15]+1236535329|0)<<22|E>>>10)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&F|N&~F)+T[1]-165796510|0)<<5|M>>>27)+E|0)&N|E&~N)+T[6]-1069501632|0)<<9|F>>>23)+M|0)&E|M&~E)+T[11]+643717713|0)<<14|N>>>18)+F|0)&M|F&~M)+T[0]-373897302|0)<<20|E>>>12)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&F|N&~F)+T[5]-701558691|0)<<5|M>>>27)+E|0)&N|E&~N)+T[10]+38016083|0)<<9|F>>>23)+M|0)&E|M&~E)+T[15]-660478335|0)<<14|N>>>18)+F|0)&M|F&~M)+T[4]-405537848|0)<<20|E>>>12)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&F|N&~F)+T[9]+568446438|0)<<5|M>>>27)+E|0)&N|E&~N)+T[14]-1019803690|0)<<9|F>>>23)+M|0)&E|M&~E)+T[3]-187363961|0)<<14|N>>>18)+F|0)&M|F&~M)+T[8]+1163531501|0)<<20|E>>>12)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E&F|N&~F)+T[13]-1444681467|0)<<5|M>>>27)+E|0)&N|E&~N)+T[2]-51403784|0)<<9|F>>>23)+M|0)&E|M&~E)+T[7]+1735328473|0)<<14|N>>>18)+F|0)&M|F&~M)+T[12]-1926607734|0)<<20|E>>>12)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E^N^F)+T[5]-378558|0)<<4|M>>>28)+E|0)^E^N)+T[8]-2022574463|0)<<11|F>>>21)+M|0)^M^E)+T[11]+1839030562|0)<<16|N>>>16)+F|0)^F^M)+T[14]-35309556|0)<<23|E>>>9)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E^N^F)+T[1]-1530992060|0)<<4|M>>>28)+E|0)^E^N)+T[4]+1272893353|0)<<11|F>>>21)+M|0)^M^E)+T[7]-155497632|0)<<16|N>>>16)+F|0)^F^M)+T[10]-1094730640|0)<<23|E>>>9)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E^N^F)+T[13]+681279174|0)<<4|M>>>28)+E|0)^E^N)+T[0]-358537222|0)<<11|F>>>21)+M|0)^M^E)+T[3]-722521979|0)<<16|N>>>16)+F|0)^F^M)+T[6]+76029189|0)<<23|E>>>9)+N|0,E=((E+=((N=((N+=((F=((F+=((M=((M+=(E^N^F)+T[9]-640364487|0)<<4|M>>>28)+E|0)^E^N)+T[12]-421815835|0)<<11|F>>>21)+M|0)^M^E)+T[15]+530742520|0)<<16|N>>>16)+F|0)^F^M)+T[2]-995338651|0)<<23|E>>>9)+N|0,E=((E+=((F=((F+=(E^((M=((M+=(N^(E|~F))+T[0]-198630844|0)<<6|M>>>26)+E|0)|~N))+T[7]+1126891415|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~E))+T[14]-1416354905|0)<<15|N>>>17)+F|0)|~M))+T[5]-57434055|0)<<21|E>>>11)+N|0,E=((E+=((F=((F+=(E^((M=((M+=(N^(E|~F))+T[12]+1700485571|0)<<6|M>>>26)+E|0)|~N))+T[3]-1894986606|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~E))+T[10]-1051523|0)<<15|N>>>17)+F|0)|~M))+T[1]-2054922799|0)<<21|E>>>11)+N|0,E=((E+=((F=((F+=(E^((M=((M+=(N^(E|~F))+T[8]+1873313359|0)<<6|M>>>26)+E|0)|~N))+T[15]-30611744|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~E))+T[6]-1560198380|0)<<15|N>>>17)+F|0)|~M))+T[13]+1309151649|0)<<21|E>>>11)+N|0,E=((E+=((F=((F+=(E^((M=((M+=(N^(E|~F))+T[4]-145523070|0)<<6|M>>>26)+E|0)|~N))+T[11]-1120210379|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~E))+T[2]+718787259|0)<<15|N>>>17)+F|0)|~M))+T[9]-343485551|0)<<21|E>>>11)+N|0,y[0]=M+y[0]|0,y[1]=E+y[1]|0,y[2]=N+y[2]|0,y[3]=F+y[3]|0}function H(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y.charCodeAt(M)+(y.charCodeAt(M+1)<<8)+(y.charCodeAt(M+2)<<16)+(y.charCodeAt(M+3)<<24);return T}function R(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y[M]+(y[M+1]<<8)+(y[M+2]<<16)+(y[M+3]<<24);return T}function P(y){var E,N,F,X,$,Y,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(E=64;E<=T;E+=64)A(M,H(y.substring(E-64,E)));for(N=(y=y.substring(E-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<N;E+=1)F[E>>2]|=y.charCodeAt(E)<<(E%4<<3);if(F[E>>2]|=128<<(E%4<<3),E>55)for(A(M,F),E=0;E<16;E+=1)F[E]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),Y=parseInt(X[1],16)||0,F[14]=$,F[15]=Y,A(M,F),M}function x(y){var E,N,F,X,$,Y,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(E=64;E<=T;E+=64)A(M,R(y.subarray(E-64,E)));for(N=(y=E-64<T?y.subarray(E-64):new Uint8Array(0)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E=0;E<N;E+=1)F[E>>2]|=y[E]<<(E%4<<3);if(F[E>>2]|=128<<(E%4<<3),E>55)for(A(M,F),E=0;E<16;E+=1)F[E]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),Y=parseInt(X[1],16)||0,F[14]=$,F[15]=Y,A(M,F),M}function D(y){var M,T="";for(M=0;M<4;M+=1)T+=G[y>>8*M+4&15]+G[y>>8*M&15];return T}function j(y){var T;for(T=0;T<y.length;T+=1)y[T]=D(y[T]);return y.join("")}function L(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function v(y,T){var F,M=y.length,E=new ArrayBuffer(M),N=new Uint8Array(E);for(F=0;F<M;F+=1)N[F]=y.charCodeAt(F);return T?N:E}function k(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function b(y,T,M){var E=new Uint8Array(y.byteLength+T.byteLength);return E.set(new Uint8Array(y)),E.set(new Uint8Array(T),y.byteLength),M?E:E.buffer}function O(y){var E,T=[],M=y.length;for(E=0;E<M-1;E+=2)T.push(parseInt(y.substr(E,2),16));return String.fromCharCode.apply(String,T)}function S(){this.reset()}return j(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function y(T,M){return(T=0|T||0)<0?Math.max(T+M,0):Math.min(T,M)}ArrayBuffer.prototype.slice=function(T,M){var X,$,Y,Q,E=this.byteLength,N=y(T,E),F=E;return M!==K&&(F=y(M,E)),N>F?new ArrayBuffer(0):(X=F-N,$=new ArrayBuffer(X),Y=new Uint8Array($),Q=new Uint8Array(this,N,X),Y.set(Q),$)}}(),S.prototype.append=function(y){return this.appendBinary(L(y)),this},S.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var M,T=this._buff.length;for(M=64;M<=T;M+=64)A(this._hash,H(this._buff.substring(M-64,M)));return this._buff=this._buff.substring(M-64),this},S.prototype.end=function(y){var E,F,T=this._buff,M=T.length,N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(E=0;E<M;E+=1)N[E>>2]|=T.charCodeAt(E)<<(E%4<<3);return this._finish(N,M),F=j(this._hash),y&&(F=O(F)),this.reset(),F},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(y,T){var E,N,F,M=T;if(y[M>>2]|=128<<(M%4<<3),M>55)for(A(this._hash,y),M=0;M<16;M+=1)y[M]=0;E=(E=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(E[2],16),F=parseInt(E[1],16)||0,y[14]=N,y[15]=F,A(this._hash,y)},S.hash=function(y,T){return S.hashBinary(L(y),T)},S.hashBinary=function(y,T){var E=j(P(y));return T?O(E):E},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(y){var E,T=b(this._buff.buffer,y,!0),M=T.length;for(this._length+=y.byteLength,E=64;E<=M;E+=64)A(this._hash,R(T.subarray(E-64,E)));return this._buff=E-64<M?new Uint8Array(T.buffer.slice(E-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(y){var N,F,T=this._buff,M=T.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(N=0;N<M;N+=1)E[N>>2]|=T[N]<<(N%4<<3);return this._finish(E,M),F=j(this._hash),y&&(F=O(F)),this.reset(),F},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var y=S.prototype.getState.call(this);return y.buff=k(y.buff),y},S.ArrayBuffer.prototype.setState=function(y){return y.buff=v(y.buff,!0),S.prototype.setState.call(this,y)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(y,T){var E=j(x(new Uint8Array(y)));return T?O(E):E},S}()},986:function(Ae){window,Ae.exports=function(K){var m={};function G(W){if(m[W])return m[W].exports;var A=m[W]={i:W,l:!1,exports:{}};return K[W].call(A.exports,A,A.exports,G),A.l=!0,A.exports}return G.m=K,G.c=m,G.d=function(W,A,H){G.o(W,A)||Object.defineProperty(W,A,{enumerable:!0,get:H})},G.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},G.t=function(W,A){if(1&A&&(W=G(W)),8&A||4&A&&"object"==typeof W&&W&&W.__esModule)return W;var H=Object.create(null);if(G.r(H),Object.defineProperty(H,"default",{enumerable:!0,value:W}),2&A&&"string"!=typeof W)for(var R in W)G.d(H,R,function(P){return W[P]}.bind(null,R));return H},G.n=function(W){var A=W&&W.__esModule?function(){return W.default}:function(){return W};return G.d(A,"a",A),A},G.o=function(W,A){return Object.prototype.hasOwnProperty.call(W,A)},G.p="",G(G.s=0)}([function(K,m,G){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var W=function(){function H(R,P){this._disposables=[],this._socket=R,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return H.prototype.activate=function(R){var P=this;this._disposables.push(A(this._socket,"message",function(x){var D=x.data;R.write("string"==typeof D?D:new Uint8Array(D))})),this._bidirectional&&(this._disposables.push(R.onData(function(x){return P._sendData(x)})),this._disposables.push(R.onBinary(function(x){return P._sendBinary(x)}))),this._disposables.push(A(this._socket,"close",function(){return P.dispose()})),this._disposables.push(A(this._socket,"error",function(){return P.dispose()}))},H.prototype.dispose=function(){this._disposables.forEach(function(R){return R.dispose()})},H.prototype._sendData=function(R){1===this._socket.readyState&&this._socket.send(R)},H.prototype._sendBinary=function(R){if(1===this._socket.readyState){for(var P=new Uint8Array(R.length),x=0;x<R.length;++x)P[x]=255&R.charCodeAt(x);this._socket.send(P)}},H}();function A(H,R,P){return H.addEventListener(R,P),{dispose:function(){P&&H.removeEventListener(R,P)}}}m.AttachAddon=W}])},9162:function(Ae){self,Ae.exports=function(){"use strict";var K={775:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.FitAddon=void 0;var H=function(){function R(){}return R.prototype.activate=function(P){this._terminal=P},R.prototype.dispose=function(){},R.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var x=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(x._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},R.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var P=this._terminal._core;if(0!==P._renderService.dimensions.actualCellWidth&&0!==P._renderService.dimensions.actualCellHeight){var x=window.getComputedStyle(this._terminal.element.parentElement),D=parseInt(x.getPropertyValue("height")),j=Math.max(0,parseInt(x.getPropertyValue("width"))),L=window.getComputedStyle(this._terminal.element),v=D-(parseInt(L.getPropertyValue("padding-top"))+parseInt(L.getPropertyValue("padding-bottom"))),k=j-(parseInt(L.getPropertyValue("padding-right"))+parseInt(L.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(k/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(v/P._renderService.dimensions.actualCellHeight))}}}},R}();A.FitAddon=H}},m={};return function G(W){if(m[W])return m[W].exports;var A=m[W]={exports:{}};return K[W](A,A.exports,G),A.exports}(775)}()},4793:function(Ae){self,Ae.exports=function(){"use strict";var K={4567:function(W,A,H){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(M[N]=E[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.AccessibilityManager=void 0;var x=H(9042),D=H(6114),j=H(9924),L=H(3656),v=H(844),k=H(5596),b=H(9631),O=function(S){function y(T,M){var E=S.call(this)||this;E._terminal=T,E._renderService=M,E._liveRegionLineCount=0,E._charsToConsume=[],E._charsToAnnounce="",E._accessibilityTreeRoot=document.createElement("div"),E._accessibilityTreeRoot.classList.add("xterm-accessibility"),E._accessibilityTreeRoot.tabIndex=0,E._rowContainer=document.createElement("div"),E._rowContainer.setAttribute("role","list"),E._rowContainer.classList.add("xterm-accessibility-tree"),E._rowElements=[];for(var N=0;N<E._terminal.rows;N++)E._rowElements[N]=E._createAccessibilityTreeNode(),E._rowContainer.appendChild(E._rowElements[N]);if(E._topBoundaryFocusListener=function(F){return E._onBoundaryFocus(F,0)},E._bottomBoundaryFocusListener=function(F){return E._onBoundaryFocus(F,1)},E._rowElements[0].addEventListener("focus",E._topBoundaryFocusListener),E._rowElements[E._rowElements.length-1].addEventListener("focus",E._bottomBoundaryFocusListener),E._refreshRowsDimensions(),E._accessibilityTreeRoot.appendChild(E._rowContainer),E._renderRowsDebouncer=new j.TimeBasedDebouncer(E._renderRows.bind(E)),E._refreshRows(),E._liveRegion=document.createElement("div"),E._liveRegion.classList.add("live-region"),E._liveRegion.setAttribute("aria-live","assertive"),E._accessibilityTreeRoot.appendChild(E._liveRegion),!E._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return E._terminal.element.insertAdjacentElement("afterbegin",E._accessibilityTreeRoot),E.register(E._renderRowsDebouncer),E.register(E._terminal.onResize(function(F){return E._onResize(F.rows)})),E.register(E._terminal.onRender(function(F){return E._refreshRows(F.start,F.end)})),E.register(E._terminal.onScroll(function(){return E._refreshRows()})),E.register(E._terminal.onA11yChar(function(F){return E._onChar(F)})),E.register(E._terminal.onLineFeed(function(){return E._onChar("\n")})),E.register(E._terminal.onA11yTab(function(F){return E._onTab(F)})),E.register(E._terminal.onKey(function(F){return E._onKey(F.key)})),E.register(E._terminal.onBlur(function(){return E._clearLiveRegion()})),E.register(E._renderService.onDimensionsChange(function(){return E._refreshRowsDimensions()})),E._screenDprMonitor=new k.ScreenDprMonitor,E.register(E._screenDprMonitor),E._screenDprMonitor.setListener(function(){return E._refreshRowsDimensions()}),E.register((0,L.addDisposableDomListener)(window,"resize",function(){return E._refreshRowsDimensions()})),E}return P(y,S),y.prototype.dispose=function(){S.prototype.dispose.call(this),(0,b.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},y.prototype._onBoundaryFocus=function(T,M){var E=T.target,N=this._rowElements[0===M?1:this._rowElements.length-2];if(E.getAttribute("aria-posinset")!==(0===M?"1":""+this._terminal.buffer.lines.length)&&T.relatedTarget===N){var F,X;if(0===M?(F=E,X=this._rowElements.pop(),this._rowContainer.removeChild(X)):(F=this._rowElements.shift(),X=E,this._rowContainer.removeChild(F)),F.removeEventListener("focus",this._topBoundaryFocusListener),X.removeEventListener("focus",this._bottomBoundaryFocusListener),0===M){var $=this._createAccessibilityTreeNode();this._rowElements.unshift($),this._rowContainer.insertAdjacentElement("afterbegin",$)}else $=this._createAccessibilityTreeNode(),this._rowElements.push($),this._rowContainer.appendChild($);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===M?-1:1),this._rowElements[0===M?1:this._rowElements.length-2].focus(),T.preventDefault(),T.stopImmediatePropagation()}},y.prototype._onResize=function(T){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var M=this._rowContainer.children.length;M<this._terminal.rows;M++)this._rowElements[M]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[M]);for(;this._rowElements.length>T;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},y.prototype._createAccessibilityTreeNode=function(){var T=document.createElement("div");return T.setAttribute("role","listitem"),T.tabIndex=-1,this._refreshRowDimensions(T),T},y.prototype._onTab=function(T){for(var M=0;M<T;M++)this._onChar(" ")},y.prototype._onChar=function(T){var M=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==T&&(this._charsToAnnounce+=T):this._charsToAnnounce+=T,"\n"===T&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=x.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){M._accessibilityTreeRoot.appendChild(M._liveRegion)},0))},y.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&(0,b.removeElementFromParent)(this._liveRegion)},y.prototype._onKey=function(T){this._clearLiveRegion(),this._charsToConsume.push(T)},y.prototype._refreshRows=function(T,M){this._renderRowsDebouncer.refresh(T,M,this._terminal.rows)},y.prototype._renderRows=function(T,M){for(var E=this._terminal.buffer,N=E.lines.length.toString(),F=T;F<=M;F++){var X=E.translateBufferLineToString(E.ydisp+F,!0),$=(E.ydisp+F+1).toString(),Y=this._rowElements[F];Y&&(0===X.length?Y.innerText="\xa0":Y.textContent=X,Y.setAttribute("aria-posinset",$),Y.setAttribute("aria-setsize",N))}this._announceCharacters()},y.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var T=0;T<this._terminal.rows;T++)this._refreshRowDimensions(this._rowElements[T])}},y.prototype._refreshRowDimensions=function(T){T.style.height=this._renderService.dimensions.actualCellHeight+"px"},y.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},y}(v.Disposable);A.AccessibilityManager=O},3614:function(W,A){function H(D){return D.replace(/\r?\n/g,"\r")}function R(D,j){return j?"\x1b[200~"+D+"\x1b[201~":D}function P(D,j,L){D=R(D=H(D),L.decPrivateModes.bracketedPasteMode),L.triggerDataEvent(D,!0),j.value=""}function x(D,j,L){var v=L.getBoundingClientRect(),k=D.clientX-v.left-10,b=D.clientY-v.top-10;j.style.width="20px",j.style.height="20px",j.style.left=k+"px",j.style.top=b+"px",j.style.zIndex="1000",j.focus()}Object.defineProperty(A,"__esModule",{value:!0}),A.rightClickHandler=A.moveTextAreaUnderMouseCursor=A.paste=A.handlePasteEvent=A.copyHandler=A.bracketTextForPaste=A.prepareTextForTerminal=void 0,A.prepareTextForTerminal=H,A.bracketTextForPaste=R,A.copyHandler=function(D,j){D.clipboardData&&D.clipboardData.setData("text/plain",j.selectionText),D.preventDefault()},A.handlePasteEvent=function(D,j,L){D.stopPropagation(),D.clipboardData&&P(D.clipboardData.getData("text/plain"),j,L)},A.paste=P,A.moveTextAreaUnderMouseCursor=x,A.rightClickHandler=function(D,j,L,v,k){x(D,j,L),k&&v.rightClickSelect(D),j.value=v.selectionText,j.select()}},7239:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ColorContrastCache=void 0;var H=function(){function R(){this._color={},this._rgba={}}return R.prototype.clear=function(){this._color={},this._rgba={}},R.prototype.setCss=function(P,x,D){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][x]=D},R.prototype.getCss=function(P,x){return this._rgba[P]?this._rgba[P][x]:void 0},R.prototype.setColor=function(P,x,D){this._color[P]||(this._color[P]={}),this._color[P][x]=D},R.prototype.getColor=function(P,x){return this._color[P]?this._color[P][x]:void 0},R}();A.ColorContrastCache=H},5680:function(W,A,H){var R=this&&this.__read||function(O,S){var y="function"==typeof Symbol&&O[Symbol.iterator];if(!y)return O;var T,M,E=y.call(O),N=[];try{for(;(void 0===S||S-- >0)&&!(T=E.next()).done;)N.push(T.value)}catch(F){M={error:F}}finally{try{T&&!T.done&&(y=E.return)&&y.call(E)}finally{if(M)throw M.error}}return N};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorManager=A.DEFAULT_ANSI_COLORS=void 0;var P=H(8055),x=H(7239),D=P.css.toColor("#ffffff"),j=P.css.toColor("#000000"),L=P.css.toColor("#ffffff"),v=P.css.toColor("#000000"),k={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};A.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var O=[P.css.toColor("#2e3436"),P.css.toColor("#cc0000"),P.css.toColor("#4e9a06"),P.css.toColor("#c4a000"),P.css.toColor("#3465a4"),P.css.toColor("#75507b"),P.css.toColor("#06989a"),P.css.toColor("#d3d7cf"),P.css.toColor("#555753"),P.css.toColor("#ef2929"),P.css.toColor("#8ae234"),P.css.toColor("#fce94f"),P.css.toColor("#729fcf"),P.css.toColor("#ad7fa8"),P.css.toColor("#34e2e2"),P.css.toColor("#eeeeec")],S=[0,95,135,175,215,255],y=0;y<216;y++){var T=S[y/36%6|0],M=S[y/6%6|0],E=S[y%6];O.push({css:P.channels.toCss(T,M,E),rgba:P.channels.toRgba(T,M,E)})}for(y=0;y<24;y++){var N=8+10*y;O.push({css:P.channels.toCss(N,N,N),rgba:P.channels.toRgba(N,N,N)})}return O}());var b=function(){function O(S,y){this.allowTransparency=y;var T=S.createElement("canvas");T.width=1,T.height=1;var M=T.getContext("2d");if(!M)throw new Error("Could not get rendering context");this._ctx=M,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new x.ColorContrastCache,this.colors={foreground:D,background:j,cursor:L,cursorAccent:v,selectionTransparent:k,selectionOpaque:P.color.blend(j,k),selectionForeground:void 0,ansi:A.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return O.prototype.onOptionsChange=function(S){"minimumContrastRatio"===S&&this._contrastCache.clear()},O.prototype.setTheme=function(S){void 0===S&&(S={}),this.colors.foreground=this._parseColor(S.foreground,D),this.colors.background=this._parseColor(S.background,j),this.colors.cursor=this._parseColor(S.cursor,L,!0),this.colors.cursorAccent=this._parseColor(S.cursorAccent,v,!0),this.colors.selectionTransparent=this._parseColor(S.selection,k,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent);var y={css:"",rgba:0};this.colors.selectionForeground=S.selectionForeground?this._parseColor(S.selectionForeground,y):void 0,this.colors.selectionForeground===y&&(this.colors.selectionForeground=void 0),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(S.black,A.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(S.red,A.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(S.green,A.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(S.yellow,A.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(S.blue,A.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(S.magenta,A.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(S.cyan,A.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(S.white,A.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(S.brightBlack,A.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(S.brightRed,A.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(S.brightGreen,A.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(S.brightYellow,A.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(S.brightBlue,A.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(S.brightMagenta,A.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(S.brightCyan,A.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(S.brightWhite,A.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},O.prototype.restoreColor=function(S){if(void 0!==S)switch(S){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[S]=this._restoreColors.ansi[S]}else for(var y=0;y<this._restoreColors.ansi.length;++y)this.colors.ansi[y]=this._restoreColors.ansi[y]},O.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},O.prototype._parseColor=function(S,y,T){if(void 0===T&&(T=this.allowTransparency),void 0===S)return y;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=S,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+S+" is invalid using fallback "+y.css),y;this._ctx.fillRect(0,0,1,1);var M=this._ctx.getImageData(0,0,1,1).data;if(255!==M[3]){if(!T)return console.warn("Color: "+S+" is using transparency, but allowTransparency is false. Using fallback "+y.css+"."),y;var E=R(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Q){return Number(Q)}),4),N=E[0],F=E[1],X=E[2],$=E[3],Y=Math.round(255*$);return{rgba:P.channels.toRgba(N,F,X,Y),css:S}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(M[0],M[1],M[2],M[3])}},O}();A.ColorManager=b},9631:function(W,A){var H=this&&this.__values||function(R){var P="function"==typeof Symbol&&Symbol.iterator,x=P&&R[P],D=0;if(x)return x.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&D>=R.length&&(R=void 0),{value:R&&R[D++],done:!R}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.removeElementFromParent=void 0,A.removeElementFromParent=function(){for(var R,P,x,D=[],j=0;j<arguments.length;j++)D[j]=arguments[j];try{for(var L=H(D),v=L.next();!v.done;v=L.next()){var k=v.value;null===(x=null==k?void 0:k.parentElement)||void 0===x||x.removeChild(k)}}catch(b){R={error:b}}finally{try{v&&!v.done&&(P=L.return)&&P.call(L)}finally{if(R)throw R.error}}}},3656:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.addDisposableDomListener=void 0,A.addDisposableDomListener=function(H,R,P,x){H.addEventListener(R,P,x);var D=!1;return{dispose:function(){D||(D=!0,H.removeEventListener(R,P,x))}}}},3551:function(W,A,H){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZone=A.Linkifier=void 0;var x=H(8460),D=H(2585),j=function(){function v(k,b,O){this._bufferService=k,this._logService=b,this._unicodeService=O,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new x.EventEmitter,this._onHideLinkUnderline=new x.EventEmitter,this._onLinkTooltip=new x.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(v.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),v.prototype.attachToDom=function(k,b){this._element=k,this._mouseZoneManager=b},v.prototype.linkifyRows=function(k,b){var O=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=k,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,k),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(k,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return O._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var k=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var b=k.ydisp+this._rowsToLinkify.start;if(!(b>=k.lines.length)){for(var O=k.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,S=Math.ceil(2e3/this._bufferService.cols),y=this._bufferService.buffer.iterator(!1,b,O,S,S);y.hasNext();)for(var T=y.next(),M=0;M<this._linkMatchers.length;M++)this._doLinkifyRow(T.range.first,T.content,this._linkMatchers[M]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},v.prototype.registerLinkMatcher=function(k,b,O){if(void 0===O&&(O={}),!b)throw new Error("handler must be defined");var S={id:this._nextLinkMatcherId++,regex:k,handler:b,matchIndex:O.matchIndex,validationCallback:O.validationCallback,hoverTooltipCallback:O.tooltipCallback,hoverLeaveCallback:O.leaveCallback,willLinkActivate:O.willLinkActivate,priority:O.priority||0};return this._addLinkMatcherToList(S),S.id},v.prototype._addLinkMatcherToList=function(k){if(0!==this._linkMatchers.length){for(var b=this._linkMatchers.length-1;b>=0;b--)if(k.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,k);this._linkMatchers.splice(0,0,k)}else this._linkMatchers.push(k)},v.prototype.deregisterLinkMatcher=function(k){for(var b=0;b<this._linkMatchers.length;b++)if(this._linkMatchers[b].id===k)return this._linkMatchers.splice(b,1),!0;return!1},v.prototype._doLinkifyRow=function(k,b,O){for(var S,y=this,T=new RegExp(O.regex.source,(O.regex.flags||"")+"g"),M=-1,E=function(){var X=S["number"!=typeof O.matchIndex?0:O.matchIndex];if(!X)return N._logService.debug("match found without corresponding matchIndex",S,O),"break";if(M=b.indexOf(X,M+1),T.lastIndex=M+X.length,M<0)return"break";var $=N._bufferService.buffer.stringIndexToBufferIndex(k,M);if($[0]<0)return"break";var Y=N._bufferService.buffer.lines.get($[0]);if(!Y)return"break";var Q=Y.getFg($[1]),ne=Q?Q>>9&511:void 0;O.validationCallback?O.validationCallback(X,function(be){y._rowsTimeoutId||be&&y._addLink($[1],$[0]-y._bufferService.buffer.ydisp,X,O,ne)}):N._addLink($[1],$[0]-N._bufferService.buffer.ydisp,X,O,ne)},N=this;null!==(S=T.exec(b))&&"break"!==E(););},v.prototype._addLink=function(k,b,O,S,y){var T=this;if(this._mouseZoneManager&&this._element){var M=this._unicodeService.getStringCellWidth(O),E=k%this._bufferService.cols,N=b+Math.floor(k/this._bufferService.cols),F=(E+M)%this._bufferService.cols,X=N+Math.floor((E+M)/this._bufferService.cols);0===F&&(F=this._bufferService.cols,X--),this._mouseZoneManager.add(new L(E+1,N+1,F+1,X+1,function($){if(S.handler)return S.handler($,O);var Y=window.open();Y?(Y.opener=null,Y.location.href=O):console.warn("Opening link blocked as opener could not be cleared")},function(){T._onShowLinkUnderline.fire(T._createLinkHoverEvent(E,N,F,X,y)),T._element.classList.add("xterm-cursor-pointer")},function($){T._onLinkTooltip.fire(T._createLinkHoverEvent(E,N,F,X,y)),S.hoverTooltipCallback&&S.hoverTooltipCallback($,O,{start:{x:E,y:N},end:{x:F,y:X}})},function(){T._onHideLinkUnderline.fire(T._createLinkHoverEvent(E,N,F,X,y)),T._element.classList.remove("xterm-cursor-pointer"),S.hoverLeaveCallback&&S.hoverLeaveCallback()},function($){return!S.willLinkActivate||S.willLinkActivate($,O)}))}},v.prototype._createLinkHoverEvent=function(k,b,O,S,y){return{x1:k,y1:b,x2:O,y2:S,cols:this._bufferService.cols,fg:y}},v._timeBeforeLatency=200,v=R([P(0,D.IBufferService),P(1,D.ILogService),P(2,D.IUnicodeService)],v)}();A.Linkifier=j;var L=function(k,b,O,S,y,T,M,E,N){this.x1=k,this.y1=b,this.x2=O,this.y2=S,this.clickCallback=y,this.hoverCallback=T,this.tooltipCallback=M,this.leaveCallback=E,this.willLinkActivate=N};A.MouseZone=L},6465:function(W,A,H){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,N){E.__proto__=N}||function(E,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(E[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),x=this&&this.__decorate||function(y,T,M,E){var N,F=arguments.length,X=F<3?T:null===E?E=Object.getOwnPropertyDescriptor(T,M):E;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,E);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,E){T(M,E,y)}},j=this&&this.__values||function(y){var T="function"==typeof Symbol&&Symbol.iterator,M=T&&y[T],E=0;if(M)return M.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&E>=y.length&&(y=void 0),{value:y&&y[E++],done:!y}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},L=this&&this.__read||function(y,T){var M="function"==typeof Symbol&&y[Symbol.iterator];if(!M)return y;var E,N,F=M.call(y),X=[];try{for(;(void 0===T||T-- >0)&&!(E=F.next()).done;)X.push(E.value)}catch($){N={error:$}}finally{try{E&&!E.done&&(M=F.return)&&M.call(F)}finally{if(N)throw N.error}}return X};Object.defineProperty(A,"__esModule",{value:!0}),A.Linkifier2=void 0;var v=H(2585),k=H(8460),b=H(844),O=H(3656),S=function(y){function T(M){var E=y.call(this)||this;return E._bufferService=M,E._linkProviders=[],E._linkCacheDisposables=[],E._isMouseOut=!0,E._activeLine=-1,E._onShowLinkUnderline=E.register(new k.EventEmitter),E._onHideLinkUnderline=E.register(new k.EventEmitter),E.register((0,b.getDisposeArrayDisposable)(E._linkCacheDisposables)),E}return P(T,y),Object.defineProperty(T.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),T.prototype.registerLinkProvider=function(M){var E=this;return this._linkProviders.push(M),{dispose:function(){var F=E._linkProviders.indexOf(M);-1!==F&&E._linkProviders.splice(F,1)}}},T.prototype.attachToDom=function(M,E,N){var F=this;this._element=M,this._mouseService=E,this._renderService=N,this.register((0,O.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,O.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},T.prototype._onMouseMove=function(M){if(this._lastMouseEvent=M,this._element&&this._mouseService){var E=this._positionFromMouseEvent(M,this._element,this._mouseService);if(E){this._isMouseOut=!1;for(var N=M.composedPath(),F=0;F<N.length;F++){var X=N[F];if(X.classList.contains("xterm"))break;if(X.classList.contains("xterm-hover"))return}this._lastBufferCell&&E.x===this._lastBufferCell.x&&E.y===this._lastBufferCell.y||(this._onHover(E),this._lastBufferCell=E)}}},T.prototype._onHover=function(M){if(this._activeLine!==M.y)return this._clearCurrentLink(),void this._askForLink(M,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,M)||(this._clearCurrentLink(),this._askForLink(M,!0))},T.prototype._askForLink=function(M,E){var N,F,X,$,Y=this;this._activeProviderReplies&&E||(null===(X=this._activeProviderReplies)||void 0===X||X.forEach(function(ce){null==ce||ce.forEach(function(me){me.link.dispose&&me.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=M.y);var Q=!1,ne=function(me,je){E?null!==($=be._activeProviderReplies)&&void 0!==$&&$.get(me)&&(Q=be._checkLinkProviderResult(me,M,Q)):je.provideLinks(M.y,function(st){var Mt,Tt;if(!Y._isMouseOut){var Et=null==st?void 0:st.map(function(Lt){return{link:Lt}});null===(Mt=Y._activeProviderReplies)||void 0===Mt||Mt.set(me,Et),Q=Y._checkLinkProviderResult(me,M,Q),(null===(Tt=Y._activeProviderReplies)||void 0===Tt?void 0:Tt.size)===Y._linkProviders.length&&Y._removeIntersectingLinks(M.y,Y._activeProviderReplies)}})},be=this;try{for(var fe=j(this._linkProviders.entries()),de=fe.next();!de.done;de=fe.next()){var le=L(de.value,2);ne(le[0],le[1])}}catch(ce){N={error:ce}}finally{try{de&&!de.done&&(F=fe.return)&&F.call(fe)}finally{if(N)throw N.error}}},T.prototype._removeIntersectingLinks=function(M,E){for(var N=new Set,F=0;F<E.size;F++){var X=E.get(F);if(X)for(var $=0;$<X.length;$++)for(var Y=X[$],Q=Y.link.range.start.y<M?0:Y.link.range.start.x,ne=Y.link.range.end.y>M?this._bufferService.cols:Y.link.range.end.x,be=Q;be<=ne;be++){if(N.has(be)){X.splice($--,1);break}N.add(be)}}},T.prototype._checkLinkProviderResult=function(M,E,N){var F,X=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(M),Y=!1,Q=0;Q<M;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(Y=!0);if(!Y&&$){var ne=$.find(function(fe){return X._linkAtPosition(fe.link,E)});ne&&(N=!0,this._handleNewLink(ne))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(Q=0;Q<this._activeProviderReplies.size;Q++){var be=null===(F=this._activeProviderReplies.get(Q))||void 0===F?void 0:F.find(function(fe){return X._linkAtPosition(fe.link,E)});if(be){N=!0,this._handleNewLink(be);break}}return N},T.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},T.prototype._handleMouseUp=function(M){if(this._element&&this._mouseService&&this._currentLink){var E=this._positionFromMouseEvent(M,this._element,this._mouseService);E&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,E)&&this._currentLink.link.activate(M,this._currentLink.link.text)}},T.prototype._clearCurrentLink=function(M,E){this._element&&this._currentLink&&this._lastMouseEvent&&(!M||!E||this._currentLink.link.range.start.y>=M&&this._currentLink.link.range.end.y<=E)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,b.disposeArray)(this._linkCacheDisposables))},T.prototype._handleNewLink=function(M){var E=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(M.link,N)&&(this._currentLink=M,this._currentLink.state={decorations:{underline:void 0===M.link.decorations||M.link.decorations.underline,pointerCursor:void 0===M.link.decorations||M.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,M.link,this._lastMouseEvent),M.link.decorations={},Object.defineProperties(M.link.decorations,{pointerCursor:{get:function(){var X,$;return null===($=null===(X=E._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(X){var $,Y;(null===($=E._currentLink)||void 0===$?void 0:$.state)&&E._currentLink.state.decorations.pointerCursor!==X&&(E._currentLink.state.decorations.pointerCursor=X,E._currentLink.state.isHovered&&(null===(Y=E._element)||void 0===Y||Y.classList.toggle("xterm-cursor-pointer",X)))}},underline:{get:function(){var X,$;return null===($=null===(X=E._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.underline},set:function(X){var $,Y,Q;(null===($=E._currentLink)||void 0===$?void 0:$.state)&&(null===(Q=null===(Y=E._currentLink)||void 0===Y?void 0:Y.state)||void 0===Q?void 0:Q.decorations.underline)!==X&&(E._currentLink.state.decorations.underline=X,E._currentLink.state.isHovered&&E._fireUnderlineEvent(M.link,X))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(F){var X=0===F.start?0:F.start+1+E._bufferService.buffer.ydisp;E._clearCurrentLink(X,F.end+1+E._bufferService.buffer.ydisp)})))}},T.prototype._linkHover=function(M,E,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(E,!0),this._currentLink.state.decorations.pointerCursor&&M.classList.add("xterm-cursor-pointer")),E.hover&&E.hover(N,E.text)},T.prototype._fireUnderlineEvent=function(M,E){var N=M.range,F=this._bufferService.buffer.ydisp,X=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-F-1,N.end.x,N.end.y-F-1,void 0);(E?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(X)},T.prototype._linkLeave=function(M,E,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(E,!1),this._currentLink.state.decorations.pointerCursor&&M.classList.remove("xterm-cursor-pointer")),E.leave&&E.leave(N,E.text)},T.prototype._linkAtPosition=function(M,E){var N=M.range.start.y===M.range.end.y,F=M.range.start.y<E.y,X=M.range.end.y>E.y;return(N&&M.range.start.x<=E.x&&M.range.end.x>=E.x||F&&M.range.end.x>=E.x||X&&M.range.start.x<=E.x||F&&X)&&M.range.start.y<=E.y&&M.range.end.y>=E.y},T.prototype._positionFromMouseEvent=function(M,E,N){var F=N.getCoords(M,E,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},T.prototype._createLinkUnderlineEvent=function(M,E,N,F,X){return{x1:M,y1:E,x2:N,y2:F,cols:this._bufferService.cols,fg:X}},x([D(0,v.IBufferService)],T)}(b.Disposable);A.Linkifier2=S},9042:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.tooMuchOutput=A.promptLabel=void 0,A.promptLabel="Terminal input",A.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,A,H){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),x=this&&this.__decorate||function(O,S,y,T){var M,E=arguments.length,N=E<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(E<3?M(N):E>3?M(S,y,N):M(S,y))||N);return E>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZoneManager=void 0;var j=H(844),L=H(3656),v=H(4725),k=H(2585),b=function(O){function S(y,T,M,E,N,F){var X=O.call(this)||this;return X._element=y,X._screenElement=T,X._bufferService=M,X._mouseService=E,X._selectionService=N,X._optionsService=F,X._zones=[],X._areZonesActive=!1,X._lastHoverCoords=[void 0,void 0],X._initialSelectionLength=0,X.register((0,L.addDisposableDomListener)(X._element,"mousedown",function($){return X._onMouseDown($)})),X._mouseMoveListener=function($){return X._onMouseMove($)},X._mouseLeaveListener=function($){return X._onMouseLeave($)},X._clickListener=function($){return X._onClick($)},X}return P(S,O),S.prototype.dispose=function(){O.prototype.dispose.call(this),this._deactivate()},S.prototype.add=function(y){this._zones.push(y),1===this._zones.length&&this._activate()},S.prototype.clearAll=function(y,T){if(0!==this._zones.length){y&&T||(y=0,T=this._bufferService.rows-1);for(var M=0;M<this._zones.length;M++){var E=this._zones[M];(E.y1>y&&E.y1<=T+1||E.y2>y&&E.y2<=T+1||E.y1<y&&E.y2>T+1)&&(this._currentZone&&this._currentZone===E&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(M--,1))}0===this._zones.length&&this._deactivate()}},S.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},S.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},S.prototype._onMouseMove=function(y){this._lastHoverCoords[0]===y.pageX&&this._lastHoverCoords[1]===y.pageY||(this._onHover(y),this._lastHoverCoords=[y.pageX,y.pageY])},S.prototype._onHover=function(y){var T=this,M=this._findZoneEventAt(y);M!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),M&&(this._currentZone=M,M.hoverCallback&&M.hoverCallback(y),this._tooltipTimeout=window.setTimeout(function(){return T._onTooltip(y)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},S.prototype._onTooltip=function(y){this._tooltipTimeout=void 0;var T=this._findZoneEventAt(y);null==T||T.tooltipCallback(y)},S.prototype._onMouseDown=function(y){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var T=this._findZoneEventAt(y);null!=T&&T.willLinkActivate(y)&&(y.preventDefault(),y.stopImmediatePropagation())}},S.prototype._onMouseLeave=function(y){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},S.prototype._onClick=function(y){var T=this._findZoneEventAt(y),M=this._getSelectionLength();T&&M===this._initialSelectionLength&&(T.clickCallback(y),y.preventDefault(),y.stopImmediatePropagation())},S.prototype._getSelectionLength=function(){var y=this._selectionService.selectionText;return y?y.length:0},S.prototype._findZoneEventAt=function(y){var T=this._mouseService.getCoords(y,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(T)for(var M=T[0],E=T[1],N=0;N<this._zones.length;N++){var F=this._zones[N];if(F.y1===F.y2){if(E===F.y1&&M>=F.x1&&M<F.x2)return F}else if(E===F.y1&&M>=F.x1||E===F.y2&&M<F.x2||E>F.y1&&E<F.y2)return F}},x([D(2,k.IBufferService),D(3,v.IMouseService),D(4,v.ISelectionService),D(5,k.IOptionsService)],S)}(j.Disposable);A.MouseZoneManager=b},6193:function(W,A){var H=this&&this.__values||function(P){var x="function"==typeof Symbol&&Symbol.iterator,D=x&&P[x],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderDebouncer=void 0;var R=function(){function P(x){this._renderCallback=x,this._refreshCallbacks=[]}return P.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},P.prototype.addRefreshCallback=function(x){var D=this;return this._refreshCallbacks.push(x),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return D._innerRefresh()})),this._animationFrame},P.prototype.refresh=function(x,D,j){var L=this;this._rowCount=j,x=void 0!==x?x:0,D=void 0!==D?D:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,x):x,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,D):D,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return L._innerRefresh()}))},P.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var x=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(x,D),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},P.prototype._runRefreshCallbacks=function(){var x,D;try{for(var j=H(this._refreshCallbacks),L=j.next();!L.done;L=j.next())(0,L.value)(0)}catch(v){x={error:v}}finally{try{L&&!L.done&&(D=j.return)&&D.call(j)}finally{if(x)throw x.error}}this._refreshCallbacks=[]},P}();A.RenderDebouncer=R},5596:function(W,A,H){var R,P=this&&this.__extends||(R=function(j,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,k){v.__proto__=k}||function(v,k){for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(v[b]=k[b])})(j,L)},function(D,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function L(){this.constructor=D}R(D,j),D.prototype=null===j?Object.create(j):(L.prototype=j.prototype,new L)});Object.defineProperty(A,"__esModule",{value:!0}),A.ScreenDprMonitor=void 0;var x=function(D){function j(){var L=null!==D&&D.apply(this,arguments)||this;return L._currentDevicePixelRatio=window.devicePixelRatio,L}return P(j,D),j.prototype.setListener=function(L){var v=this;this._listener&&this.clearListener(),this._listener=L,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},j.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},j.prototype._updateDpr=function(){var L;this._outerListener&&(null===(L=this._resolutionMediaMatchList)||void 0===L||L.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},j.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},j}(H(844).Disposable);A.ScreenDprMonitor=x},3236:function(W,A,H){var R,P=this&&this.__extends||(R=function(Ct,We){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,dt){ut.__proto__=dt}||function(ut,dt){for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&(ut[Ut]=dt[Ut])})(Ct,We)},function(_t,Ct){if("function"!=typeof Ct&&null!==Ct)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function We(){this.constructor=_t}R(_t,Ct),_t.prototype=null===Ct?Object.create(Ct):(We.prototype=Ct.prototype,new We)}),x=this&&this.__values||function(_t){var Ct="function"==typeof Symbol&&Symbol.iterator,We=Ct&&_t[Ct],ut=0;if(We)return We.call(_t);if(_t&&"number"==typeof _t.length)return{next:function(){return _t&&ut>=_t.length&&(_t=void 0),{value:_t&&_t[ut++],done:!_t}}};throw new TypeError(Ct?"Object is not iterable.":"Symbol.iterator is not defined.")},D=this&&this.__read||function(_t,Ct){var We="function"==typeof Symbol&&_t[Symbol.iterator];if(!We)return _t;var ut,dt,Ut=We.call(_t),B=[];try{for(;(void 0===Ct||Ct-- >0)&&!(ut=Ut.next()).done;)B.push(ut.value)}catch(U){dt={error:U}}finally{try{ut&&!ut.done&&(We=Ut.return)&&We.call(Ut)}finally{if(dt)throw dt.error}}return B},j=this&&this.__spreadArray||function(_t,Ct,We){if(We||2===arguments.length)for(var ut,dt=0,Ut=Ct.length;dt<Ut;dt++)!ut&&dt in Ct||(ut||(ut=Array.prototype.slice.call(Ct,0,dt)),ut[dt]=Ct[dt]);return _t.concat(ut||Array.prototype.slice.call(Ct))};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var L=H(2950),v=H(1680),k=H(3614),b=H(2584),O=H(5435),S=H(3525),y=H(3551),T=H(9312),M=H(6114),E=H(3656),N=H(9042),F=H(357),X=H(6954),$=H(4567),Y=H(1296),Q=H(7399),ne=H(8460),be=H(8437),fe=H(5680),de=H(3230),le=H(4725),ce=H(428),me=H(8934),je=H(6465),st=H(5114),Mt=H(8969),Tt=H(8055),Et=H(4269),Lt=H(5941),Ze=H(3107),$t=H(5744),Ft=H(9074),pn=H(2585),nt="undefined"!=typeof window?window.document:null,Ot=function(_t){function Ct(We){void 0===We&&(We={});var ut=_t.call(this,We)||this;return ut.browser=M,ut._keyDownHandled=!1,ut._keyDownSeen=!1,ut._keyPressHandled=!1,ut._unprocessedDeadKey=!1,ut._onCursorMove=new ne.EventEmitter,ut._onKey=new ne.EventEmitter,ut._onRender=new ne.EventEmitter,ut._onSelectionChange=new ne.EventEmitter,ut._onTitleChange=new ne.EventEmitter,ut._onBell=new ne.EventEmitter,ut._onFocus=new ne.EventEmitter,ut._onBlur=new ne.EventEmitter,ut._onA11yCharEmitter=new ne.EventEmitter,ut._onA11yTabEmitter=new ne.EventEmitter,ut._setup(),ut.linkifier=ut._instantiationService.createInstance(y.Linkifier),ut.linkifier2=ut.register(ut._instantiationService.createInstance(je.Linkifier2)),ut._decorationService=ut._instantiationService.createInstance(Ft.DecorationService),ut._instantiationService.setService(pn.IDecorationService,ut._decorationService),ut.register(ut._inputHandler.onRequestBell(function(){return ut.bell()})),ut.register(ut._inputHandler.onRequestRefreshRows(function(dt,Ut){return ut.refresh(dt,Ut)})),ut.register(ut._inputHandler.onRequestSendFocus(function(){return ut._reportFocus()})),ut.register(ut._inputHandler.onRequestReset(function(){return ut.reset()})),ut.register(ut._inputHandler.onRequestWindowsOptionsReport(function(dt){return ut._reportWindowsOptions(dt)})),ut.register(ut._inputHandler.onColor(function(dt){return ut._handleColorEvent(dt)})),ut.register((0,ne.forwardEvent)(ut._inputHandler.onCursorMove,ut._onCursorMove)),ut.register((0,ne.forwardEvent)(ut._inputHandler.onTitleChange,ut._onTitleChange)),ut.register((0,ne.forwardEvent)(ut._inputHandler.onA11yChar,ut._onA11yCharEmitter)),ut.register((0,ne.forwardEvent)(ut._inputHandler.onA11yTab,ut._onA11yTabEmitter)),ut.register(ut._bufferService.onResize(function(dt){return ut._afterResize(dt.cols,dt.rows)})),ut}return P(Ct,_t),Object.defineProperty(Ct.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ct.prototype._handleColorEvent=function(We){var ut,dt,Ut,B;if(this._colorManager){try{for(var U=x(We),tt=U.next();!tt.done;tt=U.next()){var Ye=tt.value,ge=void 0,t="";switch(Ye.index){case 256:ge="foreground",t="10";break;case 257:ge="background",t="11";break;case 258:ge="cursor",t="12";break;default:ge="ansi",t="4;"+Ye.index}if(ge)switch(Ye.type){case 0:var Dt=Tt.color.toColorRGB("ansi"===ge?this._colorManager.colors.ansi[Ye.index]:this._colorManager.colors[ge]);this.coreService.triggerDataEvent(b.C0.ESC+"]"+t+";"+(0,Lt.toRgbString)(Dt)+b.C1_ESCAPED.ST);break;case 1:"ansi"===ge?this._colorManager.colors.ansi[Ye.index]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(Ye.color),!1)):this._colorManager.colors[ge]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(Ye.color),!1));break;case 2:this._colorManager.restoreColor(Ye.index)}}}catch(Zt){ut={error:Zt}}finally{try{tt&&!tt.done&&(dt=U.return)&&dt.call(U)}finally{if(ut)throw ut.error}}null===(Ut=this._renderService)||void 0===Ut||Ut.setColors(this._colorManager.colors),null===(B=this.viewport)||void 0===B||B.onThemeChange(this._colorManager.colors)}},Ct.prototype.dispose=function(){var We,ut,dt;this._isDisposed||(_t.prototype.dispose.call(this),null===(We=this._renderService)||void 0===We||We.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(dt=null===(ut=this.element)||void 0===ut?void 0:ut.parentNode)||void 0===dt||dt.removeChild(this.element))},Ct.prototype._setup=function(){_t.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ct.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ct.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ct.prototype._updateOptions=function(We){var ut,dt,Ut,B;switch(_t.prototype._updateOptions.call(this,We),We){case"fontFamily":case"fontSize":null===(ut=this._renderService)||void 0===ut||ut.clear(),null===(dt=this._charSizeService)||void 0===dt||dt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)):(null===(B=this._accessibilityManager)||void 0===B||B.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},Ct.prototype._onTextAreaFocus=function(We){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(b.C0.ESC+"[I"),this.updateCursorStyle(We),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ct.prototype.blur=function(){var We;return null===(We=this.textarea)||void 0===We?void 0:We.blur()},Ct.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(b.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ct.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var We=this.buffer.ybase+this.buffer.y,ut=this.buffer.lines.get(We);if(ut){var dt=Math.min(this.buffer.x,this.cols-1),Ut=this._renderService.dimensions.actualCellHeight,B=ut.getWidth(dt),U=this._renderService.dimensions.actualCellWidth*B,tt=this.buffer.y*this._renderService.dimensions.actualCellHeight,Ye=dt*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=Ye+"px",this.textarea.style.top=tt+"px",this.textarea.style.width=U+"px",this.textarea.style.height=Ut+"px",this.textarea.style.lineHeight=Ut+"px",this.textarea.style.zIndex="-5"}}},Ct.prototype._initGlobal=function(){var We=this;this._bindKeys(),this.register((0,E.addDisposableDomListener)(this.element,"copy",function(dt){We.hasSelection()&&(0,k.copyHandler)(dt,We._selectionService)}));var ut=function(Ut){return(0,k.handlePasteEvent)(Ut,We.textarea,We.coreService)};this.register((0,E.addDisposableDomListener)(this.textarea,"paste",ut)),this.register((0,E.addDisposableDomListener)(this.element,"paste",ut)),M.isFirefox?this.register((0,E.addDisposableDomListener)(this.element,"mousedown",function(dt){2===dt.button&&(0,k.rightClickHandler)(dt,We.textarea,We.screenElement,We._selectionService,We.options.rightClickSelectsWord)})):this.register((0,E.addDisposableDomListener)(this.element,"contextmenu",function(dt){(0,k.rightClickHandler)(dt,We.textarea,We.screenElement,We._selectionService,We.options.rightClickSelectsWord)})),M.isLinux&&this.register((0,E.addDisposableDomListener)(this.element,"auxclick",function(dt){1===dt.button&&(0,k.moveTextAreaUnderMouseCursor)(dt,We.textarea,We.screenElement)}))},Ct.prototype._bindKeys=function(){var We=this;this.register((0,E.addDisposableDomListener)(this.textarea,"keyup",function(ut){return We._keyUp(ut)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"keydown",function(ut){return We._keyDown(ut)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"keypress",function(ut){return We._keyPress(ut)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionstart",function(){return We._compositionHelper.compositionstart()})),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionupdate",function(ut){return We._compositionHelper.compositionupdate(ut)})),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionend",function(){return We._compositionHelper.compositionend()})),this.register((0,E.addDisposableDomListener)(this.textarea,"input",function(ut){return We._inputEvent(ut)},!0)),this.register(this.onRender(function(){return We._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ut){return We._queueLinkification(ut.start,ut.end)}))},Ct.prototype.open=function(We){var ut=this;if(!We)throw new Error("Terminal requires a parent element.");We.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=We.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),We.appendChild(this.element);var dt=nt.createDocumentFragment();this._viewportElement=nt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),dt.appendChild(this._viewportElement),this._viewportScrollArea=nt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=nt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=nt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),dt.appendChild(this.screenElement),this.textarea=nt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",N.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,E.addDisposableDomListener)(this.textarea,"focus",function(U){return ut._onTextAreaFocus(U)})),this.register((0,E.addDisposableDomListener)(this.textarea,"blur",function(){return ut._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ut=this._instantiationService.createInstance(st.CoreBrowserService,this.textarea);this._instantiationService.setService(le.ICoreBrowserService,Ut),this._charSizeService=this._instantiationService.createInstance(ce.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(le.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new fe.ColorManager(nt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(U){return ut._colorManager.onOptionsChange(U)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Et.CharacterJoinerService),this._instantiationService.setService(le.ICharacterJoinerService,this._characterJoinerService);var B=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(de.RenderService,B,this.rows,this.screenElement)),this._instantiationService.setService(le.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(U){return ut._onRender.fire(U)})),this.onResize(function(U){return ut._renderService.resize(U.cols,U.rows)}),this._compositionView=nt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(L.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(dt),this._soundService=this._instantiationService.createInstance(F.SoundService),this._instantiationService.setService(le.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(me.MouseService),this._instantiationService.setService(le.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(v.Viewport,function(U){return ut.scrollLines(U,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ut.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ut._renderService.onCursorMove(),ut._syncTextArea()})),this.register(this.onResize(function(){return ut._renderService.onResize(ut.cols,ut.rows)})),this.register(this.onBlur(function(){return ut._renderService.onBlur()})),this.register(this.onFocus(function(){return ut._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ut.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(T.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(le.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(U){return ut.scrollLines(U.amount,U.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ut._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(U){return ut._renderService.onSelectionChanged(U.start,U.end,U.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(U){ut.textarea.value=U,ut.textarea.focus(),ut.textarea.select()})),this.register(this._onScroll.event(function(U){ut.viewport.syncScrollArea(),ut._selectionService.refresh()})),this.register((0,E.addDisposableDomListener)(this._viewportElement,"scroll",function(){return ut._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(X.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ut._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Ze.BufferDecorationRenderer,this.screenElement)),this.register((0,E.addDisposableDomListener)(this.element,"mousedown",function(U){return ut._selectionService.onMouseDown(U)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance($t.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!ut._overviewRulerRenderer&&ut.options.overviewRulerWidth&&ut._viewportElement&&ut.screenElement&&(ut._overviewRulerRenderer=ut._instantiationService.createInstance($t.OverviewRulerRenderer,ut._viewportElement,ut.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ct.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(S.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(Y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ct.prototype._setTheme=function(We){var ut,dt,Ut;this._theme=We,null===(ut=this._colorManager)||void 0===ut||ut.setTheme(We),null===(dt=this._renderService)||void 0===dt||dt.setColors(this._colorManager.colors),null===(Ut=this.viewport)||void 0===Ut||Ut.onThemeChange(this._colorManager.colors)},Ct.prototype.bindMouse=function(){var We=this,ut=this,dt=this.element;function Ut(t){var Dt,Zt,zt=ut._mouseService.getRawByteCoords(t,ut.screenElement,ut.cols,ut.rows);if(!zt)return!1;switch(t.overrideType||t.type){case"mousemove":Zt=32,void 0===t.buttons?(Dt=3,void 0!==t.button&&(Dt=t.button<3?t.button:3)):Dt=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":Zt=0,Dt=t.button<3?t.button:3;break;case"mousedown":Zt=1,Dt=t.button<3?t.button:3;break;case"wheel":if(0===ut.viewport.getLinesScrolled(t))return!1;Zt=t.deltaY<0?0:1,Dt=4;break;default:return!1}return!(void 0===Zt||void 0===Dt||Dt>4)&&ut.coreMouseService.triggerMouseEvent({col:zt.x-33,row:zt.y-33,button:Dt,action:Zt,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}var B={mouseup:null,wheel:null,mousedrag:null,mousemove:null},U=function(Dt){return Ut(Dt),Dt.buttons||(We._document.removeEventListener("mouseup",B.mouseup),B.mousedrag&&We._document.removeEventListener("mousemove",B.mousedrag)),We.cancel(Dt)},tt=function(Dt){return Ut(Dt),We.cancel(Dt,!0)},Ye=function(Dt){Dt.buttons&&Ut(Dt)},ge=function(Dt){Dt.buttons||Ut(Dt)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===We.optionsService.rawOptions.logLevel&&We._logService.debug("Binding to mouse events:",We.coreMouseService.explainEvents(t)),We.element.classList.add("enable-mouse-events"),We._selectionService.disable()):(We._logService.debug("Unbinding from mouse events."),We.element.classList.remove("enable-mouse-events"),We._selectionService.enable()),8&t?B.mousemove||(dt.addEventListener("mousemove",ge),B.mousemove=ge):(dt.removeEventListener("mousemove",B.mousemove),B.mousemove=null),16&t?B.wheel||(dt.addEventListener("wheel",tt,{passive:!1}),B.wheel=tt):(dt.removeEventListener("wheel",B.wheel),B.wheel=null),2&t?B.mouseup||(B.mouseup=U):(We._document.removeEventListener("mouseup",B.mouseup),B.mouseup=null),4&t?B.mousedrag||(B.mousedrag=Ye):(We._document.removeEventListener("mousemove",B.mousedrag),B.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,E.addDisposableDomListener)(dt,"mousedown",function(t){if(t.preventDefault(),We.focus(),We.coreMouseService.areMouseEventsActive&&!We._selectionService.shouldForceSelection(t))return Ut(t),B.mouseup&&We._document.addEventListener("mouseup",B.mouseup),B.mousedrag&&We._document.addEventListener("mousemove",B.mousedrag),We.cancel(t)})),this.register((0,E.addDisposableDomListener)(dt,"wheel",function(t){if(!B.wheel){if(!We.buffer.hasScrollback){var Dt=We.viewport.getLinesScrolled(t);if(0===Dt)return;for(var Zt=b.C0.ESC+(We.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),zt="",sn=0;sn<Math.abs(Dt);sn++)zt+=Zt;return We.coreService.triggerDataEvent(zt,!0),We.cancel(t,!0)}return We.viewport.onWheel(t)?We.cancel(t):void 0}},{passive:!1})),this.register((0,E.addDisposableDomListener)(dt,"touchstart",function(t){if(!We.coreMouseService.areMouseEventsActive)return We.viewport.onTouchStart(t),We.cancel(t)},{passive:!0})),this.register((0,E.addDisposableDomListener)(dt,"touchmove",function(t){if(!We.coreMouseService.areMouseEventsActive)return We.viewport.onTouchMove(t)?void 0:We.cancel(t)},{passive:!1}))},Ct.prototype.refresh=function(We,ut){var dt;null===(dt=this._renderService)||void 0===dt||dt.refreshRows(We,ut)},Ct.prototype._queueLinkification=function(We,ut){var dt;null===(dt=this.linkifier)||void 0===dt||dt.linkifyRows(We,ut)},Ct.prototype.updateCursorStyle=function(We){var ut;null!==(ut=this._selectionService)&&void 0!==ut&&ut.shouldColumnSelect(We)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ct.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ct.prototype.scrollLines=function(We,ut,dt){void 0===dt&&(dt=0),_t.prototype.scrollLines.call(this,We,ut,dt),this.refresh(0,this.rows-1)},Ct.prototype.paste=function(We){(0,k.paste)(We,this.textarea,this.coreService)},Ct.prototype.attachCustomKeyEventHandler=function(We){this._customKeyEventHandler=We},Ct.prototype.registerLinkMatcher=function(We,ut,dt){var Ut=this.linkifier.registerLinkMatcher(We,ut,dt);return this.refresh(0,this.rows-1),Ut},Ct.prototype.deregisterLinkMatcher=function(We){this.linkifier.deregisterLinkMatcher(We)&&this.refresh(0,this.rows-1)},Ct.prototype.registerLinkProvider=function(We){return this.linkifier2.registerLinkProvider(We)},Ct.prototype.registerCharacterJoiner=function(We){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var ut=this._characterJoinerService.register(We);return this.refresh(0,this.rows-1),ut},Ct.prototype.deregisterCharacterJoiner=function(We){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(We)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ct.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ct.prototype.addMarker=function(We){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+We)},Ct.prototype.registerDecoration=function(We){return this._decorationService.registerDecoration(We)},Ct.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ct.prototype.select=function(We,ut,dt){this._selectionService.setSelection(We,ut,dt)},Ct.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ct.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ct.prototype.clearSelection=function(){var We;null===(We=this._selectionService)||void 0===We||We.clearSelection()},Ct.prototype.selectAll=function(){var We;null===(We=this._selectionService)||void 0===We||We.selectAll()},Ct.prototype.selectLines=function(We,ut){var dt;null===(dt=this._selectionService)||void 0===dt||dt.selectLines(We,ut)},Ct.prototype._keyDown=function(We){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(We))return!1;var ut=this.browser.isMac&&this.options.macOptionIsMeta&&We.altKey;if(!ut&&!this._compositionHelper.keydown(We))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;ut||"Dead"!==We.key&&"AltGraph"!==We.key||(this._unprocessedDeadKey=!0);var dt=(0,Q.evaluateKeyboardEvent)(We,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(We),3===dt.type||2===dt.type){var Ut=this.rows-1;return this.scrollLines(2===dt.type?-Ut:Ut),this.cancel(We,!0)}return 1===dt.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,We)||(dt.cancel&&this.cancel(We,!0),!dt.key||!!(We.key&&!We.ctrlKey&&!We.altKey&&!We.metaKey&&1===We.key.length&&We.key.charCodeAt(0)>=65&&We.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(dt.key!==b.C0.ETX&&dt.key!==b.C0.CR||(this.textarea.value=""),this._onKey.fire({key:dt.key,domEvent:We}),this._showCursor(),this.coreService.triggerDataEvent(dt.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(We,!0))))},Ct.prototype._isThirdLevelShift=function(We,ut){var dt=We.isMac&&!this.options.macOptionIsMeta&&ut.altKey&&!ut.ctrlKey&&!ut.metaKey||We.isWindows&&ut.altKey&&ut.ctrlKey&&!ut.metaKey||We.isWindows&&ut.getModifierState("AltGraph");return"keypress"===ut.type?dt:dt&&(!ut.keyCode||ut.keyCode>47)},Ct.prototype._keyUp=function(We){var ut;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(We)||(16===(ut=We).keyCode||17===ut.keyCode||18===ut.keyCode||this.focus(),this.updateCursorStyle(We),this._keyPressHandled=!1)},Ct.prototype._keyPress=function(We){var ut;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(We))return!1;if(this.cancel(We),We.charCode)ut=We.charCode;else if(null===We.which||void 0===We.which)ut=We.keyCode;else{if(0===We.which||0===We.charCode)return!1;ut=We.which}return!(!ut||(We.altKey||We.ctrlKey||We.metaKey)&&!this._isThirdLevelShift(this.browser,We)||(ut=String.fromCharCode(ut),this._onKey.fire({key:ut,domEvent:We}),this._showCursor(),this.coreService.triggerDataEvent(ut,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},Ct.prototype._inputEvent=function(We){if(We.data&&"insertText"===We.inputType&&(!We.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var ut=We.data;return this.coreService.triggerDataEvent(ut,!0),this.cancel(We),!0}return!1},Ct.prototype.bell=function(){var We;this._soundBell()&&(null===(We=this._soundService)||void 0===We||We.playBellSound()),this._onBell.fire()},Ct.prototype.resize=function(We,ut){We!==this.cols||ut!==this.rows?_t.prototype.resize.call(this,We,ut):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ct.prototype._afterResize=function(We,ut){var dt,Ut;null===(dt=this._charSizeService)||void 0===dt||dt.measure(),null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea(!0)},Ct.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var We=1;We<this.rows;We++)this.buffer.lines.push(this.buffer.getBlankLine(be.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Ct.prototype.reset=function(){var We,ut;this.options.rows=this.rows,this.options.cols=this.cols;var dt=this._customKeyEventHandler;this._setup(),_t.prototype.reset.call(this),null===(We=this._selectionService)||void 0===We||We.reset(),this._decorationService.reset(),this._customKeyEventHandler=dt,this.refresh(0,this.rows-1),null===(ut=this.viewport)||void 0===ut||ut.syncScrollArea()},Ct.prototype.clearTextureAtlas=function(){var We;null===(We=this._renderService)||void 0===We||We.clearTextureAtlas()},Ct.prototype._reportFocus=function(){var We;null!==(We=this.element)&&void 0!==We&&We.classList.contains("focus")?this.coreService.triggerDataEvent(b.C0.ESC+"[I"):this.coreService.triggerDataEvent(b.C0.ESC+"[O")},Ct.prototype._reportWindowsOptions=function(We){if(this._renderService)switch(We){case O.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var ut=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),dt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(b.C0.ESC+"[4;"+dt+";"+ut+"t");break;case O.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ut=this._renderService.dimensions.scaledCellWidth.toFixed(0),B=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(b.C0.ESC+"[6;"+B+";"+Ut+"t")}},Ct.prototype.cancel=function(We,ut){if(this.options.cancelEvents||ut)return We.preventDefault(),We.stopPropagation(),!1},Ct.prototype._visualBell=function(){return!1},Ct.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Ct}(Mt.CoreTerminal);A.Terminal=Ot},9924:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.TimeBasedDebouncer=void 0;var H=function(){function R(P,x){void 0===x&&(x=1e3),this._renderCallback=P,this._debounceThresholdMS=x,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return R.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},R.prototype.refresh=function(P,x,D){var j=this;this._rowCount=D,P=void 0!==P?P:0,x=void 0!==x?x:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,P):P,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,x):x;var L=Date.now();if(L-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=L,this._innerRefresh();else if(!this._additionalRefreshRequested){var v=L-this._lastRefreshMs,k=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){j._lastRefreshMs=Date.now(),j._innerRefresh(),j._additionalRefreshRequested=!1,j._refreshTimeoutID=void 0},k)}},R.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),x=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,x)}},R}();A.TimeBasedDebouncer=H},1680:function(W,A,H){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),x=this&&this.__decorate||function(O,S,y,T){var M,E=arguments.length,N=E<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(E<3?M(N):E>3?M(S,y,N):M(S,y))||N);return E>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.Viewport=void 0;var j=H(844),L=H(3656),v=H(4725),k=H(2585),b=function(O){function S(y,T,M,E,N,F,X,$){var Y=O.call(this)||this;return Y._scrollLines=y,Y._viewportElement=T,Y._scrollArea=M,Y._element=E,Y._bufferService=N,Y._optionsService=F,Y._charSizeService=X,Y._renderService=$,Y.scrollBarWidth=0,Y._currentRowHeight=0,Y._currentScaledCellHeight=0,Y._lastRecordedBufferLength=0,Y._lastRecordedViewportHeight=0,Y._lastRecordedBufferHeight=0,Y._lastTouchY=0,Y._lastScrollTop=0,Y._wheelPartialScroll=0,Y._refreshAnimationFrame=null,Y._ignoreNextScrollEvent=!1,Y.scrollBarWidth=Y._viewportElement.offsetWidth-Y._scrollArea.offsetWidth||15,Y.register((0,L.addDisposableDomListener)(Y._viewportElement,"scroll",Y._onScroll.bind(Y))),Y._activeBuffer=Y._bufferService.buffer,Y.register(Y._bufferService.buffers.onBufferActivate(function(Q){return Y._activeBuffer=Q.activeBuffer})),Y._renderDimensions=Y._renderService.dimensions,Y.register(Y._renderService.onDimensionsChange(function(Q){return Y._renderDimensions=Q})),setTimeout(function(){return Y.syncScrollArea()},0),Y}return P(S,O),S.prototype.onThemeChange=function(y){this._viewportElement.style.backgroundColor=y.background.css},S.prototype._refresh=function(y){var T=this;if(y)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return T._innerRefresh()}))},S.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var y=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==y&&(this._lastRecordedBufferHeight=y,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var T=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==T&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=T),this._refreshAnimationFrame=null},S.prototype.syncScrollArea=function(y){if(void 0===y&&(y=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(y);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(y)},S.prototype._onScroll=function(y){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var T=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(T)}},S.prototype._bubbleScroll=function(y,T){var M=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(T<0&&0!==this._viewportElement.scrollTop||T>0&&M<this._lastRecordedBufferHeight)||(y.cancelable&&y.preventDefault(),!1)},S.prototype.onWheel=function(y){var T=this._getPixelsScrolled(y);return 0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},S.prototype._getPixelsScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_LINE?T*=this._currentRowHeight:y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._currentRowHeight*this._bufferService.rows),T},S.prototype.getLinesScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(T/=this._currentRowHeight+0,this._wheelPartialScroll+=T,T=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._bufferService.rows),T},S.prototype._applyScrollModifier=function(y,T){var M=this._optionsService.rawOptions.fastScrollModifier;return"alt"===M&&T.altKey||"ctrl"===M&&T.ctrlKey||"shift"===M&&T.shiftKey?y*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:y*this._optionsService.rawOptions.scrollSensitivity},S.prototype.onTouchStart=function(y){this._lastTouchY=y.touches[0].pageY},S.prototype.onTouchMove=function(y){var T=this._lastTouchY-y.touches[0].pageY;return this._lastTouchY=y.touches[0].pageY,0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},x([D(4,k.IBufferService),D(5,k.IOptionsService),D(6,v.ICharSizeService),D(7,v.IRenderService)],S)}(j.Disposable);A.Viewport=b},3107:function(W,A,H){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(M[N]=E[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),x=this&&this.__decorate||function(S,y,T,M){var E,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(E=S[X])&&(F=(N<3?E(F):N>3?E(y,T,F):E(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},j=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferDecorationRenderer=void 0;var L=H(3656),v=H(4725),k=H(844),b=H(2585),O=function(S){function y(T,M,E,N){var F=S.call(this)||this;return F._screenElement=T,F._bufferService=M,F._decorationService=E,F._renderService=N,F._decorationElements=new Map,F._altBufferIsActive=!1,F._dimensionsChanged=!1,F._container=document.createElement("div"),F._container.classList.add("xterm-decoration-container"),F._screenElement.appendChild(F._container),F.register(F._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),F.register(F._renderService.onDimensionsChange(function(){F._dimensionsChanged=!0,F._queueRefresh()})),F.register((0,L.addDisposableDomListener)(window,"resize",function(){return F._queueRefresh()})),F.register(F._bufferService.buffers.onBufferActivate(function(){F._altBufferIsActive=F._bufferService.buffer===F._bufferService.buffers.alt})),F.register(F._decorationService.onDecorationRegistered(function(){return F._queueRefresh()})),F.register(F._decorationService.onDecorationRemoved(function(X){return F._removeDecoration(X)})),F}return P(y,S),y.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),S.prototype.dispose.call(this)},y.prototype._queueRefresh=function(){var T=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){T.refreshDecorations(),T._animationFrame=void 0}))},y.prototype.refreshDecorations=function(){var T,M;try{for(var E=j(this._decorationService.decorations),N=E.next();!N.done;N=E.next()){var F=N.value;this._renderDecoration(F)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=E.return)&&M.call(E)}finally{if(T)throw T.error}}this._dimensionsChanged=!1},y.prototype._renderDecoration=function(T){this._refreshStyle(T),this._dimensionsChanged&&this._refreshXPosition(T)},y.prototype._createElement=function(T){var M,E=document.createElement("div");E.classList.add("xterm-decoration"),E.style.width=Math.round((T.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",E.style.height=(T.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",E.style.top=(T.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",E.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var N=null!==(M=T.options.x)&&void 0!==M?M:0;return N&&N>this._bufferService.cols&&(E.style.display="none"),this._refreshXPosition(T,E),E},y.prototype._refreshStyle=function(T){var M=this,E=T.marker.line-this._bufferService.buffers.active.ydisp;if(E<0||E>=this._bufferService.rows)T.element&&(T.element.style.display="none",T.onRenderEmitter.fire(T.element));else{var N=this._decorationElements.get(T);N||(T.onDispose(function(){return M._removeDecoration(T)}),N=this._createElement(T),T.element=N,this._decorationElements.set(T,N),this._container.appendChild(N)),N.style.top=E*this._renderService.dimensions.actualCellHeight+"px",N.style.display=this._altBufferIsActive?"none":"block",T.onRenderEmitter.fire(N)}},y.prototype._refreshXPosition=function(T,M){var E;if(void 0===M&&(M=T.element),M){var N=null!==(E=T.options.x)&&void 0!==E?E:0;"right"===(T.options.anchor||"left")?M.style.right=N?N*this._renderService.dimensions.actualCellWidth+"px":"":M.style.left=N?N*this._renderService.dimensions.actualCellWidth+"px":""}},y.prototype._removeDecoration=function(T){var M;null===(M=this._decorationElements.get(T))||void 0===M||M.remove(),this._decorationElements.delete(T)},x([D(1,b.IBufferService),D(2,b.IDecorationService),D(3,v.IRenderService)],y)}(k.Disposable);A.BufferDecorationRenderer=O},5871:function(W,A){var H=this&&this.__values||function(P){var x="function"==typeof Symbol&&Symbol.iterator,D=x&&P[x],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorZoneStore=void 0;var R=function(){function P(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(P.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),P.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},P.prototype.addDecoration=function(x){var D,j;if(x.options.overviewRulerOptions){try{for(var L=H(this._zones),v=L.next();!v.done;v=L.next()){var k=v.value;if(k.color===x.options.overviewRulerOptions.color&&k.position===x.options.overviewRulerOptions.position){if(this._lineIntersectsZone(k,x.marker.line))return;if(this._lineAdjacentToZone(k,x.marker.line,x.options.overviewRulerOptions.position))return void this._addLineToZone(k,x.marker.line)}}}catch(b){D={error:b}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=x.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=x.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=x.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=x.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:x.options.overviewRulerOptions.color,position:x.options.overviewRulerOptions.position,startBufferLine:x.marker.line,endBufferLine:x.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},P.prototype.setPadding=function(x){this._linePadding=x},P.prototype._lineIntersectsZone=function(x,D){return D>=x.startBufferLine&&D<=x.endBufferLine},P.prototype._lineAdjacentToZone=function(x,D,j){return D>=x.startBufferLine-this._linePadding[j||"full"]&&D<=x.endBufferLine+this._linePadding[j||"full"]},P.prototype._addLineToZone=function(x,D){x.startBufferLine=Math.min(x.startBufferLine,D),x.endBufferLine=Math.max(x.endBufferLine,D)},P}();A.ColorZoneStore=R},5744:function(W,A,H){var R,P=this&&this.__extends||(R=function(N,F){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var Y in $)Object.prototype.hasOwnProperty.call($,Y)&&(X[Y]=$[Y])})(N,F)},function(E,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=E}R(E,N),E.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),x=this&&this.__decorate||function(E,N,F,X){var $,Y=arguments.length,Q=Y<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(E,N,F,X);else for(var ne=E.length-1;ne>=0;ne--)($=E[ne])&&(Q=(Y<3?$(Q):Y>3?$(N,F,Q):$(N,F))||Q);return Y>3&&Q&&Object.defineProperty(N,F,Q),Q},D=this&&this.__param||function(E,N){return function(F,X){N(F,X,E)}},j=this&&this.__values||function(E){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&E[N],X=0;if(F)return F.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&X>=E.length&&(E=void 0),{value:E&&E[X++],done:!E}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.OverviewRulerRenderer=void 0;var L=H(5871),v=H(3656),k=H(4725),b=H(844),O=H(2585),S={full:0,left:0,center:0,right:0},y={full:0,left:0,center:0,right:0},T={full:0,left:0,center:0,right:0},M=function(E){function N(F,X,$,Y,Q,ne){var be,fe=E.call(this)||this;fe._viewportElement=F,fe._screenElement=X,fe._bufferService=$,fe._decorationService=Y,fe._renderService=Q,fe._optionsService=ne,fe._colorZoneStore=new L.ColorZoneStore,fe._shouldUpdateDimensions=!0,fe._shouldUpdateAnchor=!0,fe._lastKnownBufferLength=0,fe._canvas=document.createElement("canvas"),fe._canvas.classList.add("xterm-decoration-overview-ruler"),fe._refreshCanvasDimensions(),null===(be=fe._viewportElement.parentElement)||void 0===be||be.insertBefore(fe._canvas,fe._viewportElement);var de=fe._canvas.getContext("2d");if(!de)throw new Error("Ctx cannot be null");return fe._ctx=de,fe._registerDecorationListeners(),fe._registerBufferChangeListeners(),fe._registerDimensionChangeListeners(),fe}return P(N,E),Object.defineProperty(N.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),N.prototype._registerDecorationListeners=function(){var F=this;this.register(this._decorationService.onDecorationRegistered(function(){return F._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return F._queueRefresh(void 0,!0)}))},N.prototype._registerBufferChangeListeners=function(){var F=this;this.register(this._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){F._canvas.style.display=F._bufferService.buffer===F._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){F._lastKnownBufferLength!==F._bufferService.buffers.normal.lines.length&&(F._refreshDrawHeightConstants(),F._refreshColorZonePadding())}))},N.prototype._registerDimensionChangeListeners=function(){var F=this;this.register(this._renderService.onRender(function(){F._containerHeight&&F._containerHeight===F._screenElement.clientHeight||(F._queueRefresh(!0),F._containerHeight=F._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(X){"overviewRulerWidth"===X&&F._queueRefresh(!0)})),this.register((0,v.addDisposableDomListener)(window,"resize",function(){F._queueRefresh(!0)})),this._queueRefresh(!0)},N.prototype.dispose=function(){var F;null===(F=this._canvas)||void 0===F||F.remove(),E.prototype.dispose.call(this)},N.prototype._refreshDrawConstants=function(){var F=Math.floor(this._canvas.width/3),X=Math.ceil(this._canvas.width/3);y.full=this._canvas.width,y.left=F,y.center=X,y.right=F,this._refreshDrawHeightConstants(),T.full=0,T.left=0,T.center=y.left,T.right=y.left+y.center},N.prototype._refreshDrawHeightConstants=function(){S.full=Math.round(2*window.devicePixelRatio);var F=this._canvas.height/this._bufferService.buffer.lines.length,X=Math.round(Math.max(Math.min(F,12),6)*window.devicePixelRatio);S.left=X,S.center=X,S.right=X},N.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},N.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},N.prototype._refreshDecorations=function(){var F,X,$,Y,Q,ne;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var be=j(this._decorationService.decorations),fe=be.next();!fe.done;fe=be.next()){var de=fe.value;this._colorZoneStore.addDecoration(de)}}catch(Tt){F={error:Tt}}finally{try{fe&&!fe.done&&(X=be.return)&&X.call(be)}finally{if(F)throw F.error}}this._ctx.lineWidth=1;var le=this._colorZoneStore.zones;try{for(var ce=j(le),me=ce.next();!me.done;me=ce.next())"full"!==(Mt=me.value).position&&this._renderColorZone(Mt)}catch(Tt){$={error:Tt}}finally{try{me&&!me.done&&(Y=ce.return)&&Y.call(ce)}finally{if($)throw $.error}}try{for(var je=j(le),st=je.next();!st.done;st=je.next()){var Mt;"full"===(Mt=st.value).position&&this._renderColorZone(Mt)}}catch(Tt){Q={error:Tt}}finally{try{st&&!st.done&&(ne=je.return)&&ne.call(je)}finally{if(Q)throw Q.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},N.prototype._renderColorZone=function(F){this._ctx.fillStyle=F.color,this._ctx.fillRect(T[F.position||"full"],Math.round((this._canvas.height-1)*(F.startBufferLine/this._bufferService.buffers.active.lines.length)-S[F.position||"full"]/2),y[F.position||"full"],Math.round((this._canvas.height-1)*((F.endBufferLine-F.startBufferLine)/this._bufferService.buffers.active.lines.length)+S[F.position||"full"]))},N.prototype._queueRefresh=function(F,X){var $=this;this._shouldUpdateDimensions=F||this._shouldUpdateDimensions,this._shouldUpdateAnchor=X||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){$._refreshDecorations(),$._animationFrame=void 0}))},x([D(2,O.IBufferService),D(3,O.IDecorationService),D(4,k.IRenderService),D(5,O.IOptionsService)],N)}(b.Disposable);A.OverviewRulerRenderer=M},2950:function(W,A,H){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CompositionHelper=void 0;var x=H(4725),D=H(2585),j=function(){function L(v,k,b,O,S,y){this._textarea=v,this._compositionView=k,this._bufferService=b,this._optionsService=O,this._coreService=S,this._renderService=y,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(L.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),L.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},L.prototype.compositionupdate=function(v){var k=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){k._compositionPosition.end=k._textarea.value.length},0)},L.prototype.compositionend=function(){this._finalizeComposition(!0)},L.prototype.keydown=function(v){if(this._isComposing||this._isSendingComposition){if(229===v.keyCode||16===v.keyCode||17===v.keyCode||18===v.keyCode)return!1;this._finalizeComposition(!1)}return 229!==v.keyCode||(this._handleAnyTextareaChanges(),!1)},L.prototype._finalizeComposition=function(v){var k=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var S;k._isSendingComposition&&(k._isSendingComposition=!1,b.start+=k._dataAlreadySent.length,(S=k._isComposing?k._textarea.value.substring(b.start,b.end):k._textarea.value.substring(b.start)).length>0&&k._coreService.triggerDataEvent(S,!0))},0)}else{this._isSendingComposition=!1;var O=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(O,!0)}},L.prototype._handleAnyTextareaChanges=function(){var v=this,k=this._textarea.value;setTimeout(function(){if(!v._isComposing){var b=v._textarea.value.replace(k,"");b.length>0&&(v._dataAlreadySent=b,v._coreService.triggerDataEvent(b,!0))}},0)},L.prototype.updateCompositionElements=function(v){var k=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),O=this._renderService.dimensions.actualCellHeight,S=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,y=b*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=y+"px",this._compositionView.style.top=S+"px",this._compositionView.style.height=O+"px",this._compositionView.style.lineHeight=O+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var T=this._compositionView.getBoundingClientRect();this._textarea.style.left=y+"px",this._textarea.style.top=S+"px",this._textarea.style.width=Math.max(T.width,1)+"px",this._textarea.style.height=Math.max(T.height,1)+"px",this._textarea.style.lineHeight=T.height+"px"}v||setTimeout(function(){return k.updateCompositionElements(!0)},0)}},R([P(2,D.IBufferService),P(3,D.IOptionsService),P(4,D.ICoreService),P(5,x.IRenderService)],L)}();A.CompositionHelper=j},9806:function(W,A){function H(R,P,x){var D=x.getBoundingClientRect(),j=R.getComputedStyle(x),L=parseInt(j.getPropertyValue("padding-left")),v=parseInt(j.getPropertyValue("padding-top"));return[P.clientX-D.left-L,P.clientY-D.top-v]}Object.defineProperty(A,"__esModule",{value:!0}),A.getRawByteCoords=A.getCoords=A.getCoordsRelativeToElement=void 0,A.getCoordsRelativeToElement=H,A.getCoords=function(R,P,x,D,j,L,v,k,b){if(L){var O=H(R,P,x);if(O)return O[0]=Math.ceil((O[0]+(b?v/2:0))/v),O[1]=Math.ceil(O[1]/k),O[0]=Math.min(Math.max(O[0],1),D+(b?1:0)),O[1]=Math.min(Math.max(O[1],1),j),O}},A.getRawByteCoords=function(R){if(R)return{x:R[0]+32,y:R[1]+32}}},9504:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.moveToCellSequence=void 0;var R=H(2584);function P(k,b,O,S){var y=k-x(O,k),T=b-x(O,b);return v(Math.abs(y-T)-function(E,N,F){for(var X=0,$=E-x(F,E),Y=N-x(F,N),Q=0;Q<Math.abs($-Y);Q++){var ne="A"===D(E,N)?-1:1,be=F.buffer.lines.get($+ne*Q);null!=be&&be.isWrapped&&X++}return X}(k,b,O),L(D(k,b),S))}function x(k,b){for(var O=0,S=k.buffer.lines.get(b),y=null==S?void 0:S.isWrapped;y&&b>=0&&b<k.rows;)O++,y=null==(S=k.buffer.lines.get(--b))?void 0:S.isWrapped;return O}function D(k,b){return k>b?"A":"B"}function j(k,b,O,S,y,T){for(var M=k,E=b,N="";M!==O||E!==S;)M+=y?1:-1,y&&M>T.cols-1?(N+=T.buffer.translateBufferLineToString(E,!1,k,M),M=0,k=0,E++):!y&&M<0&&(N+=T.buffer.translateBufferLineToString(E,!1,0,k+1),k=M=T.cols-1,E--);return N+T.buffer.translateBufferLineToString(E,!1,k,M)}function L(k,b){var O=b?"O":"[";return R.C0.ESC+O+k}function v(k,b){k=Math.floor(k);for(var O="",S=0;S<k;S++)O+=b;return O}A.moveToCellSequence=function(k,b,O,S){var y,N,F,Y,Q,T=O.buffer.x,M=O.buffer.y;if(!O.buffer.hasScrollback)return N=T,(0===P(F=M,b,Y=O,Q=S).length?"":v(j(N,F,N,F-x(Y,F),!1,Y).length,L("D",Q)))+P(M,b,O,S)+function(N,F,X,$,Y,Q){var ne;ne=P(F,$,Y,Q).length>0?$-x(Y,$):F;var de,le,ce,me,je,Mt,be=$,fe=(de=N,le=F,Mt=P(ce=X,me=$,je=Y,Q).length>0?me-x(je,me):le,de<ce&&Mt<=me||de>=ce&&Mt<me?"C":"D");return v(j(N,ne,X,be,"C"===fe,Y).length,L(fe,Q))}(T,M,k,b,O,S);if(M===b)return y=T>k?"D":"C",v(Math.abs(T-k),L(y,S));y=M>b?"D":"C";var E=Math.abs(M-b);return v(function(N,F){return F.cols-N}(M>b?k:T,O)+(E-1)*O.cols+1+((M>b?T:k)-1),L(y,S))}},4389:function(W,A,H){var R=this&&this.__assign||function(){return R=Object.assign||function(S){for(var y,T=1,M=arguments.length;T<M;T++)for(var E in y=arguments[T])Object.prototype.hasOwnProperty.call(y,E)&&(S[E]=y[E]);return S},R.apply(this,arguments)},P=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var x=H(3236),D=H(9042),j=H(7975),L=H(7090),v=H(5741),k=H(8285),b=["cols","rows"],O=function(){function S(y){var T=this;this._core=new x.Terminal(y),this._addonManager=new v.AddonManager,this._publicOptions=R({},this._core.options);var M=function($){return T._core.options[$]},E=function($,Y){T._checkReadonlyOptions($),T._core.options[$]=Y};for(var N in this._core.options){var F={get:M.bind(this,N),set:E.bind(this,N)};Object.defineProperty(this._publicOptions,N,F)}}return S.prototype._checkReadonlyOptions=function(y){if(b.includes(y))throw new Error('Option "'+y+'" can only be set in the constructor')},S.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(S.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new j.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"unicode",{get:function(){return this._checkProposedApi(),new L.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new k.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"modes",{get:function(){var T=this._core.coreService.decPrivateModes,M="none";switch(this._core.coreMouseService.activeProtocol){case"X10":M="x10";break;case"VT200":M="vt200";break;case"DRAG":M="drag";break;case"ANY":M="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:M,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"options",{get:function(){return this._publicOptions},set:function(T){for(var M in T)this._publicOptions[M]=T[M]},enumerable:!1,configurable:!0}),S.prototype.blur=function(){this._core.blur()},S.prototype.focus=function(){this._core.focus()},S.prototype.resize=function(y,T){this._verifyIntegers(y,T),this._core.resize(y,T)},S.prototype.open=function(y){this._core.open(y)},S.prototype.attachCustomKeyEventHandler=function(y){this._core.attachCustomKeyEventHandler(y)},S.prototype.registerLinkMatcher=function(y,T,M){return this._checkProposedApi(),this._core.registerLinkMatcher(y,T,M)},S.prototype.deregisterLinkMatcher=function(y){this._checkProposedApi(),this._core.deregisterLinkMatcher(y)},S.prototype.registerLinkProvider=function(y){return this._checkProposedApi(),this._core.registerLinkProvider(y)},S.prototype.registerCharacterJoiner=function(y){return this._checkProposedApi(),this._core.registerCharacterJoiner(y)},S.prototype.deregisterCharacterJoiner=function(y){this._checkProposedApi(),this._core.deregisterCharacterJoiner(y)},S.prototype.registerMarker=function(y){return void 0===y&&(y=0),this._checkProposedApi(),this._verifyIntegers(y),this._core.addMarker(y)},S.prototype.registerDecoration=function(y){var T,M,E;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(T=y.x)&&void 0!==T?T:0,null!==(M=y.width)&&void 0!==M?M:0,null!==(E=y.height)&&void 0!==E?E:0),this._core.registerDecoration(y)},S.prototype.addMarker=function(y){return this.registerMarker(y)},S.prototype.hasSelection=function(){return this._core.hasSelection()},S.prototype.select=function(y,T,M){this._verifyIntegers(y,T,M),this._core.select(y,T,M)},S.prototype.getSelection=function(){return this._core.getSelection()},S.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},S.prototype.clearSelection=function(){this._core.clearSelection()},S.prototype.selectAll=function(){this._core.selectAll()},S.prototype.selectLines=function(y,T){this._verifyIntegers(y,T),this._core.selectLines(y,T)},S.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},S.prototype.scrollLines=function(y){this._verifyIntegers(y),this._core.scrollLines(y)},S.prototype.scrollPages=function(y){this._verifyIntegers(y),this._core.scrollPages(y)},S.prototype.scrollToTop=function(){this._core.scrollToTop()},S.prototype.scrollToBottom=function(){this._core.scrollToBottom()},S.prototype.scrollToLine=function(y){this._verifyIntegers(y),this._core.scrollToLine(y)},S.prototype.clear=function(){this._core.clear()},S.prototype.write=function(y,T){this._core.write(y,T)},S.prototype.writeUtf8=function(y,T){this._core.write(y,T)},S.prototype.writeln=function(y,T){this._core.write(y),this._core.write("\r\n",T)},S.prototype.paste=function(y){this._core.paste(y)},S.prototype.getOption=function(y){return this._core.optionsService.getOption(y)},S.prototype.setOption=function(y,T){this._checkReadonlyOptions(y),this._core.optionsService.setOption(y,T)},S.prototype.refresh=function(y,T){this._verifyIntegers(y,T),this._core.refresh(y,T)},S.prototype.reset=function(){this._core.reset()},S.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},S.prototype.loadAddon=function(y){return this._addonManager.loadAddon(this,y)},Object.defineProperty(S,"strings",{get:function(){return D},enumerable:!1,configurable:!0}),S.prototype._verifyIntegers=function(){for(var y,T,M=[],E=0;E<arguments.length;E++)M[E]=arguments[E];try{for(var N=P(M),F=N.next();!F.done;F=N.next()){var X=F.value;if(X===1/0||isNaN(X)||X%1!=0)throw new Error("This API only accepts integers")}}catch($){y={error:$}}finally{try{F&&!F.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S.prototype._verifyPositiveIntegers=function(){for(var y,T,M=[],E=0;E<arguments.length;E++)M[E]=arguments[E];try{for(var N=P(M),F=N.next();!F.done;F=N.next()){var X=F.value;if(X&&(X===1/0||isNaN(X)||X%1!=0||X<0))throw new Error("This API only accepts positive integers")}}catch($){y={error:$}}finally{try{F&&!F.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S}();A.Terminal=O},1546:function(W,A,H){var R=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BaseRenderLayer=void 0;var P=H(643),x=H(8803),D=H(1420),j=H(3734),L=H(1752),v=H(8055),k=H(9631),b=H(8978),O=function(){function S(y,T,M,E,N,F,X,$,Y){this._container=y,this._alpha=E,this._colors=N,this._rendererId=F,this._bufferService=X,this._optionsService=$,this._decorationService=Y,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+T+"-layer"),this._canvas.style.zIndex=M.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return S.prototype.dispose=function(){var y;(0,k.removeElementFromParent)(this._canvas),null===(y=this._charAtlas)||void 0===y||y.dispose()},S.prototype._initCanvas=function(){this._ctx=(0,L.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},S.prototype.onOptionsChanged=function(){},S.prototype.onBlur=function(){},S.prototype.onFocus=function(){},S.prototype.onCursorMove=function(){},S.prototype.onGridChanged=function(y,T){},S.prototype.onSelectionChanged=function(y,T,M){void 0===M&&(M=!1),this._selectionStart=y,this._selectionEnd=T,this._columnSelectMode=M},S.prototype.setColors=function(y){this._refreshCharAtlas(y)},S.prototype._setTransparency=function(y){if(y!==this._alpha){var T=this._canvas;this._alpha=y,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,T),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},S.prototype._refreshCharAtlas=function(y){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,D.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,y,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},S.prototype.resize=function(y){this._scaledCellWidth=y.scaledCellWidth,this._scaledCellHeight=y.scaledCellHeight,this._scaledCharWidth=y.scaledCharWidth,this._scaledCharHeight=y.scaledCharHeight,this._scaledCharLeft=y.scaledCharLeft,this._scaledCharTop=y.scaledCharTop,this._canvas.width=y.scaledCanvasWidth,this._canvas.height=y.scaledCanvasHeight,this._canvas.style.width=y.canvasWidth+"px",this._canvas.style.height=y.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},S.prototype.clearTextureAtlas=function(){var y;null===(y=this._charAtlas)||void 0===y||y.clear()},S.prototype._fillCells=function(y,T,M,E){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,E*this._scaledCellHeight)},S.prototype._fillMiddleLineAtCells=function(y,T,M){void 0===M&&(M=1);var E=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-E-window.devicePixelRatio,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillBottomLineAtCells=function(y,T,M){void 0===M&&(M=1),this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-window.devicePixelRatio-1,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillLeftLineAtCell=function(y,T,M){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,window.devicePixelRatio*M,this._scaledCellHeight)},S.prototype._strokeRectAtCell=function(y,T,M,E){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(y*this._scaledCellWidth+window.devicePixelRatio/2,T*this._scaledCellHeight+window.devicePixelRatio/2,M*this._scaledCellWidth-window.devicePixelRatio,E*this._scaledCellHeight-window.devicePixelRatio)},S.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},S.prototype._clearCells=function(y,T,M,E){this._alpha?this._ctx.clearRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,E*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,E*this._scaledCellHeight))},S.prototype._fillCharTrueColor=function(y,T,M){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=x.TEXT_BASELINE,this._clipRow(M);var E=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(E=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),E||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},S.prototype._drawChars=function(y,T,M){var E,N,F,X=this._getContrastColor(y,T,M);if(X||y.isFgRGB()||y.isBgRGB())this._drawUncachedChars(y,T,M,X);else{var $,Y;y.isInverse()?($=y.isBgDefault()?x.INVERTED_DEFAULT_COLOR:y.getBgColor(),Y=y.isFgDefault()?x.INVERTED_DEFAULT_COLOR:y.getFgColor()):(Y=y.isBgDefault()?P.DEFAULT_COLOR:y.getBgColor(),$=y.isFgDefault()?P.DEFAULT_COLOR:y.getFgColor()),$+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&$<8?8:0,this._currentGlyphIdentifier.chars=y.getChars()||P.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=y.getCode()||P.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=Y,this._currentGlyphIdentifier.fg=$,this._currentGlyphIdentifier.bold=!!y.isBold(),this._currentGlyphIdentifier.dim=!!y.isDim(),this._currentGlyphIdentifier.italic=!!y.isItalic();var Q=!1;try{for(var ne=R(this._decorationService.getDecorationsAtCell(T,M)),be=ne.next();!be.done;be=ne.next()){var fe=be.value;if(fe.backgroundColorRGB||fe.foregroundColorRGB){Q=!0;break}}}catch(de){E={error:de}}finally{try{be&&!be.done&&(N=ne.return)&&N.call(ne)}finally{if(E)throw E.error}}!Q&&(null===(F=this._charAtlas)||void 0===F?void 0:F.draw(this._ctx,this._currentGlyphIdentifier,T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(y,T,M)}},S.prototype._drawUncachedChars=function(y,T,M,E){if(this._ctx.save(),this._ctx.font=this._getFont(!!y.isBold(),!!y.isItalic()),this._ctx.textBaseline=x.TEXT_BASELINE,y.isInverse())if(E)this._ctx.fillStyle=E.css;else if(y.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(y.isBgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var N=y.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&N<8&&(N+=8),this._ctx.fillStyle=this._colors.ansi[N].css}else if(E)this._ctx.fillStyle=E.css;else if(y.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(y.isFgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var F=y.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}this._clipRow(M),y.isDim()&&(this._ctx.globalAlpha=x.DIM_OPACITY);var X=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(X=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},S.prototype._clipRow=function(y){this._ctx.beginPath(),this._ctx.rect(0,y*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},S.prototype._getFont=function(y,T){return(T?"italic":"")+" "+(y?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},S.prototype._getContrastColor=function(y,T,M){var E,N,F,X,$=!1;try{for(var Y=R(this._decorationService.getDecorationsAtCell(T,M)),Q=Y.next();!Q.done;Q=Y.next()){var ne=Q.value;"top"!==ne.options.layer&&$||(ne.backgroundColorRGB&&(F=ne.backgroundColorRGB.rgba),ne.foregroundColorRGB&&(X=ne.foregroundColorRGB.rgba),$="top"===ne.options.layer)}}catch($t){E={error:$t}}finally{try{Q&&!Q.done&&(N=Y.return)&&N.call(Y)}finally{if(E)throw E.error}}if($||this._colors.selectionForeground&&this._isCellInSelection(T,M)&&(X=this._colors.selectionForeground.rgba),F||X||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,L.excludeFromContrastRatioDemands)(y.getCode())){if(!F&&!X){var be=this._colors.contrastCache.getColor(y.bg,y.fg);if(void 0!==be)return be||void 0}var fe=y.getFgColor(),de=y.getFgColorMode(),le=y.getBgColor(),ce=y.getBgColorMode(),me=!!y.isInverse(),je=!!y.isInverse();if(me){var st=fe;fe=le,le=st;var Mt=de;de=ce,ce=Mt}var Tt=this._resolveBackgroundRgba(void 0!==F?50331648:ce,null!=F?F:le,me),Et=this._resolveForegroundRgba(de,fe,me,je),Lt=v.rgba.ensureContrastRatio(null!=F?F:Tt,null!=X?X:Et,this._optionsService.rawOptions.minimumContrastRatio);if(!Lt){if(!X)return void this._colors.contrastCache.setColor(y.bg,y.fg,null);Lt=X}var Ze={css:v.channels.toCss(Lt>>24&255,Lt>>16&255,Lt>>8&255),rgba:Lt};return F||X||this._colors.contrastCache.setColor(y.bg,y.fg,Ze),Ze}},S.prototype._resolveBackgroundRgba=function(y,T,M){switch(y){case 16777216:case 33554432:return this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.foreground.rgba:this._colors.background.rgba}},S.prototype._resolveForegroundRgba=function(y,T,M,E){switch(y){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&E&&T<8&&(T+=8),this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.background.rgba:this._colors.foreground.rgba}},S.prototype._isCellInSelection=function(y,T){var M=this._selectionStart,E=this._selectionEnd;return!(!M||!E)&&(this._columnSelectMode?y>=M[0]&&T>=M[1]&&y<E[0]&&T<E[1]:T>M[1]&&T<E[1]||M[1]===E[1]&&T===M[1]&&y>=M[0]&&y<E[0]||M[1]<E[1]&&T===E[1]&&y<E[0]||M[1]<E[1]&&T===M[1]&&y>=M[0])},S}();A.BaseRenderLayer=O},2512:function(W,A,H){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,N){E.__proto__=N}||function(E,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(E[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),x=this&&this.__decorate||function(y,T,M,E){var N,F=arguments.length,X=F<3?T:null===E?E=Object.getOwnPropertyDescriptor(T,M):E;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,E);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,E){T(M,E,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorRenderLayer=void 0;var j=H(1546),L=H(511),v=H(2585),k=H(4725),b=600,O=function(y){function T(M,E,N,F,X,$,Y,Q,ne,be){var fe=y.call(this,M,"cursor",E,!0,N,F,$,Y,be)||this;return fe._onRequestRedraw=X,fe._coreService=Q,fe._coreBrowserService=ne,fe._cell=new L.CellData,fe._state={x:0,y:0,isFocused:!1,style:"",width:0},fe._cursorRenderers={bar:fe._renderBarCursor.bind(fe),block:fe._renderBlockCursor.bind(fe),underline:fe._renderUnderlineCursor.bind(fe)},fe}return P(T,y),T.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),y.prototype.dispose.call(this)},T.prototype.resize=function(M){y.prototype.resize.call(this,M),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},T.prototype.reset=function(){var M;this._clearCursor(),null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation(),this.onOptionsChanged()},T.prototype.onBlur=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onFocus=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onOptionsChanged=function(){var M,E=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new S(this._coreBrowserService.isFocused,function(){E._render(!0)})):(null===(M=this._cursorBlinkStateManager)||void 0===M||M.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onCursorMove=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation()},T.prototype.onGridChanged=function(M,E){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},T.prototype._render=function(M){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var E=this._bufferService.buffer.ybase+this._bufferService.buffer.y,N=E-this._bufferService.buffer.ydisp;if(N<0||N>=this._bufferService.rows)this._clearCursor();else{var F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(E).loadCell(F,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var X=this._optionsService.rawOptions.cursorStyle;return X&&"block"!==X?this._cursorRenderers[X](F,N,this._cell):this._renderBlurCursor(F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=X,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===F&&this._state.y===N&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},T.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},T.prototype._renderBarCursor=function(M,E,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(M,E,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},T.prototype._renderBlockCursor=function(M,E,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(M,E,N.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(N,M,E),this._ctx.restore()},T.prototype._renderUnderlineCursor=function(M,E,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(M,E),this._ctx.restore()},T.prototype._renderBlurCursor=function(M,E,N){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(M,E,N.getWidth(),1),this._ctx.restore()},x([D(5,v.IBufferService),D(6,v.IOptionsService),D(7,v.ICoreService),D(8,k.ICoreBrowserService),D(9,v.IDecorationService)],T)}(j.BaseRenderLayer);A.CursorRenderLayer=O;var S=function(){function y(T,M){this._renderCallback=M,this.isCursorVisible=!0,T&&this._restartInterval()}return Object.defineProperty(y.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},y.prototype.restartBlinkAnimation=function(){var T=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){T._renderCallback(),T._animationFrame=void 0})))},y.prototype._restartInterval=function(T){var M=this;void 0===T&&(T=b),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(M._animationTimeRestarted){var E=b-(Date.now()-M._animationTimeRestarted);if(M._animationTimeRestarted=void 0,E>0)return void M._restartInterval(E)}M.isCursorVisible=!1,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0}),M._blinkInterval=window.setInterval(function(){if(M._animationTimeRestarted){var N=b-(Date.now()-M._animationTimeRestarted);return M._animationTimeRestarted=void 0,void M._restartInterval(N)}M.isCursorVisible=!M.isCursorVisible,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0})},b)},T)},y.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},y.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},y}()},8978:function(W,A,H){var R,P,x,D,j,L,v,k,b,O,S,y,T,M,E,N,F,X,$,Y,Q,ne,be,fe,de,le,ce,me,je,st,Mt,Tt,Et,Lt,Ze,$t,Ft,pn,nt,Ot,_t,Ct,We,ut,dt,Ut,B,U,tt,Ye,ge,t,Dt,Zt,zt,sn,qt,yn,Kt,Xt,Je,Be,te,ye,pe,Ne,lt,ct,Bt,jt,on,vn,ln,En,hn,mn,At,xt,et,St,ze,Ke,Re,qe,vt,dn,Hn,Yt,kt,$e,gt,yt,nn,Gn,Vn,Wn,ar,Or,hi,Gi,Pa,Ra,ua,ss,ta,ri,Ys,zi,Yn,br,jr,Ni,Ms,ki,Ko,qr,Bi,ba,Ar,Fi,Uo,Ca,ca,co,na,ls,Ai,po,La=this&&this.__read||function(tn,Jt){var Jr="function"==typeof Symbol&&tn[Symbol.iterator];if(!Jr)return tn;var Mi,Jo,Ho=Jr.call(tn),bi=[];try{for(;(void 0===Jt||Jt-- >0)&&!(Mi=Ho.next()).done;)bi.push(Mi.value)}catch(Ln){Jo={error:Ln}}finally{try{Mi&&!Mi.done&&(Jr=Ho.return)&&Jr.call(Ho)}finally{if(Jo)throw Jo.error}}return bi},Ti=this&&this.__values||function(tn){var Jt="function"==typeof Symbol&&Symbol.iterator,Jr=Jt&&tn[Jt],Mi=0;if(Jr)return Jr.call(tn);if(tn&&"number"==typeof tn.length)return{next:function(){return tn&&Mi>=tn.length&&(tn=void 0),{value:tn&&tn[Mi++],done:!tn}}};throw new TypeError(Jt?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.tryDrawCustomChar=A.powerlineDefinitions=A.boxDrawingDefinitions=A.blockElementDefinitions=void 0;var qo=H(1752);A.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gu={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};A.boxDrawingDefinitions={"\u2500":(R={},R[1]="M0,.5 L1,.5",R),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(x={},x[1]="M.5,0 L.5,1",x),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(j={},j[1]="M0.5,1 L.5,.5 L1,.5",j),"\u250f":(L={},L[3]="M0.5,1 L.5,.5 L1,.5",L),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(k={},k[3]="M0,.5 L.5,.5 L.5,1",k),"\u2514":(b={},b[1]="M.5,0 L.5,.5 L1,.5",b),"\u2517":(O={},O[3]="M.5,0 L.5,.5 L1,.5",O),"\u2518":(S={},S[1]="M.5,0 L.5,.5 L0,.5",S),"\u251b":(y={},y[3]="M.5,0 L.5,.5 L0,.5",y),"\u251c":(T={},T[1]="M.5,0 L.5,1 M.5,.5 L1,.5",T),"\u2523":(M={},M[3]="M.5,0 L.5,1 M.5,.5 L1,.5",M),"\u2524":(E={},E[1]="M.5,0 L.5,1 M.5,.5 L0,.5",E),"\u252b":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L0,.5",N),"\u252c":(F={},F[1]="M0,.5 L1,.5 M.5,.5 L.5,1",F),"\u2533":(X={},X[3]="M0,.5 L1,.5 M.5,.5 L.5,1",X),"\u2534":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,0",$),"\u253b":(Y={},Y[3]="M0,.5 L1,.5 M.5,.5 L.5,0",Y),"\u253c":(Q={},Q[1]="M0,.5 L1,.5 M.5,0 L.5,1",Q),"\u254b":(ne={},ne[3]="M0,.5 L1,.5 M.5,0 L.5,1",ne),"\u2574":(be={},be[1]="M.5,.5 L0,.5",be),"\u2578":(fe={},fe[3]="M.5,.5 L0,.5",fe),"\u2575":(de={},de[1]="M.5,.5 L.5,0",de),"\u2579":(le={},le[3]="M.5,.5 L.5,0",le),"\u2576":(ce={},ce[1]="M.5,.5 L1,.5",ce),"\u257a":(me={},me[3]="M.5,.5 L1,.5",me),"\u2577":(je={},je[1]="M.5,.5 L.5,1",je),"\u257b":(st={},st[3]="M.5,.5 L.5,1",st),"\u2550":(Mt={},Mt[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},Mt),"\u2551":(Tt={},Tt[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},Tt),"\u2552":(Et={},Et[1]=function(tn,Jt){return"M.5,1 L.5,"+(.5-Jt)+" L1,"+(.5-Jt)+" M.5,"+(.5+Jt)+" L1,"+(.5+Jt)},Et),"\u2553":(Lt={},Lt[1]=function(tn,Jt){return"M"+(.5-tn)+",1 L"+(.5-tn)+",.5 L1,.5 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},Lt),"\u2554":(Ze={},Ze[1]=function(tn,Jt){return"M1,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1"},Ze),"\u2555":($t={},$t[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L.5,"+(.5-Jt)+" L.5,1 M0,"+(.5+Jt)+" L.5,"+(.5+Jt)},$t),"\u2556":(Ft={},Ft[1]=function(tn,Jt){return"M"+(.5+tn)+",1 L"+(.5+tn)+",.5 L0,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1"},Ft),"\u2557":(pn={},pn[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M0,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",1"},pn),"\u2558":(nt={},nt[1]=function(tn,Jt){return"M.5,0 L.5,"+(.5+Jt)+" L1,"+(.5+Jt)+" M.5,"+(.5-Jt)+" L1,"+(.5-Jt)},nt),"\u2559":(Ot={},Ot[1]=function(tn,Jt){return"M1,.5 L"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},Ot),"\u255a":(_t={},_t[1]=function(tn,Jt){return"M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0 M1,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",0"},_t),"\u255b":(Ct={},Ct[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L.5,"+(.5+Jt)+" L.5,0 M0,"+(.5-Jt)+" L.5,"+(.5-Jt)},Ct),"\u255c":(We={},We[1]=function(tn,Jt){return"M0,.5 L"+(.5+tn)+",.5 L"+(.5+tn)+",0 M"+(.5-tn)+",.5 L"+(.5-tn)+",0"},We),"\u255d":(ut={},ut[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M0,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",0"},ut),"\u255e":(dt={},dt[1]=function(tn,Jt){return"M.5,0 L.5,1 M.5,"+(.5-Jt)+" L1,"+(.5-Jt)+" M.5,"+(.5+Jt)+" L1,"+(.5+Jt)},dt),"\u255f":(Ut={},Ut[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1 M"+(.5+tn)+",.5 L1,.5"},Ut),"\u2560":(B={},B[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},B),"\u2561":(U={},U[1]=function(tn,Jt){return"M.5,0 L.5,1 M0,"+(.5-Jt)+" L.5,"+(.5-Jt)+" M0,"+(.5+Jt)+" L.5,"+(.5+Jt)},U),"\u2562":(tt={},tt[1]=function(tn,Jt){return"M0,.5 L"+(.5-tn)+",.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},tt),"\u2563":(Ye={},Ye[1]=function(tn,Jt){return"M"+(.5+tn)+",0 L"+(.5+tn)+",1 M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0"},Ye),"\u2564":(ge={},ge[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)+" M.5,"+(.5+Jt)+" L.5,1"},ge),"\u2565":(t={},t[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},t),"\u2566":(Dt={},Dt[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1"},Dt),"\u2567":(Zt={},Zt[1]=function(tn,Jt){return"M.5,0 L.5,"+(.5-Jt)+" M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},Zt),"\u2568":(zt={},zt[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},zt),"\u2569":(sn={},sn[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L1,"+(.5+Jt)+" M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},sn),"\u256a":(qt={},qt[1]=function(tn,Jt){return"M.5,0 L.5,1 M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},qt),"\u256b":(yn={},yn[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},yn),"\u256c":(Kt={},Kt[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1 M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},Kt),"\u2571":(Xt={},Xt[1]="M1,0 L0,1",Xt),"\u2572":(Je={},Je[1]="M0,0 L1,1",Je),"\u2573":(Be={},Be[1]="M1,0 L0,1 M0,0 L1,1",Be),"\u257c":(te={},te[1]="M.5,.5 L0,.5",te[3]="M.5,.5 L1,.5",te),"\u257d":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L.5,1",ye),"\u257e":(pe={},pe[1]="M.5,.5 L1,.5",pe[3]="M.5,.5 L0,.5",pe),"\u257f":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,.5 L.5,0",Ne),"\u250d":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,.5 L1,.5",lt),"\u250e":(ct={},ct[1]="M.5,.5 L1,.5",ct[3]="M.5,.5 L.5,1",ct),"\u2511":(Bt={},Bt[1]="M.5,.5 L.5,1",Bt[3]="M.5,.5 L0,.5",Bt),"\u2512":(jt={},jt[1]="M.5,.5 L0,.5",jt[3]="M.5,.5 L.5,1",jt),"\u2515":(on={},on[1]="M.5,.5 L.5,0",on[3]="M.5,.5 L1,.5",on),"\u2516":(vn={},vn[1]="M.5,.5 L1,.5",vn[3]="M.5,.5 L.5,0",vn),"\u2519":(ln={},ln[1]="M.5,.5 L.5,0",ln[3]="M.5,.5 L0,.5",ln),"\u251a":(En={},En[1]="M.5,.5 L0,.5",En[3]="M.5,.5 L.5,0",En),"\u251d":(hn={},hn[1]="M.5,0 L.5,1",hn[3]="M.5,.5 L1,.5",hn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(At={},At[1]="M.5,0 L.5,.5 L1,.5",At[3]="M.5,.5 L.5,1",At),"\u2520":(xt={},xt[1]="M.5,.5 L1,.5",xt[3]="M.5,0 L.5,1",xt),"\u2521":(et={},et[1]="M.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"\u2522":(St={},St[1]="M.5,.5 L.5,0",St[3]="M0.5,1 L.5,.5 L1,.5",St),"\u2525":(ze={},ze[1]="M.5,0 L.5,1",ze[3]="M.5,.5 L0,.5",ze),"\u2526":(Ke={},Ke[1]="M0,.5 L.5,.5 L.5,1",Ke[3]="M.5,.5 L.5,0",Ke),"\u2527":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"\u2528":(qe={},qe[1]="M.5,.5 L0,.5",qe[3]="M.5,0 L.5,1",qe),"\u2529":(vt={},vt[1]="M.5,.5 L.5,1",vt[3]="M.5,0 L.5,.5 L0,.5",vt),"\u252a":(dn={},dn[1]="M.5,.5 L.5,0",dn[3]="M0,.5 L.5,.5 L.5,1",dn),"\u252d":(Hn={},Hn[1]="M0.5,1 L.5,.5 L1,.5",Hn[3]="M.5,.5 L0,.5",Hn),"\u252e":(Yt={},Yt[1]="M0,.5 L.5,.5 L.5,1",Yt[3]="M.5,.5 L1,.5",Yt),"\u252f":(kt={},kt[1]="M.5,.5 L.5,1",kt[3]="M0,.5 L1,.5",kt),"\u2530":($e={},$e[1]="M0,.5 L1,.5",$e[3]="M.5,.5 L.5,1",$e),"\u2531":(gt={},gt[1]="M.5,.5 L1,.5",gt[3]="M0,.5 L.5,.5 L.5,1",gt),"\u2532":(yt={},yt[1]="M.5,.5 L0,.5",yt[3]="M0.5,1 L.5,.5 L1,.5",yt),"\u2535":(nn={},nn[1]="M.5,0 L.5,.5 L1,.5",nn[3]="M.5,.5 L0,.5",nn),"\u2536":(Gn={},Gn[1]="M.5,0 L.5,.5 L0,.5",Gn[3]="M.5,.5 L1,.5",Gn),"\u2537":(Vn={},Vn[1]="M.5,.5 L.5,0",Vn[3]="M0,.5 L1,.5",Vn),"\u2538":(Wn={},Wn[1]="M0,.5 L1,.5",Wn[3]="M.5,.5 L.5,0",Wn),"\u2539":(ar={},ar[1]="M.5,.5 L1,.5",ar[3]="M.5,0 L.5,.5 L0,.5",ar),"\u253a":(Or={},Or[1]="M.5,.5 L0,.5",Or[3]="M.5,0 L.5,.5 L1,.5",Or),"\u253d":(hi={},hi[1]="M.5,0 L.5,1 M.5,.5 L1,.5",hi[3]="M.5,.5 L0,.5",hi),"\u253e":(Gi={},Gi[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Gi[3]="M.5,.5 L1,.5",Gi),"\u253f":(Pa={},Pa[1]="M.5,0 L.5,1",Pa[3]="M0,.5 L1,.5",Pa),"\u2540":(Ra={},Ra[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ra[3]="M.5,.5 L.5,0",Ra),"\u2541":(ua={},ua[1]="M.5,.5 L.5,0 M0,.5 L1,.5",ua[3]="M.5,.5 L.5,1",ua),"\u2542":(ss={},ss[1]="M0,.5 L1,.5",ss[3]="M.5,0 L.5,1",ss),"\u2543":(ta={},ta[1]="M0.5,1 L.5,.5 L1,.5",ta[3]="M.5,0 L.5,.5 L0,.5",ta),"\u2544":(ri={},ri[1]="M0,.5 L.5,.5 L.5,1",ri[3]="M.5,0 L.5,.5 L1,.5",ri),"\u2545":(Ys={},Ys[1]="M.5,0 L.5,.5 L1,.5",Ys[3]="M0,.5 L.5,.5 L.5,1",Ys),"\u2546":(zi={},zi[1]="M.5,0 L.5,.5 L0,.5",zi[3]="M0.5,1 L.5,.5 L1,.5",zi),"\u2547":(Yn={},Yn[1]="M.5,.5 L.5,1",Yn[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Yn),"\u2548":(br={},br[1]="M.5,.5 L.5,0",br[3]="M0,.5 L1,.5 M.5,.5 L.5,1",br),"\u2549":(jr={},jr[1]="M.5,.5 L1,.5",jr[3]="M.5,0 L.5,1 M.5,.5 L0,.5",jr),"\u254a":(Ni={},Ni[1]="M.5,.5 L0,.5",Ni[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Ni),"\u254c":(Ms={},Ms[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Ms),"\u254d":(ki={},ki[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ki),"\u2504":(Ko={},Ko[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Ko),"\u2505":(qr={},qr[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",qr),"\u2508":(Bi={},Bi[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Bi),"\u2509":(ba={},ba[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",ba),"\u254e":(Ar={},Ar[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Ar),"\u254f":(Fi={},Fi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Fi),"\u2506":(Uo={},Uo[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Uo),"\u2507":(Ca={},Ca[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Ca),"\u250a":(ca={},ca[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",ca),"\u250b":(co={},co[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",co),"\u256d":(na={},na[1]="C.5,1,.5,.5,1,.5",na),"\u256e":(ls={},ls[1]="C.5,1,.5,.5,0,.5",ls),"\u256f":(Ai={},Ai[1]="C.5,0,.5,.5,0,.5",Ai),"\u2570":(po={},po[1]="C.5,0,.5,.5,1,.5",po)},A.powerlineDefinitions={"\ue0b0":{d:"M0,0 L1,.5 L0,1",type:0},"\ue0b1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\ue0b2":{d:"M1,0 L0,.5 L1,1",type:0},"\ue0b3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},A.tryDrawCustomChar=function(tn,Jt,Jr,Mi,Jo,Ho){var bi=A.blockElementDefinitions[Jt];if(bi)return function(Nn,xn,fn,mi,Ji,jo){for(var Qi=0;Qi<xn.length;Qi++){var Vi=xn[Qi],ti=Ji/8,_i=jo/8;Nn.fillRect(fn+Vi.x*ti,mi+Vi.y*_i,Vi.w*ti,Vi.h*_i)}}(tn,bi,Jr,Mi,Jo,Ho),!0;var Ln=gu[Jt];if(Ln)return function(Nn,xn,fn,mi,Ji,jo){var Qi,Vi=Wi.get(xn);Vi||(Vi=new Map,Wi.set(xn,Vi));var ti=Nn.fillStyle;if("string"!=typeof ti)throw new Error('Unexpected fillStyle type "'+ti+'"');var _i=Vi.get(ti);if(!_i){var ir=xn[0].length,Do=xn.length,Xi=document.createElement("canvas");Xi.width=ir,Xi.height=Do;var wa=(0,qo.throwIfFalsy)(Xi.getContext("2d")),Za=new ImageData(ir,Do),oo=void 0,Qo=void 0,ra=void 0,fl=void 0;if(ti.startsWith("#"))oo=parseInt(ti.slice(1,3),16),Qo=parseInt(ti.slice(3,5),16),ra=parseInt(ti.slice(5,7),16),fl=ti.length>7&&parseInt(ti.slice(7,9),16)||1;else{if(!ti.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ti+'" when drawing pattern glyph');oo=(Qi=La(ti.substring(5,ti.length-1).split(",").map(function(qa){return parseFloat(qa)}),4))[0],Qo=Qi[1],ra=Qi[2],fl=Qi[3]}for(var Na=0;Na<Do;Na++)for(var ao=0;ao<ir;ao++)Za.data[4*(Na*ir+ao)]=oo,Za.data[4*(Na*ir+ao)+1]=Qo,Za.data[4*(Na*ir+ao)+2]=ra,Za.data[4*(Na*ir+ao)+3]=xn[Na][ao]*(255*fl);wa.putImageData(Za,0,0),_i=(0,qo.throwIfFalsy)(Nn.createPattern(Xi,null)),Vi.set(ti,_i)}Nn.fillStyle=_i,Nn.fillRect(fn,mi,Ji,jo)}(tn,Ln,Jr,Mi,Jo,Ho),!0;var vo=A.boxDrawingDefinitions[Jt];if(vo)return function(Nn,xn,fn,mi,Ji,jo){var Qi,Vi,ti,_i;Nn.strokeStyle=Nn.fillStyle;try{for(var ir=Ti(Object.entries(xn)),Do=ir.next();!Do.done;Do=ir.next()){var Xi=La(Do.value,2),wa=Xi[0],Za=Xi[1];Nn.beginPath(),Nn.lineWidth=window.devicePixelRatio*Number.parseInt(wa);var oo=void 0;oo="function"==typeof Za?Za(.15,.15/jo*Ji):Za;try{for(var Qo=(ti=void 0,Ti(oo.split(" "))),ra=Qo.next();!ra.done;ra=Qo.next()){var fl=ra.value,Na=fl[0],ao=Ss[Na];if(ao){var qa=fl.substring(1).split(",");qa[0]&&qa[1]&&ao(Nn,qi(qa,Ji,jo,fn,mi))}else console.error('Could not find drawing instructions for "'+Na+'"')}}catch(ka){ti={error:ka}}finally{try{ra&&!ra.done&&(_i=Qo.return)&&_i.call(Qo)}finally{if(ti)throw ti.error}}Nn.stroke(),Nn.closePath()}}catch(ka){Qi={error:ka}}finally{try{Do&&!Do.done&&(Vi=ir.return)&&Vi.call(ir)}finally{if(Qi)throw Qi.error}}}(tn,vo,Jr,Mi,Jo,Ho),!0;var Ul=A.powerlineDefinitions[Jt];return!!Ul&&(function(Nn,xn,fn,mi,Ji,jo){var Qi,Vi;Nn.beginPath(),Nn.lineWidth=window.devicePixelRatio;try{for(var ti=Ti(xn.d.split(" ")),_i=ti.next();!_i.done;_i=ti.next()){var ir=_i.value,Do=ir[0],Xi=Ss[Do];if(Xi){var wa=ir.substring(1).split(",");wa[0]&&wa[1]&&Xi(Nn,qi(wa,Ji,jo,fn,mi,xn.horizontalPadding))}else console.error('Could not find drawing instructions for "'+Do+'"')}}catch(Za){Qi={error:Za}}finally{try{_i&&!_i.done&&(Vi=ti.return)&&Vi.call(ti)}finally{if(Qi)throw Qi.error}}1===xn.type?(Nn.strokeStyle=Nn.fillStyle,Nn.stroke()):Nn.fill(),Nn.closePath()}(tn,Ul,Jr,Mi,Jo,Ho),!0)};var Wi=new Map;function Ui(tn,Jt,Jr){return void 0===Jr&&(Jr=0),Math.max(Math.min(tn,Jt),Jr)}var Ss={C:function(Jt,Jr){return Jt.bezierCurveTo(Jr[0],Jr[1],Jr[2],Jr[3],Jr[4],Jr[5])},L:function(Jt,Jr){return Jt.lineTo(Jr[0],Jr[1])},M:function(Jt,Jr){return Jt.moveTo(Jr[0],Jr[1])}};function qi(tn,Jt,Jr,Mi,Jo,Ho){void 0===Ho&&(Ho=0);var bi=tn.map(function(Ul){return parseFloat(Ul)||parseInt(Ul)});if(bi.length<2)throw new Error("Too few arguments for instruction");for(var Ln=0;Ln<bi.length;Ln+=2)bi[Ln]*=Jt-2*Ho*window.devicePixelRatio,0!==bi[Ln]&&(bi[Ln]=Ui(Math.round(bi[Ln]+.5)-.5,Jt,0)),bi[Ln]+=Mi+Ho*window.devicePixelRatio;for(var vo=1;vo<bi.length;vo+=2)bi[vo]*=Jr,0!==bi[vo]&&(bi[vo]=Ui(Math.round(bi[vo]+.5)-.5,Jr,0)),bi[vo]+=Jo;return bi}},3700:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.GridCache=void 0;var H=function(){function R(){this.cache=[]}return R.prototype.resize=function(P,x){for(var D=0;D<P;D++){this.cache.length<=D&&this.cache.push([]);for(var j=this.cache[D].length;j<x;j++)this.cache[D].push(void 0);this.cache[D].length=x}this.cache.length=P},R.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var x=0;x<this.cache[P].length;x++)this.cache[P][x]=void 0},R}();A.GridCache=H},5098:function(W,A,H){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),x=this&&this.__decorate||function(O,S,y,T){var M,E=arguments.length,N=E<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(E<3?M(N):E>3?M(S,y,N):M(S,y))||N);return E>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.LinkRenderLayer=void 0;var j=H(1546),L=H(8803),v=H(2040),k=H(2585),b=function(O){function S(y,T,M,E,N,F,X,$,Y){var Q=O.call(this,y,"link",T,!0,M,E,X,$,Y)||this;return N.onShowLinkUnderline(function(ne){return Q._onShowLinkUnderline(ne)}),N.onHideLinkUnderline(function(ne){return Q._onHideLinkUnderline(ne)}),F.onShowLinkUnderline(function(ne){return Q._onShowLinkUnderline(ne)}),F.onHideLinkUnderline(function(ne){return Q._onHideLinkUnderline(ne)}),Q}return P(S,O),S.prototype.resize=function(y){O.prototype.resize.call(this,y),this._state=void 0},S.prototype.reset=function(){this._clearCurrentLink()},S.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var y=this._state.y2-this._state.y1-1;y>0&&this._clearCells(0,this._state.y1+1,this._state.cols,y),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},S.prototype._onShowLinkUnderline=function(y){if(y.fg===L.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:y.fg&&(0,v.is256Color)(y.fg)?this._ctx.fillStyle=this._colors.ansi[y.fg].css:this._ctx.fillStyle=this._colors.foreground.css,y.y1===y.y2)this._fillBottomLineAtCells(y.x1,y.y1,y.x2-y.x1);else{this._fillBottomLineAtCells(y.x1,y.y1,y.cols-y.x1);for(var T=y.y1+1;T<y.y2;T++)this._fillBottomLineAtCells(0,T,y.cols);this._fillBottomLineAtCells(0,y.y2,y.x2)}this._state=y},S.prototype._onHideLinkUnderline=function(y){this._clearCurrentLink()},x([D(6,k.IBufferService),D(7,k.IOptionsService),D(8,k.IDecorationService)],S)}(j.BaseRenderLayer);A.LinkRenderLayer=b},3525:function(W,A,H){var R,P=this&&this.__extends||(R=function(X,$){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var ne in Q)Object.prototype.hasOwnProperty.call(Q,ne)&&(Y[ne]=Q[ne])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}R(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)}),x=this&&this.__decorate||function(F,X,$,Y){var Q,ne=arguments.length,be=ne<3?X:null===Y?Y=Object.getOwnPropertyDescriptor(X,$):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)be=Reflect.decorate(F,X,$,Y);else for(var fe=F.length-1;fe>=0;fe--)(Q=F[fe])&&(be=(ne<3?Q(be):ne>3?Q(X,$,be):Q(X,$))||be);return ne>3&&be&&Object.defineProperty(X,$,be),be},D=this&&this.__param||function(F,X){return function($,Y){X($,Y,F)}},j=this&&this.__values||function(F){var X="function"==typeof Symbol&&Symbol.iterator,$=X&&F[X],Y=0;if($)return $.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&Y>=F.length&&(F=void 0),{value:F&&F[Y++],done:!F}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Renderer=void 0;var L=H(9596),v=H(4149),k=H(2512),b=H(5098),O=H(844),S=H(4725),y=H(2585),T=H(1420),M=H(8460),E=1,N=function(F){function X($,Y,Q,ne,be,fe,de,le){var ce=F.call(this)||this;ce._colors=$,ce._screenElement=Y,ce._bufferService=fe,ce._charSizeService=de,ce._optionsService=le,ce._id=E++,ce._onRequestRedraw=new M.EventEmitter;var me=ce._optionsService.rawOptions.allowTransparency;return ce._renderLayers=[be.createInstance(L.TextRenderLayer,ce._screenElement,0,ce._colors,me,ce._id),be.createInstance(v.SelectionRenderLayer,ce._screenElement,1,ce._colors,ce._id),be.createInstance(b.LinkRenderLayer,ce._screenElement,2,ce._colors,ce._id,Q,ne),be.createInstance(k.CursorRenderLayer,ce._screenElement,3,ce._colors,ce._id,ce._onRequestRedraw)],ce.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},ce._devicePixelRatio=window.devicePixelRatio,ce._updateDimensions(),ce.onOptionsChanged(),ce}return P(X,F),Object.defineProperty(X.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),X.prototype.dispose=function(){var $,Y;try{for(var Q=j(this._renderLayers),ne=Q.next();!ne.done;ne=Q.next())ne.value.dispose()}catch(be){$={error:be}}finally{try{ne&&!ne.done&&(Y=Q.return)&&Y.call(Q)}finally{if($)throw $.error}}F.prototype.dispose.call(this),(0,T.removeTerminalFromCache)(this._id)},X.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},X.prototype.setColors=function($){var Y,Q;this._colors=$;try{for(var ne=j(this._renderLayers),be=ne.next();!be.done;be=ne.next()){var fe=be.value;fe.setColors(this._colors),fe.reset()}}catch(de){Y={error:de}}finally{try{be&&!be.done&&(Q=ne.return)&&Q.call(ne)}finally{if(Y)throw Y.error}}},X.prototype.onResize=function($,Y){var Q,ne;this._updateDimensions();try{for(var be=j(this._renderLayers),fe=be.next();!fe.done;fe=be.next())fe.value.resize(this.dimensions)}catch(de){Q={error:de}}finally{try{fe&&!fe.done&&(ne=be.return)&&ne.call(be)}finally{if(Q)throw Q.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},X.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},X.prototype.onBlur=function(){this._runOperation(function($){return $.onBlur()})},X.prototype.onFocus=function(){this._runOperation(function($){return $.onFocus()})},X.prototype.onSelectionChanged=function($,Y,Q){void 0===Q&&(Q=!1),this._runOperation(function(ne){return ne.onSelectionChanged($,Y,Q)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},X.prototype.onCursorMove=function(){this._runOperation(function($){return $.onCursorMove()})},X.prototype.onOptionsChanged=function(){this._runOperation(function($){return $.onOptionsChanged()})},X.prototype.clear=function(){this._runOperation(function($){return $.reset()})},X.prototype._runOperation=function($){var Y,Q;try{for(var ne=j(this._renderLayers),be=ne.next();!be.done;be=ne.next())$(be.value)}catch(fe){Y={error:fe}}finally{try{be&&!be.done&&(Q=ne.return)&&Q.call(ne)}finally{if(Y)throw Y.error}}},X.prototype.renderRows=function($,Y){var Q,ne;try{for(var be=j(this._renderLayers),fe=be.next();!fe.done;fe=be.next())fe.value.onGridChanged($,Y)}catch(de){Q={error:de}}finally{try{fe&&!fe.done&&(ne=be.return)&&ne.call(be)}finally{if(Q)throw Q.error}}},X.prototype.clearTextureAtlas=function(){var $,Y;try{for(var Q=j(this._renderLayers),ne=Q.next();!ne.done;ne=Q.next())ne.value.clearTextureAtlas()}catch(be){$={error:be}}finally{try{ne&&!ne.done&&(Y=Q.return)&&Y.call(Q)}finally{if($)throw $.error}}},X.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},x([D(4,y.IInstantiationService),D(5,y.IBufferService),D(6,S.ICharSizeService),D(7,y.IOptionsService)],X)}(O.Disposable);A.Renderer=N},1752:function(W,A){function H(R){return 57508<=R&&R<=57558}Object.defineProperty(A,"__esModule",{value:!0}),A.excludeFromContrastRatioDemands=A.isPowerlineGlyph=A.throwIfFalsy=void 0,A.throwIfFalsy=function(R){if(!R)throw new Error("value must not be falsy");return R},A.isPowerlineGlyph=H,A.excludeFromContrastRatioDemands=function(R){return H(R)||9472<=(P=R)&&P<=9631;var P}},4149:function(W,A,H){var R,P=this&&this.__extends||(R=function(b,O){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&(S[T]=y[T])})(b,O)},function(k,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=k}R(k,b),k.prototype=null===b?Object.create(b):(O.prototype=b.prototype,new O)}),x=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var E=k.length-1;E>=0;E--)(y=k[E])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},D=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionRenderLayer=void 0;var j=H(1546),L=H(2585),v=function(k){function b(O,S,y,T,M,E,N){var F=k.call(this,O,"selection",S,!0,y,T,M,E,N)||this;return F._clearState(),F}return P(b,k),b.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},b.prototype.resize=function(O){k.prototype.resize.call(this,O),this._clearState()},b.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},b.prototype.onSelectionChanged=function(O,S,y){if(k.prototype.onSelectionChanged.call(this,O,S,y),this._didStateChange(O,S,y,this._bufferService.buffer.ydisp))if(this._clearAll(),O&&S){var T=O[1]-this._bufferService.buffer.ydisp,M=S[1]-this._bufferService.buffer.ydisp,E=Math.max(T,0),N=Math.min(M,this._bufferService.rows-1);if(E>=this._bufferService.rows||N<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,y){var F=O[0],X=S[0]-F,$=N-E+1;this._fillCells(F,E,X,$)}else{F=T===E?O[0]:0;var Y=E===M?S[0]:this._bufferService.cols;this._fillCells(F,E,Y-F,1);var Q=Math.max(N-E-1,0);if(this._fillCells(0,E+1,this._bufferService.cols,Q),E!==N){var ne=M===N?S[0]:this._bufferService.cols;this._fillCells(0,N,ne,1)}}this._state.start=[O[0],O[1]],this._state.end=[S[0],S[1]],this._state.columnSelectMode=y,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},b.prototype._didStateChange=function(O,S,y,T){return!this._areCoordinatesEqual(O,this._state.start)||!this._areCoordinatesEqual(S,this._state.end)||y!==this._state.columnSelectMode||T!==this._state.ydisp},b.prototype._areCoordinatesEqual=function(O,S){return!(!O||!S)&&O[0]===S[0]&&O[1]===S[1]},x([D(4,L.IBufferService),D(5,L.IOptionsService),D(6,L.IDecorationService)],b)}(j.BaseRenderLayer);A.SelectionRenderLayer=v},9596:function(W,A,H){var R,P=this&&this.__extends||(R=function(N,F){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var Y in $)Object.prototype.hasOwnProperty.call($,Y)&&(X[Y]=$[Y])})(N,F)},function(E,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=E}R(E,N),E.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),x=this&&this.__decorate||function(E,N,F,X){var $,Y=arguments.length,Q=Y<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(E,N,F,X);else for(var ne=E.length-1;ne>=0;ne--)($=E[ne])&&(Q=(Y<3?$(Q):Y>3?$(N,F,Q):$(N,F))||Q);return Y>3&&Q&&Object.defineProperty(N,F,Q),Q},D=this&&this.__param||function(E,N){return function(F,X){N(F,X,E)}},j=this&&this.__values||function(E){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&E[N],X=0;if(F)return F.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&X>=E.length&&(E=void 0),{value:E&&E[X++],done:!E}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.TextRenderLayer=void 0;var L=H(3700),v=H(1546),k=H(3734),b=H(643),O=H(511),S=H(2585),y=H(4725),T=H(4269),M=function(E){function N(F,X,$,Y,Q,ne,be,fe,de){var le=E.call(this,F,"text",X,Y,$,Q,ne,be,de)||this;return le._characterJoinerService=fe,le._characterWidth=0,le._characterFont="",le._characterOverlapCache={},le._workCell=new O.CellData,le._state=new L.GridCache,le}return P(N,E),N.prototype.resize=function(F){E.prototype.resize.call(this,F);var X=this._getFont(!1,!1);this._characterWidth===F.scaledCharWidth&&this._characterFont===X||(this._characterWidth=F.scaledCharWidth,this._characterFont=X,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},N.prototype.reset=function(){this._state.clear(),this._clearAll()},N.prototype._forEachCell=function(F,X,$){for(var Y=F;Y<=X;Y++)for(var Q=Y+this._bufferService.buffer.ydisp,ne=this._bufferService.buffer.lines.get(Q),be=this._characterJoinerService.getJoinedCharacters(Q),fe=0;fe<this._bufferService.cols;fe++){ne.loadCell(fe,this._workCell);var de=this._workCell,le=!1,ce=fe;if(0!==de.getWidth()){if(be.length>0&&fe===be[0][0]){le=!0;var me=be.shift();de=new T.JoinedCellData(this._workCell,ne.translateToString(!0,me[0],me[1]),me[1]-me[0]),ce=me[1]-1}!le&&this._isOverlapping(de)&&ce<ne.length-1&&ne.getCodePoint(ce+1)===b.NULL_CELL_CODE&&(de.content&=-12582913,de.content|=2<<22),$(de,fe,Y),fe=ce}}},N.prototype._drawBackground=function(F,X){var $=this,Y=this._ctx,Q=this._bufferService.cols,ne=0,be=0,fe=null;Y.save(),this._forEachCell(F,X,function(de,le,ce){var me,je,st=null;de.isInverse()?st=de.isFgDefault()?$._colors.foreground.css:de.isFgRGB()?"rgb("+k.AttributeData.toColorRGB(de.getFgColor()).join(",")+")":$._colors.ansi[de.getFgColor()].css:de.isBgRGB()?st="rgb("+k.AttributeData.toColorRGB(de.getBgColor()).join(",")+")":de.isBgPalette()&&(st=$._colors.ansi[de.getBgColor()].css);var Mt=!1;try{for(var Tt=j($._decorationService.getDecorationsAtCell(le,$._bufferService.buffer.ydisp+ce)),Et=Tt.next();!Et.done;Et=Tt.next()){var Lt=Et.value;"top"!==Lt.options.layer&&Mt||(Lt.backgroundColorRGB&&(st=Lt.backgroundColorRGB.css),Mt="top"===Lt.options.layer)}}catch(Ze){me={error:Ze}}finally{try{Et&&!Et.done&&(je=Tt.return)&&je.call(Tt)}finally{if(me)throw me.error}}null===fe&&(ne=le,be=ce),ce!==be?(Y.fillStyle=fe||"",$._fillCells(ne,be,Q-ne,1),ne=le,be=ce):fe!==st&&(Y.fillStyle=fe||"",$._fillCells(ne,be,le-ne,1),ne=le,be=ce),fe=st}),null!==fe&&(Y.fillStyle=fe,this._fillCells(ne,be,Q-ne,1)),Y.restore()},N.prototype._drawForeground=function(F,X){var $=this;this._forEachCell(F,X,function(Y,Q,ne){if(!Y.isInvisible()&&($._drawChars(Y,Q,ne),Y.isUnderline()||Y.isStrikethrough())){if($._ctx.save(),Y.isInverse())if(Y.isBgDefault())$._ctx.fillStyle=$._colors.background.css;else if(Y.isBgRGB())$._ctx.fillStyle="rgb("+k.AttributeData.toColorRGB(Y.getBgColor()).join(",")+")";else{var be=Y.getBgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&Y.isBold()&&be<8&&(be+=8),$._ctx.fillStyle=$._colors.ansi[be].css}else if(Y.isFgDefault())$._ctx.fillStyle=$._colors.foreground.css;else if(Y.isFgRGB())$._ctx.fillStyle="rgb("+k.AttributeData.toColorRGB(Y.getFgColor()).join(",")+")";else{var fe=Y.getFgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&Y.isBold()&&fe<8&&(fe+=8),$._ctx.fillStyle=$._colors.ansi[fe].css}Y.isStrikethrough()&&$._fillMiddleLineAtCells(Q,ne,Y.getWidth()),Y.isUnderline()&&$._fillBottomLineAtCells(Q,ne,Y.getWidth()),$._ctx.restore()}})},N.prototype.onGridChanged=function(F,X){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,F,this._bufferService.cols,X-F+1),this._drawBackground(F,X),this._drawForeground(F,X))},N.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},N.prototype._isOverlapping=function(F){if(1!==F.getWidth()||F.getCode()<256)return!1;var X=F.getChars();if(this._characterOverlapCache.hasOwnProperty(X))return this._characterOverlapCache[X];this._ctx.save(),this._ctx.font=this._characterFont;var $=Math.floor(this._ctx.measureText(X).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[X]=$,$},x([D(5,S.IBufferService),D(6,S.IOptionsService),D(7,y.ICharacterJoinerService),D(8,S.IDecorationService)],N)}(v.BaseRenderLayer);A.TextRenderLayer=M},9616:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.BaseCharAtlas=void 0;var H=function(){function R(){this._didWarmUp=!1}return R.prototype.dispose=function(){},R.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},R.prototype._doWarmUp=function(){},R.prototype.clear=function(){},R.prototype.beginFrame=function(){},R}();A.BaseCharAtlas=H},1420:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.removeTerminalFromCache=A.acquireCharAtlas=void 0;var R=H(2040),P=H(1906),x=[];A.acquireCharAtlas=function(D,j,L,v,k){for(var b=(0,R.generateConfig)(v,k,D,L),O=0;O<x.length;O++){var S=(y=x[O]).ownedBy.indexOf(j);if(S>=0){if((0,R.configEquals)(y.config,b))return y.atlas;1===y.ownedBy.length?(y.atlas.dispose(),x.splice(O,1)):y.ownedBy.splice(S,1);break}}for(O=0;O<x.length;O++){var y=x[O];if((0,R.configEquals)(y.config,b))return y.ownedBy.push(j),y.atlas}var T={atlas:new P.DynamicCharAtlas(document,b),config:b,ownedBy:[j]};return x.push(T),T.atlas},A.removeTerminalFromCache=function(D){for(var j=0;j<x.length;j++){var L=x[j].ownedBy.indexOf(D);if(-1!==L){1===x[j].ownedBy.length?(x[j].atlas.dispose(),x.splice(j,1)):x[j].ownedBy.splice(L,1);break}}}},2040:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.is256Color=A.configEquals=A.generateConfig=void 0;var R=H(643);A.generateConfig=function(P,x,D,j){var L={foreground:j.foreground,background:j.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:j.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:P,scaledCharHeight:x,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:L}},A.configEquals=function(P,x){for(var D=0;D<P.colors.ansi.length;D++)if(P.colors.ansi[D].rgba!==x.colors.ansi[D].rgba)return!1;return P.devicePixelRatio===x.devicePixelRatio&&P.fontFamily===x.fontFamily&&P.fontSize===x.fontSize&&P.fontWeight===x.fontWeight&&P.fontWeightBold===x.fontWeightBold&&P.allowTransparency===x.allowTransparency&&P.scaledCharWidth===x.scaledCharWidth&&P.scaledCharHeight===x.scaledCharHeight&&P.colors.foreground===x.colors.foreground&&P.colors.background===x.colors.background},A.is256Color=function(P){return P<R.DEFAULT_COLOR}},8803:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.CHAR_ATLAS_CELL_SPACING=A.TEXT_BASELINE=A.DIM_OPACITY=A.INVERTED_DEFAULT_COLOR=void 0;var R=H(6114);A.INVERTED_DEFAULT_COLOR=257,A.DIM_OPACITY=.5,A.TEXT_BASELINE=R.isFirefox||R.isLegacyEdge?"bottom":"ideographic",A.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,A,H){var R,P=this&&this.__extends||(R=function(X,$){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var ne in Q)Object.prototype.hasOwnProperty.call(Q,ne)&&(Y[ne]=Q[ne])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}R(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)});Object.defineProperty(A,"__esModule",{value:!0}),A.NoneCharAtlas=A.DynamicCharAtlas=A.getGlyphCacheKey=void 0;var x=H(8803),D=H(9616),j=H(5680),L=H(7001),v=H(6114),k=H(1752),b=H(8055),O=1024,S=1024,y={css:"rgba(0, 0, 0, 0)",rgba:0};function T(F){return F.code<<21|F.bg<<12|F.fg<<3|(F.bold?0:4)+(F.dim?0:2)+(F.italic?0:1)}A.getGlyphCacheKey=T;var M=function(F){function X($,Y){var Q=F.call(this)||this;Q._config=Y,Q._drawToCacheCount=0,Q._glyphsWaitingOnBitmap=[],Q._bitmapCommitTimeout=null,Q._bitmap=null,Q._cacheCanvas=$.createElement("canvas"),Q._cacheCanvas.width=O,Q._cacheCanvas.height=S,Q._cacheCtx=(0,k.throwIfFalsy)(Q._cacheCanvas.getContext("2d",{alpha:!0}));var ne=$.createElement("canvas");ne.width=Q._config.scaledCharWidth,ne.height=Q._config.scaledCharHeight,Q._tmpCtx=(0,k.throwIfFalsy)(ne.getContext("2d",{alpha:Q._config.allowTransparency})),Q._width=Math.floor(O/Q._config.scaledCharWidth),Q._height=Math.floor(S/Q._config.scaledCharHeight);var be=Q._width*Q._height;return Q._cacheMap=new L.LRUMap(be),Q._cacheMap.prealloc(be),Q}return P(X,F),X.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},X.prototype.beginFrame=function(){this._drawToCacheCount=0},X.prototype.clear=function(){if(this._cacheMap.size>0){var $=this._width*this._height;this._cacheMap=new L.LRUMap($),this._cacheMap.prealloc($)}this._cacheCtx.clearRect(0,0,O,S),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},X.prototype.draw=function($,Y,Q,ne){if(32===Y.code)return!0;if(!this._canCache(Y))return!1;var be=T(Y),fe=this._cacheMap.get(be);if(null!=fe)return this._drawFromCache($,fe,Q,ne),!0;if(this._drawToCacheCount<100){var de;de=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var le=this._drawToCache(Y,de);return this._cacheMap.set(be,le),this._drawFromCache($,le,Q,ne),!0}return!1},X.prototype._canCache=function($){return $.code<256},X.prototype._toCoordinateX=function($){return $%this._width*this._config.scaledCharWidth},X.prototype._toCoordinateY=function($){return Math.floor($/this._width)*this._config.scaledCharHeight},X.prototype._drawFromCache=function($,Y,Q,ne){if(!Y.isEmpty){var be=this._toCoordinateX(Y.index),fe=this._toCoordinateY(Y.index);$.drawImage(Y.inBitmap?this._bitmap:this._cacheCanvas,be,fe,this._config.scaledCharWidth,this._config.scaledCharHeight,Q,ne,this._config.scaledCharWidth,this._config.scaledCharHeight)}},X.prototype._getColorFromAnsiIndex=function($){return $<this._config.colors.ansi.length?this._config.colors.ansi[$]:j.DEFAULT_ANSI_COLORS[$]},X.prototype._getBackgroundColor=function($){return this._config.allowTransparency?y:$.bg===x.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:$.bg<256?this._getColorFromAnsiIndex($.bg):this._config.colors.background},X.prototype._getForegroundColor=function($){return $.fg===x.INVERTED_DEFAULT_COLOR?b.color.opaque(this._config.colors.background):$.fg<256?this._getColorFromAnsiIndex($.fg):this._config.colors.foreground},X.prototype._drawToCache=function($,Y){this._drawToCacheCount++,this._tmpCtx.save();var Q=this._getBackgroundColor($);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=Q.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ne=$.bold?this._config.fontWeightBold:this._config.fontWeight,be=$.italic?"italic":"";this._tmpCtx.font=be+" "+ne+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=x.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor($).css,$.dim&&(this._tmpCtx.globalAlpha=x.DIM_OPACITY),this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight);var fe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),de=!1;if(this._config.allowTransparency||(de=N(fe,Q)),de&&"_"===$.chars&&!this._config.allowTransparency)for(var le=1;le<=5&&(this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight-le),de=N(fe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),Q));le++);this._tmpCtx.restore();var ce=this._toCoordinateX(Y),me=this._toCoordinateY(Y);this._cacheCtx.putImageData(fe,ce,me);var je={index:Y,isEmpty:de,inBitmap:!1};return this._addGlyphToBitmap(je),je},X.prototype._addGlyphToBitmap=function($){var Y=this;!("createImageBitmap"in window)||v.isFirefox||v.isSafari||(this._glyphsWaitingOnBitmap.push($),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return Y._generateBitmap()},100)))},X.prototype._generateBitmap=function(){var $=this,Y=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(Q){$._bitmap=Q;for(var ne=0;ne<Y.length;ne++)Y[ne].inBitmap=!0}),this._bitmapCommitTimeout=null},X}(D.BaseCharAtlas);A.DynamicCharAtlas=M;var E=function(F){function X($,Y){return F.call(this)||this}return P(X,F),X.prototype.draw=function($,Y,Q,ne){return!1},X}(D.BaseCharAtlas);function N(F,X){for(var $=!0,Y=X.rgba>>>24,Q=X.rgba>>>16&255,ne=X.rgba>>>8&255,be=0;be<F.data.length;be+=4)F.data[be]===Y&&F.data[be+1]===Q&&F.data[be+2]===ne?F.data[be+3]=0:$=!1;return $}A.NoneCharAtlas=E},7001:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.LRUMap=void 0;var H=function(){function R(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return R.prototype._unlinkNode=function(P){var x=P.prev,D=P.next;P===this._head&&(this._head=D),P===this._tail&&(this._tail=x),null!==x&&(x.next=D),null!==D&&(D.prev=x)},R.prototype._appendNode=function(P){var x=this._tail;null!==x&&(x.next=P),P.prev=x,P.next=null,this._tail=P,null===this._head&&(this._head=P)},R.prototype.prealloc=function(P){for(var x=this._nodePool,D=0;D<P;D++)x.push({prev:null,next:null,key:null,value:null})},R.prototype.get=function(P){var x=this._map[P];return void 0!==x?(this._unlinkNode(x),this._appendNode(x),x.value):null},R.prototype.peekValue=function(P){var x=this._map[P];return void 0!==x?x.value:null},R.prototype.peek=function(){var P=this._head;return null===P?null:P.value},R.prototype.set=function(P,x){var D=this._map[P];if(void 0!==D)D=this._map[P],this._unlinkNode(D),D.value=x;else if(this.size>=this.capacity)D=this._head,this._unlinkNode(D),delete this._map[D.key],D.key=P,D.value=x,this._map[P]=D;else{var j=this._nodePool;j.length>0?((D=j.pop()).key=P,D.value=x):D={prev:null,next:null,key:P,value:x},this._map[P]=D,this.size++}this._appendNode(D)},R}();A.LRUMap=H},1296:function(W,A,H){var R,P=this&&this.__extends||(R=function(Q,ne){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,fe){be.__proto__=fe}||function(be,fe){for(var de in fe)Object.prototype.hasOwnProperty.call(fe,de)&&(be[de]=fe[de])})(Q,ne)},function(Y,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function ne(){this.constructor=Y}R(Y,Q),Y.prototype=null===Q?Object.create(Q):(ne.prototype=Q.prototype,new ne)}),x=this&&this.__decorate||function(Y,Q,ne,be){var fe,de=arguments.length,le=de<3?Q:null===be?be=Object.getOwnPropertyDescriptor(Q,ne):be;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(Y,Q,ne,be);else for(var ce=Y.length-1;ce>=0;ce--)(fe=Y[ce])&&(le=(de<3?fe(le):de>3?fe(Q,ne,le):fe(Q,ne))||le);return de>3&&le&&Object.defineProperty(Q,ne,le),le},D=this&&this.__param||function(Y,Q){return function(ne,be){Q(ne,be,Y)}},j=this&&this.__values||function(Y){var Q="function"==typeof Symbol&&Symbol.iterator,ne=Q&&Y[Q],be=0;if(ne)return ne.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&be>=Y.length&&(Y=void 0),{value:Y&&Y[be++],done:!Y}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRenderer=void 0;var L=H(3787),v=H(8803),k=H(844),b=H(4725),O=H(2585),S=H(8460),y=H(8055),T=H(9631),M="xterm-dom-renderer-owner-",E="xterm-fg-",N="xterm-bg-",F="xterm-focus",X=1,$=function(Y){function Q(ne,be,fe,de,le,ce,me,je,st,Mt){var Tt=Y.call(this)||this;return Tt._colors=ne,Tt._element=be,Tt._screenElement=fe,Tt._viewportElement=de,Tt._linkifier=le,Tt._linkifier2=ce,Tt._charSizeService=je,Tt._optionsService=st,Tt._bufferService=Mt,Tt._terminalClass=X++,Tt._rowElements=[],Tt._rowContainer=document.createElement("div"),Tt._rowContainer.classList.add("xterm-rows"),Tt._rowContainer.style.lineHeight="normal",Tt._rowContainer.setAttribute("aria-hidden","true"),Tt._refreshRowElements(Tt._bufferService.cols,Tt._bufferService.rows),Tt._selectionContainer=document.createElement("div"),Tt._selectionContainer.classList.add("xterm-selection"),Tt._selectionContainer.setAttribute("aria-hidden","true"),Tt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Tt._updateDimensions(),Tt._injectCss(),Tt._rowFactory=me.createInstance(L.DomRendererRowFactory,document,Tt._colors),Tt._element.classList.add(M+Tt._terminalClass),Tt._screenElement.appendChild(Tt._rowContainer),Tt._screenElement.appendChild(Tt._selectionContainer),Tt.register(Tt._linkifier.onShowLinkUnderline(function(Et){return Tt._onLinkHover(Et)})),Tt.register(Tt._linkifier.onHideLinkUnderline(function(Et){return Tt._onLinkLeave(Et)})),Tt.register(Tt._linkifier2.onShowLinkUnderline(function(Et){return Tt._onLinkHover(Et)})),Tt.register(Tt._linkifier2.onHideLinkUnderline(function(Et){return Tt._onLinkLeave(Et)})),Tt}return P(Q,Y),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return(new S.EventEmitter).event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._element.classList.remove(M+this._terminalClass),(0,T.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),Y.prototype.dispose.call(this)},Q.prototype._updateDimensions=function(){var ne,be;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var fe=j(this._rowElements),de=fe.next();!de.done;de=fe.next()){var le=de.value;le.style.width=this.dimensions.canvasWidth+"px",le.style.height=this.dimensions.actualCellHeight+"px",le.style.lineHeight=this.dimensions.actualCellHeight+"px",le.style.overflow="hidden"}}catch(me){ne={error:me}}finally{try{de&&!de.done&&(be=fe.return)&&be.call(fe)}finally{if(ne)throw ne.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var ce=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=ce,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},Q.prototype.setColors=function(ne){this._colors=ne,this._injectCss()},Q.prototype._injectCss=function(){var ne=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var be=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";be+=this._terminalSelector+" span:not(."+L.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+L.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+L.ITALIC_CLASS+" { font-style: italic;}",be+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",be+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",be+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+":not(."+L.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",be+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(fe,de){be+=ne._terminalSelector+" ."+E+de+" { color: "+fe.css+"; }"+ne._terminalSelector+" ."+N+de+" { background-color: "+fe.css+"; }"}),be+=this._terminalSelector+" ."+E+v.INVERTED_DEFAULT_COLOR+" { color: "+y.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+N+v.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=be},Q.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},Q.prototype._refreshRowElements=function(ne,be){for(var fe=this._rowElements.length;fe<=be;fe++){var de=document.createElement("div");this._rowContainer.appendChild(de),this._rowElements.push(de)}for(;this._rowElements.length>be;)this._rowContainer.removeChild(this._rowElements.pop())},Q.prototype.onResize=function(ne,be){this._refreshRowElements(ne,be),this._updateDimensions()},Q.prototype.onCharSizeChanged=function(){this._updateDimensions()},Q.prototype.onBlur=function(){this._rowContainer.classList.remove(F)},Q.prototype.onFocus=function(){this._rowContainer.classList.add(F)},Q.prototype.onSelectionChanged=function(ne,be,fe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(ne,be,fe),this.renderRows(0,this._bufferService.rows-1),ne&&be){var de=ne[1]-this._bufferService.buffer.ydisp,le=be[1]-this._bufferService.buffer.ydisp,ce=Math.max(de,0),me=Math.min(le,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||me<0)){var je=document.createDocumentFragment();if(fe){var st=ne[0]>be[0];je.appendChild(this._createSelectionElement(ce,st?be[0]:ne[0],st?ne[0]:be[0],me-ce+1))}else{var Mt=de===ce?ne[0]:0,Tt=ce===le?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(ce,Mt,Tt));var Et=me-ce-1;if(je.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,Et)),ce!==me){var Lt=le===me?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(me,0,Lt))}}this._selectionContainer.appendChild(je)}}},Q.prototype._createSelectionElement=function(ne,be,fe,de){void 0===de&&(de=1);var le=document.createElement("div");return le.style.height=de*this.dimensions.actualCellHeight+"px",le.style.top=ne*this.dimensions.actualCellHeight+"px",le.style.left=be*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(fe-be)+"px",le},Q.prototype.onCursorMove=function(){},Q.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},Q.prototype.clear=function(){var ne,be;try{for(var fe=j(this._rowElements),de=fe.next();!de.done;de=fe.next())de.value.innerText=""}catch(le){ne={error:le}}finally{try{de&&!de.done&&(be=fe.return)&&be.call(fe)}finally{if(ne)throw ne.error}}},Q.prototype.renderRows=function(ne,be){for(var fe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,de=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),le=this._optionsService.rawOptions.cursorBlink,ce=ne;ce<=be;ce++){var me=this._rowElements[ce];me.innerText="";var je=ce+this._bufferService.buffer.ydisp,st=this._bufferService.buffer.lines.get(je),Mt=this._optionsService.rawOptions.cursorStyle;me.appendChild(this._rowFactory.createRow(st,je,je===fe,Mt,de,le,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(Q.prototype,"_terminalSelector",{get:function(){return"."+M+this._terminalClass},enumerable:!1,configurable:!0}),Q.prototype._onLinkHover=function(ne){this._setCellUnderline(ne.x1,ne.x2,ne.y1,ne.y2,ne.cols,!0)},Q.prototype._onLinkLeave=function(ne){this._setCellUnderline(ne.x1,ne.x2,ne.y1,ne.y2,ne.cols,!1)},Q.prototype._setCellUnderline=function(ne,be,fe,de,le,ce){for(;ne!==be||fe!==de;){var me=this._rowElements[fe];if(!me)return;var je=me.children[ne];je&&(je.style.textDecoration=ce?"underline":"none"),++ne>=le&&(ne=0,fe++)}},x([D(6,O.IInstantiationService),D(7,b.ICharSizeService),D(8,O.IOptionsService),D(9,O.IBufferService)],Q)}(k.Disposable);A.DomRenderer=$},3787:function(W,A,H){var R=this&&this.__decorate||function(M,E,N,F){var X,$=arguments.length,Y=$<3?E:null===F?F=Object.getOwnPropertyDescriptor(E,N):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Y=Reflect.decorate(M,E,N,F);else for(var Q=M.length-1;Q>=0;Q--)(X=M[Q])&&(Y=($<3?X(Y):$>3?X(E,N,Y):X(E,N))||Y);return $>3&&Y&&Object.defineProperty(E,N,Y),Y},P=this&&this.__param||function(M,E){return function(N,F){E(N,F,M)}},x=this&&this.__values||function(M){var E="function"==typeof Symbol&&Symbol.iterator,N=E&&M[E],F=0;if(N)return N.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&F>=M.length&&(M=void 0),{value:M&&M[F++],done:!M}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRendererRowFactory=A.CURSOR_STYLE_UNDERLINE_CLASS=A.CURSOR_STYLE_BAR_CLASS=A.CURSOR_STYLE_BLOCK_CLASS=A.CURSOR_BLINK_CLASS=A.CURSOR_CLASS=A.STRIKETHROUGH_CLASS=A.UNDERLINE_CLASS=A.ITALIC_CLASS=A.DIM_CLASS=A.BOLD_CLASS=void 0;var D=H(8803),j=H(643),L=H(511),v=H(2585),k=H(8055),b=H(4725),O=H(4269),S=H(1752);A.BOLD_CLASS="xterm-bold",A.DIM_CLASS="xterm-dim",A.ITALIC_CLASS="xterm-italic",A.UNDERLINE_CLASS="xterm-underline",A.STRIKETHROUGH_CLASS="xterm-strikethrough",A.CURSOR_CLASS="xterm-cursor",A.CURSOR_BLINK_CLASS="xterm-cursor-blink",A.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",A.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",A.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var y=function(){function M(E,N,F,X,$,Y){this._document=E,this._colors=N,this._characterJoinerService=F,this._optionsService=X,this._coreService=$,this._decorationService=Y,this._workCell=new L.CellData,this._columnSelectMode=!1}return M.prototype.setColors=function(E){this._colors=E},M.prototype.onSelectionChanged=function(E,N,F){this._selectionStart=E,this._selectionEnd=N,this._columnSelectMode=F},M.prototype.createRow=function(E,N,F,X,$,Y,Q,ne){for(var be,fe,de=this._document.createDocumentFragment(),le=this._characterJoinerService.getJoinedCharacters(N),ce=0,me=Math.min(E.length,ne)-1;me>=0;me--)if(E.loadCell(me,this._workCell).getCode()!==j.NULL_CELL_CODE||F&&me===$){ce=me+1;break}for(me=0;me<ce;me++){E.loadCell(me,this._workCell);var je=this._workCell.getWidth();if(0!==je){var st=!1,Mt=me,Tt=this._workCell;if(le.length>0&&me===le[0][0]){st=!0;var Et=le.shift();Tt=new O.JoinedCellData(this._workCell,E.translateToString(!0,Et[0],Et[1]),Et[1]-Et[0]),Mt=Et[1]-1,je=Tt.getWidth()}var Lt=this._document.createElement("span");if(je>1&&(Lt.style.width=Q*je+"px"),st&&(Lt.style.display="inline",$>=me&&$<=Mt&&($=me)),!this._coreService.isCursorHidden&&F&&me===$)switch(Lt.classList.add(A.CURSOR_CLASS),Y&&Lt.classList.add(A.CURSOR_BLINK_CLASS),X){case"bar":Lt.classList.add(A.CURSOR_STYLE_BAR_CLASS);break;case"underline":Lt.classList.add(A.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Lt.classList.add(A.CURSOR_STYLE_BLOCK_CLASS)}Tt.isBold()&&Lt.classList.add(A.BOLD_CLASS),Tt.isItalic()&&Lt.classList.add(A.ITALIC_CLASS),Tt.isDim()&&Lt.classList.add(A.DIM_CLASS),Tt.isUnderline()&&Lt.classList.add(A.UNDERLINE_CLASS),Tt.isInvisible()?Lt.textContent=j.WHITESPACE_CELL_CHAR:Lt.textContent=Tt.getChars()||j.WHITESPACE_CELL_CHAR,Tt.isStrikethrough()&&Lt.classList.add(A.STRIKETHROUGH_CLASS);var Ze=Tt.getFgColor(),$t=Tt.getFgColorMode(),Ft=Tt.getBgColor(),pn=Tt.getBgColorMode(),nt=!!Tt.isInverse();if(nt){var Ot=Ze;Ze=Ft,Ft=Ot;var _t=$t;$t=pn,pn=_t}var Ct=void 0,We=void 0,ut=!1;try{for(var dt=(be=void 0,x(this._decorationService.getDecorationsAtCell(me,N))),Ut=dt.next();!Ut.done;Ut=dt.next()){var B=Ut.value;"top"!==B.options.layer&&ut||(B.backgroundColorRGB&&(pn=50331648,Ft=B.backgroundColorRGB.rgba>>8&16777215,Ct=B.backgroundColorRGB),B.foregroundColorRGB&&($t=50331648,Ze=B.foregroundColorRGB.rgba>>8&16777215,We=B.foregroundColorRGB),ut="top"===B.options.layer)}}catch(ge){be={error:ge}}finally{try{Ut&&!Ut.done&&(fe=dt.return)&&fe.call(dt)}finally{if(be)throw be.error}}var U=this._isCellInSelection(me,N);ut||this._colors.selectionForeground&&U&&($t=50331648,Ze=this._colors.selectionForeground.rgba>>8&16777215,We=this._colors.selectionForeground),U&&(Ct=this._colors.selectionOpaque,ut=!0),ut&&Lt.classList.add("xterm-decoration-top");var tt=void 0;switch(pn){case 16777216:case 33554432:tt=this._colors.ansi[Ft],Lt.classList.add("xterm-bg-"+Ft);break;case 50331648:tt=k.rgba.toColor(Ft>>16,Ft>>8&255,255&Ft),this._addStyle(Lt,"background-color:#"+T((Ft>>>0).toString(16),"0",6));break;default:nt?(tt=this._colors.foreground,Lt.classList.add("xterm-bg-"+D.INVERTED_DEFAULT_COLOR)):tt=this._colors.background}switch($t){case 16777216:case 33554432:Tt.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(Lt,tt,this._colors.ansi[Ze],Tt,Ct,void 0)||Lt.classList.add("xterm-fg-"+Ze);break;case 50331648:var Ye=k.rgba.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(Lt,tt,Ye,Tt,Ct,We)||this._addStyle(Lt,"color:#"+T(Ze.toString(16),"0",6));break;default:this._applyMinimumContrast(Lt,tt,this._colors.foreground,Tt,Ct,void 0)||nt&&Lt.classList.add("xterm-fg-"+D.INVERTED_DEFAULT_COLOR)}de.appendChild(Lt),me=Mt}}return de},M.prototype._applyMinimumContrast=function(E,N,F,X,$,Y){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,S.excludeFromContrastRatioDemands)(X.getCode()))return!1;var Q=void 0;return $||Y||(Q=this._colors.contrastCache.getColor(N.rgba,F.rgba)),void 0===Q&&(Q=k.color.ensureContrastRatio($||N,Y||F,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(($||N).rgba,(Y||F).rgba,null!=Q?Q:null)),!!Q&&(this._addStyle(E,"color:"+Q.css),!0)},M.prototype._addStyle=function(E,N){E.setAttribute("style",""+(E.getAttribute("style")||"")+N+";")},M.prototype._isCellInSelection=function(E,N){var F=this._selectionStart,X=this._selectionEnd;return!(!F||!X)&&(this._columnSelectMode?F[0]<=X[0]?E>=F[0]&&N>=F[1]&&E<X[0]&&N<=X[1]:E<F[0]&&N>=F[1]&&E>=X[0]&&N<=X[1]:N>F[1]&&N<X[1]||F[1]===X[1]&&N===F[1]&&E>=F[0]&&E<X[0]||F[1]<X[1]&&N===X[1]&&E<X[0]||F[1]<X[1]&&N===F[1]&&E>=F[0])},R([P(2,b.ICharacterJoinerService),P(3,v.IOptionsService),P(4,v.ICoreService),P(5,v.IDecorationService)],M)}();function T(M,E,N){for(;M.length<N;)M=E+M;return M}A.DomRendererRowFactory=y},456:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionModel=void 0;var H=function(){function R(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return R.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(R.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(x=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?x%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(x/this._bufferService.cols)-1]:[x%this._bufferService.cols,this.selectionStart[1]+Math.floor(x/this._bufferService.cols)]:[x,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(x=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[x%this._bufferService.cols,this.selectionStart[1]+Math.floor(x/this._bufferService.cols)]:[Math.max(x,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var x},enumerable:!1,configurable:!0}),R.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,x=this.selectionEnd;return!(!P||!x)&&(P[1]>x[1]||P[1]===x[1]&&P[0]>x[0])},R.prototype.onTrim=function(P){return this.selectionStart&&(this.selectionStart[1]-=P),this.selectionEnd&&(this.selectionEnd[1]-=P),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},R}();A.SelectionModel=H},428:function(W,A,H){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharSizeService=void 0;var x=H(2585),D=H(8460),j=function(){function v(k,b,O){this._optionsService=O,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new L(k,b,this._optionsService)}return Object.defineProperty(v.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),v.prototype.measure=function(){var k=this._measureStrategy.measure();k.width===this.width&&k.height===this.height||(this.width=k.width,this.height=k.height,this._onCharSizeChange.fire())},R([P(2,x.IOptionsService)],v)}();A.CharSizeService=j;var L=function(){function v(k,b,O){this._document=k,this._parentElement=b,this._optionsService=O,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return v.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var k=this._measureElement.getBoundingClientRect();return 0!==k.width&&0!==k.height&&(this._result.width=k.width,this._result.height=Math.ceil(k.height)),this._result},v}()},4269:function(W,A,H){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(M[N]=E[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),x=this&&this.__decorate||function(S,y,T,M){var E,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(E=S[X])&&(F=(N<3?E(F):N>3?E(y,T,F):E(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharacterJoinerService=A.JoinedCellData=void 0;var j=H(3734),L=H(643),v=H(511),k=H(2585),b=function(S){function y(T,M,E){var N=S.call(this)||this;return N.content=0,N.combinedData="",N.fg=T.fg,N.bg=T.bg,N.combinedData=M,N._width=E,N}return P(y,S),y.prototype.isCombined=function(){return 2097152},y.prototype.getWidth=function(){return this._width},y.prototype.getChars=function(){return this.combinedData},y.prototype.getCode=function(){return 2097151},y.prototype.setFromCharData=function(T){throw new Error("not implemented")},y.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},y}(j.AttributeData);A.JoinedCellData=b;var O=function(){function S(y){this._bufferService=y,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return S.prototype.register=function(y){var T={id:this._nextCharacterJoinerId++,handler:y};return this._characterJoiners.push(T),T.id},S.prototype.deregister=function(y){for(var T=0;T<this._characterJoiners.length;T++)if(this._characterJoiners[T].id===y)return this._characterJoiners.splice(T,1),!0;return!1},S.prototype.getJoinedCharacters=function(y){if(0===this._characterJoiners.length)return[];var T=this._bufferService.buffer.lines.get(y);if(!T||0===T.length)return[];for(var M=[],E=T.translateToString(!0),N=0,F=0,X=0,$=T.getFg(0),Y=T.getBg(0),Q=0;Q<T.getTrimmedLength();Q++)if(T.loadCell(Q,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==$||this._workCell.bg!==Y){if(Q-N>1)for(var ne=this._getJoinedRanges(E,X,F,T,N),be=0;be<ne.length;be++)M.push(ne[be]);N=Q,X=F,$=this._workCell.fg,Y=this._workCell.bg}F+=this._workCell.getChars().length||L.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-N>1)for(ne=this._getJoinedRanges(E,X,F,T,N),be=0;be<ne.length;be++)M.push(ne[be]);return M},S.prototype._getJoinedRanges=function(y,T,M,E,N){var F=y.substring(T,M),X=[];try{X=this._characterJoiners[0].handler(F)}catch(ne){console.error(ne)}for(var $=1;$<this._characterJoiners.length;$++)try{for(var Y=this._characterJoiners[$].handler(F),Q=0;Q<Y.length;Q++)S._mergeRanges(X,Y[Q])}catch(ne){console.error(ne)}return this._stringRangesToCellRanges(X,E,N),X},S.prototype._stringRangesToCellRanges=function(y,T,M){var E=0,N=!1,F=0,X=y[E];if(X){for(var $=M;$<this._bufferService.cols;$++){var Y=T.getWidth($),Q=T.getString($).length||L.WHITESPACE_CELL_CHAR.length;if(0!==Y){if(!N&&X[0]<=F&&(X[0]=$,N=!0),X[1]<=F){if(X[1]=$,!(X=y[++E]))break;X[0]<=F?(X[0]=$,N=!0):N=!1}F+=Q}}X&&(X[1]=this._bufferService.cols)}},S._mergeRanges=function(y,T){for(var M=!1,E=0;E<y.length;E++){var N=y[E];if(M){if(T[1]<=N[0])return y[E-1][1]=T[1],y;if(T[1]<=N[1])return y[E-1][1]=Math.max(T[1],N[1]),y.splice(E,1),y;y.splice(E,1),E--}else{if(T[1]<=N[0])return y.splice(E,0,T),y;if(T[1]<=N[1])return N[0]=Math.min(T[0],N[0]),y;T[0]<N[1]&&(N[0]=Math.min(T[0],N[0]),M=!0)}}return M?y[y.length-1][1]=T[1]:y.push(T),y},S=x([D(0,k.IBufferService)],S)}();A.CharacterJoinerService=O},5114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CoreBrowserService=void 0;var H=function(){function R(P){this._textarea=P}return Object.defineProperty(R.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),R}();A.CoreBrowserService=H},8934:function(W,A,H){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseService=void 0;var x=H(4725),D=H(9806),j=function(){function L(v,k){this._renderService=v,this._charSizeService=k}return L.prototype.getCoords=function(v,k,b,O,S){return(0,D.getCoords)(window,v,k,b,O,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,S)},L.prototype.getRawByteCoords=function(v,k,b,O){var S=this.getCoords(v,k,b,O);return(0,D.getRawByteCoords)(S)},R([P(0,x.IRenderService),P(1,x.ICharSizeService)],L)}();A.MouseService=j},3230:function(W,A,H){var R,P=this&&this.__extends||(R=function(M,E){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,F){N.__proto__=F}||function(N,F){for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&(N[X]=F[X])})(M,E)},function(T,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function E(){this.constructor=T}R(T,M),T.prototype=null===M?Object.create(M):(E.prototype=M.prototype,new E)}),x=this&&this.__decorate||function(T,M,E,N){var F,X=arguments.length,$=X<3?M:null===N?N=Object.getOwnPropertyDescriptor(M,E):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(T,M,E,N);else for(var Y=T.length-1;Y>=0;Y--)(F=T[Y])&&($=(X<3?F($):X>3?F(M,E,$):F(M,E))||$);return X>3&&$&&Object.defineProperty(M,E,$),$},D=this&&this.__param||function(T,M){return function(E,N){M(E,N,T)}};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderService=void 0;var j=H(6193),L=H(8460),v=H(844),k=H(5596),b=H(3656),O=H(2585),S=H(4725),y=function(T){function M(E,N,F,X,$,Y,Q){var ne=T.call(this)||this;if(ne._renderer=E,ne._rowCount=N,ne._charSizeService=$,ne._isPaused=!1,ne._needsFullRefresh=!1,ne._isNextRenderRedrawOnly=!0,ne._needsSelectionRefresh=!1,ne._canvasWidth=0,ne._canvasHeight=0,ne._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ne._onDimensionsChange=new L.EventEmitter,ne._onRenderedViewportChange=new L.EventEmitter,ne._onRender=new L.EventEmitter,ne._onRefreshRequest=new L.EventEmitter,ne.register({dispose:function(){return ne._renderer.dispose()}}),ne._renderDebouncer=new j.RenderDebouncer(function(fe,de){return ne._renderRows(fe,de)}),ne.register(ne._renderDebouncer),ne._screenDprMonitor=new k.ScreenDprMonitor,ne._screenDprMonitor.setListener(function(){return ne.onDevicePixelRatioChange()}),ne.register(ne._screenDprMonitor),ne.register(Q.onResize(function(){return ne._fullRefresh()})),ne.register(Q.buffers.onBufferActivate(function(){var fe;return null===(fe=ne._renderer)||void 0===fe?void 0:fe.clear()})),ne.register(X.onOptionChange(function(){return ne._handleOptionsChanged()})),ne.register(ne._charSizeService.onCharSizeChange(function(){return ne.onCharSizeChanged()})),ne.register(Y.onDecorationRegistered(function(){return ne._fullRefresh()})),ne.register(Y.onDecorationRemoved(function(){return ne._fullRefresh()})),ne._renderer.onRequestRedraw(function(fe){return ne.refreshRows(fe.start,fe.end,!0)}),ne.register((0,b.addDisposableDomListener)(window,"resize",function(){return ne.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var be=new IntersectionObserver(function(fe){return ne._onIntersectionChange(fe[fe.length-1])},{threshold:0});be.observe(F),ne.register({dispose:function(){return be.disconnect()}})}return ne}return P(M,T),Object.defineProperty(M.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),M.prototype._onIntersectionChange=function(E){this._isPaused=void 0===E.isIntersecting?0===E.intersectionRatio:!E.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},M.prototype.refreshRows=function(E,N,F){void 0===F&&(F=!1),this._isPaused?this._needsFullRefresh=!0:(F||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(E,N,this._rowCount))},M.prototype._renderRows=function(E,N){this._renderer.renderRows(E,N),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:E,end:N}),this._onRender.fire({start:E,end:N}),this._isNextRenderRedrawOnly=!0},M.prototype.resize=function(E,N){this._rowCount=N,this._fireOnCanvasResize()},M.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},M.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},M.prototype.dispose=function(){T.prototype.dispose.call(this)},M.prototype.setRenderer=function(E){var N=this;this._renderer.dispose(),this._renderer=E,this._renderer.onRequestRedraw(function(F){return N.refreshRows(F.start,F.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},M.prototype.addRefreshCallback=function(E){return this._renderDebouncer.addRefreshCallback(E)},M.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},M.prototype.clearTextureAtlas=function(){var E,N;null===(N=null===(E=this._renderer)||void 0===E?void 0:E.clearTextureAtlas)||void 0===N||N.call(E),this._fullRefresh()},M.prototype.setColors=function(E){this._renderer.setColors(E),this._fullRefresh()},M.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},M.prototype.onResize=function(E,N){this._renderer.onResize(E,N),this._fullRefresh()},M.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},M.prototype.onBlur=function(){this._renderer.onBlur()},M.prototype.onFocus=function(){this._renderer.onFocus()},M.prototype.onSelectionChanged=function(E,N,F){this._selectionState.start=E,this._selectionState.end=N,this._selectionState.columnSelectMode=F,this._renderer.onSelectionChanged(E,N,F)},M.prototype.onCursorMove=function(){this._renderer.onCursorMove()},M.prototype.clear=function(){this._renderer.clear()},x([D(3,O.IOptionsService),D(4,S.ICharSizeService),D(5,O.IDecorationService),D(6,O.IBufferService)],M)}(v.Disposable);A.RenderService=y},9312:function(W,A,H){var R,P=this&&this.__extends||(R=function($,Y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,ne){Q.__proto__=ne}||function(Q,ne){for(var be in ne)Object.prototype.hasOwnProperty.call(ne,be)&&(Q[be]=ne[be])})($,Y)},function(X,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function Y(){this.constructor=X}R(X,$),X.prototype=null===$?Object.create($):(Y.prototype=$.prototype,new Y)}),x=this&&this.__decorate||function(X,$,Y,Q){var ne,be=arguments.length,fe=be<3?$:null===Q?Q=Object.getOwnPropertyDescriptor($,Y):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(X,$,Y,Q);else for(var de=X.length-1;de>=0;de--)(ne=X[de])&&(fe=(be<3?ne(fe):be>3?ne($,Y,fe):ne($,Y))||fe);return be>3&&fe&&Object.defineProperty($,Y,fe),fe},D=this&&this.__param||function(X,$){return function(Y,Q){$(Y,Q,X)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionService=void 0;var j=H(6114),L=H(456),v=H(511),k=H(8460),b=H(4725),O=H(2585),S=H(9806),y=H(9504),T=H(844),M=H(4841),E=String.fromCharCode(160),N=new RegExp(E,"g"),F=function(X){function $(Y,Q,ne,be,fe,de,le,ce){var me=X.call(this)||this;return me._element=Y,me._screenElement=Q,me._linkifier=ne,me._bufferService=be,me._coreService=fe,me._mouseService=de,me._optionsService=le,me._renderService=ce,me._dragScrollAmount=0,me._enabled=!0,me._workCell=new v.CellData,me._mouseDownTimeStamp=0,me._oldHasSelection=!1,me._oldSelectionStart=void 0,me._oldSelectionEnd=void 0,me._onLinuxMouseSelection=me.register(new k.EventEmitter),me._onRedrawRequest=me.register(new k.EventEmitter),me._onSelectionChange=me.register(new k.EventEmitter),me._onRequestScrollLines=me.register(new k.EventEmitter),me._mouseMoveListener=function(je){return me._onMouseMove(je)},me._mouseUpListener=function(je){return me._onMouseUp(je)},me._coreService.onUserInput(function(){me.hasSelection&&me.clearSelection()}),me._trimListener=me._bufferService.buffer.lines.onTrim(function(je){return me._onTrim(je)}),me.register(me._bufferService.buffers.onBufferActivate(function(je){return me._onBufferActivate(je)})),me.enable(),me._model=new L.SelectionModel(me._bufferService),me._activeSelectionMode=0,me}return P($,X),Object.defineProperty($.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){this._removeMouseDownListeners()},$.prototype.reset=function(){this.clearSelection()},$.prototype.disable=function(){this.clearSelection(),this._enabled=!1},$.prototype.enable=function(){this._enabled=!0},Object.defineProperty($.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"hasSelection",{get:function(){var Q=this._model.finalSelectionStart,ne=this._model.finalSelectionEnd;return!(!Q||!ne||Q[0]===ne[0]&&Q[1]===ne[1])},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionText",{get:function(){var Q=this._model.finalSelectionStart,ne=this._model.finalSelectionEnd;if(!Q||!ne)return"";var be=this._bufferService.buffer,fe=[];if(3===this._activeSelectionMode){if(Q[0]===ne[0])return"";for(var de=Q[0]<ne[0]?Q[0]:ne[0],le=Q[0]<ne[0]?ne[0]:Q[0],ce=Q[1];ce<=ne[1];ce++){var me=be.translateBufferLineToString(ce,!0,de,le);fe.push(me)}}else{var je=Q[1]===ne[1]?ne[0]:void 0;for(fe.push(be.translateBufferLineToString(Q[1],!0,Q[0],je)),ce=Q[1]+1;ce<=ne[1]-1;ce++){var st=be.lines.get(ce);me=be.translateBufferLineToString(ce,!0),null!=st&&st.isWrapped?fe[fe.length-1]+=me:fe.push(me)}Q[1]!==ne[1]&&(st=be.lines.get(ne[1]),me=be.translateBufferLineToString(ne[1],!0,0,ne[0]),st&&st.isWrapped?fe[fe.length-1]+=me:fe.push(me))}return fe.map(function(Mt){return Mt.replace(N," ")}).join(j.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),$.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},$.prototype.refresh=function(Y){var Q=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return Q._refresh()})),j.isLinux&&Y&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},$.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},$.prototype._isClickInSelection=function(Y){var Q=this._getMouseBufferCoords(Y),ne=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!!(ne&&be&&Q)&&this._areCoordsInSelection(Q,ne,be)},$.prototype.isCellInSelection=function(Y,Q){var ne=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!(!ne||!be)&&this._areCoordsInSelection([Y,Q],ne,be)},$.prototype._areCoordsInSelection=function(Y,Q,ne){return Y[1]>Q[1]&&Y[1]<ne[1]||Q[1]===ne[1]&&Y[1]===Q[1]&&Y[0]>=Q[0]&&Y[0]<ne[0]||Q[1]<ne[1]&&Y[1]===ne[1]&&Y[0]<ne[0]||Q[1]<ne[1]&&Y[1]===Q[1]&&Y[0]>=Q[0]},$.prototype._selectWordAtCursor=function(Y,Q){var ne,be,fe=null===(be=null===(ne=this._linkifier.currentLink)||void 0===ne?void 0:ne.link)||void 0===be?void 0:be.range;if(fe)return this._model.selectionStart=[fe.start.x-1,fe.start.y-1],this._model.selectionStartLength=(0,M.getRangeLength)(fe,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var de=this._getMouseBufferCoords(Y);return!!de&&(this._selectWordAt(de,Q),this._model.selectionEnd=void 0,!0)},$.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},$.prototype.selectLines=function(Y,Q){this._model.clearSelection(),Y=Math.max(Y,0),Q=Math.min(Q,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,Y],this._model.selectionEnd=[this._bufferService.cols,Q],this.refresh(),this._onSelectionChange.fire()},$.prototype._onTrim=function(Y){this._model.onTrim(Y)&&this.refresh()},$.prototype._getMouseBufferCoords=function(Y){var Q=this._mouseService.getCoords(Y,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(Q)return Q[0]--,Q[1]--,Q[1]+=this._bufferService.buffer.ydisp,Q},$.prototype._getMouseEventScrollAmount=function(Y){var Q=(0,S.getCoordsRelativeToElement)(window,Y,this._screenElement)[1],ne=this._renderService.dimensions.canvasHeight;return Q>=0&&Q<=ne?0:(Q>ne&&(Q-=ne),Q=Math.min(Math.max(Q,-50),50),(Q/=50)/Math.abs(Q)+Math.round(14*Q))},$.prototype.shouldForceSelection=function(Y){return j.isMac?Y.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:Y.shiftKey},$.prototype.onMouseDown=function(Y){if(this._mouseDownTimeStamp=Y.timeStamp,(2!==Y.button||!this.hasSelection)&&0===Y.button){if(!this._enabled){if(!this.shouldForceSelection(Y))return;Y.stopPropagation()}Y.preventDefault(),this._dragScrollAmount=0,this._enabled&&Y.shiftKey?this._onIncrementalClick(Y):1===Y.detail?this._onSingleClick(Y):2===Y.detail?this._onDoubleClick(Y):3===Y.detail&&this._onTripleClick(Y),this._addMouseDownListeners(),this.refresh(!0)}},$.prototype._addMouseDownListeners=function(){var Y=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return Y._dragScroll()},50)},$.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},$.prototype._onIncrementalClick=function(Y){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(Y))},$.prototype._onSingleClick=function(Y){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(Y)?3:0,this._model.selectionStart=this._getMouseBufferCoords(Y),this._model.selectionStart){this._model.selectionEnd=void 0;var Q=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);Q&&Q.length!==this._model.selectionStart[0]&&0===Q.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},$.prototype._onDoubleClick=function(Y){this._selectWordAtCursor(Y,!0)&&(this._activeSelectionMode=1)},$.prototype._onTripleClick=function(Y){var Q=this._getMouseBufferCoords(Y);Q&&(this._activeSelectionMode=2,this._selectLineAt(Q[1]))},$.prototype.shouldColumnSelect=function(Y){return Y.altKey&&!(j.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},$.prototype._onMouseMove=function(Y){if(Y.stopImmediatePropagation(),this._model.selectionStart){var Q=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(Y),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(Y),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ne=this._bufferService.buffer;if(this._model.selectionEnd[1]<ne.lines.length){var be=ne.lines.get(this._model.selectionEnd[1]);be&&0===be.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}Q&&Q[0]===this._model.selectionEnd[0]&&Q[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},$.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var Y=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(Y.ydisp+this._bufferService.rows,Y.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=Y.ydisp),this.refresh()}},$.prototype._onMouseUp=function(Y){var Q=Y.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&Q<500&&Y.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ne=this._mouseService.getCoords(Y,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ne&&void 0!==ne[0]&&void 0!==ne[1]){var be=(0,y.moveToCellSequence)(ne[0]-1,ne[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(be,!0)}}}else this._fireEventIfSelectionChanged()},$.prototype._fireEventIfSelectionChanged=function(){var Y=this._model.finalSelectionStart,Q=this._model.finalSelectionEnd,ne=!(!Y||!Q||Y[0]===Q[0]&&Y[1]===Q[1]);ne?Y&&Q&&(this._oldSelectionStart&&this._oldSelectionEnd&&Y[0]===this._oldSelectionStart[0]&&Y[1]===this._oldSelectionStart[1]&&Q[0]===this._oldSelectionEnd[0]&&Q[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(Y,Q,ne)):this._oldHasSelection&&this._fireOnSelectionChange(Y,Q,ne)},$.prototype._fireOnSelectionChange=function(Y,Q,ne){this._oldSelectionStart=Y,this._oldSelectionEnd=Q,this._oldHasSelection=ne,this._onSelectionChange.fire()},$.prototype._onBufferActivate=function(Y){var Q=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=Y.activeBuffer.lines.onTrim(function(ne){return Q._onTrim(ne)})},$.prototype._convertViewportColToCharacterIndex=function(Y,Q){for(var ne=Q[0],be=0;Q[0]>=be;be++){var fe=Y.loadCell(be,this._workCell).getChars().length;0===this._workCell.getWidth()?ne--:fe>1&&Q[0]!==be&&(ne+=fe-1)}return ne},$.prototype.setSelection=function(Y,Q,ne){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[Y,Q],this._model.selectionStartLength=ne,this.refresh(),this._fireEventIfSelectionChanged()},$.prototype.rightClickSelect=function(Y){this._isClickInSelection(Y)||(this._selectWordAtCursor(Y,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},$.prototype._getWordAt=function(Y,Q,ne,be){if(void 0===ne&&(ne=!0),void 0===be&&(be=!0),!(Y[0]>=this._bufferService.cols)){var fe=this._bufferService.buffer,de=fe.lines.get(Y[1]);if(de){var le=fe.translateBufferLineToString(Y[1],!1),ce=this._convertViewportColToCharacterIndex(de,Y),me=ce,je=Y[0]-ce,st=0,Mt=0,Tt=0,Et=0;if(" "===le.charAt(ce)){for(;ce>0&&" "===le.charAt(ce-1);)ce--;for(;me<le.length&&" "===le.charAt(me+1);)me++}else{var Lt=Y[0],Ze=Y[0];0===de.getWidth(Lt)&&(st++,Lt--),2===de.getWidth(Ze)&&(Mt++,Ze++);var $t=de.getString(Ze).length;for($t>1&&(Et+=$t-1,me+=$t-1);Lt>0&&ce>0&&!this._isCharWordSeparator(de.loadCell(Lt-1,this._workCell));){de.loadCell(Lt-1,this._workCell);var Ft=this._workCell.getChars().length;0===this._workCell.getWidth()?(st++,Lt--):Ft>1&&(Tt+=Ft-1,ce-=Ft-1),ce--,Lt--}for(;Ze<de.length&&me+1<le.length&&!this._isCharWordSeparator(de.loadCell(Ze+1,this._workCell));){de.loadCell(Ze+1,this._workCell);var pn=this._workCell.getChars().length;2===this._workCell.getWidth()?(Mt++,Ze++):pn>1&&(Et+=pn-1,me+=pn-1),me++,Ze++}}me++;var nt=ce+je-st+Tt,Ot=Math.min(this._bufferService.cols,me-ce+st+Mt-Tt-Et);if(Q||""!==le.slice(ce,me).trim()){if(ne&&0===nt&&32!==de.getCodePoint(0)){var _t=fe.lines.get(Y[1]-1);if(_t&&de.isWrapped&&32!==_t.getCodePoint(this._bufferService.cols-1)){var Ct=this._getWordAt([this._bufferService.cols-1,Y[1]-1],!1,!0,!1);if(Ct){var We=this._bufferService.cols-Ct.start;nt-=We,Ot+=We}}}if(be&&nt+Ot===this._bufferService.cols&&32!==de.getCodePoint(this._bufferService.cols-1)){var ut=fe.lines.get(Y[1]+1);if((null==ut?void 0:ut.isWrapped)&&32!==ut.getCodePoint(0)){var dt=this._getWordAt([0,Y[1]+1],!1,!1,!0);dt&&(Ot+=dt.length)}}return{start:nt,length:Ot}}}}},$.prototype._selectWordAt=function(Y,Q){var ne=this._getWordAt(Y,Q);if(ne){for(;ne.start<0;)ne.start+=this._bufferService.cols,Y[1]--;this._model.selectionStart=[ne.start,Y[1]],this._model.selectionStartLength=ne.length}},$.prototype._selectToWordAt=function(Y){var Q=this._getWordAt(Y,!0);if(Q){for(var ne=Y[1];Q.start<0;)Q.start+=this._bufferService.cols,ne--;if(!this._model.areSelectionValuesReversed())for(;Q.start+Q.length>this._bufferService.cols;)Q.length-=this._bufferService.cols,ne++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?Q.start:Q.start+Q.length,ne]}},$.prototype._isCharWordSeparator=function(Y){return 0!==Y.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(Y.getChars())>=0},$.prototype._selectLineAt=function(Y){var Q=this._bufferService.buffer.getWrappedRangeForLine(Y),ne={start:{x:0,y:Q.first},end:{x:this._bufferService.cols-1,y:Q.last}};this._model.selectionStart=[0,Q.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,M.getRangeLength)(ne,this._bufferService.cols)},x([D(3,O.IBufferService),D(4,O.ICoreService),D(5,b.IMouseService),D(6,O.IOptionsService),D(7,b.IRenderService)],$)}(T.Disposable);A.SelectionService=F},4725:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.ICharacterJoinerService=A.ISoundService=A.ISelectionService=A.IRenderService=A.IMouseService=A.ICoreBrowserService=A.ICharSizeService=void 0;var R=H(8343);A.ICharSizeService=(0,R.createDecorator)("CharSizeService"),A.ICoreBrowserService=(0,R.createDecorator)("CoreBrowserService"),A.IMouseService=(0,R.createDecorator)("MouseService"),A.IRenderService=(0,R.createDecorator)("RenderService"),A.ISelectionService=(0,R.createDecorator)("SelectionService"),A.ISoundService=(0,R.createDecorator)("SoundService"),A.ICharacterJoinerService=(0,R.createDecorator)("CharacterJoinerService")},357:function(W,A,H){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SoundService=void 0;var x=H(2585),D=function(){function j(L){this._optionsService=L}return Object.defineProperty(j,"audioContext",{get:function(){if(!j._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;j._audioContext=new v}return j._audioContext},enumerable:!1,configurable:!0}),j.prototype.playBellSound=function(){var L=j.audioContext;if(L){var v=L.createBufferSource();L.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(k){v.buffer=k,v.connect(L.destination),v.start(0)})}},j.prototype._base64ToArrayBuffer=function(L){for(var v=window.atob(L),k=v.length,b=new Uint8Array(k),O=0;O<k;O++)b[O]=v.charCodeAt(O);return b.buffer},j.prototype._removeMimeType=function(L){return L.split(",")[1]},j=R([P(0,x.IOptionsService)],j)}();A.SoundService=D},6349:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.CircularList=void 0;var R=H(8460),P=function(){function x(D){this._maxLength=D,this.onDeleteEmitter=new R.EventEmitter,this.onInsertEmitter=new R.EventEmitter,this.onTrimEmitter=new R.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(x.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"maxLength",{get:function(){return this._maxLength},set:function(j){if(this._maxLength!==j){for(var L=new Array(j),v=0;v<Math.min(j,this.length);v++)L[v]=this._array[this._getCyclicIndex(v)];this._array=L,this._maxLength=j,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"length",{get:function(){return this._length},set:function(j){if(j>this._length)for(var L=this._length;L<j;L++)this._array[L]=void 0;this._length=j},enumerable:!1,configurable:!0}),x.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},x.prototype.set=function(D,j){this._array[this._getCyclicIndex(D)]=j},x.prototype.push=function(D){this._array[this._getCyclicIndex(this._length)]=D,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},x.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(x.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),x.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},x.prototype.splice=function(D,j){for(var L=[],v=2;v<arguments.length;v++)L[v-2]=arguments[v];if(j){for(var k=D;k<this._length-j;k++)this._array[this._getCyclicIndex(k)]=this._array[this._getCyclicIndex(k+j)];this._length-=j,this.onDeleteEmitter.fire({index:D,amount:j})}for(k=this._length-1;k>=D;k--)this._array[this._getCyclicIndex(k+L.length)]=this._array[this._getCyclicIndex(k)];for(k=0;k<L.length;k++)this._array[this._getCyclicIndex(D+k)]=L[k];if(L.length&&this.onInsertEmitter.fire({index:D,amount:L.length}),this._length+L.length>this._maxLength){var b=this._length+L.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=L.length},x.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},x.prototype.shiftElements=function(D,j,L){if(!(j<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+L<0)throw new Error("Cannot shift elements in list beyond index 0");if(L>0){for(var v=j-1;v>=0;v--)this.set(D+v+L,this.get(D+v));var k=D+j+L-this._length;if(k>0)for(this._length+=k;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<j;v++)this.set(D+v+L,this.get(D+v))}},x.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},x}();A.CircularList=P},1439:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function H(R,P){if(void 0===P&&(P=5),"object"!=typeof R)return R;var x=Array.isArray(R)?[]:{};for(var D in R)x[D]=P<=1?R[D]:R[D]&&H(R[D],P-1);return x}},8055:function(W,A){var H,R,P,x,v,D=this&&this.__read||function(v,k){var b="function"==typeof Symbol&&v[Symbol.iterator];if(!b)return v;var O,S,y=b.call(v),T=[];try{for(;(void 0===k||k-- >0)&&!(O=y.next()).done;)T.push(O.value)}catch(M){S={error:M}}finally{try{O&&!O.done&&(b=y.return)&&b.call(y)}finally{if(S)throw S.error}}return T};function j(v){var k=v.toString(16);return k.length<2?"0"+k:k}function L(v,k){return v<k?(k+.05)/(v+.05):(v+.05)/(k+.05)}Object.defineProperty(A,"__esModule",{value:!0}),A.contrastRatio=A.toPaddedHex=A.rgba=A.rgb=A.css=A.color=A.channels=void 0,(v=H=A.channels||(A.channels={})).toCss=function(k,b,O,S){return void 0!==S?"#"+j(k)+j(b)+j(O)+j(S):"#"+j(k)+j(b)+j(O)},v.toRgba=function(k,b,O,S){return void 0===S&&(S=255),(k<<24|b<<16|O<<8|S)>>>0},(R=A.color||(A.color={})).blend=function(v,k){var b=(255&k.rgba)/255;if(1===b)return{css:k.css,rgba:k.rgba};var O=k.rgba>>24&255,S=k.rgba>>16&255,y=k.rgba>>8&255,T=v.rgba>>24&255,M=v.rgba>>16&255,E=v.rgba>>8&255,N=T+Math.round((O-T)*b),F=M+Math.round((S-M)*b),X=E+Math.round((y-E)*b);return{css:H.toCss(N,F,X),rgba:H.toRgba(N,F,X)}},R.isOpaque=function(v){return 255==(255&v.rgba)},R.ensureContrastRatio=function(v,k,b){var O=x.ensureContrastRatio(v.rgba,k.rgba,b);if(O)return x.toColor(O>>24&255,O>>16&255,O>>8&255)},R.opaque=function(v){var k=(255|v.rgba)>>>0,b=D(x.toChannels(k),3),O=b[0],S=b[1],y=b[2];return{css:H.toCss(O,S,y),rgba:k}},R.opacity=function(v,k){var b=Math.round(255*k),O=D(x.toChannels(v.rgba),3),S=O[0],y=O[1],T=O[2];return{css:H.toCss(S,y,T,b),rgba:H.toRgba(S,y,T,b)}},R.toColorRGB=function(v){return[v.rgba>>24&255,v.rgba>>16&255,v.rgba>>8&255]},(A.css||(A.css={})).toColor=function(v){if(v.match(/#[0-9a-f]{3,8}/i))switch(v.length){case 4:var k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);return x.toColor(k,b,O);case 5:k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);var S=parseInt(v.slice(4,5).repeat(2),16);return x.toColor(k,b,O,S);case 7:return{css:v,rgba:(parseInt(v.slice(1),16)<<8|255)>>>0};case 9:return{css:v,rgba:parseInt(v.slice(1),16)>>>0}}var y=v.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(y)return k=parseInt(y[1]),b=parseInt(y[2]),O=parseInt(y[3]),S=Math.round(255*(void 0===y[5]?1:parseFloat(y[5]))),x.toColor(k,b,O,S);throw new Error("css.toColor: Unsupported css format")},function(v){function k(b,O,S){var y=b/255,T=O/255,M=S/255;return.2126*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))+.7152*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.0722*(M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4))}v.relativeLuminance=function(b){return k(b>>16&255,b>>8&255,255&b)},v.relativeLuminance2=k}(P=A.rgb||(A.rgb={})),function(v){function k(O,S,y){for(var T=O>>24&255,M=O>>16&255,E=O>>8&255,N=S>>24&255,F=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,E));$<y&&(N>0||F>0||X>0);)N-=Math.max(0,Math.ceil(.1*N)),F-=Math.max(0,Math.ceil(.1*F)),X-=Math.max(0,Math.ceil(.1*X)),$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,E));return(N<<24|F<<16|X<<8|255)>>>0}function b(O,S,y){for(var T=O>>24&255,M=O>>16&255,E=O>>8&255,N=S>>24&255,F=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,E));$<y&&(N<255||F<255||X<255);)N=Math.min(255,N+Math.ceil(.1*(255-N))),F=Math.min(255,F+Math.ceil(.1*(255-F))),X=Math.min(255,X+Math.ceil(.1*(255-X))),$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,E));return(N<<24|F<<16|X<<8|255)>>>0}v.ensureContrastRatio=function(O,S,y){var T=P.relativeLuminance(O>>8),M=P.relativeLuminance(S>>8);if(L(T,M)<y){if(M<T){var E=k(O,S,y),N=L(T,P.relativeLuminance(E>>8));if(N<y){var F=b(O,O,y);return N>L(T,P.relativeLuminance(F>>8))?E:F}return E}var X=b(O,S,y),$=L(T,P.relativeLuminance(X>>8));return $<y?(F=k(O,O,y),$>L(T,P.relativeLuminance(F>>8))?X:F):X}},v.reduceLuminance=k,v.increaseLuminance=b,v.toChannels=function(O){return[O>>24&255,O>>16&255,O>>8&255,255&O]},v.toColor=function(O,S,y,T){return{css:H.toCss(O,S,y,T),rgba:H.toRgba(O,S,y,T)}}}(x=A.rgba||(A.rgba={})),A.toPaddedHex=j,A.contrastRatio=L},8969:function(W,A,H){var R,P=this&&this.__extends||(R=function(ne,be){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,de){fe.__proto__=de}||function(fe,de){for(var le in de)Object.prototype.hasOwnProperty.call(de,le)&&(fe[le]=de[le])})(ne,be)},function(Q,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function be(){this.constructor=Q}R(Q,ne),Q.prototype=null===ne?Object.create(ne):(be.prototype=ne.prototype,new be)}),x=this&&this.__values||function(Q){var ne="function"==typeof Symbol&&Symbol.iterator,be=ne&&Q[ne],fe=0;if(be)return be.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&fe>=Q.length&&(Q=void 0),{value:Q&&Q[fe++],done:!Q}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreTerminal=void 0;var D=H(844),j=H(2585),L=H(4348),v=H(7866),k=H(744),b=H(7302),O=H(6975),S=H(8460),y=H(1753),T=H(3730),M=H(1480),E=H(7994),N=H(9282),F=H(5435),X=H(5981),$=!1,Y=function(Q){function ne(be){var fe=Q.call(this)||this;return fe._onBinary=new S.EventEmitter,fe._onData=new S.EventEmitter,fe._onLineFeed=new S.EventEmitter,fe._onResize=new S.EventEmitter,fe._onScroll=new S.EventEmitter,fe._onWriteParsed=new S.EventEmitter,fe._instantiationService=new L.InstantiationService,fe.optionsService=new b.OptionsService(be),fe._instantiationService.setService(j.IOptionsService,fe.optionsService),fe._bufferService=fe.register(fe._instantiationService.createInstance(k.BufferService)),fe._instantiationService.setService(j.IBufferService,fe._bufferService),fe._logService=fe._instantiationService.createInstance(v.LogService),fe._instantiationService.setService(j.ILogService,fe._logService),fe.coreService=fe.register(fe._instantiationService.createInstance(O.CoreService,function(){return fe.scrollToBottom()})),fe._instantiationService.setService(j.ICoreService,fe.coreService),fe.coreMouseService=fe._instantiationService.createInstance(y.CoreMouseService),fe._instantiationService.setService(j.ICoreMouseService,fe.coreMouseService),fe._dirtyRowService=fe._instantiationService.createInstance(T.DirtyRowService),fe._instantiationService.setService(j.IDirtyRowService,fe._dirtyRowService),fe.unicodeService=fe._instantiationService.createInstance(M.UnicodeService),fe._instantiationService.setService(j.IUnicodeService,fe.unicodeService),fe._charsetService=fe._instantiationService.createInstance(E.CharsetService),fe._instantiationService.setService(j.ICharsetService,fe._charsetService),fe._inputHandler=new F.InputHandler(fe._bufferService,fe._charsetService,fe.coreService,fe._dirtyRowService,fe._logService,fe.optionsService,fe.coreMouseService,fe.unicodeService),fe.register((0,S.forwardEvent)(fe._inputHandler.onLineFeed,fe._onLineFeed)),fe.register(fe._inputHandler),fe.register((0,S.forwardEvent)(fe._bufferService.onResize,fe._onResize)),fe.register((0,S.forwardEvent)(fe.coreService.onData,fe._onData)),fe.register((0,S.forwardEvent)(fe.coreService.onBinary,fe._onBinary)),fe.register(fe.optionsService.onOptionChange(function(de){return fe._updateOptions(de)})),fe.register(fe._bufferService.onScroll(function(de){fe._onScroll.fire({position:fe._bufferService.buffer.ydisp,source:0}),fe._dirtyRowService.markRangeDirty(fe._bufferService.buffer.scrollTop,fe._bufferService.buffer.scrollBottom)})),fe.register(fe._inputHandler.onScroll(function(de){fe._onScroll.fire({position:fe._bufferService.buffer.ydisp,source:0}),fe._dirtyRowService.markRangeDirty(fe._bufferService.buffer.scrollTop,fe._bufferService.buffer.scrollBottom)})),fe._writeBuffer=new X.WriteBuffer(function(de,le){return fe._inputHandler.parse(de,le)}),fe.register((0,S.forwardEvent)(fe._writeBuffer.onWriteParsed,fe._onWriteParsed)),fe}return P(ne,Q),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onScroll",{get:function(){var fe=this;return this._onScrollApi||(this._onScrollApi=new S.EventEmitter,this.register(this._onScroll.event(function(de){var le;null===(le=fe._onScrollApi)||void 0===le||le.fire(de.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"options",{get:function(){return this.optionsService.options},set:function(fe){for(var de in fe)this.optionsService.options[de]=fe[de]},enumerable:!1,configurable:!0}),ne.prototype.dispose=function(){var be;this._isDisposed||(Q.prototype.dispose.call(this),null===(be=this._windowsMode)||void 0===be||be.dispose(),this._windowsMode=void 0)},ne.prototype.write=function(be,fe){this._writeBuffer.write(be,fe)},ne.prototype.writeSync=function(be,fe){this._logService.logLevel<=j.LogLevelEnum.WARN&&!$&&(this._logService.warn("writeSync is unreliable and will be removed soon."),$=!0),this._writeBuffer.writeSync(be,fe)},ne.prototype.resize=function(be,fe){isNaN(be)||isNaN(fe)||(be=Math.max(be,k.MINIMUM_COLS),fe=Math.max(fe,k.MINIMUM_ROWS),this._bufferService.resize(be,fe))},ne.prototype.scroll=function(be,fe){void 0===fe&&(fe=!1),this._bufferService.scroll(be,fe)},ne.prototype.scrollLines=function(be,fe,de){this._bufferService.scrollLines(be,fe,de)},ne.prototype.scrollPages=function(be){this._bufferService.scrollPages(be)},ne.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},ne.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},ne.prototype.scrollToLine=function(be){this._bufferService.scrollToLine(be)},ne.prototype.registerEscHandler=function(be,fe){return this._inputHandler.registerEscHandler(be,fe)},ne.prototype.registerDcsHandler=function(be,fe){return this._inputHandler.registerDcsHandler(be,fe)},ne.prototype.registerCsiHandler=function(be,fe){return this._inputHandler.registerCsiHandler(be,fe)},ne.prototype.registerOscHandler=function(be,fe){return this._inputHandler.registerOscHandler(be,fe)},ne.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},ne.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},ne.prototype._updateOptions=function(be){var fe;switch(be){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(fe=this._windowsMode)||void 0===fe||fe.dispose(),this._windowsMode=void 0)}},ne.prototype._enableWindowsMode=function(){var be=this;if(!this._windowsMode){var fe=[];fe.push(this.onLineFeed(N.updateWindowsModeWrappedState.bind(null,this._bufferService))),fe.push(this.registerCsiHandler({final:"H"},function(){return(0,N.updateWindowsModeWrappedState)(be._bufferService),!1})),this._windowsMode={dispose:function(){var le,ce;try{for(var me=x(fe),je=me.next();!je.done;je=me.next())je.value.dispose()}catch(st){le={error:st}}finally{try{je&&!je.done&&(ce=me.return)&&ce.call(me)}finally{if(le)throw le.error}}}}}},ne}(D.Disposable);A.CoreTerminal=Y},8460:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.forwardEvent=A.EventEmitter=void 0;var H=function(){function R(){this._listeners=[],this._disposed=!1}return Object.defineProperty(R.prototype,"event",{get:function(){var x=this;return this._event||(this._event=function(D){return x._listeners.push(D),{dispose:function(){if(!x._disposed)for(var L=0;L<x._listeners.length;L++)if(x._listeners[L]===D)return void x._listeners.splice(L,1)}}}),this._event},enumerable:!1,configurable:!0}),R.prototype.fire=function(P,x){for(var D=[],j=0;j<this._listeners.length;j++)D.push(this._listeners[j]);for(j=0;j<D.length;j++)D[j].call(void 0,P,x)},R.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},R}();A.EventEmitter=H,A.forwardEvent=function(R,P){return R(function(x){return P.fire(x)})}},5435:function(W,A,H){var R,P=this&&this.__extends||(R=function(de,le){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,me){ce.__proto__=me}||function(ce,me){for(var je in me)Object.prototype.hasOwnProperty.call(me,je)&&(ce[je]=me[je])})(de,le)},function(fe,de){if("function"!=typeof de&&null!==de)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");function le(){this.constructor=fe}R(fe,de),fe.prototype=null===de?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(A,"__esModule",{value:!0}),A.InputHandler=A.WindowsOptionsReportType=void 0;var x,fe,D=H(2584),j=H(7116),L=H(2015),v=H(844),k=H(8273),b=H(482),O=H(8437),S=H(8460),y=H(643),T=H(511),M=H(3734),E=H(2585),N=H(6242),F=H(6351),X=H(5941),$={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Y=131072;function Q(fe,de){if(fe>24)return de.setWinLines||!1;switch(fe){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(fe=x=A.WindowsOptionsReportType||(A.WindowsOptionsReportType={}))[fe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",fe[fe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ne=function(){function fe(de,le,ce,me){this._bufferService=de,this._coreService=le,this._logService=ce,this._optionsService=me,this._data=new Uint32Array(0)}return fe.prototype.hook=function(de){this._data=new Uint32Array(0)},fe.prototype.put=function(de,le,ce){this._data=(0,k.concat)(this._data,de.subarray(le,ce))},fe.prototype.unhook=function(de){if(!de)return this._data=new Uint32Array(0),!0;var le=(0,b.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),le){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":var ce=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+ce+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var me={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];me-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+me+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",le),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},fe}(),be=function(fe){function de(le,ce,me,je,st,Mt,Tt,Et,Lt){void 0===Lt&&(Lt=new L.EscapeSequenceParser);var Ze=fe.call(this)||this;Ze._bufferService=le,Ze._charsetService=ce,Ze._coreService=me,Ze._dirtyRowService=je,Ze._logService=st,Ze._optionsService=Mt,Ze._coreMouseService=Tt,Ze._unicodeService=Et,Ze._parser=Lt,Ze._parseBuffer=new Uint32Array(4096),Ze._stringDecoder=new b.StringToUtf32,Ze._utf8Decoder=new b.Utf8ToUtf32,Ze._workCell=new T.CellData,Ze._windowTitle="",Ze._iconName="",Ze._windowTitleStack=[],Ze._iconNameStack=[],Ze._curAttrData=O.DEFAULT_ATTR_DATA.clone(),Ze._eraseAttrDataInternal=O.DEFAULT_ATTR_DATA.clone(),Ze._onRequestBell=new S.EventEmitter,Ze._onRequestRefreshRows=new S.EventEmitter,Ze._onRequestReset=new S.EventEmitter,Ze._onRequestSendFocus=new S.EventEmitter,Ze._onRequestSyncScrollBar=new S.EventEmitter,Ze._onRequestWindowsOptionsReport=new S.EventEmitter,Ze._onA11yChar=new S.EventEmitter,Ze._onA11yTab=new S.EventEmitter,Ze._onCursorMove=new S.EventEmitter,Ze._onLineFeed=new S.EventEmitter,Ze._onScroll=new S.EventEmitter,Ze._onTitleChange=new S.EventEmitter,Ze._onColor=new S.EventEmitter,Ze._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Ze._specialColors=[256,257,258],Ze.register(Ze._parser),Ze._activeBuffer=Ze._bufferService.buffer,Ze.register(Ze._bufferService.buffers.onBufferActivate(function(nt){return Ze._activeBuffer=nt.activeBuffer})),Ze._parser.setCsiHandlerFallback(function(nt,Ot){Ze._logService.debug("Unknown CSI code: ",{identifier:Ze._parser.identToString(nt),params:Ot.toArray()})}),Ze._parser.setEscHandlerFallback(function(nt){Ze._logService.debug("Unknown ESC code: ",{identifier:Ze._parser.identToString(nt)})}),Ze._parser.setExecuteHandlerFallback(function(nt){Ze._logService.debug("Unknown EXECUTE code: ",{code:nt})}),Ze._parser.setOscHandlerFallback(function(nt,Ot,_t){Ze._logService.debug("Unknown OSC code: ",{identifier:nt,action:Ot,data:_t})}),Ze._parser.setDcsHandlerFallback(function(nt,Ot,_t){"HOOK"===Ot&&(_t=_t.toArray()),Ze._logService.debug("Unknown DCS code: ",{identifier:Ze._parser.identToString(nt),action:Ot,payload:_t})}),Ze._parser.setPrintHandler(function(nt,Ot,_t){return Ze.print(nt,Ot,_t)}),Ze._parser.registerCsiHandler({final:"@"},function(nt){return Ze.insertChars(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"@"},function(nt){return Ze.scrollLeft(nt)}),Ze._parser.registerCsiHandler({final:"A"},function(nt){return Ze.cursorUp(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"A"},function(nt){return Ze.scrollRight(nt)}),Ze._parser.registerCsiHandler({final:"B"},function(nt){return Ze.cursorDown(nt)}),Ze._parser.registerCsiHandler({final:"C"},function(nt){return Ze.cursorForward(nt)}),Ze._parser.registerCsiHandler({final:"D"},function(nt){return Ze.cursorBackward(nt)}),Ze._parser.registerCsiHandler({final:"E"},function(nt){return Ze.cursorNextLine(nt)}),Ze._parser.registerCsiHandler({final:"F"},function(nt){return Ze.cursorPrecedingLine(nt)}),Ze._parser.registerCsiHandler({final:"G"},function(nt){return Ze.cursorCharAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"H"},function(nt){return Ze.cursorPosition(nt)}),Ze._parser.registerCsiHandler({final:"I"},function(nt){return Ze.cursorForwardTab(nt)}),Ze._parser.registerCsiHandler({final:"J"},function(nt){return Ze.eraseInDisplay(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"J"},function(nt){return Ze.eraseInDisplay(nt)}),Ze._parser.registerCsiHandler({final:"K"},function(nt){return Ze.eraseInLine(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"K"},function(nt){return Ze.eraseInLine(nt)}),Ze._parser.registerCsiHandler({final:"L"},function(nt){return Ze.insertLines(nt)}),Ze._parser.registerCsiHandler({final:"M"},function(nt){return Ze.deleteLines(nt)}),Ze._parser.registerCsiHandler({final:"P"},function(nt){return Ze.deleteChars(nt)}),Ze._parser.registerCsiHandler({final:"S"},function(nt){return Ze.scrollUp(nt)}),Ze._parser.registerCsiHandler({final:"T"},function(nt){return Ze.scrollDown(nt)}),Ze._parser.registerCsiHandler({final:"X"},function(nt){return Ze.eraseChars(nt)}),Ze._parser.registerCsiHandler({final:"Z"},function(nt){return Ze.cursorBackwardTab(nt)}),Ze._parser.registerCsiHandler({final:"`"},function(nt){return Ze.charPosAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"a"},function(nt){return Ze.hPositionRelative(nt)}),Ze._parser.registerCsiHandler({final:"b"},function(nt){return Ze.repeatPrecedingCharacter(nt)}),Ze._parser.registerCsiHandler({final:"c"},function(nt){return Ze.sendDeviceAttributesPrimary(nt)}),Ze._parser.registerCsiHandler({prefix:">",final:"c"},function(nt){return Ze.sendDeviceAttributesSecondary(nt)}),Ze._parser.registerCsiHandler({final:"d"},function(nt){return Ze.linePosAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"e"},function(nt){return Ze.vPositionRelative(nt)}),Ze._parser.registerCsiHandler({final:"f"},function(nt){return Ze.hVPosition(nt)}),Ze._parser.registerCsiHandler({final:"g"},function(nt){return Ze.tabClear(nt)}),Ze._parser.registerCsiHandler({final:"h"},function(nt){return Ze.setMode(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"h"},function(nt){return Ze.setModePrivate(nt)}),Ze._parser.registerCsiHandler({final:"l"},function(nt){return Ze.resetMode(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"l"},function(nt){return Ze.resetModePrivate(nt)}),Ze._parser.registerCsiHandler({final:"m"},function(nt){return Ze.charAttributes(nt)}),Ze._parser.registerCsiHandler({final:"n"},function(nt){return Ze.deviceStatus(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"n"},function(nt){return Ze.deviceStatusPrivate(nt)}),Ze._parser.registerCsiHandler({intermediates:"!",final:"p"},function(nt){return Ze.softReset(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"q"},function(nt){return Ze.setCursorStyle(nt)}),Ze._parser.registerCsiHandler({final:"r"},function(nt){return Ze.setScrollRegion(nt)}),Ze._parser.registerCsiHandler({final:"s"},function(nt){return Ze.saveCursor(nt)}),Ze._parser.registerCsiHandler({final:"t"},function(nt){return Ze.windowOptions(nt)}),Ze._parser.registerCsiHandler({final:"u"},function(nt){return Ze.restoreCursor(nt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"}"},function(nt){return Ze.insertColumns(nt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"~"},function(nt){return Ze.deleteColumns(nt)}),Ze._parser.setExecuteHandler(D.C0.BEL,function(){return Ze.bell()}),Ze._parser.setExecuteHandler(D.C0.LF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.VT,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.FF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.CR,function(){return Ze.carriageReturn()}),Ze._parser.setExecuteHandler(D.C0.BS,function(){return Ze.backspace()}),Ze._parser.setExecuteHandler(D.C0.HT,function(){return Ze.tab()}),Ze._parser.setExecuteHandler(D.C0.SO,function(){return Ze.shiftOut()}),Ze._parser.setExecuteHandler(D.C0.SI,function(){return Ze.shiftIn()}),Ze._parser.setExecuteHandler(D.C1.IND,function(){return Ze.index()}),Ze._parser.setExecuteHandler(D.C1.NEL,function(){return Ze.nextLine()}),Ze._parser.setExecuteHandler(D.C1.HTS,function(){return Ze.tabSet()}),Ze._parser.registerOscHandler(0,new N.OscHandler(function(nt){return Ze.setTitle(nt),Ze.setIconName(nt),!0})),Ze._parser.registerOscHandler(1,new N.OscHandler(function(nt){return Ze.setIconName(nt)})),Ze._parser.registerOscHandler(2,new N.OscHandler(function(nt){return Ze.setTitle(nt)})),Ze._parser.registerOscHandler(4,new N.OscHandler(function(nt){return Ze.setOrReportIndexedColor(nt)})),Ze._parser.registerOscHandler(10,new N.OscHandler(function(nt){return Ze.setOrReportFgColor(nt)})),Ze._parser.registerOscHandler(11,new N.OscHandler(function(nt){return Ze.setOrReportBgColor(nt)})),Ze._parser.registerOscHandler(12,new N.OscHandler(function(nt){return Ze.setOrReportCursorColor(nt)})),Ze._parser.registerOscHandler(104,new N.OscHandler(function(nt){return Ze.restoreIndexedColor(nt)})),Ze._parser.registerOscHandler(110,new N.OscHandler(function(nt){return Ze.restoreFgColor(nt)})),Ze._parser.registerOscHandler(111,new N.OscHandler(function(nt){return Ze.restoreBgColor(nt)})),Ze._parser.registerOscHandler(112,new N.OscHandler(function(nt){return Ze.restoreCursorColor(nt)})),Ze._parser.registerEscHandler({final:"7"},function(){return Ze.saveCursor()}),Ze._parser.registerEscHandler({final:"8"},function(){return Ze.restoreCursor()}),Ze._parser.registerEscHandler({final:"D"},function(){return Ze.index()}),Ze._parser.registerEscHandler({final:"E"},function(){return Ze.nextLine()}),Ze._parser.registerEscHandler({final:"H"},function(){return Ze.tabSet()}),Ze._parser.registerEscHandler({final:"M"},function(){return Ze.reverseIndex()}),Ze._parser.registerEscHandler({final:"="},function(){return Ze.keypadApplicationMode()}),Ze._parser.registerEscHandler({final:">"},function(){return Ze.keypadNumericMode()}),Ze._parser.registerEscHandler({final:"c"},function(){return Ze.fullReset()}),Ze._parser.registerEscHandler({final:"n"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"o"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"|"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"}"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"~"},function(){return Ze.setgLevel(1)}),Ze._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Ze.selectDefaultCharset()}),Ze._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Ze.selectDefaultCharset()});var $t=function(Ot){Ft._parser.registerEscHandler({intermediates:"(",final:Ot},function(){return Ze.selectCharset("("+Ot)}),Ft._parser.registerEscHandler({intermediates:")",final:Ot},function(){return Ze.selectCharset(")"+Ot)}),Ft._parser.registerEscHandler({intermediates:"*",final:Ot},function(){return Ze.selectCharset("*"+Ot)}),Ft._parser.registerEscHandler({intermediates:"+",final:Ot},function(){return Ze.selectCharset("+"+Ot)}),Ft._parser.registerEscHandler({intermediates:"-",final:Ot},function(){return Ze.selectCharset("-"+Ot)}),Ft._parser.registerEscHandler({intermediates:".",final:Ot},function(){return Ze.selectCharset("."+Ot)}),Ft._parser.registerEscHandler({intermediates:"/",final:Ot},function(){return Ze.selectCharset("/"+Ot)})},Ft=this;for(var pn in j.CHARSETS)$t(pn);return Ze._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Ze.screenAlignmentPattern()}),Ze._parser.setErrorHandler(function(nt){return Ze._logService.error("Parsing error: ",nt),nt}),Ze._parser.registerDcsHandler({intermediates:"$",final:"q"},new ne(Ze._bufferService,Ze._coreService,Ze._logService,Ze._optionsService)),Ze}return P(de,fe),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){fe.prototype.dispose.call(this)},de.prototype._preserveStack=function(le,ce,me,je){this._parseStack.paused=!0,this._parseStack.cursorStartX=le,this._parseStack.cursorStartY=ce,this._parseStack.decodedLength=me,this._parseStack.position=je},de.prototype._logSlowResolvingAsync=function(le){this._logService.logLevel<=E.LogLevelEnum.WARN&&Promise.race([le,new Promise(function(ce,me){return setTimeout(function(){return me("#SLOW_TIMEOUT")},5e3)})]).catch(function(ce){if("#SLOW_TIMEOUT"!==ce)throw ce;console.warn("async parser handler taking longer than 5000 ms")})},de.prototype.parse=function(le,ce){var me,je=this._activeBuffer.x,st=this._activeBuffer.y,Mt=0,Tt=this._parseStack.paused;if(Tt){if(me=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,ce))return this._logSlowResolvingAsync(me),me;je=this._parseStack.cursorStartX,st=this._parseStack.cursorStartY,this._parseStack.paused=!1,le.length>Y&&(Mt=this._parseStack.position+Y)}if(this._logService.logLevel<=E.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof le?' "'+le+'"':' "'+Array.prototype.map.call(le,function($t){return String.fromCharCode($t)}).join("")+'"'),"string"==typeof le?le.split("").map(function($t){return $t.charCodeAt(0)}):le),this._parseBuffer.length<le.length&&this._parseBuffer.length<Y&&(this._parseBuffer=new Uint32Array(Math.min(le.length,Y))),Tt||this._dirtyRowService.clearRange(),le.length>Y)for(var Et=Mt;Et<le.length;Et+=Y){var Lt=Et+Y<le.length?Et+Y:le.length,Ze="string"==typeof le?this._stringDecoder.decode(le.substring(Et,Lt),this._parseBuffer):this._utf8Decoder.decode(le.subarray(Et,Lt),this._parseBuffer);if(me=this._parser.parse(this._parseBuffer,Ze))return this._preserveStack(je,st,Ze,Et),this._logSlowResolvingAsync(me),me}else if(!Tt&&(Ze="string"==typeof le?this._stringDecoder.decode(le,this._parseBuffer):this._utf8Decoder.decode(le,this._parseBuffer),me=this._parser.parse(this._parseBuffer,Ze)))return this._preserveStack(je,st,Ze,0),this._logSlowResolvingAsync(me),me;this._activeBuffer.x===je&&this._activeBuffer.y===st||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(le,ce,me){var je,st,Mt=this._charsetService.charset,Tt=this._optionsService.rawOptions.screenReaderMode,Et=this._bufferService.cols,Lt=this._coreService.decPrivateModes.wraparound,Ze=this._coreService.modes.insertMode,$t=this._curAttrData,Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&me-ce>0&&2===Ft.getWidth(this._activeBuffer.x-1)&&Ft.setCellFromCodePoint(this._activeBuffer.x-1,0,1,$t.fg,$t.bg,$t.extended);for(var pn=ce;pn<me;++pn){if(je=le[pn],st=this._unicodeService.wcwidth(je),je<127&&Mt){var nt=Mt[String.fromCharCode(je)];nt&&(je=nt.charCodeAt(0))}if(Tt&&this._onA11yChar.fire((0,b.stringFromCodePoint)(je)),st||!this._activeBuffer.x){if(this._activeBuffer.x+st-1>=Et)if(Lt){for(;this._activeBuffer.x<Et;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,1,$t.fg,$t.bg,$t.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=Et-1,2===st)continue;if(Ze&&(Ft.insertCells(this._activeBuffer.x,st,this._activeBuffer.getNullCell($t),$t),2===Ft.getWidth(Et-1)&&Ft.setCellFromCodePoint(Et-1,y.NULL_CELL_CODE,y.NULL_CELL_WIDTH,$t.fg,$t.bg,$t.extended)),Ft.setCellFromCodePoint(this._activeBuffer.x++,je,st,$t.fg,$t.bg,$t.extended),st>0)for(;--st;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,0,$t.fg,$t.bg,$t.extended)}else Ft.getWidth(this._activeBuffer.x-1)?Ft.addCodepointToCell(this._activeBuffer.x-1,je):Ft.addCodepointToCell(this._activeBuffer.x-2,je)}me-ce>0&&(Ft.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<Et&&me-ce>0&&0===Ft.getWidth(this._activeBuffer.x)&&!Ft.hasContent(this._activeBuffer.x)&&Ft.setCellFromCodePoint(this._activeBuffer.x,0,1,$t.fg,$t.bg,$t.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype.registerCsiHandler=function(le,ce){var me=this;return"t"!==le.final||le.prefix||le.intermediates?this._parser.registerCsiHandler(le,ce):this._parser.registerCsiHandler(le,function(je){return!Q(je.params[0],me._optionsService.rawOptions.windowOptions)||ce(je)})},de.prototype.registerDcsHandler=function(le,ce){return this._parser.registerDcsHandler(le,new F.DcsHandler(ce))},de.prototype.registerEscHandler=function(le,ce){return this._parser.registerEscHandler(le,ce)},de.prototype.registerOscHandler=function(le,ce){return this._parser.registerOscHandler(le,new N.OscHandler(ce))},de.prototype.bell=function(){return this._onRequestBell.fire(),!0},de.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},de.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},de.prototype.backspace=function(){var le;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(le=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===le?void 0:le.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);ce.hasWidth(this._activeBuffer.x)&&!ce.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},de.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var le=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-le),!0},de.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},de.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},de.prototype._restrictCursor=function(le){void 0===le&&(le=this._bufferService.cols-1),this._activeBuffer.x=Math.min(le,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype._setCursor=function(le,ce){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=le,this._activeBuffer.y=this._activeBuffer.scrollTop+ce):(this._activeBuffer.x=le,this._activeBuffer.y=ce),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype._moveCursor=function(le,ce){this._restrictCursor(),this._setCursor(this._activeBuffer.x+le,this._activeBuffer.y+ce)},de.prototype.cursorUp=function(le){var ce=this._activeBuffer.y-this._activeBuffer.scrollTop;return ce>=0?this._moveCursor(0,-Math.min(ce,le.params[0]||1)):this._moveCursor(0,-(le.params[0]||1)),!0},de.prototype.cursorDown=function(le){var ce=this._activeBuffer.scrollBottom-this._activeBuffer.y;return ce>=0?this._moveCursor(0,Math.min(ce,le.params[0]||1)):this._moveCursor(0,le.params[0]||1),!0},de.prototype.cursorForward=function(le){return this._moveCursor(le.params[0]||1,0),!0},de.prototype.cursorBackward=function(le){return this._moveCursor(-(le.params[0]||1),0),!0},de.prototype.cursorNextLine=function(le){return this.cursorDown(le),this._activeBuffer.x=0,!0},de.prototype.cursorPrecedingLine=function(le){return this.cursorUp(le),this._activeBuffer.x=0,!0},de.prototype.cursorCharAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.cursorPosition=function(le){return this._setCursor(le.length>=2?(le.params[1]||1)-1:0,(le.params[0]||1)-1),!0},de.prototype.charPosAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.hPositionRelative=function(le){return this._moveCursor(le.params[0]||1,0),!0},de.prototype.linePosAbsolute=function(le){return this._setCursor(this._activeBuffer.x,(le.params[0]||1)-1),!0},de.prototype.vPositionRelative=function(le){return this._moveCursor(0,le.params[0]||1),!0},de.prototype.hVPosition=function(le){return this.cursorPosition(le),!0},de.prototype.tabClear=function(le){var ce=le.params[0];return 0===ce?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===ce&&(this._activeBuffer.tabs={}),!0},de.prototype.cursorForwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ce=le.params[0]||1;ce--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},de.prototype.cursorBackwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ce=le.params[0]||1;ce--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},de.prototype._eraseInBufferLine=function(le,ce,me,je){void 0===je&&(je=!1);var st=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);st.replaceCells(ce,me,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je&&(st.isWrapped=!1)},de.prototype._resetBufferLine=function(le){var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);ce.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+le),ce.isWrapped=!1},de.prototype.eraseInDisplay=function(le){var ce;switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:for(ce=this._activeBuffer.y,this._dirtyRowService.markDirty(ce),this._eraseInBufferLine(ce++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);ce<this._bufferService.rows;ce++)this._resetBufferLine(ce);this._dirtyRowService.markDirty(ce);break;case 1:for(ce=this._activeBuffer.y,this._dirtyRowService.markDirty(ce),this._eraseInBufferLine(ce,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(ce+1).isWrapped=!1);ce--;)this._resetBufferLine(ce);this._dirtyRowService.markDirty(0);break;case 2:for(ce=this._bufferService.rows,this._dirtyRowService.markDirty(ce-1);ce--;)this._resetBufferLine(ce);this._dirtyRowService.markDirty(0);break;case 3:var me=this._activeBuffer.lines.length-this._bufferService.rows;me>0&&(this._activeBuffer.lines.trimStart(me),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-me,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-me,0),this._onScroll.fire(0))}return!0},de.prototype.eraseInLine=function(le){switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},de.prototype.insertLines=function(le){this._restrictCursor();var ce=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var me=this._activeBuffer.ybase+this._activeBuffer.y,je=this._bufferService.rows-1-this._activeBuffer.scrollBottom,st=this._bufferService.rows-1+this._activeBuffer.ybase-je+1;ce--;)this._activeBuffer.lines.splice(st-1,1),this._activeBuffer.lines.splice(me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.deleteLines=function(le){this._restrictCursor();var ce=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var me,je=this._activeBuffer.ybase+this._activeBuffer.y;for(me=this._bufferService.rows-1-this._activeBuffer.scrollBottom,me=this._bufferService.rows-1+this._activeBuffer.ybase-me;ce--;)this._activeBuffer.lines.splice(je,1),this._activeBuffer.lines.splice(me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.insertChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.insertCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.deleteChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.deleteCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.scrollUp=function(le){for(var ce=le.params[0]||1;ce--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollDown=function(le){for(var ce=le.params[0]||1;ce--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(O.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollLeft=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.deleteCells(0,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollRight=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.insertCells(0,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.insertColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.insertCells(this._activeBuffer.x,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.deleteColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.deleteCells(this._activeBuffer.x,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.eraseChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(le.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.repeatPrecedingCharacter=function(le){if(!this._parser.precedingCodepoint)return!0;for(var ce=le.params[0]||1,me=new Uint32Array(ce),je=0;je<ce;++je)me[je]=this._parser.precedingCodepoint;return this.print(me,0,me.length),!0},de.prototype.sendDeviceAttributesPrimary=function(le){return le.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},de.prototype.sendDeviceAttributesSecondary=function(le){return le.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(le.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},de.prototype._is=function(le){return 0===(this._optionsService.rawOptions.termName+"").indexOf(le)},de.prototype.setMode=function(le){for(var ce=0;ce<le.length;ce++)4===le.params[ce]&&(this._coreService.modes.insertMode=!0);return!0},de.prototype.setModePrivate=function(le){for(var ce=0;ce<le.length;ce++)switch(le.params[ce]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),this._charsetService.setgCharset(1,j.DEFAULT_CHARSET),this._charsetService.setgCharset(2,j.DEFAULT_CHARSET),this._charsetService.setgCharset(3,j.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},de.prototype.resetMode=function(le){for(var ce=0;ce<le.length;ce++)4===le.params[ce]&&(this._coreService.modes.insertMode=!1);return!0},de.prototype.resetModePrivate=function(le){for(var ce=0;ce<le.length;ce++)switch(le.params[ce]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===le.params[ce]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},de.prototype._updateAttrColor=function(le,ce,me,je,st){return 2===ce?(le|=50331648,le&=-16777216,le|=M.AttributeData.fromColorRGB([me,je,st])):5===ce&&(le&=-50331904,le|=33554432|255&me),le},de.prototype._extractColor=function(le,ce,me){var je=[0,0,-1,0,0,0],st=0,Mt=0;do{if(je[Mt+st]=le.params[ce+Mt],le.hasSubParams(ce+Mt)){var Tt=le.getSubParams(ce+Mt),Et=0;do{5===je[1]&&(st=1),je[Mt+Et+1+st]=Tt[Et]}while(++Et<Tt.length&&Et+Mt+1+st<je.length);break}if(5===je[1]&&Mt+st>=2||2===je[1]&&Mt+st>=5)break;je[1]&&(st=1)}while(++Mt+ce<le.length&&Mt+st<je.length);for(Et=2;Et<je.length;++Et)-1===je[Et]&&(je[Et]=0);switch(je[0]){case 38:me.fg=this._updateAttrColor(me.fg,je[1],je[3],je[4],je[5]);break;case 48:me.bg=this._updateAttrColor(me.bg,je[1],je[3],je[4],je[5]);break;case 58:me.extended=me.extended.clone(),me.extended.underlineColor=this._updateAttrColor(me.extended.underlineColor,je[1],je[3],je[4],je[5])}return Mt},de.prototype._processUnderline=function(le,ce){ce.extended=ce.extended.clone(),(!~le||le>5)&&(le=1),ce.extended.underlineStyle=le,ce.fg|=268435456,0===le&&(ce.fg&=-268435457),ce.updateExtended()},de.prototype.charAttributes=function(le){if(1===le.length&&0===le.params[0])return this._curAttrData.fg=O.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=O.DEFAULT_ATTR_DATA.bg,!0;for(var ce,me=le.length,je=this._curAttrData,st=0;st<me;st++)(ce=le.params[st])>=30&&ce<=37?(je.fg&=-50331904,je.fg|=16777216|ce-30):ce>=40&&ce<=47?(je.bg&=-50331904,je.bg|=16777216|ce-40):ce>=90&&ce<=97?(je.fg&=-50331904,je.fg|=16777224|ce-90):ce>=100&&ce<=107?(je.bg&=-50331904,je.bg|=16777224|ce-100):0===ce?(je.fg=O.DEFAULT_ATTR_DATA.fg,je.bg=O.DEFAULT_ATTR_DATA.bg):1===ce?je.fg|=134217728:3===ce?je.bg|=67108864:4===ce?(je.fg|=268435456,this._processUnderline(le.hasSubParams(st)?le.getSubParams(st)[0]:1,je)):5===ce?je.fg|=536870912:7===ce?je.fg|=67108864:8===ce?je.fg|=1073741824:9===ce?je.fg|=2147483648:2===ce?je.bg|=134217728:21===ce?this._processUnderline(2,je):22===ce?(je.fg&=-134217729,je.bg&=-134217729):23===ce?je.bg&=-67108865:24===ce?je.fg&=-268435457:25===ce?je.fg&=-536870913:27===ce?je.fg&=-67108865:28===ce?je.fg&=-1073741825:29===ce?je.fg&=2147483647:39===ce?(je.fg&=-67108864,je.fg|=16777215&O.DEFAULT_ATTR_DATA.fg):49===ce?(je.bg&=-67108864,je.bg|=16777215&O.DEFAULT_ATTR_DATA.bg):38===ce||48===ce||58===ce?st+=this._extractColor(le,st,je):59===ce?(je.extended=je.extended.clone(),je.extended.underlineColor=-1,je.updateExtended()):100===ce?(je.fg&=-67108864,je.fg|=16777215&O.DEFAULT_ATTR_DATA.fg,je.bg&=-67108864,je.bg|=16777215&O.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ce);return!0},de.prototype.deviceStatus=function(le){switch(le.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:var ce=this._activeBuffer.y+1,me=this._activeBuffer.x+1;this._coreService.triggerDataEvent(D.C0.ESC+"["+ce+";"+me+"R")}return!0},de.prototype.deviceStatusPrivate=function(le){if(6===le.params[0]){var ce=this._activeBuffer.y+1,me=this._activeBuffer.x+1;this._coreService.triggerDataEvent(D.C0.ESC+"[?"+ce+";"+me+"R")}return!0},de.prototype.softReset=function(le){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=O.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},de.prototype.setCursorStyle=function(le){var ce=le.params[0]||1;switch(ce){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var me=ce%2==1;return this._optionsService.options.cursorBlink=me,!0},de.prototype.setScrollRegion=function(le){var ce,me=le.params[0]||1;return(le.length<2||(ce=le.params[1])>this._bufferService.rows||0===ce)&&(ce=this._bufferService.rows),ce>me&&(this._activeBuffer.scrollTop=me-1,this._activeBuffer.scrollBottom=ce-1,this._setCursor(0,0)),!0},de.prototype.windowOptions=function(le){if(!Q(le.params[0],this._optionsService.rawOptions.windowOptions))return!0;var ce=le.length>1?le.params[1]:0;switch(le.params[0]){case 14:2!==ce&&this._onRequestWindowsOptionsReport.fire(x.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(x.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==ce&&2!==ce||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==ce&&1!==ce||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==ce&&2!==ce||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==ce&&1!==ce||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},de.prototype.saveCursor=function(le){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},de.prototype.restoreCursor=function(le){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},de.prototype.setTitle=function(le){return this._windowTitle=le,this._onTitleChange.fire(le),!0},de.prototype.setIconName=function(le){return this._iconName=le,!0},de.prototype.setOrReportIndexedColor=function(le){for(var ce=[],me=le.split(";");me.length>1;){var je=me.shift(),st=me.shift();if(/^\d+$/.exec(je)){var Mt=parseInt(je);if(0<=Mt&&Mt<256)if("?"===st)ce.push({type:0,index:Mt});else{var Tt=(0,X.parseColor)(st);Tt&&ce.push({type:1,index:Mt,color:Tt})}}}return ce.length&&this._onColor.fire(ce),!0},de.prototype._setOrReportSpecialColor=function(le,ce){for(var me=le.split(";"),je=0;je<me.length&&!(ce>=this._specialColors.length);++je,++ce)if("?"===me[je])this._onColor.fire([{type:0,index:this._specialColors[ce]}]);else{var st=(0,X.parseColor)(me[je]);st&&this._onColor.fire([{type:1,index:this._specialColors[ce],color:st}])}return!0},de.prototype.setOrReportFgColor=function(le){return this._setOrReportSpecialColor(le,0)},de.prototype.setOrReportBgColor=function(le){return this._setOrReportSpecialColor(le,1)},de.prototype.setOrReportCursorColor=function(le){return this._setOrReportSpecialColor(le,2)},de.prototype.restoreIndexedColor=function(le){if(!le)return this._onColor.fire([{type:2}]),!0;for(var ce=[],me=le.split(";"),je=0;je<me.length;++je)if(/^\d+$/.exec(me[je])){var st=parseInt(me[je]);0<=st&&st<256&&ce.push({type:2,index:st})}return ce.length&&this._onColor.fire(ce),!0},de.prototype.restoreFgColor=function(le){return this._onColor.fire([{type:2,index:256}]),!0},de.prototype.restoreBgColor=function(le){return this._onColor.fire([{type:2,index:257}]),!0},de.prototype.restoreCursorColor=function(le){return this._onColor.fire([{type:2,index:258}]),!0},de.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},de.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},de.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},de.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),!0},de.prototype.selectCharset=function(le){return 2!==le.length?(this.selectDefaultCharset(),!0):("/"===le[0]||this._charsetService.setgCharset($[le[0]],j.CHARSETS[le[1]]||j.DEFAULT_CHARSET),!0)},de.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},de.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},de.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var le=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,le,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},de.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},de.prototype.reset=function(){this._curAttrData=O.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=O.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(le){return this._charsetService.setgLevel(le),!0},de.prototype.screenAlignmentPattern=function(){var le=new T.CellData;le.content=1<<22|"E".charCodeAt(0),le.fg=this._curAttrData.fg,le.bg=this._curAttrData.bg,this._setCursor(0,0);for(var ce=0;ce<this._bufferService.rows;++ce){var me=this._activeBuffer.ybase+this._activeBuffer.y+ce,je=this._activeBuffer.lines.get(me);je&&(je.fill(le),je.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},de}(v.Disposable);A.InputHandler=be},844:function(W,A){var H=this&&this.__values||function(x){var D="function"==typeof Symbol&&Symbol.iterator,j=D&&x[D],L=0;if(j)return j.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&L>=x.length&&(x=void 0),{value:x&&x[L++],done:!x}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getDisposeArrayDisposable=A.disposeArray=A.Disposable=void 0;var R=function(){function x(){this._disposables=[],this._isDisposed=!1}return x.prototype.dispose=function(){var D,j;this._isDisposed=!0;try{for(var L=H(this._disposables),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}this._disposables.length=0},x.prototype.register=function(D){return this._disposables.push(D),D},x.prototype.unregister=function(D){var j=this._disposables.indexOf(D);-1!==j&&this._disposables.splice(j,1)},x}();function P(x){var D,j;try{for(var L=H(x),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}x.length=0}A.Disposable=R,A.disposeArray=P,A.getDisposeArrayDisposable=function(x){return{dispose:function(){return P(x)}}}},6114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.isLinux=A.isWindows=A.isIphone=A.isIpad=A.isMac=A.isSafari=A.isLegacyEdge=A.isFirefox=void 0;var H="undefined"==typeof navigator,R=H?"node":navigator.userAgent,P=H?"node":navigator.platform;A.isFirefox=R.includes("Firefox"),A.isLegacyEdge=R.includes("Edge"),A.isSafari=/^((?!chrome|android).)*safari/i.test(R),A.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),A.isIpad="iPad"===P,A.isIphone="iPhone"===P,A.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),A.isLinux=P.indexOf("Linux")>=0},6106:function(W,A){var H=this&&this.__generator||function(P,x){var D,j,L,v,k={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return v={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function b(O){return function(S){return function(y){if(D)throw new TypeError("Generator is already executing.");for(;k;)try{if(D=1,j&&(L=2&y[0]?j.return:y[0]?j.throw||((L=j.return)&&L.call(j),0):j.next)&&!(L=L.call(j,y[1])).done)return L;switch(j=0,L&&(y=[2&y[0],L.value]),y[0]){case 0:case 1:L=y;break;case 4:return k.label++,{value:y[1],done:!1};case 5:k.label++,j=y[1],y=[0];continue;case 7:y=k.ops.pop(),k.trys.pop();continue;default:if(!((L=(L=k.trys).length>0&&L[L.length-1])||6!==y[0]&&2!==y[0])){k=0;continue}if(3===y[0]&&(!L||y[1]>L[0]&&y[1]<L[3])){k.label=y[1];break}if(6===y[0]&&k.label<L[1]){k.label=L[1],L=y;break}if(L&&k.label<L[2]){k.label=L[2],k.ops.push(y);break}L[2]&&k.ops.pop(),k.trys.pop();continue}y=x.call(P,k)}catch(T){y=[6,T],j=0}finally{D=L=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([O,S])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.SortedList=void 0;var R=function(){function P(x){this._getKey=x,this._array=[]}return P.prototype.clear=function(){this._array.length=0},P.prototype.insert=function(x){if(0!==this._array.length){var D=this._search(this._getKey(x),0,this._array.length-1);this._array.splice(D,0,x)}else this._array.push(x)},P.prototype.delete=function(x){if(0===this._array.length)return!1;var D=this._getKey(x),j=this._search(D,0,this._array.length-1);if(this._getKey(this._array[j])!==D)return!1;do{if(this._array[j]===x)return this._array.splice(j,1),!0}while(++j<this._array.length&&this._getKey(this._array[j])===D);return!1},P.prototype.getKeyIterator=function(x){var D;return H(this,function(j){switch(j.label){case 0:if(0===this._array.length)return[2];if((D=this._search(x,0,this._array.length-1))<0||D>=this._array.length)return[2];if(this._getKey(this._array[D])!==x)return[2];j.label=1;case 1:return[4,this._array[D]];case 2:j.sent(),j.label=3;case 3:if(++D<this._array.length&&this._getKey(this._array[D])===x)return[3,1];j.label=4;case 4:return[2]}})},P.prototype.values=function(){return this._array.values()},P.prototype._search=function(x,D,j){if(j<D)return D;var L=Math.floor((D+j)/2);if(this._getKey(this._array[L])>x)return this._search(x,D,L-1);if(this._getKey(this._array[L])<x)return this._search(x,L+1,j);for(;L>0&&this._getKey(this._array[L-1])===x;)L--;return L},P}();A.SortedList=R},8273:function(W,A){function H(R,P,x,D){if(void 0===x&&(x=0),void 0===D&&(D=R.length),x>=R.length)return R;x=(R.length+x)%R.length,D=D>=R.length?R.length:(R.length+D)%R.length;for(var j=x;j<D;++j)R[j]=P;return R}Object.defineProperty(A,"__esModule",{value:!0}),A.concat=A.fillFallback=A.fill=void 0,A.fill=function(R,P,x,D){return R.fill?R.fill(P,x,D):H(R,P,x,D)},A.fillFallback=H,A.concat=function(R,P){var x=new R.constructor(R.length+P.length);return x.set(R),x.set(P,R.length),x}},9282:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.updateWindowsModeWrappedState=void 0;var R=H(643);A.updateWindowsModeWrappedState=function(P){var x=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),D=null==x?void 0:x.get(P.cols-1),j=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);j&&D&&(j.isWrapped=D[R.CHAR_DATA_CODE_INDEX]!==R.NULL_CELL_CODE&&D[R.CHAR_DATA_CODE_INDEX]!==R.WHITESPACE_CELL_CODE)}},3734:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ExtendedAttrs=A.AttributeData=void 0;var H=function(){function P(){this.fg=0,this.bg=0,this.extended=new R}return P.toColorRGB=function(x){return[x>>>16&255,x>>>8&255,255&x]},P.fromColorRGB=function(x){return(255&x[0])<<16|(255&x[1])<<8|255&x[2]},P.prototype.clone=function(){var x=new P;return x.fg=this.fg,x.bg=this.bg,x.extended=this.extended.clone(),x},P.prototype.isInverse=function(){return 67108864&this.fg},P.prototype.isBold=function(){return 134217728&this.fg},P.prototype.isUnderline=function(){return 268435456&this.fg},P.prototype.isBlink=function(){return 536870912&this.fg},P.prototype.isInvisible=function(){return 1073741824&this.fg},P.prototype.isItalic=function(){return 67108864&this.bg},P.prototype.isDim=function(){return 134217728&this.bg},P.prototype.isStrikethrough=function(){return 2147483648&this.fg},P.prototype.getFgColorMode=function(){return 50331648&this.fg},P.prototype.getBgColorMode=function(){return 50331648&this.bg},P.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},P.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},P.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},P.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},P.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},P.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},P.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},P.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},P.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},P.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},P.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},P.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},P.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},P.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},P.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},P.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},P.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},P}();A.AttributeData=H;var R=function(){function P(x,D){void 0===x&&(x=0),void 0===D&&(D=-1),this.underlineStyle=x,this.underlineColor=D}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();A.ExtendedAttrs=R},9092:function(W,A,H){var R=this&&this.__read||function(T,M){var E="function"==typeof Symbol&&T[Symbol.iterator];if(!E)return T;var N,F,X=E.call(T),$=[];try{for(;(void 0===M||M-- >0)&&!(N=X.next()).done;)$.push(N.value)}catch(Y){F={error:Y}}finally{try{N&&!N.done&&(E=X.return)&&E.call(X)}finally{if(F)throw F.error}}return $},P=this&&this.__spreadArray||function(T,M,E){if(E||2===arguments.length)for(var N,F=0,X=M.length;F<X;F++)!N&&F in M||(N||(N=Array.prototype.slice.call(M,0,F)),N[F]=M[F]);return T.concat(N||Array.prototype.slice.call(M))};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferStringIterator=A.Buffer=A.MAX_BUFFER_SIZE=void 0;var x=H(6349),D=H(8437),j=H(511),L=H(643),v=H(4634),k=H(4863),b=H(7116),O=H(3734);A.MAX_BUFFER_SIZE=4294967295;var S=function(){function T(M,E,N){this._hasScrollback=M,this._optionsService=E,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=D.DEFAULT_ATTR_DATA.clone(),this.savedCharset=b.DEFAULT_CHARSET,this.markers=[],this._nullCell=j.CellData.fromCharData([0,L.NULL_CELL_CHAR,L.NULL_CELL_WIDTH,L.NULL_CELL_CODE]),this._whitespaceCell=j.CellData.fromCharData([0,L.WHITESPACE_CELL_CHAR,L.WHITESPACE_CELL_WIDTH,L.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new x.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return T.prototype.getNullCell=function(M){return M?(this._nullCell.fg=M.fg,this._nullCell.bg=M.bg,this._nullCell.extended=M.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new O.ExtendedAttrs),this._nullCell},T.prototype.getWhitespaceCell=function(M){return M?(this._whitespaceCell.fg=M.fg,this._whitespaceCell.bg=M.bg,this._whitespaceCell.extended=M.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new O.ExtendedAttrs),this._whitespaceCell},T.prototype.getBlankLine=function(M,E){return new D.BufferLine(this._bufferService.cols,this.getNullCell(M),E)},Object.defineProperty(T.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isCursorInViewport",{get:function(){var E=this.ybase+this.y-this.ydisp;return E>=0&&E<this._rows},enumerable:!1,configurable:!0}),T.prototype._getCorrectBufferLength=function(M){if(!this._hasScrollback)return M;var E=M+this._optionsService.rawOptions.scrollback;return E>A.MAX_BUFFER_SIZE?A.MAX_BUFFER_SIZE:E},T.prototype.fillViewportRows=function(M){if(0===this.lines.length){void 0===M&&(M=D.DEFAULT_ATTR_DATA);for(var E=this._rows;E--;)this.lines.push(this.getBlankLine(M))}},T.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new x.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},T.prototype.resize=function(M,E){var N=this.getNullCell(D.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(E);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols<M)for(var X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);var $=0;if(this._rows<E)for(var Y=this._rows;Y<E;Y++)this.lines.length<E+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new D.BufferLine(M,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new D.BufferLine(M,N)));else for(Y=this._rows;Y>E;Y--)this.lines.length>E+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F<this.lines.maxLength){var Q=this.lines.length-F;Q>0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=F}this.x=Math.min(this.x,M-1),this.y=Math.min(this.y,E-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,M-1),this.scrollTop=0}if(this.scrollBottom=E-1,this._isReflowEnabled&&(this._reflow(M,E),this._cols>M))for(X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);this._cols=M,this._rows=E},Object.defineProperty(T.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),T.prototype._reflow=function(M,E){this._cols!==M&&(M>this._cols?this._reflowLarger(M,E):this._reflowSmaller(M,E))},T.prototype._reflowLarger=function(M,E){var N=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,M,this.ybase+this.y,this.getNullCell(D.DEFAULT_ATTR_DATA));if(N.length>0){var F=(0,v.reflowLargerCreateNewLayout)(this.lines,N);(0,v.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(M,E,F.countRemoved)}},T.prototype._reflowLargerAdjustViewport=function(M,E,N){for(var F=this.getNullCell(D.DEFAULT_ATTR_DATA),X=N;X-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<E&&this.lines.push(new D.BufferLine(M,F))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},T.prototype._reflowSmaller=function(M,E){for(var N=this.getNullCell(D.DEFAULT_ATTR_DATA),F=[],X=0,$=this.lines.length-1;$>=0;$--){var Y=this.lines.get($);if(!(!Y||!Y.isWrapped&&Y.getTrimmedLength()<=M)){for(var Q=[Y];Y.isWrapped&&$>0;)Y=this.lines.get(--$),Q.unshift(Y);var ne=this.ybase+this.y;if(!(ne>=$&&ne<$+Q.length)){var be,fe=Q[Q.length-1].getTrimmedLength(),de=(0,v.reflowSmallerGetNewLineLengths)(Q,this._cols,M),le=de.length-Q.length;be=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+le):Math.max(0,this.lines.length-this.lines.maxLength+le);for(var ce=[],me=0;me<le;me++){var je=this.getBlankLine(D.DEFAULT_ATTR_DATA,!0);ce.push(je)}ce.length>0&&(F.push({start:$+Q.length+X,newLines:ce}),X+=ce.length),Q.push.apply(Q,P([],R(ce),!1));var st=de.length-1,Mt=de[st];0===Mt&&(Mt=de[--st]);for(var Tt=Q.length-le-1,Et=fe;Tt>=0;){var Lt=Math.min(Et,Mt);if(void 0===Q[st])break;if(Q[st].copyCellsFrom(Q[Tt],Et-Lt,Mt-Lt,Lt,!0),0==(Mt-=Lt)&&(Mt=de[--st]),0==(Et-=Lt)){Tt--;var Ze=Math.max(Tt,0);Et=(0,v.getWrappedLineTrimmedLength)(Q,Ze,this._cols)}}for(me=0;me<Q.length;me++)de[me]<M&&Q[me].setCell(de[me],N);for(var $t=le-be;$t-- >0;)0===this.ybase?this.y<E-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+X)-E&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+le,this.ybase+E-1)}}}if(F.length>0){var Ft=[],pn=[];for(me=0;me<this.lines.length;me++)pn.push(this.lines.get(me));var nt=this.lines.length,Ot=nt-1,_t=0,Ct=F[_t];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+X);var We=0;for(me=Math.min(this.lines.maxLength-1,nt+X-1);me>=0;me--)if(Ct&&Ct.start>Ot+We){for(var ut=Ct.newLines.length-1;ut>=0;ut--)this.lines.set(me--,Ct.newLines[ut]);me++,Ft.push({index:Ot+1,amount:Ct.newLines.length}),We+=Ct.newLines.length,Ct=F[++_t]}else this.lines.set(me,pn[Ot--]);var dt=0;for(me=Ft.length-1;me>=0;me--)Ft[me].index+=dt,this.lines.onInsertEmitter.fire(Ft[me]),dt+=Ft[me].amount;var Ut=Math.max(0,nt+X-this.lines.maxLength);Ut>0&&this.lines.onTrimEmitter.fire(Ut)}},T.prototype.stringIndexToBufferIndex=function(M,E,N){for(void 0===N&&(N=!1);E;){var F=this.lines.get(M);if(!F)return[-1,-1];for(var X=N?F.getTrimmedLength():F.length,$=0;$<X;++$)if(F.get($)[L.CHAR_DATA_WIDTH_INDEX]&&(E-=F.get($)[L.CHAR_DATA_CHAR_INDEX].length||1),E<0)return[M,$];M++}return[M,0]},T.prototype.translateBufferLineToString=function(M,E,N,F){void 0===N&&(N=0);var X=this.lines.get(M);return X?X.translateToString(E,N,F):""},T.prototype.getWrappedRangeForLine=function(M){for(var E=M,N=M;E>0&&this.lines.get(E).isWrapped;)E--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:E,last:N}},T.prototype.setupTabStops=function(M){for(null!=M?this.tabs[M]||(M=this.prevStop(M)):(this.tabs={},M=0);M<this._cols;M+=this._optionsService.rawOptions.tabStopWidth)this.tabs[M]=!0},T.prototype.prevStop=function(M){for(null==M&&(M=this.x);!this.tabs[--M]&&M>0;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.nextStop=function(M){for(null==M&&(M=this.x);!this.tabs[++M]&&M<this._cols;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.clearMarkers=function(M){this._isClearing=!0;for(var E=0;E<this.markers.length;E++)this.markers[E].line===M&&(this.markers[E].dispose(),this.markers.splice(E--,1));this._isClearing=!1},T.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var M=0;M<this.markers.length;M++)this.markers[M].dispose(),this.markers.splice(M--,1);this._isClearing=!1},T.prototype.addMarker=function(M){var E=this,N=new k.Marker(M);return this.markers.push(N),N.register(this.lines.onTrim(function(F){N.line-=F,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(F){N.line>=F.index&&(N.line+=F.amount)})),N.register(this.lines.onDelete(function(F){N.line>=F.index&&N.line<F.index+F.amount&&N.dispose(),N.line>F.index&&(N.line-=F.amount)})),N.register(N.onDispose(function(){return E._removeMarker(N)})),N},T.prototype._removeMarker=function(M){this._isClearing||this.markers.splice(this.markers.indexOf(M),1)},T.prototype.iterator=function(M,E,N,F,X){return new y(this,M,E,N,F,X)},T}();A.Buffer=S;var y=function(){function T(M,E,N,F,X,$){void 0===N&&(N=0),void 0===F&&(F=M.lines.length),void 0===X&&(X=0),void 0===$&&($=0),this._buffer=M,this._trimRight=E,this._startIndex=N,this._endIndex=F,this._startOverscan=X,this._endOverscan=$,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return T.prototype.hasNext=function(){return this._current<this._endIndex},T.prototype.next=function(){var M=this._buffer.getWrappedRangeForLine(this._current);M.first<this._startIndex-this._startOverscan&&(M.first=this._startIndex-this._startOverscan),M.last>this._endIndex+this._endOverscan&&(M.last=this._endIndex+this._endOverscan),M.first=Math.max(M.first,0),M.last=Math.min(M.last,this._buffer.lines.length);for(var E="",N=M.first;N<=M.last;++N)E+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=M.last+1,{range:M,content:E}},T}();A.BufferStringIterator=y},8437:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLine=A.DEFAULT_ATTR_DATA=void 0;var R=H(482),P=H(643),x=H(511),D=H(3734);A.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var j=function(){function L(v,k,b){void 0===b&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var O=k||x.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),S=0;S<v;++S)this.setCell(S,O);this.length=v}return L.prototype.get=function(v){var k=this._data[3*v+0],b=2097151&k;return[this._data[3*v+1],2097152&k?this._combined[v]:b?(0,R.stringFromCodePoint)(b):"",k>>22,2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):b]},L.prototype.set=function(v,k){this._data[3*v+1]=k[P.CHAR_DATA_ATTR_INDEX],k[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=k[1],this._data[3*v+0]=2097152|v|k[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=k[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[P.CHAR_DATA_WIDTH_INDEX]<<22},L.prototype.getWidth=function(v){return this._data[3*v+0]>>22},L.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},L.prototype.getFg=function(v){return this._data[3*v+1]},L.prototype.getBg=function(v){return this._data[3*v+2]},L.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},L.prototype.getCodePoint=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&k},L.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},L.prototype.getString=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v]:2097151&k?(0,R.stringFromCodePoint)(2097151&k):""},L.prototype.loadCell=function(v,k){var b=3*v;return k.content=this._data[b+0],k.fg=this._data[b+1],k.bg=this._data[b+2],2097152&k.content&&(k.combinedData=this._combined[v]),268435456&k.bg&&(k.extended=this._extendedAttrs[v]),k},L.prototype.setCell=function(v,k){2097152&k.content&&(this._combined[v]=k.combinedData),268435456&k.bg&&(this._extendedAttrs[v]=k.extended),this._data[3*v+0]=k.content,this._data[3*v+1]=k.fg,this._data[3*v+2]=k.bg},L.prototype.setCellFromCodePoint=function(v,k,b,O,S,y){268435456&S&&(this._extendedAttrs[v]=y),this._data[3*v+0]=k|b<<22,this._data[3*v+1]=O,this._data[3*v+2]=S},L.prototype.addCodepointToCell=function(v,k){var b=this._data[3*v+0];2097152&b?this._combined[v]+=(0,R.stringFromCodePoint)(k):(2097151&b?(this._combined[v]=(0,R.stringFromCodePoint)(2097151&b)+(0,R.stringFromCodePoint)(k),b&=-2097152,b|=2097152):b=k|1<<22,this._data[3*v+0]=b)},L.prototype.insertCells=function(v,k,b,O){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length-v){for(var S=new x.CellData,y=this.length-v-k-1;y>=0;--y)this.setCell(v+k+y,this.loadCell(v+y,S));for(y=0;y<k;++y)this.setCell(v+y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.deleteCells=function(v,k,b,O){if(v%=this.length,k<this.length-v){for(var S=new x.CellData,y=0;y<this.length-v-k;++y)this.setCell(v+y,this.loadCell(v+k+y,S));for(y=this.length-k;y<this.length;++y)this.setCell(y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.replaceCells=function(v,k,b,O){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length&&2===this.getWidth(k-1)&&this.setCellFromCodePoint(k,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs);v<k&&v<this.length;)this.setCell(v++,b)},L.prototype.resize=function(v,k){if(v!==this.length){if(v>this.length){var b=new Uint32Array(3*v);this.length&&(3*v<this._data.length?b.set(this._data.subarray(0,3*v)):b.set(this._data)),this._data=b;for(var O=this.length;O<v;++O)this.setCell(O,k)}else if(v){(b=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=b;var S=Object.keys(this._combined);for(O=0;O<S.length;O++){var y=parseInt(S[O],10);y>=v&&delete this._combined[y]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},L.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var k=0;k<this.length;++k)this.setCell(k,v)},L.prototype.copyFrom=function(v){for(var k in this.length!==v.length?this._data=new Uint32Array(v._data):this._data.set(v._data),this.length=v.length,this._combined={},v._combined)this._combined[k]=v._combined[k];for(var k in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[k]=v._extendedAttrs[k];this.isWrapped=v.isWrapped},L.prototype.clone=function(){var v=new L(0);for(var k in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[k]=this._combined[k];for(var k in this._extendedAttrs)v._extendedAttrs[k]=this._extendedAttrs[k];return v.isWrapped=this.isWrapped,v},L.prototype.getTrimmedLength=function(){for(var v=this.length-1;v>=0;--v)if(4194303&this._data[3*v+0])return v+(this._data[3*v+0]>>22);return 0},L.prototype.copyCellsFrom=function(v,k,b,O,S){var y=v._data;if(S)for(var T=O-1;T>=0;T--)for(var M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];else for(T=0;T<O;T++)for(M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];var E=Object.keys(v._combined);for(M=0;M<E.length;M++){var N=parseInt(E[M],10);N>=k&&(this._combined[N-k+b]=v._combined[N])}},L.prototype.translateToString=function(v,k,b){void 0===v&&(v=!1),void 0===k&&(k=0),void 0===b&&(b=this.length),v&&(b=Math.min(b,this.getTrimmedLength()));for(var O="";k<b;){var S=this._data[3*k+0],y=2097151&S;O+=2097152&S?this._combined[k]:y?(0,R.stringFromCodePoint)(y):P.WHITESPACE_CELL_CHAR,k+=S>>22||1}return O},L}();A.BufferLine=j},4841:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.getRangeLength=void 0,A.getRangeLength=function(H,R){if(H.start.y>H.end.y)throw new Error("Buffer range end ("+H.end.x+", "+H.end.y+") cannot be before start ("+H.start.x+", "+H.start.y+")");return R*(H.end.y-H.start.y)+(H.end.x-H.start.x+1)}},4634:function(W,A){function H(R,P,x){if(P===R.length-1)return R[P].getTrimmedLength();var D=!R[P].hasContent(x-1)&&1===R[P].getWidth(x-1),j=2===R[P+1].getWidth(0);return D&&j?x-1:x}Object.defineProperty(A,"__esModule",{value:!0}),A.getWrappedLineTrimmedLength=A.reflowSmallerGetNewLineLengths=A.reflowLargerApplyNewLayout=A.reflowLargerCreateNewLayout=A.reflowLargerGetLinesToRemove=void 0,A.reflowLargerGetLinesToRemove=function(R,P,x,D,j){for(var L=[],v=0;v<R.length-1;v++){var k=v,b=R.get(++k);if(b.isWrapped){for(var O=[R.get(v)];k<R.length&&b.isWrapped;)O.push(b),b=R.get(++k);if(D>=v&&D<k)v+=O.length-1;else{for(var S=0,y=H(O,S,P),T=1,M=0;T<O.length;){var E=H(O,T,P),N=E-M,F=x-y,X=Math.min(N,F);O[S].copyCellsFrom(O[T],M,y,X,!1),(y+=X)===x&&(S++,y=0),(M+=X)===E&&(T++,M=0),0===y&&0!==S&&2===O[S-1].getWidth(x-1)&&(O[S].copyCellsFrom(O[S-1],x-1,y++,1,!1),O[S-1].setCell(x-1,j))}O[S].replaceCells(y,x,j);for(var $=0,Y=O.length-1;Y>0&&(Y>S||0===O[Y].getTrimmedLength());Y--)$++;$>0&&(L.push(v+O.length-$),L.push($)),v+=O.length-1}}}return L},A.reflowLargerCreateNewLayout=function(R,P){for(var x=[],D=0,j=P[D],L=0,v=0;v<R.length;v++)if(j===v){var k=P[++D];R.onDeleteEmitter.fire({index:v-L,amount:k}),v+=k-1,L+=k,j=P[++D]}else x.push(v);return{layout:x,countRemoved:L}},A.reflowLargerApplyNewLayout=function(R,P){for(var x=[],D=0;D<P.length;D++)x.push(R.get(P[D]));for(D=0;D<x.length;D++)R.set(D,x[D]);R.length=P.length},A.reflowSmallerGetNewLineLengths=function(R,P,x){for(var D=[],j=R.map(function(y,T){return H(R,T,P)}).reduce(function(y,T){return y+T}),L=0,v=0,k=0;k<j;){if(j-k<x){D.push(j-k);break}L+=x;var b=H(R,v,P);L>b&&(L-=b,v++);var O=2===R[v].getWidth(L-1);O&&L--;var S=O?x-1:x;D.push(S),k+=S}return D},A.getWrappedLineTrimmedLength=H},5295:function(W,A,H){var R,P=this&&this.__extends||(R=function(v,k){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(b[S]=O[S])})(v,k)},function(L,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function k(){this.constructor=L}R(L,v),L.prototype=null===v?Object.create(v):(k.prototype=v.prototype,new k)});Object.defineProperty(A,"__esModule",{value:!0}),A.BufferSet=void 0;var x=H(9092),D=H(8460),j=function(L){function v(k,b){var O=L.call(this)||this;return O._optionsService=k,O._bufferService=b,O._onBufferActivate=O.register(new D.EventEmitter),O.reset(),O}return P(v,L),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new x.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new x.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(v.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),v.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},v.prototype.activateAltBuffer=function(k){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(k),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},v.prototype.resize=function(k,b){this._normal.resize(k,b),this._alt.resize(k,b)},v.prototype.setupTabStops=function(k){this._normal.setupTabStops(k),this._alt.setupTabStops(k)},v}(H(844).Disposable);A.BufferSet=j},511:function(W,A,H){var R,P=this&&this.__extends||(R=function(k,b){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var y in S)Object.prototype.hasOwnProperty.call(S,y)&&(O[y]=S[y])})(k,b)},function(v,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function b(){this.constructor=v}R(v,k),v.prototype=null===k?Object.create(k):(b.prototype=k.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.CellData=void 0;var x=H(482),D=H(643),j=H(3734),L=function(v){function k(){var b=null!==v&&v.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new j.ExtendedAttrs,b.combinedData="",b}return P(k,v),k.fromCharData=function(b){var O=new k;return O.setFromCharData(b),O},k.prototype.isCombined=function(){return 2097152&this.content},k.prototype.getWidth=function(){return this.content>>22},k.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,x.stringFromCodePoint)(2097151&this.content):""},k.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},k.prototype.setFromCharData=function(b){this.fg=b[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var O=!1;if(b[D.CHAR_DATA_CHAR_INDEX].length>2)O=!0;else if(2===b[D.CHAR_DATA_CHAR_INDEX].length){var S=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=S&&S<=56319){var y=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=y&&y<=57343?this.content=1024*(S-55296)+y-56320+65536|b[D.CHAR_DATA_WIDTH_INDEX]<<22:O=!0}else O=!0}else this.content=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[D.CHAR_DATA_WIDTH_INDEX]<<22;O&&(this.combinedData=b[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[D.CHAR_DATA_WIDTH_INDEX]<<22)},k.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},k}(j.AttributeData);A.CellData=L},643:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.WHITESPACE_CELL_CODE=A.WHITESPACE_CELL_WIDTH=A.WHITESPACE_CELL_CHAR=A.NULL_CELL_CODE=A.NULL_CELL_WIDTH=A.NULL_CELL_CHAR=A.CHAR_DATA_CODE_INDEX=A.CHAR_DATA_WIDTH_INDEX=A.CHAR_DATA_CHAR_INDEX=A.CHAR_DATA_ATTR_INDEX=A.DEFAULT_ATTR=A.DEFAULT_COLOR=void 0,A.DEFAULT_COLOR=256,A.DEFAULT_ATTR=256|A.DEFAULT_COLOR<<9,A.CHAR_DATA_ATTR_INDEX=0,A.CHAR_DATA_CHAR_INDEX=1,A.CHAR_DATA_WIDTH_INDEX=2,A.CHAR_DATA_CODE_INDEX=3,A.NULL_CELL_CHAR="",A.NULL_CELL_WIDTH=1,A.NULL_CELL_CODE=0,A.WHITESPACE_CELL_CHAR=" ",A.WHITESPACE_CELL_WIDTH=1,A.WHITESPACE_CELL_CODE=32},4863:function(W,A,H){var R,P=this&&this.__extends||(R=function(L,v){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,b){k.__proto__=b}||function(k,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(k[O]=b[O])})(L,v)},function(j,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function v(){this.constructor=j}R(j,L),j.prototype=null===L?Object.create(L):(v.prototype=L.prototype,new v)});Object.defineProperty(A,"__esModule",{value:!0}),A.Marker=void 0;var x=H(8460),D=function(j){function L(v){var k=j.call(this)||this;return k.line=v,k._id=L._nextId++,k.isDisposed=!1,k._onDispose=new x.EventEmitter,k}return P(L,j),Object.defineProperty(L.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),j.prototype.dispose.call(this))},L._nextId=1,L}(H(844).Disposable);A.Marker=D},7116:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.DEFAULT_CHARSET=A.CHARSETS=void 0,A.CHARSETS={},A.DEFAULT_CHARSET=A.CHARSETS.B,A.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},A.CHARSETS.A={"#":"\xa3"},A.CHARSETS.B=void 0,A.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},A.CHARSETS.C=A.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},A.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},A.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},A.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},A.CHARSETS.E=A.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},A.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},A.CHARSETS.H=A.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(W,A){var H,R,P;Object.defineProperty(A,"__esModule",{value:!0}),A.C1_ESCAPED=A.C1=A.C0=void 0,(P=H=A.C0||(A.C0={})).NUL="\0",P.SOH="\x01",P.STX="\x02",P.ETX="\x03",P.EOT="\x04",P.ENQ="\x05",P.ACK="\x06",P.BEL="\x07",P.BS="\b",P.HT="\t",P.LF="\n",P.VT="\v",P.FF="\f",P.CR="\r",P.SO="\x0e",P.SI="\x0f",P.DLE="\x10",P.DC1="\x11",P.DC2="\x12",P.DC3="\x13",P.DC4="\x14",P.NAK="\x15",P.SYN="\x16",P.ETB="\x17",P.CAN="\x18",P.EM="\x19",P.SUB="\x1a",P.ESC="\x1b",P.FS="\x1c",P.GS="\x1d",P.RS="\x1e",P.US="\x1f",P.SP=" ",P.DEL="\x7f",(R=A.C1||(A.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f",(A.C1_ESCAPED||(A.C1_ESCAPED={})).ST=H.ESC+"\\"},7399:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.evaluateKeyboardEvent=void 0;var R=H(2584),P={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};A.evaluateKeyboardEvent=function(x,D,j,L){var v={type:0,cancel:!1,key:void 0},k=(x.shiftKey?1:0)|(x.altKey?2:0)|(x.ctrlKey?4:0)|(x.metaKey?8:0);switch(x.keyCode){case 0:"UIKeyInputUpArrow"===x.key?v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A":"UIKeyInputLeftArrow"===x.key?v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D":"UIKeyInputRightArrow"===x.key?v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C":"UIKeyInputDownArrow"===x.key&&(v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B");break;case 8:if(x.shiftKey){v.key=R.C0.BS;break}if(x.altKey){v.key=R.C0.ESC+R.C0.DEL;break}v.key=R.C0.DEL;break;case 9:if(x.shiftKey){v.key=R.C0.ESC+"[Z";break}v.key=R.C0.HT,v.cancel=!0;break;case 13:v.key=x.altKey?R.C0.ESC+R.C0.CR:R.C0.CR,v.cancel=!0;break;case 27:v.key=R.C0.ESC,x.altKey&&(v.key=R.C0.ESC+R.C0.ESC),v.cancel=!0;break;case 37:if(x.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"D",v.key===R.C0.ESC+"[1;3D"&&(v.key=R.C0.ESC+(j?"b":"[1;5D"))):v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D";break;case 39:if(x.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"C",v.key===R.C0.ESC+"[1;3C"&&(v.key=R.C0.ESC+(j?"f":"[1;5C"))):v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C";break;case 38:if(x.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"A",j||v.key!==R.C0.ESC+"[1;3A"||(v.key=R.C0.ESC+"[1;5A")):v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A";break;case 40:if(x.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"B",j||v.key!==R.C0.ESC+"[1;3B"||(v.key=R.C0.ESC+"[1;5B")):v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B";break;case 45:x.shiftKey||x.ctrlKey||(v.key=R.C0.ESC+"[2~");break;case 46:v.key=k?R.C0.ESC+"[3;"+(k+1)+"~":R.C0.ESC+"[3~";break;case 36:v.key=k?R.C0.ESC+"[1;"+(k+1)+"H":D?R.C0.ESC+"OH":R.C0.ESC+"[H";break;case 35:v.key=k?R.C0.ESC+"[1;"+(k+1)+"F":D?R.C0.ESC+"OF":R.C0.ESC+"[F";break;case 33:x.shiftKey?v.type=2:x.ctrlKey?v.key=R.C0.ESC+"[5;"+(k+1)+"~":v.key=R.C0.ESC+"[5~";break;case 34:x.shiftKey?v.type=3:x.ctrlKey?v.key=R.C0.ESC+"[6;"+(k+1)+"~":v.key=R.C0.ESC+"[6~";break;case 112:v.key=k?R.C0.ESC+"[1;"+(k+1)+"P":R.C0.ESC+"OP";break;case 113:v.key=k?R.C0.ESC+"[1;"+(k+1)+"Q":R.C0.ESC+"OQ";break;case 114:v.key=k?R.C0.ESC+"[1;"+(k+1)+"R":R.C0.ESC+"OR";break;case 115:v.key=k?R.C0.ESC+"[1;"+(k+1)+"S":R.C0.ESC+"OS";break;case 116:v.key=k?R.C0.ESC+"[15;"+(k+1)+"~":R.C0.ESC+"[15~";break;case 117:v.key=k?R.C0.ESC+"[17;"+(k+1)+"~":R.C0.ESC+"[17~";break;case 118:v.key=k?R.C0.ESC+"[18;"+(k+1)+"~":R.C0.ESC+"[18~";break;case 119:v.key=k?R.C0.ESC+"[19;"+(k+1)+"~":R.C0.ESC+"[19~";break;case 120:v.key=k?R.C0.ESC+"[20;"+(k+1)+"~":R.C0.ESC+"[20~";break;case 121:v.key=k?R.C0.ESC+"[21;"+(k+1)+"~":R.C0.ESC+"[21~";break;case 122:v.key=k?R.C0.ESC+"[23;"+(k+1)+"~":R.C0.ESC+"[23~";break;case 123:v.key=k?R.C0.ESC+"[24;"+(k+1)+"~":R.C0.ESC+"[24~";break;default:if(!x.ctrlKey||x.shiftKey||x.altKey||x.metaKey)if(j&&!L||!x.altKey||x.metaKey)!j||x.altKey||x.ctrlKey||x.shiftKey||!x.metaKey?x.key&&!x.ctrlKey&&!x.altKey&&!x.metaKey&&x.keyCode>=48&&1===x.key.length?v.key=x.key:x.key&&x.ctrlKey&&("_"===x.key&&(v.key=R.C0.US),"@"===x.key&&(v.key=R.C0.NUL)):65===x.keyCode&&(v.type=1);else{var b=P[x.keyCode],O=null==b?void 0:b[x.shiftKey?1:0];if(O)v.key=R.C0.ESC+O;else if(x.keyCode>=65&&x.keyCode<=90){var S=x.ctrlKey?x.keyCode-64:x.keyCode+32,y=String.fromCharCode(S);x.shiftKey&&(y=y.toUpperCase()),v.key=R.C0.ESC+y}else"Dead"===x.key&&x.code.startsWith("Key")&&(y=x.code.slice(3,4),x.shiftKey||(y=y.toLowerCase()),v.key=R.C0.ESC+y,v.cancel=!0)}else x.keyCode>=65&&x.keyCode<=90?v.key=String.fromCharCode(x.keyCode-64):32===x.keyCode?v.key=R.C0.NUL:x.keyCode>=51&&x.keyCode<=55?v.key=String.fromCharCode(x.keyCode-51+27):56===x.keyCode?v.key=R.C0.DEL:219===x.keyCode?v.key=R.C0.ESC:220===x.keyCode?v.key=R.C0.FS:221===x.keyCode&&(v.key=R.C0.GS)}return v}},482:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Utf8ToUtf32=A.StringToUtf32=A.utf32ToString=A.stringFromCodePoint=void 0,A.stringFromCodePoint=function(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},A.utf32ToString=function(P,x,D){void 0===x&&(x=0),void 0===D&&(D=P.length);for(var j="",L=x;L<D;++L){var v=P[L];v>65535?(v-=65536,j+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):j+=String.fromCharCode(v)}return j};var H=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(x,D){var j=x.length;if(!j)return 0;var L=0,v=0;this._interim&&(56320<=(O=x.charCodeAt(v++))&&O<=57343?D[L++]=1024*(this._interim-55296)+O-56320+65536:(D[L++]=this._interim,D[L++]=O),this._interim=0);for(var k=v;k<j;++k){var b=x.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=j)return this._interim=b,L;var O;56320<=(O=x.charCodeAt(k))&&O<=57343?D[L++]=1024*(b-55296)+O-56320+65536:(D[L++]=b,D[L++]=O)}else 65279!==b&&(D[L++]=b)}return L},P}();A.StringToUtf32=H;var R=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(x,D){var j=x.length;if(!j)return 0;var L,v,k,b,O=0,S=0,y=0;if(this.interim[0]){var T=!1,M=this.interim[0];M&=192==(224&M)?31:224==(240&M)?15:7;for(var E=0,N=void 0;(N=63&this.interim[++E])&&E<4;)M<<=6,M|=N;for(var F=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,X=F-E;y<X;){if(y>=j)return 0;if(128!=(192&(N=x[y++]))){y--,T=!0;break}this.interim[E++]=N,M<<=6,M|=63&N}T||(2===F?M<128?y--:D[O++]=M:3===F?M<2048||M>=55296&&M<=57343||65279===M||(D[O++]=M):M<65536||M>1114111||(D[O++]=M)),this.interim.fill(0)}for(var $=j-4,Y=y;Y<j;){for(;!(!(Y<$)||128&(L=x[Y])||128&(v=x[Y+1])||128&(k=x[Y+2])||128&(b=x[Y+3]));)D[O++]=L,D[O++]=v,D[O++]=k,D[O++]=b,Y+=4;if((L=x[Y++])<128)D[O++]=L;else if(192==(224&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=x[Y++]))){Y--;continue}if((S=(31&L)<<6|63&v)<128){Y--;continue}D[O++]=S}else if(224==(240&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=x[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=x[Y++]))){Y--;continue}if((S=(15&L)<<12|(63&v)<<6|63&k)<2048||S>=55296&&S<=57343||65279===S)continue;D[O++]=S}else if(240==(248&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=x[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=x[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,this.interim[2]=k,O;if(128!=(192&(b=x[Y++]))){Y--;continue}if((S=(7&L)<<18|(63&v)<<12|(63&k)<<6|63&b)<65536||S>1114111)continue;D[O++]=S}}return O},P}();A.Utf8ToUtf32=R},225:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeV6=void 0;var R,P=H(8273),x=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],D=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],j=function(){function L(){if(this.version="6",!R){R=new Uint8Array(65536),(0,P.fill)(R,1),R[0]=0,(0,P.fill)(R,0,1,32),(0,P.fill)(R,0,127,160),(0,P.fill)(R,2,4352,4448),R[9001]=2,R[9002]=2,(0,P.fill)(R,2,11904,42192),R[12351]=1,(0,P.fill)(R,2,44032,55204),(0,P.fill)(R,2,63744,64256),(0,P.fill)(R,2,65040,65050),(0,P.fill)(R,2,65072,65136),(0,P.fill)(R,2,65280,65377),(0,P.fill)(R,2,65504,65511);for(var v=0;v<x.length;++v)(0,P.fill)(R,0,x[v][0],x[v][1]+1)}}return L.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?R[v]:function(k,b){var O,S=0,y=b.length-1;if(k<b[0][0]||k>b[y][1])return!1;for(;y>=S;)if(k>b[O=S+y>>1][1])S=O+1;else{if(!(k<b[O][0]))return!0;y=O-1}return!1}(v,D)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},L}();A.UnicodeV6=j},5981:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.WriteBuffer=void 0;var R=H(8460),P="undefined"==typeof queueMicrotask?function(D){Promise.resolve().then(D)}:queueMicrotask,x=function(){function D(j){this._action=j,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new R.EventEmitter}return Object.defineProperty(D.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),D.prototype.writeSync=function(j,L){if(void 0!==L&&this._syncCalls>L)this._syncCalls=0;else if(this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);var k=this._callbacks.shift();k&&k()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},D.prototype.write=function(j,L){var v=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return v._innerWrite()})),this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(L)},D.prototype._innerWrite=function(j,L){var v=this;void 0===j&&(j=0),void 0===L&&(L=!0);for(var k=j||Date.now();this._writeBuffer.length>this._bufferOffset;){var b=this._writeBuffer[this._bufferOffset],O=this._action(b,L);if(O)return void O.catch(function(y){return P(function(){throw y}),Promise.resolve(!1)}).then(function(y){return Date.now()-k>=12?setTimeout(function(){return v._innerWrite(0,y)}):v._innerWrite(k,y)});var S=this._callbacks[this._bufferOffset];if(S&&S(),this._bufferOffset++,this._pendingData-=b.length,Date.now()-k>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return v._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},D}();A.WriteBuffer=x},5941:function(W,A){var H=this&&this.__read||function(D,j){var L="function"==typeof Symbol&&D[Symbol.iterator];if(!L)return D;var v,k,b=L.call(D),O=[];try{for(;(void 0===j||j-- >0)&&!(v=b.next()).done;)O.push(v.value)}catch(S){k={error:S}}finally{try{v&&!v.done&&(L=b.return)&&L.call(b)}finally{if(k)throw k.error}}return O};Object.defineProperty(A,"__esModule",{value:!0}),A.toRgbString=A.parseColor=void 0;var R=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,P=/^[\da-f]+$/;function x(D,j){var L=D.toString(16),v=L.length<2?"0"+L:L;switch(j){case 4:return L[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}A.parseColor=function(D){if(D){var j=D.toLowerCase();if(0===j.indexOf("rgb:")){j=j.slice(4);var L=R.exec(j);if(L){var v=L[1]?15:L[4]?255:L[7]?4095:65535;return[Math.round(parseInt(L[1]||L[4]||L[7]||L[10],16)/v*255),Math.round(parseInt(L[2]||L[5]||L[8]||L[11],16)/v*255),Math.round(parseInt(L[3]||L[6]||L[9]||L[12],16)/v*255)]}}else if(0===j.indexOf("#")&&(j=j.slice(1),P.exec(j)&&[3,6,9,12].includes(j.length))){for(var k=j.length/3,b=[0,0,0],O=0;O<3;++O){var S=parseInt(j.slice(k*O,k*O+k),16);b[O]=1===k?S<<4:2===k?S:3===k?S>>4:S>>8}return b}}},A.toRgbString=function(D,j){void 0===j&&(j=16);var L=H(D,3),v=L[0],k=L[1],b=L[2];return"rgb:"+x(v,j)+"/"+x(k,j)+"/"+x(b,j)}},5770:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.PAYLOAD_LIMIT=void 0,A.PAYLOAD_LIMIT=1e7},6351:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.DcsHandler=A.DcsParser=void 0;var R=H(482),P=H(8742),x=H(5770),D=[],j=function(){function k(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return k.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},k.prototype.registerHandler=function(b,O){void 0===this._handlers[b]&&(this._handlers[b]=[]);var S=this._handlers[b];return S.push(O),{dispose:function(){var T=S.indexOf(O);-1!==T&&S.splice(T,1)}}},k.prototype.clearHandler=function(b){this._handlers[b]&&delete this._handlers[b]},k.prototype.setHandlerFallback=function(b){this._handlerFb=b},k.prototype.reset=function(){if(this._active.length)for(var b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},k.prototype.hook=function(b,O){if(this.reset(),this._ident=b,this._active=this._handlers[b]||D,this._active.length)for(var S=this._active.length-1;S>=0;S--)this._active[S].hook(O);else this._handlerFb(this._ident,"HOOK",O)},k.prototype.put=function(b,O,S){if(this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].put(b,O,S);else this._handlerFb(this._ident,"PUT",(0,R.utf32ToString)(b,O,S))},k.prototype.unhook=function(b,O){if(void 0===O&&(O=!0),this._active.length){var S=!1,y=this._active.length-1,T=!1;if(this._stack.paused&&(y=this._stack.loopPosition-1,S=O,T=this._stack.fallThrough,this._stack.paused=!1),!T&&!1===S){for(;y>=0&&!0!==(S=this._active[y].unhook(b));y--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!1,S;y--}for(;y>=0;y--)if((S=this._active[y].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!0,S}else this._handlerFb(this._ident,"UNHOOK",b);this._active=D,this._ident=0},k}();A.DcsParser=j;var L=new P.Params;L.addParam(0);var v=function(){function k(b){this._handler=b,this._data="",this._params=L,this._hitLimit=!1}return k.prototype.hook=function(b){this._params=b.length>1||b.params[0]?b.clone():L,this._data="",this._hitLimit=!1},k.prototype.put=function(b,O,S){this._hitLimit||(this._data+=(0,R.utf32ToString)(b,O,S),this._data.length>x.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},k.prototype.unhook=function(b){var O=this,S=!1;if(this._hitLimit)S=!1;else if(b&&(S=this._handler(this._data,this._params))instanceof Promise)return S.then(function(y){return O._params=L,O._data="",O._hitLimit=!1,y});return this._params=L,this._data="",this._hitLimit=!1,S},k}();A.DcsHandler=v},2015:function(W,A,H){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(M[N]=E[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.EscapeSequenceParser=A.VT500_TRANSITION_TABLE=A.TransitionTable=void 0;var x=H(844),D=H(8273),j=H(8742),L=H(6242),v=H(6351),k=function(){function S(y){this.table=new Uint8Array(y)}return S.prototype.setDefault=function(y,T){(0,D.fill)(this.table,y<<4|T)},S.prototype.add=function(y,T,M,E){this.table[T<<8|y]=M<<4|E},S.prototype.addMany=function(y,T,M,E){for(var N=0;N<y.length;N++)this.table[T<<8|y[N]]=M<<4|E},S}();A.TransitionTable=k;var b=160;A.VT500_TRANSITION_TABLE=function(){var S=new k(4095),y=Array.apply(null,Array(256)).map(function(X,$){return $}),T=function($,Y){return y.slice($,Y)},M=T(32,127),E=T(0,24);E.push(25),E.push.apply(E,T(28,32));var N,F=T(0,14);for(N in S.setDefault(1,0),S.addMany(M,0,2,0),F)S.addMany([24,26,153,154],N,3,0),S.addMany(T(128,144),N,3,0),S.addMany(T(144,152),N,3,0),S.add(156,N,0,0),S.add(27,N,11,1),S.add(157,N,4,8),S.addMany([152,158,159],N,0,7),S.add(155,N,11,3),S.add(144,N,11,9);return S.addMany(E,0,3,0),S.addMany(E,1,3,1),S.add(127,1,0,1),S.addMany(E,8,0,8),S.addMany(E,3,3,3),S.add(127,3,0,3),S.addMany(E,4,3,4),S.add(127,4,0,4),S.addMany(E,6,3,6),S.addMany(E,5,3,5),S.add(127,5,0,5),S.addMany(E,2,3,2),S.add(127,2,0,2),S.add(93,1,4,8),S.addMany(M,8,5,8),S.add(127,8,5,8),S.addMany([156,27,24,26,7],8,6,0),S.addMany(T(28,32),8,0,8),S.addMany([88,94,95],1,0,7),S.addMany(M,7,0,7),S.addMany(E,7,0,7),S.add(156,7,0,0),S.add(127,7,0,7),S.add(91,1,11,3),S.addMany(T(64,127),3,7,0),S.addMany(T(48,60),3,8,4),S.addMany([60,61,62,63],3,9,4),S.addMany(T(48,60),4,8,4),S.addMany(T(64,127),4,7,0),S.addMany([60,61,62,63],4,0,6),S.addMany(T(32,64),6,0,6),S.add(127,6,0,6),S.addMany(T(64,127),6,0,0),S.addMany(T(32,48),3,9,5),S.addMany(T(32,48),5,9,5),S.addMany(T(48,64),5,0,6),S.addMany(T(64,127),5,7,0),S.addMany(T(32,48),4,9,5),S.addMany(T(32,48),1,9,2),S.addMany(T(32,48),2,9,2),S.addMany(T(48,127),2,10,0),S.addMany(T(48,80),1,10,0),S.addMany(T(81,88),1,10,0),S.addMany([89,90,92],1,10,0),S.addMany(T(96,127),1,10,0),S.add(80,1,11,9),S.addMany(E,9,0,9),S.add(127,9,0,9),S.addMany(T(28,32),9,0,9),S.addMany(T(32,48),9,9,12),S.addMany(T(48,60),9,8,10),S.addMany([60,61,62,63],9,9,10),S.addMany(E,11,0,11),S.addMany(T(32,128),11,0,11),S.addMany(T(28,32),11,0,11),S.addMany(E,10,0,10),S.add(127,10,0,10),S.addMany(T(28,32),10,0,10),S.addMany(T(48,60),10,8,10),S.addMany([60,61,62,63],10,0,11),S.addMany(T(32,48),10,9,12),S.addMany(E,12,0,12),S.add(127,12,0,12),S.addMany(T(28,32),12,0,12),S.addMany(T(32,48),12,9,12),S.addMany(T(48,64),12,0,11),S.addMany(T(64,127),12,12,13),S.addMany(T(64,127),10,12,13),S.addMany(T(64,127),9,12,13),S.addMany(E,13,13,13),S.addMany(M,13,13,13),S.add(127,13,0,13),S.addMany([27,156,24,26],13,14,0),S.add(b,0,2,0),S.add(b,8,5,8),S.add(b,6,0,6),S.add(b,11,0,11),S.add(b,13,13,13),S}();var O=function(S){function y(T){void 0===T&&(T=A.VT500_TRANSITION_TABLE);var M=S.call(this)||this;return M._transitions=T,M._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},M.initialState=0,M.currentState=M.initialState,M._params=new j.Params,M._params.addParam(0),M._collect=0,M.precedingCodepoint=0,M._printHandlerFb=function(E,N,F){},M._executeHandlerFb=function(E){},M._csiHandlerFb=function(E,N){},M._escHandlerFb=function(E){},M._errorHandlerFb=function(E){return E},M._printHandler=M._printHandlerFb,M._executeHandlers=Object.create(null),M._csiHandlers=Object.create(null),M._escHandlers=Object.create(null),M._oscParser=new L.OscParser,M._dcsParser=new v.DcsParser,M._errorHandler=M._errorHandlerFb,M.registerEscHandler({final:"\\"},function(){return!0}),M}return P(y,S),y.prototype._identifier=function(T,M){void 0===M&&(M=[64,126]);var E=0;if(T.prefix){if(T.prefix.length>1)throw new Error("only one byte as prefix supported");if((E=T.prefix.charCodeAt(0))&&60>E||E>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(T.intermediates){if(T.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var N=0;N<T.intermediates.length;++N){var F=T.intermediates.charCodeAt(N);if(32>F||F>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");E<<=8,E|=F}}if(1!==T.final.length)throw new Error("final must be a single byte");var X=T.final.charCodeAt(0);if(M[0]>X||X>M[1])throw new Error("final must be in range "+M[0]+" .. "+M[1]);return(E<<=8)|X},y.prototype.identToString=function(T){for(var M=[];T;)M.push(String.fromCharCode(255&T)),T>>=8;return M.reverse().join("")},y.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},y.prototype.setPrintHandler=function(T){this._printHandler=T},y.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},y.prototype.registerEscHandler=function(T,M){var E=this._identifier(T,[48,126]);void 0===this._escHandlers[E]&&(this._escHandlers[E]=[]);var N=this._escHandlers[E];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearEscHandler=function(T){this._escHandlers[this._identifier(T,[48,126])]&&delete this._escHandlers[this._identifier(T,[48,126])]},y.prototype.setEscHandlerFallback=function(T){this._escHandlerFb=T},y.prototype.setExecuteHandler=function(T,M){this._executeHandlers[T.charCodeAt(0)]=M},y.prototype.clearExecuteHandler=function(T){this._executeHandlers[T.charCodeAt(0)]&&delete this._executeHandlers[T.charCodeAt(0)]},y.prototype.setExecuteHandlerFallback=function(T){this._executeHandlerFb=T},y.prototype.registerCsiHandler=function(T,M){var E=this._identifier(T);void 0===this._csiHandlers[E]&&(this._csiHandlers[E]=[]);var N=this._csiHandlers[E];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearCsiHandler=function(T){this._csiHandlers[this._identifier(T)]&&delete this._csiHandlers[this._identifier(T)]},y.prototype.setCsiHandlerFallback=function(T){this._csiHandlerFb=T},y.prototype.registerDcsHandler=function(T,M){return this._dcsParser.registerHandler(this._identifier(T),M)},y.prototype.clearDcsHandler=function(T){this._dcsParser.clearHandler(this._identifier(T))},y.prototype.setDcsHandlerFallback=function(T){this._dcsParser.setHandlerFallback(T)},y.prototype.registerOscHandler=function(T,M){return this._oscParser.registerHandler(T,M)},y.prototype.clearOscHandler=function(T){this._oscParser.clearHandler(T)},y.prototype.setOscHandlerFallback=function(T){this._oscParser.setHandlerFallback(T)},y.prototype.setErrorHandler=function(T){this._errorHandler=T},y.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},y.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},y.prototype._preserveStack=function(T,M,E,N,F){this._parseStack.state=T,this._parseStack.handlers=M,this._parseStack.handlerPos=E,this._parseStack.transition=N,this._parseStack.chunkPos=F},y.prototype.parse=function(T,M,E){var N,F=0,X=0,$=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,$=this._parseStack.chunkPos+1;else{if(void 0===E||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var Y=this._parseStack.handlers,Q=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===E&&Q>-1)for(;Q>=0&&!0!==(N=Y[Q](this._params));Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 4:if(!1===E&&Q>-1)for(;Q>=0&&!0!==(N=Y[Q]());Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 6:if(F=T[this._parseStack.chunkPos],N=this._dcsParser.unhook(24!==F&&26!==F,E))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(F=T[this._parseStack.chunkPos],N=this._oscParser.end(24!==F&&26!==F,E))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,$=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ne=$;ne<M;++ne){switch(F=T[ne],(X=this._transitions.table[this.currentState<<8|(F<160?F:b)])>>4){case 2:for(var be=ne+1;;++be){if(be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}}break;case 3:this._executeHandlers[F]?this._executeHandlers[F]():this._executeHandlerFb(F),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ne,code:F,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var fe=(Y=this._csiHandlers[this._collect<<8|F])?Y.length-1:-1;fe>=0&&!0!==(N=Y[fe](this._params));fe--)if(N instanceof Promise)return this._preserveStack(3,Y,fe,X,ne),N;fe<0&&this._csiHandlerFb(this._collect<<8|F,this._params),this.precedingCodepoint=0;break;case 8:do{switch(F){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(F-48)}}while(++ne<M&&(F=T[ne])>47&&F<60);ne--;break;case 9:this._collect<<=8,this._collect|=F;break;case 10:for(var de=this._escHandlers[this._collect<<8|F],le=de?de.length-1:-1;le>=0&&!0!==(N=de[le]());le--)if(N instanceof Promise)return this._preserveStack(4,de,le,X,ne),N;le<0&&this._escHandlerFb(this._collect<<8|F),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|F,this._params);break;case 13:for(var ce=ne+1;;++ce)if(ce>=M||24===(F=T[ce])||26===F||27===F||F>127&&F<b){this._dcsParser.put(T,ne,ce),ne=ce-1;break}break;case 14:if(N=this._dcsParser.unhook(24!==F&&26!==F))return this._preserveStack(6,[],0,X,ne),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var me=ne+1;;me++)if(me>=M||(F=T[me])<32||F>127&&F<b){this._oscParser.put(T,ne,me),ne=me-1;break}break;case 6:if(N=this._oscParser.end(24!==F&&26!==F))return this._preserveStack(5,[],0,X,ne),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&X}},y}(x.Disposable);A.EscapeSequenceParser=O},6242:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.OscHandler=A.OscParser=void 0;var R=H(5770),P=H(482),x=[],D=function(){function L(){this._state=0,this._active=x,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return L.prototype.registerHandler=function(v,k){void 0===this._handlers[v]&&(this._handlers[v]=[]);var b=this._handlers[v];return b.push(k),{dispose:function(){var S=b.indexOf(k);-1!==S&&b.splice(S,1)}}},L.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},L.prototype.setHandlerFallback=function(v){this._handlerFb=v},L.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=x},L.prototype.reset=function(){if(2===this._state)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=x,this._id=-1,this._state=0},L.prototype._start=function(){if(this._active=this._handlers[this._id]||x,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},L.prototype._put=function(v,k,b){if(this._active.length)for(var O=this._active.length-1;O>=0;O--)this._active[O].put(v,k,b);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(v,k,b))},L.prototype.start=function(){this.reset(),this._state=1},L.prototype.put=function(v,k,b){if(3!==this._state){if(1===this._state)for(;k<b;){var O=v[k++];if(59===O){this._state=2,this._start();break}if(O<48||57<O)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+O-48}2===this._state&&b-k>0&&this._put(v,k,b)}},L.prototype.end=function(v,k){if(void 0===k&&(k=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var b=!1,O=this._active.length-1,S=!1;if(this._stack.paused&&(O=this._stack.loopPosition-1,b=k,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===b){for(;O>=0&&!0!==(b=this._active[O].end(v));O--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!1,b;O--}for(;O>=0;O--)if((b=this._active[O].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!0,b}else this._handlerFb(this._id,"END",v);this._active=x,this._id=-1,this._state=0}},L}();A.OscParser=D;var j=function(){function L(v){this._handler=v,this._data="",this._hitLimit=!1}return L.prototype.start=function(){this._data="",this._hitLimit=!1},L.prototype.put=function(v,k,b){this._hitLimit||(this._data+=(0,P.utf32ToString)(v,k,b),this._data.length>R.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},L.prototype.end=function(v){var k=this,b=!1;if(this._hitLimit)b=!1;else if(v&&(b=this._handler(this._data))instanceof Promise)return b.then(function(O){return k._data="",k._hitLimit=!1,O});return this._data="",this._hitLimit=!1,b},L}();A.OscHandler=j},8742:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Params=void 0;var H=2147483647,R=function(){function P(x,D){if(void 0===x&&(x=32),void 0===D&&(D=32),this.maxLength=x,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(x),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(x),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(x){var D=new P;if(!x.length)return D;for(var j=Array.isArray(x[0])?1:0;j<x.length;++j){var L=x[j];if(Array.isArray(L))for(var v=0;v<L.length;++v)D.addSubParam(L[v]);else D.addParam(L)}return D},P.prototype.clone=function(){var x=new P(this.maxLength,this.maxSubParamsLength);return x.params.set(this.params),x.length=this.length,x._subParams.set(this._subParams),x._subParamsLength=this._subParamsLength,x._subParamsIdx.set(this._subParamsIdx),x._rejectDigits=this._rejectDigits,x._rejectSubDigits=this._rejectSubDigits,x._digitIsSub=this._digitIsSub,x},P.prototype.toArray=function(){for(var x=[],D=0;D<this.length;++D){x.push(this.params[D]);var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&x.push(Array.prototype.slice.call(this._subParams,j,L))}return x},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(x){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(x<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=x>H?H:x}},P.prototype.addSubParam=function(x){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(x<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=x>H?H:x,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(x){return(255&this._subParamsIdx[x])-(this._subParamsIdx[x]>>8)>0},P.prototype.getSubParams=function(x){var D=this._subParamsIdx[x]>>8,j=255&this._subParamsIdx[x];return j-D>0?this._subParams.subarray(D,j):null},P.prototype.getSubParamsAll=function(){for(var x={},D=0;D<this.length;++D){var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&(x[D]=this._subParams.slice(j,L))}return x},P.prototype.addDigit=function(x){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var j=this._digitIsSub?this._subParams:this.params,L=j[D-1];j[D-1]=~L?Math.min(10*L+x,H):x}},P}();A.Params=R},5741:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.AddonManager=void 0;var H=function(){function R(){this._addons=[]}return R.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},R.prototype.loadAddon=function(P,x){var D=this,j={instance:x,dispose:x.dispose,isDisposed:!1};this._addons.push(j),x.dispose=function(){return D._wrappedAddonDispose(j)},x.activate(P)},R.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var x=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===P){x=D;break}if(-1===x)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(x,1)}},R}();A.AddonManager=H},8771:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferApiView=void 0;var R=H(3785),P=H(511),x=function(){function D(j,L){this._buffer=j,this.type=L}return D.prototype.init=function(j){return this._buffer=j,this},Object.defineProperty(D.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),D.prototype.getLine=function(j){var L=this._buffer.lines.get(j);if(L)return new R.BufferLineApiView(L)},D.prototype.getNullCell=function(){return new P.CellData},D}();A.BufferApiView=x},3785:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLineApiView=void 0;var R=H(511),P=function(){function x(D){this._line=D}return Object.defineProperty(x.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),x.prototype.getCell=function(D,j){if(!(D<0||D>=this._line.length))return j?(this._line.loadCell(D,j),j):this._line.loadCell(D,new R.CellData)},x.prototype.translateToString=function(D,j,L){return this._line.translateToString(D,j,L)},x}();A.BufferLineApiView=P},8285:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferNamespaceApi=void 0;var R=H(8771),P=H(8460),x=function(){function D(j){var L=this;this._core=j,this._onBufferChange=new P.EventEmitter,this._normal=new R.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new R.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return L._onBufferChange.fire(L.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();A.BufferNamespaceApi=x},7975:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ParserApi=void 0;var H=function(){function R(P){this._core=P}return R.prototype.registerCsiHandler=function(P,x){return this._core.registerCsiHandler(P,function(D){return x(D.toArray())})},R.prototype.addCsiHandler=function(P,x){return this.registerCsiHandler(P,x)},R.prototype.registerDcsHandler=function(P,x){return this._core.registerDcsHandler(P,function(D,j){return x(D,j.toArray())})},R.prototype.addDcsHandler=function(P,x){return this.registerDcsHandler(P,x)},R.prototype.registerEscHandler=function(P,x){return this._core.registerEscHandler(P,x)},R.prototype.addEscHandler=function(P,x){return this.registerEscHandler(P,x)},R.prototype.registerOscHandler=function(P,x){return this._core.registerOscHandler(P,x)},R.prototype.addOscHandler=function(P,x){return this.registerOscHandler(P,x)},R}();A.ParserApi=H},7090:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeApi=void 0;var H=function(){function R(P){this._core=P}return R.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(R.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(x){this._core.unicodeService.activeVersion=x},enumerable:!1,configurable:!0}),R}();A.UnicodeApi=H},744:function(W,A,H){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),x=this&&this.__decorate||function(O,S,y,T){var M,E=arguments.length,N=E<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(E<3?M(N):E>3?M(S,y,N):M(S,y))||N);return E>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferService=A.MINIMUM_ROWS=A.MINIMUM_COLS=void 0;var j=H(2585),L=H(5295),v=H(8460),k=H(844);A.MINIMUM_COLS=2,A.MINIMUM_ROWS=1;var b=function(O){function S(y){var T=O.call(this)||this;return T._optionsService=y,T.isUserScrolling=!1,T._onResize=new v.EventEmitter,T._onScroll=new v.EventEmitter,T.cols=Math.max(y.rawOptions.cols||0,A.MINIMUM_COLS),T.rows=Math.max(y.rawOptions.rows||0,A.MINIMUM_ROWS),T.buffers=new L.BufferSet(y,T),T}return P(S,O),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){O.prototype.dispose.call(this),this.buffers.dispose()},S.prototype.resize=function(y,T){this.cols=y,this.rows=T,this.buffers.resize(y,T),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:y,rows:T})},S.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},S.prototype.scroll=function(y,T){void 0===T&&(T=!1);var M,E=this.buffer;(M=this._cachedBlankLine)&&M.length===this.cols&&M.getFg(0)===y.fg&&M.getBg(0)===y.bg||(M=E.getBlankLine(y,T),this._cachedBlankLine=M),M.isWrapped=T;var N=E.ybase+E.scrollTop,F=E.ybase+E.scrollBottom;if(0===E.scrollTop){var X=E.lines.isFull;F===E.lines.length-1?X?E.lines.recycle().copyFrom(M):E.lines.push(M.clone()):E.lines.splice(F+1,0,M.clone()),X?this.isUserScrolling&&(E.ydisp=Math.max(E.ydisp-1,0)):(E.ybase++,this.isUserScrolling||E.ydisp++)}else{var $=F-N+1;E.lines.shiftElements(N+1,$-1,-1),E.lines.set(F,M.clone())}this.isUserScrolling||(E.ydisp=E.ybase),this._onScroll.fire(E.ydisp)},S.prototype.scrollLines=function(y,T,M){var E=this.buffer;if(y<0){if(0===E.ydisp)return;this.isUserScrolling=!0}else y+E.ydisp>=E.ybase&&(this.isUserScrolling=!1);var N=E.ydisp;E.ydisp=Math.max(Math.min(E.ydisp+y,E.ybase),0),N!==E.ydisp&&(T||this._onScroll.fire(E.ydisp))},S.prototype.scrollPages=function(y){this.scrollLines(y*(this.rows-1))},S.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},S.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},S.prototype.scrollToLine=function(y){var T=y-this.buffer.ydisp;0!==T&&this.scrollLines(T)},x([D(0,j.IOptionsService)],S)}(k.Disposable);A.BufferService=b},7994:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CharsetService=void 0;var H=function(){function R(){this.glevel=0,this._charsets=[]}return R.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},R.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},R.prototype.setgCharset=function(P,x){this._charsets[P]=x,this.glevel===P&&(this.charset=x)},R}();A.CharsetService=H},1753:function(W,A,H){var R=this&&this.__decorate||function(S,y,T,M){var E,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(E=S[X])&&(F=(N<3?E(F):N>3?E(y,T,F):E(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},P=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},x=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreMouseService=void 0;var D=H(2585),j=H(8460),L={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(y){return 4!==y.button&&1===y.action&&(y.ctrl=!1,y.alt=!1,y.shift=!1,!0)}},VT200:{events:19,restrict:function(y){return 32!==y.action}},DRAG:{events:23,restrict:function(y){return 32!==y.action||3!==y.button}},ANY:{events:31,restrict:function(y){return!0}}};function v(S,y){var T=(S.ctrl?16:0)|(S.shift?4:0)|(S.alt?8:0);return 4===S.button?(T|=64,T|=S.action):(T|=3&S.button,4&S.button&&(T|=64),8&S.button&&(T|=128),32===S.action?T|=32:0!==S.action||y||(T|=3)),T}var k=String.fromCharCode,b={DEFAULT:function(y){var T=[v(y,!1)+32,y.col+32,y.row+32];return T[0]>255||T[1]>255||T[2]>255?"":"\x1b[M"+k(T[0])+k(T[1])+k(T[2])},SGR:function(y){var T=0===y.action&&4!==y.button?"m":"M";return"\x1b[<"+v(y,!0)+";"+y.col+";"+y.row+T}},O=function(){function S(y,T){var M,E,N,F;this._bufferService=y,this._coreService=T,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new j.EventEmitter,this._lastEvent=null;try{for(var X=x(Object.keys(L)),$=X.next();!$.done;$=X.next()){var Y=$.value;this.addProtocol(Y,L[Y])}}catch(fe){M={error:fe}}finally{try{$&&!$.done&&(E=X.return)&&E.call(X)}finally{if(M)throw M.error}}try{for(var Q=x(Object.keys(b)),ne=Q.next();!ne.done;ne=Q.next()){var be=ne.value;this.addEncoding(be,b[be])}}catch(fe){N={error:fe}}finally{try{ne&&!ne.done&&(F=Q.return)&&F.call(Q)}finally{if(N)throw N.error}}this.reset()}return S.prototype.addProtocol=function(y,T){this._protocols[y]=T},S.prototype.addEncoding=function(y,T){this._encodings[y]=T},Object.defineProperty(S.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(T){if(!this._protocols[T])throw new Error('unknown protocol "'+T+'"');this._activeProtocol=T,this._onProtocolChange.fire(this._protocols[T].events)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(T){if(!this._encodings[T])throw new Error('unknown encoding "'+T+'"');this._activeEncoding=T},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(S.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),S.prototype.triggerMouseEvent=function(y){if(y.col<0||y.col>=this._bufferService.cols||y.row<0||y.row>=this._bufferService.rows||4===y.button&&32===y.action||3===y.button&&32!==y.action||4!==y.button&&(2===y.action||3===y.action)||(y.col++,y.row++,32===y.action&&this._lastEvent&&this._compareEvents(this._lastEvent,y))||!this._protocols[this._activeProtocol].restrict(y))return!1;var T=this._encodings[this._activeEncoding](y);return T&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(T):this._coreService.triggerDataEvent(T,!0)),this._lastEvent=y,!0},S.prototype.explainEvents=function(y){return{down:!!(1&y),up:!!(2&y),drag:!!(4&y),move:!!(8&y),wheel:!!(16&y)}},S.prototype._compareEvents=function(y,T){return y.col===T.col&&y.row===T.row&&y.button===T.button&&y.action===T.action&&y.ctrl===T.ctrl&&y.alt===T.alt&&y.shift===T.shift},R([P(0,D.IBufferService),P(1,D.ICoreService)],S)}();A.CoreMouseService=O},6975:function(W,A,H){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,N){E.__proto__=N}||function(E,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(E[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),x=this&&this.__decorate||function(y,T,M,E){var N,F=arguments.length,X=F<3?T:null===E?E=Object.getOwnPropertyDescriptor(T,M):E;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,E);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,E){T(M,E,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreService=void 0;var j=H(2585),L=H(8460),v=H(1439),k=H(844),b=Object.freeze({insertMode:!1}),O=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),S=function(y){function T(M,E,N,F){var X=y.call(this)||this;return X._bufferService=E,X._logService=N,X._optionsService=F,X.isCursorInitialized=!1,X.isCursorHidden=!1,X._onData=X.register(new L.EventEmitter),X._onUserInput=X.register(new L.EventEmitter),X._onBinary=X.register(new L.EventEmitter),X._scrollToBottom=M,X.register({dispose:function(){return X._scrollToBottom=void 0}}),X.modes=(0,v.clone)(b),X.decPrivateModes=(0,v.clone)(O),X}return P(T,y),Object.defineProperty(T.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),T.prototype.reset=function(){this.modes=(0,v.clone)(b),this.decPrivateModes=(0,v.clone)(O)},T.prototype.triggerDataEvent=function(M,E){if(void 0===E&&(E=!1),!this._optionsService.rawOptions.disableStdin){var N=this._bufferService.buffer;N.ybase!==N.ydisp&&this._scrollToBottom(),E&&this._onUserInput.fire(),this._logService.debug('sending data "'+M+'"',function(){return M.split("").map(function(F){return F.charCodeAt(0)})}),this._onData.fire(M)}},T.prototype.triggerBinaryEvent=function(M){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+M+'"',function(){return M.split("").map(function(E){return E.charCodeAt(0)})}),this._onBinary.fire(M))},x([D(1,j.IBufferService),D(2,j.ILogService),D(3,j.IOptionsService)],T)}(k.Disposable);A.CoreService=S},9074:function(W,A,H){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(M[N]=E[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),x=this&&this.__generator||function(S,y){var T,M,E,N,F={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return N={next:X(0),throw:X(1),return:X(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function X($){return function(Y){return function(Q){if(T)throw new TypeError("Generator is already executing.");for(;F;)try{if(T=1,M&&(E=2&Q[0]?M.return:Q[0]?M.throw||((E=M.return)&&E.call(M),0):M.next)&&!(E=E.call(M,Q[1])).done)return E;switch(M=0,E&&(Q=[2&Q[0],E.value]),Q[0]){case 0:case 1:E=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,M=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((E=(E=F.trys).length>0&&E[E.length-1])||6!==Q[0]&&2!==Q[0])){F=0;continue}if(3===Q[0]&&(!E||Q[1]>E[0]&&Q[1]<E[3])){F.label=Q[1];break}if(6===Q[0]&&F.label<E[1]){F.label=E[1],E=Q;break}if(E&&F.label<E[2]){F.label=E[2],F.ops.push(Q);break}E[2]&&F.ops.pop(),F.trys.pop();continue}Q=y.call(S,F)}catch(ne){Q=[6,ne],M=0}finally{T=E=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([$,Y])}}},D=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DecorationService=void 0;var j=H(8055),L=H(8460),v=H(844),k=H(6106),b=function(S){function y(){var T=S.call(this)||this;return T._decorations=new k.SortedList(function(M){return M.marker.line}),T._onDecorationRegistered=T.register(new L.EventEmitter),T._onDecorationRemoved=T.register(new L.EventEmitter),T}return P(y,S),Object.defineProperty(y.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),y.prototype.registerDecoration=function(T){var M=this;if(!T.marker.isDisposed){var E=new O(T);if(E){var N=E.marker.onDispose(function(){return E.dispose()});E.onDispose(function(){E&&(M._decorations.delete(E)&&M._onDecorationRemoved.fire(E),N.dispose())}),this._decorations.insert(E),this._onDecorationRegistered.fire(E)}return E}},y.prototype.reset=function(){var T,M;try{for(var E=D(this._decorations.values()),N=E.next();!N.done;N=E.next())N.value.dispose()}catch(F){T={error:F}}finally{try{N&&!N.done&&(M=E.return)&&M.call(E)}finally{if(T)throw T.error}}this._decorations.clear()},y.prototype.getDecorationsAtLine=function(T){return x(this,function(M){return[2,this._decorations.getKeyIterator(T)]})},y.prototype.getDecorationsAtCell=function(T,M,E){var N,F,X,$,Y,Q,ne,be,fe,de,le;return x(this,function(ce){switch(ce.label){case 0:N=0,F=0,ce.label=1;case 1:ce.trys.push([1,6,7,8]),X=D(this._decorations.getKeyIterator(M)),$=X.next(),ce.label=2;case 2:return $.done?[3,5]:(Y=$.value,N=null!==(fe=Y.options.x)&&void 0!==fe?fe:0,F=N+(null!==(de=Y.options.width)&&void 0!==de?de:1),!(T>=N&&T<F)||E&&(null!==(le=Y.options.layer)&&void 0!==le?le:"bottom")!==E?[3,4]:[4,Y]);case 3:ce.sent(),ce.label=4;case 4:return $=X.next(),[3,2];case 5:return[3,8];case 6:return Q=ce.sent(),ne={error:Q},[3,8];case 7:try{$&&!$.done&&(be=X.return)&&be.call(X)}finally{if(ne)throw ne.error}return[7];case 8:return[2]}})},y.prototype.dispose=function(){var T,M;try{for(var E=D(this._decorations.values()),N=E.next();!N.done;N=E.next()){var F=N.value;this._onDecorationRemoved.fire(F)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=E.return)&&M.call(E)}finally{if(T)throw T.error}}this.reset()},y}(v.Disposable);A.DecorationService=b;var O=function(S){function y(T){var M=S.call(this)||this;return M.options=T,M.isDisposed=!1,M.onRenderEmitter=M.register(new L.EventEmitter),M.onRender=M.onRenderEmitter.event,M._onDispose=M.register(new L.EventEmitter),M.onDispose=M._onDispose.event,M._cachedBg=null,M._cachedFg=null,M.marker=T.marker,M.options.overviewRulerOptions&&!M.options.overviewRulerOptions.position&&(M.options.overviewRulerOptions.position="full"),M}return P(y,S),Object.defineProperty(y.prototype,"backgroundColorRGB",{get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=j.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"foregroundColorRGB",{get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=j.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),S.prototype.dispose.call(this))},y}(v.Disposable)},3730:function(W,A,H){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.DirtyRowService=void 0;var x=H(2585),D=function(){function j(L){this._bufferService=L,this.clearRange()}return Object.defineProperty(j.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),j.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},j.prototype.markDirty=function(L){L<this._start?this._start=L:L>this._end&&(this._end=L)},j.prototype.markRangeDirty=function(L,v){if(L>v){var k=L;L=v,v=k}L<this._start&&(this._start=L),v>this._end&&(this._end=v)},j.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},R([P(0,x.IBufferService)],j)}();A.DirtyRowService=D},4348:function(W,A,H){var R=this&&this.__values||function(k){var b="function"==typeof Symbol&&Symbol.iterator,O=b&&k[b],S=0;if(O)return O.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&S>=k.length&&(k=void 0),{value:k&&k[S++],done:!k}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},P=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(E){y={error:E}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},x=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.InstantiationService=A.ServiceCollection=void 0;var D=H(2585),j=H(8343),L=function(){function k(){for(var b,O,S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];this._entries=new Map;try{for(var T=R(S),M=T.next();!M.done;M=T.next()){var E=P(M.value,2),N=E[0],F=E[1];this.set(N,F)}}catch(X){b={error:X}}finally{try{M&&!M.done&&(O=T.return)&&O.call(T)}finally{if(b)throw b.error}}}return k.prototype.set=function(b,O){var S=this._entries.get(b);return this._entries.set(b,O),S},k.prototype.forEach=function(b){this._entries.forEach(function(O,S){return b(S,O)})},k.prototype.has=function(b){return this._entries.has(b)},k.prototype.get=function(b){return this._entries.get(b)},k}();A.ServiceCollection=L;var v=function(){function k(){this._services=new L,this._services.set(D.IInstantiationService,this)}return k.prototype.setService=function(b,O){this._services.set(b,O)},k.prototype.getService=function(b){return this._services.get(b)},k.prototype.createInstance=function(b){for(var O,S,y=[],T=1;T<arguments.length;T++)y[T-1]=arguments[T];var M=(0,j.getServiceDependencies)(b).sort(function(Q,ne){return Q.index-ne.index}),E=[];try{for(var N=R(M),F=N.next();!F.done;F=N.next()){var X=F.value,$=this._services.get(X.id);if(!$)throw new Error("[createInstance] "+b.name+" depends on UNKNOWN service "+X.id+".");E.push($)}}catch(Q){O={error:Q}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(O)throw O.error}}var Y=M.length>0?M[0].index:y.length;if(y.length!==Y)throw new Error("[createInstance] First service dependency of "+b.name+" at position "+(Y+1)+" conflicts with "+y.length+" static arguments");return new(b.bind.apply(b,x([void 0],P(x(x([],P(y),!1),P(E),!1)),!1)))},k}();A.InstantiationService=v},7866:function(W,A,H){var R=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var E=k.length-1;E>=0;E--)(y=k[E])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},P=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}},x=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(E){y={error:E}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},D=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.LogService=void 0;var j=H(2585),L={debug:j.LogLevelEnum.DEBUG,info:j.LogLevelEnum.INFO,warn:j.LogLevelEnum.WARN,error:j.LogLevelEnum.ERROR,off:j.LogLevelEnum.OFF},v=function(){function k(b){var O=this;this._optionsService=b,this.logLevel=j.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(S){"logLevel"===S&&O._updateLogLevel()})}return k.prototype._updateLogLevel=function(){this.logLevel=L[this._optionsService.rawOptions.logLevel]},k.prototype._evalLazyOptionalParams=function(b){for(var O=0;O<b.length;O++)"function"==typeof b[O]&&(b[O]=b[O]())},k.prototype._log=function(b,O,S){this._evalLazyOptionalParams(S),b.call.apply(b,D([console,"xterm.js: "+O],x(S),!1))},k.prototype.debug=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.DEBUG&&this._log(console.log,b,O)},k.prototype.info=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.INFO&&this._log(console.info,b,O)},k.prototype.warn=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.WARN&&this._log(console.warn,b,O)},k.prototype.error=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.ERROR&&this._log(console.error,b,O)},R([P(0,j.IOptionsService)],k)}();A.LogService=v},7302:function(W,A,H){var R=this&&this.__assign||function(){return R=Object.assign||function(L){for(var v,k=1,b=arguments.length;k<b;k++)for(var O in v=arguments[k])Object.prototype.hasOwnProperty.call(v,O)&&(L[O]=v[O]);return L},R.apply(this,arguments)};Object.defineProperty(A,"__esModule",{value:!0}),A.OptionsService=A.DEFAULT_OPTIONS=A.DEFAULT_BELL_SOUND=void 0;var P=H(8460),x=H(6114);A.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",A.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:A.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:x.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var D=["normal","bold","100","200","300","400","500","600","700","800","900"],j=function(){function L(v){this._onOptionChange=new P.EventEmitter;var k=R({},A.DEFAULT_OPTIONS);for(var b in v)if(b in k)try{var O=v[b];k[b]=this._sanitizeAndValidateOption(b,O)}catch(S){console.error(S)}this.rawOptions=k,this.options=R({},k),this._setupOptions()}return Object.defineProperty(L.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),L.prototype._setupOptions=function(){var v=this,k=function(T){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');return v.rawOptions[T]},b=function(T,M){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');M=v._sanitizeAndValidateOption(T,M),v.rawOptions[T]!==M&&(v.rawOptions[T]=M,v._onOptionChange.fire(T))};for(var O in this.rawOptions){var S={get:k.bind(this,O),set:b.bind(this,O)};Object.defineProperty(this.options,O,S)}},L.prototype.setOption=function(v,k){this.options[v]=k},L.prototype._sanitizeAndValidateOption=function(v,k){switch(v){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":k||(k=A.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof k&&1<=k&&k<=1e3)break;k=D.includes(k)?k:A.DEFAULT_OPTIONS[v];break;case"cursorWidth":k=Math.floor(k);case"lineHeight":case"tabStopWidth":if(k<1)throw new Error(v+" cannot be less than 1, value: "+k);break;case"minimumContrastRatio":k=Math.max(1,Math.min(21,Math.round(10*k)/10));break;case"scrollback":if((k=Math.min(k,4294967295))<0)throw new Error(v+" cannot be less than 0, value: "+k);break;case"fastScrollSensitivity":case"scrollSensitivity":if(k<=0)throw new Error(v+" cannot be less than or equal to 0, value: "+k);case"rows":case"cols":if(!k&&0!==k)throw new Error(v+" must be numeric, value: "+k)}return k},L.prototype.getOption=function(v){return this.options[v]},L}();A.OptionsService=j},8343:function(W,A){function H(R,P,x){P.di$target===P?P.di$dependencies.push({id:R,index:x}):(P.di$dependencies=[{id:R,index:x}],P.di$target=P)}Object.defineProperty(A,"__esModule",{value:!0}),A.createDecorator=A.getServiceDependencies=A.serviceRegistry=void 0,A.serviceRegistry=new Map,A.getServiceDependencies=function(R){return R.di$dependencies||[]},A.createDecorator=function(R){if(A.serviceRegistry.has(R))return A.serviceRegistry.get(R);var P=function x(D,j,L){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");H(x,D,L)};return P.toString=function(){return R},A.serviceRegistry.set(R,P),P}},2585:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.IDecorationService=A.IUnicodeService=A.IOptionsService=A.ILogService=A.LogLevelEnum=A.IInstantiationService=A.IDirtyRowService=A.ICharsetService=A.ICoreService=A.ICoreMouseService=A.IBufferService=void 0;var R,P=H(8343);A.IBufferService=(0,P.createDecorator)("BufferService"),A.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),A.ICoreService=(0,P.createDecorator)("CoreService"),A.ICharsetService=(0,P.createDecorator)("CharsetService"),A.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),A.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(R=A.LogLevelEnum||(A.LogLevelEnum={}))[R.DEBUG=0]="DEBUG",R[R.INFO=1]="INFO",R[R.WARN=2]="WARN",R[R.ERROR=3]="ERROR",R[R.OFF=4]="OFF",A.ILogService=(0,P.createDecorator)("LogService"),A.IOptionsService=(0,P.createDecorator)("OptionsService"),A.IUnicodeService=(0,P.createDecorator)("UnicodeService"),A.IDecorationService=(0,P.createDecorator)("DecorationService")},1480:function(W,A,H){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeService=void 0;var R=H(8460),P=H(225),x=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new R.EventEmitter;var j=new P.UnicodeV6;this.register(j),this._active=j.version,this._activeProvider=j}return Object.defineProperty(D.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeVersion",{get:function(){return this._active},set:function(L){if(!this._providers[L])throw new Error('unknown Unicode version "'+L+'"');this._active=L,this._activeProvider=this._providers[L],this._onChange.fire(L)},enumerable:!1,configurable:!0}),D.prototype.register=function(j){this._providers[j.version]=j},D.prototype.wcwidth=function(j){return this._activeProvider.wcwidth(j)},D.prototype.getStringCellWidth=function(j){for(var L=0,v=j.length,k=0;k<v;++k){var b=j.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=v)return L+this.wcwidth(b);var O=j.charCodeAt(k);56320<=O&&O<=57343?b=1024*(b-55296)+O-56320+65536:L+=this.wcwidth(O)}L+=this.wcwidth(b)}return L},D}();A.UnicodeService=x}},m={};return function G(W){var A=m[W];if(void 0!==A)return A.exports;var H=m[W]={exports:{}};return K[W].call(H.exports,H,H.exports,G),H.exports}(4389)}()},1777:function(Ae,K,m){"use strict";m.d(K,{F4:function(){return k},IO:function(){return T},LC:function(){return H},SB:function(){return v},X$:function(){return P},ZE:function(){return F},ZN:function(){return N},_j:function(){return A},eR:function(){return b},jt:function(){return x},k1:function(){return X},l3:function(){return R},oB:function(){return L},pV:function(){return S},ru:function(){return D},vP:function(){return j}});var G=m(3144),W=m(5671),A=(0,G.Z)(function $(){(0,W.Z)(this,$)}),H=(0,G.Z)(function $(){(0,W.Z)(this,$)}),R="*";function P($,Y){return{type:7,name:$,definitions:Y,options:{}}}function x($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:Y,timings:$}}function D($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:$,options:Y}}function j($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:$,options:Y}}function L($){return{type:6,styles:$,offset:null}}function v($,Y,Q){return{type:0,name:$,styles:Y,options:Q}}function k($){return{type:5,steps:$}}function b($,Y){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:$,animation:Y,options:Q}}function S(){var $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:$}}function T($,Y){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:$,animation:Y,options:Q}}function E($){Promise.resolve().then($)}var N=function(){function $(){var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Y+Q}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"onStart",value:function(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var Q=this;E(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(be){return be()}),ne.length=0}}]),$}(),F=function(){function $(Y){var Q=this;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Y;var ne=0,be=0,fe=0,de=this.players.length;0==de?E(function(){return Q._onFinish()}):this.players.forEach(function(le){le.onDone(function(){++ne==de&&Q._onFinish()}),le.onDestroy(function(){++be==de&&Q._onDestroy()}),le.onStart(function(){++fe==de&&Q._onStart()})}),this.totalTime=this.players.reduce(function(le,ce){return Math.max(le,ce.totalTime)},0)}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var ne=Q*this.totalTime;this.players.forEach(function(be){var fe=be.totalTime?Math.min(1,ne/be.totalTime):1;be.setPosition(fe)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(ne,be){return null===ne||be.totalTime>ne.totalTime?be:ne},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(be){return be()}),ne.length=0}}]),$}(),X="!"},5664:function(Ae,K,m){"use strict";m.d(K,{$s:function(){return Tt},Em:function(){return Ft},Kd:function(){return jt},X6:function(){return Xt},ic:function(){return nt},kH:function(){return hn},qV:function(){return Dt},qm:function(){return et},rt:function(){return St},s1:function(){return $t},tE:function(){return En},yG:function(){return Je}});var G=m(7685),W=m(7326),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(5671),D=m(3144),j=m(9808),L=m(5e3),v=m(925),k=m(8929),b=m(4096),O=m(591),S=m(1086),y=m(1159),T=m(2994),M=m(13),E=m(9664),N=m(4850),F=m(2986),X=m(1307),$=m(5778),Y=m(7625),Q=m(3191),ne=m(7144),be=m(5113);function ce(ze,Ke){return(ze.getAttribute(Ke)||"").match(/\S+/g)||[]}var je="cdk-describedby-message",st="cdk-describedby-host",Mt=0,Tt=function(){function ze(Ke,Re){(0,x.Z)(this,ze),this._platform=Re,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(Mt++),this._document=Ke,this._id=(0,L.f3M)(L.AFp)+"-"+Mt++}return(0,D.Z)(ze,[{key:"describe",value:function(Re,qe,vt){if(this._canBeDescribed(Re,qe)){var dn=Et(qe,vt);"string"!=typeof qe?(Lt(qe,this._id),this._messageRegistry.set(dn,{messageElement:qe,referenceCount:0})):this._messageRegistry.has(dn)||this._createMessageElement(qe,vt),this._isElementDescribedByMessage(Re,dn)||this._addMessageReference(Re,dn)}}},{key:"removeDescription",value:function(Re,qe,vt){var dn;if(qe&&this._isElementNode(Re)){var Hn=Et(qe,vt);if(this._isElementDescribedByMessage(Re,Hn)&&this._removeMessageReference(Re,Hn),"string"==typeof qe){var Yt=this._messageRegistry.get(Hn);Yt&&0===Yt.referenceCount&&this._deleteMessageElement(Hn)}0===(null===(dn=this._messagesContainer)||void 0===dn?void 0:dn.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Re,qe=this._document.querySelectorAll("[".concat(st,'="').concat(this._id,'"]')),vt=0;vt<qe.length;vt++)this._removeCdkDescribedByReferenceIds(qe[vt]),qe[vt].removeAttribute(st);null===(Re=this._messagesContainer)||void 0===Re||Re.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Re,qe){var vt=this._document.createElement("div");Lt(vt,this._id),vt.textContent=Re,qe&&vt.setAttribute("role",qe),this._createMessagesContainer(),this._messagesContainer.appendChild(vt),this._messageRegistry.set(Et(Re,qe),{messageElement:vt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Re){var qe,vt;null===(vt=null===(qe=this._messageRegistry.get(Re))||void 0===qe?void 0:qe.messageElement)||void 0===vt||vt.remove(),this._messageRegistry.delete(Re)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Re="cdk-describedby-message-container",qe=this._document.querySelectorAll(".".concat(Re,'[platform="server"]')),vt=0;vt<qe.length;vt++)qe[vt].remove();var dn=this._document.createElement("div");dn.style.visibility="hidden",dn.classList.add(Re),dn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&dn.setAttribute("platform","server"),this._document.body.appendChild(dn),this._messagesContainer=dn}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Re){var qe=ce(Re,"aria-describedby").filter(function(vt){return 0!=vt.indexOf(je)});Re.setAttribute("aria-describedby",qe.join(" "))}},{key:"_addMessageReference",value:function(Re,qe){var vt=this._messageRegistry.get(qe);(function de(ze,Ke,Re){var qe=ce(ze,Ke);qe.some(function(vt){return vt.trim()==Re.trim()})||(qe.push(Re.trim()),ze.setAttribute(Ke,qe.join(" ")))})(Re,"aria-describedby",vt.messageElement.id),Re.setAttribute(st,this._id),vt.referenceCount++}},{key:"_removeMessageReference",value:function(Re,qe){var vt=this._messageRegistry.get(qe);vt.referenceCount--,function le(ze,Ke,Re){var vt=ce(ze,Ke).filter(function(dn){return dn!=Re.trim()});vt.length?ze.setAttribute(Ke,vt.join(" ")):ze.removeAttribute(Ke)}(Re,"aria-describedby",vt.messageElement.id),Re.removeAttribute(st)}},{key:"_isElementDescribedByMessage",value:function(Re,qe){var vt=ce(Re,"aria-describedby"),dn=this._messageRegistry.get(qe),Hn=dn&&dn.messageElement.id;return!!Hn&&-1!=vt.indexOf(Hn)}},{key:"_canBeDescribed",value:function(Re,qe){if(!this._isElementNode(Re))return!1;if(qe&&"object"==typeof qe)return!0;var vt=null==qe?"":"".concat(qe).trim(),dn=Re.getAttribute("aria-label");return!!vt&&(!dn||dn.trim()!==vt)}},{key:"_isElementNode",value:function(Re){return Re.nodeType===this._document.ELEMENT_NODE}}]),ze}();function Et(ze,Ke){return"string"==typeof ze?"".concat(Ke||"","/").concat(ze):ze}function Lt(ze,Ke){ze.id||(ze.id="".concat(je,"-").concat(Ke,"-").concat(Mt++))}Tt.\u0275fac=function(Ke){return new(Ke||Tt)(L.LFG(j.K0),L.LFG(v.t4))},Tt.\u0275prov=L.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"});var Ze=function(){function ze(Ke){var Re=this;(0,x.Z)(this,ze),this._items=Ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k.xQ,this._typeaheadSubscription=b.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(qe){return qe.disabled},this._pressedLetters=[],this.tabOut=new k.xQ,this.change=new k.xQ,Ke instanceof L.n_E&&Ke.changes.subscribe(function(qe){if(Re._activeItem){var dn=qe.toArray().indexOf(Re._activeItem);dn>-1&&dn!==Re._activeItemIndex&&(Re._activeItemIndex=dn)}})}return(0,D.Z)(ze,[{key:"skipPredicate",value:function(Re){return this._skipPredicateFn=Re,this}},{key:"withWrap",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Re,this}},{key:"withVerticalOrientation",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Re,this}},{key:"withHorizontalOrientation",value:function(Re){return this._horizontal=Re,this}},{key:"withAllowedModifierKeys",value:function(Re){return this._allowedModifierKeys=Re,this}},{key:"withTypeAhead",value:function(){var Re=this,qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.b)(function(vt){return Re._pressedLetters.push(vt)}),(0,M.b)(qe),(0,E.h)(function(){return Re._pressedLetters.length>0}),(0,N.U)(function(){return Re._pressedLetters.join("")})).subscribe(function(vt){for(var dn=Re._getItemsArray(),Hn=1;Hn<dn.length+1;Hn++){var Yt=(Re._activeItemIndex+Hn)%dn.length,kt=dn[Yt];if(!Re._skipPredicateFn(kt)&&0===kt.getLabel().toUpperCase().trim().indexOf(vt)){Re.setActiveItem(Yt);break}}Re._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Re,this}},{key:"setActiveItem",value:function(Re){var qe=this._activeItem;this.updateActiveItem(Re),this._activeItem!==qe&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Re){var qe=this,vt=Re.keyCode,Hn=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Yt){return!Re[Yt]||qe._allowedModifierKeys.indexOf(Yt)>-1});switch(vt){case y.Mf:return void this.tabOut.next();case y.JH:if(this._vertical&&Hn){this.setNextItemActive();break}return;case y.LH:if(this._vertical&&Hn){this.setPreviousItemActive();break}return;case y.SV:if(this._horizontal&&Hn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case y.oh:if(this._horizontal&&Hn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case y.Sd:if(this._homeAndEnd&&Hn){this.setFirstItemActive();break}return;case y.uR:if(this._homeAndEnd&&Hn){this.setLastItemActive();break}return;default:return void((Hn||(0,y.Vb)(Re,"shiftKey"))&&(Re.key&&1===Re.key.length?this._letterKeyStream.next(Re.key.toLocaleUpperCase()):(vt>=y.A&&vt<=y.Z||vt>=y.xE&&vt<=y.aO)&&this._letterKeyStream.next(String.fromCharCode(vt))))}this._pressedLetters=[],Re.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Re){var qe=this._getItemsArray(),vt="number"==typeof Re?Re:qe.indexOf(Re),dn=qe[vt];this._activeItem=null==dn?null:dn,this._activeItemIndex=vt}},{key:"_setActiveItemByDelta",value:function(Re){this._wrap?this._setActiveInWrapMode(Re):this._setActiveInDefaultMode(Re)}},{key:"_setActiveInWrapMode",value:function(Re){for(var qe=this._getItemsArray(),vt=1;vt<=qe.length;vt++){var dn=(this._activeItemIndex+Re*vt+qe.length)%qe.length,Hn=qe[dn];if(!this._skipPredicateFn(Hn))return void this.setActiveItem(dn)}}},{key:"_setActiveInDefaultMode",value:function(Re){this._setActiveItemByIndex(this._activeItemIndex+Re,Re)}},{key:"_setActiveItemByIndex",value:function(Re,qe){var vt=this._getItemsArray();if(vt[Re]){for(;this._skipPredicateFn(vt[Re]);)if(!vt[Re+=qe])return;this.setActiveItem(Re)}}},{key:"_getItemsArray",value:function(){return this._items instanceof L.n_E?this._items.toArray():this._items}}]),ze}(),$t=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(){return(0,x.Z)(this,Re),Ke.apply(this,arguments)}return(0,D.Z)(Re,[{key:"setActiveItem",value:function(vt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,A.Z)((0,H.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Re}(Ze),Ft=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(){var qe;return(0,x.Z)(this,Re),(qe=Ke.apply(this,arguments))._origin="program",qe}return(0,D.Z)(Re,[{key:"setFocusOrigin",value:function(vt){return this._origin=vt,this}},{key:"setActiveItem",value:function(vt){(0,A.Z)((0,H.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Re}(Ze),nt=function(){function ze(Ke){(0,x.Z)(this,ze),this._platform=Ke}return(0,D.Z)(ze,[{key:"isDisabled",value:function(Re){return Re.hasAttribute("disabled")}},{key:"isVisible",value:function(Re){return function _t(ze){return!!(ze.offsetWidth||ze.offsetHeight||"function"==typeof ze.getClientRects&&ze.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}},{key:"isTabbable",value:function(Re){if(!this._platform.isBrowser)return!1;var qe=function Ot(ze){try{return ze.frameElement}catch(Ke){return null}}(function ge(ze){return ze.ownerDocument&&ze.ownerDocument.defaultView||window}(Re));if(qe&&(-1===U(qe)||!this.isVisible(qe)))return!1;var vt=Re.nodeName.toLowerCase(),dn=U(Re);return Re.hasAttribute("contenteditable")?-1!==dn:!("iframe"===vt||"object"===vt||this._platform.WEBKIT&&this._platform.IOS&&!function tt(ze){var Ke=ze.nodeName.toLowerCase(),Re="input"===Ke&&ze.type;return"text"===Re||"password"===Re||"select"===Ke||"textarea"===Ke}(Re))&&("audio"===vt?!!Re.hasAttribute("controls")&&-1!==dn:"video"===vt?-1!==dn&&(null!==dn||(this._platform.FIREFOX||Re.hasAttribute("controls"))):Re.tabIndex>=0)}},{key:"isFocusable",value:function(Re,qe){return function Ye(ze){return!function We(ze){return function dt(ze){return"input"==ze.nodeName.toLowerCase()}(ze)&&"hidden"==ze.type}(ze)&&(function Ct(ze){var Ke=ze.nodeName.toLowerCase();return"input"===Ke||"select"===Ke||"button"===Ke||"textarea"===Ke}(ze)||function ut(ze){return function Ut(ze){return"a"==ze.nodeName.toLowerCase()}(ze)&&ze.hasAttribute("href")}(ze)||ze.hasAttribute("contenteditable")||B(ze))}(Re)&&!this.isDisabled(Re)&&((null==qe?void 0:qe.ignoreVisibility)||this.isVisible(Re))}}]),ze}();function B(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;var Ke=ze.getAttribute("tabindex");return!(!Ke||isNaN(parseInt(Ke,10)))}function U(ze){if(!B(ze))return null;var Ke=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(Ke)?-1:Ke}nt.\u0275fac=function(Ke){return new(Ke||nt)(L.LFG(v.t4))},nt.\u0275prov=L.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"});var t=function(){function ze(Ke,Re,qe,vt){var dn=this,Hn=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,x.Z)(this,ze),this._element=Ke,this._checker=Re,this._ngZone=qe,this._document=vt,this._hasAttached=!1,this.startAnchorListener=function(){return dn.focusLastTabbableElement()},this.endAnchorListener=function(){return dn.focusFirstTabbableElement()},this._enabled=!0,Hn||this.attachAnchors()}return(0,D.Z)(ze,[{key:"enabled",get:function(){return this._enabled},set:function(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"destroy",value:function(){var Re=this._startAnchor,qe=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),qe&&(qe.removeEventListener("focus",this.endAnchorListener),qe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Re=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Re._startAnchor||(Re._startAnchor=Re._createAnchor(),Re._startAnchor.addEventListener("focus",Re.startAnchorListener)),Re._endAnchor||(Re._endAnchor=Re._createAnchor(),Re._endAnchor.addEventListener("focus",Re.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusInitialElement(Re))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusFirstTabbableElement(Re))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusLastTabbableElement(Re))})})}},{key:"_getRegionBoundary",value:function(Re){var qe=this._element.querySelectorAll("[cdk-focus-region-".concat(Re,"], ")+"[cdkFocusRegion".concat(Re,"], ")+"[cdk-focus-".concat(Re,"]"));return"start"==Re?qe.length?qe[0]:this._getFirstTabbableElement(this._element):qe.length?qe[qe.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Re){var qe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(qe){if(!this._checker.isFocusable(qe)){var vt=this._getFirstTabbableElement(qe);return null==vt||vt.focus(Re),!!vt}return qe.focus(Re),!0}return this.focusFirstTabbableElement(Re)}},{key:"focusFirstTabbableElement",value:function(Re){var qe=this._getRegionBoundary("start");return qe&&qe.focus(Re),!!qe}},{key:"focusLastTabbableElement",value:function(Re){var qe=this._getRegionBoundary("end");return qe&&qe.focus(Re),!!qe}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var qe=Re.children,vt=0;vt<qe.length;vt++){var dn=qe[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(qe[vt]):null;if(dn)return dn}return null}},{key:"_getLastTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var qe=Re.children,vt=qe.length-1;vt>=0;vt--){var dn=qe[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(qe[vt]):null;if(dn)return dn}return null}},{key:"_createAnchor",value:function(){var Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}},{key:"_toggleAnchorTabIndex",value:function(Re,qe){Re?qe.setAttribute("tabindex","0"):qe.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"_executeOnStable",value:function(Re){this._ngZone.isStable?Re():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(Re)}}]),ze}(),Dt=function(){function ze(Ke,Re,qe){(0,x.Z)(this,ze),this._checker=Ke,this._ngZone=Re,this._document=qe}return(0,D.Z)(ze,[{key:"create",value:function(Re){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new t(Re,this._checker,this._ngZone,this._document,qe)}}]),ze}();Dt.\u0275fac=function(Ke){return new(Ke||Dt)(L.LFG(nt),L.LFG(L.R0b),L.LFG(j.K0))},Dt.\u0275prov=L.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"});var Zt=function(){function ze(Ke,Re,qe){(0,x.Z)(this,ze),this._elementRef=Ke,this._focusTrapFactory=Re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,D.Z)(ze,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Re){this.focusTrap.enabled=(0,Q.Ig)(Re)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Re){this._autoCapture=(0,Q.Ig)(Re)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(Re){var qe=Re.autoCapture;qe&&!qe.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),ze}();Zt.\u0275fac=function(Ke){return new(Ke||Zt)(L.Y36(L.SBq),L.Y36(Dt),L.Y36(j.K0))},Zt.\u0275dir=L.lG2({type:Zt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[L.TTD]});var zt=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(qe,vt,dn,Hn,Yt,kt,$e){var gt;return(0,x.Z)(this,Re),(gt=Ke.call(this,qe,vt,dn,Hn,$e.defer))._focusTrapManager=Yt,gt._inertStrategy=kt,gt._focusTrapManager.register((0,W.Z)(gt)),gt}return(0,D.Z)(Re,[{key:"enabled",get:function(){return this._enabled},set:function(vt){this._enabled=vt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,A.Z)((0,H.Z)(Re.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}]),Re}(t),sn=new L.OlP("FOCUS_TRAP_INERT_STRATEGY"),qt=function(){function ze(){(0,x.Z)(this,ze),this._listener=null}return(0,D.Z)(ze,[{key:"preventFocus",value:function(Re){var qe=this;this._listener&&Re._document.removeEventListener("focus",this._listener,!0),this._listener=function(vt){return qe._trapFocus(Re,vt)},Re._ngZone.runOutsideAngular(function(){Re._document.addEventListener("focus",qe._listener,!0)})}},{key:"allowFocus",value:function(Re){!this._listener||(Re._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Re,qe){var vt,dn=qe.target,Hn=Re._element;dn&&!Hn.contains(dn)&&(null===(vt=dn.closest)||void 0===vt||!vt.call(dn,"div.cdk-overlay-pane"))&&setTimeout(function(){Re.enabled&&!Hn.contains(Re._document.activeElement)&&Re.focusFirstTabbableElement()})}}]),ze}(),yn=function(){function ze(){(0,x.Z)(this,ze),this._focusTrapStack=[]}return(0,D.Z)(ze,[{key:"register",value:function(Re){this._focusTrapStack=this._focusTrapStack.filter(function(vt){return vt!==Re});var qe=this._focusTrapStack;qe.length&&qe[qe.length-1]._disable(),qe.push(Re),Re._enable()}},{key:"deregister",value:function(Re){Re._disable();var qe=this._focusTrapStack,vt=qe.indexOf(Re);-1!==vt&&(qe.splice(vt,1),qe.length&&qe[qe.length-1]._enable())}}]),ze}();yn.\u0275fac=function(Ke){return new(Ke||yn)},yn.\u0275prov=L.Yz7({token:yn,factory:yn.\u0275fac,providedIn:"root"});var Kt=function(){function ze(Ke,Re,qe,vt,dn){(0,x.Z)(this,ze),this._checker=Ke,this._ngZone=Re,this._focusTrapManager=qe,this._document=vt,this._inertStrategy=dn||new qt}return(0,D.Z)(ze,[{key:"create",value:function(Re){var vt,qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return vt="boolean"==typeof qe?{defer:qe}:qe,new zt(Re,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,vt)}}]),ze}();function Xt(ze){return 0===ze.buttons||0===ze.offsetX&&0===ze.offsetY}function Je(ze){var Ke=ze.touches&&ze.touches[0]||ze.changedTouches&&ze.changedTouches[0];return!(!Ke||-1!==Ke.identifier||null!=Ke.radiusX&&1!==Ke.radiusX||null!=Ke.radiusY&&1!==Ke.radiusY)}Kt.\u0275fac=function(Ke){return new(Ke||Kt)(L.LFG(nt),L.LFG(L.R0b),L.LFG(yn),L.LFG(j.K0),L.LFG(sn,8))},Kt.\u0275prov=L.Yz7({token:Kt,factory:Kt.\u0275fac,providedIn:"root"});var Be=new L.OlP("cdk-input-modality-detector-options"),te={ignoreKeys:[y.zL,y.jx,y.b2,y.MW,y.JU]},pe=(0,v.i$)({passive:!0,capture:!0}),Ne=function(){function ze(Ke,Re,qe,vt){var dn=this;(0,x.Z)(this,ze),this._platform=Ke,this._mostRecentTarget=null,this._modality=new O.X(null),this._lastTouchMs=0,this._onKeydown=function(Hn){var Yt,kt;null!==(kt=null===(Yt=dn._options)||void 0===Yt?void 0:Yt.ignoreKeys)&&void 0!==kt&&kt.some(function($e){return $e===Hn.keyCode})||(dn._modality.next("keyboard"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._onMousedown=function(Hn){Date.now()-dn._lastTouchMs<650||(dn._modality.next(Xt(Hn)?"keyboard":"mouse"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._onTouchstart=function(Hn){Je(Hn)?dn._modality.next("keyboard"):(dn._lastTouchMs=Date.now(),dn._modality.next("touch"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._options=Object.assign(Object.assign({},te),vt),this.modalityDetected=this._modality.pipe((0,X.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),Ke.isBrowser&&Re.runOutsideAngular(function(){qe.addEventListener("keydown",dn._onKeydown,pe),qe.addEventListener("mousedown",dn._onMousedown,pe),qe.addEventListener("touchstart",dn._onTouchstart,pe)})}return(0,D.Z)(ze,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,pe),document.removeEventListener("mousedown",this._onMousedown,pe),document.removeEventListener("touchstart",this._onTouchstart,pe))}}]),ze}();Ne.\u0275fac=function(Ke){return new(Ke||Ne)(L.LFG(v.t4),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Be,8))},Ne.\u0275prov=L.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"});var lt=new L.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ct(){return null}});var Bt=new L.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jt=function(){function ze(Ke,Re,qe,vt){(0,x.Z)(this,ze),this._ngZone=Re,this._defaultOptions=vt,this._document=qe,this._liveElement=Ke||this._createLiveElement()}return(0,D.Z)(ze,[{key:"announce",value:function(Re){for(var dn,Hn,qe=this,vt=this._defaultOptions,Yt=arguments.length,kt=new Array(Yt>1?Yt-1:0),$e=1;$e<Yt;$e++)kt[$e-1]=arguments[$e];return 1===kt.length&&"number"==typeof kt[0]?Hn=kt[0]:(dn=kt[0],Hn=kt[1]),this.clear(),clearTimeout(this._previousTimeout),dn||(dn=vt&&vt.politeness?vt.politeness:"polite"),null==Hn&&vt&&(Hn=vt.duration),this._liveElement.setAttribute("aria-live",dn),this._ngZone.runOutsideAngular(function(){return qe._currentPromise||(qe._currentPromise=new Promise(function(gt){return qe._currentResolve=gt})),clearTimeout(qe._previousTimeout),qe._previousTimeout=setTimeout(function(){qe._liveElement.textContent=Re,"number"==typeof Hn&&(qe._previousTimeout=setTimeout(function(){return qe.clear()},Hn)),qe._currentResolve(),qe._currentPromise=qe._currentResolve=void 0},100),qe._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Re,qe;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(qe=this._currentResolve)||void 0===qe||qe.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Re="cdk-live-announcer-element",qe=this._document.getElementsByClassName(Re),vt=this._document.createElement("div"),dn=0;dn<qe.length;dn++)qe[dn].remove();return vt.classList.add(Re),vt.classList.add("cdk-visually-hidden"),vt.setAttribute("aria-atomic","true"),vt.setAttribute("aria-live","polite"),this._document.body.appendChild(vt),vt}}]),ze}();jt.\u0275fac=function(Ke){return new(Ke||jt)(L.LFG(lt,8),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Bt,8))},jt.\u0275prov=L.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var on=function(){function ze(Ke,Re,qe,vt){(0,x.Z)(this,ze),this._elementRef=Ke,this._liveAnnouncer=Re,this._contentObserver=qe,this._ngZone=vt,this._politeness="polite"}return(0,D.Z)(ze,[{key:"politeness",get:function(){return this._politeness},set:function(Re){var qe=this;this._politeness="off"===Re||"assertive"===Re?Re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return qe._contentObserver.observe(qe._elementRef).subscribe(function(){var vt=qe._elementRef.nativeElement.textContent;vt!==qe._previousAnnouncedText&&(qe._liveAnnouncer.announce(vt,qe._politeness,qe.duration),qe._previousAnnouncedText=vt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),ze}();on.\u0275fac=function(Ke){return new(Ke||on)(L.Y36(L.SBq),L.Y36(jt),L.Y36(ne.yq),L.Y36(L.R0b))},on.\u0275dir=L.lG2({type:on,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});var vn=new L.OlP("cdk-focus-monitor-default-options"),ln=(0,v.i$)({passive:!0,capture:!0}),En=function(){function ze(Ke,Re,qe,vt,dn){var Hn=this;(0,x.Z)(this,ze),this._ngZone=Ke,this._platform=Re,this._inputModalityDetector=qe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){Hn._windowFocused=!0,Hn._windowFocusTimeoutId=window.setTimeout(function(){return Hn._windowFocused=!1})},this._stopInputModalityDetector=new k.xQ,this._rootNodeFocusAndBlurListener=function(Yt){for(var $e=(0,v.sA)(Yt);$e;$e=$e.parentElement)"focus"===Yt.type?Hn._onFocus(Yt,$e):Hn._onBlur(Yt,$e)},this._document=vt,this._detectionMode=(null==dn?void 0:dn.detectionMode)||0}return(0,D.Z)(ze,[{key:"monitor",value:function(Re){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1],vt=(0,Q.fI)(Re);if(!this._platform.isBrowser||1!==vt.nodeType)return(0,S.of)(null);var dn=(0,v.kV)(vt)||this._getDocument(),Hn=this._elementInfo.get(vt);if(Hn)return qe&&(Hn.checkChildren=!0),Hn.subject;var Yt={checkChildren:qe,subject:new k.xQ,rootNode:dn};return this._elementInfo.set(vt,Yt),this._registerGlobalListeners(Yt),Yt.subject}},{key:"stopMonitoring",value:function(Re){var qe=(0,Q.fI)(Re),vt=this._elementInfo.get(qe);vt&&(vt.subject.complete(),this._setClasses(qe),this._elementInfo.delete(qe),this._removeGlobalListeners(vt))}},{key:"focusVia",value:function(Re,qe,vt){var dn=this,Hn=(0,Q.fI)(Re);Hn===this._getDocument().activeElement?this._getClosestElementsInfo(Hn).forEach(function(kt){var $e=(0,G.Z)(kt,2),gt=$e[0],yt=$e[1];return dn._originChanged(gt,qe,yt)}):(this._setOrigin(qe),"function"==typeof Hn.focus&&Hn.focus(vt))}},{key:"ngOnDestroy",value:function(){var Re=this;this._elementInfo.forEach(function(qe,vt){return Re.stopMonitoring(vt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}},{key:"_shouldBeAttributedToTouch",value:function(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Re,qe){Re.classList.toggle("cdk-focused",!!qe),Re.classList.toggle("cdk-touch-focused","touch"===qe),Re.classList.toggle("cdk-keyboard-focused","keyboard"===qe),Re.classList.toggle("cdk-mouse-focused","mouse"===qe),Re.classList.toggle("cdk-program-focused","program"===qe)}},{key:"_setOrigin",value:function(Re){var qe=this,vt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(qe._origin=Re,qe._originFromTouchInteraction="touch"===Re&&vt,0===qe._detectionMode){clearTimeout(qe._originTimeoutId);var dn=qe._originFromTouchInteraction?650:1;qe._originTimeoutId=setTimeout(function(){return qe._origin=null},dn)}})}},{key:"_onFocus",value:function(Re,qe){var vt=this._elementInfo.get(qe),dn=(0,v.sA)(Re);!vt||!vt.checkChildren&&qe!==dn||this._originChanged(qe,this._getFocusOrigin(dn),vt)}},{key:"_onBlur",value:function(Re,qe){var vt=this._elementInfo.get(qe);!vt||vt.checkChildren&&Re.relatedTarget instanceof Node&&qe.contains(Re.relatedTarget)||(this._setClasses(qe),this._emitOrigin(vt,null))}},{key:"_emitOrigin",value:function(Re,qe){Re.subject.observers.length&&this._ngZone.run(function(){return Re.subject.next(qe)})}},{key:"_registerGlobalListeners",value:function(Re){var qe=this;if(this._platform.isBrowser){var vt=Re.rootNode,dn=this._rootNodeFocusListenerCount.get(vt)||0;dn||this._ngZone.runOutsideAngular(function(){vt.addEventListener("focus",qe._rootNodeFocusAndBlurListener,ln),vt.addEventListener("blur",qe._rootNodeFocusAndBlurListener,ln)}),this._rootNodeFocusListenerCount.set(vt,dn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){qe._getWindow().addEventListener("focus",qe._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Y.R)(this._stopInputModalityDetector)).subscribe(function(Hn){qe._setOrigin(Hn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Re){var qe=Re.rootNode;if(this._rootNodeFocusListenerCount.has(qe)){var vt=this._rootNodeFocusListenerCount.get(qe);vt>1?this._rootNodeFocusListenerCount.set(qe,vt-1):(qe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ln),qe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ln),this._rootNodeFocusListenerCount.delete(qe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Re,qe,vt){this._setClasses(Re,qe),this._emitOrigin(vt,qe),this._lastFocusOrigin=qe}},{key:"_getClosestElementsInfo",value:function(Re){var qe=[];return this._elementInfo.forEach(function(vt,dn){(dn===Re||vt.checkChildren&&dn.contains(Re))&&qe.push([dn,vt])}),qe}},{key:"_isLastInteractionFromInputLabel",value:function(Re){var qe=this._inputModalityDetector,vt=qe._mostRecentTarget;if("mouse"!==qe.mostRecentModality||!vt||vt===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;var Hn=Re.labels;if(Hn)for(var Yt=0;Yt<Hn.length;Yt++)if(Hn[Yt].contains(vt))return!0;return!1}}]),ze}();En.\u0275fac=function(Ke){return new(Ke||En)(L.LFG(L.R0b),L.LFG(v.t4),L.LFG(Ne),L.LFG(j.K0,8),L.LFG(vn,8))},En.\u0275prov=L.Yz7({token:En,factory:En.\u0275fac,providedIn:"root"});var hn=function(){function ze(Ke,Re){(0,x.Z)(this,ze),this._elementRef=Ke,this._focusMonitor=Re,this._focusOrigin=null,this.cdkFocusChange=new L.vpe}return(0,D.Z)(ze,[{key:"focusOrigin",get:function(){return this._focusOrigin}},{key:"ngAfterViewInit",value:function(){var Re=this,qe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(qe,1===qe.nodeType&&qe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(vt){Re._focusOrigin=vt,Re.cdkFocusChange.emit(vt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),ze}();hn.\u0275fac=function(Ke){return new(Ke||hn)(L.Y36(L.SBq),L.Y36(En))},hn.\u0275dir=L.lG2({type:hn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var mn="cdk-high-contrast-black-on-white",At="cdk-high-contrast-white-on-black",xt="cdk-high-contrast-active",et=function(){function ze(Ke,Re){var qe=this;(0,x.Z)(this,ze),this._platform=Ke,this._document=Re,this._breakpointSubscription=(0,L.f3M)(be.Yg).observe("(forced-colors: active)").subscribe(function(){qe._hasCheckedHighContrastMode&&(qe._hasCheckedHighContrastMode=!1,qe._applyBodyHighContrastModeCssClasses())})}return(0,D.Z)(ze,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);var qe=this._document.defaultView||window,vt=qe&&qe.getComputedStyle?qe.getComputedStyle(Re):null,dn=(vt&&vt.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),dn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe()}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Re=this._document.body.classList;Re.remove(xt,mn,At),this._hasCheckedHighContrastMode=!0;var qe=this.getHighContrastMode();1===qe?Re.add(xt,mn):2===qe&&Re.add(xt,At)}}}]),ze}();et.\u0275fac=function(Ke){return new(Ke||et)(L.LFG(v.t4),L.LFG(j.K0))},et.\u0275prov=L.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"});var St=(0,D.Z)(function ze(Ke){(0,x.Z)(this,ze),Ke._applyBodyHighContrastModeCssClasses()});St.\u0275fac=function(Ke){return new(Ke||St)(L.LFG(et))},St.\u0275mod=L.oAB({type:St}),St.\u0275inj=L.cJS({imports:[ne.Q8]})},226:function(Ae,K,m){"use strict";m.d(K,{Is:function(){return j},vT:function(){return v}});var G=m(5671),W=m(3144),A=m(5e3),H=m(9808),R=new A.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,A.f3M)(H.K0)}});var x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(k){var b=(null==k?void 0:k.toLowerCase())||"";return"auto"===b&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?x.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}var j=function(){function k(b){if((0,G.Z)(this,k),this.value="ltr",this.change=new A.vpe,b){var O=b.body?b.body.dir:null,S=b.documentElement?b.documentElement.dir:null;this.value=D(O||S||"ltr")}}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),k}();j.\u0275fac=function(b){return new(b||j)(A.LFG(R,8))},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(){(0,G.Z)(this,k),this._dir="ltr",this._isInitialized=!1,this.change=new A.vpe}return(0,W.Z)(k,[{key:"dir",get:function(){return this._dir},set:function(O){var S=this._dir;this._dir=D(O),this._rawDir=O,S!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}}]),k}();L.\u0275fac=function(b){return new(b||L)},L.\u0275dir=A.lG2({type:L,selectors:[["","dir",""]],hostVars:1,hostBindings:function(b,O){2&b&&A.uIk("dir",O._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[A._Bn([{provide:j,useExisting:L}])]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({})},3191:function(Ae,K,m){"use strict";m.d(K,{Eq:function(){return P},HM:function(){return x},Ig:function(){return A},du:function(){return j},fI:function(){return D},su:function(){return H},t6:function(){return R}});var G=m(7762),W=m(5e3);function A(L){return null!=L&&"false"!=="".concat(L)}function H(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R(L)?Number(L):v}function R(L){return!isNaN(parseFloat(L))&&!isNaN(Number(L))}function P(L){return Array.isArray(L)?L:[L]}function x(L){return null==L?"":"string"==typeof L?L:"".concat(L,"px")}function D(L){return L instanceof W.SBq?L.nativeElement:L}function j(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,k=[];if(null!=L){var S,b=Array.isArray(L)?L:"".concat(L).split(v),O=(0,G.Z)(b);try{for(O.s();!(S=O.n()).done;){var y=S.value,T="".concat(y).trim();T&&k.push(T)}}catch(M){O.e(M)}finally{O.f()}}return k}},449:function(Ae,K,m){"use strict";m.d(K,{A8:function(){return M},Ov:function(){return y},P3:function(){return b},Z9:function(){return k},eX:function(){return S},k:function(){return E},o2:function(){return v},yy:function(){return O}});var G=m(7762),W=m(136),A=m(9388),H=m(3144),R=m(5671),P=m(1762),x=m(4715),D=m(1086),j=m(8929),L=m(5e3),v=(0,H.Z)(function N(){(0,R.Z)(this,N)});function k(N){return N&&"function"==typeof N.connect&&!(N instanceof P.c)}var b=function(N){(0,W.Z)(X,N);var F=(0,A.Z)(X);function X($){var Y;return(0,R.Z)(this,X),(Y=F.call(this))._data=$,Y}return(0,H.Z)(X,[{key:"connect",value:function(){return(0,x.b)(this._data)?this._data:(0,D.of)(this._data)}},{key:"disconnect",value:function(){}}]),X}(v),O=function(){function N(){(0,R.Z)(this,N)}return(0,H.Z)(N,[{key:"applyChanges",value:function(X,$,Y,Q,ne){X.forEachOperation(function(be,fe,de){var le,ce;if(null==be.previousIndex){var me=Y(be,fe,de);le=$.createEmbeddedView(me.templateRef,me.context,me.index),ce=1}else null==de?($.remove(fe),ce=3):(le=$.get(fe),$.move(le,de),ce=2);ne&&ne({context:null==le?void 0:le.context,operation:ce,record:be})})}},{key:"detach",value:function(){}}]),N}(),S=function(){function N(){(0,R.Z)(this,N),this.viewCacheSize=20,this._viewCache=[]}return(0,H.Z)(N,[{key:"applyChanges",value:function(X,$,Y,Q,ne){var be=this;X.forEachOperation(function(fe,de,le){var ce,me;if(null==fe.previousIndex){me=(ce=be._insertView(function(){return Y(fe,de,le)},le,$,Q(fe)))?1:0}else null==le?(be._detachAndCacheView(de,$),me=3):(ce=be._moveView(de,le,$,Q(fe)),me=2);ne&&ne({context:null==ce?void 0:ce.context,operation:me,record:fe})})}},{key:"detach",value:function(){var $,X=(0,G.Z)(this._viewCache);try{for(X.s();!($=X.n()).done;){$.value.destroy()}}catch(Q){X.e(Q)}finally{X.f()}this._viewCache=[]}},{key:"_insertView",value:function(X,$,Y,Q){var ne=this._insertViewFromCache($,Y);if(!ne){var be=X();return Y.createEmbeddedView(be.templateRef,be.context,be.index)}ne.context.$implicit=Q}},{key:"_detachAndCacheView",value:function(X,$){var Y=$.detach(X);this._maybeCacheView(Y,$)}},{key:"_moveView",value:function(X,$,Y,Q){var ne=Y.get(X);return Y.move(ne,$),ne.context.$implicit=Q,ne}},{key:"_maybeCacheView",value:function(X,$){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(X);else{var Y=$.indexOf(X);-1===Y?X.destroy():$.remove(Y)}}},{key:"_insertViewFromCache",value:function(X,$){var Y=this._viewCache.pop();return Y&&$.insert(Y,X),Y||null}}]),N}(),y=function(){function N(){var F=this,X=arguments.length>0&&void 0!==arguments[0]&&arguments[0],$=arguments.length>1?arguments[1]:void 0,Y=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],Q=arguments.length>3?arguments[3]:void 0;(0,R.Z)(this,N),this._multiple=X,this._emitChanges=Y,this.compareWith=Q,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j.xQ,$&&$.length&&(X?$.forEach(function(ne){return F._markSelected(ne)}):this._markSelected($[0]),this._selectedToEmit.length=0)}return(0,H.Z)(N,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y),Y.forEach(function(be){return X._markSelected(be)});var ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}},{key:"deselect",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y),Y.forEach(function(be){return X._unmarkSelected(be)});var ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}},{key:"setSelection",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y);var ne=this.selected,be=new Set(Y);Y.forEach(function(de){return X._markSelected(de)}),ne.filter(function(de){return!be.has(de)}).forEach(function(de){return X._unmarkSelected(de)});var fe=this._hasQueuedChanges();return this._emitChangeEvent(),fe}},{key:"toggle",value:function(X){return this.isSelected(X)?this.deselect(X):this.select(X)}},{key:"clear",value:function(){var X=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._unmarkAll();var $=this._hasQueuedChanges();return X&&this._emitChangeEvent(),$}},{key:"isSelected",value:function(X){if(this.compareWith){var Y,$=(0,G.Z)(this._selection);try{for($.s();!(Y=$.n()).done;){var Q=Y.value;if(this.compareWith(Q,X))return!0}}catch(ne){$.e(ne)}finally{$.f()}return!1}return this._selection.has(X)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(X){this._multiple&&this.selected&&this._selected.sort(X)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this.isSelected(X)||this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}},{key:"_unmarkSelected",value:function(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}},{key:"_unmarkAll",value:function(){var X=this;this.isEmpty()||this._selection.forEach(function($){return X._unmarkSelected($)})}},{key:"_verifyValueAssignment",value:function(X){X.length>1&&this._multiple}},{key:"_hasQueuedChanges",value:function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}]),N}();var M=function(){function N(){(0,R.Z)(this,N),this._listeners=[]}return(0,H.Z)(N,[{key:"notify",value:function(X,$){var Q,Y=(0,G.Z)(this._listeners);try{for(Y.s();!(Q=Y.n()).done;){(0,Q.value)(X,$)}}catch(be){Y.e(be)}finally{Y.f()}}},{key:"listen",value:function(X){var $=this;return this._listeners.push(X),function(){$._listeners=$._listeners.filter(function(Y){return X!==Y})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),N}();M.\u0275fac=function(F){return new(F||M)},M.\u0275prov=L.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});var E=new L.OlP("_ViewRepeater")},1159:function(Ae,K,m){"use strict";m.d(K,{A:function(){return Ze},JH:function(){return N},JU:function(){return P},K5:function(){return R},LH:function(){return M},L_:function(){return k},MW:function(){return Je},Mf:function(){return A},SV:function(){return E},Sd:function(){return y},Vb:function(){return qr},Z:function(){return Xt},ZH:function(){return W},aO:function(){return st},b2:function(){return Ko},hY:function(){return v},jx:function(){return x},oh:function(){return T},uR:function(){return S},xE:function(){return Q},yY:function(){return Y},zL:function(){return D}});var W=8,A=9,R=13,P=16,x=17,D=18,v=27,k=32,S=35,y=36,T=37,M=38,E=39,N=40,Y=46,Q=48,st=57,Ze=65,Xt=90,Je=91,Ko=224;function qr(Bi){for(var ba=arguments.length,Ar=new Array(ba>1?ba-1:0),Fi=1;Fi<ba;Fi++)Ar[Fi-1]=arguments[Fi];return Ar.length?Ar.some(function(Uo){return Bi[Uo]}):Bi.altKey||Bi.shiftKey||Bi.ctrlKey||Bi.metaKey}},5113:function(Ae,K,m){"use strict";m.d(K,{Yg:function(){return X},u3:function(){return Y}});var G=m(3144),W=m(5671),A=m(5e3),H=m(3191),R=m(8929),P=m(6053),x=m(1961),D=m(7451),j=m(2986),L=m(1307),v=m(13),k=m(4850),b=m(1059),O=m(7625),S=m(925),y=(0,G.Z)(function Q(){(0,W.Z)(this,Q)});y.\u0275fac=function(ne){return new(ne||y)},y.\u0275mod=A.oAB({type:y}),y.\u0275inj=A.cJS({});var M,T=new Set,E=function(){function Q(ne){(0,W.Z)(this,Q),this._platform=ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}return(0,G.Z)(Q,[{key:"matchMedia",value:function(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(Q){if(!T.has(Q))try{M||((M=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(M)),M.sheet&&(M.sheet.insertRule("@media ".concat(Q," {body{ }}"),0),T.add(Q))}catch(ne){console.error(ne)}}(be),this._matchMedia(be)}}]),Q}();function F(Q){return{matches:"all"===Q||""===Q,media:Q,addListener:function(){},removeListener:function(){}}}E.\u0275fac=function(ne){return new(ne||E)(A.LFG(S.t4))},E.\u0275prov=A.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"});var X=function(){function Q(ne,be){(0,W.Z)(this,Q),this._mediaMatcher=ne,this._zone=be,this._queries=new Map,this._destroySubject=new R.xQ}return(0,G.Z)(Q,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(be){var fe=this;return $((0,H.Eq)(be)).some(function(le){return fe._registerQuery(le).mql.matches})}},{key:"observe",value:function(be){var fe=this,le=$((0,H.Eq)(be)).map(function(me){return fe._registerQuery(me).observable}),ce=(0,P.aj)(le);return(ce=(0,x.z)(ce.pipe((0,j.q)(1)),ce.pipe((0,L.T)(1),(0,v.b)(0)))).pipe((0,k.U)(function(me){var je={matches:!1,breakpoints:{}};return me.forEach(function(st){var Mt=st.matches,Tt=st.query;je.matches=je.matches||Mt,je.breakpoints[Tt]=Mt}),je}))}},{key:"_registerQuery",value:function(be){var fe=this;if(this._queries.has(be))return this._queries.get(be);var de=this._mediaMatcher.matchMedia(be),ce={observable:new D.y(function(me){var je=function(Mt){return fe._zone.run(function(){return me.next(Mt)})};return de.addListener(je),function(){de.removeListener(je)}}).pipe((0,b.O)(de),(0,k.U)(function(me){var je=me.matches;return{query:be,matches:je}}),(0,O.R)(this._destroySubject)),mql:de};return this._queries.set(be,ce),ce}}]),Q}();function $(Q){return Q.map(function(ne){return ne.split(",")}).reduce(function(ne,be){return ne.concat(be)}).map(function(ne){return ne.trim()})}X.\u0275fac=function(ne){return new(ne||X)(A.LFG(E),A.LFG(A.R0b))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"});var Y={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:function(Ae,K,m){"use strict";m.d(K,{Q8:function(){return v},wD:function(){return L},yq:function(){return j}});var G=m(5671),W=m(3144),A=m(3191),H=m(5e3),R=m(7451),P=m(8929),x=m(13),D=function(){function k(){(0,G.Z)(this,k)}return(0,W.Z)(k,[{key:"create",value:function(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}]),k}();D.\u0275fac=function(b){return new(b||D)},D.\u0275prov=H.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"});var j=function(){function k(b){(0,G.Z)(this,k),this._mutationObserverFactory=b,this._observedElements=new Map}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){var O=this;this._observedElements.forEach(function(S,y){return O._cleanupObserver(y)})}},{key:"observe",value:function(O){var S=this,y=(0,A.fI)(O);return new R.y(function(T){var E=S._observeElement(y).subscribe(T);return function(){E.unsubscribe(),S._unobserveElement(y)}})}},{key:"_observeElement",value:function(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{var S=new P.xQ,y=this._mutationObserverFactory.create(function(T){return S.next(T)});y&&y.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:y,stream:S,count:1})}return this._observedElements.get(O).stream}},{key:"_unobserveElement",value:function(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}},{key:"_cleanupObserver",value:function(O){if(this._observedElements.has(O)){var S=this._observedElements.get(O),y=S.observer,T=S.stream;y&&y.disconnect(),T.complete(),this._observedElements.delete(O)}}}]),k}();j.\u0275fac=function(b){return new(b||j)(H.LFG(D))},j.\u0275prov=H.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(b,O,S){(0,G.Z)(this,k),this._contentObserver=b,this._elementRef=O,this._ngZone=S,this.event=new H.vpe,this._disabled=!1,this._currentSubscription=null}return(0,W.Z)(k,[{key:"disabled",get:function(){return this._disabled},set:function(O){this._disabled=(0,A.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(O){this._debounce=(0,A.su)(O),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var O=this;this._unsubscribe();var S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){O._currentSubscription=(O.debounce?S.pipe((0,x.b)(O.debounce)):S).subscribe(O.event)})}},{key:"_unsubscribe",value:function(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}]),k}();L.\u0275fac=function(b){return new(b||L)(H.Y36(j),H.Y36(H.SBq),H.Y36(H.R0b))},L.\u0275dir=H.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=H.oAB({type:v}),v.\u0275inj=H.cJS({providers:[D]})},1314:function(Ae,K,m){"use strict";m.d(K,{Iu:function(){return Ze},U8:function(){return Kt},X_:function(){return je},Xj:function(){return $t},aV:function(){return t},pI:function(){return sn},xu:function(){return zt}});var G=m(3237),W=m(1120),A=m(136),H=m(9388),R=m(7685),P=m(7762),x=m(4902),D=m(5671),j=m(3144),L=m(9071),v=m(9808),k=m(5e3),b=m(3191),O=m(925),S=m(226),y=m(7429),T=m(8929),M=m(4096),E=m(6787),N=m(2986),F=m(7625),X=m(4290),$=m(1159),Y=(0,O.Mq)(),Q=function(){function Je(Be,te){(0,D.Z)(this,Je),this._viewportRuler=Be,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=te}return(0,j.Z)(Je,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var te=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=te.style.left||"",this._previousHTMLStyles.top=te.style.top||"",te.style.left=(0,b.HM)(-this._previousScrollPosition.left),te.style.top=(0,b.HM)(-this._previousScrollPosition.top),te.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var te=this._document.documentElement,ye=this._document.body,pe=te.style,Ne=ye.style,lt=pe.scrollBehavior||"",ct=Ne.scrollBehavior||"";this._isEnabled=!1,pe.left=this._previousHTMLStyles.left,pe.top=this._previousHTMLStyles.top,te.classList.remove("cdk-global-scrollblock"),Y&&(pe.scrollBehavior=Ne.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Y&&(pe.scrollBehavior=lt,Ne.scrollBehavior=ct)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ye=this._document.body,pe=this._viewportRuler.getViewportSize();return ye.scrollHeight>pe.height||ye.scrollWidth>pe.width}}]),Je}();var be=function(){function Je(Be,te,ye,pe){var Ne=this;(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._ngZone=te,this._viewportRuler=ye,this._config=pe,this._scrollSubscription=null,this._detach=function(){Ne.disable(),Ne._overlayRef.hasAttached()&&Ne._ngZone.run(function(){return Ne._overlayRef.detach()})}}return(0,j.Z)(Je,[{key:"attach",value:function(te){this._overlayRef,this._overlayRef=te}},{key:"enable",value:function(){var te=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var pe=te._viewportRuler.getViewportScrollPosition().top;Math.abs(pe-te._initialScrollPosition)>te._config.threshold?te._detach():te._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Je}(),fe=function(){function Je(){(0,D.Z)(this,Je)}return(0,j.Z)(Je,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Je}();function de(Je,Be){return Be.some(function(te){var ye=Je.bottom<te.top,pe=Je.top>te.bottom,Ne=Je.right<te.left,lt=Je.left>te.right;return ye||pe||Ne||lt})}function le(Je,Be){return Be.some(function(te){var ye=Je.top<te.top,pe=Je.bottom>te.bottom,Ne=Je.left<te.left,lt=Je.right>te.right;return ye||pe||Ne||lt})}var ce=function(){function Je(Be,te,ye,pe){(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._viewportRuler=te,this._ngZone=ye,this._config=pe,this._scrollSubscription=null}return(0,j.Z)(Je,[{key:"attach",value:function(te){this._overlayRef,this._overlayRef=te}},{key:"enable",value:function(){var te=this;if(!this._scrollSubscription){var ye=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(ye).subscribe(function(){if(te._overlayRef.updatePosition(),te._config&&te._config.autoClose){var pe=te._overlayRef.overlayElement.getBoundingClientRect(),Ne=te._viewportRuler.getViewportSize(),lt=Ne.width,ct=Ne.height;de(pe,[{width:lt,height:ct,bottom:ct,right:lt,top:0,left:0}])&&(te.disable(),te._ngZone.run(function(){return te._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Je}(),me=(0,j.Z)(function Je(Be,te,ye,pe){var Ne=this;(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._viewportRuler=te,this._ngZone=ye,this.noop=function(){return new fe},this.close=function(lt){return new be(Ne._scrollDispatcher,Ne._ngZone,Ne._viewportRuler,lt)},this.block=function(){return new Q(Ne._viewportRuler,Ne._document)},this.reposition=function(lt){return new ce(Ne._scrollDispatcher,Ne._viewportRuler,Ne._ngZone,lt)},this._document=pe});me.\u0275fac=function(Be){return new(Be||me)(k.LFG(L.mF),k.LFG(L.rL),k.LFG(k.R0b),k.LFG(v.K0))},me.\u0275prov=k.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"});var je=(0,j.Z)(function Je(Be){if((0,D.Z)(this,Je),this.scrollStrategy=new fe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Be)for(var ye=0,pe=Object.keys(Be);ye<pe.length;ye++){var Ne=pe[ye];void 0!==Be[Ne]&&(this[Ne]=Be[Ne])}}),Tt=(0,j.Z)(function Je(Be,te){(0,D.Z)(this,Je),this.connectionPair=Be,this.scrollableViewProperties=te});var Ze=function(){function Je(Be,te,ye,pe,Ne,lt,ct,Bt,jt){var on=this,vn=arguments.length>9&&void 0!==arguments[9]&&arguments[9];(0,D.Z)(this,Je),this._portalOutlet=Be,this._host=te,this._pane=ye,this._config=pe,this._ngZone=Ne,this._keyboardDispatcher=lt,this._document=ct,this._location=Bt,this._outsideClickDispatcher=jt,this._animationsDisabled=vn,this._backdropElement=null,this._backdropClick=new T.xQ,this._attachments=new T.xQ,this._detachments=new T.xQ,this._locationChanges=M.w.EMPTY,this._backdropClickHandler=function(ln){return on._backdropClick.next(ln)},this._backdropTransitionendHandler=function(ln){on._disposeBackdrop(ln.target)},this._keydownEvents=new T.xQ,this._outsidePointerEvents=new T.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}return(0,j.Z)(Je,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(te){var ye=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var pe=this._portalOutlet.attach(te);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(function(){ye.hasAttached()&&ye.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return ye.dispose()})),this._outsideClickDispatcher.add(this),"function"==typeof(null==pe?void 0:pe.onDestroy)&&pe.onDestroy(function(){ye.hasAttached()&&ye._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return ye.detach()})})}),pe}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var te=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),te}}},{key:"dispose",value:function(){var te,ye=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(te=this._host)||void 0===te||te.remove(),this._previousHostParent=this._pane=this._host=null,ye&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(te){te!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=te,this.hasAttached()&&(te.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(te){this._config=Object.assign(Object.assign({},this._config),te),this._updateElementSize()}},{key:"setDirection",value:function(te){this._config=Object.assign(Object.assign({},this._config),{direction:te}),this._updateElementDirection()}},{key:"addPanelClass",value:function(te){this._pane&&this._toggleClasses(this._pane,te,!0)}},{key:"removePanelClass",value:function(te){this._pane&&this._toggleClasses(this._pane,te,!1)}},{key:"getDirection",value:function(){var te=this._config.direction;return te?"string"==typeof te?te:te.value:"ltr"}},{key:"updateScrollStrategy",value:function(te){te!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=te,this.hasAttached()&&(te.attach(this),te.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var te=this._pane.style;te.width=(0,b.HM)(this._config.width),te.height=(0,b.HM)(this._config.height),te.minWidth=(0,b.HM)(this._config.minWidth),te.minHeight=(0,b.HM)(this._config.minHeight),te.maxWidth=(0,b.HM)(this._config.maxWidth),te.maxHeight=(0,b.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(te){this._pane.style.pointerEvents=te?"":"none"}},{key:"_attachBackdrop",value:function(){var te=this,ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(ye):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){te._backdropElement&&te._backdropElement.classList.add(ye)})})}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var te=this,ye=this._backdropElement;if(ye){if(this._animationsDisabled)return void this._disposeBackdrop(ye);ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ye.addEventListener("transitionend",te._backdropTransitionendHandler)}),ye.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){te._disposeBackdrop(ye)},500)})}}},{key:"_toggleClasses",value:function(te,ye,pe){var lt,ct,Ne=(0,b.Eq)(ye||[]).filter(function(Bt){return!!Bt});Ne.length&&(pe?(lt=te.classList).add.apply(lt,(0,x.Z)(Ne)):(ct=te.classList).remove.apply(ct,(0,x.Z)(Ne)))}},{key:"_detachContentWhenStable",value:function(){var te=this;this._ngZone.runOutsideAngular(function(){var ye=te._ngZone.onStable.pipe((0,F.R)((0,E.T)(te._attachments,te._detachments))).subscribe(function(){(!te._pane||!te._host||0===te._pane.children.length)&&(te._pane&&te._config.panelClass&&te._toggleClasses(te._pane,te._config.panelClass,!1),te._host&&te._host.parentElement&&(te._previousHostParent=te._host.parentElement,te._host.remove()),ye.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var te=this._scrollStrategy;te&&(te.disable(),te.detach&&te.detach())}},{key:"_disposeBackdrop",value:function(te){te&&(te.removeEventListener("click",this._backdropClickHandler),te.removeEventListener("transitionend",this._backdropTransitionendHandler),te.remove(),this._backdropElement===te&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Je}(),$t=function(){function Je(Be,te){(0,D.Z)(this,Je),this._platform=te,this._document=Be}return(0,j.Z)(Je,[{key:"ngOnDestroy",value:function(){var te;null===(te=this._containerElement)||void 0===te||te.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var te="cdk-overlay-container";if(this._platform.isBrowser||(0,O.Oy)())for(var ye=this._document.querySelectorAll(".".concat(te,'[platform="server"], ')+".".concat(te,'[platform="test"]')),pe=0;pe<ye.length;pe++)ye[pe].remove();var Ne=this._document.createElement("div");Ne.classList.add(te),(0,O.Oy)()?Ne.setAttribute("platform","test"):this._platform.isBrowser||Ne.setAttribute("platform","server"),this._document.body.appendChild(Ne),this._containerElement=Ne}}]),Je}();$t.\u0275fac=function(Be){return new(Be||$t)(k.LFG(v.K0),k.LFG(O.t4))},$t.\u0275prov=k.Yz7({token:$t,factory:$t.\u0275fac,providedIn:"root"});var Ft="cdk-overlay-connected-position-bounding-box",pn=/([A-Za-z%]+)$/,nt=function(){function Je(Be,te,ye,pe,Ne){(0,D.Z)(this,Je),this._viewportRuler=te,this._document=ye,this._platform=pe,this._overlayContainer=Ne,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new T.xQ,this._resizeSubscription=M.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Be)}return(0,j.Z)(Je,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(te){var ye=this;this._overlayRef&&this._overlayRef,this._validatePositions(),te.hostElement.classList.add(Ft),this._overlayRef=te,this._boundingBox=te.hostElement,this._pane=te.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ye._isInitialRender=!0,ye.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ct,jt,te=this._originRect,ye=this._overlayRect,pe=this._viewportRect,Ne=this._containerRect,lt=[],Bt=(0,P.Z)(this._preferredPositions);try{for(Bt.s();!(jt=Bt.n()).done;){var on=jt.value,vn=this._getOriginPoint(te,Ne,on),ln=this._getOverlayPoint(vn,ye,on),En=this._getOverlayFit(ln,ye,pe,on);if(En.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(on,vn);this._canFitWithFlexibleDimensions(En,ln,pe)?lt.push({position:on,origin:vn,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(vn,on)}):(!ct||ct.overlayFit.visibleArea<En.visibleArea)&&(ct={overlayFit:En,overlayPoint:ln,originPoint:vn,position:on,overlayRect:ye})}}catch(ze){Bt.e(ze)}finally{Bt.f()}if(lt.length){var xt,hn=null,mn=-1,At=(0,P.Z)(lt);try{for(At.s();!(xt=At.n()).done;){var et=xt.value,St=et.boundingBoxRect.width*et.boundingBoxRect.height*(et.position.weight||1);St>mn&&(mn=St,hn=et)}}catch(ze){At.e(ze)}finally{At.f()}return this._isPushed=!1,void this._applyPosition(hn.position,hn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ot(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ft),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var te=this._lastPosition;if(te){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ye=this._getOriginPoint(this._originRect,this._containerRect,te);this._applyPosition(te,ye)}else this.apply()}}},{key:"withScrollableContainers",value:function(te){return this._scrollables=te,this}},{key:"withPositions",value:function(te){return this._preferredPositions=te,-1===te.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(te){return this._viewportMargin=te,this}},{key:"withFlexibleDimensions",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=te,this}},{key:"withGrowAfterOpen",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=te,this}},{key:"withPush",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=te,this}},{key:"withLockedPosition",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=te,this}},{key:"setOrigin",value:function(te){return this._origin=te,this}},{key:"withDefaultOffsetX",value:function(te){return this._offsetX=te,this}},{key:"withDefaultOffsetY",value:function(te){return this._offsetY=te,this}},{key:"withTransformOriginOn",value:function(te){return this._transformOriginSelector=te,this}},{key:"_getOriginPoint",value:function(te,ye,pe){var Ne,Bt;if("center"==pe.originX)Ne=te.left+te.width/2;else{var lt=this._isRtl()?te.right:te.left,ct=this._isRtl()?te.left:te.right;Ne="start"==pe.originX?lt:ct}return ye.left<0&&(Ne-=ye.left),Bt="center"==pe.originY?te.top+te.height/2:"top"==pe.originY?te.top:te.bottom,ye.top<0&&(Bt-=ye.top),{x:Ne,y:Bt}}},{key:"_getOverlayPoint",value:function(te,ye,pe){var Ne,lt;return Ne="center"==pe.overlayX?-ye.width/2:"start"===pe.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,lt="center"==pe.overlayY?-ye.height/2:"top"==pe.overlayY?0:-ye.height,{x:te.x+Ne,y:te.y+lt}}},{key:"_getOverlayFit",value:function(te,ye,pe,Ne){var lt=Ct(ye),ct=te.x,Bt=te.y,jt=this._getOffset(Ne,"x"),on=this._getOffset(Ne,"y");jt&&(ct+=jt),on&&(Bt+=on);var vn=0-ct,ln=ct+lt.width-pe.width,En=0-Bt,hn=Bt+lt.height-pe.height,mn=this._subtractOverflows(lt.width,vn,ln),At=this._subtractOverflows(lt.height,En,hn),xt=mn*At;return{visibleArea:xt,isCompletelyWithinViewport:lt.width*lt.height===xt,fitsInViewportVertically:At===lt.height,fitsInViewportHorizontally:mn==lt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(te,ye,pe){if(this._hasFlexibleDimensions){var Ne=pe.bottom-ye.y,lt=pe.right-ye.x,ct=_t(this._overlayRef.getConfig().minHeight),Bt=_t(this._overlayRef.getConfig().minWidth),jt=te.fitsInViewportVertically||null!=ct&&ct<=Ne,on=te.fitsInViewportHorizontally||null!=Bt&&Bt<=lt;return jt&&on}return!1}},{key:"_pushOverlayOnScreen",value:function(te,ye,pe){if(this._previousPushAmount&&this._positionLocked)return{x:te.x+this._previousPushAmount.x,y:te.y+this._previousPushAmount.y};var Ne=Ct(ye),lt=this._viewportRect,ct=Math.max(te.x+Ne.width-lt.width,0),Bt=Math.max(te.y+Ne.height-lt.height,0),jt=Math.max(lt.top-pe.top-te.y,0),on=Math.max(lt.left-pe.left-te.x,0),vn=0,ln=0;return vn=Ne.width<=lt.width?on||-ct:te.x<this._viewportMargin?lt.left-pe.left-te.x:0,ln=Ne.height<=lt.height?jt||-Bt:te.y<this._viewportMargin?lt.top-pe.top-te.y:0,this._previousPushAmount={x:vn,y:ln},{x:te.x+vn,y:te.y+ln}}},{key:"_applyPosition",value:function(te,ye){if(this._setTransformOrigin(te),this._setOverlayElementStyles(ye,te),this._setBoundingBoxStyles(ye,te),te.panelClass&&this._addPanelClasses(te.panelClass),this._lastPosition=te,this._positionChanges.observers.length){var pe=this._getScrollVisibility(),Ne=new Tt(te,pe);this._positionChanges.next(Ne)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(te){if(this._transformOriginSelector){var pe,ye=this._boundingBox.querySelectorAll(this._transformOriginSelector),Ne=te.overlayY;pe="center"===te.overlayX?"center":this._isRtl()?"start"===te.overlayX?"right":"left":"start"===te.overlayX?"left":"right";for(var lt=0;lt<ye.length;lt++)ye[lt].style.transformOrigin="".concat(pe," ").concat(Ne)}}},{key:"_calculateBoundingBoxRect",value:function(te,ye){var lt,ct,Bt,pe=this._viewportRect,Ne=this._isRtl();if("top"===ye.overlayY)ct=te.y,lt=pe.height-ct+this._viewportMargin;else if("bottom"===ye.overlayY)Bt=pe.height-te.y+2*this._viewportMargin,lt=pe.height-Bt+this._viewportMargin;else{var jt=Math.min(pe.bottom-te.y+pe.top,te.y),on=this._lastBoundingBoxSize.height;lt=2*jt,ct=te.y-jt,lt>on&&!this._isInitialRender&&!this._growAfterOpen&&(ct=te.y-on/2)}var En,hn,mn,vn="start"===ye.overlayX&&!Ne||"end"===ye.overlayX&&Ne;if("end"===ye.overlayX&&!Ne||"start"===ye.overlayX&&Ne)mn=pe.width-te.x+this._viewportMargin,En=te.x-this._viewportMargin;else if(vn)hn=te.x,En=pe.right-te.x;else{var At=Math.min(pe.right-te.x+pe.left,te.x),xt=this._lastBoundingBoxSize.width;En=2*At,hn=te.x-At,En>xt&&!this._isInitialRender&&!this._growAfterOpen&&(hn=te.x-xt/2)}return{top:ct,left:hn,bottom:Bt,right:mn,width:En,height:lt}}},{key:"_setBoundingBoxStyles",value:function(te,ye){var pe=this._calculateBoundingBoxRect(te,ye);!this._isInitialRender&&!this._growAfterOpen&&(pe.height=Math.min(pe.height,this._lastBoundingBoxSize.height),pe.width=Math.min(pe.width,this._lastBoundingBoxSize.width));var Ne={};if(this._hasExactPosition())Ne.top=Ne.left="0",Ne.bottom=Ne.right=Ne.maxHeight=Ne.maxWidth="",Ne.width=Ne.height="100%";else{var lt=this._overlayRef.getConfig().maxHeight,ct=this._overlayRef.getConfig().maxWidth;Ne.height=(0,b.HM)(pe.height),Ne.top=(0,b.HM)(pe.top),Ne.bottom=(0,b.HM)(pe.bottom),Ne.width=(0,b.HM)(pe.width),Ne.left=(0,b.HM)(pe.left),Ne.right=(0,b.HM)(pe.right),"center"===ye.overlayX?Ne.alignItems="center":Ne.alignItems="end"===ye.overlayX?"flex-end":"flex-start","center"===ye.overlayY?Ne.justifyContent="center":Ne.justifyContent="bottom"===ye.overlayY?"flex-end":"flex-start",lt&&(Ne.maxHeight=(0,b.HM)(lt)),ct&&(Ne.maxWidth=(0,b.HM)(ct))}this._lastBoundingBoxSize=pe,Ot(this._boundingBox.style,Ne)}},{key:"_resetBoundingBoxStyles",value:function(){Ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(te,ye){var pe={},Ne=this._hasExactPosition(),lt=this._hasFlexibleDimensions,ct=this._overlayRef.getConfig();if(Ne){var Bt=this._viewportRuler.getViewportScrollPosition();Ot(pe,this._getExactOverlayY(ye,te,Bt)),Ot(pe,this._getExactOverlayX(ye,te,Bt))}else pe.position="static";var jt="",on=this._getOffset(ye,"x"),vn=this._getOffset(ye,"y");on&&(jt+="translateX(".concat(on,"px) ")),vn&&(jt+="translateY(".concat(vn,"px)")),pe.transform=jt.trim(),ct.maxHeight&&(Ne?pe.maxHeight=(0,b.HM)(ct.maxHeight):lt&&(pe.maxHeight="")),ct.maxWidth&&(Ne?pe.maxWidth=(0,b.HM)(ct.maxWidth):lt&&(pe.maxWidth="")),Ot(this._pane.style,pe)}},{key:"_getExactOverlayY",value:function(te,ye,pe){var Ne={top:"",bottom:""},lt=this._getOverlayPoint(ye,this._overlayRect,te);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,pe)),"bottom"===te.overlayY){var ct=this._document.documentElement.clientHeight;Ne.bottom="".concat(ct-(lt.y+this._overlayRect.height),"px")}else Ne.top=(0,b.HM)(lt.y);return Ne}},{key:"_getExactOverlayX",value:function(te,ye,pe){var Ne={left:"",right:""},lt=this._getOverlayPoint(ye,this._overlayRect,te);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,pe)),"right"===(this._isRtl()?"end"===te.overlayX?"left":"right":"end"===te.overlayX?"right":"left")){var Bt=this._document.documentElement.clientWidth;Ne.right="".concat(Bt-(lt.x+this._overlayRect.width),"px")}else Ne.left=(0,b.HM)(lt.x);return Ne}},{key:"_getScrollVisibility",value:function(){var te=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),pe=this._scrollables.map(function(Ne){return Ne.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:le(te,pe),isOriginOutsideView:de(te,pe),isOverlayClipped:le(ye,pe),isOverlayOutsideView:de(ye,pe)}}},{key:"_subtractOverflows",value:function(te){for(var ye=arguments.length,pe=new Array(ye>1?ye-1:0),Ne=1;Ne<ye;Ne++)pe[Ne-1]=arguments[Ne];return pe.reduce(function(lt,ct){return lt-Math.max(ct,0)},te)}},{key:"_getNarrowedViewportRect",value:function(){var te=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,pe=this._viewportRuler.getViewportScrollPosition();return{top:pe.top+this._viewportMargin,left:pe.left+this._viewportMargin,right:pe.left+te-this._viewportMargin,bottom:pe.top+ye-this._viewportMargin,width:te-2*this._viewportMargin,height:ye-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(te,ye){return"x"===ye?null==te.offsetX?this._offsetX:te.offsetX:null==te.offsetY?this._offsetY:te.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(te){var ye=this;this._pane&&(0,b.Eq)(te).forEach(function(pe){""!==pe&&-1===ye._appliedPanelClasses.indexOf(pe)&&(ye._appliedPanelClasses.push(pe),ye._pane.classList.add(pe))})}},{key:"_clearPanelClasses",value:function(){var te=this;this._pane&&(this._appliedPanelClasses.forEach(function(ye){te._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var te=this._origin;if(te instanceof k.SBq)return te.nativeElement.getBoundingClientRect();if(te instanceof Element)return te.getBoundingClientRect();var ye=te.width||0,pe=te.height||0;return{top:te.y,bottom:te.y+pe,left:te.x,right:te.x+ye,height:pe,width:ye}}}]),Je}();function Ot(Je,Be){for(var te in Be)Be.hasOwnProperty(te)&&(Je[te]=Be[te]);return Je}function _t(Je){if("number"!=typeof Je&&null!=Je){var Be=Je.split(pn),te=(0,R.Z)(Be,2),ye=te[0],pe=te[1];return pe&&"px"!==pe?null:parseFloat(ye)}return Je||null}function Ct(Je){return{top:Math.floor(Je.top),right:Math.floor(Je.right),bottom:Math.floor(Je.bottom),left:Math.floor(Je.left),width:Math.floor(Je.width),height:Math.floor(Je.height)}}var dt="cdk-global-overlay-wrapper",Ut=function(){function Je(){(0,D.Z)(this,Je),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}return(0,j.Z)(Je,[{key:"attach",value:function(te){var ye=te.getConfig();this._overlayRef=te,this._width&&!ye.width&&te.updateSize({width:this._width}),this._height&&!ye.height&&te.updateSize({height:this._height}),te.hostElement.classList.add(dt),this._isDisposed=!1}},{key:"top",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=te,this._alignItems="flex-start",this}},{key:"left",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="left",this}},{key:"bottom",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=te,this._alignItems="flex-end",this}},{key:"right",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="right",this}},{key:"start",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="start",this}},{key:"end",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="end",this}},{key:"width",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:te}):this._width=te,this}},{key:"height",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:te}):this._height=te,this}},{key:"centerHorizontally",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(te),this._xPosition="center",this}},{key:"centerVertically",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(te),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,pe=this._overlayRef.getConfig(),Ne=pe.width,lt=pe.height,ct=pe.maxWidth,Bt=pe.maxHeight,jt=!("100%"!==Ne&&"100vw"!==Ne||ct&&"100%"!==ct&&"100vw"!==ct),on=!("100%"!==lt&&"100vh"!==lt||Bt&&"100%"!==Bt&&"100vh"!==Bt),vn=this._xPosition,ln=this._xOffset,En="rtl"===this._overlayRef.getConfig().direction,hn="",mn="",At="";jt?At="flex-start":"center"===vn?(At="center",En?mn=ln:hn=ln):En?"left"===vn||"end"===vn?(At="flex-end",hn=ln):("right"===vn||"start"===vn)&&(At="flex-start",mn=ln):"left"===vn||"start"===vn?(At="flex-start",hn=ln):("right"===vn||"end"===vn)&&(At="flex-end",mn=ln),te.position=this._cssPosition,te.marginLeft=jt?"0":hn,te.marginTop=on?"0":this._topOffset,te.marginBottom=this._bottomOffset,te.marginRight=jt?"0":mn,ye.justifyContent=At,ye.alignItems=on?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,pe=ye.style;ye.classList.remove(dt),pe.justifyContent=pe.alignItems=te.marginTop=te.marginBottom=te.marginLeft=te.marginRight=te.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Je}(),B=function(){function Je(Be,te,ye,pe){(0,D.Z)(this,Je),this._viewportRuler=Be,this._document=te,this._platform=ye,this._overlayContainer=pe}return(0,j.Z)(Je,[{key:"global",value:function(){return new Ut}},{key:"flexibleConnectedTo",value:function(te){return new nt(te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Je}();B.\u0275fac=function(Be){return new(Be||B)(k.LFG(L.rL),k.LFG(v.K0),k.LFG(O.t4),k.LFG($t))},B.\u0275prov=k.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"});var U=function(){function Je(Be){(0,D.Z)(this,Je),this._attachedOverlays=[],this._document=Be}return(0,j.Z)(Je,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(te){this.remove(te),this._attachedOverlays.push(te)}},{key:"remove",value:function(te){var ye=this._attachedOverlays.indexOf(te);ye>-1&&this._attachedOverlays.splice(ye,1),0===this._attachedOverlays.length&&this.detach()}}]),Je}();U.\u0275fac=function(Be){return new(Be||U)(k.LFG(v.K0))},U.\u0275prov=k.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"});var tt=function(Je){(0,A.Z)(te,Je);var Be=(0,H.Z)(te);function te(ye,pe){var Ne;return(0,D.Z)(this,te),(Ne=Be.call(this,ye))._ngZone=pe,Ne._keydownListener=function(lt){for(var ct=Ne._attachedOverlays,Bt=function(){if(ct[jt]._keydownEvents.observers.length>0){var vn=ct[jt]._keydownEvents;return Ne._ngZone?Ne._ngZone.run(function(){return vn.next(lt)}):vn.next(lt),1}},jt=ct.length-1;jt>-1&&!Bt();jt--);},Ne}return(0,j.Z)(te,[{key:"add",value:function(pe){var Ne=this;(0,G.Z)((0,W.Z)(te.prototype),"add",this).call(this,pe),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return Ne._document.body.addEventListener("keydown",Ne._keydownListener)}):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),te}(U);tt.\u0275fac=function(Be){return new(Be||tt)(k.LFG(v.K0),k.LFG(k.R0b,8))},tt.\u0275prov=k.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});var Ye=function(Je){(0,A.Z)(te,Je);var Be=(0,H.Z)(te);function te(ye,pe,Ne){var lt;return(0,D.Z)(this,te),(lt=Be.call(this,ye))._platform=pe,lt._ngZone=Ne,lt._cursorStyleIsSet=!1,lt._pointerDownListener=function(ct){lt._pointerDownEventTarget=(0,O.sA)(ct)},lt._clickListener=function(ct){var Bt=(0,O.sA)(ct),jt="click"===ct.type&<._pointerDownEventTarget?lt._pointerDownEventTarget:Bt;lt._pointerDownEventTarget=null;for(var ln,on=lt._attachedOverlays.slice(),vn=function(){var mn=on[En];if(mn._outsidePointerEvents.observers.length<1||!mn.hasAttached())return 0;if(mn.overlayElement.contains(Bt)||mn.overlayElement.contains(jt))return 1;var At=mn._outsidePointerEvents;lt._ngZone?lt._ngZone.run(function(){return At.next(ct)}):At.next(ct)},En=on.length-1;En>-1&&(0===(ln=vn())||1!==ln);En--);},lt}return(0,j.Z)(te,[{key:"add",value:function(pe){var Ne=this;if((0,G.Z)((0,W.Z)(te.prototype),"add",this).call(this,pe),!this._isAttached){var lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return Ne._addEventListeners(lt)}):this._addEventListeners(lt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=lt.style.cursor,lt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var pe=this._document.body;pe.removeEventListener("pointerdown",this._pointerDownListener,!0),pe.removeEventListener("click",this._clickListener,!0),pe.removeEventListener("auxclick",this._clickListener,!0),pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(pe){pe.addEventListener("pointerdown",this._pointerDownListener,!0),pe.addEventListener("click",this._clickListener,!0),pe.addEventListener("auxclick",this._clickListener,!0),pe.addEventListener("contextmenu",this._clickListener,!0)}}]),te}(U);Ye.\u0275fac=function(Be){return new(Be||Ye)(k.LFG(v.K0),k.LFG(O.t4),k.LFG(k.R0b,8))},Ye.\u0275prov=k.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"});var ge=0,t=function(){function Je(Be,te,ye,pe,Ne,lt,ct,Bt,jt,on,vn,ln){(0,D.Z)(this,Je),this.scrollStrategies=Be,this._overlayContainer=te,this._componentFactoryResolver=ye,this._positionBuilder=pe,this._keyboardDispatcher=Ne,this._injector=lt,this._ngZone=ct,this._document=Bt,this._directionality=jt,this._location=on,this._outsideClickDispatcher=vn,this._animationsModuleType=ln}return(0,j.Z)(Je,[{key:"create",value:function(te){var ye=this._createHostElement(),pe=this._createPaneElement(ye),Ne=this._createPortalOutlet(pe),lt=new je(te);return lt.direction=lt.direction||this._directionality.value,new Ze(Ne,ye,pe,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(te){var ye=this._document.createElement("div");return ye.id="cdk-overlay-".concat(ge++),ye.classList.add("cdk-overlay-pane"),te.appendChild(ye),ye}},{key:"_createHostElement",value:function(){var te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(te),te}},{key:"_createPortalOutlet",value:function(te){return this._appRef||(this._appRef=this._injector.get(k.z2F)),new y.u0(te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Je}();t.\u0275fac=function(Be){return new(Be||t)(k.LFG(me),k.LFG($t),k.LFG(k._Vd),k.LFG(B),k.LFG(tt),k.LFG(k.zs3),k.LFG(k.R0b),k.LFG(v.K0),k.LFG(S.Is),k.LFG(v.Ye),k.LFG(Ye),k.LFG(k.QbO,8))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac});var Dt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Zt=new k.OlP("cdk-connected-overlay-scroll-strategy"),zt=(0,j.Z)(function Je(Be){(0,D.Z)(this,Je),this.elementRef=Be});zt.\u0275fac=function(Be){return new(Be||zt)(k.Y36(k.SBq))},zt.\u0275dir=k.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var sn=function(){function Je(Be,te,ye,pe,Ne){(0,D.Z)(this,Je),this._overlay=Be,this._dir=Ne,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=M.w.EMPTY,this._attachSubscription=M.w.EMPTY,this._detachSubscription=M.w.EMPTY,this._positionSubscription=M.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new k.vpe,this.positionChange=new k.vpe,this.attach=new k.vpe,this.detach=new k.vpe,this.overlayKeydown=new k.vpe,this.overlayOutsideClick=new k.vpe,this._templatePortal=new y.UE(te,ye),this._scrollStrategyFactory=pe,this.scrollStrategy=this._scrollStrategyFactory()}return(0,j.Z)(Je,[{key:"offsetX",get:function(){return this._offsetX},set:function(te){this._offsetX=te,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(te){this._offsetY=te,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(te){this._hasBackdrop=(0,b.Ig)(te)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(te){this._lockPosition=(0,b.Ig)(te)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(te){this._flexibleDimensions=(0,b.Ig)(te)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(te){this._growAfterOpen=(0,b.Ig)(te)}},{key:"push",get:function(){return this._push},set:function(te){this._push=(0,b.Ig)(te)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(te){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),te.origin&&this.open&&this._position.apply()),te.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var te=this;(!this.positions||!this.positions.length)&&(this.positions=Dt);var ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(function(){return te.attach.emit()}),this._detachSubscription=ye.detachments().subscribe(function(){return te.detach.emit()}),ye.keydownEvents().subscribe(function(pe){te.overlayKeydown.next(pe),pe.keyCode===$.hY&&!te.disableClose&&!(0,$.Vb)(pe)&&(pe.preventDefault(),te._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(pe){te.overlayOutsideClick.next(pe)})}},{key:"_buildConfig",value:function(){var te=this._position=this.positionStrategy||this._createPositionStrategy(),ye=new je({direction:this._dir,positionStrategy:te,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ye.width=this.width),(this.height||0===this.height)&&(ye.height=this.height),(this.minWidth||0===this.minWidth)&&(ye.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ye.minHeight=this.minHeight),this.backdropClass&&(ye.backdropClass=this.backdropClass),this.panelClass&&(ye.panelClass=this.panelClass),ye}},{key:"_updatePositionStrategy",value:function(te){var ye=this,pe=this.positions.map(function(Ne){return{originX:Ne.originX,originY:Ne.originY,overlayX:Ne.overlayX,overlayY:Ne.overlayY,offsetX:Ne.offsetX||ye.offsetX,offsetY:Ne.offsetY||ye.offsetY,panelClass:Ne.panelClass||void 0}});return te.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(pe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var te=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(te),te}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof zt?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var te=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(ye){te.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,X.o)(function(){return te.positionChange.observers.length>0})).subscribe(function(ye){te.positionChange.emit(ye),0===te.positionChange.observers.length&&te._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Je}();sn.\u0275fac=function(Be){return new(Be||sn)(k.Y36(t),k.Y36(k.Rgc),k.Y36(k.s_b),k.Y36(Zt),k.Y36(S.Is,8))},sn.\u0275dir=k.lG2({type:sn,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[k.TTD]});var yn={provide:Zt,deps:[t],useFactory:function qt(Je){return function(){return Je.scrollStrategies.reposition()}}},Kt=(0,j.Z)(function Je(){(0,D.Z)(this,Je)});Kt.\u0275fac=function(Be){return new(Be||Kt)},Kt.\u0275mod=k.oAB({type:Kt}),Kt.\u0275inj=k.cJS({providers:[t,yn],imports:[S.vT,y.eL,L.Cl,L.Cl]});var Xt=function(Je){(0,A.Z)(te,Je);var Be=(0,H.Z)(te);function te(ye,pe){return(0,D.Z)(this,te),Be.call(this,ye,pe)}return(0,j.Z)(te,[{key:"ngOnDestroy",value:function(){(0,G.Z)((0,W.Z)(te.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var pe=this;(0,G.Z)((0,W.Z)(te.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return pe._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(pe){var Ne=this._getEventName();Ne&&(this._fullScreenListener&&this._document.removeEventListener(Ne,this._fullScreenListener),this._document.addEventListener(Ne,pe),this._fullScreenListener=pe)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var pe=this._document;pe.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":pe.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":pe.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":pe.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var pe=this._document;return pe.fullscreenElement||pe.webkitFullscreenElement||pe.mozFullScreenElement||pe.msFullscreenElement||null}}]),te}($t);Xt.\u0275fac=function(Be){return new(Be||Xt)(k.LFG(v.K0),k.LFG(O.t4))},Xt.\u0275prov=k.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"})},925:function(Ae,K,m){"use strict";m.d(K,{Mq:function(){return y},Oy:function(){return $},_i:function(){return T},ht:function(){return F},i$:function(){return b},kV:function(){return N},qK:function(){return L},sA:function(){return X},t4:function(){return P}});var R,G=m(3144),W=m(5671),A=m(5e3),H=m(9808);try{R="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Y){R=!1}var P=(0,G.Z)(function Y(Q){(0,W.Z)(this,Y),this._platformId=Q,this.isBrowser=this._platformId?(0,H.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!R)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});P.\u0275fac=function(Q){return new(Q||P)(A.LFG(A.Lbi))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var x=(0,G.Z)(function Y(){(0,W.Z)(this,Y)});x.\u0275fac=function(Q){return new(Q||x)},x.\u0275mod=A.oAB({type:x}),x.\u0275inj=A.cJS({});var D,v,O,S,M,j=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function L(){if(D)return D;if("object"!=typeof document||!document)return D=new Set(j);var Y=document.createElement("input");return D=new Set(j.filter(function(Q){return Y.setAttribute("type",Q),Y.type===Q}))}function b(Y){return function k(){if(null==v&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return v=!0}}))}finally{v=v||!1}return v}()?Y:!!Y.capture}function y(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1;if("scrollBehavior"in document.documentElement.style)S=!0;else{var Y=Element.prototype.scrollTo;S=!!Y&&!/\{\s*\[native code\]\s*\}/.test(Y.toString())}}return S}function T(){if("object"!=typeof document||!document)return 0;if(null==O){var Y=document.createElement("div"),Q=Y.style;Y.dir="rtl",Q.width="1px",Q.overflow="auto",Q.visibility="hidden",Q.pointerEvents="none",Q.position="absolute";var ne=document.createElement("div"),be=ne.style;be.width="2px",be.height="1px",Y.appendChild(ne),document.body.appendChild(Y),O=0,0===Y.scrollLeft&&(Y.scrollLeft=1,O=0===Y.scrollLeft?1:2),Y.remove()}return O}function N(Y){if(function E(){if(null==M){var Y="undefined"!=typeof document?document.head:null;M=!(!Y||!Y.createShadowRoot&&!Y.attachShadow)}return M}()){var Q=Y.getRootNode?Y.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function F(){for(var Y="undefined"!=typeof document&&document?document.activeElement:null;Y&&Y.shadowRoot;){var Q=Y.shadowRoot.activeElement;if(Q===Y)break;Y=Q}return Y}function X(Y){return Y.composedPath?Y.composedPath()[0]:Y.target}function $(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(Ae,K,m){"use strict";m.d(K,{C5:function(){return T},Pl:function(){return ne},UE:function(){return M},eL:function(){return fe},en:function(){return N},ig:function(){return Y},u0:function(){return X}});var G=m(7326),W=m(3237),A=m(1120),H=m(136),R=m(9388),P=m(5671),x=m(3144),D=m(5e3),j=m(9808);var y=function(){function le(){(0,P.Z)(this,le)}return(0,x.Z)(le,[{key:"attach",value:function(me){return this._attachedHost=me,me.attach(this)}},{key:"detach",value:function(){var me=this._attachedHost;null!=me&&(this._attachedHost=null,me.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(me){this._attachedHost=me}}]),le}(),T=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je,st,Mt,Tt){var Et;return(0,P.Z)(this,me),(Et=ce.call(this)).component=je,Et.viewContainerRef=st,Et.injector=Mt,Et.componentFactoryResolver=Tt,Et}return(0,x.Z)(me)}(y),M=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je,st,Mt,Tt){var Et;return(0,P.Z)(this,me),(Et=ce.call(this)).templateRef=je,Et.viewContainerRef=st,Et.context=Mt,Et.injector=Tt,Et}return(0,x.Z)(me,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(st){var Mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=Mt,(0,W.Z)((0,A.Z)(me.prototype),"attach",this).call(this,st)}},{key:"detach",value:function(){return this.context=void 0,(0,W.Z)((0,A.Z)(me.prototype),"detach",this).call(this)}}]),me}(y),E=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je){var st;return(0,P.Z)(this,me),(st=ce.call(this)).element=je instanceof D.SBq?je.nativeElement:je,st}return(0,x.Z)(me)}(y),N=function(){function le(){(0,P.Z)(this,le),this._isDisposed=!1,this.attachDomPortal=null}return(0,x.Z)(le,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(me){return me instanceof T?(this._attachedPortal=me,this.attachComponentPortal(me)):me instanceof M?(this._attachedPortal=me,this.attachTemplatePortal(me)):this.attachDomPortal&&me instanceof E?(this._attachedPortal=me,this.attachDomPortal(me)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(me){this._disposeFn=me}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),le}(),X=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je,st,Mt,Tt,Et){var Lt,Ze;return(0,P.Z)(this,me),(Ze=ce.call(this)).outletElement=je,Ze._componentFactoryResolver=st,Ze._appRef=Mt,Ze._defaultInjector=Tt,Ze.attachDomPortal=function($t){Ze._document;var Ft=$t.element;Ft.parentNode;var pn=Ze._document.createComment("dom-portal");Ft.parentNode.insertBefore(pn,Ft),Ze.outletElement.appendChild(Ft),Ze._attachedPortal=$t,(0,W.Z)((Lt=(0,G.Z)(Ze),(0,A.Z)(me.prototype)),"setDisposeFn",Lt).call(Lt,function(){pn.parentNode&&pn.parentNode.replaceChild(Ft,pn)})},Ze._document=Et,Ze}return(0,x.Z)(me,[{key:"attachComponentPortal",value:function(st){var Lt,Mt=this,Et=(st.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(st.component);return st.viewContainerRef?(Lt=st.viewContainerRef.createComponent(Et,st.viewContainerRef.length,st.injector||st.viewContainerRef.injector),this.setDisposeFn(function(){return Lt.destroy()})):(Lt=Et.create(st.injector||this._defaultInjector||D.zs3.NULL),this._appRef.attachView(Lt.hostView),this.setDisposeFn(function(){Mt._appRef.viewCount>0&&Mt._appRef.detachView(Lt.hostView),Lt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Lt)),this._attachedPortal=st,Lt}},{key:"attachTemplatePortal",value:function(st){var Mt=this,Tt=st.viewContainerRef,Et=Tt.createEmbeddedView(st.templateRef,st.context,{injector:st.injector});return Et.rootNodes.forEach(function(Lt){return Mt.outletElement.appendChild(Lt)}),Et.detectChanges(),this.setDisposeFn(function(){var Lt=Tt.indexOf(Et);-1!==Lt&&Tt.remove(Lt)}),this._attachedPortal=st,Et}},{key:"dispose",value:function(){(0,W.Z)((0,A.Z)(me.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(st){return st.hostView.rootNodes[0]}}]),me}(N),Y=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je,st){return(0,P.Z)(this,me),ce.call(this,je,st)}return(0,x.Z)(me)}(M);Y.\u0275fac=function(ce){return new(ce||Y)(D.Y36(D.Rgc),D.Y36(D.s_b))},Y.\u0275dir=D.lG2({type:Y,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[D.qOj]});var Q=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(){return(0,P.Z)(this,me),ce.apply(this,arguments)}return(0,x.Z)(me)}(Y);Q.\u0275fac=function(){var le;return function(me){return(le||(le=D.n5z(Q)))(me||Q)}}(),Q.\u0275dir=D.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[D._Bn([{provide:Y,useExisting:Q}]),D.qOj]});var ne=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(je,st,Mt){var Tt,Et;return(0,P.Z)(this,me),(Et=ce.call(this))._componentFactoryResolver=je,Et._viewContainerRef=st,Et._isInitialized=!1,Et.attached=new D.vpe,Et.attachDomPortal=function(Lt){Et._document;var Ze=Lt.element;Ze.parentNode;var $t=Et._document.createComment("dom-portal");Lt.setAttachedHost((0,G.Z)(Et)),Ze.parentNode.insertBefore($t,Ze),Et._getRootNode().appendChild(Ze),Et._attachedPortal=Lt,(0,W.Z)((Tt=(0,G.Z)(Et),(0,A.Z)(me.prototype)),"setDisposeFn",Tt).call(Tt,function(){$t.parentNode&&$t.parentNode.replaceChild(Ze,$t)})},Et._document=Mt,Et}return(0,x.Z)(me,[{key:"portal",get:function(){return this._attachedPortal},set:function(st){this.hasAttached()&&!st&&!this._isInitialized||(this.hasAttached()&&(0,W.Z)((0,A.Z)(me.prototype),"detach",this).call(this),st&&(0,W.Z)((0,A.Z)(me.prototype),"attach",this).call(this,st),this._attachedPortal=st||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,W.Z)((0,A.Z)(me.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(st){st.setAttachedHost(this);var Mt=null!=st.viewContainerRef?st.viewContainerRef:this._viewContainerRef,Et=(st.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(st.component),Lt=Mt.createComponent(Et,Mt.length,st.injector||Mt.injector);return Mt!==this._viewContainerRef&&this._getRootNode().appendChild(Lt.hostView.rootNodes[0]),(0,W.Z)((0,A.Z)(me.prototype),"setDisposeFn",this).call(this,function(){return Lt.destroy()}),this._attachedPortal=st,this._attachedRef=Lt,this.attached.emit(Lt),Lt}},{key:"attachTemplatePortal",value:function(st){var Mt=this;st.setAttachedHost(this);var Tt=this._viewContainerRef.createEmbeddedView(st.templateRef,st.context,{injector:st.injector});return(0,W.Z)((0,A.Z)(me.prototype),"setDisposeFn",this).call(this,function(){return Mt._viewContainerRef.clear()}),this._attachedPortal=st,this._attachedRef=Tt,this.attached.emit(Tt),Tt}},{key:"_getRootNode",value:function(){var st=this._viewContainerRef.element.nativeElement;return st.nodeType===st.ELEMENT_NODE?st:st.parentNode}}]),me}(N);ne.\u0275fac=function(ce){return new(ce||ne)(D.Y36(D._Vd),D.Y36(D.s_b),D.Y36(j.K0))},ne.\u0275dir=D.lG2({type:ne,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[D.qOj]});var be=function(le){(0,H.Z)(me,le);var ce=(0,R.Z)(me);function me(){return(0,P.Z)(this,me),ce.apply(this,arguments)}return(0,x.Z)(me)}(ne);be.\u0275fac=function(){var le;return function(me){return(le||(le=D.n5z(be)))(me||be)}}(),be.\u0275dir=D.lG2({type:be,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[D._Bn([{provide:ne,useExisting:be}]),D.qOj]});var fe=(0,x.Z)(function le(){(0,P.Z)(this,le)});fe.\u0275fac=function(ce){return new(ce||fe)},fe.\u0275mod=D.oAB({type:fe}),fe.\u0275inj=D.cJS({})},9071:function(Ae,K,m){"use strict";m.d(K,{Cl:function(){return tt},PQ:function(){return $t},ZD:function(){return U},mF:function(){return Ze},rL:function(){return Ot}});var G=m(7685),W=m(7762),A=m(7326),H=m(3237),R=m(1120),P=m(136),x=m(9388),D=m(5671),j=m(3144),L=m(3191),v=m(5e3),k=m(8929),b=m(1086),O=m(7451),S=m(3753),y=m(352),T=m(9931),M=m(4096),E=m(4715),N=m(5778),F=m(7568),X=m(9664),$=m(7625),Y=m(1059),Q=m(519),ne=m(7545),be=m(5154),fe=m(9808),de=m(925),le=m(226),ce=m(449),me=["contentWrapper"],st=new v.OlP("VIRTUAL_SCROLL_STRATEGY"),Mt=function(){function Ye(ge,t,Dt){(0,D.Z)(this,Ye),this._scrolledIndexChange=new k.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,N.x)()),this._viewport=null,this._itemSize=ge,this._minBufferPx=t,this._maxBufferPx=Dt}return(0,j.Z)(Ye,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,Dt,Zt){this._itemSize=t,this._minBufferPx=Dt,this._maxBufferPx=Zt,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(t,Dt){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,Dt)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),Dt={start:t.start,end:t.end},Zt=this._viewport.getViewportSize(),zt=this._viewport.getDataLength(),sn=this._viewport.measureScrollOffset(),qt=this._itemSize>0?sn/this._itemSize:0;if(Dt.end>zt){var yn=Math.ceil(Zt/this._itemSize),Kt=Math.max(0,Math.min(qt,zt-yn));qt!=Kt&&(qt=Kt,sn=Kt*this._itemSize,Dt.start=Math.floor(qt)),Dt.end=Math.max(0,Math.min(zt,Dt.start+yn))}var Xt=sn-Dt.start*this._itemSize;if(Xt<this._minBufferPx&&0!=Dt.start){var Je=Math.ceil((this._maxBufferPx-Xt)/this._itemSize);Dt.start=Math.max(0,Dt.start-Je),Dt.end=Math.min(zt,Math.ceil(qt+(Zt+this._minBufferPx)/this._itemSize))}else{var Be=Dt.end*this._itemSize-(sn+Zt);if(Be<this._minBufferPx&&Dt.end!=zt){var te=Math.ceil((this._maxBufferPx-Be)/this._itemSize);te>0&&(Dt.end=Math.min(zt,Dt.end+te),Dt.start=Math.max(0,Math.floor(qt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Dt),this._viewport.setRenderedContentOffset(this._itemSize*Dt.start),this._scrolledIndexChange.next(Math.floor(qt))}}}]),Ye}();var Et=function(){function Ye(){(0,D.Z)(this,Ye),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,j.Z)(Ye,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,L.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,L.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,L.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),Ye}();Et.\u0275fac=function(ge){return new(ge||Et)},Et.\u0275dir=v.lG2({type:Et,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[v._Bn([{provide:st,useFactory:function Tt(Ye){return Ye._scrollStrategy},deps:[(0,v.Gpc)(function(){return Et})]}]),v.TTD]});var Ze=function(){function Ye(ge,t,Dt){(0,D.Z)(this,Ye),this._ngZone=ge,this._platform=t,this._scrolled=new k.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Dt}return(0,j.Z)(Ye,[{key:"register",value:function(t){var Dt=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return Dt._scrolled.next(t)}))}},{key:"deregister",value:function(t){var Dt=this.scrollContainers.get(t);Dt&&(Dt.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,Dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new O.y(function(Zt){t._globalSubscription||t._addGlobalListener();var zt=Dt>0?t._scrolled.pipe((0,F.e)(Dt)).subscribe(Zt):t._scrolled.subscribe(Zt);return t._scrolledCount++,function(){zt.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,b.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(Dt,Zt){return t.deregister(Zt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,Dt){var Zt=this.getAncestorScrollContainers(t);return this.scrolled(Dt).pipe((0,X.h)(function(zt){return!zt||Zt.indexOf(zt)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var Dt=this,Zt=[];return this.scrollContainers.forEach(function(zt,sn){Dt._scrollableContainsElement(sn,t)&&Zt.push(sn)}),Zt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,Dt){var Zt=(0,L.fI)(Dt),zt=t.getElementRef().nativeElement;do{if(Zt==zt)return!0}while(Zt=Zt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var Dt=t._getWindow();return(0,S.R)(Dt.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ye}();Ze.\u0275fac=function(ge){return new(ge||Ze)(v.LFG(v.R0b),v.LFG(de.t4),v.LFG(fe.K0,8))},Ze.\u0275prov=v.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"});var $t=function(){function Ye(ge,t,Dt,Zt){var zt=this;(0,D.Z)(this,Ye),this.elementRef=ge,this.scrollDispatcher=t,this.ngZone=Dt,this.dir=Zt,this._destroyed=new k.xQ,this._elementScrolled=new O.y(function(sn){return zt.ngZone.runOutsideAngular(function(){return(0,S.R)(zt.elementRef.nativeElement,"scroll").pipe((0,$.R)(zt._destroyed)).subscribe(sn)})})}return(0,j.Z)(Ye,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var Dt=this.elementRef.nativeElement,Zt=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=Zt?t.end:t.start),null==t.right&&(t.right=Zt?t.start:t.end),null!=t.bottom&&(t.top=Dt.scrollHeight-Dt.clientHeight-t.bottom),Zt&&0!=(0,de._i)()?(null!=t.left&&(t.right=Dt.scrollWidth-Dt.clientWidth-t.left),2==(0,de._i)()?t.left=t.right:1==(0,de._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=Dt.scrollWidth-Dt.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var Dt=this.elementRef.nativeElement;(0,de.Mq)()?Dt.scrollTo(t):(null!=t.top&&(Dt.scrollTop=t.top),null!=t.left&&(Dt.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var Dt="left",zt=this.elementRef.nativeElement;if("top"==t)return zt.scrollTop;if("bottom"==t)return zt.scrollHeight-zt.clientHeight-zt.scrollTop;var sn=this.dir&&"rtl"==this.dir.value;return"start"==t?t=sn?"right":Dt:"end"==t&&(t=sn?Dt:"right"),sn&&2==(0,de._i)()?t==Dt?zt.scrollWidth-zt.clientWidth-zt.scrollLeft:zt.scrollLeft:sn&&1==(0,de._i)()?t==Dt?zt.scrollLeft+zt.scrollWidth-zt.clientWidth:-zt.scrollLeft:t==Dt?zt.scrollLeft:zt.scrollWidth-zt.clientWidth-zt.scrollLeft}}]),Ye}();$t.\u0275fac=function(ge){return new(ge||$t)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},$t.\u0275dir=v.lG2({type:$t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var Ft=new v.OlP("VIRTUAL_SCROLLABLE"),pn=function(Ye){(0,P.Z)(t,Ye);var ge=(0,x.Z)(t);function t(Dt,Zt,zt,sn){return(0,D.Z)(this,t),ge.call(this,Dt,Zt,zt,sn)}return(0,j.Z)(t,[{key:"measureViewportSize",value:function(Zt){var zt=this.elementRef.nativeElement;return"horizontal"===Zt?zt.clientWidth:zt.clientHeight}}]),t}($t);pn.\u0275fac=function(ge){return new(ge||pn)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},pn.\u0275dir=v.lG2({type:pn,features:[v.qOj]});var Ot=function(){function Ye(ge,t,Dt){var Zt=this;(0,D.Z)(this,Ye),this._platform=ge,this._change=new k.xQ,this._changeListener=function(zt){Zt._change.next(zt)},this._document=Dt,t.runOutsideAngular(function(){if(ge.isBrowser){var zt=Zt._getWindow();zt.addEventListener("resize",Zt._changeListener),zt.addEventListener("orientationchange",Zt._changeListener)}Zt.change().subscribe(function(){return Zt._viewportSize=null})})}return(0,j.Z)(Ye,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),Dt=this.getViewportSize(),Zt=Dt.width,zt=Dt.height;return{top:t.top,left:t.left,bottom:t.top+zt,right:t.left+Zt,height:zt,width:Zt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,Dt=this._getWindow(),Zt=t.documentElement,zt=Zt.getBoundingClientRect();return{top:-zt.top||t.body.scrollTop||Dt.scrollY||Zt.scrollTop||0,left:-zt.left||t.body.scrollLeft||Dt.scrollX||Zt.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,F.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),Ye}();Ot.\u0275fac=function(ge){return new(ge||Ot)(v.LFG(de.t4),v.LFG(v.R0b),v.LFG(fe.K0,8))},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"});var Ct="undefined"!=typeof requestAnimationFrame?y.Z:T.E,We=function(Ye){(0,P.Z)(t,Ye);var ge=(0,x.Z)(t);function t(Dt,Zt,zt,sn,qt,yn,Kt,Xt){var Je;return(0,D.Z)(this,t),(Je=ge.call(this,Dt,yn,zt,qt)).elementRef=Dt,Je._changeDetectorRef=Zt,Je._scrollStrategy=sn,Je.scrollable=Xt,Je._platform=(0,v.f3M)(de.t4),Je._detachedSubject=new k.xQ,Je._renderedRangeSubject=new k.xQ,Je._orientation="vertical",Je._appendOnly=!1,Je.scrolledIndexChange=new O.y(function(Be){return Je._scrollStrategy.scrolledIndexChange.subscribe(function(te){return Promise.resolve().then(function(){return Je.ngZone.run(function(){return Be.next(te)})})})}),Je.renderedRangeStream=Je._renderedRangeSubject,Je._totalContentSize=0,Je._totalContentWidth="",Je._totalContentHeight="",Je._renderedRange={start:0,end:0},Je._dataLength=0,Je._viewportSize=0,Je._renderedContentOffset=0,Je._renderedContentOffsetNeedsRewrite=!1,Je._isChangeDetectionPending=!1,Je._runAfterChangeDetection=[],Je._viewportChanges=M.w.EMPTY,Je._viewportChanges=Kt.change().subscribe(function(){Je.checkViewportSize()}),Je.scrollable||(Je.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),Je.scrollable=(0,A.Z)(Je)),Je}return(0,j.Z)(t,[{key:"orientation",get:function(){return this._orientation},set:function(Zt){this._orientation!==Zt&&(this._orientation=Zt,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Zt){this._appendOnly=(0,L.Ig)(Zt)}},{key:"ngOnInit",value:function(){var Zt=this;!this._platform.isBrowser||(this.scrollable===this&&(0,H.Z)((0,R.Z)(t.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Zt._measureViewportSize(),Zt._scrollStrategy.attach(Zt),Zt.scrollable.elementScrolled().pipe((0,Y.O)(null),(0,F.e)(0,Ct)).subscribe(function(){return Zt._scrollStrategy.onContentScrolled()}),Zt._markChangeDetectionNeeded()})}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,H.Z)((0,R.Z)(t.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Zt){var zt=this;this._forOf,this.ngZone.runOutsideAngular(function(){zt._forOf=Zt,zt._forOf.dataStream.pipe((0,$.R)(zt._detachedSubject)).subscribe(function(sn){var qt=sn.length;qt!==zt._dataLength&&(zt._dataLength=qt,zt._scrollStrategy.onDataLengthChanged()),zt._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]}},{key:"setTotalContentSize",value:function(Zt){this._totalContentSize!==Zt&&(this._totalContentSize=Zt,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Zt){var zt=this;(function _t(Ye,ge){return Ye.start==ge.start&&Ye.end==ge.end})(this._renderedRange,Zt)||(this.appendOnly&&(Zt={start:0,end:Math.max(this._renderedRange.end,Zt.end)}),this._renderedRangeSubject.next(this._renderedRange=Zt),this._markChangeDetectionNeeded(function(){return zt._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Zt){var zt=this,sn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start";Zt=this.appendOnly&&"to-start"===sn?0:Zt;var qt=this.dir&&"rtl"==this.dir.value,yn="horizontal"==this.orientation,Kt=yn?"X":"Y",Xt=yn&&qt?-1:1,Je="translate".concat(Kt,"(").concat(Number(Xt*Zt),"px)");this._renderedContentOffset=Zt,"to-end"===sn&&(Je+=" translate".concat(Kt,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Je&&(this._renderedContentTransform=Je,this._markChangeDetectionNeeded(function(){zt._renderedContentOffsetNeedsRewrite?(zt._renderedContentOffset-=zt.measureRenderedContentSize(),zt._renderedContentOffsetNeedsRewrite=!1,zt.setRenderedContentOffset(zt._renderedContentOffset)):zt._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Zt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",sn={behavior:zt};"horizontal"===this.orientation?sn.start=Zt:sn.top=Zt,this.scrollable.scrollTo(sn)}},{key:"scrollToIndex",value:function(Zt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Zt,zt)}},{key:"measureScrollOffset",value:function(Zt){var sn,zt=this;return sn=this.scrollable==this?function(yn){return(0,H.Z)((0,R.Z)(t.prototype),"measureScrollOffset",zt).call(zt,yn)}:function(yn){return zt.scrollable.measureScrollOffset(yn)},Math.max(0,sn(null!=Zt?Zt:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}},{key:"measureViewportOffset",value:function(Zt){var zt,sn,Kt="rtl"==(null===(zt=this.dir)||void 0===zt?void 0:zt.value);sn="start"==Zt?Kt?"right":"left":"end"==Zt?Kt?"left":"right":Zt||("horizontal"===this.orientation?"left":"top");var Xt=this.scrollable.measureBoundingClientRectWithScrollOffset(sn);return this.elementRef.nativeElement.getBoundingClientRect()[sn]-Xt}},{key:"measureRenderedContentSize",value:function(){var Zt=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Zt.offsetWidth:Zt.offsetHeight}},{key:"measureRangeSize",value:function(Zt){return this._forOf?this._forOf.measureRangeSize(Zt,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}},{key:"_markChangeDetectionNeeded",value:function(Zt){var zt=this;Zt&&this._runAfterChangeDetection.push(Zt),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){zt._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Zt=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Zt._changeDetectorRef.markForCheck()});var zt=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var qt,sn=(0,W.Z)(zt);try{for(sn.s();!(qt=sn.n()).done;){(0,qt.value)()}}catch(Kt){sn.e(Kt)}finally{sn.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),t}(pn);function ut(Ye,ge,t){var Dt=t;if(!Dt.getBoundingClientRect)return 0;var Zt=Dt.getBoundingClientRect();return"horizontal"===Ye?"start"===ge?Zt.left:Zt.right:"start"===ge?Zt.top:Zt.bottom}We.\u0275fac=function(ge){return new(ge||We)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(st,8),v.Y36(le.Is,8),v.Y36(Ze),v.Y36(Ot),v.Y36(Ft,8))},We.\u0275cmp=v.Xpm({type:We,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ge,t){var Dt;(1&ge&&v.Gf(me,7),2&ge)&&(v.iGM(Dt=v.CRH())&&(t._contentWrapper=Dt.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ge,t){2&ge&&v.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[v._Bn([{provide:$t,useFactory:function(ge,t){return ge||t},deps:[[new v.FiY,new v.tBr(Ft)],We]}]),v.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ge,t){1&ge&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA(),v._UZ(3,"div",2)),2&ge&&(v.xp6(3),v.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});var dt=function(){function Ye(ge,t,Dt,Zt,zt,sn){var qt=this;(0,D.Z)(this,Ye),this._viewContainerRef=ge,this._template=t,this._differs=Dt,this._viewRepeater=Zt,this._viewport=zt,this.viewChange=new k.xQ,this._dataSourceChanges=new k.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Y.O)(null),(0,Q.G)(),(0,ne.w)(function(yn){var Kt=(0,G.Z)(yn,2),Xt=Kt[0],Je=Kt[1];return qt._changeDataSource(Xt,Je)}),(0,be.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new k.xQ,this.dataStream.subscribe(function(yn){qt._data=yn,qt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,$.R)(this._destroyed)).subscribe(function(yn){qt._renderedRange=yn,qt.viewChange.observers.length&&sn.run(function(){return qt.viewChange.next(qt._renderedRange)}),qt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,j.Z)(Ye,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,ce.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new ce.P3((0,E.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var Dt=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(Zt,zt){return t(Zt+(Dt._renderedRange?Dt._renderedRange.start:0),zt)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,L.su)(t)}},{key:"measureRangeSize",value:function(t,Dt){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||(t.end,this._renderedRange.end);for(var sn,qt,Zt=t.start-this._renderedRange.start,zt=t.end-t.start,yn=0;yn<zt;yn++){var Kt=this._viewContainerRef.get(yn+Zt);if(Kt&&Kt.rootNodes.length){sn=qt=Kt.rootNodes[0];break}}for(var Xt=zt-1;Xt>-1;Xt--){var Je=this._viewContainerRef.get(Xt+Zt);if(Je&&Je.rootNodes.length){qt=Je.rootNodes[Je.rootNodes.length-1];break}}return sn&&qt?ut(Dt,"end",qt)-ut(Dt,"start",sn):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var t=this;!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(Dt,Zt){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(Dt,Zt):Zt})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,Dt){return t&&t.disconnect(this),this._needsUpdate=!0,Dt?Dt.connect(this):(0,b.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,Dt=this._viewContainerRef.length;Dt--;){var Zt=this._viewContainerRef.get(Dt);Zt.context.index=this._renderedRange.start+Dt,Zt.context.count=t,this._updateComputedContextProperties(Zt.context),Zt.detectChanges()}}},{key:"_applyChanges",value:function(t){var Dt=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(qt,yn,Kt){return Dt._getEmbeddedViewArgs(qt,Kt)},function(qt){return qt.item}),t.forEachIdentityChange(function(qt){Dt._viewContainerRef.get(qt.currentIndex).context.$implicit=qt.item});for(var Zt=this._data.length,zt=this._viewContainerRef.length;zt--;){var sn=this._viewContainerRef.get(zt);sn.context.index=this._renderedRange.start+zt,sn.context.count=Zt,this._updateComputedContextProperties(sn.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,Dt){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Dt}}}]),Ye}();dt.\u0275fac=function(ge){return new(ge||dt)(v.Y36(v.s_b),v.Y36(v.Rgc),v.Y36(v.ZZ4),v.Y36(ce.k),v.Y36(We,4),v.Y36(v.R0b))},dt.\u0275dir=v.lG2({type:dt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[v._Bn([{provide:ce.k,useClass:ce.eX}])]});var Ut=function(Ye){(0,P.Z)(t,Ye);var ge=(0,x.Z)(t);function t(Dt,Zt,zt,sn){return(0,D.Z)(this,t),ge.call(this,Dt,Zt,zt,sn)}return(0,j.Z)(t,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]-this.measureScrollOffset(Zt)}}]),t}(pn);Ut.\u0275fac=function(ge){return new(ge||Ut)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],features:[v._Bn([{provide:Ft,useExisting:Ut}]),v.qOj]});var B=function(Ye){(0,P.Z)(t,Ye);var ge=(0,x.Z)(t);function t(Dt,Zt,zt){var sn;return(0,D.Z)(this,t),(sn=ge.call(this,new v.SBq(document.documentElement),Dt,Zt,zt))._elementScrolled=new O.y(function(qt){return sn.ngZone.runOutsideAngular(function(){return(0,S.R)(document,"scroll").pipe((0,$.R)(sn._destroyed)).subscribe(qt)})}),sn}return(0,j.Z)(t,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]}}]),t}(pn);B.\u0275fac=function(ge){return new(ge||B)(v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},B.\u0275dir=v.lG2({type:B,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],features:[v._Bn([{provide:Ft,useExisting:B}]),v.qOj]});var U=(0,j.Z)(function Ye(){(0,D.Z)(this,Ye)});U.\u0275fac=function(ge){return new(ge||U)},U.\u0275mod=v.oAB({type:U}),U.\u0275inj=v.cJS({});var tt=(0,j.Z)(function Ye(){(0,D.Z)(this,Ye)});tt.\u0275fac=function(ge){return new(ge||tt)},tt.\u0275mod=v.oAB({type:tt}),tt.\u0275inj=v.cJS({imports:[le.vT,U,le.vT,U]})},9808:function(Ae,K,m){"use strict";m.d(K,{Do:function(){return ne},ED:function(){return La},EM:function(){return Hi},HT:function(){return v},JF:function(){return us},K0:function(){return b},Mx:function(){return ki},NF:function(){return ao},O5:function(){return ca},Ov:function(){return Jo},PC:function(){return Wi},RF:function(){return Ai},S$:function(){return $},V_:function(){return y},Ye:function(){return be},b0:function(){return Q},bD:function(){return Qo},ez:function(){return oo},mk:function(){return Ko},n9:function(){return po},q:function(){return j},sg:function(){return Fi},tP:function(){return Ui},w_:function(){return k}});var G=m(7762),W=m(7685),A=m(136),H=m(9388),R=m(3144),P=m(5671),x=m(5e3),D=null;function j(){return D}function v(ie){D||(D=ie)}var k=(0,R.Z)(function ie(){(0,P.Z)(this,ie)}),b=new x.OlP("DocumentToken"),O=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(he){throw new Error("Not implemented")}}]),ie}();O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=x.Yz7({token:O,factory:function(){return function S(){return(0,x.LFG)(T)}()},providedIn:"platform"});var y=new x.OlP("Location Initialized"),T=function(ie){(0,A.Z)(he,ie);var ue=(0,H.Z)(he);function he(Fe){var Qe;return(0,P.Z)(this,he),(Qe=ue.call(this))._doc=Fe,Qe._init(),Qe}return(0,R.Z)(he,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return j().getBaseHref(this._doc)}},{key:"onPopState",value:function(Qe){var Pt=j().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("popstate",Qe,!1),function(){return Pt.removeEventListener("popstate",Qe)}}},{key:"onHashChange",value:function(Qe){var Pt=j().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("hashchange",Qe,!1),function(){return Pt.removeEventListener("hashchange",Qe)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(Qe){this.location.pathname=Qe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(Qe,Pt,an){M()?this._history.pushState(Qe,Pt,an):this.location.hash=an}},{key:"replaceState",value:function(Qe,Pt,an){M()?this._history.replaceState(Qe,Pt,an):this.location.hash=an}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(Qe)}},{key:"getState",value:function(){return this._history.state}}]),he}(O);function M(){return!!window.history.pushState}function N(ie,ue){if(0==ie.length)return ue;if(0==ue.length)return ie;var he=0;return ie.endsWith("/")&&he++,ue.startsWith("/")&&he++,2==he?ie+ue.substring(1):1==he?ie+ue:ie+"/"+ue}function F(ie){var ue=ie.match(/#|\?|$/),he=ue&&ue.index||ie.length,Fe=he-("/"===ie[he-1]?1:0);return ie.slice(0,Fe)+ie.slice(he)}function X(ie){return ie&&"?"!==ie[0]?"?"+ie:ie}T.\u0275fac=function(ue){return new(ue||T)(x.LFG(b))},T.\u0275prov=x.Yz7({token:T,factory:function(){return function E(){return new T((0,x.LFG)(b))}()},providedIn:"platform"});var $=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(he){throw new Error("Not implemented")}}]),ie}();$.\u0275fac=function(ue){return new(ue||$)},$.\u0275prov=x.Yz7({token:$,factory:function(){return(0,x.f3M)(Q)},providedIn:"root"});var Y=new x.OlP("appBaseHref"),Q=function(ie){(0,A.Z)(he,ie);var ue=(0,H.Z)(he);function he(Fe,Qe){var Pt,an,Fn,pr;return(0,P.Z)(this,he),(Pt=ue.call(this))._platformLocation=Fe,Pt._removeListenerFns=[],Pt._baseHref=null!==(pr=null!==(an=null!=Qe?Qe:Pt._platformLocation.getBaseHrefFromDOM())&&void 0!==an?an:null===(Fn=(0,x.f3M)(b).location)||void 0===Fn?void 0:Fn.origin)&&void 0!==pr?pr:"",Pt}return(0,R.Z)(he,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Qe){this._removeListenerFns.push(this._platformLocation.onPopState(Qe),this._platformLocation.onHashChange(Qe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(Qe){return N(this._baseHref,Qe)}},{key:"path",value:function(){var Qe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Pt=this._platformLocation.pathname+X(this._platformLocation.search),an=this._platformLocation.hash;return an&&Qe?"".concat(Pt).concat(an):Pt}},{key:"pushState",value:function(Qe,Pt,an,Fn){var pr=this.prepareExternalUrl(an+X(Fn));this._platformLocation.pushState(Qe,Pt,pr)}},{key:"replaceState",value:function(Qe,Pt,an,Fn){var pr=this.prepareExternalUrl(an+X(Fn));this._platformLocation.replaceState(Qe,Pt,pr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,an,Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(an=(Pt=this._platformLocation).historyGo)||void 0===an||an.call(Pt,Qe)}}]),he}($);Q.\u0275fac=function(ue){return new(ue||Q)(x.LFG(O),x.LFG(Y,8))},Q.\u0275prov=x.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});var ne=function(ie){(0,A.Z)(he,ie);var ue=(0,H.Z)(he);function he(Fe,Qe){var Pt;return(0,P.Z)(this,he),(Pt=ue.call(this))._platformLocation=Fe,Pt._baseHref="",Pt._removeListenerFns=[],null!=Qe&&(Pt._baseHref=Qe),Pt}return(0,R.Z)(he,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Qe){this._removeListenerFns.push(this._platformLocation.onPopState(Qe),this._platformLocation.onHashChange(Qe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var Pt=this._platformLocation.hash;return null==Pt&&(Pt="#"),Pt.length>0?Pt.substring(1):Pt}},{key:"prepareExternalUrl",value:function(Qe){var Pt=N(this._baseHref,Qe);return Pt.length>0?"#"+Pt:Pt}},{key:"pushState",value:function(Qe,Pt,an,Fn){var pr=this.prepareExternalUrl(an+X(Fn));0==pr.length&&(pr=this._platformLocation.pathname),this._platformLocation.pushState(Qe,Pt,pr)}},{key:"replaceState",value:function(Qe,Pt,an,Fn){var pr=this.prepareExternalUrl(an+X(Fn));0==pr.length&&(pr=this._platformLocation.pathname),this._platformLocation.replaceState(Qe,Pt,pr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,an,Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(an=(Pt=this._platformLocation).historyGo)||void 0===an||an.call(Pt,Qe)}}]),he}($);ne.\u0275fac=function(ue){return new(ue||ne)(x.LFG(O),x.LFG(Y,8))},ne.\u0275prov=x.Yz7({token:ne,factory:ne.\u0275fac});var be=function(){function ie(ue){var he=this;(0,P.Z)(this,ie),this._subject=new x.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ue;var Fe=this._locationStrategy.getBaseHref();this._baseHref=F(le(Fe)),this._locationStrategy.onPopState(function(Qe){he._subject.emit({url:he.path(!0),pop:!0,state:Qe.state,type:Qe.type})})}return(0,R.Z)(ie,[{key:"ngOnDestroy",value:function(){var he;null===(he=this._urlChangeSubscription)||void 0===he||he.unsubscribe(),this._urlChangeListeners=[]}},{key:"path",value:function(){var he=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._locationStrategy.path(he))}},{key:"getState",value:function(){return this._locationStrategy.getState()}},{key:"isCurrentPathEqualTo",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(he+X(Fe))}},{key:"normalize",value:function(he){return ie.stripTrailingSlash(function de(ie,ue){return ie&&ue.startsWith(ie)?ue.substring(ie.length):ue}(this._baseHref,le(he)))}},{key:"prepareExternalUrl",value:function(he){return he&&"/"!==he[0]&&(he="/"+he),this._locationStrategy.prepareExternalUrl(he)}},{key:"go",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.pushState(Qe,"",he,Fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+X(Fe)),Qe)}},{key:"replaceState",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.replaceState(Qe,"",he,Fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+X(Fe)),Qe)}},{key:"forward",value:function(){this._locationStrategy.forward()}},{key:"back",value:function(){this._locationStrategy.back()}},{key:"historyGo",value:function(){var Fe,Qe,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Qe=(Fe=this._locationStrategy).historyGo)||void 0===Qe||Qe.call(Fe,he)}},{key:"onUrlChange",value:function(he){var Fe=this;return this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(Qe){Fe._notifyUrlChangeListeners(Qe.url,Qe.state)})),function(){var Qe,Pt=Fe._urlChangeListeners.indexOf(he);Fe._urlChangeListeners.splice(Pt,1),0===Fe._urlChangeListeners.length&&(null===(Qe=Fe._urlChangeSubscription)||void 0===Qe||Qe.unsubscribe(),Fe._urlChangeSubscription=null)}}},{key:"_notifyUrlChangeListeners",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Fe=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(Qe){return Qe(he,Fe)})}},{key:"subscribe",value:function(he,Fe,Qe){return this._subject.subscribe({next:he,error:Fe,complete:Qe})}}]),ie}();function le(ie){return ie.replace(/\/index.html$/,"")}be.normalizeQueryParams=X,be.joinWithSlash=N,be.stripTrailingSlash=F,be.\u0275fac=function(ue){return new(ue||be)(x.LFG($))},be.\u0275prov=x.Yz7({token:be,factory:function(){return function fe(){return new be((0,x.LFG)($))}()},providedIn:"root"});var me,ie,je,st,Mt,Tt,Et,Lt,ce={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};function Ct(ie,ue){return sn((0,x.cg1)(ie)[x.wAp.DateFormat],ue)}function We(ie,ue){return sn((0,x.cg1)(ie)[x.wAp.TimeFormat],ue)}function ut(ie,ue){return sn((0,x.cg1)(ie)[x.wAp.DateTimeFormat],ue)}function dt(ie,ue){var he=(0,x.cg1)(ie),Fe=he[x.wAp.NumberSymbols][ue];if(void 0===Fe){if(ue===Et.CurrencyDecimal)return he[x.wAp.NumberSymbols][Et.Decimal];if(ue===Et.CurrencyGroup)return he[x.wAp.NumberSymbols][Et.Group]}return Fe}function Ut(ie,ue){return(0,x.cg1)(ie)[x.wAp.NumberFormats][ue]}function Ye(ie){return(0,x.cg1)(ie)[x.wAp.Currencies]}(ie=me||(me={}))[ie.Decimal=0]="Decimal",ie[ie.Percent=1]="Percent",ie[ie.Currency=2]="Currency",ie[ie.Scientific=3]="Scientific",function(ie){ie[ie.Zero=0]="Zero",ie[ie.One=1]="One",ie[ie.Two=2]="Two",ie[ie.Few=3]="Few",ie[ie.Many=4]="Many",ie[ie.Other=5]="Other"}(je||(je={})),function(ie){ie[ie.Format=0]="Format",ie[ie.Standalone=1]="Standalone"}(st||(st={})),function(ie){ie[ie.Narrow=0]="Narrow",ie[ie.Abbreviated=1]="Abbreviated",ie[ie.Wide=2]="Wide",ie[ie.Short=3]="Short"}(Mt||(Mt={})),function(ie){ie[ie.Short=0]="Short",ie[ie.Medium=1]="Medium",ie[ie.Long=2]="Long",ie[ie.Full=3]="Full"}(Tt||(Tt={})),function(ie){ie[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup"}(Et||(Et={})),function(ie){ie[ie.Sunday=0]="Sunday",ie[ie.Monday=1]="Monday",ie[ie.Tuesday=2]="Tuesday",ie[ie.Wednesday=3]="Wednesday",ie[ie.Thursday=4]="Thursday",ie[ie.Friday=5]="Friday",ie[ie.Saturday=6]="Saturday"}(Lt||(Lt={}));var ge=x.kL8;function t(ie){if(!ie[x.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ie[x.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function sn(ie,ue){for(var he=ue;he>-1;he--)if(void 0!==ie[he])return ie[he];throw new Error("Locale data API: locale data undefined")}function qt(ie){var ue=ie.split(":"),he=(0,W.Z)(ue,2);return{hours:+he[0],minutes:+he[1]}}function yn(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",Fe=Ye(he)[ie]||ce[ie]||[],Qe=Fe[1];return"narrow"===ue&&"string"==typeof Qe?Qe:Fe[0]||ie}var ye,pe,Ne,Je=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},te=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function lt(ie,ue,he,Fe){var Qe=function kt(ie){if(gt(ie))return ie;if("number"==typeof ie&&!isNaN(ie))return new Date(ie);if("string"==typeof ie){if(ie=ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ie)){var ue=ie.split("-").map(function(li){return+li}),he=(0,W.Z)(ue,3),Fe=he[0],Qe=he[1],Pt=void 0===Qe?1:Qe,an=he[2];return ct(Fe,Pt-1,void 0===an?1:an)}var kr,pr=parseFloat(ie);if(!isNaN(ie-pr))return new Date(pr);if(kr=ie.match(Je))return function $e(ie){var ue=new Date(0),he=0,Fe=0,Qe=ie[8]?ue.setUTCFullYear:ue.setFullYear,Pt=ie[8]?ue.setUTCHours:ue.setHours;ie[9]&&(he=Number(ie[9]+ie[10]),Fe=Number(ie[9]+ie[11])),Qe.call(ue,Number(ie[1]),Number(ie[2])-1,Number(ie[3]));var an=Number(ie[4]||0)-he,Fn=Number(ie[5]||0)-Fe,pr=Number(ie[6]||0),kr=Math.floor(1e3*parseFloat("0."+(ie[7]||0)));return Pt.call(ue,an,Fn,pr,kr),ue}(kr)}var Qr=new Date(ie);if(!gt(Qr))throw new Error('Unable to convert "'.concat(ie,'" into a date'));return Qr}(ie);ue=Bt(he,ue)||ue;for(var Fn,an=[];ue;){if(!(Fn=te.exec(ue))){an.push(ue);break}var pr=(an=an.concat(Fn.slice(1))).pop();if(!pr)break;ue=pr}var kr=Qe.getTimezoneOffset();Fe&&(kr=dn(Fe,kr),Qe=function Yt(ie,ue,he){var Fe=he?-1:1,Qe=ie.getTimezoneOffset(),Pt=dn(ue,Qe);return function Hn(ie,ue){return(ie=new Date(ie.getTime())).setMinutes(ie.getMinutes()+ue),ie}(ie,Fe*(Pt-Qe))}(Qe,Fe,!0));var Qr="";return an.forEach(function(li){var Ao=function vt(ie){if(qe[ie])return qe[ie];var ue;switch(ie){case"G":case"GG":case"GGG":ue=hn(Ne.Eras,Mt.Abbreviated);break;case"GGGG":ue=hn(Ne.Eras,Mt.Wide);break;case"GGGGG":ue=hn(Ne.Eras,Mt.Narrow);break;case"y":ue=ln(pe.FullYear,1,0,!1,!0);break;case"yy":ue=ln(pe.FullYear,2,0,!0,!0);break;case"yyy":ue=ln(pe.FullYear,3,0,!1,!0);break;case"yyyy":ue=ln(pe.FullYear,4,0,!1,!0);break;case"Y":ue=Re(1);break;case"YY":ue=Re(2,!0);break;case"YYY":ue=Re(3);break;case"YYYY":ue=Re(4);break;case"M":case"L":ue=ln(pe.Month,1,1);break;case"MM":case"LL":ue=ln(pe.Month,2,1);break;case"MMM":ue=hn(Ne.Months,Mt.Abbreviated);break;case"MMMM":ue=hn(Ne.Months,Mt.Wide);break;case"MMMMM":ue=hn(Ne.Months,Mt.Narrow);break;case"LLL":ue=hn(Ne.Months,Mt.Abbreviated,st.Standalone);break;case"LLLL":ue=hn(Ne.Months,Mt.Wide,st.Standalone);break;case"LLLLL":ue=hn(Ne.Months,Mt.Narrow,st.Standalone);break;case"w":ue=Ke(1);break;case"ww":ue=Ke(2);break;case"W":ue=Ke(1,!0);break;case"d":ue=ln(pe.Date,1);break;case"dd":ue=ln(pe.Date,2);break;case"c":case"cc":ue=ln(pe.Day,1);break;case"ccc":ue=hn(Ne.Days,Mt.Abbreviated,st.Standalone);break;case"cccc":ue=hn(Ne.Days,Mt.Wide,st.Standalone);break;case"ccccc":ue=hn(Ne.Days,Mt.Narrow,st.Standalone);break;case"cccccc":ue=hn(Ne.Days,Mt.Short,st.Standalone);break;case"E":case"EE":case"EEE":ue=hn(Ne.Days,Mt.Abbreviated);break;case"EEEE":ue=hn(Ne.Days,Mt.Wide);break;case"EEEEE":ue=hn(Ne.Days,Mt.Narrow);break;case"EEEEEE":ue=hn(Ne.Days,Mt.Short);break;case"a":case"aa":case"aaa":ue=hn(Ne.DayPeriods,Mt.Abbreviated);break;case"aaaa":ue=hn(Ne.DayPeriods,Mt.Wide);break;case"aaaaa":ue=hn(Ne.DayPeriods,Mt.Narrow);break;case"b":case"bb":case"bbb":ue=hn(Ne.DayPeriods,Mt.Abbreviated,st.Standalone,!0);break;case"bbbb":ue=hn(Ne.DayPeriods,Mt.Wide,st.Standalone,!0);break;case"bbbbb":ue=hn(Ne.DayPeriods,Mt.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":ue=hn(Ne.DayPeriods,Mt.Abbreviated,st.Format,!0);break;case"BBBB":ue=hn(Ne.DayPeriods,Mt.Wide,st.Format,!0);break;case"BBBBB":ue=hn(Ne.DayPeriods,Mt.Narrow,st.Format,!0);break;case"h":ue=ln(pe.Hours,1,-12);break;case"hh":ue=ln(pe.Hours,2,-12);break;case"H":ue=ln(pe.Hours,1);break;case"HH":ue=ln(pe.Hours,2);break;case"m":ue=ln(pe.Minutes,1);break;case"mm":ue=ln(pe.Minutes,2);break;case"s":ue=ln(pe.Seconds,1);break;case"ss":ue=ln(pe.Seconds,2);break;case"S":ue=ln(pe.FractionalSeconds,1);break;case"SS":ue=ln(pe.FractionalSeconds,2);break;case"SSS":ue=ln(pe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ue=At(ye.Short);break;case"ZZZZZ":ue=At(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ue=At(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ue=At(ye.Long);break;default:return null}return qe[ie]=ue,ue}(li);Qr+=Ao?Ao(Qe,he,kr):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Qr}function ct(ie,ue,he){var Fe=new Date(0);return Fe.setFullYear(ie,ue,he),Fe.setHours(0,0,0),Fe}function Bt(ie,ue){var he=function Ze(ie){return(0,x.cg1)(ie)[x.wAp.LocaleId]}(ie);if(Be[he]=Be[he]||{},Be[he][ue])return Be[he][ue];var Fe="";switch(ue){case"shortDate":Fe=Ct(ie,Tt.Short);break;case"mediumDate":Fe=Ct(ie,Tt.Medium);break;case"longDate":Fe=Ct(ie,Tt.Long);break;case"fullDate":Fe=Ct(ie,Tt.Full);break;case"shortTime":Fe=We(ie,Tt.Short);break;case"mediumTime":Fe=We(ie,Tt.Medium);break;case"longTime":Fe=We(ie,Tt.Long);break;case"fullTime":Fe=We(ie,Tt.Full);break;case"short":var Qe=Bt(ie,"shortTime"),Pt=Bt(ie,"shortDate");Fe=jt(ut(ie,Tt.Short),[Qe,Pt]);break;case"medium":var an=Bt(ie,"mediumTime"),Fn=Bt(ie,"mediumDate");Fe=jt(ut(ie,Tt.Medium),[an,Fn]);break;case"long":var pr=Bt(ie,"longTime"),kr=Bt(ie,"longDate");Fe=jt(ut(ie,Tt.Long),[pr,kr]);break;case"full":var Qr=Bt(ie,"fullTime"),li=Bt(ie,"fullDate");Fe=jt(ut(ie,Tt.Full),[Qr,li])}return Fe&&(Be[he][ue]=Fe),Fe}function jt(ie,ue){return ue&&(ie=ie.replace(/\{([^}]+)}/g,function(he,Fe){return null!=ue&&Fe in ue?ue[Fe]:he})),ie}function on(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",Fe=arguments.length>3?arguments[3]:void 0,Qe=arguments.length>4?arguments[4]:void 0,Pt="";(ie<0||Qe&&ie<=0)&&(Qe?ie=1-ie:(ie=-ie,Pt=he));for(var an=String(ie);an.length<ue;)an="0"+an;return Fe&&(an=an.slice(an.length-ue)),Pt+an}function vn(ie,ue){return on(ie,3).substring(0,ue)}function ln(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],Qe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(Pt,an){var Fn=En(ie,Pt);if((he>0||Fn>-he)&&(Fn+=he),ie===pe.Hours)0===Fn&&-12===he&&(Fn=12);else if(ie===pe.FractionalSeconds)return vn(Fn,ue);var pr=dt(an,Et.MinusSign);return on(Fn,ue,pr,Fe,Qe)}}function En(ie,ue){switch(ie){case pe.FullYear:return ue.getFullYear();case pe.Month:return ue.getMonth();case pe.Date:return ue.getDate();case pe.Hours:return ue.getHours();case pe.Minutes:return ue.getMinutes();case pe.Seconds:return ue.getSeconds();case pe.FractionalSeconds:return ue.getMilliseconds();case pe.Day:return ue.getDay();default:throw new Error('Unknown DateType value "'.concat(ie,'".'))}}function hn(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st.Format,Fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(Qe,Pt){return mn(Qe,Pt,ie,ue,he,Fe)}}function mn(ie,ue,he,Fe,Qe,Pt){switch(he){case Ne.Months:return function pn(ie,ue,he){var Fe=(0,x.cg1)(ie),Pt=sn([Fe[x.wAp.MonthsFormat],Fe[x.wAp.MonthsStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[ie.getMonth()];case Ne.Days:return function Ft(ie,ue,he){var Fe=(0,x.cg1)(ie),Pt=sn([Fe[x.wAp.DaysFormat],Fe[x.wAp.DaysStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[ie.getDay()];case Ne.DayPeriods:var an=ie.getHours(),Fn=ie.getMinutes();if(Pt){var pr=function Dt(ie){var ue=(0,x.cg1)(ie);return t(ue),(ue[x.wAp.ExtraData][2]||[]).map(function(Fe){return"string"==typeof Fe?qt(Fe):[qt(Fe[0]),qt(Fe[1])]})}(ue),kr=function Zt(ie,ue,he){var Fe=(0,x.cg1)(ie);t(Fe);var Pt=sn([Fe[x.wAp.ExtraData][0],Fe[x.wAp.ExtraData][1]],ue)||[];return sn(Pt,he)||[]}(ue,Qe,Fe),Qr=pr.findIndex(function(Ao){if(Array.isArray(Ao)){var da=(0,W.Z)(Ao,2),As=da[0],oa=da[1],Qs=an>=As.hours&&Fn>=As.minutes,Si=an<oa.hours||an===oa.hours&&Fn<oa.minutes;if(As.hours<oa.hours){if(Qs&&Si)return!0}else if(Qs||Si)return!0}else if(Ao.hours===an&&Ao.minutes===Fn)return!0;return!1});if(-1!==Qr)return kr[Qr]}return function $t(ie,ue,he){var Fe=(0,x.cg1)(ie),Pt=sn([Fe[x.wAp.DayPeriodsFormat],Fe[x.wAp.DayPeriodsStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[an<12?0:1];case Ne.Eras:return function nt(ie,ue){return sn((0,x.cg1)(ie)[x.wAp.Eras],ue)}(ue,Fe)[ie.getFullYear()<=0?0:1];default:var li=he;throw new Error("unexpected translation type ".concat(li))}}function At(ie){return function(ue,he,Fe){var Qe=-1*Fe,Pt=dt(he,Et.MinusSign),an=Qe>0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(ie){case ye.Short:return(Qe>=0?"+":"")+on(an,2,Pt)+on(Math.abs(Qe%60),2,Pt);case ye.ShortGMT:return"GMT"+(Qe>=0?"+":"")+on(an,1,Pt);case ye.Long:return"GMT"+(Qe>=0?"+":"")+on(an,2,Pt)+":"+on(Math.abs(Qe%60),2,Pt);case ye.Extended:return 0===Fe?"Z":(Qe>=0?"+":"")+on(an,2,Pt)+":"+on(Math.abs(Qe%60),2,Pt);default:throw new Error('Unknown zone width "'.concat(ie,'"'))}}}!function(ie){ie[ie.Short=0]="Short",ie[ie.ShortGMT=1]="ShortGMT",ie[ie.Long=2]="Long",ie[ie.Extended=3]="Extended"}(ye||(ye={})),function(ie){ie[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day"}(pe||(pe={})),function(ie){ie[ie.DayPeriods=0]="DayPeriods",ie[ie.Days=1]="Days",ie[ie.Months=2]="Months",ie[ie.Eras=3]="Eras"}(Ne||(Ne={}));function St(ie){var ue=ct(ie,0,1).getDay();return ct(ie,0,1+(ue<=4?4:11)-ue)}function ze(ie){return ct(ie.getFullYear(),ie.getMonth(),ie.getDate()+(4-ie.getDay()))}function Ke(ie){var ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(he,Fe){var Qe;if(ue){var Pt=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,an=he.getDate();Qe=1+Math.floor((an+Pt)/7)}else{var Fn=ze(he),pr=St(Fn.getFullYear()),kr=Fn.getTime()-pr.getTime();Qe=1+Math.round(kr/6048e5)}return on(Qe,ie,dt(Fe,Et.MinusSign))}}function Re(ie){var ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(he,Fe){return on(ze(he).getFullYear(),ie,dt(Fe,Et.MinusSign),ue)}}var qe={};function dn(ie,ue){ie=ie.replace(/:/g,"");var he=Date.parse("Jan 01, 1970 00:00:00 "+ie)/6e4;return isNaN(he)?ue:he}function gt(ie){return ie instanceof Date&&!isNaN(ie.valueOf())}var yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Vn="0";function Pa(ie,ue,he,Fe,Qe,Pt){var an=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Fn="",pr=!1;if(isFinite(ie)){var kr=Ys(ie);an&&(kr=ri(kr));var Qr=ue.minInt,li=ue.minFrac,Ao=ue.maxFrac;if(Pt){var da=Pt.match(yt);if(null===da)throw new Error("".concat(Pt," is not a valid digit info"));var As=da[1],oa=da[3],Qs=da[5];null!=As&&(Qr=Yn(As)),null!=oa&&(li=Yn(oa)),null!=Qs?Ao=Yn(Qs):null!=oa&&li>Ao&&(Ao=li)}zi(kr,li,Ao);var Si=kr.digits,Qu=kr.integerLen,Go=kr.exponent,Xu=[];for(pr=Si.every(function(bo){return!bo});Qu<Qr;Qu++)Si.unshift(0);for(;Qu<0;Qu++)Si.unshift(0);Qu>0?Xu=Si.splice(Qu,Si.length):(Xu=Si,Si=[0]);var $u=[];for(Si.length>=ue.lgSize&&$u.unshift(Si.splice(-ue.lgSize,Si.length).join(""));Si.length>ue.gSize;)$u.unshift(Si.splice(-ue.gSize,Si.length).join(""));Si.length&&$u.unshift(Si.join("")),Fn=$u.join(dt(he,Fe)),Xu.length&&(Fn+=dt(he,Qe)+Xu.join("")),Go&&(Fn+=dt(he,Et.Exponential)+"+"+Go)}else Fn=dt(he,Et.Infinity);return Fn=ie<0&&!pr?ue.negPre+Fn+ue.negSuf:ue.posPre+Fn+ue.posSuf}function Ra(ie,ue,he,Fe,Qe){var an=ta(Ut(ue,me.Currency),dt(ue,Et.MinusSign));return an.minFrac=function Xt(ie){var ue,he=ce[ie];return he&&(ue=he[2]),"number"==typeof ue?ue:2}(Fe),an.maxFrac=an.minFrac,Pa(ie,an,ue,Et.CurrencyGroup,Et.CurrencyDecimal,Qe).replace("\xa4",he).replace("\xa4","").trim()}function ta(ie){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",he={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Fe=ie.split(";"),Qe=Fe[0],Pt=Fe[1],an=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf(Vn)+1),Qe.substring(Qe.lastIndexOf(Vn)+1)],Fn=an[0],pr=an[1]||"";he.posPre=Fn.substring(0,Fn.indexOf("#"));for(var kr=0;kr<pr.length;kr++){var Qr=pr.charAt(kr);Qr===Vn?he.minFrac=he.maxFrac=kr+1:"#"===Qr?he.maxFrac=kr+1:he.posSuf+=Qr}var li=Fn.split(",");if(he.gSize=li[1]?li[1].length:0,he.lgSize=li[2]||li[1]?(li[2]||li[1]).length:0,Pt){var Ao=Qe.length-he.posPre.length-he.posSuf.length,da=Pt.indexOf("#");he.negPre=Pt.substring(0,da).replace(/'/g,""),he.negSuf=Pt.slice(da+Ao).replace(/'/g,"")}else he.negPre=ue+he.posPre,he.negSuf=he.posSuf;return he}function ri(ie){if(0===ie.digits[0])return ie;var ue=ie.digits.length-ie.integerLen;return ie.exponent?ie.exponent+=2:(0===ue?ie.digits.push(0,0):1===ue&&ie.digits.push(0),ie.integerLen+=2),ie}function Ys(ie){var Fe,Qe,Pt,an,Fn,ue=Math.abs(ie)+"",he=0;for((Qe=ue.indexOf("."))>-1&&(ue=ue.replace(".","")),(Pt=ue.search(/e/i))>0?(Qe<0&&(Qe=Pt),Qe+=+ue.slice(Pt+1),ue=ue.substring(0,Pt)):Qe<0&&(Qe=ue.length),Pt=0;ue.charAt(Pt)===Vn;Pt++);if(Pt===(Fn=ue.length))Fe=[0],Qe=1;else{for(Fn--;ue.charAt(Fn)===Vn;)Fn--;for(Qe-=Pt,Fe=[],an=0;Pt<=Fn;Pt++,an++)Fe[an]=Number(ue.charAt(Pt))}return Qe>22&&(Fe=Fe.splice(0,21),he=Qe-1,Qe=1),{digits:Fe,exponent:he,integerLen:Qe}}function zi(ie,ue,he){if(ue>he)throw new Error("The minimum number of digits after fraction (".concat(ue,") is higher than the maximum (").concat(he,")."));var Fe=ie.digits,Qe=Fe.length-ie.integerLen,Pt=Math.min(Math.max(ue,Qe),he),an=Pt+ie.integerLen,Fn=Fe[an];if(an>0){Fe.splice(Math.max(ie.integerLen,an));for(var pr=an;pr<Fe.length;pr++)Fe[pr]=0}else{Qe=Math.max(0,Qe),ie.integerLen=1,Fe.length=Math.max(1,an=Pt+1),Fe[0]=0;for(var kr=1;kr<an;kr++)Fe[kr]=0}if(Fn>=5)if(an-1<0){for(var Qr=0;Qr>an;Qr--)Fe.unshift(0),ie.integerLen++;Fe.unshift(1),ie.integerLen++}else Fe[an-1]++;for(;Qe<Math.max(0,Pt);Qe++)Fe.push(0);var li=0!==Pt,Ao=ue+ie.integerLen,da=Fe.reduceRight(function(As,oa,Qs,Si){return oa+=As,Si[Qs]=oa<10?oa:oa-10,li&&(0===Si[Qs]&&Qs>=Ao?Si.pop():li=!1),oa>=10?1:0},0);da&&(Fe.unshift(da),ie.integerLen++)}function Yn(ie){var ue=parseInt(ie);if(isNaN(ue))throw new Error("Invalid integer literal when parsing "+ie);return ue}var br=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});function jr(ie,ue,he,Fe){var Qe="=".concat(ie);if(ue.indexOf(Qe)>-1||(Qe=he.getPluralCategory(ie,Fe),ue.indexOf(Qe)>-1))return Qe;if(ue.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ie,'"'))}br.\u0275fac=function(ue){return new(ue||br)},br.\u0275prov=x.Yz7({token:br,factory:function(ue){var Fe,he=null;return ue?he=new ue:(Fe=x.LFG(x.soG),he=new Ni(Fe)),he},providedIn:"root"});var Ni=function(ie){(0,A.Z)(he,ie);var ue=(0,H.Z)(he);function he(Fe){var Qe;return(0,P.Z)(this,he),(Qe=ue.call(this)).locale=Fe,Qe}return(0,R.Z)(he,[{key:"getPluralCategory",value:function(Qe,Pt){switch(ge(Pt||this.locale)(Qe)){case je.Zero:return"zero";case je.One:return"one";case je.Two:return"two";case je.Few:return"few";case je.Many:return"many";default:return"other"}}}]),he}(br);function ki(ie,ue){ue=encodeURIComponent(ue);var Fe,he=(0,G.Z)(ie.split(";"));try{for(he.s();!(Fe=he.n()).done;){var Qe=Fe.value,Pt=Qe.indexOf("="),an=-1==Pt?[Qe,""]:[Qe.slice(0,Pt),Qe.slice(Pt+1)],Fn=(0,W.Z)(an,2),pr=Fn[0],kr=Fn[1];if(pr.trim()===ue)return decodeURIComponent(kr)}}catch(Qr){he.e(Qr)}finally{he.f()}return null}Ni.\u0275fac=function(ue){return new(ue||Ni)(x.LFG(x.soG))},Ni.\u0275prov=x.Yz7({token:Ni,factory:Ni.\u0275fac});var Ko=function(){function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this._iterableDiffers=ue,this._keyValueDiffers=he,this._ngEl=Fe,this._renderer=Qe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,R.Z)(ie,[{key:"klass",set:function(he){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof he?he.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(he){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof he?he.split(/\s+/):he,this._rawClass&&((0,x.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var he=this._iterableDiffer.diff(this._rawClass);he&&this._applyIterableChanges(he)}else if(this._keyValueDiffer){var Fe=this._keyValueDiffer.diff(this._rawClass);Fe&&this._applyKeyValueChanges(Fe)}}},{key:"_applyKeyValueChanges",value:function(he){var Fe=this;he.forEachAddedItem(function(Qe){return Fe._toggleClass(Qe.key,Qe.currentValue)}),he.forEachChangedItem(function(Qe){return Fe._toggleClass(Qe.key,Qe.currentValue)}),he.forEachRemovedItem(function(Qe){Qe.previousValue&&Fe._toggleClass(Qe.key,!1)})}},{key:"_applyIterableChanges",value:function(he){var Fe=this;he.forEachAddedItem(function(Qe){if("string"!=typeof Qe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,x.AaK)(Qe.item)));Fe._toggleClass(Qe.item,!0)}),he.forEachRemovedItem(function(Qe){return Fe._toggleClass(Qe.item,!1)})}},{key:"_applyClasses",value:function(he){var Fe=this;he&&(Array.isArray(he)||he instanceof Set?he.forEach(function(Qe){return Fe._toggleClass(Qe,!0)}):Object.keys(he).forEach(function(Qe){return Fe._toggleClass(Qe,!!he[Qe])}))}},{key:"_removeClasses",value:function(he){var Fe=this;he&&(Array.isArray(he)||he instanceof Set?he.forEach(function(Qe){return Fe._toggleClass(Qe,!1)}):Object.keys(he).forEach(function(Qe){return Fe._toggleClass(Qe,!1)}))}},{key:"_toggleClass",value:function(he,Fe){var Qe=this;(he=he.trim())&&he.split(/\s+/g).forEach(function(Pt){Fe?Qe._renderer.addClass(Qe._ngEl.nativeElement,Pt):Qe._renderer.removeClass(Qe._ngEl.nativeElement,Pt)})}}]),ie}();Ko.\u0275fac=function(ue){return new(ue||Ko)(x.Y36(x.ZZ4),x.Y36(x.aQg),x.Y36(x.SBq),x.Y36(x.Qsj))},Ko.\u0275dir=x.lG2({type:Ko,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var qr=function(){function ie(ue){(0,P.Z)(this,ie),this._viewContainerRef=ue,this.ngComponentOutlet=null}return(0,R.Z)(ie,[{key:"ngOnChanges",value:function(he){var Fe=this._viewContainerRef,Qe=this.ngComponentOutletNgModule,Pt=this.ngComponentOutletNgModuleFactory;if(Fe.clear(),this._componentRef=void 0,this.ngComponentOutlet){var an=this.ngComponentOutletInjector||Fe.parentInjector;(he.ngComponentOutletNgModule||he.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Qe?(0,x.Lck)(Qe,Bi(an)):Pt?Pt.create(Bi(an)):void 0),this._componentRef=Fe.createComponent(this.ngComponentOutlet,{index:Fe.length,injector:an,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ie}();function Bi(ie){return ie.get(x.h0i).injector}qr.\u0275fac=function(ue){return new(ue||qr)(x.Y36(x.s_b))},qr.\u0275dir=x.lG2({type:qr,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[x.TTD]});var Ar=function(){function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this.$implicit=ue,this.ngForOf=he,this.index=Fe,this.count=Qe}return(0,R.Z)(ie,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),ie}(),Fi=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this._viewContainer=ue,this._template=he,this._differs=Fe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,R.Z)(ie,[{key:"ngForOf",set:function(he){this._ngForOf=he,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(he){this._trackByFn=he}},{key:"ngForTemplate",set:function(he){he&&(this._template=he)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var he=this._ngForOf;if(!this._differ&&he)this._differ=this._differs.find(he).create(this.ngForTrackBy)}if(this._differ){var Qe=this._differ.diff(this._ngForOf);Qe&&this._applyChanges(Qe)}}},{key:"_applyChanges",value:function(he){var Fe=this,Qe=this._viewContainer;he.forEachOperation(function(kr,Qr,li){if(null==kr.previousIndex)Qe.createEmbeddedView(Fe._template,new Ar(kr.item,Fe._ngForOf,-1,-1),null===li?void 0:li);else if(null==li)Qe.remove(null===Qr?void 0:Qr);else if(null!==Qr){var Ao=Qe.get(Qr);Qe.move(Ao,li),Uo(Ao,kr)}});for(var Pt=0,an=Qe.length;Pt<an;Pt++){var pr=Qe.get(Pt).context;pr.index=Pt,pr.count=an,pr.ngForOf=this._ngForOf}he.forEachIdentityChange(function(kr){Uo(Qe.get(kr.currentIndex),kr)})}}],[{key:"ngTemplateContextGuard",value:function(he,Fe){return!0}}]),ie}();function Uo(ie,ue){ie.context.$implicit=ue.item}Fi.\u0275fac=function(ue){return new(ue||Fi)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(x.ZZ4))},Fi.\u0275dir=x.lG2({type:Fi,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var ca=function(){function ie(ue,he){(0,P.Z)(this,ie),this._viewContainer=ue,this._context=new co,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=he}return(0,R.Z)(ie,[{key:"ngIf",set:function(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}},{key:"ngIfThen",set:function(he){na("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(he){na("ngIfElse",he),this._elseTemplateRef=he,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(he,Fe){return!0}}]),ie}();ca.\u0275fac=function(ue){return new(ue||ca)(x.Y36(x.s_b),x.Y36(x.Rgc))},ca.\u0275dir=x.lG2({type:ca,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var co=(0,R.Z)(function ie(){(0,P.Z)(this,ie),this.$implicit=null,this.ngIf=null});function na(ie,ue){if(!!(ue&&!ue.createEmbeddedView))throw new Error("".concat(ie," must be a TemplateRef, but received '").concat((0,x.AaK)(ue),"'."))}var ls=function(){function ie(ue,he){(0,P.Z)(this,ie),this._viewContainerRef=ue,this._templateRef=he,this._created=!1}return(0,R.Z)(ie,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(he){he&&!this._created?this.create():!he&&this._created&&this.destroy()}}]),ie}(),Ai=function(){function ie(){(0,P.Z)(this,ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,R.Z)(ie,[{key:"ngSwitch",set:function(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(he){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(he)}},{key:"_matchCase",value:function(he){var Fe=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Fe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Fe}},{key:"_updateDefaultCases",value:function(he){if(this._defaultViews&&he!==this._defaultUsed){this._defaultUsed=he;for(var Fe=0;Fe<this._defaultViews.length;Fe++){this._defaultViews[Fe].enforceState(he)}}}}]),ie}();Ai.\u0275fac=function(ue){return new(ue||Ai)},Ai.\u0275dir=x.lG2({type:Ai,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var po=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this.ngSwitch=Fe,Fe._addCase(),this._view=new ls(ue,he)}return(0,R.Z)(ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ie}();po.\u0275fac=function(ue){return new(ue||po)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(Ai,9))},po.\u0275dir=x.lG2({type:po,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});var La=(0,R.Z)(function ie(ue,he,Fe){(0,P.Z)(this,ie),Fe._addDefault(new ls(ue,he))});La.\u0275fac=function(ue){return new(ue||La)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(Ai,9))},La.\u0275dir=x.lG2({type:La,selectors:[["","ngSwitchDefault",""]],standalone:!0});var qo=function(){function ie(ue){(0,P.Z)(this,ie),this._localization=ue,this._caseViews={}}return(0,R.Z)(ie,[{key:"ngPlural",set:function(he){this._switchValue=he,this._updateView()}},{key:"addCase",value:function(he,Fe){this._caseViews[he]=Fe}},{key:"_updateView",value:function(){this._clearViews();var he=Object.keys(this._caseViews),Fe=jr(this._switchValue,he,this._localization);this._activateView(this._caseViews[Fe])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(he){he&&(this._activeView=he,this._activeView.create())}}]),ie}();qo.\u0275fac=function(ue){return new(ue||qo)(x.Y36(br))},qo.\u0275dir=x.lG2({type:qo,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});var gu=(0,R.Z)(function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this.value=ue;var Pt=!isNaN(Number(ue));Qe.addCase(Pt?"=".concat(ue):ue,new ls(Fe,he))});gu.\u0275fac=function(ue){return new(ue||gu)(x.$8M("ngPluralCase"),x.Y36(x.Rgc),x.Y36(x.s_b),x.Y36(qo,1))},gu.\u0275dir=x.lG2({type:gu,selectors:[["","ngPluralCase",""]],standalone:!0});var Wi=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this._ngEl=ue,this._differs=he,this._renderer=Fe,this._ngStyle=null,this._differ=null}return(0,R.Z)(ie,[{key:"ngStyle",set:function(he){this._ngStyle=he,!this._differ&&he&&(this._differ=this._differs.find(he).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var he=this._differ.diff(this._ngStyle);he&&this._applyChanges(he)}}},{key:"_setStyle",value:function(he,Fe){var Qe=he.split("."),Pt=(0,W.Z)(Qe,2),an=Pt[0],Fn=Pt[1],pr=-1===an.indexOf("-")?void 0:x.JOm.DashCase;null!=Fe?this._renderer.setStyle(this._ngEl.nativeElement,an,Fn?"".concat(Fe).concat(Fn):Fe,pr):this._renderer.removeStyle(this._ngEl.nativeElement,an,pr)}},{key:"_applyChanges",value:function(he){var Fe=this;he.forEachRemovedItem(function(Qe){return Fe._setStyle(Qe.key,null)}),he.forEachAddedItem(function(Qe){return Fe._setStyle(Qe.key,Qe.currentValue)}),he.forEachChangedItem(function(Qe){return Fe._setStyle(Qe.key,Qe.currentValue)})}}]),ie}();Wi.\u0275fac=function(ue){return new(ue||Wi)(x.Y36(x.SBq),x.Y36(x.aQg),x.Y36(x.Qsj))},Wi.\u0275dir=x.lG2({type:Wi,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Ui=function(){function ie(ue){(0,P.Z)(this,ie),this._viewContainerRef=ue,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}return(0,R.Z)(ie,[{key:"ngOnChanges",value:function(he){if(he.ngTemplateOutlet||he.ngTemplateOutletInjector){var Fe=this._viewContainerRef;if(this._viewRef&&Fe.remove(Fe.indexOf(this._viewRef)),this.ngTemplateOutlet){var Qe=this.ngTemplateOutlet,Pt=this.ngTemplateOutletContext,an=this.ngTemplateOutletInjector;this._viewRef=Fe.createEmbeddedView(Qe,Pt,an?{injector:an}:void 0)}else this._viewRef=null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ie}();Ui.\u0275fac=function(ue){return new(ue||Ui)(x.Y36(x.s_b))},Ui.\u0275dir=x.lG2({type:Ui,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[x.TTD]});function qi(ie,ue){return new x.vHH(2100,!1)}var tn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"createSubscription",value:function(he,Fe){return he.subscribe({next:Fe,error:function(Pt){throw Pt}})}},{key:"dispose",value:function(he){he.unsubscribe()}}]),ie}(),Jt=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"createSubscription",value:function(he,Fe){return he.then(Fe,function(Qe){throw Qe})}},{key:"dispose",value:function(he){}}]),ie}(),Jr=new Jt,Mi=new tn,Jo=function(){function ie(ue){(0,P.Z)(this,ie),this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ue}return(0,R.Z)(ie,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose(),this._ref=null}},{key:"transform",value:function(he){return this._obj?he!==this._obj?(this._dispose(),this.transform(he)):this._latestValue:(he&&this._subscribe(he),this._latestValue)}},{key:"_subscribe",value:function(he){var Fe=this;this._obj=he,this._strategy=this._selectStrategy(he),this._subscription=this._strategy.createSubscription(he,function(Qe){return Fe._updateLatestValue(he,Qe)})}},{key:"_selectStrategy",value:function(he){if((0,x.QGY)(he))return Jr;if((0,x.F4k)(he))return Mi;throw qi()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(he,Fe){he===this._obj&&(this._latestValue=Fe,this._ref.markForCheck())}}]),ie}();Jo.\u0275fac=function(ue){return new(ue||Jo)(x.Y36(x.sBO,16))},Jo.\u0275pipe=x.Yjl({name:"async",type:Jo,pure:!1,standalone:!0});var Ho=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.toLowerCase()}}]),ie}();Ho.\u0275fac=function(ue){return new(ue||Ho)},Ho.\u0275pipe=x.Yjl({name:"lowercase",type:Ho,pure:!0,standalone:!0});var bi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Ln=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.replace(bi,function(Fe){return Fe[0].toUpperCase()+Fe.slice(1).toLowerCase()})}}]),ie}();Ln.\u0275fac=function(ue){return new(ue||Ln)},Ln.\u0275pipe=x.Yjl({name:"titlecase",type:Ln,pure:!0,standalone:!0});var vo=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.toUpperCase()}}]),ie}();vo.\u0275fac=function(ue){return new(ue||vo)},vo.\u0275pipe=x.Yjl({name:"uppercase",type:vo,pure:!0,standalone:!0});var Ul=new x.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Nn=function(){function ie(ue,he){(0,P.Z)(this,ie),this.locale=ue,this.defaultTimezone=he}return(0,R.Z)(ie,[{key:"transform",value:function(he){var an,Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",Qe=arguments.length>2?arguments[2]:void 0,Pt=arguments.length>3?arguments[3]:void 0;if(null==he||""===he||he!=he)return null;try{return lt(he,Fe,Pt||this.locale,null!==(an=null!=Qe?Qe:this.defaultTimezone)&&void 0!==an?an:void 0)}catch(Fn){throw qi(0,Fn.message)}}}]),ie}();Nn.\u0275fac=function(ue){return new(ue||Nn)(x.Y36(x.soG,16),x.Y36(Ul,24))},Nn.\u0275pipe=x.Yjl({name:"date",type:Nn,pure:!0,standalone:!0});var xn=/#/g,fn=function(){function ie(ue){(0,P.Z)(this,ie),this._localization=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(null==he)return"";if("object"!=typeof Fe||null===Fe)throw qi();return Fe[jr(he,Object.keys(Fe),this._localization,Qe)].replace(xn,he.toString())}}]),ie}();fn.\u0275fac=function(ue){return new(ue||fn)(x.Y36(br,16))},fn.\u0275pipe=x.Yjl({name:"i18nPlural",type:fn,pure:!0,standalone:!0});var mi=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe){if(null==he)return"";if("object"!=typeof Fe||"string"!=typeof he)throw qi();return Fe.hasOwnProperty(he)?Fe[he]:Fe.hasOwnProperty("other")?Fe.other:""}}]),ie}();mi.\u0275fac=function(ue){return new(ue||mi)},mi.\u0275pipe=x.Yjl({name:"i18nSelect",type:mi,pure:!0,standalone:!0});var Ji=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){return JSON.stringify(he,null,2)}}]),ie}();function jo(ie,ue){return{key:ie,value:ue}}Ji.\u0275fac=function(ue){return new(ue||Ji)},Ji.\u0275pipe=x.Yjl({name:"json",type:Ji,pure:!1,standalone:!0});var Qi=function(){function ie(ue){(0,P.Z)(this,ie),this.differs=ue,this.keyValues=[],this.compareFn=Vi}return(0,R.Z)(ie,[{key:"transform",value:function(he){var Fe=this,Qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vi;if(!he||!(he instanceof Map)&&"object"!=typeof he)return null;this.differ||(this.differ=this.differs.find(he).create());var Pt=this.differ.diff(he),an=Qe!==this.compareFn;return Pt&&(this.keyValues=[],Pt.forEachItem(function(Fn){Fe.keyValues.push(jo(Fn.key,Fn.currentValue))})),(Pt||an)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}]),ie}();function Vi(ie,ue){var he=ie.key,Fe=ue.key;if(he===Fe)return 0;if(void 0===he)return 1;if(void 0===Fe)return-1;if(null===he)return 1;if(null===Fe)return-1;if("string"==typeof he&&"string"==typeof Fe)return he<Fe?-1:1;if("number"==typeof he&&"number"==typeof Fe)return he-Fe;if("boolean"==typeof he&&"boolean"==typeof Fe)return he<Fe?-1:1;var Qe=String(he),Pt=String(Fe);return Qe==Pt?0:Qe<Pt?-1:1}Qi.\u0275fac=function(ue){return new(ue||Qi)(x.Y36(x.aQg,16))},Qi.\u0275pipe=x.Yjl({name:"keyvalue",type:Qi,pure:!1,standalone:!0});var ti=function(){function ie(ue){(0,P.Z)(this,ie),this._locale=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(!Do(he))return null;Qe=Qe||this._locale;try{return function ss(ie,ue,he){return Pa(ie,ta(Ut(ue,me.Decimal),dt(ue,Et.MinusSign)),ue,Et.Group,Et.Decimal,he)}(Xi(he),Qe,Fe)}catch(an){throw qi(0,an.message)}}}]),ie}();ti.\u0275fac=function(ue){return new(ue||ti)(x.Y36(x.soG,16))},ti.\u0275pipe=x.Yjl({name:"number",type:ti,pure:!0,standalone:!0});var _i=function(){function ie(ue){(0,P.Z)(this,ie),this._locale=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(!Do(he))return null;Qe=Qe||this._locale;try{return function ua(ie,ue,he){return Pa(ie,ta(Ut(ue,me.Percent),dt(ue,Et.MinusSign)),ue,Et.Group,Et.Decimal,he,!0).replace(new RegExp("%","g"),dt(ue,Et.PercentSign))}(Xi(he),Qe,Fe)}catch(an){throw qi(0,an.message)}}}]),ie}();_i.\u0275fac=function(ue){return new(ue||_i)(x.Y36(x.soG,16))},_i.\u0275pipe=x.Yjl({name:"percent",type:_i,pure:!0,standalone:!0});var ir=function(){function ie(ue){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,P.Z)(this,ie),this._locale=ue,this._defaultCurrencyCode=he}return(0,R.Z)(ie,[{key:"transform",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",Pt=arguments.length>3?arguments[3]:void 0,an=arguments.length>4?arguments[4]:void 0;if(!Do(he))return null;an=an||this._locale,"boolean"==typeof Qe&&(Qe=Qe?"symbol":"code");var Fn=Fe||this._defaultCurrencyCode;"code"!==Qe&&(Fn="symbol"===Qe||"symbol-narrow"===Qe?yn(Fn,"symbol"===Qe?"wide":"narrow",an):Qe);try{var pr=Xi(he);return Ra(pr,an,Fn,Fe,Pt)}catch(kr){throw qi(0,kr.message)}}}]),ie}();function Do(ie){return!(null==ie||""===ie||ie!=ie)}function Xi(ie){if("string"==typeof ie&&!isNaN(Number(ie)-parseFloat(ie)))return Number(ie);if("number"!=typeof ie)throw new Error("".concat(ie," is not a number"));return ie}ir.\u0275fac=function(ue){return new(ue||ir)(x.Y36(x.soG,16),x.Y36(x.EJc,16))},ir.\u0275pipe=x.Yjl({name:"currency",type:ir,pure:!0,standalone:!0});var wa=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(null==he)return null;if(!this.supports(he))throw qi();return he.slice(Fe,Qe)}},{key:"supports",value:function(he){return"string"==typeof he||Array.isArray(he)}}]),ie}();wa.\u0275fac=function(ue){return new(ue||wa)},wa.\u0275pipe=x.Yjl({name:"slice",type:wa,pure:!1,standalone:!0});var oo=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});oo.\u0275fac=function(ue){return new(ue||oo)},oo.\u0275mod=x.oAB({type:oo}),oo.\u0275inj=x.cJS({});var Qo="browser";function ao(ie){return ie===Qo}new x.GfV("14.3.0");var Hi=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});Hi.\u0275prov=(0,x.Yz7)({token:Hi,providedIn:"root",factory:function(){return new Yi((0,x.LFG)(b),window)}});var Yi=function(){function ie(ue,he){(0,P.Z)(this,ie),this.document=ue,this.window=he,this.offset=function(){return[0,0]}}return(0,R.Z)(ie,[{key:"setOffset",value:function(he){Array.isArray(he)?this.offset=function(){return he}:this.offset=he}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(he){this.supportsScrolling()&&this.window.scrollTo(he[0],he[1])}},{key:"scrollToAnchor",value:function(he){if(this.supportsScrolling()){var Fe=function hl(ie,ue){var he=ie.getElementById(ue)||ie.getElementsByName(ue)[0];if(he)return he;if("function"==typeof ie.createTreeWalker&&ie.body&&(ie.body.createShadowRoot||ie.body.attachShadow))for(var Fe=ie.createTreeWalker(ie.body,NodeFilter.SHOW_ELEMENT),Qe=Fe.currentNode;Qe;){var Pt=Qe.shadowRoot;if(Pt){var an=Pt.getElementById(ue)||Pt.querySelector('[name="'.concat(ue,'"]'));if(an)return an}Qe=Fe.nextNode()}return null}(this.document,he);Fe&&(this.scrollToElement(Fe),Fe.focus())}}},{key:"setHistoryScrollRestoration",value:function(he){if(this.supportScrollRestoration()){var Fe=this.window.history;Fe&&Fe.scrollRestoration&&(Fe.scrollRestoration=he)}}},{key:"scrollToElement",value:function(he){var Fe=he.getBoundingClientRect(),Qe=Fe.left+this.window.pageXOffset,Pt=Fe.top+this.window.pageYOffset,an=this.offset();this.window.scrollTo(Qe-an[0],Pt-an[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var he=xc(this.window.history)||xc(Object.getPrototypeOf(this.window.history));return!(!he||!he.writable&&!he.set)}catch(Fe){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(he){return!1}}}]),ie}();function xc(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}var us=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});function Tp(ie,ue){return so(ie)?new URL(ie):new URL(ie,ue.location.href)}function so(ie){return/^https?:\/\//.test(ie)}function xs(ie){return so(ie)?new URL(ie).hostname:ie}function yo(ie){return ie.startsWith("/")?ie.slice(1):ie}var Dc=function(ue){return ue.src},Ba=new x.OlP("ImageLoader",{providedIn:"root",factory:function(){return Dc}});function cs(ie,ue){return function(Fe){(function Hl(ie){if("string"!=typeof ie||""===ie.trim())return!1;try{return new URL(ie),!0}catch(Fe){return!1}})(Fe)||function fo(ie,ue){throw new x.vHH(2959,!1)}(),Fe=function Ec(ie){return ie.endsWith("/")?ie.slice(0,-1):ie}(Fe);return[{provide:Ba,useValue:function(Fn){return so(Fn.src)&&function Mp(ie,ue){throw new x.vHH(2959,!1)}(0,Fn.src),ie(Fe,Object.assign(Object.assign({},Fn),{src:yo(Fn.src)}))}}]}}cs(function Ku(ie,ue){var he="format=auto";return ue.width&&(he+=",width=".concat(ue.width)),"".concat(ie,"/cdn-cgi/image/").concat(he,"/").concat(ue.src)});cs(function Es(ie,ue){var he="f_auto,q_auto";return ue.width&&(he+=",w_".concat(ue.width)),"".concat(ie,"/image/upload/").concat(he,"/").concat(ue.src)});cs(function Ds(ie,ue){var he="tr:q-auto";return ue.width&&(he+=",w-".concat(ue.width)),"".concat(ie,"/").concat(he,"/").concat(ue.src)});cs(function Te(ie,ue){var he=new URL("".concat(ie,"/").concat(ue.src));return he.searchParams.set("auto","format"),ue.width&&he.searchParams.set("w",ue.width.toString()),he.href});function se(ie){var ue=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],he=ue?'(activated on an <img> element with the `ngSrc="'.concat(ie,'"`) '):"";return"The NgOptimizedImage directive ".concat(he,"has detected that")}function Me(ie){throw new x.vHH(2958,"Unexpected invocation of the ".concat(ie," in the prod mode. ")+"Please make sure that the prod mode is enabled for production builds.")}var Oe=function(){function ie(){(0,P.Z)(this,ie),this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,Me("LCP checker");var ue=(0,x.f3M)(b).defaultView;void 0!==ue&&"undefined"!=typeof PerformanceObserver&&(this.window=ue,this.observer=this.initPerformanceObserver())}return(0,R.Z)(ie,[{key:"initPerformanceObserver",value:function(){var he=this,Fe=new PerformanceObserver(function(Qe){var Pt,an,Fn=Qe.getEntries();if(0!==Fn.length){var kr=null!==(an=null===(Pt=Fn[Fn.length-1].element)||void 0===Pt?void 0:Pt.src)&&void 0!==an?an:"";if(!kr.startsWith("data:")&&!kr.startsWith("blob:"))he.images.get(kr)&&!he.alreadyWarned.has(kr)&&(he.alreadyWarned.add(kr),function mt(ie){var ue=se(ie);console.warn((0,x.kuF)(2955,"".concat(ue," this image is the Largest Contentful Paint (LCP) ")+'element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.'))}(kr))}});return Fe.observe({type:"largest-contentful-paint",buffered:!0}),Fe}},{key:"registerImage",value:function(he,Fe){!this.observer||this.images.set(Tp(he,this.window).href,Fe)}},{key:"unregisterImage",value:function(he){!this.observer||this.images.delete(Tp(he,this.window).href)}},{key:"ngOnDestroy",value:function(){!this.observer||(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}]),ie}();Oe.\u0275fac=function(ue){return new(ue||Oe)},Oe.\u0275prov=x.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});var Ht=new Set(["localhost","127.0.0.1","0.0.0.0"]),On=new x.OlP("PRECONNECT_CHECK_BLOCKLIST"),sr=function(){function ie(){(0,P.Z)(this,ie),this.document=(0,x.f3M)(b),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(Ht),Me("preconnect link checker");var ue=this.document.defaultView;void 0!==ue&&(this.window=ue);var he=(0,x.f3M)(On,{optional:!0});he&&this.populateBlocklist(he)}return(0,R.Z)(ie,[{key:"populateBlocklist",value:function(he){var Fe=this;Array.isArray(he)?ml(he,function(Qe){Fe.blocklist.add(xs(Qe))}):this.blocklist.add(xs(he))}},{key:"assertPreconnect",value:function(he,Fe){if(this.window){var Qe=Tp(he,this.window);this.blocklist.has(Qe.hostname)||this.alreadySeen.has(Qe.origin)||(this.alreadySeen.add(Qe.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(Qe.origin)||console.warn((0,x.kuF)(2956,"".concat(se(Fe)," there is no preconnect tag present for this ")+"image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n"+' <link rel="preconnect" href="'.concat(Qe.origin,'">'))))}}},{key:"queryPreconnectLinks",value:function(){for(var he=new Set,Pt=0,an=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));Pt<an.length;Pt++){var pr=Tp(an[Pt].href,this.window);he.add(pr.origin)}return he}},{key:"ngOnDestroy",value:function(){var he;null===(he=this.preconnectLinks)||void 0===he||he.clear(),this.alreadySeen.clear()}}]),ie}();function ml(ie,ue){var Fe,he=(0,G.Z)(ie);try{for(he.s();!(Fe=he.n()).done;){var Qe=Fe.value;Array.isArray(Qe)?ml(Qe,ue):ue(Qe)}}catch(Pt){he.e(Pt)}finally{he.f()}}sr.\u0275fac=function(ue){return new(ue||sr)},sr.\u0275prov=x.Yz7({token:sr,factory:sr.\u0275fac,providedIn:"root"});var yd=new x.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}}),zl=function(){function ie(){(0,P.Z)(this,ie),this.preloadedImages=(0,x.f3M)(yd),this.document=(0,x.f3M)(b)}return(0,R.Z)(ie,[{key:"createPreloadLinkTag",value:function(he,Fe,Qe,Pt){if(!this.preloadedImages.has(Fe)){this.preloadedImages.add(Fe);var an=he.createElement("link");he.setAttribute(an,"as","image"),he.setAttribute(an,"href",Fe),he.setAttribute(an,"rel","preload"),he.setAttribute(an,"fetchpriority","high"),Pt&&he.setAttribute(an,"imageSizes",Pt),Qe&&he.setAttribute(an,"imageSrcset",Qe),he.appendChild(this.document.head,an)}}}]),ie}();zl.\u0275fac=function(ue){return new(ue||zl)},zl.\u0275prov=x.Yz7({token:zl,factory:zl.\u0275fac,providedIn:"root"});var Ta=/^((\s*\d+w\s*(,|$)){1,})$/,Xm=[1,2],hs={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},Sv=new x.OlP("ImageConfig",{providedIn:"root",factory:function(){return hs}}),Cd=function(){function ie(){(0,P.Z)(this,ie),this.imageLoader=(0,x.f3M)(Ba),this.config=function ah(ie){var ue={};return ie.breakpoints&&(ue.breakpoints=ie.breakpoints.sort(function(he,Fe){return he-Fe})),Object.assign({},hs,ie,ue)}((0,x.f3M)(Sv)),this.renderer=(0,x.f3M)(x.Qsj),this.imgElement=(0,x.f3M)(x.SBq).nativeElement,this.injector=(0,x.f3M)(x.zs3),this.isServer=function qa(ie){return"server"===ie}((0,x.f3M)(x.Lbi)),this.preloadLinkChecker=(0,x.f3M)(zl),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}return(0,R.Z)(ie,[{key:"width",get:function(){return this._width},set:function(he){this._width=Js(he)}},{key:"height",get:function(){return this._height},set:function(he){this._height=Js(he)}},{key:"priority",get:function(){return this._priority},set:function(he){this._priority=ia(he)}},{key:"disableOptimizedSrcset",get:function(){return this._disableOptimizedSrcset},set:function(he){this._disableOptimizedSrcset=ia(he)}},{key:"fill",get:function(){return this._fill},set:function(he){this._fill=ia(he)}},{key:"ngOnInit",value:function(){this.setHostAttributes()}},{key:"setHostAttributes",value:function(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");var he=this.getRewrittenSrc();this.setHostAttribute("src",he);var Fe=void 0;this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?Fe=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(Fe=this.getAutomaticSrcset()),Fe&&this.setHostAttribute("srcset",Fe),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,he,Fe,this.sizes)}},{key:"ngOnChanges",value:function(he){}},{key:"callImageLoader",value:function(he){var Fe=he;return this.loaderParams&&(Fe.loaderParams=this.loaderParams),this.imageLoader(Fe)}},{key:"getLoadingBehavior",value:function(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}},{key:"getFetchPriority",value:function(){return this.priority?"high":"auto"}},{key:"getRewrittenSrc",value:function(){if(!this._renderedSrc){var he={src:this.ngSrc};this._renderedSrc=this.callImageLoader(he)}return this._renderedSrc}},{key:"getRewrittenSrcset",value:function(){var he=this,Fe=Ta.test(this.ngSrcset);return this.ngSrcset.split(",").filter(function(Pt){return""!==Pt}).map(function(Pt){Pt=Pt.trim();var an=Fe?parseFloat(Pt):parseFloat(Pt)*he.width;return"".concat(he.callImageLoader({src:he.ngSrc,width:an})," ").concat(Pt)}).join(", ")}},{key:"getAutomaticSrcset",value:function(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}},{key:"getResponsiveSrcset",value:function(){var Fe,he=this,Qe=this.config.breakpoints,Pt=Qe;return"100vw"===(null===(Fe=this.sizes)||void 0===Fe?void 0:Fe.trim())&&(Pt=Qe.filter(function(Fn){return Fn>=640})),Pt.map(function(Fn){return"".concat(he.callImageLoader({src:he.ngSrc,width:Fn})," ").concat(Fn,"w")}).join(", ")}},{key:"getFixedSrcset",value:function(){var he=this;return Xm.map(function(Qe){var Pt=he.callImageLoader({src:he.ngSrc,width:he.width*Qe});return"".concat(Pt," ").concat(Qe,"x")}).join(", ")}},{key:"shouldGenerateAutomaticSrcset",value:function(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Dc&&!(this.width>1920||this.height>1080)}},{key:"ngOnDestroy",value:function(){}},{key:"setHostAttribute",value:function(he,Fe){this.renderer.setAttribute(this.imgElement,he,Fe)}}]),ie}();function Js(ie){return"string"==typeof ie?parseInt(ie,10):ie}function ia(ie){return null!=ie&&"false"!=="".concat(ie)}Cd.\u0275fac=function(ue){return new(ue||Cd)},Cd.\u0275dir=x.lG2({type:Cd,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(ue,he){2&ue&&x.Udp("position",he.fill?"absolute":null)("width",he.fill?"100%":null)("height",he.fill?"100%":null)("inset",he.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[x.TTD]})},520:function(Ae,K,m){"use strict";m.d(K,{JF:function(){return Xt},LE:function(){return Y},TP:function(){return Ft},UA:function(){return Et},WM:function(){return y},eN:function(){return Ze}});var G=m(136),W=m(9388),A=m(7685),H=m(4902),R=m(3144),P=m(5671),x=m(9808),D=m(5e3),j=m(1086),L=m(7451),v=m(1406),k=m(9664),b=m(4850),O=(0,R.Z)(function te(){(0,P.Z)(this,te)}),S=(0,R.Z)(function te(){(0,P.Z)(this,te)}),y=function(){function te(ye){var pe=this;(0,P.Z)(this,te),this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?function(){pe.headers=new Map,ye.split("\n").forEach(function(Ne){var lt=Ne.indexOf(":");if(lt>0){var ct=Ne.slice(0,lt),Bt=ct.toLowerCase(),jt=Ne.slice(lt+1).trim();pe.maybeSetNormalizedName(ct,Bt),pe.headers.has(Bt)?pe.headers.get(Bt).push(jt):pe.headers.set(Bt,[jt])}})}:function(){pe.headers=new Map,Object.keys(ye).forEach(function(Ne){var lt=ye[Ne],ct=Ne.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(pe.headers.set(ct,lt),pe.maybeSetNormalizedName(Ne,ct))})}:this.headers=new Map}return(0,R.Z)(te,[{key:"has",value:function(pe){return this.init(),this.headers.has(pe.toLowerCase())}},{key:"get",value:function(pe){this.init();var Ne=this.headers.get(pe.toLowerCase());return Ne&&Ne.length>0?Ne[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(pe){return this.init(),this.headers.get(pe.toLowerCase())||null}},{key:"append",value:function(pe,Ne){return this.clone({name:pe,value:Ne,op:"a"})}},{key:"set",value:function(pe,Ne){return this.clone({name:pe,value:Ne,op:"s"})}},{key:"delete",value:function(pe,Ne){return this.clone({name:pe,value:Ne,op:"d"})}},{key:"maybeSetNormalizedName",value:function(pe,Ne){this.normalizedNames.has(Ne)||this.normalizedNames.set(Ne,pe)}},{key:"init",value:function(){var pe=this;this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Ne){return pe.applyUpdate(Ne)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(pe){var Ne=this;pe.init(),Array.from(pe.headers.keys()).forEach(function(lt){Ne.headers.set(lt,pe.headers.get(lt)),Ne.normalizedNames.set(lt,pe.normalizedNames.get(lt))})}},{key:"clone",value:function(pe){var Ne=new te;return Ne.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,Ne.lazyUpdate=(this.lazyUpdate||[]).concat([pe]),Ne}},{key:"applyUpdate",value:function(pe){var Ne=pe.name.toLowerCase();switch(pe.op){case"a":case"s":var lt=pe.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(pe.name,Ne);var ct=("a"===pe.op?this.headers.get(Ne):void 0)||[];ct.push.apply(ct,(0,H.Z)(lt)),this.headers.set(Ne,ct);break;case"d":var Bt=pe.value;if(Bt){var jt=this.headers.get(Ne);if(!jt)return;0===(jt=jt.filter(function(on){return-1===Bt.indexOf(on)})).length?(this.headers.delete(Ne),this.normalizedNames.delete(Ne)):this.headers.set(Ne,jt)}else this.headers.delete(Ne),this.normalizedNames.delete(Ne)}}},{key:"forEach",value:function(pe){var Ne=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(lt){return pe(Ne.normalizedNames.get(lt),Ne.headers.get(lt))})}}]),te}();var M=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,[{key:"encodeKey",value:function(pe){return X(pe)}},{key:"encodeValue",value:function(pe){return X(pe)}},{key:"decodeKey",value:function(pe){return decodeURIComponent(pe)}},{key:"decodeValue",value:function(pe){return decodeURIComponent(pe)}}]),te}();function E(te,ye){var pe=new Map;te.length>0&&te.replace(/^\?/,"").split("&").forEach(function(lt){var ct=lt.indexOf("="),Bt=-1==ct?[ye.decodeKey(lt),""]:[ye.decodeKey(lt.slice(0,ct)),ye.decodeValue(lt.slice(ct+1))],jt=(0,A.Z)(Bt,2),on=jt[0],vn=jt[1],ln=pe.get(on)||[];ln.push(vn),pe.set(on,ln)});return pe}var N=/%(\d[a-f0-9])/gi,F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X(te){return encodeURIComponent(te).replace(N,function(ye,pe){var Ne;return null!==(Ne=F[pe])&&void 0!==Ne?Ne:ye})}function $(te){return"".concat(te)}var Y=function(){function te(){var ye=this,pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,P.Z)(this,te),this.updates=null,this.cloneFrom=null,this.encoder=pe.encoder||new M,pe.fromString){if(pe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=E(pe.fromString,this.encoder)}else pe.fromObject?(this.map=new Map,Object.keys(pe.fromObject).forEach(function(Ne){var lt=pe.fromObject[Ne],ct=Array.isArray(lt)?lt.map($):[$(lt)];ye.map.set(Ne,ct)})):this.map=null}return(0,R.Z)(te,[{key:"has",value:function(pe){return this.init(),this.map.has(pe)}},{key:"get",value:function(pe){this.init();var Ne=this.map.get(pe);return Ne?Ne[0]:null}},{key:"getAll",value:function(pe){return this.init(),this.map.get(pe)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(pe,Ne){return this.clone({param:pe,value:Ne,op:"a"})}},{key:"appendAll",value:function(pe){var Ne=[];return Object.keys(pe).forEach(function(lt){var ct=pe[lt];Array.isArray(ct)?ct.forEach(function(Bt){Ne.push({param:lt,value:Bt,op:"a"})}):Ne.push({param:lt,value:ct,op:"a"})}),this.clone(Ne)}},{key:"set",value:function(pe,Ne){return this.clone({param:pe,value:Ne,op:"s"})}},{key:"delete",value:function(pe,Ne){return this.clone({param:pe,value:Ne,op:"d"})}},{key:"toString",value:function(){var pe=this;return this.init(),this.keys().map(function(Ne){var lt=pe.encoder.encodeKey(Ne);return pe.map.get(Ne).map(function(ct){return lt+"="+pe.encoder.encodeValue(ct)}).join("&")}).filter(function(Ne){return""!==Ne}).join("&")}},{key:"clone",value:function(pe){var Ne=new te({encoder:this.encoder});return Ne.cloneFrom=this.cloneFrom||this,Ne.updates=(this.updates||[]).concat(pe),Ne}},{key:"init",value:function(){var pe=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Ne){return pe.map.set(Ne,pe.cloneFrom.map.get(Ne))}),this.updates.forEach(function(Ne){switch(Ne.op){case"a":case"s":var lt=("a"===Ne.op?pe.map.get(Ne.param):void 0)||[];lt.push($(Ne.value)),pe.map.set(Ne.param,lt);break;case"d":if(void 0===Ne.value){pe.map.delete(Ne.param);break}var ct=pe.map.get(Ne.param)||[],Bt=ct.indexOf($(Ne.value));-1!==Bt&&ct.splice(Bt,1),ct.length>0?pe.map.set(Ne.param,ct):pe.map.delete(Ne.param)}}),this.cloneFrom=this.updates=null)}}]),te}(),ne=function(){function te(){(0,P.Z)(this,te),this.map=new Map}return(0,R.Z)(te,[{key:"set",value:function(pe,Ne){return this.map.set(pe,Ne),this}},{key:"get",value:function(pe){return this.map.has(pe)||this.map.set(pe,pe.defaultValue()),this.map.get(pe)}},{key:"delete",value:function(pe){return this.map.delete(pe),this}},{key:"has",value:function(pe){return this.map.has(pe)}},{key:"keys",value:function(){return this.map.keys()}}]),te}();function fe(te){return"undefined"!=typeof ArrayBuffer&&te instanceof ArrayBuffer}function de(te){return"undefined"!=typeof Blob&&te instanceof Blob}function le(te){return"undefined"!=typeof FormData&&te instanceof FormData}var je,te,me=function(){function te(ye,pe,Ne,lt){var ct;if((0,P.Z)(this,te),this.url=pe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function be(te){switch(te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==Ne?Ne:null,ct=lt):ct=Ne,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params)),this.headers||(this.headers=new y),this.context||(this.context=new ne),this.params){var Bt=this.params.toString();if(0===Bt.length)this.urlWithParams=pe;else{var jt=pe.indexOf("?"),on=-1===jt?"?":jt<pe.length-1?"&":"";this.urlWithParams=pe+on+Bt}}else this.params=new Y,this.urlWithParams=pe}return(0,R.Z)(te,[{key:"serializeBody",value:function(){return null===this.body?null:fe(this.body)||de(this.body)||le(this.body)||function ce(te){return"undefined"!=typeof URLSearchParams&&te instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Y?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||le(this.body)?null:de(this.body)?this.body.type||null:fe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Y?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var Ne,pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},lt=pe.method||this.method,ct=pe.url||this.url,Bt=pe.responseType||this.responseType,jt=void 0!==pe.body?pe.body:this.body,on=void 0!==pe.withCredentials?pe.withCredentials:this.withCredentials,vn=void 0!==pe.reportProgress?pe.reportProgress:this.reportProgress,ln=pe.headers||this.headers,En=pe.params||this.params,hn=null!==(Ne=pe.context)&&void 0!==Ne?Ne:this.context;return void 0!==pe.setHeaders&&(ln=Object.keys(pe.setHeaders).reduce(function(mn,At){return mn.set(At,pe.setHeaders[At])},ln)),pe.setParams&&(En=Object.keys(pe.setParams).reduce(function(mn,At){return mn.set(At,pe.setParams[At])},En)),new te(lt,ct,jt,{params:En,headers:ln,context:hn,reportProgress:vn,responseType:Bt,withCredentials:on})}}]),te}();(te=je||(je={}))[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User";var st=(0,R.Z)(function te(ye){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,P.Z)(this,te),this.headers=ye.headers||new y,this.status=void 0!==ye.status?ye.status:pe,this.statusText=ye.statusText||Ne,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}),Mt=function(te){(0,G.Z)(pe,te);var ye=(0,W.Z)(pe);function pe(){var Ne,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,pe),(Ne=ye.call(this,lt)).type=je.ResponseHeader,Ne}return(0,R.Z)(pe,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new pe({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),pe}(st),Tt=function(te){(0,G.Z)(pe,te);var ye=(0,W.Z)(pe);function pe(){var Ne,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,pe),(Ne=ye.call(this,lt)).type=je.Response,Ne.body=void 0!==lt.body?lt.body:null,Ne}return(0,R.Z)(pe,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new pe({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}]),pe}(st),Et=function(te){(0,G.Z)(pe,te);var ye=(0,W.Z)(pe);function pe(Ne){var lt;return(0,P.Z)(this,pe),(lt=ye.call(this,Ne,0,"Unknown Error")).name="HttpErrorResponse",lt.ok=!1,lt.status>=200&<.status<300?lt.message="Http failure during parsing for ".concat(Ne.url||"(unknown url)"):lt.message="Http failure response for ".concat(Ne.url||"(unknown url)",": ").concat(Ne.status," ").concat(Ne.statusText),lt.error=Ne.error||null,lt}return(0,R.Z)(pe)}(st);function Lt(te,ye){return{body:ye,headers:te.headers,context:te.context,observe:te.observe,params:te.params,reportProgress:te.reportProgress,responseType:te.responseType,withCredentials:te.withCredentials}}var Ze=function(){function te(ye){(0,P.Z)(this,te),this.handler=ye}return(0,R.Z)(te,[{key:"request",value:function(pe,Ne){var Bt,lt=this,ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(pe instanceof me)Bt=pe;else{var jt=void 0;jt=ct.headers instanceof y?ct.headers:new y(ct.headers);var on=void 0;ct.params&&(on=ct.params instanceof Y?ct.params:new Y({fromObject:ct.params})),Bt=new me(pe,Ne,void 0!==ct.body?ct.body:null,{headers:jt,context:ct.context,params:on,reportProgress:ct.reportProgress,responseType:ct.responseType||"json",withCredentials:ct.withCredentials})}var vn=(0,j.of)(Bt).pipe((0,v.b)(function(En){return lt.handler.handle(En)}));if(pe instanceof me||"events"===ct.observe)return vn;var ln=vn.pipe((0,k.h)(function(En){return En instanceof Tt}));switch(ct.observe||"body"){case"body":switch(Bt.responseType){case"arraybuffer":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&!(En.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return En.body}));case"blob":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&!(En.body instanceof Blob))throw new Error("Response is not a Blob.");return En.body}));case"text":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&"string"!=typeof En.body)throw new Error("Response is not a string.");return En.body}));default:return ln.pipe((0,b.U)(function(En){return En.body}))}case"response":return ln;default:throw new Error("Unreachable: unhandled observe type ".concat(ct.observe,"}"))}}},{key:"delete",value:function(pe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",pe,Ne)}},{key:"get",value:function(pe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",pe,Ne)}},{key:"head",value:function(pe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",pe,Ne)}},{key:"jsonp",value:function(pe,Ne){return this.request("JSONP",pe,{params:(new Y).append(Ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(pe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",pe,Ne)}},{key:"patch",value:function(pe,Ne){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",pe,Lt(lt,Ne))}},{key:"post",value:function(pe,Ne){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",pe,Lt(lt,Ne))}},{key:"put",value:function(pe,Ne){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",pe,Lt(lt,Ne))}}]),te}();Ze.\u0275fac=function(ye){return new(ye||Ze)(D.LFG(O))},Ze.\u0275prov=D.Yz7({token:Ze,factory:Ze.\u0275fac});var $t=function(){function te(ye,pe){(0,P.Z)(this,te),this.next=ye,this.interceptor=pe}return(0,R.Z)(te,[{key:"handle",value:function(pe){return this.interceptor.intercept(pe,this.next)}}]),te}(),Ft=new D.OlP("HTTP_INTERCEPTORS"),pn=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,[{key:"intercept",value:function(pe,Ne){return Ne.handle(pe)}}]),te}();pn.\u0275fac=function(ye){return new(ye||pn)},pn.\u0275prov=D.Yz7({token:pn,factory:pn.\u0275fac});var Ot,nt=0,dt=(0,R.Z)(function te(){(0,P.Z)(this,te)}),Ut=function(){function te(ye,pe){(0,P.Z)(this,te),this.callbackMap=ye,this.document=pe,this.resolvedPromise=Promise.resolve()}return(0,R.Z)(te,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(nt++)}},{key:"handle",value:function(pe){var Ne=this;if("JSONP"!==pe.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==pe.responseType)throw new Error("JSONP requests must use Json response type.");if(pe.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new L.y(function(lt){var ct=Ne.nextCallback(),Bt=pe.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(ct,"$1")),jt=Ne.document.createElement("script");jt.src=Bt;var on=null,vn=!1;Ne.callbackMap[ct]=function(mn){delete Ne.callbackMap[ct],on=mn,vn=!0};var ln=function(){jt.parentNode&&jt.parentNode.removeChild(jt),delete Ne.callbackMap[ct]};return jt.addEventListener("load",function(At){Ne.resolvedPromise.then(function(){ln(),vn?(lt.next(new Tt({body:on,status:200,statusText:"OK",url:Bt})),lt.complete()):lt.error(new Et({url:Bt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),jt.addEventListener("error",function(At){ln(),lt.error(new Et({error:At,status:0,statusText:"JSONP Error",url:Bt}))}),Ne.document.body.appendChild(jt),lt.next({type:je.Sent}),function(){vn||Ne.removeListeners(jt),ln()}})}},{key:"removeListeners",value:function(pe){Ot||(Ot=this.document.implementation.createHTMLDocument()),Ot.adoptNode(pe)}}]),te}();Ut.\u0275fac=function(ye){return new(ye||Ut)(D.LFG(dt),D.LFG(x.K0))},Ut.\u0275prov=D.Yz7({token:Ut,factory:Ut.\u0275fac});var B=function(){function te(ye){(0,P.Z)(this,te),this.jsonp=ye}return(0,R.Z)(te,[{key:"intercept",value:function(pe,Ne){return"JSONP"===pe.method?this.jsonp.handle(pe):Ne.handle(pe)}}]),te}();B.\u0275fac=function(ye){return new(ye||B)(D.LFG(Ut))},B.\u0275prov=D.Yz7({token:B,factory:B.\u0275fac});var U=/^\)\]\}',?\n/;var Ye=function(){function te(ye){(0,P.Z)(this,te),this.xhrFactory=ye}return(0,R.Z)(te,[{key:"handle",value:function(pe){var Ne=this;if("JSONP"===pe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new L.y(function(lt){var ct=Ne.xhrFactory.build();if(ct.open(pe.method,pe.urlWithParams),pe.withCredentials&&(ct.withCredentials=!0),pe.headers.forEach(function(et,St){return ct.setRequestHeader(et,St.join(","))}),pe.headers.has("Accept")||ct.setRequestHeader("Accept","application/json, text/plain, */*"),!pe.headers.has("Content-Type")){var Bt=pe.detectContentTypeHeader();null!==Bt&&ct.setRequestHeader("Content-Type",Bt)}if(pe.responseType){var jt=pe.responseType.toLowerCase();ct.responseType="json"!==jt?jt:"text"}var on=pe.serializeBody(),vn=null,ln=function(){if(null!==vn)return vn;var St=ct.statusText||"OK",ze=new y(ct.getAllResponseHeaders()),Ke=function tt(te){return"responseURL"in te&&te.responseURL?te.responseURL:/^X-Request-URL:/m.test(te.getAllResponseHeaders())?te.getResponseHeader("X-Request-URL"):null}(ct)||pe.url;return vn=new Mt({headers:ze,status:ct.status,statusText:St,url:Ke})},En=function(){var St=ln(),ze=St.headers,Ke=St.status,Re=St.statusText,qe=St.url,vt=null;204!==Ke&&(vt=void 0===ct.response?ct.responseText:ct.response),0===Ke&&(Ke=vt?200:0);var dn=Ke>=200&&Ke<300;if("json"===pe.responseType&&"string"==typeof vt){var Hn=vt;vt=vt.replace(U,"");try{vt=""!==vt?JSON.parse(vt):null}catch(Yt){vt=Hn,dn&&(dn=!1,vt={error:Yt,text:vt})}}dn?(lt.next(new Tt({body:vt,headers:ze,status:Ke,statusText:Re,url:qe||void 0})),lt.complete()):lt.error(new Et({error:vt,headers:ze,status:Ke,statusText:Re,url:qe||void 0}))},hn=function(St){var Ke=ln().url,Re=new Et({error:St,status:ct.status||0,statusText:ct.statusText||"Unknown Error",url:Ke||void 0});lt.error(Re)},mn=!1,At=function(St){mn||(lt.next(ln()),mn=!0);var ze={type:je.DownloadProgress,loaded:St.loaded};St.lengthComputable&&(ze.total=St.total),"text"===pe.responseType&&!!ct.responseText&&(ze.partialText=ct.responseText),lt.next(ze)},xt=function(St){var ze={type:je.UploadProgress,loaded:St.loaded};St.lengthComputable&&(ze.total=St.total),lt.next(ze)};return ct.addEventListener("load",En),ct.addEventListener("error",hn),ct.addEventListener("timeout",hn),ct.addEventListener("abort",hn),pe.reportProgress&&(ct.addEventListener("progress",At),null!==on&&ct.upload&&ct.upload.addEventListener("progress",xt)),ct.send(on),lt.next({type:je.Sent}),function(){ct.removeEventListener("error",hn),ct.removeEventListener("abort",hn),ct.removeEventListener("load",En),ct.removeEventListener("timeout",hn),pe.reportProgress&&(ct.removeEventListener("progress",At),null!==on&&ct.upload&&ct.upload.removeEventListener("progress",xt)),ct.readyState!==ct.DONE&&ct.abort()}})}}]),te}();Ye.\u0275fac=function(ye){return new(ye||Ye)(D.LFG(x.JF))},Ye.\u0275prov=D.Yz7({token:Ye,factory:Ye.\u0275fac});var ge=new D.OlP("XSRF_COOKIE_NAME"),t=new D.OlP("XSRF_HEADER_NAME"),Dt=(0,R.Z)(function te(){(0,P.Z)(this,te)}),Zt=function(){function te(ye,pe,Ne){(0,P.Z)(this,te),this.doc=ye,this.platform=pe,this.cookieName=Ne,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,R.Z)(te,[{key:"getToken",value:function(){if("server"===this.platform)return null;var pe=this.doc.cookie||"";return pe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,x.Mx)(pe,this.cookieName),this.lastCookieString=pe),this.lastToken}}]),te}();Zt.\u0275fac=function(ye){return new(ye||Zt)(D.LFG(x.K0),D.LFG(D.Lbi),D.LFG(ge))},Zt.\u0275prov=D.Yz7({token:Zt,factory:Zt.\u0275fac});var zt=function(){function te(ye,pe){(0,P.Z)(this,te),this.tokenService=ye,this.headerName=pe}return(0,R.Z)(te,[{key:"intercept",value:function(pe,Ne){var lt=pe.url.toLowerCase();if("GET"===pe.method||"HEAD"===pe.method||lt.startsWith("http://")||lt.startsWith("https://"))return Ne.handle(pe);var ct=this.tokenService.getToken();return null!==ct&&!pe.headers.has(this.headerName)&&(pe=pe.clone({headers:pe.headers.set(this.headerName,ct)})),Ne.handle(pe)}}]),te}();zt.\u0275fac=function(ye){return new(ye||zt)(D.LFG(Dt),D.LFG(t))},zt.\u0275prov=D.Yz7({token:zt,factory:zt.\u0275fac});var sn=function(){function te(ye,pe){(0,P.Z)(this,te),this.backend=ye,this.injector=pe,this.chain=null}return(0,R.Z)(te,[{key:"handle",value:function(pe){if(null===this.chain){var Ne=this.injector.get(Ft,[]);this.chain=Ne.reduceRight(function(lt,ct){return new $t(lt,ct)},this.backend)}return this.chain.handle(pe)}}]),te}();sn.\u0275fac=function(ye){return new(ye||sn)(D.LFG(S),D.LFG(D.zs3))},sn.\u0275prov=D.Yz7({token:sn,factory:sn.\u0275fac});var Kt=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,null,[{key:"disable",value:function(){return{ngModule:te,providers:[{provide:zt,useClass:pn}]}}},{key:"withOptions",value:function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:te,providers:[pe.cookieName?{provide:ge,useValue:pe.cookieName}:[],pe.headerName?{provide:t,useValue:pe.headerName}:[]]}}}]),te}();Kt.\u0275fac=function(ye){return new(ye||Kt)},Kt.\u0275mod=D.oAB({type:Kt}),Kt.\u0275inj=D.cJS({providers:[zt,{provide:Ft,useExisting:zt,multi:!0},{provide:Dt,useClass:Zt},{provide:ge,useValue:"XSRF-TOKEN"},{provide:t,useValue:"X-XSRF-TOKEN"}]});var Xt=(0,R.Z)(function te(){(0,P.Z)(this,te)});Xt.\u0275fac=function(ye){return new(ye||Xt)},Xt.\u0275mod=D.oAB({type:Xt}),Xt.\u0275inj=D.cJS({providers:[Ze,{provide:O,useClass:sn},Ye,{provide:S,useExisting:Ye}],imports:[Kt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]});var Je=(0,R.Z)(function te(){(0,P.Z)(this,te)});Je.\u0275fac=function(ye){return new(ye||Je)},Je.\u0275mod=D.oAB({type:Je}),Je.\u0275inj=D.cJS({providers:[Ut,{provide:dt,useFactory:function yn(){return"object"==typeof window?window:{}}},{provide:Ft,useClass:B,multi:!0}]});x.JF},5e3:function(Ae,K,m){"use strict";m.d(K,{$8M:function(){return lM},$Z:function(){return hS},AA_:function(){return gM},AFp:function(){return O1},ALo:function(){return Nh},AaK:function(){return X},AcB:function(){return ZP},Akn:function(){return Au},AsE:function(){return iR},B6R:function(){return Yt},BQk:function(){return d1},CHM:function(){return Te},CRH:function(){return J},CZH:function(){return Wd},Ckj:function(){return y_},CqO:function(){return I6},D6c:function(){return w7},DdM:function(){return qn},Dn7:function(){return vU},DyG:function(){return Qt},E6H:function(){return UU},EJc:function(){return KU},EiD:function(){return w3},EpF:function(){return VS},F$t:function(){return B6},F4k:function(){return KS},FYo:function(){return A3},FiY:function(){return Pp},G48:function(){return fL},GSi:function(){return d4},Gf:function(){return nf},GfV:function(){return Oi},GkF:function(){return WS},Gpc:function(){return Q},Gre:function(){return aR},HOy:function(){return g1},Hsn:function(){return F6},IIB:function(){return HU},Ikx:function(){return sR},JOm:function(){return Lv},JVY:function(){return b3},Jf7:function(){return ty},KtG:function(){return se},L6J:function(){return zU},L6k:function(){return Lc},LAX:function(){return _V},LFG:function(){return pa},LSH:function(){return jM},LVF:function(){return WU},Lbi:function(){return Ox},Lck:function(){return M1},MAs:function(){return my},MGl:function(){return f1},MMx:function(){return Ey},NdJ:function(){return qS},O4$:function(){return Cn},OlP:function(){return ho},Oqu:function(){return rR},PXZ:function(){return Hy},PiD:function(){return hh},Q6J:function(){return s1},QGY:function(){return YS},QP$:function(){return hi},QbO:function(){return Ix},Qsj:function(){return jC},R0b:function(){return uc},RDi:function(){return RM},Rgc:function(){return Ga},SBq:function(){return Th},Sil:function(){return Fy},Suo:function(){return sc},TTD:function(){return ra},TgZ:function(){return l1},Tol:function(){return J6},Udp:function(){return _1},VKq:function(){return OR},W1O:function(){return Ry},WFA:function(){return p1},WLB:function(){return IR},XFs:function(){return ye},Xek:function(){return $R},Xpm:function(){return Hn},Xts:function(){return Ch},Y36:function(){return x_},YKP:function(){return xR},YNc:function(){return A6},Yjl:function(){return Vn},Yz7:function(){return ge},Z0I:function(){return zt},ZZ4:function(){return zy},_Bn:function(){return Cx},_UZ:function(){return _y},_Vd:function(){return C_},_c5:function(){return Wx},_uU:function(){return nR},a5r:function(){return d7},aQ5:function(){return oF},aQg:function(){return rg},ahi:function(){return uM},c2e:function(){return Vh},cJS:function(){return Dt},cg1:function(){return uR},d8E:function(){return lR},dDg:function(){return Q_},dqk:function(){return hn},eBb:function(){return C3},eFA:function(){return lL},ekj:function(){return Yp},eoX:function(){return X_},evT:function(){return XM},f3M:function(){return VP},g9A:function(){return I1},h0i:function(){return Lh},hGG:function(){return ig},hYB:function(){return h1},hij:function(){return sx},i9L:function(){return BP},iGM:function(){return TU},ifc:function(){return En},ip1:function(){return eL},jDz:function(){return kx},kL8:function(){return B8},kYT:function(){return yt},kcU:function(){return Rr},kuF:function(){return le},lG2:function(){return Gn},lcZ:function(){return E1},lnq:function(){return oR},lqb:function(){return Mu},lri:function(){return J_},mCW:function(){return IC},n4l:function(){return on},n5z:function(){return Is},n_E:function(){return Fd},oAB:function(){return gt},oJD:function(){return T3},oxw:function(){return Z6},pB0:function(){return gV},pfw:function(){return GU},q3G:function(){return Ad},qLn:function(){return k_},qOj:function(){return BS},qZA:function(){return u1},qzn:function(){return Rc},rWj:function(){return Nx},r_U:function(){return jU},s9C:function(){return QS},sBO:function(){return N1},sIi:function(){return dy},s_b:function(){return W_},soG:function(){return Y_},tBr:function(){return Pv},tb:function(){return wl},tp0:function(){return o_},uIk:function(){return fy},vHH:function(){return de},vR:function(){return NP},vpe:function(){return Gc},wA2:function(){return FU},wAp:function(){return U_},xi3:function(){return Qp},xp6:function(){return U3},ynx:function(){return gy},z2F:function(){return af},z3N:function(){return Pc},zSh:function(){return $s},zWS:function(){return hy},zlt:function(){return Ay},zs3:function(){return Jl}});var G=m(3237),W=m(1120),A=m(7685),P=(m(4942),m(4506),m(7326)),x=m(7762),D=m(4902),j=m(5647),L=m(3144),v=m(5671),k=m(136),b=m(9388),O=m(5724),S=m(4096),y=m(8929),T=m(7451),M=m(6787),E=m(8117);function N(c){for(var p in c)if(c[p]===N)return p;throw Error("Could not find renamed property on target object.")}function F(c,p){for(var f in p)p.hasOwnProperty(f)&&!c.hasOwnProperty(f)&&(c[f]=p[f])}function X(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(X).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var p=c.toString();if(null==p)return""+p;var f=p.indexOf("\n");return-1===f?p:p.substring(0,f)}function $(c,p){return null==c||""===c?null===p?"":p:null==p||""===p?c:c+" "+p}var Y=N({__forward_ref__:N});function Q(c){return c.__forward_ref__=Q,c.toString=function(){return X(this())},c}function ne(c){return be(c)?c():c}function be(c){return"function"==typeof c&&c.hasOwnProperty(Y)&&c.__forward_ref__===Q}var de=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w){var I;return(0,v.Z)(this,f),(I=p.call(this,le(_,w))).code=_,I}return(0,L.Z)(f)}((0,O.Z)(Error));function le(c,p){var f="NG0".concat(Math.abs(c));return"".concat(f).concat(p?": "+p.trim():"")}function ce(c){return"string"==typeof c?c:null==c?"":String(c)}function me(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():ce(c)}function Tt(c,p){p&&" in ".concat(p);throw new de(-201,!1)}function Ft(c,p,f){c!=p&&B(f,c,p,"==")}function Ut(c,p){null==c&&B(p,c,null,"!=")}function B(c,p,f,_){throw new Error("ASSERTION ERROR: ".concat(c)+(null==_?"":" [Expected=> ".concat(f," ").concat(_," ").concat(p," <=Actual]")))}function ge(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function Dt(c){return{providers:c.providers||[],imports:c.imports||[]}}function Zt(c){return sn(c,Xt)||sn(c,Be)}function zt(c){return null!==Zt(c)}function sn(c,p){return c.hasOwnProperty(p)?c[p]:null}function Kt(c){return c&&(c.hasOwnProperty(Je)||c.hasOwnProperty(te))?c[Je]:null}var ye,c,pe,on,vn,En,Xt=N({"\u0275prov":N}),Je=N({"\u0275inj":N}),Be=N({ngInjectableDef:N}),te=N({ngInjectorDef:N});function Ne(){return pe}function lt(c){var p=pe;return pe=c,p}function ct(c,p,f){var _=Zt(c);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:f&ye.Optional?null:void 0!==p?p:void Tt(X(c),"Injector")}function jt(c){return{toString:c}.toString()}(c=ye||(ye={}))[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",function(c){c[c.OnPush=0]="OnPush",c[c.Default=1]="Default"}(on||(on={})),function(c){c[c.CheckOnce=0]="CheckOnce",c[c.Checked=1]="Checked",c[c.CheckAlways=2]="CheckAlways",c[c.Detached=3]="Detached",c[c.Errored=4]="Errored",c[c.Destroyed=5]="Destroyed"}(vn||(vn={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(En||(En={}));var hn=function(){return"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var xt={},et=[],St=N({"\u0275cmp":N}),ze=N({"\u0275dir":N}),Ke=N({"\u0275pipe":N}),Re=N({"\u0275mod":N}),qe=N({"\u0275fac":N}),vt=N({__NG_ELEMENT_ID__:N}),dn=0;function Hn(c){return jt(function(){var p=c.type,f=!0===c.standalone,_={},w={type:p,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===on.OnPush,directiveDefs:null,pipeDefs:null,standalone:f,dependencies:f&&c.dependencies||null,getStandaloneInjector:null,selectors:c.selectors||et,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||En.Emulated,id:"c".concat(dn++),styles:c.styles||et,_:null,setInput:null,schemas:c.schemas||null,tView:null},I=c.dependencies,V=c.features;return w.inputs=nn(c.inputs,_),w.outputs=nn(c.outputs),V&&V.forEach(function(ee){return ee(w)}),w.directiveDefs=I?function(){return("function"==typeof I?I():I).map(kt).filter($e)}:null,w.pipeDefs=I?function(){return("function"==typeof I?I():I).map(Or).filter($e)}:null,w})}function Yt(c,p,f){var _=c.\u0275cmp;_.directiveDefs=function(){return("function"==typeof p?p():p).map(kt)},_.pipeDefs=function(){return("function"==typeof f?f():f).map(Or)}}function kt(c){return Wn(c)||ar(c)}function $e(c){return null!==c}function gt(c){return jt(function(){return{type:c.type,bootstrap:c.bootstrap||et,declarations:c.declarations||et,imports:c.imports||et,exports:c.exports||et,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}})}function yt(c,p){return jt(function(){var f=Gi(c,!0);f.declarations=p.declarations||et,f.imports=p.imports||et,f.exports=p.exports||et})}function nn(c,p){if(null==c)return xt;var f={};for(var _ in c)if(c.hasOwnProperty(_)){var w=c[_],I=w;Array.isArray(w)&&(I=w[1],w=w[0]),f[w]=_,p&&(p[w]=I)}return f}var Gn=Hn;function Vn(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Wn(c){return c[St]||null}function ar(c){return c[ze]||null}function Or(c){return c[Ke]||null}function hi(c){var p=Wn(c)||ar(c)||Or(c);return null!==p&&p.standalone}function Gi(c,p){var f=c[Re]||null;if(!f&&!0===p)throw new Error("Type ".concat(X(c)," does not have '\u0275mod' property."));return f}function Wi(c){return Array.isArray(c)&&"object"==typeof c[1]}function Ui(c){return Array.isArray(c)&&!0===c[1]}function Ss(c){return 0!=(8&c.flags)}function qi(c){return 2==(2&c.flags)}function tn(c){return 1==(1&c.flags)}function Jt(c){return null!==c.template}function Jr(c){return 0!=(256&c[2])}function oo(c,p){return c.hasOwnProperty(qe)?c[qe]:null}var Qo=function(){function c(p,f,_){(0,v.Z)(this,c),this.previousValue=p,this.currentValue=f,this.firstChange=_}return(0,L.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function ra(){return fl}function fl(c){return c.type.prototype.ngOnChanges&&(c.setInput=ao),Na}function Na(){var c=ka(this),p=null==c?void 0:c.current;if(p){var f=c.previous;if(f===xt)c.previous=p;else for(var _ in p)f[_]=p[_];c.current=null,this.ngOnChanges(p)}}function ao(c,p,f,_){var w=ka(c)||function vu(c,p){return c[qa]=p}(c,{previous:xt,current:null}),I=w.current||(w.current={}),V=w.previous,ee=this.declaredInputs[f],oe=V[ee];I[ee]=new Qo(oe&&oe.currentValue,p,V===xt),c[_]=p}ra.ngInherit=!0;var qa="__ngSimpleChanges__";function ka(c){return c[qa]||null}var vd=null,Yi=function(p,f,_){null!=vd&&vd(p,f,_)},kp="math";function so(c){for(;Array.isArray(c);)c=c[0];return c}function Ec(c,p){return so(p[c])}function yo(c,p){return so(p[c.index])}function Ba(c,p){return c.data[p]}function cs(c,p){return c[p]}function fo(c,p){var f=p[c];return Wi(f)?f:f[0]}function Ks(c){return 64==(64&c[2])}function jl(c,p){return null==p?null:c[p]}function nh(c){c[18]=0}function ds(c,p){c[5]+=p;for(var f=c,_=c[3];null!==_&&(1===p&&1===f[5]||-1===p&&0===f[5]);)_[5]+=p,f=_,_=_[3]}var Mr={lFrame:ah(null),bindingsEnabled:!0};function Ds(){return Mr.bindingsEnabled}function qu(){Mr.bindingsEnabled=!0}function Gl(){Mr.bindingsEnabled=!1}function An(){return Mr.lFrame.lView}function we(){return Mr.lFrame.tView}function Te(c){return Mr.lFrame.contextLView=c,c[8]}function se(c){return Mr.lFrame.contextLView=null,c}function Me(){for(var c=Oe();null!==c&&64===c.type;)c=c.parent;return c}function Oe(){return Mr.lFrame.currentTNode}function mt(){var c=Mr.lFrame,p=c.currentTNode;return c.isParent?p:p.parent}function Ht(c,p){var f=Mr.lFrame;f.currentTNode=c,f.isParent=p}function On(){return Mr.lFrame.isParent}function sr(){Mr.lFrame.isParent=!1}function Xo(){var c=Mr.lFrame,p=c.bindingRootIndex;return-1===p&&(p=c.bindingRootIndex=c.tView.bindingStartIndex),p}function Ta(){return Mr.lFrame.bindingIndex}function qs(c){return Mr.lFrame.bindingIndex=c}function _l(){return Mr.lFrame.bindingIndex++}function ps(c){var p=Mr.lFrame,f=p.bindingIndex;return p.bindingIndex=p.bindingIndex+c,f}function oh(c){Mr.lFrame.inI18n=c}function $m(c,p){var f=Mr.lFrame;f.bindingIndex=f.bindingRootIndex=c,Ju(p)}function Ju(c){Mr.lFrame.currentDirectiveIndex=c}function fs(c){var p=Mr.lFrame.currentDirectiveIndex;return-1===p?null:c[p]}function gl(){return Mr.lFrame.currentQueryIndex}function hs(c){Mr.lFrame.currentQueryIndex=c}function Sv(c){var p=c[1];return 2===p.type?p.declTNode:1===p.type?c[6]:null}function Cd(c,p,f){if(f&ye.SkipSelf){for(var _=p,w=c;null===(_=_.parent)&&!(f&ye.Host)&&!(null===(_=Sv(w))||(w=w[15],10&_.type)););if(null===_)return!1;p=_,c=w}var I=Mr.lFrame=ia();return I.currentTNode=p,I.lView=c,!0}function Js(c){var p=ia(),f=c[1];Mr.lFrame=p,p.currentTNode=f.firstChild,p.lView=c,p.tView=f,p.contextLView=c,p.bindingIndex=f.bindingStartIndex,p.inI18n=!1}function ia(){var c=Mr.lFrame,p=null===c?null:c.child;return null===p?ah(c):p}function ah(c){var p={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:c,child:null,inI18n:!1};return null!==c&&(c.child=p),p}function Ie(){var c=Mr.lFrame;return Mr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Ue=Ie;function _e(){var c=Ie();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Ee(c){var p=Mr.lFrame.contextLView=function ke(c,p){for(;c>0;)p=p[15],c--;return p}(c,Mr.lFrame.contextLView);return p[8]}function Ge(){return Mr.lFrame.selectedIndex}function it(c){Mr.lFrame.selectedIndex=c}function Vt(){var c=Mr.lFrame;return Ba(c.tView,c.selectedIndex)}function Cn(){Mr.lFrame.currentNamespace="svg"}function gr(){Mr.lFrame.currentNamespace=kp}function Rr(){!function ms(){Mr.lFrame.currentNamespace=null}()}function Ac(c,p){for(var f=p.directiveStart,_=p.directiveEnd;f<_;f++){var I=c.data[f].type.prototype,V=I.ngAfterContentInit,ee=I.ngAfterContentChecked,oe=I.ngAfterViewInit,ve=I.ngAfterViewChecked,He=I.ngOnDestroy;V&&(c.contentHooks||(c.contentHooks=[])).push(-f,V),ee&&((c.contentHooks||(c.contentHooks=[])).push(f,ee),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(f,ee)),oe&&(c.viewHooks||(c.viewHooks=[])).push(-f,oe),ve&&((c.viewHooks||(c.viewHooks=[])).push(f,ve),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(f,ve)),null!=He&&(c.destroyHooks||(c.destroyHooks=[])).push(f,He)}}function xp(c,p,f){uC(c,p,3,f)}function e_(c,p,f,_){(3&c[2])===f&&uC(c,p,f,_)}function Ep(c,p){var f=c[2];(3&f)===p&&(f&=2047,f+=1,c[2]=f)}function uC(c,p,f,_){for(var w=void 0!==_?65535&c[18]:0,I=null!=_?_:-1,V=p.length-1,ee=0,oe=w;oe<V;oe++){if("number"==typeof p[oe+1]){if(ee=p[oe],null!=_&&ee>=_)break}else p[oe]<0&&(c[18]+=65536),(ee<I||-1==I)&&(ie(c,f,p,oe),c[18]=(4294901760&c[18])+oe+2),oe++}}function ie(c,p,f,_){var w=f[_]<0,I=f[_+1],ee=c[w?-f[_]:f[_]];if(w){if(c[2]>>11<c[18]>>16&&(3&c[2])===p){c[2]+=2048,Yi(4,ee,I);try{I.call(ee)}finally{Yi(5,ee,I)}}}else{Yi(4,ee,I);try{I.call(ee)}finally{Yi(5,ee,I)}}}var he=(0,L.Z)(function c(p,f,_){(0,v.Z)(this,c),this.factory=p,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=_});function li(c,p,f){for(var _=0;_<f.length;){var w=f[_];if("number"==typeof w){if(0!==w)break;_++;var I=f[_++],V=f[_++],ee=f[_++];c.setAttribute(p,V,ee,I)}else{var oe=w,ve=f[++_];da(oe)?c.setProperty(p,oe,ve):c.setAttribute(p,oe,ve),_++}}return _}function Ao(c){return 3===c||4===c||6===c}function da(c){return 64===c.charCodeAt(0)}function As(c,p){if(null!==p&&0!==p.length)if(null===c||0===c.length)c=p.slice();else for(var f=-1,_=0;_<p.length;_++){var w=p[_];"number"==typeof w?f=w:0===f||oa(c,f,w,null,-1===f||2===f?p[++_]:null)}return c}function oa(c,p,f,_,w){var I=0,V=c.length;if(-1===p)V=-1;else for(;I<c.length;){var ee=c[I++];if("number"==typeof ee){if(ee===p){V=-1;break}if(ee>p){V=I-1;break}}}for(;I<c.length;){var oe=c[I];if("number"==typeof oe)break;if(oe===f){if(null===_)return void(null!==w&&(c[I+1]=w));if(_===c[I+1])return void(c[I+2]=w)}I++,null!==_&&I++,null!==w&&I++}-1!==V&&(c.splice(V,0,p),I=V+1),c.splice(I++,0,f),null!==_&&c.splice(I++,0,_),null!==w&&c.splice(I++,0,w)}function Qs(c){return-1!==c}function Si(c){return 32767&c}function Go(c,p){for(var f=function Qu(c){return c>>16}(c),_=p;f>0;)_=_[15],f--;return _}var Xu=!0;function $u(c){var p=Xu;return Xu=c,p}var dC=0,yu={};function xv(c,p){var f=sh(c,p);if(-1!==f)return f;var _=p[1];_.firstCreatePass&&(c.injectorIndex=p.length,t_(_.data,c),t_(p,null),t_(_.blueprint,null));var w=Os(c,p),I=c.injectorIndex;if(Qs(w))for(var V=Si(w),ee=Go(w,p),oe=ee[1].data,ve=0;ve<8;ve++)p[I+ve]=ee[V+ve]|oe[V+ve];return p[I+8]=w,I}function t_(c,p){c.push(0,0,0,0,0,0,0,0,p)}function sh(c,p){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===p[c.injectorIndex+8]?-1:c.injectorIndex}function Os(c,p){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var f=0,_=null,w=p;null!==w;){if(null===(_=Xs(w)))return-1;if(f++,w=w[15],-1!==_.injectorIndex)return _.injectorIndex|f<<16}return-1}function n_(c,p,f){!function iM(c,p,f){var _;"string"==typeof f?_=f.charCodeAt(0)||0:f.hasOwnProperty(vt)&&(_=f[vt]),null==_&&(_=f[vt]=dC++);var w=255&_,I=1<<w;p.data[c+(w>>5)]|=I}(c,p,f)}function lh(c,p,f){if(f&ye.Optional||void 0!==c)return c;Tt(0,"NodeInjector")}function Dp(c,p,f,_){if(f&ye.Optional&&void 0===_&&(_=null),0==(f&(ye.Self|ye.Host))){var w=c[9],I=lt(void 0);try{return w?w.get(p,_,f&ye.Optional):ct(p,_,f&ye.Optional)}finally{lt(I)}}return lh(_,0,f)}function aM(c,p,f){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye.Default,w=arguments.length>4?arguments[4]:void 0;if(null!==c){if(1024&p[2]){var I=di(c,p,f,_,yu);if(I!==yu)return I}var V=Ap(c,p,f,_,yu);if(V!==yu)return V}return Dp(p,f,_,w)}function Ap(c,p,f,_,w){var I=function rF(c){if("string"==typeof c)return c.charCodeAt(0)||0;var p=c.hasOwnProperty(vt)?c[vt]:void 0;return"number"==typeof p?p>=0?255&p:iF:p}(f);if("function"==typeof I){if(!Cd(p,c,_))return _&ye.Host?lh(w,0,_):Dp(p,f,_,w);try{var V=I(_);if(null!=V||_&ye.Optional)return V;Tt()}finally{Ue()}}else if("number"==typeof I){var ee=null,oe=sh(c,p),ve=-1,He=_&ye.Host?p[16][6]:null;for((-1===oe||_&ye.SkipSelf)&&(-1!==(ve=-1===oe?Os(c,p):p[oe+8])&&ii(_,!1)?(ee=p[1],oe=Si(ve),p=Go(ve,p)):oe=-1);-1!==oe;){var rt=p[1];if(sM(I,oe,rt.data)){var ft=_s(oe,p,f,ee,_,He);if(ft!==yu)return ft}-1!==(ve=p[oe+8])&&ii(_,p[1].data[oe+8]===He)&&sM(I,oe,p)?(ee=rt,oe=Si(ve),p=Go(ve,p)):oe=-1}}return w}function _s(c,p,f,_,w,I){var V=p[1],ee=V.data[c+8],He=Ev(ee,V,f,null==_?qi(ee)&&Xu:_!=V&&0!=(3&ee.type),w&ye.Host&&I===ee);return null!==He?Dv(p,V,He,ee):yu}function Ev(c,p,f,_,w){for(var I=c.providerIndexes,V=p.data,ee=1048575&I,oe=c.directiveStart,ve=c.directiveEnd,He=I>>20,ft=w?ee+He:ve,wt=_?ee:ee+He;wt<ft;wt++){var en=V[wt];if(wt<oe&&f===en||wt>=oe&&en.type===f)return wt}if(w){var _n=V[oe];if(_n&&Jt(_n)&&_n.type===f)return oe}return null}function Dv(c,p,f,_){var w=c[f],I=p.data;if(function Fe(c){return c instanceof he}(w)){var V=w;V.resolving&&function je(c,p){var f=p?". Dependency path: ".concat(p.join(" > ")," > ").concat(c):"";throw new de(-200,"Circular dependency in DI detected for ".concat(c).concat(f))}(me(I[f]));var ee=$u(V.canSeeViewProviders);V.resolving=!0;var oe=V.injectImpl?lt(V.injectImpl):null;Cd(c,_,ye.Default);try{w=c[f]=V.factory(void 0,I,c,_),p.firstCreatePass&&f>=_.directiveStart&&function Pr(c,p,f){var _=p.type.prototype,w=_.ngOnChanges,I=_.ngOnInit,V=_.ngDoCheck;if(w){var ee=fl(p);(f.preOrderHooks||(f.preOrderHooks=[])).push(c,ee),(f.preOrderCheckHooks||(f.preOrderCheckHooks=[])).push(c,ee)}I&&(f.preOrderHooks||(f.preOrderHooks=[])).push(0-c,I),V&&((f.preOrderHooks||(f.preOrderHooks=[])).push(c,V),(f.preOrderCheckHooks||(f.preOrderCheckHooks=[])).push(c,V))}(f,I[f],p)}finally{null!==oe&<(oe),$u(ee),V.resolving=!1,Ue()}}return w}function sM(c,p,f){var _=1<<c;return!!(f[p+(c>>5)]&_)}function ii(c,p){return!(c&ye.Self||c&ye.Host&&p)}var Jn=function(){function c(p,f){(0,v.Z)(this,c),this._tNode=p,this._lView=f}return(0,L.Z)(c,[{key:"get",value:function(f,_,w){return aM(this._tNode,this._lView,f,w,_)}}]),c}();function iF(){return new Jn(Me(),An())}function Is(c){return jt(function(){for(var p=c.prototype.constructor,f=p[qe]||r_(p),_=Object.prototype,w=Object.getPrototypeOf(c.prototype).constructor;w&&w!==_;){var I=w[qe]||r_(w);if(I&&I!==f)return I;w=Object.getPrototypeOf(w)}return function(V){return new V}})}function r_(c){return be(c)?function(){var p=r_(ne(c));return p&&p()}:oo(c)}function di(c,p,f,_,w){for(var I=c,V=p;null!==I&&null!==V&&1024&V[2]&&!(256&V[2]);){var ee=Ap(I,V,f,_|ye.Self,yu);if(ee!==yu)return ee;var oe=I.parent;if(!oe){var ve=V[21];if(ve){var He=ve.get(f,yu,_);if(He!==yu)return He}oe=Xs(V),V=V[15]}I=oe}return w}function Xs(c){var p=c[1],f=p.type;return 2===f?p.declTNode:1===f?c[6]:null}function lM(c){return function oM(c,p){if("class"===p)return c.classes;if("style"===p)return c.styles;var f=c.attrs;if(f)for(var _=f.length,w=0;w<_;){var I=f[w];if(Ao(I))break;if(0===I)w+=2;else if("number"==typeof I)for(w++;w<_&&"string"==typeof f[w];)w++;else{if(I===p)return f[w+1];w+=2}}return null}(Me(),c)}var uh="__annotations__",aa="__parameters__",wd="__prop__metadata__";function ch(c,p,f,_,w){return jt(function(){var I=rn(p);function V(){for(var ee=arguments.length,oe=new Array(ee),ve=0;ve<ee;ve++)oe[ve]=arguments[ve];if(this instanceof V)return I.call.apply(I,[this].concat(oe)),this;var He=(0,j.Z)(V,oe);return function(ft){return w&&w.apply(void 0,[ft].concat(oe)),(ft.hasOwnProperty(uh)?ft[uh]:Object.defineProperty(ft,uh,{value:[]})[uh]).push(He),_&&_(ft),ft}}return f&&(V.prototype=Object.create(f.prototype)),V.prototype.ngMetadataName=c,V.annotationCls=V,V})}function rn(c){return function(){if(c){var f=c.apply(void 0,arguments);for(var _ in f)this[_]=f[_]}}}function dh(c,p,f){return jt(function(){var _=rn(p);function w(){for(var I=arguments.length,V=new Array(I),ee=0;ee<I;ee++)V[ee]=arguments[ee];if(this instanceof w)return _.apply(this,V),this;var oe=(0,j.Z)(w,V);return ve.annotation=oe,ve;function ve(He,rt,ft){for(var wt=He.hasOwnProperty(aa)?He[aa]:Object.defineProperty(He,aa,{value:[]})[aa];wt.length<=ft;)wt.push(null);return(wt[ft]=wt[ft]||[]).push(oe),He}}return f&&(w.prototype=Object.create(f.prototype)),w.prototype.ngMetadataName=c,w.annotationCls=w,w})}function Oc(c,p,f,_){return jt(function(){var w=rn(p);function I(){for(var V=arguments.length,ee=new Array(V),oe=0;oe<V;oe++)ee[oe]=arguments[oe];if(this instanceof I)return w.apply(this,ee),this;var ve=(0,j.Z)(I,ee);function He(rt,ft){var wt=rt.constructor,en=wt.hasOwnProperty(wd)?wt[wd]:Object.defineProperty(wt,wd,{value:{}})[wd];en[ft]=en.hasOwnProperty(ft)&&en[ft]||[],en[ft].unshift(ve),_&&_.apply(void 0,[rt,ft].concat(ee))}return He}return f&&(I.prototype=Object.create(f.prototype)),I.prototype.ngMetadataName=c,I.annotationCls=I,I})}var ph,Fa,FP,uM=dh("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return lM(c)}}}),ho=function(){function c(p,f){(0,v.Z)(this,c),this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=ge({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}return(0,L.Z)(c,[{key:"multi",get:function(){return this}},{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),Av=(new ho("AnalyzeForEntryComponents"),(0,L.Z)(function c(){(0,v.Z)(this,c)})),ZP=Oc("ContentChildren",function(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},p)},Av),oF=Oc("ContentChild",function(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},p)},Av),NP=Oc("ViewChildren",function(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},p)},Av),BP=Oc("ViewChild",function(c,p){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},p)},Av);function Ma(c){var p=hn.ng;if(p&&p.\u0275compilerFacade)return p.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(c){c[c.Directive=0]="Directive",c[c.Component=1]="Component",c[c.Injectable=2]="Injectable",c[c.Pipe=3]="Pipe",c[c.NgModule=4]="NgModule"}(ph||(ph={})),function(c){c[c.Directive=0]="Directive",c[c.Pipe=1]="Pipe",c[c.NgModule=2]="NgModule"}(Fa||(Fa={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(FP||(FP={}));var Qt=Function;function Le(c){return"function"==typeof c}function Wl(c,p){void 0===p&&(p=c);for(var f=0;f<c.length;f++){var _=c[f];Array.isArray(_)?(p===c&&(p=c.slice(0,f)),Wl(_,p)):p!==c&&p.push(_)}return p}function kd(c,p){c.forEach(function(f){return Array.isArray(f)?kd(f,p):p(f)})}function Ov(c,p,f){p>=c.length?c.push(f):c.splice(p,0,f)}function pC(c,p){return p>=c.length-1?c.pop():c.splice(p,1)[0]}function Td(c,p){for(var f=[],_=0;_<c;_++)f.push(p);return f}function Ua(c,p,f){var _=Md(c,p);return _>=0?c[1|_]=f:function cM(c,p,f,_){var w=c.length;if(w==p)c.push(f,_);else if(1===w)c.push(_,c[0]),c[0]=f;else{for(w--,c.push(c[w-1],c[w]);w>p;){var I=w-2;c[w]=c[I],w--}c[p]=f,c[p+1]=_}}(c,_=~_,p,f),_}function fC(c,p){var f=Md(c,p);if(f>=0)return c[1|f]}function Md(c,p){return dM(c,p,1)}function dM(c,p,f){for(var _=0,w=c.length>>f;w!==_;){var I=_+(w-_>>1),V=c[I<<f];if(p===V)return I<<f;V>p?w=I:_=I+1}return~(w<<f)}var cF=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,dF=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,jP=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,pF=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var GP=function(){function c(p){(0,v.Z)(this,c),this._reflect=p||hn.Reflect}return(0,L.Z)(c,[{key:"factory",value:function(f){return function(){for(var _=arguments.length,w=new Array(_),I=0;I<_;I++)w[I]=arguments[I];return(0,j.Z)(f,w)}}},{key:"_zipTypesAndAnnotations",value:function(f,_){var w;w=Td(void 0===f?_.length:f.length);for(var I=0;I<w.length;I++)void 0===f?w[I]=[]:f[I]&&f[I]!=Object?w[I]=[f[I]]:w[I]=[],_&&null!=_[I]&&(w[I]=w[I].concat(_[I]));return w}},{key:"_ownParameters",value:function(f,_){if(function fF(c){return cF.test(c)||pF.test(c)||dF.test(c)&&!jP.test(c)}(f.toString()))return null;if(f.parameters&&f.parameters!==_.parameters)return f.parameters;var I=f.ctorParameters;if(I&&I!==_.ctorParameters){var V="function"==typeof I?I():I,ee=V.map(function(rt){return rt&&rt.type}),oe=V.map(function(rt){return rt&&Ja(rt.decorators)});return this._zipTypesAndAnnotations(ee,oe)}var ve=f.hasOwnProperty(aa)&&f[aa],He=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",f);return He||ve?this._zipTypesAndAnnotations(He,ve):Td(f.length)}},{key:"parameters",value:function(f){if(!Le(f))return[];var _=yl(f),w=this._ownParameters(f,_);return!w&&_!==Object&&(w=this.parameters(_)),w||[]}},{key:"_ownAnnotations",value:function(f,_){if(f.annotations&&f.annotations!==_.annotations){var w=f.annotations;return"function"==typeof w&&w.annotations&&(w=w.annotations),w}return f.decorators&&f.decorators!==_.decorators?Ja(f.decorators):f.hasOwnProperty(uh)?f[uh]:null}},{key:"annotations",value:function(f){if(!Le(f))return[];var _=yl(f),w=this._ownAnnotations(f,_)||[];return(_!==Object?this.annotations(_):[]).concat(w)}},{key:"_ownPropMetadata",value:function(f,_){if(f.propMetadata&&f.propMetadata!==_.propMetadata){var w=f.propMetadata;return"function"==typeof w&&w.propMetadata&&(w=w.propMetadata),w}if(f.propDecorators&&f.propDecorators!==_.propDecorators){var I=f.propDecorators,V={};return Object.keys(I).forEach(function(ee){V[ee]=Ja(I[ee])}),V}return f.hasOwnProperty(wd)?f[wd]:null}},{key:"propMetadata",value:function(f){if(!Le(f))return{};var _=yl(f),w={};if(_!==Object){var I=this.propMetadata(_);Object.keys(I).forEach(function(ee){w[ee]=I[ee]})}var V=this._ownPropMetadata(f,_);return V&&Object.keys(V).forEach(function(ee){var oe=[];w.hasOwnProperty(ee)&&oe.push.apply(oe,(0,D.Z)(w[ee])),oe.push.apply(oe,(0,D.Z)(V[ee])),w[ee]=oe}),w}},{key:"ownPropMetadata",value:function(f){return Le(f)&&this._ownPropMetadata(f,yl(f))||{}}},{key:"hasLifecycleHook",value:function(f,_){return f instanceof Qt&&_ in f.prototype}}]),c}();function Ja(c){return c?c.map(function(p){var _=p.type.annotationCls,w=p.args?p.args:[];return(0,j.Z)(_,(0,D.Z)(w))}):[]}function yl(c){var p=c.prototype?Object.getPrototypeOf(c.prototype):null;return(p?p.constructor:null)||Object}var Vl={},hC="__NG_DI_FLAG__",Op="ngTempTokenPath",fh=/\n/gm,fM="__source",Iv=void 0;function i_(c){var p=Iv;return Iv=c,p}function hF(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;if(void 0===Iv)throw new de(-203,!1);return null===Iv?ct(c,void 0,p):Iv.get(c,p&ye.Optional?null:void 0,p)}function pa(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return(Ne()||hF)(ne(c),p)}function WP(c){throw new de(202,!1)}function VP(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return"number"!=typeof p&&(p=0|(p.optional&&8)|(p.host&&1)|(p.self&&2)|(p.skipSelf&&4)),pa(c,p)}function hM(c){for(var p=[],f=0;f<c.length;f++){var _=ne(c[f]);if(Array.isArray(_)){if(0===_.length)throw new de(900,!1);for(var w=void 0,I=ye.Default,V=0;V<_.length;V++){var ee=_[V],oe=mM(ee);"number"==typeof oe?-1===oe?w=ee.token:I|=oe:w=ee}p.push(pa(w,I))}else p.push(pa(_))}return p}function Ip(c,p){return c[hC]=p,c.prototype[hC]=p,c}function mM(c){return c[hC]}function _M(c,p,f,_){var w=c[Op];throw p[fM]&&w.unshift(p[fM]),c.message=function YP(c,p,f){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;var w=X(p);if(Array.isArray(p))w=p.map(X).join(" -> ");else if("object"==typeof p){var I=[];for(var V in p)if(p.hasOwnProperty(V)){var ee=p[V];I.push(V+":"+("string"==typeof ee?JSON.stringify(ee):X(ee)))}w="{".concat(I.join(", "),"}")}return"".concat(f).concat(_?"("+_+")":"","[").concat(w,"]: ").concat(c.replace(fh,"\n "))}("\n"+c.message,w,f,_),c.ngTokenPath=w,c[Op]=null,c}var Pv=Ip(dh("Inject",function(c){return{token:c}}),-1),Pp=Ip(dh("Optional"),8),hh=Ip(dh("Self"),2),o_=Ip(dh("SkipSelf"),4),gM=Ip(dh("Host"),1),KP=null;function a_(){return KP=KP||new GP}function vM(c){return mF(a_().parameters(c))}function mF(c){return c.map(function(p){return function oV(c){var p={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(c)&&c.length>0)for(var f=0;f<c.length;f++){var _=c[f];if(void 0!==_){var w=Object.getPrototypeOf(_);if(_ instanceof Pp||"Optional"===w.ngMetadataName)p.optional=!0;else if(_ instanceof o_||"SkipSelf"===w.ngMetadataName)p.skipSelf=!0;else if(_ instanceof hh||"Self"===w.ngMetadataName)p.self=!0;else if(_ instanceof gM||"Host"===w.ngMetadataName)p.host=!0;else if(_ instanceof Pv)p.token=_.token;else if(_ instanceof uM){if(void 0===_.attributeName)throw new de(204,!1);p.attribute=_.attributeName}else p.token=_}}else void 0===c||Array.isArray(c)&&0===c.length?p.token=null:p.token=c;return p}(p)})}var Rv=new Map,bu=new Set;function yM(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}var vC=new Map,JP=!0;function vF(c,p){(function lV(c,p,f){if(p&&p!==f&&JP)throw new Error("Duplicate module registered for ".concat(c," - ").concat(X(p)," vs ").concat(X(p.name)))})(p,vC.get(p)||null,c),vC.set(p,c)}var Lv;!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Lv||(Lv={}));var kF=/^>|^->|<!--|-->|--!>|<!-$/g,TF=/(<|>)/;function yC(c){return c.replace(kF,function(p){return p.replace(TF,"\u200b$1\u200b")})}var wM=new Map,MF=0;var MM,kM="__ngContext__";function Ps(c,p){Wi(p)?(c[kM]=p[20],function t3(c){wM.set(c[20],c)}(p)):c[kM]=p}function SM(c,p){return MM(c,p)}function Fv(c){var p=c[3];return Ui(p)?p[3]:p}function _h(c){return Uv(c[13])}function bl(c){return Uv(c[4])}function Uv(c){for(;null!==c&&!Ui(c);)c=c[4];return c}function Rp(c,p,f,_,w){if(null!=_){var I,V=!1;Ui(_)?I=_:Wi(_)&&(V=!0,_=_[0]);var ee=so(_);0===c&&null!==f?null==w?MC(p,f,ee):Zp(p,f,ee,w||null,!0):1===c&&null!==f?Zp(p,f,ee,w||null,!0):2===c?Np(p,ee,V):3===c&&p.destroyNode(ee),null!=I&&function h_(c,p,f,_,w){var I=f[7],V=so(f);I!==V&&Rp(p,c,_,I,w);for(var ee=10;ee<f.length;ee++){var oe=f[ee];ku(oe[1],oe,c,p,_,I)}}(p,c,I,f,w)}}function EM(c,p){return c.createText(p)}function Sa(c,p,f){c.setValue(p,f)}function hV(c,p){return c.createComment(yC(p))}function Sd(c,p,f){return c.createElement(p,f)}function u3(c,p,f,_){var w=10+_,I=f.length;_>0&&(f[w-1][4]=p),_<I-10?(p[4]=f[w],Ov(f,10+_,p)):(f.push(p),p[4]=null),p[3]=f;var V=p[17];null!==V&&f!==V&&function AF(c,p){var f=c[9],w=p[3][3][16];p[16]!==w&&(c[2]=!0),null===f?c[9]=[p]:f.push(p)}(V,p);var ee=p[19];null!==ee&&ee.insertView(c),p[2]|=64}function c3(c,p){var f=c[9],_=f.indexOf(p),w=p[3];512&p[2]&&(p[2]&=-513,ds(w,-1)),f.splice(_,1)}function TC(c,p){if(!(c.length<=10)){var f=10+p,_=c[f];if(_){var w=_[17];null!==w&&w!==c&&c3(w,_),p>0&&(c[f-1][4]=_[4]);var I=pC(c,10+p);!function kC(c,p){ku(c,p,p[11],2,null,null),p[0]=null,p[6]=null}(_[1],_);var V=I[19];null!==V&&V.detachView(I[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}}function wu(c,p){if(!(128&p[2])){var f=p[11];f.destroyNode&&ku(c,p,f,3,null,null),function l3(c){var p=c[13];if(!p)return Rs(c[1],c);for(;p;){var f=null;if(Wi(p))f=p[13];else{var _=p[10];_&&(f=_)}if(!f){for(;p&&!p[4]&&p!==c;)Wi(p)&&Rs(p[1],p),p=p[3];null===p&&(p=c),Wi(p)&&Rs(p[1],p),f=p&&p[4]}p=f}}(p)}}function Rs(c,p){if(!(128&p[2])){p[2]&=-65,p[2]|=128,function DM(c,p){var f;if(null!=c&&null!=(f=c.destroyHooks))for(var _=0;_<f.length;_+=2){var w=p[f[_]];if(!(w instanceof he)){var I=f[_+1];if(Array.isArray(I))for(var V=0;V<I.length;V+=2){var ee=w[I[V]],oe=I[V+1];Yi(4,ee,oe);try{oe.call(ee)}finally{Yi(5,ee,oe)}}else{Yi(4,w,I);try{I.call(w)}finally{Yi(5,w,I)}}}}}(c,p),function OF(c,p){var f=c.cleanup,_=p[7],w=-1;if(null!==f)for(var I=0;I<f.length-1;I+=2)if("string"==typeof f[I]){var V=f[I+1],ee="function"==typeof V?V(p):so(p[V]),oe=_[w=f[I+2]],ve=f[I+3];"boolean"==typeof ve?ee.removeEventListener(f[I],oe,ve):ve>=0?_[w=ve]():_[w=-ve].unsubscribe(),I+=2}else{var He=_[w=f[I+1]];f[I].call(He)}if(null!==_){for(var rt=w+1;rt<_.length;rt++){(0,_[rt])()}p[7]=null}}(c,p),1===p[1].type&&p[11].destroy();var f=p[17];if(null!==f&&Ui(p[3])){f!==p[3]&&c3(f,p);var _=p[19];null!==_&&_.detachView(c)}!function bC(c){wM.delete(c[20])}(p)}}function Lp(c,p,f){return AM(c,p.parent,f)}function AM(c,p,f){for(var _=p;null!==_&&40&_.type;)_=(p=_).parent;if(null===_)return f[0];if(2&_.flags){var w=c.data[_.directiveStart].encapsulation;if(w===En.None||w===En.Emulated)return null}return yo(_,f)}function Zp(c,p,f,_,w){c.insertBefore(p,f,_,w)}function MC(c,p,f){c.appendChild(p,f)}function OM(c,p,f,_,w){null!==_?Zp(c,p,f,_,w):MC(c,p,f)}function Hv(c,p){return c.parentNode(p)}function p3(c,p,f){return c_(c,p,f)}function jv(c,p,f){return 40&c.type?yo(c,f):null}var d_,EC,c_=jv;function p_(c,p){c_=c,d_=p}function xC(c,p,f,_){var w=Lp(c,_,p),I=p[11],ee=p3(_.parent||p[6],_,p);if(null!=w)if(Array.isArray(f))for(var oe=0;oe<f.length;oe++)OM(I,w,f[oe],ee,!1);else OM(I,w,f,ee,!1);void 0!==d_&&d_(I,_,p,f,w)}function Gv(c,p){if(null!==p){var f=p.type;if(3&f)return yo(p,c);if(4&f)return f_(-1,c[p.index]);if(8&f){var _=p.child;if(null!==_)return Gv(c,_);var w=c[p.index];return Ui(w)?f_(-1,w):so(w)}if(32&f)return SM(p,c)()||so(c[p.index]);var ee=Ic(c,p);return null!==ee?Array.isArray(ee)?ee[0]:Gv(Fv(c[16]),ee):Gv(c,p.next)}return null}function Ic(c,p){if(null!==p){var _=c[16][6],w=p.projection;return _.projection[w]}return null}function f_(c,p){var f=10+c+1;if(f<p.length){var _=p[f],w=_[1].firstChild;if(null!==w)return Gv(_,w)}return p[7]}function Np(c,p,f){var _=Hv(c,p);_&&function IM(c,p,f,_){c.removeChild(p,f,_)}(c,_,p,f)}function nc(c,p,f,_,w,I,V){for(;null!=f;){var ee=_[f.index],oe=f.type;if(V&&0===p&&(ee&&Ps(so(ee),_),f.flags|=4),64!=(64&f.flags))if(8&oe)nc(c,p,f.child,_,w,I,!1),Rp(p,c,w,ee,I);else if(32&oe){for(var ve=SM(f,_),He=void 0;He=ve();)Rp(p,c,w,He,I);Rp(p,c,w,ee,I)}else 16&oe?gh(c,p,_,f,w,I):Rp(p,c,w,ee,I);f=V?f.projectionNext:f.next}}function ku(c,p,f,_,w,I){nc(f,_,c.firstChild,p,w,I,!1)}function xd(c,p,f){gh(p[11],0,p,f,Lp(c,f,p),p3(f.parent||p[6],f,p))}function gh(c,p,f,_,w,I){var V=f[16],oe=V[6].projection[_.projection];if(Array.isArray(oe))for(var ve=0;ve<oe.length;ve++){Rp(p,c,w,oe[ve],I)}else nc(c,p,oe,V[3],w,I,!0)}function PM(c,p,f){c.setAttribute(p,"style",f)}function zv(c,p,f){""===f?c.removeAttribute(p,"class"):c.setAttribute(p,"class",f)}function DC(){if(void 0===EC&&(EC=null,hn.trustedTypes))try{EC=hn.trustedTypes.createPolicy("angular",{createHTML:function(p){return p},createScript:function(p){return p},createScriptURL:function(p){return p}})}catch(c){}return EC}function Tu(c){var p;return(null===(p=DC())||void 0===p?void 0:p.createHTML(c))||c}function AC(c,p,f){var _=An(),w=Vt(),I=yo(w,_);if(2===w.type&&"iframe"===p.toLowerCase()){var V=I;V.src="",V.srcdoc=Tu(""),Np(_[11],V);throw new de(-910,!1)}return c}var OC,vh=void 0;function RM(c){vh=c}function m_(){return void 0!==vh?vh:"undefined"!=typeof document?document:void 0}function Wv(){if(void 0===OC&&(OC=null,hn.trustedTypes))try{OC=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(p){return p},createScript:function(p){return p},createScriptURL:function(p){return p}})}catch(c){}return OC}function Fp(c){var p;return(null===(p=Wv())||void 0===p?void 0:p.createHTML(c))||c}function f3(c){var p;return(null===(p=Wv())||void 0===p?void 0:p.createScript(c))||c}function h3(c){var p;return(null===(p=Wv())||void 0===p?void 0:p.createScriptURL(c))||c}var Ed=function(){function c(p){(0,v.Z)(this,c),this.changingThisBreaksApplicationSecurity=p}return(0,L.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),m3=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f,[{key:"getTypeName",value:function(){return"HTML"}}]),f}(Ed),_3=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f,[{key:"getTypeName",value:function(){return"Style"}}]),f}(Ed),g3=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f,[{key:"getTypeName",value:function(){return"Script"}}]),f}(Ed),v3=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f,[{key:"getTypeName",value:function(){return"URL"}}]),f}(Ed),y3=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),f}(Ed);function Pc(c){return c instanceof Ed?c.changingThisBreaksApplicationSecurity:c}function Rc(c,p){var f=function Up(c){return c instanceof Ed&&c.getTypeName()||null}(c);if(null!=f&&f!==p){if("ResourceURL"===f&&"URL"===p)return!0;throw new Error("Required a safe ".concat(p,", got a ").concat(f," (see https://g.co/ng/security#xss)"))}return f===p}function b3(c){return new m3(c)}function Lc(c){return new _3(c)}function C3(c){return new g3(c)}function _V(c){return new v3(c)}function gV(c){return new y3(c)}function RF(c){var p=new LM(c);return function Hp(){try{return!!(new window.DOMParser).parseFromString(Tu(""),"text/html")}catch(c){return!1}}()?new LF(p):p}var LF=function(){function c(p){(0,v.Z)(this,c),this.inertDocumentHelper=p}return(0,L.Z)(c,[{key:"getInertBodyElement",value:function(f){f="<body><remove></remove>"+f;try{var _=(new window.DOMParser).parseFromString(Tu(f),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(f):(_.removeChild(_.firstChild),_)}catch(w){return null}}}]),c}(),LM=function(){function c(p){if((0,v.Z)(this,c),this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var f=this.inertDocument.createElement("html");this.inertDocument.appendChild(f);var _=this.inertDocument.createElement("body");f.appendChild(_)}}return(0,L.Z)(c,[{key:"getInertBodyElement",value:function(f){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Tu(f),_;var w=this.inertDocument.createElement("body");return w.innerHTML=Tu(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(w),w}},{key:"stripCustomNsAttrs",value:function(f){for(var _=f.attributes,w=_.length-1;0<w;w--){var V=_.item(w).name;("xmlns:ns1"===V||0===V.indexOf("ns1:"))&&f.removeAttribute(V)}for(var ee=f.firstChild;ee;)ee.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(ee),ee=ee.nextSibling}}]),c}();var ZM=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function IC(c){return(c=String(c)).match(ZM)?c:"unsafe:"+c}function Zc(c){var _,p={},f=(0,x.Z)(c.split(","));try{for(f.s();!(_=f.n()).done;){p[_.value]=!0}}catch(I){f.e(I)}finally{f.f()}return p}function __(){for(var c={},p=arguments.length,f=new Array(p),_=0;_<p;_++)f[_]=arguments[_];for(var w=0,I=f;w<I.length;w++){var V=I[w];for(var ee in V)V.hasOwnProperty(ee)&&(c[ee]=!0)}return c}var ZC,Ad,PC=Zc("area,br,col,hr,img,wbr"),g_=Zc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RC=Zc("rp,rt"),Qa=__(RC,g_),Dd=__(g_,Zc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vv=__(RC,Zc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),NM=__(PC,Dd,Vv,Qa),BM=Zc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ZF=Zc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),v_=Zc("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),FM=__(BM,ZF,v_),NF=Zc("script,style,template"),LC=function(){function c(){(0,v.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,L.Z)(c,[{key:"sanitizeChildren",value:function(f){for(var _=f.firstChild,w=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?w=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,w&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var I=this.checkClobberedElement(_,_.nextSibling);if(I){_=I;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(f){var _=f.nodeName.toLowerCase();if(!NM.hasOwnProperty(_))return this.sanitizedSomething=!0,!NF.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var w=f.attributes,I=0;I<w.length;I++){var V=w.item(I),ee=V.name,oe=ee.toLowerCase();if(FM.hasOwnProperty(oe)){var ve=V.value;BM[oe]&&(ve=IC(ve)),this.buf.push(" ",ee,'="',UM(ve),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(f){var _=f.nodeName.toLowerCase();NM.hasOwnProperty(_)&&!PC.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(f){this.buf.push(UM(f))}},{key:"checkClobberedElement",value:function(f,_){if(_&&(f.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(f.outerHTML));return _}}]),c}(),BF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FF=/([^\#-~ |!])/g;function UM(c){return c.replace(/&/g,"&").replace(BF,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(FF,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function w3(c,p){var f=null;try{ZC=ZC||RF(c);var _=p?String(p):"";f=ZC.getInertBodyElement(_);var w=5,I=_;do{if(0===w)throw new Error("Failed to sanitize html because the input is unstable");w--,_=I,I=f.innerHTML,f=ZC.getInertBodyElement(_)}while(_!==I);return Tu((new LC).sanitizeChildren(HM(f)||f))}finally{if(f)for(var oe=HM(f)||f;oe.firstChild;)oe.removeChild(oe.firstChild)}}function HM(c){return"content"in c&&function k3(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function T3(c){var p=bh();return p?Fp(p.sanitize(Ad.HTML,c)||""):Rc(c,"HTML")?Fp(Pc(c)):w3(m_(),ce(c))}function y_(c){var p=bh();return p?p.sanitize(Ad.STYLE,c)||"":Rc(c,"Style")?Pc(c):ce(c)}function jM(c){var p=bh();return p?p.sanitize(Ad.URL,c)||"":Rc(c,"URL")?Pc(c):IC(ce(c))}function M3(c){var p=bh();if(p)return h3(p.sanitize(Ad.RESOURCE_URL,c)||"");if(Rc(c,"ResourceURL"))return h3(Pc(c));throw new de(904,!1)}function S3(c){var p=bh();if(p)return f3(p.sanitize(Ad.SCRIPT,c)||"");if(Rc(c,"Script"))return f3(Pc(c));throw new de(905,!1)}function UF(c){return Tu(c[0])}function GM(c){return function PF(c){var p;return(null===(p=DC())||void 0===p?void 0:p.createScriptURL(c))||c}(c[0])}function x3(c,p,f){return function HF(c,p){return"src"===p&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===p&&("base"===c||"link"===c)?M3:jM}(p,f)(c)}function bh(){var c=An();return c&&c[12]}!function(c){c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL"}(Ad||(Ad={}));var Ch=new ho("ENVIRONMENT_INITIALIZER"),Ha=new ho("INJECTOR",-1),Yv=new ho("INJECTOR_DEF_TYPES"),Yl=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"get",value:function(f){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vl;if(_===Vl){var w=new Error("NullInjectorError: No provider for ".concat(X(f),"!"));throw w.name="NullInjectorError",w}return _}}]),c}();function Kv(){for(var c=arguments.length,p=new Array(c),f=0;f<c;f++)p[f]=arguments[f];return{"\u0275providers":NC(!0,p)}}function NC(c){for(var _,p=[],f=new Set,w=arguments.length,I=new Array(w>1?w-1:0),V=1;V<w;V++)I[V-1]=arguments[V];return kd(I,function(ee){var ve=ee;qv(ve,p,[],f)&&(_||(_=[]),_.push(ve))}),void 0!==_&&BC(_,p),p}function BC(c,p){for(var f=function(){var I=c[_];I.ngModule;kd(I.providers,function(oe){p.push(oe)})},_=0;_<c.length;_++)f()}function qv(c,p,f,_){if(!(c=ne(c)))return!1;var w=null,I=Kt(c),V=!I&&Wn(c);if(I||V){if(V&&!V.standalone)return!1;w=c}else{var ee=c.ngModule;if(!(I=Kt(ee)))return!1;w=ee}var He=_.has(w);if(V){if(He)return!1;if(_.add(w),V.dependencies){var wt,rt="function"==typeof V.dependencies?V.dependencies():V.dependencies,ft=(0,x.Z)(rt);try{for(ft.s();!(wt=ft.n()).done;){qv(wt.value,p,f,_)}}catch(wn){ft.e(wn)}finally{ft.f()}}}else{if(!I)return!1;if(null!=I.imports&&!He){var _n;_.add(w);try{kd(I.imports,function(wn){qv(wn,p,f,_)&&(_n||(_n=[]),_n.push(wn))})}finally{}void 0!==_n&&BC(_n,p)}if(!He){var Un=oo(w)||function(){return new w};p.push({provide:w,useFactory:Un,deps:et},{provide:Yv,useValue:w,multi:!0},{provide:Ch,useValue:function(){return pa(w)},multi:!0})}var Qn=I.providers;if(null!=Qn&&!He){kd(Qn,function(wn){p.push(wn)})}}return w!==c&&void 0!==c.providers}var zM=N({provide:String,useValue:N});function Jv(c){return null!==c&&"object"==typeof c&&zM in c}function Qv(c){return!(!c||!c.useExisting)}function Xv(c){return!(!c||!c.useFactory)}function Od(c){return"function"==typeof c}var $s=new ho("Set Injector scope."),kh={},WM={},gs=void 0;function Kl(){return void 0===gs&&(gs=new Yl),gs}var Mu=(0,L.Z)(function c(){(0,v.Z)(this,c)}),UC=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w,I,V){var ee;(0,v.Z)(this,f),(ee=p.call(this)).parent=w,ee.source=I,ee.scopes=V,ee.records=new Map,ee._ngOnDestroyHooks=new Set,ee._onDestroyHooks=[],ee._destroyed=!1,YM(_,function(ve){return ee.processProvider(ve)}),ee.records.set(Ha,ql(void 0,(0,P.Z)(ee))),V.has("environment")&&ee.records.set(Mu,ql(void 0,(0,P.Z)(ee)));var oe=ee.records.get($s);return null!=oe&&"string"==typeof oe.value&&ee.scopes.add(oe.value),ee.injectorDefTypes=new Set(ee.get(Yv.multi,et,ye.Self)),ee}return(0,L.Z)(f,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{var I,w=(0,x.Z)(this._ngOnDestroyHooks);try{for(w.s();!(I=w.n()).done;){I.value.ngOnDestroy()}}catch(He){w.e(He)}finally{w.f()}var oe,ee=(0,x.Z)(this._onDestroyHooks);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}},{key:"onDestroy",value:function(w){this._onDestroyHooks.push(w)}},{key:"runInContext",value:function(w){this.assertNotDestroyed();var I=i_(this),V=lt(void 0);try{return w()}finally{i_(I),lt(V)}}},{key:"get",value:function(w){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vl,V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye.Default;this.assertNotDestroyed();var ee=i_(this),oe=lt(void 0);try{if(!(V&ye.SkipSelf)){var ve=this.records.get(w);if(void 0===ve){var He=zF(w)&&Zt(w);ve=He&&this.injectableDefInScope(He)?ql($v(w),kh):null,this.records.set(w,ve)}if(null!=ve)return this.hydrate(w,ve)}var rt=V&ye.Self?Kl():this.parent;return I=V&ye.Optional&&I===Vl?null:I,rt.get(w,I)}catch(wt){if("NullInjectorError"===wt.name){var ft=wt[Op]=wt[Op]||[];if(ft.unshift(X(w)),ee)throw wt;return _M(wt,w,"R3InjectorError",this.source)}throw wt}finally{lt(oe),i_(ee)}}},{key:"resolveInjectorInitializers",value:function(){var w=i_(this),I=lt(void 0);try{var oe,V=this.get(Ch.multi,et,ye.Self),ee=(0,x.Z)(V);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{i_(w),lt(I)}}},{key:"toString",value:function(){var ee,w=[],I=this.records,V=(0,x.Z)(I.keys());try{for(V.s();!(ee=V.n()).done;){var oe=ee.value;w.push(X(oe))}}catch(ve){V.e(ve)}finally{V.f()}return"R3Injector[".concat(w.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new de(205,!1)}},{key:"processProvider",value:function(w){var I=Od(w=ne(w))?w:ne(w&&w.provide),V=function HC(c){return Jv(c)?ql(void 0,c.useValue):ql(Su(c),kh)}(w);if(Od(w)||!0!==w.multi)this.records.get(I);else{var ee=this.records.get(I);ee||((ee=ql(void 0,kh,!0)).factory=function(){return hM(ee.multi)},this.records.set(I,ee)),I=w,ee.multi.push(w)}this.records.set(I,V)}},{key:"hydrate",value:function(w,I){return I.value===kh&&(I.value=WM,I.value=I.factory()),"object"==typeof I.value&&I.value&&function GF(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(I.value)&&this._ngOnDestroyHooks.add(I.value),I.value}},{key:"injectableDefInScope",value:function(w){if(!w.providedIn)return!1;var I=ne(w.providedIn);return"string"==typeof I?"any"===I||this.scopes.has(I):this.injectorDefTypes.has(I)}}]),f}(Mu);function $v(c){var p=Zt(c),f=null!==p?p.factory:oo(c);if(null!==f)return f;if(c instanceof ho)throw new de(204,!1);if(c instanceof Function)return function b_(c){var p=c.length;if(p>0){Td(p,"?");throw new de(204,!1)}var _=function qt(c){var p=c&&(c[Xt]||c[Be]);if(p){var f=function yn(c){if(c.hasOwnProperty("name"))return c.name;var p=(""+c).match(/^function\s*([^\s(]+)/);return null===p?"":p[1]}(c);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(f,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(f,'" class.')),p}return null}(c);return null!==_?function(){return _.factory(c)}:function(){return new c}}(c);throw new de(204,!1)}function Su(c,p,f){var _=void 0;if(Od(c)){var w=ne(c);return oo(w)||$v(w)}if(Jv(c))_=function(){return ne(c.useValue)};else if(Xv(c))_=function(){return c.useFactory.apply(c,(0,D.Z)(hM(c.deps||[])))};else if(Qv(c))_=function(){return pa(ne(c.useExisting))};else{var I=ne(c&&(c.useClass||c.provide));if(!function VM(c){return!!c.deps}(c))return oo(I)||$v(I);_=function(){return(0,j.Z)(I,(0,D.Z)(hM(c.deps)))}}return _}function ql(c,p){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:p,multi:f?[]:void 0}}function zF(c){return"function"==typeof c||"object"==typeof c&&c instanceof ho}function WF(c){return!!c.\u0275providers}function YM(c,p){var _,f=(0,x.Z)(c);try{for(f.s();!(_=f.n()).done;){var w=_.value;Array.isArray(w)?YM(w,p):WF(w)?YM(w.\u0275providers,p):p(w)}}catch(I){f.e(I)}finally{f.f()}}var KM=(0,L.Z)(function c(){(0,v.Z)(this,c)}),jp=(0,L.Z)(function c(){(0,v.Z)(this,c)});var D3="ngComponent";var qM=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"resolveComponentFactory",value:function(f){throw function E3(c){var p=Error("No component factory found for ".concat(X(c),". Did you add it to @NgModule.entryComponents?"));return p[D3]=c,p}(f)}}]),c}(),C_=(0,L.Z)(function c(){(0,v.Z)(this,c)});function w_(c,p){return new Th(yo(c,p))}C_.NULL=new qM;var Th=(0,L.Z)(function c(p){(0,v.Z)(this,c),this.nativeElement=p});function KF(c){return c instanceof Th?c.nativeElement:c}Th.__NG_ELEMENT_ID__=function YF(){return w_(Me(),An())};new ho("Renderer2Interceptor");var A3=(0,L.Z)(function c(){(0,v.Z)(this,c)}),jC=(0,L.Z)(function c(){(0,v.Z)(this,c)});jC.__NG_ELEMENT_ID__=function(){return function O3(){var c=An(),f=fo(Me().index,c);return(Wi(f)?f:c)[11]}()};var JM=(0,L.Z)(function c(){(0,v.Z)(this,c)});JM.\u0275prov=ge({token:JM,providedIn:"root",factory:function(){return null}});var Oi=(0,L.Z)(function c(p){(0,v.Z)(this,c),this.full=p,this.major=p.split(".")[0],this.minor=p.split(".")[1],this.patch=p.split(".").slice(2).join(".")}),JF=new Oi("14.3.0"),GC={},vs="ngOriginalError";function ey(c){return c[vs]}var k_=function(){function c(){(0,v.Z)(this,c),this._console=console}return(0,L.Z)(c,[{key:"handleError",value:function(f){var _=this._findOriginalError(f);this._console.error("ERROR",f),_&&this._console.error("ORIGINAL ERROR",_)}},{key:"_findOriginalError",value:function(f){for(var _=f&&ey(f);_&&ey(_);)_=ey(_);return _||null}}]),c}();function ty(c){return c.ownerDocument.defaultView}function XM(c){return c.ownerDocument}function zC(c){return c.ownerDocument.body}function Nc(c){return c instanceof Function?c():c}function WC(c,p,f){for(var _=c.length;;){var w=c.indexOf(p,f);if(-1===w)return w;if(0===w||c.charCodeAt(w-1)<=32){var I=p.length;if(w+I===_||c.charCodeAt(w+I)<=32)return w}f=w+1}}var R3="ng-template";function t4(c,p,f){for(var _=0;_<c.length;){var w=c[_++];if(f&&"class"===w){if(-1!==WC((w=c[_]).toLowerCase(),p,0))return!0}else if(1===w){for(;_<c.length&&"string"==typeof(w=c[_++]);)if(w.toLowerCase()===p)return!0;return!1}}return!1}function L3(c){return 4===c.type&&c.value!==R3}function Mh(c,p,f){return p===(4!==c.type||f?c.value:R3)}function Z3(c,p,f){for(var _=4,w=c.attrs||[],I=function n4(c){for(var p=0;p<c.length;p++){if(Ao(c[p]))return p}return c.length}(w),V=!1,ee=0;ee<p.length;ee++){var oe=p[ee];if("number"!=typeof oe){if(!V)if(4&_){if(_=2|1&_,""!==oe&&!Mh(c,oe,f)||""===oe&&1===p.length){if(rc(_))return!1;V=!0}}else{var ve=8&_?oe:p[++ee];if(8&_&&null!==c.attrs){if(!t4(c.attrs,ve,f)){if(rc(_))return!1;V=!0}continue}var rt=N3(8&_?"class":oe,w,L3(c),f);if(-1===rt){if(rc(_))return!1;V=!0;continue}if(""!==ve){var ft=void 0;ft=rt>I?"":w[rt+1].toLowerCase();var wt=8&_?ft:null;if(wt&&-1!==WC(wt,ve,0)||2&_&&ve!==ft){if(rc(_))return!1;V=!0}}}}else{if(!V&&!rc(_)&&!rc(oe))return!1;if(V&&rc(oe))continue;V=!1,_=oe|1&_}}return rc(_)||V}function rc(c){return 0==(1&c)}function N3(c,p,f,_){if(null===p)return-1;var w=0;if(_||!f){for(var I=!1;w<p.length;){var V=p[w];if(V===c)return w;if(3===V||6===V)I=!0;else{if(1===V||2===V){for(var ee=p[++w];"string"==typeof ee;)ee=p[++w];continue}if(4===V)break;if(0===V){w+=4;continue}}w+=I?1:2}return-1}return function r4(c,p){var f=c.indexOf(4);if(f>-1)for(f++;f<c.length;){var _=c[f];if("number"==typeof _)return-1;if(_===p)return f;f++}return-1}(p,c)}function B3(c,p){for(var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=0;_<p.length;_++)if(Z3(c,p[_],f))return!0;return!1}function i4(c,p){e:for(var f=0;f<p.length;f++){var _=p[f];if(c.length===_.length){for(var w=0;w<c.length;w++)if(c[w]!==_[w])continue e;return!0}}return!1}function F3(c,p){return c?":not("+p.trim()+")":p}function o4(c){for(var p=c[0],f=1,_=2,w="",I=!1;f<c.length;){var V=c[f];if("string"==typeof V)if(2&_){var ee=c[++f];w+="["+V+(ee.length>0?'="'+ee+'"':"")+"]"}else 8&_?w+="."+V:4&_&&(w+=" "+V);else""!==w&&!rc(V)&&(p+=F3(I,w),w=""),_=V,I=I||!rc(_);f++}return""!==w&&(p+=F3(I,w)),p}var Wr={};function U3(c){H3(we(),An(),Ge()+c,!1)}function H3(c,p,f,_){if(!_)if(3==(3&p[2])){var I=c.preOrderCheckHooks;null!==I&&xp(p,I,f)}else{var V=c.preOrderHooks;null!==V&&e_(p,V,0,f)}it(f)}var j3={"\u0275\u0275defineInjectable":ge,"\u0275\u0275defineInjector":Dt,"\u0275\u0275inject":pa,"\u0275\u0275invalidFactoryDep":WP,resolveForwardRef:ne};function s4(c,p){var f=null,_=null;c.hasOwnProperty(Xt)||Object.defineProperty(c,Xt,{get:function(){if(null===f){var I=Ma();f=I.compileInjectable(j3,"ng:///".concat(c.name,"/\u0275prov.js"),function c4(c,p){var f=p||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:f.providedIn};return(rS(f)||iS(f))&&void 0!==f.deps&&(_.deps=mF(f.deps)),rS(f)?_.useClass=f.useClass:function l4(c){return nS in c}(f)?_.useValue=f.useValue:iS(f)?_.useFactory=f.useFactory:function u4(c){return void 0!==c.useExisting}(f)&&(_.useExisting=f.useExisting),_}(c,p))}return f}}),c.hasOwnProperty(qe)||Object.defineProperty(c,qe,{get:function(){if(null===_){var I=Ma();_=I.compileFactory(j3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:vM(c),target:I.FactoryTarget.Injectable})}return _},configurable:!0})}var nS=N({provide:String,useValue:N});function rS(c){return void 0!==c.useClass}function iS(c){return void 0!==c.useFactory}var d4=ch("Injectable",void 0,void 0,void 0,function(c,p){return s4(c,p)});function oS(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,w=aS(c,p,f,_);return w.resolveInjectorInitializers(),w}function aS(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,w=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,I=[f||et,Kv(c)];return _=_||("object"==typeof c?void 0:X(c)),new UC(I,p||Kl(),_||null,w)}var Jl=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"create",value:function(f,_){var w;if(Array.isArray(f))return oS({name:""},_,f,"");var I=null!==(w=f.name)&&void 0!==w?w:"";return oS({name:I},f.parent,f.providers,I)}}]),c}();function YC(c){if(c.length>1){var p=function VC(c){for(var p=[],f=0;f<c.length;++f){if(p.indexOf(c[f])>-1)return p.push(c[f]),p;p.push(c[f])}return p}(c.slice().reverse());return" ("+p.map(function(_){return X(_.token)}).join(" -> ")+")"}return""}function KC(c,p,f,_){var w=[p],I=f(w),V=_?function QF(c,p){var f="".concat(c," caused by: ").concat(p instanceof Error?p.message:p),_=Error(f);return _[vs]=p,_}(I,_):Error(I);return V.addKey=G3,V.keys=w,V.injectors=[c],V.constructResolvingMessage=f,V[vs]=_,V}function G3(c,p){this.injectors.push(c),this.keys.push(p),this.message=this.constructResolvingMessage(this.keys)}function sS(c,p){for(var f=[],_=0,w=p.length;_<w;_++){var I=p[_];I&&0!=I.length?f.push(I.map(X).join(" ")):f.push("?")}return Error("Cannot resolve all parameters for '"+X(c)+"'("+f.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(c)+"' is decorated with Injectable.")}function _4(c,p){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(p))}Jl.THROW_IF_NOT_FOUND=Vl,Jl.NULL=new Yl,Jl.\u0275prov=ge({token:Jl,providedIn:"any",factory:function(){return pa(Ha)}}),Jl.__NG_ELEMENT_ID__=-1;var Id=function(){function c(p,f){if((0,v.Z)(this,c),this.token=p,this.id=f,!p)throw new de(208,!1);this.displayName=X(this.token)}return(0,L.Z)(c,null,[{key:"get",value:function(f){return lS.get(ne(f))}},{key:"numberOfKeys",get:function(){return lS.numberOfKeys}}]),c}(),Pd=function(){function c(){(0,v.Z)(this,c),this._allKeys=new Map}return(0,L.Z)(c,[{key:"get",value:function(f){if(f instanceof Id)return f;if(this._allKeys.has(f))return this._allKeys.get(f);var _=new Id(f,Id.numberOfKeys);return this._allKeys.set(f,_),_}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),lS=new Pd,z3=function(){function c(p,f,_){(0,v.Z)(this,c),this.key=p,this.optional=f,this.visibility=_}return(0,L.Z)(c,null,[{key:"fromKey",value:function(f){return new c(f,!1,null)}}]),c}(),g4=[],W3=(0,L.Z)(function c(p,f,_){(0,v.Z)(this,c),this.key=p,this.resolvedFactories=f,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),uS=(0,L.Z)(function c(p,f){(0,v.Z)(this,c),this.factory=p,this.dependencies=f});function v4(c){var p,f;if(c.useClass){var _=ne(c.useClass);p=a_().factory(_),f=C4(_)}else c.useExisting?(p=function(I){return I},f=[z3.fromKey(Id.get(c.useExisting))]):c.useFactory?(p=c.useFactory,f=function pS(c,p){if(p){var f=p.map(function(_){return[_]});return p.map(function(_){return qC(c,_,f)})}return C4(c)}(c.useFactory,c.deps)):(p=function(){return c.useValue},f=g4);return new uS(p,f)}function y4(c){return new W3(Id.get(c.provide),[v4(c)],c.multi||!1)}function b4(c){var _=function cS(c,p){for(var f=0;f<c.length;f++){var _=c[f],w=p.get(_.key.id);if(w){if(_.multiProvider!==w.multiProvider)throw _4(w,_);if(_.multiProvider)for(var I=0;I<_.resolvedFactories.length;I++)w.resolvedFactories.push(_.resolvedFactories[I]);else p.set(_.key.id,_)}else{var V=void 0;V=_.multiProvider?new W3(_.key,_.resolvedFactories.slice(),_.multiProvider):_,p.set(_.key.id,V)}}return p}(dS(c,[]).map(y4),new Map);return Array.from(_.values())}function dS(c,p){return c.forEach(function(f){if(f instanceof Qt)p.push({provide:f,useClass:f});else if(f&&"object"==typeof f&&void 0!==f.provide)p.push(f);else{if(!Array.isArray(f))throw function m4(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(f);dS(f,p)}}),p}function C4(c){var p=a_().parameters(c);if(!p)return[];if(p.some(function(f){return null==f}))throw sS(c,p);return p.map(function(f){return qC(c,f,p)})}function qC(c,p,f){var _=null,w=!1;if(!Array.isArray(p))return fS(p instanceof Pv?p.token:p,w,null);for(var I=null,V=0;V<p.length;++V){var ee=p[V];ee instanceof Qt?_=ee:ee instanceof Pv?_=ee.token:ee instanceof Pp?w=!0:ee instanceof hh||ee instanceof o_?I=ee:ee instanceof ho&&(_=ee)}if(null!=(_=ne(_)))return fS(_,w,I);throw sS(c,f)}function fS(c,p,f){return new z3(Id.get(c),p,f)}var ny={},V3=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"resolve",value:function(f){return b4(f)}},{key:"resolveAndCreate",value:function(f,_){var w=c.resolve(f);return c.fromResolvedProviders(w,_)}},{key:"fromResolvedProviders",value:function(f,_){return new Y3(f,_)}}]),c}(),Y3=function(){function c(p,f){(0,v.Z)(this,c),this._constructionCounter=0,this._providers=p,this.parent=f||null;var _=p.length;this.keyIds=[],this.objs=[];for(var w=0;w<_;w++)this.keyIds[w]=p[w].key.id,this.objs[w]=ny}return(0,L.Z)(c,[{key:"get",value:function(f){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vl;return this._getByKey(Id.get(f),null,_)}},{key:"resolveAndCreateChild",value:function(f){var _=V3.resolve(f);return this.createChildFromResolved(_)}},{key:"createChildFromResolved",value:function(f){var _=new c(f);return _.parent=this,_}},{key:"resolveAndInstantiate",value:function(f){return this.instantiateResolved(V3.resolve([f])[0])}},{key:"instantiateResolved",value:function(f){return this._instantiateProvider(f)}},{key:"getProviderAtIndex",value:function(f){if(f<0||f>=this._providers.length)throw function Xr(c){return Error("Index ".concat(c," is out-of-bounds."))}(f);return this._providers[f]}},{key:"_new",value:function(f){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function f4(c,p){return KC(c,p,function(f){return"Cannot instantiate cyclic dependency!".concat(YC(f))})}(this,f.key);return this._instantiateProvider(f)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(f){if(f.multiProvider){for(var _=[],w=0;w<f.resolvedFactories.length;++w)_[w]=this._instantiate(f,f.resolvedFactories[w]);return _}return this._instantiate(f,f.resolvedFactories[0])}},{key:"_instantiate",value:function(f,_){var V,ee,w=this,I=_.factory;try{V=_.dependencies.map(function(oe){return w._getByReflectiveDependency(oe)})}catch(oe){throw oe.addKey&&oe.addKey(this,f.key),oe}try{ee=I.apply(void 0,(0,D.Z)(V))}catch(oe){throw function h4(c,p,f,_){return KC(c,_,function(w){var I=X(w[0].token);return"".concat(p.message,": Error during instantiation of ").concat(I,"!").concat(YC(w),".")},p)}(this,oe,oe.stack,f.key)}return ee}},{key:"_getByReflectiveDependency",value:function(f){return this._getByKey(f.key,f.visibility,f.optional?null:Vl)}},{key:"_getByKey",value:function(f,_,w){return f===c.INJECTOR_KEY?this:_ instanceof hh?this._getByKeySelf(f,w):this._getByKeyDefault(f,w,_)}},{key:"_getObjByKeyId",value:function(f){for(var _=0;_<this.keyIds.length;_++)if(this.keyIds[_]===f)return this.objs[_]===ny&&(this.objs[_]=this._new(this._providers[_])),this.objs[_];return ny}},{key:"_throwOrNull",value:function(f,_){if(_!==Vl)return _;throw function p4(c,p){return KC(c,p,function(f){var _=X(f[0].token);return"No provider for ".concat(_,"!").concat(YC(f))})}(this,f)}},{key:"_getByKeySelf",value:function(f,_){var w=this._getObjByKeyId(f.id);return w!==ny?w:this._throwOrNull(f,_)}},{key:"_getByKeyDefault",value:function(f,_,w){var I;for(I=w instanceof o_?this.parent:this;I instanceof c;){var V=I,ee=V._getObjByKeyId(f.id);if(ee!==ny)return ee;I=V.parent}return null!==I?I.get(f.token,_):this._throwOrNull(f,_)}},{key:"displayName",get:function(){var f=function w4(c,p){for(var f=[],_=0;_<c._providers.length;++_)f[_]=p(c.getProviderAtIndex(_));return f}(this,function(_){return' "'+_.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(f,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function x_(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default,f=An();if(null===f)return pa(c,p);var _=Me();return aM(_,f,ne(c),p)}function hS(){throw new Error("invalid")}function Gp(c,p){return c<<17|p<<2}function ic(c){return c>>17&32767}function K3(c){return 2==(2&c)}function E_(c){return 2|c}function xu(c){return(131068&c)>>2}function mS(c,p){return-131069&c|p<<2}function q3(c){return 1==(1&c)}function iy(c){return 1|c}Y3.INJECTOR_KEY=Id.get(Jl);function MS(c,p){var f=c.contentQueries;if(null!==f)for(var _=0;_<f.length;_+=2){var w=f[_],I=f[_+1];if(-1!==I){var V=c.data[I];hs(w),V.contentQueries(2,p[I],I)}}}function SS(c,p,f,_,w,I,V,ee,oe,ve,He){var rt=p.blueprint.slice();return rt[0]=w,rt[2]=76|_,(null!==He||c&&1024&c[2])&&(rt[2]|=1024),nh(rt),rt[3]=rt[15]=c,rt[8]=f,rt[10]=V||c&&c[10],rt[11]=ee||c&&c[11],rt[12]=oe||c&&c[12]||null,rt[9]=ve||c&&c[9]||null,rt[6]=I,rt[20]=function e3(){return MF++}(),rt[21]=He,rt[16]=2==p.type?c[16]:rt,rt}function Ld(c,p,f,_,w){var I=c.data[p];if(null===I)I=xS(c,p,f,_,w),function Xm(){return Mr.lFrame.inI18n}()&&(I.flags|=64);else if(64&I.type){I.type=f,I.value=_,I.attrs=w;var V=mt();I.injectorIndex=null===V?-1:V.injectorIndex}return Ht(I,!0),I}function xS(c,p,f,_,w){var I=Oe(),V=On(),ee=V?I:I&&I.parent,oe=c.data[p]=function R4(c,p,f,_,w,I){var V=p?p.injectorIndex:-1;return{type:f,index:_,insertBeforeIndex:null,injectorIndex:V,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:w,attrs:I,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:p,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ee,f,p,_,w);return null===c.firstChild&&(c.firstChild=oe),null!==I&&(V?null==I.child&&null!==oe.parent&&(I.child=oe):null===I.next&&(I.next=oe)),oe}function ly(c,p,f,_){if(0===f)return-1;for(var w=p.length,I=0;I<f;I++)p.push(_),c.blueprint.push(_),c.data.push(null);return w}function ES(c,p,f){Js(p);try{var _=c.viewQuery;null!==_&&ZS(1,_,f);var w=c.template;null!==w&&n6(c,p,w,1,f),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&MS(c,p),c.staticViewQueries&&ZS(2,c.viewQuery,f);var I=c.components;null!==I&&function O4(c,p){for(var f=0;f<p.length;f++)uy(c,p[f])}(p,I)}catch(V){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),V}finally{p[2]&=-5,_e()}}function $C(c,p,f,_){var w=p[2];if(128!=(128&w)){Js(p);try{nh(p),qs(c.bindingStartIndex),null!==f&&n6(c,p,f,2,_);var V=3==(3&w);if(V){var ee=c.preOrderCheckHooks;null!==ee&&xp(p,ee,null)}else{var oe=c.preOrderHooks;null!==oe&&e_(p,oe,0,null),Ep(p,0)}if(function g6(c){for(var p=_h(c);null!==p;p=bl(p))if(p[2])for(var f=p[9],_=0;_<f.length;_++){var w=f[_],I=w[3];0==(512&w[2])&&ds(I,1),w[2]|=512}}(p),function _6(c){for(var p=_h(c);null!==p;p=bl(p))for(var f=10;f<p.length;f++){var _=p[f],w=_[1];Ks(_)&&$C(w,_,w.template,_[8])}}(p),null!==c.contentQueries&&MS(c,p),V){var ve=c.contentCheckHooks;null!==ve&&xp(p,ve)}else{var He=c.contentHooks;null!==He&&e_(p,He,1),Ep(p,1)}!function A4(c,p){var f=c.hostBindingOpCodes;if(null!==f)try{for(var _=0;_<f.length;_++){var w=f[_];if(w<0)it(~w);else{var I=w,V=f[++_],ee=f[++_];$m(V,I),ee(2,p[I])}}}finally{it(-1)}}(c,p);var rt=c.components;null!==rt&&function xV(c,p){for(var f=0;f<p.length;f++)v6(c,p[f])}(p,rt);var ft=c.viewQuery;if(null!==ft&&ZS(2,ft,_),V){var wt=c.viewCheckHooks;null!==wt&&xp(p,wt)}else{var en=c.viewHooks;null!==en&&e_(p,en,2),Ep(p,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),p[2]&=-41,512&p[2]&&(p[2]&=-513,ds(p[3],-1))}finally{_e()}}}function n6(c,p,f,_,w){var I=Ge(),V=2&_;try{it(-1),V&&p.length>22&&H3(c,p,22,!1),Yi(V?2:0,w),f(_,w)}finally{it(I),Yi(V?3:1,w)}}function r6(c,p,f){if(Ss(p))for(var _=p.directiveStart,w=p.directiveEnd,I=_;I<w;I++){var V=c.data[I];V.contentQueries&&V.contentQueries(1,f[I],I)}}function DS(c,p,f){!Ds()||(function N4(c,p,f,_){var w=f.directiveStart,I=f.directiveEnd;c.firstCreatePass||xv(f,p),Ps(_,p);for(var V=f.initialInputs,ee=w;ee<I;ee++){var oe=c.data[ee],ve=Jt(oe);ve&&m6(p,f,oe);var He=Dv(p,c,ee,f);if(Ps(He,p),null!==V&&j4(p,ee-w,He,oe,f,V),ve)fo(f.index,p)[8]=He}}(c,p,f,yo(f,p)),128==(128&f.flags)&&function B4(c,p,f){var _=f.directiveStart,w=f.directiveEnd,I=f.index,V=function bd(){return Mr.lFrame.currentDirectiveIndex}();try{it(I);for(var ee=_;ee<w;ee++){var oe=c.data[ee],ve=p[ee];Ju(ee),(null!==oe.hostBindings||0!==oe.hostVars||null!==oe.hostAttrs)&&d6(oe,ve)}}finally{it(-1),Ju(V)}}(c,p,f))}function e1(c,p){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yo,_=p.localNames;if(null!==_)for(var w=p.index+1,I=0;I<_.length;I+=2){var V=_[I+1],ee=-1===V?f(p,c):c[V];c[w++]=ee}}function i6(c){var p=c.tView;if(null===p||p.incompleteFirstPass){return c.tView=t1(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return p}function t1(c,p,f,_,w,I,V,ee,oe,ve){var He=22+_,rt=He+w,ft=function I4(c,p){for(var f=[],_=0;_<p;_++)f.push(_<c?null:Wr);return f}(He,rt),wt="function"==typeof ve?ve():ve;return ft[1]={type:c,blueprint:ft,template:f,queries:null,viewQuery:ee,declTNode:p,data:ft.slice().fill(null,He),bindingStartIndex:He,expandoStartIndex:rt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof I?I():I,pipeRegistry:"function"==typeof V?V():V,firstChild:null,schemas:oe,consts:wt,incompleteFirstPass:!1}}function AS(c,p,f,_){var w=r1(p);null===f?w.push(_):(w.push(f),c.firstCreatePass&&y6(c).push(_,w.length-1))}function a6(c,p,f){for(var _ in c)if(c.hasOwnProperty(_)){f=null===f?{}:f;var w=c[_];f.hasOwnProperty(_)?f[_].push(p,w):f[_]=[p,w]}return f}function s6(c,p){for(var f=p.directiveStart,_=p.directiveEnd,w=c.data,I=p.attrs,V=[],ee=null,oe=null,ve=f;ve<_;ve++){var He=w[ve],rt=He.inputs,ft=null===I||L3(p)?null:G4(rt,I);V.push(ft),ee=a6(rt,ve,ee),oe=a6(He.outputs,ve,oe)}null!==ee&&(ee.hasOwnProperty("class")&&(p.flags|=16),ee.hasOwnProperty("style")&&(p.flags|=32)),p.initialInputs=V,p.inputs=ee,p.outputs=oe}function el(c,p,f,_,w,I,V,ee){var He,oe=yo(p,f),ve=p.inputs;!ee&&null!=ve&&(He=ve[_])?(Du(c,f,He,_,w),qi(p)&&l6(f,p.index)):3&p.type?(_=function L4(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),w=null!=V?V(w,p.value||"",_):w,I.setProperty(oe,_,w)):p.type}function l6(c,p){var f=fo(p,c);16&f[2]||(f[2]|=32)}function Bc(c,p,f,_){var w=!1;if(Ds()){var I=function F4(c,p,f){var _=c.directiveRegistry,w=null;if(_)for(var I=0;I<_.length;I++){var V=_[I];B3(f,V.selectors,!1)&&(w||(w=[]),n_(xv(f,p),c,V.type),Jt(V)?(p6(c,f),w.unshift(V)):w.push(V))}return w}(c,p,f),V=null===_?null:{"":-1};if(null!==I){w=!0,f6(f,c.data.length,I.length);for(var ee=0;ee<I.length;ee++){var oe=I[ee];oe.providersResolver&&oe.providersResolver(oe)}for(var ve=!1,He=!1,rt=ly(c,p,I.length,null),ft=0;ft<I.length;ft++){var wt=I[ft];f.mergedAttrs=As(f.mergedAttrs,wt.hostAttrs),h6(c,f,p,rt,wt),H4(rt,wt,V),null!==wt.contentQueries&&(f.flags|=8),(null!==wt.hostBindings||null!==wt.hostAttrs||0!==wt.hostVars)&&(f.flags|=128);var en=wt.type.prototype;!ve&&(en.ngOnChanges||en.ngOnInit||en.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(f.index),ve=!0),!He&&(en.ngOnChanges||en.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(f.index),He=!0),rt++}s6(c,f)}V&&function U4(c,p,f){if(p)for(var _=c.localNames=[],w=0;w<p.length;w+=2){var I=f[p[w+1]];if(null==I)throw new de(-301,!1);_.push(p[w],I)}}(f,_,V)}return f.mergedAttrs=As(f.mergedAttrs,f.attrs),w}function c6(c,p,f,_,w,I){var V=I.hostBindings;if(V){var ee=c.hostBindingOpCodes;null===ee&&(ee=c.hostBindingOpCodes=[]);var oe=~p.index;(function Z4(c){for(var p=c.length;p>0;){var f=c[--p];if("number"==typeof f&&f<0)return f}return 0})(ee)!=oe&&ee.push(oe),ee.push(_,w,V)}}function d6(c,p){null!==c.hostBindings&&c.hostBindings(1,p)}function p6(c,p){p.flags|=2,(c.components||(c.components=[])).push(p.index)}function H4(c,p,f){if(f){if(p.exportAs)for(var _=0;_<p.exportAs.length;_++)f[p.exportAs[_]]=c;Jt(p)&&(f[""]=c)}}function f6(c,p,f){c.flags|=1,c.directiveStart=p,c.directiveEnd=p+f,c.providerIndexes=p}function h6(c,p,f,_,w){c.data[_]=w;var I=w.factory||(w.factory=oo(w.type)),V=new he(I,Jt(w),x_);c.blueprint[_]=V,f[_]=V,c6(c,p,0,_,ly(c,f,w.hostVars,Wr),w)}function m6(c,p,f){var _=yo(p,c),w=i6(f),I=c[10],V=cy(c,SS(c,w,null,f.onPush?32:16,_,p,I,I.createRenderer(_,f),null,null,null));c[p.index]=V}function $o(c,p,f,_,w,I){var V=yo(c,p);IS(p[11],V,I,c.value,f,_,w)}function IS(c,p,f,_,w,I,V){if(null==I)c.removeAttribute(p,w,f);else{var ee=null==V?ce(I):V(I,_||"",w);c.setAttribute(p,w,ee,f)}}function j4(c,p,f,_,w,I){var V=I[p];if(null!==V)for(var ee=_.setInput,oe=0;oe<V.length;){var ve=V[oe++],He=V[oe++],rt=V[oe++];null!==ee?_.setInput(f,rt,ve,He):f[He]=rt}}function G4(c,p){for(var f=null,_=0;_<p.length;){var w=p[_];if(0!==w)if(5!==w){if("number"==typeof w)break;c.hasOwnProperty(w)&&(null===f&&(f=[]),f.push(w,c[w],p[_+1])),_+=2}else _+=2;else _+=4}return f}function PS(c,p,f,_){return new Array(c,!0,!1,p,null,0,_,f,null,null)}function v6(c,p){var f=fo(p,c);if(Ks(f)){var _=f[1];48&f[2]?$C(_,f,_.template,f[8]):f[5]>0&&RS(f)}}function RS(c){for(var p=_h(c);null!==p;p=bl(p))for(var f=10;f<p.length;f++){var _=p[f];if(Ks(_))if(512&_[2]){var w=_[1];$C(w,_,w.template,_[8])}else _[5]>0&&RS(_)}var V=c[1].components;if(null!==V)for(var ee=0;ee<V.length;ee++){var oe=fo(V[ee],c);Ks(oe)&&oe[5]>0&&RS(oe)}}function uy(c,p){var f=fo(p,c),_=f[1];(function Vp(c,p){for(var f=p.length;f<c.blueprint.length;f++)p.push(c.blueprint[f])})(_,f),ES(_,f,f[8])}function cy(c,p){return c[13]?c[14][4]=p:c[13]=p,c[14]=p,p}function LS(c){for(;c;){c[2]|=32;var p=Fv(c);if(Jr(c)&&!p)return c;c=p}return null}function n1(c,p,f){var _=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],w=p[10],I=!1;!I&&w.begin&&w.begin();try{$C(c,p,c.template,f)}catch(V){throw _&&C6(p,V),V}finally{!I&&w.end&&w.end()}}function ZS(c,p,f){hs(0),p(c,f)}function r1(c){return c[7]||(c[7]=[])}function y6(c){return c.cleanup||(c.cleanup=[])}function b6(c,p,f){return(null===c||Jt(c))&&(f=function xs(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(f[p.index])),f[11]}function C6(c,p){var f=c[9],_=f?f.get(k_,null):null;_&&_.handleError(p)}function Du(c,p,f,_,w){for(var I=0;I<f.length;){var V=f[I++],ee=f[I++],oe=p[V],ve=c.data[V];null!==ve.setInput?ve.setInput(oe,w,_,ee):oe[ee]=w}}function Zd(c,p,f){var _=Ec(p,c);Sa(c[11],_,f)}function i1(c,p,f){var _=f?c.styles:null,w=f?c.classes:null,I=0;if(null!==p)for(var V=0;V<p.length;V++){var ee=p[V];if("number"==typeof ee)I=ee;else if(1==I)w=$(w,ee);else if(2==I){_=$(_,ee+": "+p[++V]+";")}}f?c.styles=_:c.stylesWithoutHost=_,f?c.classes=w:c.classesWithoutHost=w}function D_(c,p,f,_){for(var w=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==f;){var I=p[f.index];if(null!==I&&_.push(so(I)),Ui(I))for(var V=10;V<I.length;V++){var ee=I[V],oe=ee[1].firstChild;null!==oe&&D_(ee[1],ee,oe,_)}var ve=f.type;if(8&ve)D_(c,p,f.child,_);else if(32&ve)for(var He=SM(f,p),rt=void 0;rt=He();)_.push(rt);else if(16&ve){var ft=Ic(p,f);if(Array.isArray(ft))_.push.apply(_,(0,D.Z)(ft));else{var wt=Fv(p[16]);D_(wt[1],wt,ft,_,!0)}}f=w?f.projectionNext:f.next}return _}var Eh=function(){function c(p,f){(0,v.Z)(this,c),this._lView=p,this._cdRefInjectingView=f,this._appRef=null,this._attachedToViewContainer=!1}return(0,L.Z)(c,[{key:"rootNodes",get:function(){var f=this._lView,_=f[1];return D_(_,f,_.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(f){this._lView[8]=f}},{key:"destroyed",get:function(){return 128==(128&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var f=this._lView[3];if(Ui(f)){var _=f[8],w=_?_.indexOf(this):-1;w>-1&&(TC(f,w),pC(_,w))}this._attachedToViewContainer=!1}wu(this._lView[1],this._lView)}},{key:"onDestroy",value:function(f){AS(this._lView[1],this._lView,null,f)}},{key:"markForCheck",value:function(){LS(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-65}},{key:"reattach",value:function(){this._lView[2]|=64}},{key:"detectChanges",value:function(){n1(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new de(902,!1);this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function s3(c,p){ku(c,p,p[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(f){if(this._attachedToViewContainer)throw new de(902,!1);this._appRef=f}}]),c}(),w6=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_){var w;return(0,v.Z)(this,f),(w=p.call(this,_))._view=_,w}return(0,L.Z)(f,[{key:"detectChanges",value:function(){var w=this._view;n1(w[1],w,w[8],!1)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),f}(Eh),NS=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_){var w;return(0,v.Z)(this,f),(w=p.call(this)).ngModule=_,w}return(0,L.Z)(f,[{key:"resolveComponentFactory",value:function(w){var I=Wn(w);return new A_(I,this.ngModule)}}]),f}(C_);function k6(c){var p=[];for(var f in c)if(c.hasOwnProperty(f)){var _=c[f];p.push({propName:_,templateName:f})}return p}var T6=function(){function c(p,f){(0,v.Z)(this,c),this.injector=p,this.parentInjector=f}return(0,L.Z)(c,[{key:"get",value:function(f,_,w){var I=this.injector.get(f,GC,w);return I!==GC||_===GC?I:this.parentInjector.get(f,_,w)}}]),c}(),A_=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w){var I;return(0,v.Z)(this,f),(I=p.call(this)).componentDef=_,I.ngModule=w,I.componentType=_.type,I.selector=function a4(c){return c.map(o4).join(",")}(_.selectors),I.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],I.isBoundToModule=!!w,I}return(0,L.Z)(f,[{key:"inputs",get:function(){return k6(this.componentDef.inputs)}},{key:"outputs",get:function(){return k6(this.componentDef.outputs)}},{key:"create",value:function(w,I,V,ee){var oe=(ee=ee||this.ngModule)instanceof Mu?ee:null==ee?void 0:ee.injector;oe&&null!==this.componentDef.getStandaloneInjector&&(oe=this.componentDef.getStandaloneInjector(oe)||oe);var ve=oe?new T6(w,oe):w,He=ve.get(A3,null);if(null===He)throw new de(407,!1);var Xn,wn,rt=ve.get(JM,null),ft=He.createRenderer(null,this.componentDef),wt=this.componentDef.selectors[0][0]||"div",en=V?function o6(c,p,f){var _=f===En.ShadowDom;return c.selectRootElement(p,_)}(ft,V,this.componentDef.encapsulation):Sd(ft,wt,function V4(c){var p=c.toLowerCase();return"svg"===p?"svg":"math"===p?kp:null}(wt)),_n=this.componentDef.onPush?288:272,Un=t1(0,null,null,1,0,null,null,null,null,null),Qn=SS(null,Un,null,_n,null,null,He,ft,rt,ve,null);Js(Qn);try{var Cr=function q4(c,p,f,_,w,I){var V=f[1],ee=22;f[ee]=c;var oe=Ld(V,ee,2,"#host",null),ve=oe.mergedAttrs=p.hostAttrs;null!==ve&&(i1(oe,ve,!0),null!==c&&(li(w,c,ve),null!==oe.classes&&zv(w,c,oe.classes),null!==oe.styles&&PM(w,c,oe.styles)));var He=_.createRenderer(c,p),rt=SS(f,i6(p),null,p.onPush?32:16,f[ee],oe,_,He,I||null,null,null);return V.firstCreatePass&&(n_(xv(oe,f),V,p.type),p6(V,oe),f6(oe,f.length,1)),cy(f,rt),f[ee]=rt}(en,this.componentDef,Qn,He,ft);if(en)if(V)li(ft,en,["ng-version",JF.full]);else{var gi=function tS(c){for(var p=[],f=[],_=1,w=2;_<c.length;){var I=c[_];if("string"==typeof I)2===w?""!==I&&p.push(I,c[++_]):8===w&&f.push(I);else{if(!rc(w))break;w=I}_++}return{attrs:p,classes:f}}(this.componentDef.selectors[0]),wi=gi.attrs,$a=gi.classes;wi&&li(ft,en,wi),$a&&$a.length>0&&zv(ft,en,$a.join(" "))}if(wn=Ba(Un,22),void 0!==I)for(var es=wn.projection=[],Tl=0;Tl<this.ngContentSelectors.length;Tl++){var tu=I[Tl];es.push(null!=tu?Array.from(tu):null)}Xn=function J4(c,p,f,_){var w=f[1],I=function OS(c,p,f){var _=Me();c.firstCreatePass&&(f.providersResolver&&f.providersResolver(f),h6(c,_,p,ly(c,p,1,null),f),s6(c,_));var I=Dv(p,c,_.directiveStart,_);Ps(I,p);var V=yo(_,p);return V&&Ps(V,p),I}(w,f,p);if(c[8]=f[8]=I,null!==_){var ee,V=(0,x.Z)(_);try{for(V.s();!(ee=V.n()).done;){(0,ee.value)(I,p)}}catch(ft){V.e(ft)}finally{V.f()}}if(p.contentQueries){var ve=Me();p.contentQueries(1,I,ve.directiveStart)}var He=Me();if(w.firstCreatePass&&(null!==p.hostBindings||null!==p.hostAttrs)){it(He.index),c6(f[1],He,0,He.directiveStart,He.directiveEnd,p),d6(p,I)}return I}(Cr,this.componentDef,Qn,[Q4]),ES(Un,Qn,null)}finally{_e()}return new K4(this.componentType,Xn,w_(wn,Qn),Qn,wn)}}]),f}(jp);new NS;var K4=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w,I,V,ee){var oe;return(0,v.Z)(this,f),(oe=p.call(this)).location=I,oe._rootLView=V,oe._tNode=ee,oe.instance=w,oe.hostView=oe.changeDetectorRef=new w6(V),oe.componentType=_,oe}return(0,L.Z)(f,[{key:"setInput",value:function(w,I){var ee,V=this._tNode.inputs;if(null!==V&&(ee=V[w])){var oe=this._rootLView;Du(oe[1],oe,ee,w,I),l6(oe,this._tNode.index)}else{}}},{key:"injector",get:function(){return new Jn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(w){this.hostView.onDestroy(w)}}]),f}(KM);function Q4(){var c=Me();Ac(An()[1],c)}function M6(c){return Object.getPrototypeOf(c.prototype).constructor}function BS(c){for(var p=M6(c.type),f=!0,_=[c];p;){var w=void 0;if(Jt(c))w=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new de(903,!1);w=p.\u0275dir}if(w){if(f){_.push(w);var I=c;I.inputs=FS(c.inputs),I.declaredInputs=FS(c.declaredInputs),I.outputs=FS(c.outputs);var V=w.hostBindings;V&&e8(c,V);var ee=w.viewQuery,oe=w.contentQueries;if(ee&&$4(c,ee),oe&&S6(c,oe),F(c.inputs,w.inputs),F(c.declaredInputs,w.declaredInputs),F(c.outputs,w.outputs),Jt(w)&&w.data.animation){var ve=c.data;ve.animation=(ve.animation||[]).concat(w.data.animation)}}var He=w.features;if(He)for(var rt=0;rt<He.length;rt++){var ft=He[rt];ft&&ft.ngInherit&&ft(c),ft===BS&&(f=!1)}}p=Object.getPrototypeOf(p)}!function X4(c){for(var p=0,f=null,_=c.length-1;_>=0;_--){var w=c[_];w.hostVars=p+=w.hostVars,w.hostAttrs=As(w.hostAttrs,f=As(f,w.hostAttrs))}}(_)}function FS(c){return c===xt?{}:c===et?[]:c}function $4(c,p){var f=c.viewQuery;c.viewQuery=f?function(_,w){p(_,w),f(_,w)}:p}function S6(c,p){var f=c.contentQueries;c.contentQueries=f?function(_,w,I){p(_,w,I),f(_,w,I)}:p}function e8(c,p){var f=c.hostBindings;c.hostBindings=f?function(_,w){p(_,w),f(_,w)}:p}var t8=["providersResolver"],n8=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function r8(c){var p=M6(c.type),f=void 0;f=Jt(c)?p.\u0275cmp:p.\u0275dir;var I,_=c,w=(0,x.Z)(t8);try{for(w.s();!(I=w.n()).done;){var V=I.value;_[V]=f[V]}}catch(He){w.e(He)}finally{w.f()}if(Jt(f)){var oe,ee=(0,x.Z)(n8);try{for(ee.s();!(oe=ee.n()).done;){var ve=oe.value;_[ve]=f[ve]}}catch(He){ee.e(He)}finally{ee.f()}}}var o1=null;function Dh(){if(!o1){var c=hn.Symbol;if(c&&c.iterator)o1=c.iterator;else for(var p=Object.getOwnPropertyNames(Map.prototype),f=0;f<p.length;++f){var _=p[f];"entries"!==_&&"size"!==_&&Map.prototype[_]===Map.prototype.entries&&(o1=_)}}return o1}function dy(c){return!!US(c)&&(Array.isArray(c)||!(c instanceof Map)&&Dh()in c)}function US(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function Fc(c,p,f){return c[p]=f}function py(c,p){return c[p]}function Xa(c,p,f){var _=c[p];return!Object.is(_,f)&&(c[p]=f,!0)}function Ah(c,p,f,_){var w=Xa(c,p,f);return Xa(c,p+1,_)||w}function a1(c,p,f,_,w){var I=Ah(c,p,f,_);return Xa(c,p+2,w)||I}function Xl(c,p,f,_,w,I){var V=Ah(c,p,f,_);return Ah(c,p+2,w,I)||V}function fy(c,p,f,_){var w=An();if(Xa(w,_l(),p)){we();$o(Vt(),w,c,p,f,_)}return fy}function O_(c,p){for(var f=!1,_=Ta(),w=1;w<p.length;w+=2)f=Xa(c,_++,p[w])||f;if(qs(_),!f)return Wr;for(var I=p[0],V=1;V<p.length;V+=2)I+=ce(p[V])+p[V+1];return I}function $l(c,p,f,_){return Xa(c,_l(),f)?p+ce(f)+_:Wr}function Oh(c,p,f,_,w,I){var ee=Ah(c,Ta(),f,w);return ps(2),ee?p+ce(f)+_+ce(w)+I:Wr}function I_(c,p,f,_,w,I,V,ee){var ve=a1(c,Ta(),f,w,V);return ps(3),ve?p+ce(f)+_+ce(w)+I+ce(V)+ee:Wr}function P_(c,p,f,_,w,I,V,ee,oe,ve){var rt=Xl(c,Ta(),f,w,V,oe);return ps(4),rt?p+ce(f)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve:Wr}function Ih(c,p,f,_,w,I,V,ee,oe,ve,He,rt){var ft=Ta(),wt=Xl(c,ft,f,w,V,oe);return wt=Xa(c,ft+4,He)||wt,ps(5),wt?p+ce(f)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt:Wr}function R_(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt){var en=Ta(),_n=Xl(c,en,f,w,V,oe);return _n=Ah(c,en+4,He,ft)||_n,ps(6),_n?p+ce(f)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(ft)+wt:Wr}function L_(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n){var Un=Ta(),Qn=Xl(c,Un,f,w,V,oe);return Qn=a1(c,Un+4,He,ft,en)||Qn,ps(7),Qn?p+ce(f)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(ft)+wt+ce(en)+_n:Wr}function Z_(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn){var Xn=Ta(),wn=Xl(c,Xn,f,w,V,oe);return wn=Xl(c,Xn+4,He,ft,en,Un)||wn,ps(8),wn?p+ce(f)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(ft)+wt+ce(en)+_n+ce(Un)+Qn:Wr}function x6(c,p,f,_,w,I){var V=An(),ee=$l(V,p,f,_);ee!==Wr&&$o(Vt(),V,c,ee,w,I);return x6}function hy(c,p,f,_,w,I,V,ee){var oe=An(),ve=Oh(oe,p,f,_,w,I);ve!==Wr&&$o(Vt(),oe,c,ve,V,ee);return hy}function HS(c,p,f,_,w,I,V,ee,oe,ve){var He=An(),rt=I_(He,p,f,_,w,I,V,ee);rt!==Wr&&$o(Vt(),He,c,rt,oe,ve);return HS}function jS(c,p,f,_,w,I,V,ee,oe,ve,He,rt){var ft=An(),wt=P_(ft,p,f,_,w,I,V,ee,oe,ve);wt!==Wr&&$o(Vt(),ft,c,wt,He,rt);return jS}function Ph(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt){var en=An(),_n=Ih(en,p,f,_,w,I,V,ee,oe,ve,He,rt);_n!==Wr&&$o(Vt(),en,c,_n,ft,wt);return Ph}function E6(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n){var Un=An(),Qn=R_(Un,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt);Qn!==Wr&&$o(Vt(),Un,c,Qn,en,_n);return E6}function s8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn){var Xn=An(),wn=L_(Xn,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n);wn!==Wr&&$o(Vt(),Xn,c,wn,Un,Qn);return s8}function D6(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn,Xn,wn){var Cr=An(),gi=Z_(Cr,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn);gi!==Wr&&$o(Vt(),Cr,c,gi,Xn,wn);return D6}function GS(c,p,f,_){var w=An(),I=O_(w,p);I!==Wr&&$o(Vt(),w,c,I,f,_);return GS}function A6(c,p,f,_,w,I,V,ee){var oe=An(),ve=we(),He=c+22,rt=ve.firstCreatePass?function u8(c,p,f,_,w,I,V,ee,oe){var ve=p.consts,He=Ld(p,c,4,V||null,jl(ve,ee));Bc(p,f,He,jl(ve,oe)),Ac(p,He);var rt=He.tViews=t1(2,He,_,w,I,p.directiveRegistry,p.pipeRegistry,null,p.schemas,ve);return null!==p.queries&&(p.queries.template(p,He),rt.queries=p.queries.embeddedTView(He)),He}(He,ve,oe,p,f,_,w,I,V):ve.data[He];Ht(rt,!1);var ft=oe[11].createComment("");xC(ve,oe,ft,rt),Ps(ft,oe),cy(oe,oe[He]=PS(ft,oe,ft,rt)),tn(rt)&&DS(ve,oe,rt),null!=V&&e1(oe,rt,ee)}function my(c){return cs(function lo(){return Mr.lFrame.contextLView}(),22+c)}function s1(c,p,f){var _=An();Xa(_,_l(),p)&&el(we(),Vt(),_,c,p,_[11],f,!1);return s1}function zS(c,p,f,_,w){var V=w?"class":"style";Du(c,f,p.inputs[V],V,_)}function l1(c,p,f,_){var w=An(),I=we(),V=22+c,ee=w[11],oe=w[V]=Sd(ee,p,function vl(){return Mr.lFrame.currentNamespace}()),ve=I.firstCreatePass?function c8(c,p,f,_,w,I,V){var ee=p.consts,ve=Ld(p,c,2,w,jl(ee,I));return Bc(p,f,ve,jl(ee,V)),null!==ve.attrs&&i1(ve,ve.attrs,!1),null!==ve.mergedAttrs&&i1(ve,ve.mergedAttrs,!0),null!==p.queries&&p.queries.elementStart(p,ve),ve}(V,I,w,0,p,f,_):I.data[V];Ht(ve,!0);var He=ve.mergedAttrs;null!==He&&li(ee,oe,He);var rt=ve.classes;null!==rt&&zv(ee,oe,rt);var ft=ve.styles;return null!==ft&&PM(ee,oe,ft),64!=(64&ve.flags)&&xC(I,w,oe,ve),0===function rh(){return Mr.lFrame.elementDepthCount}()&&Ps(oe,w),function ih(){Mr.lFrame.elementDepthCount++}(),tn(ve)&&(DS(I,w,ve),r6(I,ve,w)),null!==_&&e1(w,ve),l1}function u1(){var c=Me();On()?sr():Ht(c=c.parent,!1);var p=c;!function Sp(){Mr.lFrame.elementDepthCount--}();var f=we();return f.firstCreatePass&&(Ac(f,c),Ss(c)&&f.queries.elementEnd(c)),null!=p.classesWithoutHost&&function Fn(c){return 0!=(16&c.flags)}(p)&&zS(f,p,An(),p.classesWithoutHost,!0),null!=p.stylesWithoutHost&&function pr(c){return 0!=(32&c.flags)}(p)&&zS(f,p,An(),p.stylesWithoutHost,!1),u1}function _y(c,p,f,_){return l1(c,p,f,_),u1(),_y}function gy(c,p,f){var _=An(),w=we(),I=c+22,V=w.firstCreatePass?function c1(c,p,f,_,w){var I=p.consts,V=jl(I,_),ee=Ld(p,c,8,"ng-container",V);return null!==V&&i1(ee,V,!0),Bc(p,f,ee,jl(I,w)),null!==p.queries&&p.queries.elementStart(p,ee),ee}(I,w,_,p,f):w.data[I];Ht(V,!0);var ee=_[I]=_[11].createComment("");return xC(w,_,ee,V),Ps(ee,_),tn(V)&&(DS(w,_,V),r6(w,V,_)),null!=f&&e1(_,V),gy}function d1(){var c=Me(),p=we();return On()?sr():Ht(c=c.parent,!1),p.firstCreatePass&&(Ac(p,c),Ss(c)&&p.queries.elementEnd(c)),d1}function WS(c,p,f){return gy(c,p,f),d1(),WS}function VS(){return An()}function YS(c){return!!c&&"function"==typeof c.then}function KS(c){return!!c&&"function"==typeof c.subscribe}var I6=KS;function qS(c,p,f,_){var w=An(),I=we(),V=Me();return R6(I,w,w[11],V,c,p,!!f,_),qS}function p1(c,p){var f=Me(),_=An(),w=we();return R6(w,_,b6(fs(w.data),f,_),f,c,p,!1),p1}function R6(c,p,f,_,w,I,V,ee){var oe=tn(_),He=c.firstCreatePass&&y6(c),rt=p[8],ft=r1(p),wt=!0;if(3&_.type||ee){var en=yo(_,p),_n=ee?ee(en):en,Un=ft.length,Qn=ee?function(Vc){return ee(so(Vc[_.index]))}:_.index,Xn=null;if(!ee&&oe&&(Xn=function P6(c,p,f,_){var w=c.cleanup;if(null!=w)for(var I=0;I<w.length-1;I+=2){var V=w[I];if(V===f&&w[I+1]===_){var ee=p[7],oe=w[I+2];return ee.length>oe?ee[oe]:null}"string"==typeof V&&(I+=2)}return null}(c,p,w,_.index)),null!==Xn){(Xn.__ngLastListenerFn__||Xn).__ngNextListenerFn__=I,Xn.__ngLastListenerFn__=I,wt=!1}else{I=JS(_,p,rt,I,!1);var Cr=f.listen(_n,w,I);ft.push(I,Cr),He&&He.push(w,Qn,Un,Un+1)}}else I=JS(_,p,rt,I,!1);var wi,gi=_.outputs;if(wt&&null!==gi&&(wi=gi[w])){var $a=wi.length;if($a)for(var es=0;es<$a;es+=2){var Tl=wi[es],tu=wi[es+1],Vy=p[Tl][tu].subscribe(I),ag=ft.length;ft.push(I,Vy),He&&He.push(w,_.index,ag,-(ag+1))}}}function L6(c,p,f,_){try{return Yi(6,p,f),!1!==f(_)}catch(w){return C6(c,w),!1}finally{Yi(7,p,f)}}function JS(c,p,f,_,w){return function I(V){if(V===Function)return _;LS(2&c.flags?fo(c.index,p):p);for(var oe=L6(p,f,_,V),ve=I.__ngNextListenerFn__;ve;)oe=L6(p,f,ve,V)&&oe,ve=ve.__ngNextListenerFn__;return w&&!1===oe&&(V.preventDefault(),V.returnValue=!1),oe}}function Z6(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ee(c)}function N6(c,p){for(var f=null,_=function S_(c){var p=c.attrs;if(null!=p){var f=p.indexOf(5);if(0==(1&f))return p[f+1]}return null}(c),w=0;w<p.length;w++){var I=p[w];if("*"!==I){if(null===_?B3(c,I,!0):i4(_,I))return w}else f=w}return f}function B6(c){var p=An()[16][6];if(!p.projection)for(var f=c?c.length:1,_=p.projection=Td(f,null),w=_.slice(),I=p.child;null!==I;){var V=c?N6(I,c):0;null!==V&&(w[V]?w[V].projectionNext=I:_[V]=I,w[V]=I),I=I.next}}function F6(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=arguments.length>2?arguments[2]:void 0,_=An(),w=we(),I=Ld(w,22+c,16,null,f||null);null===I.projection&&(I.projection=p),sr(),64!=(64&I.flags)&&xd(w,_,I)}function QS(c,p,f){return f1(c,"",p,"",f),QS}function f1(c,p,f,_,w){var I=An(),V=$l(I,p,f,_);V!==Wr&&el(we(),Vt(),I,c,V,I[11],w,!1);return f1}function h1(c,p,f,_,w,I,V){var ee=An(),oe=Oh(ee,p,f,_,w,I);oe!==Wr&&el(we(),Vt(),ee,c,oe,ee[11],V,!1);return h1}function m1(c,p,f,_,w,I,V,ee,oe){var ve=An(),He=I_(ve,p,f,_,w,I,V,ee);He!==Wr&&el(we(),Vt(),ve,c,He,ve[11],oe,!1);return m1}function XS(c,p,f,_,w,I,V,ee,oe,ve,He){var rt=An(),ft=P_(rt,p,f,_,w,I,V,ee,oe,ve);ft!==Wr&&el(we(),Vt(),rt,c,ft,rt[11],He,!1);return XS}function $S(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft){var wt=An(),en=Ih(wt,p,f,_,w,I,V,ee,oe,ve,He,rt);en!==Wr&&el(we(),Vt(),wt,c,en,wt[11],ft,!1);return $S}function U6(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en){var _n=An(),Un=R_(_n,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt);Un!==Wr&&el(we(),Vt(),_n,c,Un,_n[11],en,!1);return U6}function H6(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un){var Qn=An(),Xn=L_(Qn,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n);Xn!==Wr&&el(we(),Vt(),Qn,c,Xn,Qn[11],Un,!1);return H6}function ex(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn,Xn){var wn=An(),Cr=Z_(wn,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn);Cr!==Wr&&el(we(),Vt(),wn,c,Cr,wn[11],Xn,!1);return ex}function j6(c,p,f){var _=An(),w=O_(_,p);w!==Wr&&el(we(),Vt(),_,c,w,_[11],f,!1);return j6}function d8(c,p,f,_,w,I){var V=I?p.classBindings:p.styleBindings,ee=ic(V),oe=xu(V);c[_]=f;var He,ve=!1;if(Array.isArray(f)){var rt=f;(null===(He=rt[1])||Md(rt,He)>0)&&(ve=!0)}else He=f;if(w)if(0!==oe){var wt=ic(c[ee+1]);c[_+1]=Gp(wt,ee),0!==wt&&(c[wt+1]=mS(c[wt+1],_)),c[ee+1]=function ry(c,p){return 131071&c|p<<17}(c[ee+1],_)}else c[_+1]=Gp(ee,0),0!==ee&&(c[ee+1]=mS(c[ee+1],_)),ee=_;else c[_+1]=Gp(oe,0),0===ee?ee=_:c[oe+1]=mS(c[oe+1],_),oe=_;ve&&(c[_+1]=E_(c[_+1])),G6(c,He,_,!0,I),G6(c,He,_,!1,I),function p8(c,p,f,_,w){var I=w?c.residualClasses:c.residualStyles;null!=I&&"string"==typeof p&&Md(I,p)>=0&&(f[_+1]=iy(f[_+1]))}(p,He,c,_,I),V=Gp(ee,oe),I?p.classBindings=V:p.styleBindings=V}function G6(c,p,f,_,w){for(var I=c[f+1],V=null===p,ee=_?ic(I):xu(I),oe=!1;0!==ee&&(!1===oe||V);){var ve=c[ee],He=c[ee+1];f8(ve,p)&&(oe=!0,c[ee+1]=_?iy(He):E_(He)),ee=_?ic(He):xu(He)}oe&&(c[f+1]=_?E_(I):iy(I))}function f8(c,p){return null===c||null==p||(Array.isArray(c)?c[1]:c)===p||!(!Array.isArray(c)||"string"!=typeof p)&&Md(c,p)>=0}var ja={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function z6(c){return c.substring(ja.key,ja.keyEnd)}function h8(c){return c.substring(ja.value,ja.valueEnd)}function tx(c,p){var f=ja.textEnd;return f===p?-1:(p=ja.keyEnd=function m8(c,p,f){for(;p<f&&c.charCodeAt(p)>32;)p++;return p}(c,ja.key=p,f),N_(c,p,f))}function nx(c,p){var f=ja.textEnd,_=ja.key=N_(c,p,f);return f===_?-1:(_=ja.keyEnd=function _8(c,p,f){for(var _;p<f&&(45===(_=c.charCodeAt(p))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)p++;return p}(c,_,f),_=Y6(c,_,f,58),_=ja.value=N_(c,_,f),_=ja.valueEnd=function ix(c,p,f){for(var _=-1,w=-1,I=-1,V=p,ee=V;V<f;){var oe=c.charCodeAt(V++);if(59===oe)return ee;34===oe||39===oe?ee=V=K6(c,oe,V,f):p===V-4&&85===I&&82===w&&76===_&&40===oe?ee=V=K6(c,41,V,f):oe>32&&(ee=V),I=w,w=_,_=-33&oe}return ee}(c,_,f),Y6(c,_,f,59))}function rx(c){ja.key=0,ja.keyEnd=0,ja.value=0,ja.valueEnd=0,ja.textEnd=c.length}function N_(c,p,f){for(;p<f&&c.charCodeAt(p)<=32;)p++;return p}function Y6(c,p,f,_){return(p=N_(c,p,f))<f&&p++,p}function K6(c,p,f,_){for(var w=-1,I=f;I<_;){var V=c.charCodeAt(I++);if(V==p&&92!==w)return I;w=92==V&&92===w?0:V}throw new Error}function _1(c,p,f){return Ou(c,p,f,!1),_1}function Yp(c,p){return Ou(c,p,null,!0),Yp}function Au(c){Iu(C8,q6,c,!1)}function q6(c,p){for(var f=function V6(c){return rx(c),nx(c,N_(c,0,ja.textEnd))}(p);f>=0;f=nx(p,f))C8(c,z6(p),h8(p))}function J6(c){Iu(Ua,oc,c,!0)}function oc(c,p){for(var f=function W6(c){return rx(c),tx(c,N_(c,0,ja.textEnd))}(p);f>=0;f=tx(p,f))Ua(c,z6(p),!0)}function Ou(c,p,f,_){var w=An(),I=we(),V=ps(2);(I.firstUpdatePass&&X6(I,c,V,_),p!==Wr&&Xa(w,V,p))&&w8(I,I.data[Ge()],w,w[11],c,w[V+1]=function ZV(c,p){return null==c||("string"==typeof p?c+=p:"object"==typeof c&&(c=X(Pc(c)))),c}(p,f),_,V)}function Iu(c,p,f,_){var w=we(),I=ps(2);w.firstUpdatePass&&X6(w,null,I,_);var V=An();if(f!==Wr&&Xa(V,I,f)){var ee=w.data[Ge()];if(tR(ee,_)&&!Q6(w,I)){var ve=_?ee.classesWithoutHost:ee.stylesWithoutHost;null!==ve&&(f=$(ve,f||"")),zS(w,ee,V,f,_)}else!function LV(c,p,f,_,w,I,V,ee){w===Wr&&(w=et);for(var oe=0,ve=0,He=0<w.length?w[0]:null,rt=0<I.length?I[0]:null;null!==He||null!==rt;){var ft=oe<w.length?w[oe+1]:void 0,wt=ve<I.length?I[ve+1]:void 0,en=null,_n=void 0;He===rt?(oe+=2,ve+=2,ft!==wt&&(en=rt,_n=wt)):null===rt||null!==He&&He<rt?(oe+=2,en=He):(ve+=2,en=rt,_n=wt),null!==en&&w8(c,p,f,_,en,_n,V,ee),He=oe<w.length?w[oe]:null,rt=ve<I.length?I[ve]:null}}(w,ee,V,V[11],V[I+1],V[I+1]=function b8(c,p,f){if(null==f||""===f)return et;var _=[],w=Pc(f);if(Array.isArray(w))for(var I=0;I<w.length;I++)c(_,w[I],!0);else if("object"==typeof w)for(var V in w)w.hasOwnProperty(V)&&c(_,V,w[V]);else"string"==typeof w&&p(_,w);return _}(c,p,f),_,I)}}function Q6(c,p){return p>=c.expandoStartIndex}function X6(c,p,f,_){var w=c.data;if(null===w[f+1]){var I=w[Ge()],V=Q6(c,f);tR(I,_)&&null===p&&!V&&(p=!1),p=function g8(c,p,f,_){var w=fs(c),I=_?p.residualClasses:p.residualStyles;if(null===w){0===(_?p.classBindings:p.styleBindings)&&(f=vy(f=ox(null,c,p,f,_),p.attrs,_),I=null)}else{var ee=p.directiveStylingLast;if(-1===ee||c[ee]!==w)if(f=ox(w,c,p,f,_),null===I){var ve=function v8(c,p,f){var _=f?p.classBindings:p.styleBindings;if(0!==xu(_))return c[ic(_)]}(c,p,_);void 0!==ve&&Array.isArray(ve)&&function y8(c,p,f,_){var w=f?p.classBindings:p.styleBindings;c[ic(w)]=_}(c,p,_,ve=vy(ve=ox(null,c,p,ve[1],_),p.attrs,_))}else I=function $6(c,p,f){for(var _=void 0,w=p.directiveEnd,I=1+p.directiveStylingLast;I<w;I++){_=vy(_,c[I].hostAttrs,f)}return vy(_,p.attrs,f)}(c,p,_)}return void 0!==I&&(_?p.residualClasses=I:p.residualStyles=I),f}(w,I,p,_),d8(w,I,p,f,V,_)}}function ox(c,p,f,_,w){var I=null,V=f.directiveEnd,ee=f.directiveStylingLast;for(-1===ee?ee=f.directiveStart:ee++;ee<V&&(_=vy(_,(I=p[ee]).hostAttrs,w),I!==c);)ee++;return null!==c&&(f.directiveStylingLast=ee),_}function vy(c,p,f){var _=f?1:2,w=-1;if(null!==p)for(var I=0;I<p.length;I++){var V=p[I];"number"==typeof V?w=V:w===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),Ua(c,V,!!f||p[++I]))}return void 0===c?null:c}function C8(c,p,f){Ua(c,p,Pc(f))}function w8(c,p,f,_,w,I,V,ee){if(3&p.type){var oe=c.data,ve=oe[ee+1];if(!ax(q3(ve)?eR(oe,p,f,w,xu(ve),V):void 0))ax(I)||K3(ve)&&(I=eR(oe,null,f,w,ee,V)),function Bp(c,p,f,_,w){if(p)w?c.addClass(f,_):c.removeClass(f,_);else{var I=-1===_.indexOf("-")?void 0:Lv.DashCase;null==w?c.removeStyle(f,_,I):("string"==typeof w&&w.endsWith("!important")&&(w=w.slice(0,-10),I|=Lv.Important),c.setStyle(f,_,w,I))}}(_,V,Ec(Ge(),f),w,I)}}function eR(c,p,f,_,w,I){for(var V=null===p,ee=void 0;w>0;){var oe=c[w],ve=Array.isArray(oe),He=ve?oe[1]:oe,rt=null===He,ft=f[w+1];ft===Wr&&(ft=rt?et:void 0);var wt=rt?fC(ft,_):He===_?ft:void 0;if(ve&&!ax(wt)&&(wt=fC(oe,_)),ax(wt)&&(ee=wt,V))return ee;var en=c[w+1];w=V?ic(en):xu(en)}if(null!==p){var _n=I?p.residualClasses:p.residualStyles;null!=_n&&(ee=fC(_n,_))}return ee}function ax(c){return void 0!==c}function tR(c,p){return 0!=(c.flags&(p?16:32))}function nR(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=An(),_=we(),w=c+22,I=_.firstCreatePass?Ld(_,w,1,p,null):_.data[w],V=f[w]=EM(f[11],p);xC(_,f,V,I),Ht(I,!1)}function rR(c){return sx("",c,""),rR}function sx(c,p,f){var _=An(),w=$l(_,c,p,f);return w!==Wr&&Zd(_,Ge(),w),sx}function iR(c,p,f,_,w){var I=An(),V=Oh(I,c,p,f,_,w);return V!==Wr&&Zd(I,Ge(),V),iR}function oR(c,p,f,_,w,I,V){var ee=An(),oe=I_(ee,c,p,f,_,w,I,V);return oe!==Wr&&Zd(ee,Ge(),oe),oR}function g1(c,p,f,_,w,I,V,ee,oe){var ve=An(),He=P_(ve,c,p,f,_,w,I,V,ee,oe);return He!==Wr&&Zd(ve,Ge(),He),g1}function lx(c,p,f,_,w,I,V,ee,oe,ve,He){var rt=An(),ft=Ih(rt,c,p,f,_,w,I,V,ee,oe,ve,He);return ft!==Wr&&Zd(rt,Ge(),ft),lx}function k8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft){var wt=An(),en=R_(wt,c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft);return en!==Wr&&Zd(wt,Ge(),en),k8}function T8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en){var _n=An(),Un=L_(_n,c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en);return Un!==Wr&&Zd(_n,Ge(),Un),T8}function M8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un){var Qn=An(),Xn=Z_(Qn,c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un);return Xn!==Wr&&Zd(Qn,Ge(),Xn),M8}function S8(c){var p=An(),f=O_(p,c);return f!==Wr&&Zd(p,Ge(),f),S8}function aR(c,p,f){Iu(Ua,oc,$l(An(),c,p,f),!0)}function x8(c,p,f,_,w){Iu(Ua,oc,Oh(An(),c,p,f,_,w),!0)}function NV(c,p,f,_,w,I,V){Iu(Ua,oc,I_(An(),c,p,f,_,w,I,V),!0)}function BV(c,p,f,_,w,I,V,ee,oe){Iu(Ua,oc,P_(An(),c,p,f,_,w,I,V,ee,oe),!0)}function FV(c,p,f,_,w,I,V,ee,oe,ve,He){Iu(Ua,oc,Ih(An(),c,p,f,_,w,I,V,ee,oe,ve,He),!0)}function UV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft){Iu(Ua,oc,R_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft),!0)}function HV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en){Iu(Ua,oc,L_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en),!0)}function jV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un){Iu(Ua,oc,Z_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un),!0)}function GV(c){Iu(Ua,oc,O_(An(),c),!0)}function zV(c,p,f){Au($l(An(),c,p,f))}function WV(c,p,f,_,w){Au(Oh(An(),c,p,f,_,w))}function VV(c,p,f,_,w,I,V){Au(I_(An(),c,p,f,_,w,I,V))}function YV(c,p,f,_,w,I,V,ee,oe){Au(P_(An(),c,p,f,_,w,I,V,ee,oe))}function KV(c,p,f,_,w,I,V,ee,oe,ve,He){Au(Ih(An(),c,p,f,_,w,I,V,ee,oe,ve,He))}function qV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft){Au(R_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft))}function JV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en){Au(L_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en))}function QV(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un){Au(Z_(An(),c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un))}function E8(c){Au(O_(An(),c))}function D8(c,p,f,_,w){return Ou(c,$l(An(),p,f,_),w,!1),D8}function A8(c,p,f,_,w,I,V){return Ou(c,Oh(An(),p,f,_,w,I),V,!1),A8}function O8(c,p,f,_,w,I,V,ee,oe){return Ou(c,I_(An(),p,f,_,w,I,V,ee),oe,!1),O8}function I8(c,p,f,_,w,I,V,ee,oe,ve,He){return Ou(c,P_(An(),p,f,_,w,I,V,ee,oe,ve),He,!1),I8}function P8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft){return Ou(c,Ih(An(),p,f,_,w,I,V,ee,oe,ve,He,rt),ft,!1),P8}function R8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en){return Ou(c,R_(An(),p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt),en,!1),R8}function L8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un){return Ou(c,L_(An(),p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n),Un,!1),L8}function Z8(c,p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn,Xn){return Ou(c,Z_(An(),p,f,_,w,I,V,ee,oe,ve,He,rt,ft,wt,en,_n,Un,Qn),Xn,!1),Z8}function N8(c,p,f){return Ou(c,O_(An(),p),f,!1),N8}function sR(c,p,f){var _=An();Xa(_,_l(),p)&&el(we(),Vt(),_,c,p,_[11],f,!0);return sR}function lR(c,p,f){var _=An();if(Xa(_,_l(),p)){var I=we(),V=Vt();el(I,V,_,c,p,b6(fs(I.data),V,_),f,!0)}return lR}var B_=void 0;var U_,$V=["en",[["a","p"],["AM","PM"],B_],[["AM","PM"],B_,B_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],B_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],B_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",B_,"{1} 'at' {0}",B_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function XV(c){var f=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===_?1:5}],F_={};function uR(c){var p=function U8(c){return c.toLowerCase().replace(/_/g,"-")}(c),f=F8(p);if(f)return f;var _=p.split("-")[0];if(f=F8(_))return f;if("en"===_)return $V;throw new de(701,!1)}function B8(c){return uR(c)[U_.PluralCase]}function F8(c){return c in F_||(F_[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),F_[c]}!function(c){c[c.LocaleId=0]="LocaleId",c[c.DayPeriodsFormat=1]="DayPeriodsFormat",c[c.DayPeriodsStandalone=2]="DayPeriodsStandalone",c[c.DaysFormat=3]="DaysFormat",c[c.DaysStandalone=4]="DaysStandalone",c[c.MonthsFormat=5]="MonthsFormat",c[c.MonthsStandalone=6]="MonthsStandalone",c[c.Eras=7]="Eras",c[c.FirstDayOfWeek=8]="FirstDayOfWeek",c[c.WeekendRange=9]="WeekendRange",c[c.DateFormat=10]="DateFormat",c[c.TimeFormat=11]="TimeFormat",c[c.DateTimeFormat=12]="DateTimeFormat",c[c.NumberSymbols=13]="NumberSymbols",c[c.NumberFormats=14]="NumberFormats",c[c.CurrencyCode=15]="CurrencyCode",c[c.CurrencySymbol=16]="CurrencySymbol",c[c.CurrencyName=17]="CurrencyName",c[c.Currencies=18]="Currencies",c[c.Directionality=19]="Directionality",c[c.PluralCase=20]="PluralCase",c[c.ExtraData=21]="ExtraData"}(U_||(U_={}));var eY=["zero","one","two","few","many"];var Cl,yy="en-US",ux={marker:"element"},cx={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}(Cl||(Cl={}));var H8=yy;function dx(c){Ut(c,"Expected localeId to be defined"),"string"==typeof c&&(H8=c.toLowerCase().replace(/_/g,"-"))}function j8(c,p,f){var _=p.insertBeforeIndex,w=Array.isArray(_)?_[0]:_;return null===w?jv(c,0,f):so(f[w])}function G8(c,p,f,_,w){var I=p.insertBeforeIndex;if(Array.isArray(I)){var V=_,ee=null;if(3&p.type||(ee=V,V=w),null!==V&&0==(2&p.flags))for(var oe=1;oe<I.length;oe++){Zp(c,V,f[I[oe]],ee,!1)}}}function z8(c,p){if(c.push(p),c.length>1)for(var f=c.length-2;f>=0;f--){var _=c[f];W8(_)||iY(_,p)&&null===oY(_)&&V8(_,p.index)}}function W8(c){return!(64&c.type)}function iY(c,p){return W8(p)||c.index>p.index}function oY(c){var p=c.insertBeforeIndex;return Array.isArray(p)?p[0]:p}function V8(c,p){var f=c.insertBeforeIndex;Array.isArray(f)?f[0]=p:(p_(j8,G8),c.insertBeforeIndex=p)}function v1(c,p){var f=c.data[p];return null===f||"string"==typeof f?null:f.hasOwnProperty("currentCaseLViewIndex")?f:f.value}function Y8(c,p,f){var _=xS(c,f,64,null,null);return z8(p,_),_}function Cy(c,p){var f=p[c.currentCaseLViewIndex];return null===f?f:f<0?~f:f}function cR(c){return c>>>17}function K8(c){return(131070&c)>>>1}var wy=0,y1=0;function Q8(c,p,f,_){for(var w=c[11],I=0;I<p.length;I++){var V=p[I++],ee=p[I],oe=(V&Cl.COMMENT)===Cl.COMMENT,ve=(V&Cl.APPEND_EAGERLY)===Cl.APPEND_EAGERLY,He=V>>>Cl.SHIFT,rt=c[He];null===rt&&(rt=c[He]=oe?w.createComment(ee):EM(w,ee)),ve&&null!==f&&Zp(w,f,rt,_,!1)}}function pR(c,p,f,_){for(var V,w=f[11],I=null,ee=0;ee<p.length;ee++){var oe=p[ee];if("string"==typeof oe){var ve=p[++ee];null===f[ve]&&(f[ve]=EM(w,oe))}else if("number"==typeof oe)switch(1&oe){case 0:var He=cR(oe);null===I&&(I=He,V=Hv(w,_));var rt=void 0,ft=void 0;if(He===I?(rt=_,ft=V):(rt=null,ft=so(f[He])),null!==ft){var wt=K8(oe);Zp(w,ft,f[wt],rt,!1);var _n=v1(c,wt);if(null!==_n&&"object"==typeof _n){var Un=Cy(_n,f);null!==Un&&pR(c,_n.create[Un],f,f[_n.anchorIdx])}}break;case 1:var Qn=oe>>>1,Xn=p[++ee],wn=p[++ee];IS(w,Ec(Qn,f),null,null,Xn,wn,null)}else switch(oe){case cx:var Cr=p[++ee],gi=p[++ee];if(null===f[gi])Ps(f[gi]=hV(w,Cr),f);break;case ux:var $a=p[++ee],es=p[++ee];if(null===f[es])Ps(f[es]=Sd(w,$a,null),f)}}}function fR(c,p,f,_,w){for(var I=0;I<f.length;I++){var V=f[I],ee=f[++I];if(V&w)for(var oe="",ve=I+1;ve<=I+ee;ve++){var He=f[ve];if("string"==typeof He)oe+=He;else if("number"==typeof He)if(He<0)oe+=ce(p[_-He]);else{var rt=He>>>2;switch(3&He){case 1:var ft=f[++ve],wt=f[++ve],en=c.data[rt];"string"==typeof en?IS(p[11],p[rt],null,en,ft,oe,wt):el(c,en,p,ft,oe,p[11],wt,!1);break;case 0:var _n=p[rt];null!==_n&&Sa(p[11],_n,oe);break;case 2:$8(c,v1(c,rt),p,oe);break;case 3:X8(c,v1(c,rt),_,p)}}}else{var Un=f[I+1];if(Un>0&&3==(3&Un)){var Xn=v1(c,Un>>>2);p[Xn.currentCaseLViewIndex]<0&&X8(c,Xn,_,p)}}I+=ee}}function X8(c,p,f,_){var w=_[p.currentCaseLViewIndex];if(null!==w){var I=wy;w<0&&(w=_[p.currentCaseLViewIndex]=~w,I=-1),fR(c,_,p.update[w],f,I)}}function $8(c,p,f,_){var w=function tU(c,p){var f=c.cases.indexOf(p);if(-1===f)switch(c.type){case 1:var _=function tY(c,p){var f=B8(p)(parseInt(c,10)),_=eY[f];return void 0!==_?_:"other"}(p,function rY(){return H8}());-1===(f=c.cases.indexOf(_))&&"other"!==_&&(f=c.cases.indexOf("other"));break;case 0:f=c.cases.indexOf("other")}return-1===f?null:f}(p,_);if(Cy(p,f)!==w&&(eU(c,p,f),f[p.currentCaseLViewIndex]=null===w?null:~w,null!==w)){var V=f[p.anchorIdx];V&&pR(c,p.create[w],f,V)}}function eU(c,p,f){var _=Cy(p,f);if(null!==_)for(var w=p.remove[_],I=0;I<w.length;I++){var V=w[I];if(V>0){var ee=Ec(V,f);null!==ee&&Np(f[11],ee)}else eU(c,v1(c,~V),f)}}function nU(){var f,_,c=[],p=-1;function I(ee,oe){p=0;var ve=Cy(ee,oe);_=null!==ve?ee.remove[ve]:et}function V(){if(p<_.length){var ee=_[p++];if(ee>0)return f[ee];c.push(p,_);var ve=~ee;return I(f[1].data[ve],f),V()}return 0===c.length?null:(_=c.pop(),p=c.pop(),V())}return function w(ee,oe){for(f=oe;c.length;)c.pop();return I(ee.value,oe),V}}var b1=/\ufffd(\d+):?\d*\ufffd/gi,lY=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,rU=/\ufffd(\d+)\ufffd/,Ii=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Mn="\ufffd",Yr=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,In=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,xa=/\uE500/g;function oU(c,p,f,_,w,I){var V=mt(),ee=[],oe=[],ve=[[]];w=function ha(c,p){if(function fa(c){return-1===c}(p))return Co(c);var f=c.indexOf(":".concat(p).concat(Mn))+2+p.toString().length,_=c.search(new RegExp("".concat(Mn,"\\/\\*\\d+:").concat(p).concat(Mn)));return Co(c.substring(f,_))}(w,I);for(var He=function iU(c){return c.replace(xa," ")}(w).split(In),rt=0;rt<He.length;rt++){var ft=He[rt];if(0==(1&rt))for(var wt=Kp(ft),en=0;en<wt.length;en++){var _n=wt[en];if(0==(1&en)){var Un=_n;""!==Un&&ji(c,V,ve[0],ee,oe,f,Un)}else{var Qn=_n;if("object"!=typeof Qn)throw new Error('Unable to parse ICU expression in "'.concat(w,'" message.'));Ls(c,f,oe,p,Qn,$i(c,V,ve[0],f,ee,"",!0).index)}}else{var Cr=47===ft.charCodeAt(0),wi=(ft.charCodeAt(Cr?1:0),22+Number.parseInt(ft.substring(Cr?2:1)));if(Cr)ve.shift(),Ht(mt(),!1);else{var $a=Y8(c,ve[0],wi);ve.unshift([]),Ht($a,!0)}}}c.data[_]={create:ee,update:oe}}function $i(c,p,f,_,w,I,V){var ee=ly(c,_,1,null),oe=ee<<Cl.SHIFT,ve=mt();p===ve&&(ve=null),null===ve&&(oe|=Cl.APPEND_EAGERLY),V&&(oe|=Cl.COMMENT,function EF(c){void 0===MM&&(MM=c())}(nU)),w.push(oe,null===I?"":I);var He=xS(c,ee,V?32:1,null===I?"":I,null);z8(f,He);var rt=He.index;return Ht(He,!1),null!==ve&&p!==ve&&function px(c,p){var f=c.insertBeforeIndex;null===f?(p_(j8,G8),f=c.insertBeforeIndex=[null,p]):(Ft(Array.isArray(f),!0,"Expecting array here"),f.push(p))}(ve,rt),He}function ji(c,p,f,_,w,I,V){var ee=V.match(b1),oe=$i(c,p,f,I,_,ee?null:V,!1);ee&&eo(w,V,oe.index,null,0,null)}function eo(c,p,f,_,w,I){var V=c.length,ee=V+1;c.push(null,null);for(var oe=V+2,ve=p.split(b1),He=0,rt=0;rt<ve.length;rt++){var ft=ve[rt];if(1&rt){var wt=w+parseInt(ft,10);c.push(-1-wt),He|=xi(wt)}else""!==ft&&c.push(ft)}return c.push(f<<2|(_?1:0)),_&&c.push(_,I),c[V]=He,c[ee]=c.length-oe,He}function $n(c){for(var p=0,f=0;f<c.length;f++){var _=c[f];"number"==typeof _&&_<0&&p++}return p}function xi(c){return 1<<Math.min(c,31)}function Co(c){for(var p,I,f="",_=0,w=!1;null!==(p=Yr.exec(c));)w?p[0]==="".concat(Mn,"/*").concat(I).concat(Mn)&&(_=p.index,w=!1):(f+=c.substring(_,p.index+p[0].length),I=p[1],w=!0);return f+=c.slice(_)}function Ls(c,p,f,_,w,I){var V=0,ee={type:w.type,currentCaseLViewIndex:ly(c,p,1,null),anchorIdx:I,cases:[],create:[],remove:[],update:[]};(function _x(c,p,f){c.push(xi(p.mainBinding),2,-1-p.mainBinding,f<<2|2)})(f,w,I),function by(c,p,f){var _=c.data[p];null===_?c.data[p]=f:_.value=f}(c,I,ee);for(var oe=w.values,ve=0;ve<oe.length;ve++){for(var He=oe[ve],rt=[],ft=0;ft<He.length;ft++){var wt=He[ft];if("string"!=typeof wt){var en=rt.push(wt)-1;He[ft]="\x3c!--\ufffd".concat(en,"\ufffd--\x3e")}}V=mR(c,ee,p,f,_,w.cases[ve],He.join(""),rt)|V}V&&function gx(c,p,f){c.push(p,1,f<<2|3)}(f,V,I)}function hx(c){for(var p=[],f=[],_=1,w=0,I=Kp(c=c.replace(Ii,function(ve,He,rt){return _="select"===rt?0:1,w=parseInt(He.slice(1),10),""})),V=0;V<I.length;){var ee=I[V++].trim();1===_&&(ee=ee.replace(/\s*(?:=)?(\w+)\s*/,"$1")),ee.length&&p.push(ee);var oe=Kp(I[V++]);p.length>f.length&&f.push(oe)}return{type:_,mainBinding:w,cases:p,values:f}}function Kp(c){if(!c)return[];var I,p=0,f=[],_=[],w=/[{}]/g;for(w.lastIndex=0;I=w.exec(c);){var V=I.index;if("}"==I[0]){if(f.pop(),0==f.length){var ee=c.substring(p,V);Ii.test(ee)?_.push(hx(ee)):_.push(ee),p=V+1}}else{if(0==f.length){var oe=c.substring(p,V);_.push(oe),p=V+1}f.push("{")}}var ve=c.substring(p);return _.push(ve),_}function mR(c,p,f,_,w,I,V,ee){var oe=[],ve=[],He=[];p.cases.push(I),p.create.push(oe),p.remove.push(ve),p.update.push(He);var ft=RF(m_()).getInertBodyElement(V),wt=HM(ft)||ft;return wt?ky(c,p,f,_,oe,ve,He,wt,w,ee,0):0}function ky(c,p,f,_,w,I,V,ee,oe,ve,He){for(var rt=0,ft=ee.firstChild;ft;){var wt=ly(c,f,1,null);switch(ft.nodeType){case Node.ELEMENT_NODE:var en=ft,_n=en.tagName.toLowerCase();if(NM.hasOwnProperty(_n)){Ty(w,ux,_n,oe,wt),c.data[wt]=_n;for(var Un=en.attributes,Qn=0;Qn<Un.length;Qn++){var Xn=Un.item(Qn),wn=Xn.name.toLowerCase();!!Xn.value.match(b1)?FM.hasOwnProperty(wn)&&(BM[wn]?eo(V,Xn.value,wt,Xn.name,0,IC):eo(V,Xn.value,wt,Xn.name,0,null)):My(w,wt,Xn)}rt=ky(c,p,f,_,w,I,V,ft,wt,ve,He+1)|rt,mx(I,wt,He)}break;case Node.TEXT_NODE:var gi=ft.textContent||"",wi=gi.match(b1);Ty(w,null,wi?"":gi,oe,wt),mx(I,wt,He),wi&&(rt=eo(V,gi,wt,null,0,null)|rt);break;case Node.COMMENT_NODE:var $a=rU.exec(ft.textContent||"");if($a){var Tl=ve[parseInt($a[1],10)];Ty(w,cx,"",oe,wt),Ls(c,f,_,oe,Tl,wt),aU(I,wt,He)}}ft=ft.nextSibling}return rt}function mx(c,p,f){0===f&&c.push(p)}function aU(c,p,f){0===f&&(c.push(~p),c.push(p))}function Ty(c,p,f,_,w){null!==p&&c.push(p),c.push(f,w,function dR(c,p,f){return c|p<<17|f<<1}(0,_,w))}function My(c,p,f){c.push(p<<1|1,f.name,f.value)}var _R=/\[(\ufffd.+?\ufffd?)\]/,gR=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,vR=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,sU=/{([A-Z0-9_]+)}/g,yR=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,bR=/\/\*/,CR=/\d+\:(\d+)/;function C1(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=c;if(_R.test(c)){var _={},w=[0];f=f.replace(gR,function(I,V,ee){var oe=V||ee,ve=_[oe]||[];if(ve.length||(oe.split("|").forEach(function(Qn){var Xn=Qn.match(CR),wn=Xn?parseInt(Xn[1],10):0,Cr=bR.test(Qn);ve.push([wn,Cr,Qn])}),_[oe]=ve),!ve.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(oe));for(var He=w[w.length-1],rt=0,ft=0;ft<ve.length;ft++)if(ve[ft][0]===He){rt=ft;break}var wt=(0,A.Z)(ve[rt],3),en=wt[0],_n=wt[1],Un=wt[2];return _n?w.pop():He!==en&&w.push(en),ve.splice(rt,1),Un})}return Object.keys(p).length&&(f=(f=(f=f.replace(vR,function(I,V,ee,oe,ve,He){return p.hasOwnProperty(ee)?"".concat(V).concat(p[ee]).concat(He):I})).replace(sU,function(I,V){return p.hasOwnProperty(V)?p[V]:I})).replace(yR,function(I,V){if(p.hasOwnProperty(V)){var ee=p[V];if(!ee.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(I," with key: ").concat(V));return ee.shift()}return I})),f}function wR(c,p){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=we(),w=An(),I=22+c,V=jl(_.consts,p),ee=mt();_.firstCreatePass&&oU(_,null===ee?0:ee.index,w,I,V,f);var oe=_.data[I],ve=ee===w[6]?null:ee,He=AM(_,ve,w),rt=ee&&8&ee.type?w[ee.index]:null;Q8(w,oe.create,He,rt),oh(!0)}function w1(){oh(!1)}function lU(c,p,f){wR(c,p,f),w1()}function k1(c,p){var f=we();!function Br(c,p,f){var w=Me().index,I=[];if(c.firstCreatePass&&null===c.data[p]){for(var V=0;V<f.length;V+=2){var ee=f[V],oe=f[V+1];if(""!==oe){if(lY.test(oe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(oe,'".'));eo(I,oe,w,ee,$n(I),null)}}c.data[p]=I}}(f,c+22,jl(f.consts,p))}function yx(c){return function q8(c){c&&(wy|=1<<Math.min(y1,31)),y1++}(Xa(An(),_l(),c)),yx}function Sy(c){!function J8(c,p,f){if(y1>0){var _=c.data[f];fR(c,p,Array.isArray(_)?_:_.update,Ta()-y1-1,wy)}wy=0,y1=0}(we(),An(),c+22)}function kR(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return C1(c,p)}function TR(c,p,f){var _=we();if(_.firstCreatePass){var w=Jt(c);bx(f,_.data,_.blueprint,w,!0),bx(p,_.data,_.blueprint,w,!1)}}function bx(c,p,f,_,w){if(c=ne(c),Array.isArray(c))for(var I=0;I<c.length;I++)bx(c[I],p,f,_,w);else{var V=we(),ee=An(),oe=Od(c)?c:ne(c.provide),ve=Su(c),He=Me(),rt=1048575&He.providerIndexes,ft=He.directiveStart,wt=He.providerIndexes>>20;if(Od(c)||!c.multi){var en=new he(ve,w,x_),_n=Rh(oe,p,w?rt:rt+wt,ft);-1===_n?(n_(xv(He,ee),V,oe),MR(V,c,p.length),p.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),f.push(en),ee.push(en)):(f[_n]=en,ee[_n]=en)}else{var Un=Rh(oe,p,rt+wt,ft),Qn=Rh(oe,p,rt,rt+wt),Xn=Un>=0&&f[Un],wn=Qn>=0&&f[Qn];if(w&&!wn||!w&&!Xn){n_(xv(He,ee),V,oe);var Cr=function dU(c,p,f,_,w){var I=new he(c,f,x_);return I.multi=[],I.index=p,I.componentProviders=0,uU(I,w,_&&!f),I}(w?SR:cU,f.length,w,_,ve);!w&&wn&&(f[Qn].providerFactory=Cr),MR(V,c,p.length,0),p.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),f.push(Cr),ee.push(Cr)}else{MR(V,c,Un>-1?Un:Qn,uU(f[w?Qn:Un],ve,!w&&_))}!w&&_&&wn&&f[Qn].componentProviders++}}}function MR(c,p,f,_){var w=Od(p),I=function FC(c){return!!c.useClass}(p);if(w||I){var oe=(I?ne(p.useClass):p).prototype.ngOnDestroy;if(oe){var ve=c.destroyHooks||(c.destroyHooks=[]);if(!w&&p.multi){var He=ve.indexOf(f);-1===He?ve.push(f,[_,oe]):ve[He+1].push(_,oe)}else ve.push(f,oe)}}}function uU(c,p,f){return f&&c.componentProviders++,c.multi.push(p)-1}function Rh(c,p,f,_){for(var w=f;w<_;w++)if(p[w]===c)return w;return-1}function cU(c,p,f,_){return T1(this.multi,[])}function SR(c,p,f,_){var I,w=this.multi;if(this.providerFactory){var V=this.providerFactory.componentProviders,ee=Dv(f,f[1],this.providerFactory.index,_);T1(w,I=ee.slice(0,V));for(var oe=V;oe<ee.length;oe++)I.push(ee[oe])}else T1(w,I=[]);return I}function T1(c,p){for(var f=0;f<c.length;f++){var _=c[f];p.push(_())}return p}function Cx(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(f){f.providersResolver=function(_,w){return TR(_,w?w(c):c,p)}}}var Lh=(0,L.Z)(function c(){(0,v.Z)(this,c)}),xR=(0,L.Z)(function c(){(0,v.Z)(this,c)});function M1(c,p){return new ER(c,null!=p?p:null)}var ER=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w){var I;(0,v.Z)(this,f),(I=p.call(this))._parent=w,I._bootstrapComponents=[],I.destroyCbs=[],I.componentFactoryResolver=new NS((0,P.Z)(I));var V=Gi(_);return I._bootstrapComponents=Nc(V.bootstrap),I._r3Injector=aS(_,w,[{provide:Lh,useValue:(0,P.Z)(I)},{provide:C_,useValue:I.componentFactoryResolver}],X(_),new Set(["environment"])),I._r3Injector.resolveInjectorInitializers(),I.instance=I._r3Injector.get(_),I}return(0,L.Z)(f,[{key:"injector",get:function(){return this._r3Injector}},{key:"destroy",value:function(){var w=this._r3Injector;!w.destroyed&&w.destroy(),this.destroyCbs.forEach(function(I){return I()}),this.destroyCbs=null}},{key:"onDestroy",value:function(w){this.destroyCbs.push(w)}}]),f}(Lh),Uc=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_){var w;return(0,v.Z)(this,f),(w=p.call(this)).moduleType=_,w}return(0,L.Z)(f,[{key:"create",value:function(w){return new ER(this.moduleType,w)}}]),f}(xR),wx=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w,I){var V;(0,v.Z)(this,f),(V=p.call(this)).componentFactoryResolver=new NS((0,P.Z)(V)),V.instance=null;var ee=new UC([].concat((0,D.Z)(_),[{provide:Lh,useValue:(0,P.Z)(V)},{provide:C_,useValue:V.componentFactoryResolver}]),w||Kl(),I,new Set(["environment"]));return V.injector=ee,ee.resolveInjectorInitializers(),V}return(0,L.Z)(f,[{key:"destroy",value:function(){this.injector.destroy()}},{key:"onDestroy",value:function(w){this.injector.onDestroy(w)}}]),f}(Lh);function Ey(c,p){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=new wx(c,p,f);return _.injector}var qp=function(){function c(p){(0,v.Z)(this,c),this._injector=p,this.cachedInjectors=new Map}return(0,L.Z)(c,[{key:"getOrCreateStandaloneInjector",value:function(f){if(!f.standalone)return null;if(!this.cachedInjectors.has(f.id)){var _=NC(!1,f.type),w=_.length>0?Ey([_],this._injector,"Standalone[".concat(f.type.name,"]")):null;this.cachedInjectors.set(f.id,w)}return this.cachedInjectors.get(f.id)}},{key:"ngOnDestroy",value:function(){try{var _,f=(0,x.Z)(this.cachedInjectors.values());try{for(f.s();!(_=f.n()).done;){var w=_.value;null!==w&&w.destroy()}}catch(I){f.e(I)}finally{f.f()}}finally{this.cachedInjectors.clear()}}}]),c}();function kx(c){c.getStandaloneInjector=function(p){return p.get(qp).getOrCreateStandaloneInjector(c)}}function Ay(c,p,f,_){return jt(function(){var w=c;if(null!==p)if(w.hasOwnProperty("decorators")&&void 0!==w.decorators){var I;(I=w.decorators).push.apply(I,(0,D.Z)(p))}else w.decorators=p;null!==f&&(w.ctorParameters=f),null!==_&&(w.hasOwnProperty("propDecorators")&&void 0!==w.propDecorators?w.propDecorators=Object.assign(Object.assign({},w.propDecorators),_):w.propDecorators=_)})}function qn(c,p,f){var _=Xo()+c,w=An();return w[_]===Wr?Fc(w,_,f?p.call(f):p()):py(w,_)}function OR(c,p,f,_){return PR(An(),Xo(),c,p,f,_)}function IR(c,p,f,_,w){return RR(An(),Xo(),c,p,f,_,w)}function hU(c,p,f,_,w,I){return tl(An(),Xo(),c,p,f,_,w,I)}function mU(c,p,f,_,w,I,V){return x1(An(),Xo(),c,p,f,_,w,I,V)}function Mx(c,p,f,_,w,I,V,ee){var oe=Xo()+c,ve=An(),He=Xl(ve,oe,f,_,w,I);return Xa(ve,oe+4,V)||He?Fc(ve,oe+5,ee?p.call(ee,f,_,w,I,V):p(f,_,w,I,V)):py(ve,oe+5)}function z_(c,p,f,_,w,I,V,ee,oe){var ve=Xo()+c,He=An(),rt=Xl(He,ve,f,_,w,I);return Ah(He,ve+4,V,ee)||rt?Fc(He,ve+6,oe?p.call(oe,f,_,w,I,V,ee):p(f,_,w,I,V,ee)):py(He,ve+6)}function _U(c,p,f,_,w,I,V,ee,oe,ve){var He=Xo()+c,rt=An(),ft=Xl(rt,He,f,_,w,I);return a1(rt,He+4,V,ee,oe)||ft?Fc(rt,He+7,ve?p.call(ve,f,_,w,I,V,ee,oe):p(f,_,w,I,V,ee,oe)):py(rt,He+7)}function Hc(c,p,f,_,w,I,V,ee,oe,ve,He){var rt=Xo()+c,ft=An(),wt=Xl(ft,rt,f,_,w,I);return Xl(ft,rt+4,V,ee,oe,ve)||wt?Fc(ft,rt+8,He?p.call(He,f,_,w,I,V,ee,oe,ve):p(f,_,w,I,V,ee,oe,ve)):py(ft,rt+8)}function jc(c,p,f,_){return Jp(An(),Xo(),c,p,f,_)}function Pu(c,p){var f=c[p];return f===Wr?void 0:f}function PR(c,p,f,_,w,I){var V=p+f;return Xa(c,V,w)?Fc(c,V+1,I?_.call(I,w):_(w)):Pu(c,V+1)}function RR(c,p,f,_,w,I,V){var ee=p+f;return Ah(c,ee,w,I)?Fc(c,ee+2,V?_.call(V,w,I):_(w,I)):Pu(c,ee+2)}function tl(c,p,f,_,w,I,V,ee){var oe=p+f;return a1(c,oe,w,I,V)?Fc(c,oe+3,ee?_.call(ee,w,I,V):_(w,I,V)):Pu(c,oe+3)}function x1(c,p,f,_,w,I,V,ee,oe){var ve=p+f;return Xl(c,ve,w,I,V,ee)?Fc(c,ve+4,oe?_.call(oe,w,I,V,ee):_(w,I,V,ee)):Pu(c,ve+4)}function Jp(c,p,f,_,w,I){for(var V=p+f,ee=!1,oe=0;oe<w.length;oe++)Xa(c,V++,w[oe])&&(ee=!0);return ee?Fc(c,V,_.apply(I,w)):Pu(c,V)}function Nh(c,p){var _,f=we(),w=c+22;f.firstCreatePass?(_=function Bh(c,p){if(p)for(var f=p.length-1;f>=0;f--){var _=p[f];if(c===_.name)return _}}(p,f.pipeRegistry),f.data[w]=_,_.onDestroy&&(f.destroyHooks||(f.destroyHooks=[])).push(w,_.onDestroy)):_=f.data[w];var I=_.factory||(_.factory=oo(_.type)),V=lt(x_);try{var ee=$u(!1),oe=I();return $u(ee),function O6(c,p,f,_){f>=c.data.length&&(c.data[f]=null,c.blueprint[f]=null),p[f]=_}(f,An(),w,oe),oe}finally{lt(V)}}function E1(c,p,f){var _=c+22,w=An(),I=cs(w,_);return Oy(w,_)?PR(w,Xo(),p,I.transform,f,I):I.transform(f)}function Qp(c,p,f,_){var w=c+22,I=An(),V=cs(I,w);return Oy(I,w)?RR(I,Xo(),p,V.transform,f,_,V):V.transform(f,_)}function vU(c,p,f,_,w){var I=c+22,V=An(),ee=cs(V,I);return Oy(V,I)?tl(V,Xo(),p,ee.transform,f,_,w,ee):ee.transform(f,_,w)}function Fh(c,p,f,_,w,I){var V=c+22,ee=An(),oe=cs(ee,V);return Oy(ee,V)?x1(ee,Xo(),p,oe.transform,f,_,w,I,oe):oe.transform(f,_,w,I)}function yU(c,p,f){var _=c+22,w=An(),I=cs(w,_);return Oy(w,_)?Jp(w,Xo(),p,I.transform,f,I):I.transform.apply(I,f)}function Oy(c,p){return c[1].data[p].pure}qp.\u0275prov=ge({token:qp,providedIn:"environment",factory:function(){return new qp(pa(Mu))}});var Nd=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){var _,w=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,v.Z)(this,f),(_=p.call(this)).__isAsync=w,_}return(0,L.Z)(f,[{key:"emit",value:function(w){(0,G.Z)((0,W.Z)(f.prototype),"next",this).call(this,w)}},{key:"subscribe",value:function(w,I,V){var ee,oe,ve,He=w,rt=I||function(){return null},ft=V;if(w&&"object"==typeof w){var wt=w;He=null===(ee=wt.next)||void 0===ee?void 0:ee.bind(wt),rt=null===(oe=wt.error)||void 0===oe?void 0:oe.bind(wt),ft=null===(ve=wt.complete)||void 0===ve?void 0:ve.bind(wt)}this.__isAsync&&(rt=Sx(rt),He&&(He=Sx(He)),ft&&(ft=Sx(ft)));var en=(0,G.Z)((0,W.Z)(f.prototype),"subscribe",this).call(this,{next:He,error:rt,complete:ft});return w instanceof S.w&&w.add(en),en}}]),f}(y.xQ);function Sx(c){return function(p){setTimeout(c,void 0,p)}}var Gc=Nd;function Bd(){return this._results[Dh()]()}var Fd=function(){function c(){var p=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,v.Z)(this,c),this._emitDistinctChangesOnly=p,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var f=Dh(),_=c.prototype;_[f]||(_[f]=Bd)}return(0,L.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new Gc)}},{key:"get",value:function(f){return this._results[f]}},{key:"map",value:function(f){return this._results.map(f)}},{key:"filter",value:function(f){return this._results.filter(f)}},{key:"find",value:function(f){return this._results.find(f)}},{key:"reduce",value:function(f,_){return this._results.reduce(f,_)}},{key:"forEach",value:function(f){this._results.forEach(f)}},{key:"some",value:function(f){return this._results.some(f)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(f,_){var w=this;w.dirty=!1;var I=Wl(f);(this._changesDetected=!function aF(c,p,f){if(c.length!==p.length)return!1;for(var _=0;_<c.length;_++){var w=c[_],I=p[_];if(f&&(w=f(w),I=f(I)),I!==w)return!1}return!0}(w._results,I,_))&&(w._results=I,w.length=I.length,w.last=I[this.length-1],w.first=I[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),c}(),Ga=(0,L.Z)(function c(){(0,v.Z)(this,c)});Ga.__NG_ELEMENT_ID__=function jh(){return ac(Me(),An())};var Hh=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w,I){var V;return(0,v.Z)(this,f),(V=p.call(this))._declarationLView=_,V._declarationTContainer=w,V.elementRef=I,V}return(0,L.Z)(f,[{key:"createEmbeddedView",value:function(w,I){var V=this._declarationTContainer.tViews,ee=SS(this._declarationLView,V,w,16,null,V.declTNode,null,null,null,null,I||null),oe=this._declarationLView[this._declarationTContainer.index];ee[17]=oe;var ve=this._declarationLView[19];return null!==ve&&(ee[19]=ve.createEmbeddedView(V)),ES(V,ee,w),new Eh(ee)}}]),f}(Ga);function ac(c,p){return 4&c.type?new Hh(p,c,w_(c,p)):null}var W_=(0,L.Z)(function c(){(0,v.Z)(this,c)});W_.__NG_ELEMENT_ID__=function bU(){return kU(Me(),An())};var CU=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(_,w,I){var V;return(0,v.Z)(this,f),(V=p.call(this))._lContainer=_,V._hostTNode=w,V._hostLView=I,V}return(0,L.Z)(f,[{key:"element",get:function(){return w_(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Jn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var w=Os(this._hostTNode,this._hostLView);if(Qs(w)){var I=Go(w,this._hostLView),V=Si(w),ee=I[1].data[V+8];return new Jn(ee,I)}return new Jn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(w){var I=wU(this._lContainer);return null!==I&&I[w]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(w,I,V){var ee,oe;"number"==typeof V?ee=V:null!=V&&(ee=V.index,oe=V.injector);var ve=w.createEmbeddedView(I||{},oe);return this.insert(ve,ee),ve}},{key:"createComponent",value:function(w,I,V,ee,oe){var He,ve=w&&!Le(w);if(ve)He=I;else{var rt=I||{};He=rt.index,V=rt.injector,ee=rt.projectableNodes,oe=rt.environmentInjector||rt.ngModuleRef}var ft=ve?w:new A_(Wn(w)),wt=V||this.parentInjector;if(!oe&&null==ft.ngModule){var _n=(ve?wt:this.parentInjector).get(Mu,null);_n&&(oe=_n)}var Un=ft.create(wt,ee,void 0,oe);return this.insert(Un.hostView,He),Un}},{key:"insert",value:function(w,I){var V=w._lView,ee=V[1];if(function Ku(c){return Ui(c[3])}(V)){var oe=this.indexOf(w);if(-1!==oe)this.detach(oe);else{var ve=V[3],He=new CU(ve,ve[6],ve[3]);He.detach(He.indexOf(w))}}var rt=this._adjustIndex(I),ft=this._lContainer;u3(ee,V,ft,rt);var wt=f_(rt,ft),en=V[11],_n=Hv(en,ft[7]);return null!==_n&&function a3(c,p,f,_,w,I){_[0]=w,_[6]=p,ku(c,_,f,1,w,I)}(ee,ft[6],en,V,_n,wt),w.attachToViewContainerRef(),Ov(LR(ft),rt,w),w}},{key:"move",value:function(w,I){return this.insert(w,I)}},{key:"indexOf",value:function(w){var I=wU(this._lContainer);return null!==I?I.indexOf(w):-1}},{key:"remove",value:function(w){var I=this._adjustIndex(w,-1),V=TC(this._lContainer,I);V&&(pC(LR(this._lContainer),I),wu(V[1],V))}},{key:"detach",value:function(w){var I=this._adjustIndex(w,-1),V=TC(this._lContainer,I);return V&&null!=pC(LR(this._lContainer),I)?new Eh(V):null}},{key:"_adjustIndex",value:function(w){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==w?this.length+I:w}}]),f}(W_);function wU(c){return c[8]}function LR(c){return c[8]||(c[8]=[])}function kU(c,p){var f,_=p[c.index];if(Ui(_))f=_;else{var w;if(8&c.type)w=so(_);else{var I=p[11];w=I.createComment("");var V=yo(c,p);Zp(I,Hv(I,V),w,function d3(c,p){return c.nextSibling(p)}(I,V),!1)}p[c.index]=f=PS(_,p,w,c),cy(p,f)}return new CU(f,c,p)}var xx=function(){function c(p){(0,v.Z)(this,c),this.queryList=p,this.matches=null}return(0,L.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),Iy=function(){function c(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=p}return(0,L.Z)(c,[{key:"createEmbeddedView",value:function(f){var _=f.queries;if(null!==_){for(var w=null!==f.contentQueries?f.contentQueries[0]:_.length,I=[],V=0;V<w;V++){var ee=_.getByIndex(V),oe=this.queries[ee.indexInDeclarationView];I.push(oe.clone())}return new c(I)}return null}},{key:"insertView",value:function(f){this.dirtyQueriesWithMatches(f)}},{key:"detachView",value:function(f){this.dirtyQueriesWithMatches(f)}},{key:"dirtyQueriesWithMatches",value:function(f){for(var _=0;_<this.queries.length;_++)null!==D1(f,_).matches&&this.queries[_].setDirty()}}]),c}(),Ud=(0,L.Z)(function c(p,f){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,v.Z)(this,c),this.predicate=p,this.flags=f,this.read=_}),Xp=function(){function c(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=p}return(0,L.Z)(c,[{key:"elementStart",value:function(f,_){for(var w=0;w<this.queries.length;w++)this.queries[w].elementStart(f,_)}},{key:"elementEnd",value:function(f){for(var _=0;_<this.queries.length;_++)this.queries[_].elementEnd(f)}},{key:"embeddedTView",value:function(f){for(var _=null,w=0;w<this.length;w++){var I=null!==_?_.length:0,V=this.getByIndex(w).embeddedTView(f,I);V&&(V.indexInDeclarationView=w,null!==_?_.push(V):_=[V])}return null!==_?new c(_):null}},{key:"template",value:function(f,_){for(var w=0;w<this.queries.length;w++)this.queries[w].template(f,_)}},{key:"getByIndex",value:function(f){return this.queries[f]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(f){this.queries.push(f)}}]),c}(),$p=function(){function c(p){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,v.Z)(this,c),this.metadata=p,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=f}return(0,L.Z)(c,[{key:"elementStart",value:function(f,_){this.isApplyingToNode(_)&&this.matchTNode(f,_)}},{key:"elementEnd",value:function(f){this._declarationNodeIndex===f.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(f,_){this.elementStart(f,_)}},{key:"embeddedTView",value:function(f,_){return this.isApplyingToNode(f)?(this.crossesNgTemplate=!0,this.addMatch(-f.index,_),new c(this.metadata)):null}},{key:"isApplyingToNode",value:function(f){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var _=this._declarationNodeIndex,w=f.parent;null!==w&&8&w.type&&w.index!==_;)w=w.parent;return _===(null!==w?w.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(f,_){var w=this.metadata.predicate;if(Array.isArray(w))for(var I=0;I<w.length;I++){var V=w[I];this.matchTNodeWithReadOption(f,_,ef(_,V)),this.matchTNodeWithReadOption(f,_,Ev(_,f,V,!1,!1))}else w===Ga?4&_.type&&this.matchTNodeWithReadOption(f,_,-1):this.matchTNodeWithReadOption(f,_,Ev(_,f,w,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(f,_,w){if(null!==w){var I=this.metadata.read;if(null!==I)if(I===Th||I===W_||I===Ga&&4&_.type)this.addMatch(_.index,-2);else{var V=Ev(_,f,I,!1,!1);null!==V&&this.addMatch(_.index,V)}else this.addMatch(_.index,w)}}},{key:"addMatch",value:function(f,_){null===this.matches?this.matches=[f,_]:this.matches.push(f,_)}}]),c}();function ef(c,p){var f=c.localNames;if(null!==f)for(var _=0;_<f.length;_+=2)if(f[_]===p)return f[_+1];return null}function mY(c,p,f,_){return-1===f?function hY(c,p){return 11&c.type?w_(c,p):4&c.type?ac(c,p):null}(p,c):-2===f?function Hd(c,p,f){if(f===Th)return w_(p,c);if(f===Ga)return ac(p,c);if(f===W_)return kU(p,c)}(c,p,_):Dv(c,c[1],f,p)}function Py(c,p,f,_){var w=p[19].queries[_];if(null===w.matches){for(var I=c.data,V=f.matches,ee=[],oe=0;oe<V.length;oe+=2){var ve=V[oe];if(ve<0)ee.push(null);else{var He=I[ve];ee.push(mY(p,He,V[oe+1],f.metadata.read))}}w.matches=ee}return w.matches}function tf(c,p,f,_){var w=c.queries.getByIndex(f),I=w.matches;if(null!==I)for(var V=Py(c,p,w,f),ee=0;ee<I.length;ee+=2){var oe=I[ee];if(oe>0)_.push(V[ee/2]);else{for(var ve=I[ee+1],He=p[-oe],rt=10;rt<He.length;rt++){var ft=He[rt];ft[17]===ft[3]&&tf(ft[1],ft,ve,_)}if(null!==He[9])for(var wt=He[9],en=0;en<wt.length;en++){var _n=wt[en];tf(_n[1],_n,ve,_)}}}return _}function TU(c){var p=An(),f=we(),_=gl();hs(_+1);var w=D1(f,_);if(c.dirty&&function Mp(c){return 4==(4&c[2])}(p)===(2==(2&w.metadata.flags))){if(null===w.matches)c.reset([]);else{var I=w.crossesNgTemplate?tf(f,p,_,[]):Py(f,p,w,_);c.reset(I,KF),c.notifyOnChanges()}return!0}return!1}function nf(c,p,f){var _=we();_.firstCreatePass&&(jd(_,new Ud(c,p,f),-1),2==(2&p)&&(_.staticViewQueries=!0)),xr(_,An(),p)}function sc(c,p,f,_){var w=we();if(w.firstCreatePass){var I=Me();jd(w,new Ud(p,f,_),I.index),function ni(c,p){var f=c.contentQueries||(c.contentQueries=[]),_=f.length?f[f.length-1]:-1;p!==_&&f.push(c.queries.length-1,p)}(w,c),2==(2&f)&&(w.staticContentQueries=!0)}xr(w,An(),f)}function J(){return function Wt(c,p){return c[19].queries[p].queryList}(An(),gl())}function xr(c,p,f){var _=new Fd(4==(4&f));AS(c,p,_,_.destroy),null===p[19]&&(p[19]=new Iy),p[19].queries.push(new xx(_))}function jd(c,p,f){null===c.queries&&(c.queries=new Xp),c.queries.track(new $p(p,f))}function D1(c,p){return c.queries.getByIndex(p)}function Ry(c,p){return ac(c,p)}var nl={"\u0275\u0275attribute":fy,"\u0275\u0275attributeInterpolate1":x6,"\u0275\u0275attributeInterpolate2":hy,"\u0275\u0275attributeInterpolate3":HS,"\u0275\u0275attributeInterpolate4":jS,"\u0275\u0275attributeInterpolate5":Ph,"\u0275\u0275attributeInterpolate6":E6,"\u0275\u0275attributeInterpolate7":s8,"\u0275\u0275attributeInterpolate8":D6,"\u0275\u0275attributeInterpolateV":GS,"\u0275\u0275defineComponent":Hn,"\u0275\u0275defineDirective":Gn,"\u0275\u0275defineInjectable":ge,"\u0275\u0275defineInjector":Dt,"\u0275\u0275defineNgModule":gt,"\u0275\u0275definePipe":Vn,"\u0275\u0275directiveInject":x_,"\u0275\u0275getInheritedFactory":Is,"\u0275\u0275inject":pa,"\u0275\u0275injectAttribute":lM,"\u0275\u0275invalidFactory":hS,"\u0275\u0275invalidFactoryDep":WP,"\u0275\u0275templateRefExtractor":Ry,"\u0275\u0275resetView":se,"\u0275\u0275NgOnChangesFeature":ra,"\u0275\u0275ProvidersFeature":Cx,"\u0275\u0275CopyDefinitionFeature":r8,"\u0275\u0275InheritDefinitionFeature":BS,"\u0275\u0275StandaloneFeature":kx,"\u0275\u0275nextContext":Z6,"\u0275\u0275namespaceHTML":Rr,"\u0275\u0275namespaceMathML":gr,"\u0275\u0275namespaceSVG":Cn,"\u0275\u0275enableBindings":qu,"\u0275\u0275disableBindings":Gl,"\u0275\u0275elementStart":l1,"\u0275\u0275elementEnd":u1,"\u0275\u0275element":_y,"\u0275\u0275elementContainerStart":gy,"\u0275\u0275elementContainerEnd":d1,"\u0275\u0275elementContainer":WS,"\u0275\u0275pureFunction0":qn,"\u0275\u0275pureFunction1":OR,"\u0275\u0275pureFunction2":IR,"\u0275\u0275pureFunction3":hU,"\u0275\u0275pureFunction4":mU,"\u0275\u0275pureFunction5":Mx,"\u0275\u0275pureFunction6":z_,"\u0275\u0275pureFunction7":_U,"\u0275\u0275pureFunction8":Hc,"\u0275\u0275pureFunctionV":jc,"\u0275\u0275getCurrentView":VS,"\u0275\u0275restoreView":Te,"\u0275\u0275listener":qS,"\u0275\u0275projection":F6,"\u0275\u0275syntheticHostProperty":lR,"\u0275\u0275syntheticHostListener":p1,"\u0275\u0275pipeBind1":E1,"\u0275\u0275pipeBind2":Qp,"\u0275\u0275pipeBind3":vU,"\u0275\u0275pipeBind4":Fh,"\u0275\u0275pipeBindV":yU,"\u0275\u0275projectionDef":B6,"\u0275\u0275hostProperty":sR,"\u0275\u0275property":s1,"\u0275\u0275propertyInterpolate":QS,"\u0275\u0275propertyInterpolate1":f1,"\u0275\u0275propertyInterpolate2":h1,"\u0275\u0275propertyInterpolate3":m1,"\u0275\u0275propertyInterpolate4":XS,"\u0275\u0275propertyInterpolate5":$S,"\u0275\u0275propertyInterpolate6":U6,"\u0275\u0275propertyInterpolate7":H6,"\u0275\u0275propertyInterpolate8":ex,"\u0275\u0275propertyInterpolateV":j6,"\u0275\u0275pipe":Nh,"\u0275\u0275queryRefresh":TU,"\u0275\u0275viewQuery":nf,"\u0275\u0275loadQuery":J,"\u0275\u0275contentQuery":sc,"\u0275\u0275reference":my,"\u0275\u0275classMap":J6,"\u0275\u0275classMapInterpolate1":aR,"\u0275\u0275classMapInterpolate2":x8,"\u0275\u0275classMapInterpolate3":NV,"\u0275\u0275classMapInterpolate4":BV,"\u0275\u0275classMapInterpolate5":FV,"\u0275\u0275classMapInterpolate6":UV,"\u0275\u0275classMapInterpolate7":HV,"\u0275\u0275classMapInterpolate8":jV,"\u0275\u0275classMapInterpolateV":GV,"\u0275\u0275styleMap":Au,"\u0275\u0275styleMapInterpolate1":zV,"\u0275\u0275styleMapInterpolate2":WV,"\u0275\u0275styleMapInterpolate3":VV,"\u0275\u0275styleMapInterpolate4":YV,"\u0275\u0275styleMapInterpolate5":KV,"\u0275\u0275styleMapInterpolate6":qV,"\u0275\u0275styleMapInterpolate7":JV,"\u0275\u0275styleMapInterpolate8":QV,"\u0275\u0275styleMapInterpolateV":E8,"\u0275\u0275styleProp":_1,"\u0275\u0275stylePropInterpolate1":D8,"\u0275\u0275stylePropInterpolate2":A8,"\u0275\u0275stylePropInterpolate3":O8,"\u0275\u0275stylePropInterpolate4":I8,"\u0275\u0275stylePropInterpolate5":P8,"\u0275\u0275stylePropInterpolate6":R8,"\u0275\u0275stylePropInterpolate7":L8,"\u0275\u0275stylePropInterpolate8":Z8,"\u0275\u0275stylePropInterpolateV":N8,"\u0275\u0275classProp":Yp,"\u0275\u0275advance":U3,"\u0275\u0275template":A6,"\u0275\u0275text":nR,"\u0275\u0275textInterpolate":rR,"\u0275\u0275textInterpolate1":sx,"\u0275\u0275textInterpolate2":iR,"\u0275\u0275textInterpolate3":oR,"\u0275\u0275textInterpolate4":g1,"\u0275\u0275textInterpolate5":lx,"\u0275\u0275textInterpolate6":k8,"\u0275\u0275textInterpolate7":T8,"\u0275\u0275textInterpolate8":M8,"\u0275\u0275textInterpolateV":S8,"\u0275\u0275i18n":lU,"\u0275\u0275i18nAttributes":k1,"\u0275\u0275i18nExp":yx,"\u0275\u0275i18nStart":wR,"\u0275\u0275i18nEnd":w1,"\u0275\u0275i18nApply":Sy,"\u0275\u0275i18nPostprocess":kR,"\u0275\u0275resolveWindow":ty,"\u0275\u0275resolveDocument":XM,"\u0275\u0275resolveBody":zC,"\u0275\u0275setComponentScope":Yt,"\u0275\u0275setNgModuleScope":yt,"\u0275\u0275registerNgModuleType":vF,"\u0275\u0275sanitizeHtml":T3,"\u0275\u0275sanitizeStyle":y_,"\u0275\u0275sanitizeResourceUrl":M3,"\u0275\u0275sanitizeScript":S3,"\u0275\u0275sanitizeUrl":jM,"\u0275\u0275sanitizeUrlOrResourceUrl":x3,"\u0275\u0275trustConstantHtml":UF,"\u0275\u0275trustConstantResourceUrl":GM,"\u0275\u0275validateIframeAttribute":AC,forwardRef:Q,resolveForwardRef:ne},Rt=null;function ZR(c){return void 0!==c.ngModule}function NR(c){return!!Gi(c)}var Ly=[];function SU(c,p){Ly.push({moduleType:c,ngModule:p})}var Ex=!1;function BR(c){return Array.isArray(c)?c.every(BR):!!ne(c)}function vY(c,p){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=Wl(p.declarations||et),w=null;Object.defineProperty(c,Re,{configurable:!0,get:function(){if(null===w){var oe=Ma();(w=oe.compileNgModule(nl,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:Wl(p.bootstrap||et).map(ne),declarations:_.map(ne),imports:Wl(p.imports||et).map(ne).map(jR),exports:Wl(p.exports||et).map(ne).map(jR),schemas:p.schemas?Wl(p.schemas):null,id:p.id||null})).schemas||(w.schemas=[])}return w}});var I=null;Object.defineProperty(c,qe,{get:function(){if(null===I){var oe=Ma();I=oe.compileFactory(nl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:vM(c),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return I},configurable:!1});var V=null;Object.defineProperty(c,Je,{get:function(){if(null===V){var oe={name:c.name,type:c,providers:p.providers||et,imports:[(p.imports||et).map(ne),(p.exports||et).map(ne)]},ve=Ma();V=ve.compileInjector(nl,"ng:///".concat(c.name,"/\u0275inj.js"),oe)}return V},configurable:!1})}function zh(c,p){var f=Wl(p.declarations||et),_=Ny(c);f.forEach(function(w){(w=ne(w)).hasOwnProperty(St)?Wh(Wn(w),_):!w.hasOwnProperty(ze)&&!w.hasOwnProperty(Ke)&&(w.ngSelectorScope=c)})}function Wh(c,p){c.directiveDefs=function(){return Array.from(p.compilation.directives).map(function(f){return f.hasOwnProperty(St)?Wn(f):ar(f)}).filter(function(f){return!!f})},c.pipeDefs=function(){return Array.from(p.compilation.pipes).map(function(f){return Or(f)})},c.schemas=p.schemas,c.tView=null}function Ny(c){if(NR(c))return function HR(c){var p=Gi(c,!0);if(null!==p.transitiveCompileScopes)return p.transitiveCompileScopes;var f={schemas:p.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Nc(p.imports).forEach(function(_){var w=Ny(_);w.exported.directives.forEach(function(I){return f.compilation.directives.add(I)}),w.exported.pipes.forEach(function(I){return f.compilation.pipes.add(I)})}),Nc(p.declarations).forEach(function(_){Or(_)?f.compilation.pipes.add(_):f.compilation.directives.add(_)}),Nc(p.exports).forEach(function(_){var w=_;if(NR(w)){var I=Ny(w);I.exported.directives.forEach(function(V){f.compilation.directives.add(V),f.exported.directives.add(V)}),I.exported.pipes.forEach(function(V){f.compilation.pipes.add(V),f.exported.pipes.add(V)})}else Or(w)?f.exported.pipes.add(w):f.exported.directives.add(w)}),p.transitiveCompileScopes=f,f}(c);if(hi(c)){if(null!==(Wn(c)||ar(c)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([c]),pipes:new Set}};if(null!==Or(c))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([c])}}}throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"))}function jR(c){return ZR(c)?c.ngModule:c}var Dx=0;function DU(c,p){var f=null;(function mC(c,p){yM(p)&&(Rv.set(c,p),bu.add(c))})(c,p),WR(c,p),Object.defineProperty(c,St,{get:function(){if(null===f){var w=Ma();if(yM(p)){var I=["Component '".concat(c.name,"' is not resolved:")];throw p.templateUrl&&I.push(" - templateUrl: ".concat(p.templateUrl)),p.styleUrls&&p.styleUrls.length&&I.push(" - styleUrls: ".concat(JSON.stringify(p.styleUrls))),I.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(I.join("\n"))}var V=function MU(){return Rt}(),ee=p.preserveWhitespaces;void 0===ee&&(ee=null!==V&&void 0!==V.preserveWhitespaces&&V.preserveWhitespaces);var oe=p.encapsulation;void 0===oe&&(oe=null!==V&&void 0!==V.defaultEncapsulation?V.defaultEncapsulation:En.Emulated);var ve=p.templateUrl||"ng:///".concat(c.name,"/template.html"),He=Object.assign(Object.assign({},VR(c,p)),{typeSourceSpan:w.createParseSourceSpan("Component",c.name,ve),template:p.template||"",preserveWhitespaces:ee,styles:p.styles||et,animations:p.animations,declarations:[],changeDetection:p.changeDetection,encapsulation:oe,interpolation:p.interpolation,viewProviders:p.viewProviders||null,isStandalone:!!p.standalone});Dx++;try{if(He.usesInheritance&&YR(c),f=w.compileComponent(nl,ve,He),p.standalone){var rt=Wl(p.imports||et),ft=function OU(c,p){var f=null,_=null,w=function(){if(null===f){f=[Wn(c)];var ve,ee=new Set,oe=(0,x.Z)(p);try{for(oe.s();!(ve=oe.n()).done;){var rt=ne(ve.value);if(!ee.has(rt))if(ee.add(rt),Gi(rt)){var en,ft=Ny(rt),wt=(0,x.Z)(ft.exported.directives);try{for(wt.s();!(en=wt.n()).done;){var _n=en.value,Un=Wn(_n)||ar(_n);Un&&!ee.has(_n)&&(ee.add(_n),f.push(Un))}}catch(Xn){wt.e(Xn)}finally{wt.f()}}else{var Qn=Wn(rt)||ar(rt);Qn&&f.push(Qn)}}}catch(Xn){oe.e(Xn)}finally{oe.f()}}return f},I=function(){if(null===_){_=[];var ve,ee=new Set,oe=(0,x.Z)(p);try{for(oe.s();!(ve=oe.n()).done;){var rt=ne(ve.value);if(!ee.has(rt))if(ee.add(rt),Gi(rt)){var en,ft=Ny(rt),wt=(0,x.Z)(ft.exported.pipes);try{for(wt.s();!(en=wt.n()).done;){var _n=en.value,Un=Or(_n);Un&&!ee.has(_n)&&(ee.add(_n),_.push(Un))}}catch(Xn){wt.e(Xn)}finally{wt.f()}}else{var Qn=Or(rt);Qn&&_.push(Qn)}}}catch(Xn){oe.e(Xn)}finally{oe.f()}}return _};return{directiveDefs:w,pipeDefs:I}}(c,rt),wt=ft.directiveDefs,en=ft.pipeDefs;f.directiveDefs=wt,f.pipeDefs=en,f.dependencies=function(){return rt.map(ne)}}}finally{Dx--}if(0===Dx&&function xU(){if(!Ex){Ex=!0;try{for(var c=Ly.length-1;c>=0;c--){var p=Ly[c],f=p.moduleType,_=p.ngModule;_.declarations&&_.declarations.every(BR)&&(Ly.splice(c,1),zh(f,_))}}finally{Ex=!1}}}(),function IU(c){return void 0!==c.ngSelectorScope}(c)){var _n=Ny(c.ngSelectorScope);Wh(f,_n)}if(p.schemas){if(!p.standalone)throw new Error("The 'schemas' was specified for the ".concat(me(c)," but is only valid on a component that is standalone."));f.schemas=p.schemas}else p.standalone&&(f.schemas=[])}return f},configurable:!1})}function GR(c,p){var f=null;WR(c,p||{}),Object.defineProperty(c,ze,{get:function(){if(null===f){var w=zR(c,p||{}),I=Ma();f=I.compileDirective(nl,w.sourceMapUrl,w.metadata)}return f},configurable:!1})}function zR(c,p){var f=c&&c.name,_="ng:///".concat(f,"/\u0275dir.js"),w=Ma(),I=VR(c,p);return I.typeSourceSpan=w.createParseSourceSpan("Directive",f,_),I.usesInheritance&&YR(c),{metadata:I,sourceMapUrl:_}}function WR(c,p){var f=null;Object.defineProperty(c,qe,{get:function(){if(null===f){var w=zR(c,p),I=Ma();f=I.compileFactory(nl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:w.metadata.name,type:w.metadata.type,typeArgumentCount:0,deps:vM(c),target:I.FactoryTarget.Directive})}return f},configurable:!1})}function bY(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function VR(c,p){var f=a_(),_=f.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==p.selector?p.selector:null,host:p.host||xt,propMetadata:_,inputs:p.inputs||et,outputs:p.outputs||et,queries:KR(c,_,qR),lifecycle:{usesOnChanges:f.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!bY(c),exportAs:LU(p.exportAs),providers:p.providers||null,viewQueries:KR(c,_,JR),isStandalone:!!p.standalone}}function YR(c){for(var p=Object.prototype,f=Object.getPrototypeOf(c.prototype).constructor;f&&f!==p;)!ar(f)&&!Wn(f)&&NU(f)&&GR(f,null),f=Object.getPrototypeOf(f)}function PU(c){return"string"==typeof c?ZU(c):ne(c)}function KR(c,p,f){var _=[],w=function(ee){if(p.hasOwnProperty(ee)){var oe=p[ee];oe.forEach(function(ve){if(f(ve)){if(!ve.selector)throw new Error("Can't construct a query for the property \"".concat(ee,'" of ')+'"'.concat(me(c),"\" since the query selector wasn't defined."));if(oe.some(QR))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function RU(c,p){return{propertyName:c,predicate:PU(p.selector),descendants:p.descendants,first:p.first,read:p.read?p.read:null,static:!!p.static,emitDistinctChangesOnly:!!p.emitDistinctChangesOnly}}(ee,ve))}})}};for(var I in p)w(I);return _}function LU(c){return void 0===c?null:ZU(c)}function qR(c){var p=c.ngMetadataName;return"ContentChild"===p||"ContentChildren"===p}function JR(c){var p=c.ngMetadataName;return"ViewChild"===p||"ViewChildren"===p}function QR(c){return"Input"===c.ngMetadataName}function ZU(c){return c.split(",").map(function(p){return p.trim()})}var CY=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function NU(c){var p=a_();if(CY.some(function(oe){return p.hasLifecycleHook(c,oe)}))return!0;var f=p.propMetadata(c);for(var _ in f)for(var w=f[_],I=0;I<w.length;I++){var V=w[I],ee=V.ngMetadataName;if(QR(V)||qR(V)||JR(V)||"Output"===ee||"HostBinding"===ee||"HostListener"===ee)return!0}return!1}function XR(c,p){return{type:c,name:c.name,pipeName:p.name,pure:void 0===p.pure||p.pure,isStandalone:!!p.standalone}}var $R=ch("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,p){return GR(c,p)}),FU=ch("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:on.Default},c)},$R,void 0,function(c,p){return DU(c,p)}),UU=ch("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,p){return function BU(c,p){var f=null,_=null;Object.defineProperty(c,qe,{get:function(){if(null===_){var I=XR(c,p),V=Ma(I.type);_=V.compileFactory(nl,"ng:///".concat(I.name,"/\u0275fac.js"),{name:I.name,type:I.type,typeArgumentCount:0,deps:vM(c),target:V.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Ke,{get:function(){if(null===f){var I=XR(c,p),V=Ma(I.type);f=V.compilePipe(nl,"ng:///".concat(I.name,"/\u0275pipe.js"),I)}return f},configurable:!1})}(c,p)}),HU=Oc("Input",function(c){return{bindingPropertyName:c}}),jU=Oc("Output",function(c){return{bindingPropertyName:c}}),GU=Oc("HostBinding",function(c){return{hostPropertyName:c}}),zU=Oc("HostListener",function(c,p){return{eventName:c,args:p}}),WU=ch("NgModule",function(c){return c},void 0,void 0,function(c,p){return function FR(c){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};vY(c,p),void 0!==p.id&&vF(c,p.id),SU(c,p)}(c,p)});function Ax(){}var eL=new ho("Application Initializer"),Wd=function(){function c(p){var f=this;(0,v.Z)(this,c),this.appInits=p,this.resolve=Ax,this.reject=Ax,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,w){f.resolve=_,f.reject=w})}return(0,L.Z)(c,[{key:"runInitializers",value:function(){var f=this;if(!this.initialized){var _=[],w=function(){f.done=!0,f.resolve()};if(this.appInits)for(var I=function(){var oe=f.appInits[V]();if(YS(oe))_.push(oe);else if(I6(oe)){var ve=new Promise(function(He,rt){oe.subscribe({complete:He,error:rt})});_.push(ve)}},V=0;V<this.appInits.length;V++)I();Promise.all(_).then(function(){w()}).catch(function(ee){f.reject(ee)}),0===_.length&&w(),this.initialized=!0}}}]),c}();Wd.\u0275fac=function(p){return new(p||Wd)(pa(eL,8))},Wd.\u0275prov=ge({token:Wd,factory:Wd.\u0275fac,providedIn:"root"});var O1=new ho("AppId",{providedIn:"root",factory:Vd});function Vd(){return"".concat(By()).concat(By()).concat(By())}function By(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var I1=new ho("Platform Initializer"),Ox=new ho("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),wl=new ho("appBootstrapListener"),Ix=(new ho("Application Packages Root URL"),new ho("AnimationModuleType")),Vh=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"log",value:function(f){console.log(f)}},{key:"warn",value:function(f){console.warn(f)}}]),c}();Vh.\u0275fac=function(p){return new(p||Vh)},Vh.\u0275prov=ge({token:Vh,factory:Vh.\u0275fac,providedIn:"platform"});var Px,Y_=new ho("LocaleId",{providedIn:"root",factory:function(){return VP(Y_,ye.Optional|ye.SkipSelf)||function tL(){return"undefined"!=typeof $localize&&$localize.locale||yy}()}}),KU=new ho("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new ho("Translations"),new ho("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(Px||(Px={}));var qU=(0,L.Z)(function c(p,f){(0,v.Z)(this,c),this.ngModuleFactory=p,this.componentFactories=f}),Fy=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"compileModuleSync",value:function(f){return new Uc(f)}},{key:"compileModuleAsync",value:function(f){return Promise.resolve(this.compileModuleSync(f))}},{key:"compileModuleAndAllComponentsSync",value:function(f){var _=this.compileModuleSync(f),I=Nc(Gi(f).declarations).reduce(function(V,ee){var oe=Wn(ee);return oe&&V.push(new A_(oe)),V},[]);return new qU(_,I)}},{key:"compileModuleAndAllComponentsAsync",value:function(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(f){}},{key:"getModuleId",value:function(f){}}]),c}();Fy.\u0275fac=function(p){return new(p||Fy)},Fy.\u0275prov=ge({token:Fy,factory:Fy.\u0275fac,providedIn:"root"});new ho("compilerOptions");var rL=Promise.resolve(0);function Lx(c){"undefined"==typeof Zone?rL.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var uc=function(){function c(p){var f=p.enableLongStackTrace,_=void 0!==f&&f,w=p.shouldCoalesceEventChangeDetection,I=void 0!==w&&w,V=p.shouldCoalesceRunChangeDetection,ee=void 0!==V&&V;if((0,v.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Gc(!1),this.onMicrotaskEmpty=new Gc(!1),this.onStable=new Gc(!1),this.onError=new Gc(!1),"undefined"==typeof Zone)throw new de(908,!1);Zone.assertZonePatched();var oe=this;if(oe._nesting=0,oe._outer=oe._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){var ve=Zone.AsyncStackTaggingZoneSpec;oe._inner=oe._inner.fork(new ve("Angular"))}Zone.TaskTrackingZoneSpec&&(oe._inner=oe._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(oe._inner=oe._inner.fork(Zone.longStackTraceZoneSpec)),oe.shouldCoalesceEventChangeDetection=!ee&&I,oe.shouldCoalesceRunChangeDetection=ee,oe.lastRequestAnimationFrameId=-1,oe.nativeRequestAnimationFrame=function iL(){var c=hn.requestAnimationFrame,p=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&p){var f=c[Zone.__symbol__("OriginalDelegate")];f&&(c=f);var _=p[Zone.__symbol__("OriginalDelegate")];_&&(p=_)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:p}}().nativeRequestAnimationFrame,function Zx(c){var p=function(){!function oL(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,cc(c),c.isCheckStableRunning=!0,q_(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),cc(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(_,w,I,V,ee,oe){try{return R1(c),_.invokeTask(I,V,ee,oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||c.shouldCoalesceRunChangeDetection)&&p(),Uy(c)}},onInvoke:function(_,w,I,V,ee,oe,ve){try{return R1(c),_.invoke(I,V,ee,oe,ve)}finally{c.shouldCoalesceRunChangeDetection&&p(),Uy(c)}},onHasTask:function(_,w,I,V){_.hasTask(I,V),w===I&&("microTask"==V.change?(c._hasPendingMicrotasks=V.microTask,cc(c),q_(c)):"macroTask"==V.change&&(c.hasPendingMacrotasks=V.macroTask))},onHandleError:function(_,w,I,V){return _.handleError(I,V),c.runOutsideAngular(function(){return c.onError.emit(V)}),!1}})}(oe)}return(0,L.Z)(c,[{key:"run",value:function(f,_,w){return this._inner.run(f,_,w)}},{key:"runTask",value:function(f,_,w,I){var V=this._inner,ee=V.scheduleEventTask("NgZoneEvent: "+I,f,P1,Ax,Ax);try{return V.runTask(ee,_,w)}finally{V.cancelTask(ee)}}},{key:"runGuarded",value:function(f,_,w){return this._inner.runGuarded(f,_,w)}},{key:"runOutsideAngular",value:function(f){return this._outer.run(f)}}],[{key:"isInAngularZone",value:function(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!c.isInAngularZone())throw new de(909,!1)}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new de(909,!1)}}]),c}(),P1={};function q_(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(function(){return c.onStable.emit(null)})}finally{c.isStable=!0}}}function cc(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function R1(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function Uy(c){c._nesting--,q_(c)}var $U=function(){function c(){(0,v.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Gc,this.onMicrotaskEmpty=new Gc,this.onStable=new Gc,this.onError=new Gc}return(0,L.Z)(c,[{key:"run",value:function(f,_,w){return f.apply(_,w)}},{key:"runGuarded",value:function(f,_,w){return f.apply(_,w)}},{key:"runOutsideAngular",value:function(f){return f()}},{key:"runTask",value:function(f,_,w,I){return f.apply(_,w)}}]),c}(),J_=new ho(""),Nx=new ho(""),Q_=function(){function c(p,f,_){var w=this;(0,v.Z)(this,c),this._ngZone=p,this.registry=f,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$_||(function of(c){$_=c}(_),_.addToWindow(f)),this._watchAngularEvents(),p.run(function(){w.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,L.Z)(c,[{key:"_watchAngularEvents",value:function(){var f=this;this._ngZone.onUnstable.subscribe({next:function(){f._didWork=!0,f._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){f._ngZone.onStable.subscribe({next:function(){uc.assertNotInAngularZone(),Lx(function(){f._isZoneStable=!0,f._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var f=this;if(this.isStable())Lx(function(){for(;0!==f._callbacks.length;){var w=f._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(f._didWork)}f._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(w){return!w.updateCb||!w.updateCb(_)||(clearTimeout(w.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(f){return{source:f.source,creationLocation:f.creationLocation,data:f.data}}):[]}},{key:"addCallback",value:function(f,_,w){var I=this,V=-1;_&&_>0&&(V=setTimeout(function(){I._callbacks=I._callbacks.filter(function(ee){return ee.timeoutId!==V}),f(I._didWork,I.getPendingTasks())},_)),this._callbacks.push({doneCb:f,timeoutId:V,updateCb:w})}},{key:"whenStable",value:function(f,_,w){if(w&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(f,_,w),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"registerApplication",value:function(f){this.registry.registerApplication(f,this)}},{key:"unregisterApplication",value:function(f){this.registry.unregisterApplication(f)}},{key:"findProviders",value:function(f,_,w){return[]}}]),c}();Q_.\u0275fac=function(p){return new(p||Q_)(pa(uc),pa(X_),pa(Nx))},Q_.\u0275prov=ge({token:Q_,factory:Q_.\u0275fac});var $_,X_=function(){function c(){(0,v.Z)(this,c),this._applications=new Map}return(0,L.Z)(c,[{key:"registerApplication",value:function(f,_){this._applications.set(f,_)}},{key:"unregisterApplication",value:function(f){this._applications.delete(f)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(f){return this._applications.get(f)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(f){var w,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!==(w=null==$_?void 0:$_.findTestabilityInTree(this,f,_))&&void 0!==w?w:null}}]),c}();X_.\u0275fac=function(p){return new(p||X_)},X_.\u0275prov=ge({token:X_,factory:X_.\u0275fac,providedIn:"platform"});var dc=null,pc=new ho("AllowMultipleToken"),Yd=new ho("PlatformDestroyListeners"),eu=!1;function e7(c,p,f){var _=new Uc(f);return Promise.resolve(_)}var Hy=(0,L.Z)(function c(p,f){(0,v.Z)(this,c),this.name=p,this.token=f});function L1(c){if(dc&&!dc.get(pc,!1))throw new de(400,!1);dc=c;var p=c.get(Wc);return Z1(c),p}function Z1(c){var p=c.get(I1,null);p&&p.forEach(function(f){return f()})}function lL(c,p){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(p),w=new ho(_);return function(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],V=eg();if(!V||V.injector.get(pc,!1)){var ee=[].concat((0,D.Z)(f),(0,D.Z)(I),[{provide:w,useValue:!0}]);c?c(ee):L1(kl(ee,_))}return n7(w)}}function n7(c){var p=eg();if(!p)throw new de(401,!1);return p}function kl(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],p=arguments.length>1?arguments[1]:void 0;return Jl.create({name:p,providers:[{provide:$s,useValue:"platform"},{provide:Yd,useValue:new Set([function(){return dc=null}])}].concat((0,D.Z)(c))})}function eg(){var c;return null!==(c=null==dc?void 0:dc.get(Wc))&&void 0!==c?c:null}var Wc=function(){function c(p){(0,v.Z)(this,c),this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,L.Z)(c,[{key:"bootstrapModuleFactory",value:function(f,_){var w=this,I=uL(null==_?void 0:_.ngZone,i7(_)),V=[{provide:uc,useValue:I}];return I.run(function(){var ee=Jl.create({providers:V,parent:w.injector,name:f.moduleType.name}),oe=f.create(ee),ve=oe.injector.get(k_,null);if(!ve)throw new de(402,!1);return I.runOutsideAngular(function(){var He=I.onError.subscribe({next:function(ft){ve.handleError(ft)}});oe.onDestroy(function(){Yh(w._modules,oe),He.unsubscribe()})}),cL(ve,I,function(){var He=oe.injector.get(Wd);return He.runInitializers(),He.donePromise.then(function(){return dx(oe.injector.get(Y_,yy)||yy),w._moduleDoBootstrap(oe),oe})})})}},{key:"bootstrapModule",value:function(f){var _=this,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],I=o7({},w);return e7(this.injector,0,f).then(function(V){return _.bootstrapModuleFactory(V,I)})}},{key:"_moduleDoBootstrap",value:function(f){var _=f.injector.get(af);if(f._bootstrapComponents.length>0)f._bootstrapComponents.forEach(function(w){return _.bootstrap(w)});else{if(!f.instance.ngDoBootstrap)throw new de(403,!1);f.instance.ngDoBootstrap(_)}this._modules.push(f)}},{key:"onDestroy",value:function(f){this._destroyListeners.push(f)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new de(404,!1);this._modules.slice().forEach(function(_){return _.destroy()}),this._destroyListeners.forEach(function(_){return _()});var f=this._injector.get(Yd,null);f&&(f.forEach(function(_){return _()}),f.clear()),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function i7(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}}function uL(c,p){return"noop"===c?new $U:("zone.js"===c?void 0:c)||new uc(p)}function cL(c,p,f){try{var _=f();return YS(_)?_.catch(function(w){throw p.runOutsideAngular(function(){return c.handleError(w)}),w}):_}catch(w){throw p.runOutsideAngular(function(){return c.handleError(w)}),w}}function o7(c,p){return c=Array.isArray(p)?p.reduce(o7,c):Object.assign(Object.assign({},c),p)}Wc.\u0275fac=function(p){return new(p||Wc)(pa(Jl))},Wc.\u0275prov=ge({token:Wc,factory:Wc.\u0275fac,providedIn:"platform"});var af=function(){function c(p,f,_){var w=this;(0,v.Z)(this,c),this._zone=p,this._injector=f,this._exceptionHandler=_,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){w._zone.run(function(){w.tick()})}});var I=new T.y(function(ee){w._stable=w._zone.isStable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks,w._zone.runOutsideAngular(function(){ee.next(w._stable),ee.complete()})}),V=new T.y(function(ee){var oe;w._zone.runOutsideAngular(function(){oe=w._zone.onStable.subscribe(function(){uc.assertNotInAngularZone(),Lx(function(){!w._stable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks&&(w._stable=!0,ee.next(!0))})})});var ve=w._zone.onUnstable.subscribe(function(){uc.assertInAngularZone(),w._stable&&(w._stable=!1,w._zone.runOutsideAngular(function(){ee.next(!1)}))});return function(){oe.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,M.T)(I,V.pipe((0,E.B)()))}return(0,L.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"injector",get:function(){return this._injector}},{key:"bootstrap",value:function(f,_){var ve,w=this,I=f instanceof jp;if(!this._injector.get(Wd).done){!I&&hi(f);throw new de(405,eu)}I?ve=f:ve=this._injector.get(C_).resolveComponentFactory(f);this.componentTypes.push(ve.componentType);var rt=function sL(c){return c.isBoundToModule}(ve)?void 0:this._injector.get(Lh),ft=_||ve.selector,wt=ve.create(Jl.NULL,[],ft,rt),en=wt.location.nativeElement,_n=wt.injector.get(J_,null);return null==_n||_n.registerApplication(en),wt.onDestroy(function(){w.detachView(wt.hostView),Yh(w.components,wt),null==_n||_n.unregisterApplication(en)}),this._loadComponent(wt),wt}},{key:"tick",value:function(){var f=this;if(this._runningTick)throw new de(101,!1);try{this._runningTick=!0;var w,_=(0,x.Z)(this._views);try{for(_.s();!(w=_.n()).done;){w.value.detectChanges()}}catch(ve){_.e(ve)}finally{_.f()}}catch(ve){this._zone.runOutsideAngular(function(){return f._exceptionHandler.handleError(ve)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(f){var _=f;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(f){var _=f;Yh(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(f){this.attachView(f.hostView),this.tick(),this.components.push(f),this._injector.get(wl,[]).concat(this._bootstrapListeners).forEach(function(w){return w(f)})}},{key:"ngOnDestroy",value:function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(f){return f()}),this._views.slice().forEach(function(f){return f.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}},{key:"onDestroy",value:function(f){var _=this;return this._destroyListeners.push(f),function(){return Yh(_._destroyListeners,f)}}},{key:"destroy",value:function(){if(this._destroyed)throw new de(406,!1);var f=this._injector;f.destroy&&!f.destroyed&&f.destroy()}},{key:"viewCount",get:function(){return this._views.length}},{key:"warnIfDestroyed",value:function(){}}]),c}();function Yh(c,p){var f=c.indexOf(p);f>-1&&c.splice(f,1)}af.\u0275fac=function(p){return new(p||af)(pa(uc),pa(Mu),pa(k_))},af.\u0275prov=ge({token:af,factory:af.\u0275fac,providedIn:"root"});var jy=!1;function fL(){if(jy)throw new Error("Cannot enable prod mode after platform setup.");!1}var N1=(0,L.Z)(function c(){(0,v.Z)(this,c)});N1.__NG_ELEMENT_ID__=function l7(c){return function u7(c,p,f){if(qi(c)&&!f){var _=fo(c.index,p);return new Eh(_,_)}if(47&c.type){var w=p[16];return new Eh(w,p)}return null}(Me(),An(),16==(16&c))};var c7=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f)}(N1),d7=function(c){(0,k.Z)(f,c);var p=(0,b.Z)(f);function f(){return(0,v.Z)(this,f),p.apply(this,arguments)}return(0,L.Z)(f)}(c7);var F1=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(f){return dy(f)}},{key:"create",value:function(f){return new h7(f)}}]),c}(),IY=function(p,f){return f},h7=function(){function c(p){(0,v.Z)(this,c),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=p||IY}return(0,L.Z)(c,[{key:"forEachItem",value:function(f){var _;for(_=this._itHead;null!==_;_=_._next)f(_)}},{key:"forEachOperation",value:function(f){for(var _=this._itHead,w=this._removalsHead,I=0,V=null;_||w;){var ee=!w||_&&_.currentIndex<zx(w,I,V)?_:w,oe=zx(ee,I,V),ve=ee.currentIndex;if(ee===w)I--,w=w._nextRemoved;else if(_=_._next,null==ee.previousIndex)I++;else{V||(V=[]);var He=oe-I,rt=ve-I;if(He!=rt){for(var ft=0;ft<He;ft++){var wt=ft<V.length?V[ft]:V[ft]=0,en=wt+ft;rt<=en&&en<He&&(V[ft]=wt+1)}V[ee.previousIndex]=rt-He}}oe!==ve&&f(ee,oe,ve)}}},{key:"forEachPreviousItem",value:function(f){var _;for(_=this._previousItHead;null!==_;_=_._nextPrevious)f(_)}},{key:"forEachAddedItem",value:function(f){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)f(_)}},{key:"forEachMovedItem",value:function(f){var _;for(_=this._movesHead;null!==_;_=_._nextMoved)f(_)}},{key:"forEachRemovedItem",value:function(f){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)f(_)}},{key:"forEachIdentityChange",value:function(f){var _;for(_=this._identityChangesHead;null!==_;_=_._nextIdentityChange)f(_)}},{key:"diff",value:function(f){if(null==f&&(f=[]),!dy(f))throw new de(900,!1);return this.check(f)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(f){var _=this;this._reset();var V,ee,oe,w=this._itHead,I=!1;if(Array.isArray(f)){this.length=f.length;for(var ve=0;ve<this.length;ve++)ee=f[ve],oe=this._trackByFn(ve,ee),null!==w&&Object.is(w.trackById,oe)?(I&&(w=this._verifyReinsertion(w,ee,oe,ve)),Object.is(w.item,ee)||this._addIdentityChange(w,ee)):(w=this._mismatch(w,ee,oe,ve),I=!0),w=w._next}else V=0,function o8(c,p){if(Array.isArray(c))for(var f=0;f<c.length;f++)p(c[f]);else for(var w,_=c[Dh()]();!(w=_.next()).done;)p(w.value)}(f,function(He){oe=_._trackByFn(V,He),null!==w&&Object.is(w.trackById,oe)?(I&&(w=_._verifyReinsertion(w,He,oe,V)),Object.is(w.item,He)||_._addIdentityChange(w,He)):(w=_._mismatch(w,He,oe,V),I=!0),w=w._next,V++}),this.length=V;return this._truncate(w),this.collection=f,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(f,_,w,I){var V;return null===f?V=this._itTail:(V=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null))?(Object.is(f.item,_)||this._addIdentityChange(f,_),this._reinsertAfter(f,V,I)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(w,I))?(Object.is(f.item,_)||this._addIdentityChange(f,_),this._moveAfter(f,V,I)):f=this._addAfter(new m7(_,w),V,I),f}},{key:"_verifyReinsertion",value:function(f,_,w,I){var V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null);return null!==V?f=this._reinsertAfter(V,f._prev,I):f.currentIndex!=I&&(f.currentIndex=I,this._addToMoves(f,I)),f}},{key:"_truncate",value:function(f){for(;null!==f;){var _=f._next;this._addToRemovals(this._unlink(f)),f=_}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(f,_,w){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);var I=f._prevRemoved,V=f._nextRemoved;return null===I?this._removalsHead=V:I._nextRemoved=V,null===V?this._removalsTail=I:V._prevRemoved=I,this._insertAfter(f,_,w),this._addToMoves(f,w),f}},{key:"_moveAfter",value:function(f,_,w){return this._unlink(f),this._insertAfter(f,_,w),this._addToMoves(f,w),f}},{key:"_addAfter",value:function(f,_,w){return this._insertAfter(f,_,w),null===this._additionsTail?this._additionsTail=this._additionsHead=f:this._additionsTail=this._additionsTail._nextAdded=f,f}},{key:"_insertAfter",value:function(f,_,w){var I=null===_?this._itHead:_._next;return f._next=I,f._prev=_,null===I?this._itTail=f:I._prev=f,null===_?this._itHead=f:_._next=f,null===this._linkedRecords&&(this._linkedRecords=new U1),this._linkedRecords.put(f),f.currentIndex=w,f}},{key:"_remove",value:function(f){return this._addToRemovals(this._unlink(f))}},{key:"_unlink",value:function(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);var _=f._prev,w=f._next;return null===_?this._itHead=w:_._next=w,null===w?this._itTail=_:w._prev=_,f}},{key:"_addToMoves",value:function(f,_){return f.previousIndex===_||(null===this._movesTail?this._movesTail=this._movesHead=f:this._movesTail=this._movesTail._nextMoved=f),f}},{key:"_addToRemovals",value:function(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new U1),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}},{key:"_addIdentityChange",value:function(f,_){return f.item=_,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=f:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=f,f}}]),c}(),m7=(0,L.Z)(function c(p,f){(0,v.Z)(this,c),this.item=p,this.trackById=f,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),_L=function(){function c(){(0,v.Z)(this,c),this._head=null,this._tail=null}return(0,L.Z)(c,[{key:"add",value:function(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}},{key:"get",value:function(f,_){var w;for(w=this._head;null!==w;w=w._nextDup)if((null===_||_<=w.currentIndex)&&Object.is(w.trackById,f))return w;return null}},{key:"remove",value:function(f){var _=f._prevDup,w=f._nextDup;return null===_?this._head=w:_._nextDup=w,null===w?this._tail=_:w._prevDup=_,null===this._head}}]),c}(),U1=function(){function c(){(0,v.Z)(this,c),this.map=new Map}return(0,L.Z)(c,[{key:"put",value:function(f){var _=f.trackById,w=this.map.get(_);w||(w=new _L,this.map.set(_,w)),w.add(f)}},{key:"get",value:function(f,_){var w=f,I=this.map.get(w);return I?I.get(f,_):null}},{key:"remove",value:function(f){var _=f.trackById;return this.map.get(_).remove(f)&&this.map.delete(_),f}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),c}();function zx(c,p,f){var _=c.previousIndex;if(null===_)return _;var w=0;return f&&_<f.length&&(w=f[_]),_+p+w}var _7=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(f){return f instanceof Map||US(f)}},{key:"create",value:function(){return new g7}}]),c}(),g7=function(){function c(){(0,v.Z)(this,c),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,L.Z)(c,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(f){var _;for(_=this._mapHead;null!==_;_=_._next)f(_)}},{key:"forEachPreviousItem",value:function(f){var _;for(_=this._previousMapHead;null!==_;_=_._nextPrevious)f(_)}},{key:"forEachChangedItem",value:function(f){var _;for(_=this._changesHead;null!==_;_=_._nextChanged)f(_)}},{key:"forEachAddedItem",value:function(f){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)f(_)}},{key:"forEachRemovedItem",value:function(f){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)f(_)}},{key:"diff",value:function(f){if(f){if(!(f instanceof Map||US(f)))throw new de(900,!1)}else f=new Map;return this.check(f)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(f){var _=this;this._reset();var w=this._mapHead;if(this._appendAfter=null,this._forEach(f,function(V,ee){if(w&&w.key===ee)_._maybeAddToChanges(w,V),_._appendAfter=w,w=w._next;else{var oe=_._getOrCreateRecordForKey(ee,V);w=_._insertBeforeOrAppend(w,oe)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(var I=w;null!==I;I=I._nextRemoved)I===this._mapHead&&(this._mapHead=null),this._records.delete(I.key),I._nextRemoved=I._next,I.previousValue=I.currentValue,I.currentValue=null,I._prev=null,I._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(f,_){if(f){var w=f._prev;return _._next=f,_._prev=w,f._prev=_,w&&(w._next=_),f===this._mapHead&&(this._mapHead=_),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=_,_._prev=this._appendAfter):this._mapHead=_,this._appendAfter=_,null}},{key:"_getOrCreateRecordForKey",value:function(f,_){if(this._records.has(f)){var w=this._records.get(f);this._maybeAddToChanges(w,_);var I=w._prev,V=w._next;return I&&(I._next=V),V&&(V._prev=I),w._next=null,w._prev=null,w}var ee=new v7(f);return this._records.set(f,ee),ee.currentValue=_,this._addToAdditions(ee),ee}},{key:"_reset",value:function(){if(this.isDirty){var f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(f,_){Object.is(_,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=_,this._addToChanges(f))}},{key:"_addToAdditions",value:function(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}},{key:"_addToChanges",value:function(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}},{key:"_forEach",value:function(f,_){f instanceof Map?f.forEach(_):Object.keys(f).forEach(function(w){return _(f[w],w)})}}]),c}(),v7=(0,L.Z)(function c(p){(0,v.Z)(this,c),this.key=p,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function gL(){return new zy([new F1])}var zy=function(){function c(p){(0,v.Z)(this,c),this.factories=p}return(0,L.Z)(c,[{key:"find",value:function(f){var _=this.factories.find(function(w){return w.supports(f)});if(null!=_)return _;throw new de(901,!1)}}],[{key:"create",value:function(f,_){if(null!=_){var w=_.factories.slice();f=f.concat(w)}return new c(f)}},{key:"extend",value:function(f){return{provide:c,useFactory:function(w){return c.create(f,w||gL())},deps:[[c,new o_,new Pp]]}}}]),c}();function vL(){return new rg([new _7])}zy.\u0275prov=ge({token:zy,providedIn:"root",factory:gL});var rg=function(){function c(p){(0,v.Z)(this,c),this.factories=p}return(0,L.Z)(c,[{key:"find",value:function(f){var _=this.factories.find(function(w){return w.supports(f)});if(_)return _;throw new de(901,!1)}}],[{key:"create",value:function(f,_){if(_){var w=_.factories.slice();f=f.concat(w)}return new c(f)}},{key:"extend",value:function(f){return{provide:c,useFactory:function(w){return c.create(f,w||vL())},deps:[[c,new o_,new Pp]]}}}]),c}();rg.\u0275prov=ge({token:rg,providedIn:"root",factory:vL});var y7=[new _7],b7=[new F1],Wx=(new zy(b7),new rg(y7),lL(null,"core",[])),ig=(0,L.Z)(function c(p){(0,v.Z)(this,c)});function w7(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}ig.\u0275fac=function(p){return new(p||ig)(pa(af))},ig.\u0275mod=gt({type:ig}),ig.\u0275inj=Dt({})},3075:function(Ae,K,m){"use strict";m.d(K,{Cf:function(){return fe},F:function(){return Ca},Fd:function(){return hl},Fj:function(){return Y},JJ:function(){return Xt},JL:function(){return Je},JU:function(){return M},NI:function(){return na},On:function(){return tn},Q7:function(){return xs},QS:function(){return Gl},UX:function(){return Es},Zs:function(){return Hl},_Y:function(){return Jt},a5:function(){return zt},kI:function(){return ce},nJ:function(){return nn},oH:function(){return mi},p4:function(){return ls},qQ:function(){return us},qu:function(){return Ds},sg:function(){return jo},u:function(){return Xi},u5:function(){return Mr},wV:function(){return Mi}});var G=m(3237),W=m(1120),A=m(7762),H=m(7326),R=m(7685),P=m(4902),x=m(136),D=m(9388),j=m(5671),L=m(3144),v=m(5e3),k=m(9808),b=m(3527),O=m(567),S=m(4850),y=function(){function we(Te,se){(0,j.Z)(this,we),this._renderer=Te,this._elementRef=se,this.onChange=function(Me){},this.onTouched=function(){}}return(0,L.Z)(we,[{key:"setProperty",value:function(se,Me){this._renderer.setProperty(this._elementRef.nativeElement,se,Me)}},{key:"registerOnTouched",value:function(se){this.onTouched=se}},{key:"registerOnChange",value:function(se){this.onChange=se}},{key:"setDisabledState",value:function(se){this.setProperty("disabled",se)}}]),we}();y.\u0275fac=function(Te){return new(Te||y)(v.Y36(v.Qsj),v.Y36(v.SBq))},y.\u0275dir=v.lG2({type:y});var T=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se)}(y);T.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(T)))(se||T)}}(),T.\u0275dir=v.lG2({type:T,features:[v.qOj]});var M=new v.OlP("NgValueAccessor"),E={provide:M,useExisting:(0,v.Gpc)(function(){return N}),multi:!0},N=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("checked",Oe)}}]),se}(T);N.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(N)))(se||N)}}(),N.\u0275dir=v.lG2({type:N,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.checked)})("blur",function(){return se.onTouched()})},features:[v._Bn([E]),v.qOj]});var F={provide:M,useExisting:(0,v.Gpc)(function(){return Y}),multi:!0};var $=new v.OlP("CompositionEventMode"),Y=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,Me,Oe))._compositionMode=mt,Ht._composing=!1,null==Ht._compositionMode&&(Ht._compositionMode=!function X(){var we=(0,k.q)()?(0,k.q)().getUserAgent():"";return/android (\d+)/.test(we.toLowerCase())}()),Ht}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){var mt=null==Oe?"":Oe;this.setProperty("value",mt)}},{key:"_handleInput",value:function(Oe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Oe)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Oe){this._composing=!1,this._compositionMode&&this.onChange(Oe)}}]),se}(y);Y.\u0275fac=function(Te){return new(Te||Y)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36($,8))},Y.\u0275dir=v.lG2({type:Y,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("input",function(Oe){return se._handleInput(Oe.target.value)})("blur",function(){return se.onTouched()})("compositionstart",function(){return se._compositionStart()})("compositionend",function(Oe){return se._compositionEnd(Oe.target.value)})},features:[v._Bn([F]),v.qOj]});function ne(we){return null==we||("string"==typeof we||Array.isArray(we))&&0===we.length}function be(we){return null!=we&&"number"==typeof we.length}var fe=new v.OlP("NgValidators"),de=new v.OlP("NgAsyncValidators"),le=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ce=function(){function we(){(0,j.Z)(this,we)}return(0,L.Z)(we,null,[{key:"min",value:function(se){return me(se)}},{key:"max",value:function(se){return je(se)}},{key:"required",value:function(se){return st(se)}},{key:"requiredTrue",value:function(se){return Mt(se)}},{key:"email",value:function(se){return Tt(se)}},{key:"minLength",value:function(se){return Et(se)}},{key:"maxLength",value:function(se){return Lt(se)}},{key:"pattern",value:function(se){return Ze(se)}},{key:"nullValidator",value:function(se){return null}},{key:"compose",value:function(se){return We(se)}},{key:"composeAsync",value:function(se){return dt(se)}}]),we}();function me(we){return function(Te){if(ne(Te.value)||ne(we))return null;var se=parseFloat(Te.value);return!isNaN(se)&&se<we?{min:{min:we,actual:Te.value}}:null}}function je(we){return function(Te){if(ne(Te.value)||ne(we))return null;var se=parseFloat(Te.value);return!isNaN(se)&&se>we?{max:{max:we,actual:Te.value}}:null}}function st(we){return ne(we.value)?{required:!0}:null}function Mt(we){return!0===we.value?null:{required:!0}}function Tt(we){return ne(we.value)||le.test(we.value)?null:{email:!0}}function Et(we){return function(Te){return ne(Te.value)||!be(Te.value)?null:Te.value.length<we?{minlength:{requiredLength:we,actualLength:Te.value.length}}:null}}function Lt(we){return function(Te){return be(Te.value)&&Te.value.length>we?{maxlength:{requiredLength:we,actualLength:Te.value.length}}:null}}function Ze(we){return we?("string"==typeof we?(se="","^"!==we.charAt(0)&&(se+="^"),se+=we,"$"!==we.charAt(we.length-1)&&(se+="$"),Te=new RegExp(se)):(se=we.toString(),Te=we),function(Me){if(ne(Me.value))return null;var Oe=Me.value;return Te.test(Oe)?null:{pattern:{requiredPattern:se,actualValue:Oe}}}):$t;var Te,se}function $t(we){return null}function Ft(we){return null!=we}function pn(we){var Te=(0,v.QGY)(we)?(0,b.D)(we):we;return Te}function nt(we){var Te={};return we.forEach(function(se){Te=null!=se?Object.assign(Object.assign({},Te),se):Te}),0===Object.keys(Te).length?null:Te}function Ot(we,Te){return Te.map(function(se){return se(we)})}function Ct(we){return we.map(function(Te){return function _t(we){return!we.validate}(Te)?Te:function(se){return Te.validate(se)}})}function We(we){if(!we)return null;var Te=we.filter(Ft);return 0==Te.length?null:function(se){return nt(Ot(se,Te))}}function ut(we){return null!=we?We(Ct(we)):null}function dt(we){if(!we)return null;var Te=we.filter(Ft);return 0==Te.length?null:function(se){var Me=Ot(se,Te).map(pn);return(0,O.D)(Me).pipe((0,S.U)(nt))}}function Ut(we){return null!=we?dt(Ct(we)):null}function B(we,Te){return null===we?[Te]:Array.isArray(we)?[].concat((0,P.Z)(we),[Te]):[we,Te]}function U(we){return we._rawValidators}function tt(we){return we._rawAsyncValidators}function Ye(we){return we?Array.isArray(we)?we:[we]:[]}function ge(we,Te){return Array.isArray(we)?we.includes(Te):we===Te}function t(we,Te){var se=Ye(Te);return Ye(we).forEach(function(Oe){ge(se,Oe)||se.push(Oe)}),se}function Dt(we,Te){return Ye(Te).filter(function(se){return!ge(we,se)})}var Zt=function(){function we(){(0,j.Z)(this,we),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,L.Z)(we,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(se){this._rawValidators=se||[],this._composedValidatorFn=ut(this._rawValidators)}},{key:"_setAsyncValidators",value:function(se){this._rawAsyncValidators=se||[],this._composedAsyncValidatorFn=Ut(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(se){this._onDestroyCallbacks.push(se)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(se){return se()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(se)}},{key:"hasError",value:function(se,Me){return!!this.control&&this.control.hasError(se,Me)}},{key:"getError",value:function(se,Me){return this.control?this.control.getError(se,Me):null}}]),we}(),zt=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return(0,L.Z)(se)}(Zt),sn=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),se}(Zt),qt=function(){function we(Te){(0,j.Z)(this,we),this._cd=Te}return(0,L.Z)(we,[{key:"isTouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.touched)}},{key:"isUntouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.untouched)}},{key:"isPristine",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pristine)}},{key:"isDirty",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.dirty)}},{key:"isValid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.valid)}},{key:"isInvalid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.invalid)}},{key:"isPending",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pending)}},{key:"isSubmitted",get:function(){var se;return!(null===(se=this._cd)||void 0===se||!se.submitted)}}]),we}(),Xt=(Object.assign(Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"}),{"[class.ng-submitted]":"isSubmitted"}),function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me){return(0,j.Z)(this,se),Te.call(this,Me)}return(0,L.Z)(se)}(qt));Xt.\u0275fac=function(Te){return new(Te||Xt)(v.Y36(zt,2))},Xt.\u0275dir=v.lG2({type:Xt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Te,se){2&Te&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)},features:[v.qOj]});var Je=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me){return(0,j.Z)(this,se),Te.call(this,Me)}return(0,L.Z)(se)}(qt);Je.\u0275fac=function(Te){return new(Te||Je)(v.Y36(sn,10))},Je.\u0275dir=v.lG2({type:Je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Te,se){2&Te&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)("ng-submitted",se.isSubmitted)},features:[v.qOj]});var St="VALID",ze="INVALID",Ke="PENDING",Re="DISABLED";function qe(we){return(Yt(we)?we.validators:we)||null}function vt(we){return Array.isArray(we)?ut(we):we||null}function dn(we,Te){return(Yt(Te)?Te.asyncValidators:we)||null}function Hn(we){return Array.isArray(we)?Ut(we):we||null}function Yt(we){return null!=we&&!Array.isArray(we)&&"object"==typeof we}function kt(we,Te,se){var Me=we.controls;if(!(Te?Object.keys(Me):Me).length)throw new v.vHH(1e3,"");if(!Me[se])throw new v.vHH(1001,"")}function $e(we,Te,se){we._forEachChild(function(Me,Oe){if(void 0===se[Oe])throw new v.vHH(1002,"")})}var gt=function(){function we(Te,se){(0,j.Z)(this,we),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Te,this._rawAsyncValidators=se,this._composedValidatorFn=vt(this._rawValidators),this._composedAsyncValidatorFn=Hn(this._rawAsyncValidators)}return(0,L.Z)(we,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(se){this._rawValidators=this._composedValidatorFn=se}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(se){this._rawAsyncValidators=this._composedAsyncValidatorFn=se}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===St}},{key:"invalid",get:function(){return this.status===ze}},{key:"pending",get:function(){return this.status==Ke}},{key:"disabled",get:function(){return this.status===Re}},{key:"enabled",get:function(){return this.status!==Re}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(se){this._rawValidators=se,this._composedValidatorFn=vt(se)}},{key:"setAsyncValidators",value:function(se){this._rawAsyncValidators=se,this._composedAsyncValidatorFn=Hn(se)}},{key:"addValidators",value:function(se){this.setValidators(t(se,this._rawValidators))}},{key:"addAsyncValidators",value:function(se){this.setAsyncValidators(t(se,this._rawAsyncValidators))}},{key:"removeValidators",value:function(se){this.setValidators(Dt(se,this._rawValidators))}},{key:"removeAsyncValidators",value:function(se){this.setAsyncValidators(Dt(se,this._rawAsyncValidators))}},{key:"hasValidator",value:function(se){return ge(this._rawValidators,se)}},{key:"hasAsyncValidator",value:function(se){return ge(this._rawAsyncValidators,se)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!se.onlySelf&&this._parent.markAsTouched(se)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(se){return se.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"markAsDirty",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!se.onlySelf&&this._parent.markAsDirty(se)}},{key:"markAsPristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"markAsPending",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ke,!1!==se.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!se.onlySelf&&this._parent.markAsPending(se)}},{key:"disable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=Re,this.errors=null,this._forEachChild(function(Oe){Oe.disable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this._updateValue(),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!0)})}},{key:"enable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=St,this._forEachChild(function(Oe){Oe.enable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!1)})}},{key:"_updateAncestors",value:function(se){this._parent&&!se.onlySelf&&(this._parent.updateValueAndValidity(se),se.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(se){this._parent=se}},{key:"getRawValue",value:function(){return this.value}},{key:"updateValueAndValidity",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===St||this.status===Ke)&&this._runAsyncValidator(se.emitEvent)),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!se.onlySelf&&this._parent.updateValueAndValidity(se)}},{key:"_updateTreeValidity",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(se)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Re:St}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(se){var Me=this;if(this.asyncValidator){this.status=Ke,this._hasOwnPendingAsyncValidator=!0;var Oe=pn(this.asyncValidator(this));this._asyncValidationSubscription=Oe.subscribe(function(mt){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(mt,{emitEvent:se})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=se,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(se){var Me=se;return null==Me||(Array.isArray(Me)||(Me=Me.split(".")),0===Me.length)?null:Me.reduce(function(Oe,mt){return Oe&&Oe._find(mt)},this)}},{key:"getError",value:function(se,Me){var Oe=Me?this.get(Me):this;return Oe&&Oe.errors?Oe.errors[se]:null}},{key:"hasError",value:function(se,Me){return!!this.getError(se,Me)}},{key:"root",get:function(){for(var se=this;se._parent;)se=se._parent;return se}},{key:"_updateControlsErrors",value:function(se){this.status=this._calculateStatus(),se&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(se)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Re:this.errors?ze:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ke)?Ke:this._anyControlsHaveStatus(ze)?ze:St}},{key:"_anyControlsHaveStatus",value:function(se){return this._anyControls(function(Me){return Me.status===se})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(se){return se.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(se){return se.touched})}},{key:"_updatePristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"_updateTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"_registerOnCollectionChange",value:function(se){this._onCollectionChange=se}},{key:"_setUpdateStrategy",value:function(se){Yt(se)&&null!=se.updateOn&&(this._updateOn=se.updateOn)}},{key:"_parentMarkedDirty",value:function(se){var Me=this._parent&&this._parent.dirty;return!se&&!!Me&&!this._parent._anyControlsDirty()}},{key:"_find",value:function(se){return null}}]),we}(),yt=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,qe(Oe),dn(mt,Oe))).controls=Me,Ht._initObservables(),Ht._setUpdateStrategy(Oe),Ht._setUpControls(),Ht.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ht.asyncValidator}),Ht}return(0,L.Z)(se,[{key:"registerControl",value:function(Oe,mt){return this.controls[Oe]?this.controls[Oe]:(this.controls[Oe]=mt,mt.setParent(this),mt._registerOnCollectionChange(this._onCollectionChange),mt)}},{key:"addControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Oe,mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],mt&&this.registerControl(Oe,mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Oe){return this.controls.hasOwnProperty(Oe)&&this.controls[Oe].enabled}},{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,0,Oe),Object.keys(Oe).forEach(function(On){kt(mt,!0,On),mt.controls[On].setValue(Oe[On],{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Object.keys(Oe).forEach(function(On){var sr=mt.controls[On];sr&&sr.patchValue(Oe[On],{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ht,On){Ht.reset(Oe[On],{onlySelf:!0,emitEvent:mt.emitEvent})}),this._updatePristine(mt),this._updateTouched(mt),this.updateValueAndValidity(mt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Oe,mt,Ht){return Oe[Ht]=mt.getRawValue(),Oe})}},{key:"_syncPendingControls",value:function(){var Oe=this._reduceChildren(!1,function(mt,Ht){return!!Ht._syncPendingControls()||mt});return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){var mt=this;Object.keys(this.controls).forEach(function(Ht){var On=mt.controls[Ht];On&&Oe(On,Ht)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(mt){mt.setParent(Oe),mt._registerOnCollectionChange(Oe._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Oe){for(var mt=0,Ht=Object.entries(this.controls);mt<Ht.length;mt++){var On=(0,R.Z)(Ht[mt],2),sr=On[0],ml=On[1];if(this.contains(sr)&&Oe(ml))return!0}return!1}},{key:"_reduceValue",value:function(){var Oe=this;return this._reduceChildren({},function(Ht,On,sr){return(On.enabled||Oe.disabled)&&(Ht[sr]=On.value),Ht})}},{key:"_reduceChildren",value:function(Oe,mt){var Ht=Oe;return this._forEachChild(function(On,sr){Ht=mt(Ht,On,sr)}),Ht}},{key:"_allControlsDisabled",value:function(){for(var Oe=0,mt=Object.keys(this.controls);Oe<mt.length;Oe++){var Ht=mt[Oe];if(this.controls[Ht].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_find",value:function(Oe){return this.controls.hasOwnProperty(Oe)?this.controls[Oe]:null}}]),se}(gt),nn=yt,Vn=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se)}(yt);function ar(we,Te){return[].concat((0,P.Z)(Te.path),[we])}function Or(we,Te){var se,Me;Ra(we,Te),Te.valueAccessor.writeValue(we.value),we.disabled&&(null===(Me=(se=Te.valueAccessor).setDisabledState)||void 0===Me||Me.call(se,!0)),function ss(we,Te){Te.valueAccessor.registerOnChange(function(se){we._pendingValue=se,we._pendingChange=!0,we._pendingDirty=!0,"change"===we.updateOn&&ri(we,Te)})}(we,Te),function Ys(we,Te){var se=function(Oe,mt){Te.valueAccessor.writeValue(Oe),mt&&Te.viewToModelUpdate(Oe)};we.registerOnChange(se),Te._registerOnDestroy(function(){we._unregisterOnChange(se)})}(we,Te),function ta(we,Te){Te.valueAccessor.registerOnTouched(function(){we._pendingTouched=!0,"blur"===we.updateOn&&we._pendingChange&&ri(we,Te),"submit"!==we.updateOn&&we.markAsTouched()})}(we,Te),function Pa(we,Te){if(Te.valueAccessor.setDisabledState){var se=function(Oe){Te.valueAccessor.setDisabledState(Oe)};we.registerOnDisabledChange(se),Te._registerOnDestroy(function(){we._unregisterOnDisabledChange(se)})}}(we,Te)}function hi(we,Te){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Me=function(){};Te.valueAccessor&&(Te.valueAccessor.registerOnChange(Me),Te.valueAccessor.registerOnTouched(Me)),ua(we,Te),we&&(Te._invokeOnDestroyCallbacks(),we._registerOnCollectionChange(function(){}))}function Gi(we,Te){we.forEach(function(se){se.registerOnValidatorChange&&se.registerOnValidatorChange(Te)})}function Ra(we,Te){var se=U(we);null!==Te.validator?we.setValidators(B(se,Te.validator)):"function"==typeof se&&we.setValidators([se]);var Me=tt(we);null!==Te.asyncValidator?we.setAsyncValidators(B(Me,Te.asyncValidator)):"function"==typeof Me&&we.setAsyncValidators([Me]);var Oe=function(){return we.updateValueAndValidity()};Gi(Te._rawValidators,Oe),Gi(Te._rawAsyncValidators,Oe)}function ua(we,Te){var se=!1;if(null!==we){if(null!==Te.validator){var Me=U(we);if(Array.isArray(Me)&&Me.length>0){var Oe=Me.filter(function(sr){return sr!==Te.validator});Oe.length!==Me.length&&(se=!0,we.setValidators(Oe))}}if(null!==Te.asyncValidator){var mt=tt(we);if(Array.isArray(mt)&&mt.length>0){var Ht=mt.filter(function(sr){return sr!==Te.asyncValidator});Ht.length!==mt.length&&(se=!0,we.setAsyncValidators(Ht))}}}var On=function(){};return Gi(Te._rawValidators,On),Gi(Te._rawAsyncValidators,On),se}function ri(we,Te){we._pendingDirty&&we.markAsDirty(),we.setValue(we._pendingValue,{emitModelToViewChange:!1}),Te.viewToModelUpdate(we._pendingValue),we._pendingChange=!1}function zi(we,Te){Ra(we,Te)}function ki(we,Te){if(!we.hasOwnProperty("model"))return!1;var se=we.model;return!!se.isFirstChange()||!Object.is(Te,se.currentValue)}function qr(we,Te){we._syncPendingControls(),Te.forEach(function(se){var Me=se.control;"submit"===Me.updateOn&&Me._pendingChange&&(se.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function Bi(we,Te){if(!Te)return null;Array.isArray(Te);var se=void 0,Me=void 0,Oe=void 0;return Te.forEach(function(mt){mt.constructor===Y?se=mt:function Ko(we){return Object.getPrototypeOf(we.constructor)===T}(mt)?Me=mt:Oe=mt}),Oe||Me||se||null}var Fi={provide:sn,useExisting:(0,v.Gpc)(function(){return Ca})},Uo=Promise.resolve(),Ca=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe){var mt;return(0,j.Z)(this,se),(mt=Te.call(this)).submitted=!1,mt._directives=new Set,mt.ngSubmit=new v.vpe,mt.form=new yt({},ut(Me),Ut(Oe)),mt}return(0,L.Z)(se,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Oe.control=Ht.registerControl(Oe.name,Oe.control),Or(Oe.control,Oe),Oe.control.updateValueAndValidity({emitEvent:!1}),mt._directives.add(Oe)})}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Ht&&Ht.removeControl(Oe.name),mt._directives.delete(Oe)})}},{key:"addFormGroup",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path),On=new yt({});zi(On,Oe),Ht.registerControl(Oe.name,On),On.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Ht&&Ht.removeControl(Oe.name)})}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,mt){var Ht=this;Uo.then(function(){Ht.form.get(Oe.path).setValue(mt)})}},{key:"setValue",value:function(Oe){this.control.setValue(Oe)}},{key:"onSubmit",value:function(Oe){var mt;return this.submitted=!0,qr(this.form,this._directives),this.ngSubmit.emit(Oe),"dialog"===(null===(mt=null==Oe?void 0:Oe.target)||void 0===mt?void 0:mt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Oe){return Oe.pop(),Oe.length?this.form.get(Oe):this.form}}]),se}(sn);function ca(we,Te){var se=we.indexOf(Te);se>-1&&we.splice(se,1)}function co(we){return"object"==typeof we&&null!==we&&2===Object.keys(we).length&&"value"in we&&"disabled"in we}Ca.\u0275fac=function(Te){return new(Te||Ca)(v.Y36(fe,10),v.Y36(de,10))},Ca.\u0275dir=v.lG2({type:Ca,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Fi]),v.qOj]});var na=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,mt=arguments.length>1?arguments[1]:void 0,Ht=arguments.length>2?arguments[2]:void 0;return(0,j.Z)(this,se),(Me=Te.call(this,qe(mt),dn(Ht,mt))).defaultValue=null,Me._onChange=[],Me._pendingChange=!1,Me._applyFormState(Oe),Me._setUpdateStrategy(mt),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Yt(mt)&&(mt.nonNullable||mt.initialValueIsDefault)&&(co(Oe)?Me.defaultValue=Oe.value:Me.defaultValue=Oe),Me}return(0,L.Z)(se,[{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Oe,this._onChange.length&&!1!==Ht.emitModelToViewChange&&this._onChange.forEach(function(On){return On(mt.value,!1!==Ht.emitViewToModelChange)}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Oe,mt)}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Oe),this.markAsPristine(mt),this.markAsUntouched(mt),this.setValue(this.value,mt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Oe){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Oe){this._onChange.push(Oe)}},{key:"_unregisterOnChange",value:function(Oe){ca(this._onChange,Oe)}},{key:"registerOnDisabledChange",value:function(Oe){this._onDisabledChange.push(Oe)}},{key:"_unregisterOnDisabledChange",value:function(Oe){ca(this._onDisabledChange,Oe)}},{key:"_forEachChild",value:function(Oe){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)}},{key:"_applyFormState",value:function(Oe){co(Oe)?(this.value=this._pendingValue=Oe.value,Oe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Oe}}]),se}(gt),ls=na,po=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ar(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}}]),se}(sn);po.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(po)))(se||po)}}(),po.\u0275dir=v.lG2({type:po,features:[v.qOj]});var Wi={provide:sn,useExisting:(0,v.Gpc)(function(){return Ui})},Ui=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{key:"_checkParentType",value:function(){!(this._parent instanceof se)&&this._parent}}]),se}(po);Ui.\u0275fac=function(Te){return new(Te||Ui)(v.Y36(sn,5),v.Y36(fe,10),v.Y36(de,10))},Ui.\u0275dir=v.lG2({type:Ui,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[v._Bn([Wi]),v.qOj]});var Ss={provide:zt,useExisting:(0,v.Gpc)(function(){return tn})},qi=Promise.resolve(),tn=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht,On){var sr;return(0,j.Z)(this,se),(sr=Te.call(this))._changeDetectorRef=On,sr.control=new na,sr._registered=!1,sr.update=new v.vpe,sr._parent=Me,sr._setValidators(Oe),sr._setAsyncValidators(mt),sr.valueAccessor=Bi((0,H.Z)(sr),Ht),sr}return(0,L.Z)(se,[{key:"ngOnChanges",value:function(Oe){if(this._checkForErrors(),!this._registered||"name"in Oe){if(this._registered&&(this._checkName(),this.formDirective)){var mt=Oe.name.previousValue;this.formDirective.removeControl({name:mt,path:this._getPath(mt)})}this._setUpControl()}"isDisabled"in Oe&&this._updateDisabled(Oe),ki(Oe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Or(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}},{key:"_updateValue",value:function(Oe){var mt=this;qi.then(function(){var Ht;mt.control.setValue(Oe,{emitViewToModelChange:!1}),null===(Ht=mt._changeDetectorRef)||void 0===Ht||Ht.markForCheck()})}},{key:"_updateDisabled",value:function(Oe){var mt=this,Ht=Oe.isDisabled.currentValue,On=0!==Ht&&(0,v.D6c)(Ht);qi.then(function(){var sr;On&&!mt.control.disabled?mt.control.disable():!On&&mt.control.disabled&&mt.control.enable(),null===(sr=mt._changeDetectorRef)||void 0===sr||sr.markForCheck()})}},{key:"_getPath",value:function(Oe){return this._parent?ar(Oe,this._parent):[Oe]}}]),se}(zt);tn.\u0275fac=function(Te){return new(Te||tn)(v.Y36(sn,9),v.Y36(fe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(v.sBO,8))},tn.\u0275dir=v.lG2({type:tn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([Ss]),v.qOj,v.TTD]});var Jt=(0,L.Z)(function we(){(0,j.Z)(this,we)});Jt.\u0275fac=function(Te){return new(Te||Jt)},Jt.\u0275dir=v.lG2({type:Jt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var Jr={provide:M,useExisting:(0,v.Gpc)(function(){return Mi}),multi:!0},Mi=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){var mt=null==Oe?"":Oe;this.setProperty("value",mt)}},{key:"registerOnChange",value:function(Oe){this.onChange=function(mt){Oe(""==mt?null:parseFloat(mt))}}}]),se}(T);Mi.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Mi)))(se||Mi)}}(),Mi.\u0275dir=v.lG2({type:Mi,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([Jr]),v.qOj]});var Jo={provide:M,useExisting:(0,v.Gpc)(function(){return vo}),multi:!0};var bi=(0,L.Z)(function we(){(0,j.Z)(this,we)});bi.\u0275fac=function(Te){return new(Te||bi)},bi.\u0275mod=v.oAB({type:bi}),bi.\u0275inj=v.cJS({});var Ln=function(){function we(){(0,j.Z)(this,we),this._accessors=[]}return(0,L.Z)(we,[{key:"add",value:function(se,Me){this._accessors.push([se,Me])}},{key:"remove",value:function(se){for(var Me=this._accessors.length-1;Me>=0;--Me)if(this._accessors[Me][1]===se)return void this._accessors.splice(Me,1)}},{key:"select",value:function(se){var Me=this;this._accessors.forEach(function(Oe){Me._isSameGroup(Oe,se)&&Oe[1]!==se&&Oe[1].fireUncheck(se.value)})}},{key:"_isSameGroup",value:function(se,Me){return!!se[0].control&&(se[0]._parent===Me._control._parent&&se[1].name===Me.name)}}]),we}();Ln.\u0275fac=function(Te){return new(Te||Ln)},Ln.\u0275prov=v.Yz7({token:Ln,factory:Ln.\u0275fac,providedIn:bi});var vo=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht){var On;return(0,j.Z)(this,se),(On=Te.call(this,Me,Oe))._registry=mt,On._injector=Ht,On.onChange=function(){},On}return(0,L.Z)(se,[{key:"ngOnInit",value:function(){this._control=this._injector.get(zt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Oe){this._state=Oe===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Oe){var mt=this;this._fn=Oe,this.onChange=function(){Oe(mt.value),mt._registry.select(mt)}}},{key:"fireUncheck",value:function(Oe){this.writeValue(Oe)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),se}(T);vo.\u0275fac=function(Te){return new(Te||vo)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(Ln),v.Y36(v.zs3))},vo.\u0275dir=v.lG2({type:vo,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(){return se.onChange()})("blur",function(){return se.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[v._Bn([Jo]),v.qOj]});var Ul={provide:M,useExisting:(0,v.Gpc)(function(){return Nn}),multi:!0},Nn=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("value",parseFloat(Oe))}},{key:"registerOnChange",value:function(Oe){this.onChange=function(mt){Oe(""==mt?null:parseFloat(mt))}}}]),se}(T);Nn.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Nn)))(se||Nn)}}(),Nn.\u0275dir=v.lG2({type:Nn,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([Ul]),v.qOj]});var xn=new v.OlP("NgModelWithFormControlWarning"),fn={provide:zt,useExisting:(0,v.Gpc)(function(){return mi})},mi=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht){var On;return(0,j.Z)(this,se),(On=Te.call(this))._ngModelWarningConfig=Ht,On.update=new v.vpe,On._ngModelWarningSent=!1,On._setValidators(Me),On._setAsyncValidators(Oe),On.valueAccessor=Bi((0,H.Z)(On),mt),On}return(0,L.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){if(this._isControlChanged(Oe)){var mt=Oe.form.previousValue;mt&&hi(mt,this,!1),Or(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ki(Oe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&hi(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_isControlChanged",value:function(Oe){return Oe.hasOwnProperty("form")}}]),se}(zt);mi._ngModelWarningSentOnce=!1,mi.\u0275fac=function(Te){return new(Te||mi)(v.Y36(fe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(xn,8))},mi.\u0275dir=v.lG2({type:mi,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[v._Bn([fn]),v.qOj,v.TTD]});var Ji={provide:sn,useExisting:(0,v.Gpc)(function(){return jo})},jo=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe){var mt;return(0,j.Z)(this,se),(mt=Te.call(this)).submitted=!1,mt._onCollectionChange=function(){return mt._updateDomValue()},mt.directives=[],mt.form=null,mt.ngSubmit=new v.vpe,mt._setValidators(Me),mt._setAsyncValidators(Oe),mt}return(0,L.Z)(se,[{key:"ngOnChanges",value:function(Oe){this._checkFormPresent(),Oe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(ua(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(Oe){var mt=this.form.get(Oe.path);return Or(mt,Oe),mt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Oe),mt}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){hi(Oe.control||null,Oe,!1),function ba(we,Te){var se=we.indexOf(Te);se>-1&&we.splice(se,1)}(this.directives,Oe)}},{key:"addFormGroup",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormGroup",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"addFormArray",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormArray",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormArray",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,mt){this.form.get(Oe.path).setValue(mt)}},{key:"onSubmit",value:function(Oe){var mt;return this.submitted=!0,qr(this.form,this.directives),this.ngSubmit.emit(Oe),"dialog"===(null===(mt=null==Oe?void 0:Oe.target)||void 0===mt?void 0:mt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Oe=this;this.directives.forEach(function(mt){var Ht=mt.control,On=Oe.form.get(mt.path);Ht!==On&&(hi(Ht||null,mt),function(Te){return Te instanceof na}(On)&&(Or(On,mt),mt.control=On))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Oe){var mt=this.form.get(Oe.path);zi(mt,Oe),mt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Oe){if(this.form){var mt=this.form.get(Oe.path);if(mt){var Ht=function Yn(we,Te){return ua(we,Te)}(mt,Oe);Ht&&mt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ra(this.form,this),this._oldForm&&ua(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),se}(sn);jo.\u0275fac=function(Te){return new(Te||jo)(v.Y36(fe,10),v.Y36(de,10))},jo.\u0275dir=v.lG2({type:jo,selectors:[["","formGroup",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Ji]),v.qOj,v.TTD]});var Qi={provide:sn,useExisting:(0,v.Gpc)(function(){return Vi})},Vi=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{key:"_checkParentType",value:function(){ir(this._parent)}}]),se}(po);Vi.\u0275fac=function(Te){return new(Te||Vi)(v.Y36(sn,13),v.Y36(fe,10),v.Y36(de,10))},Vi.\u0275dir=v.lG2({type:Vi,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[v._Bn([Qi]),v.qOj]});var ti={provide:sn,useExisting:(0,v.Gpc)(function(){return _i})},_i=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ar(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){ir(this._parent)}}]),se}(sn);function ir(we){return!(we instanceof Vi||we instanceof jo||we instanceof _i)}_i.\u0275fac=function(Te){return new(Te||_i)(v.Y36(sn,13),v.Y36(fe,10),v.Y36(de,10))},_i.\u0275dir=v.lG2({type:_i,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[v._Bn([ti]),v.qOj]});var Do={provide:zt,useExisting:(0,v.Gpc)(function(){return Xi})},Xi=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht,On){var sr;return(0,j.Z)(this,se),(sr=Te.call(this))._ngModelWarningConfig=On,sr._added=!1,sr.update=new v.vpe,sr._ngModelWarningSent=!1,sr._parent=Me,sr._setValidators(Oe),sr._setAsyncValidators(mt),sr.valueAccessor=Bi((0,H.Z)(sr),Ht),sr}return(0,L.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){this._added||this._setUpControl(),ki(Oe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"path",get:function(){return ar(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}]),se}(zt);Xi._ngModelWarningSentOnce=!1,Xi.\u0275fac=function(Te){return new(Te||Xi)(v.Y36(sn,13),v.Y36(fe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(xn,8))},Xi.\u0275dir=v.lG2({type:Xi,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([Do]),v.qOj,v.TTD]});var wa={provide:M,useExisting:(0,v.Gpc)(function(){return Qo}),multi:!0};function Za(we,Te){return null==we?"".concat(Te):(Te&&"object"==typeof Te&&(Te="Object"),"".concat(we,": ").concat(Te).slice(0,50))}var Qo=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){this.value=Oe;var Ht=Za(this._getOptionId(Oe),Oe);this.setProperty("value",Ht)}},{key:"registerOnChange",value:function(Oe){var mt=this;this.onChange=function(Ht){mt.value=mt._getOptionValue(Ht),Oe(mt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Oe){for(var mt=0,Ht=Array.from(this._optionMap.keys());mt<Ht.length;mt++){var On=Ht[mt];if(this._compareWith(this._optionMap.get(On),Oe))return On}return null}},{key:"_getOptionValue",value:function(Oe){var mt=function oo(we){return we.split(":")[0]}(Oe);return this._optionMap.has(mt)?this._optionMap.get(mt):Oe}}]),se}(T);Qo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Qo)))(se||Qo)}}(),Qo.\u0275dir=v.lG2({type:Qo,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([wa]),v.qOj]});var ra=function(){function we(Te,se,Me){(0,j.Z)(this,we),this._element=Te,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption())}return(0,L.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._select._optionMap.set(this.id,se),this._setElementValue(Za(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._setElementValue(se),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();ra.\u0275fac=function(Te){return new(Te||ra)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(Qo,9))},ra.\u0275dir=v.lG2({type:ra,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var fl={provide:M,useExisting:(0,v.Gpc)(function(){return ka}),multi:!0};function Na(we,Te){return null==we?"".concat(Te):("string"==typeof Te&&(Te="'".concat(Te,"'")),Te&&"object"==typeof Te&&(Te="Object"),"".concat(we,": ").concat(Te).slice(0,50))}var ka=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){var Ht,mt=this;if(this.value=Oe,Array.isArray(Oe)){var On=Oe.map(function(sr){return mt._getOptionId(sr)});Ht=function(ml,lo){ml._setSelected(On.indexOf(lo.toString())>-1)}}else Ht=function(ml,lo){ml._setSelected(!1)};this._optionMap.forEach(Ht)}},{key:"registerOnChange",value:function(Oe){var mt=this;this.onChange=function(Ht){var On=[],sr=Ht.selectedOptions;if(void 0!==sr)for(var ml=sr,lo=0;lo<ml.length;lo++){var yd=ml[lo],zl=mt._getOptionValue(yd.value);On.push(zl)}else for(var Xo=Ht.options,Ta=0;Ta<Xo.length;Ta++){var qs=Xo[Ta];if(qs.selected){var _l=mt._getOptionValue(qs.value);On.push(_l)}}mt.value=On,Oe(On)}}},{key:"_registerOption",value:function(Oe){var mt=(this._idCounter++).toString();return this._optionMap.set(mt,Oe),mt}},{key:"_getOptionId",value:function(Oe){for(var mt=0,Ht=Array.from(this._optionMap.keys());mt<Ht.length;mt++){var On=Ht[mt];if(this._compareWith(this._optionMap.get(On)._value,Oe))return On}return null}},{key:"_getOptionValue",value:function(Oe){var mt=function ao(we){return we.split(":")[0]}(Oe);return this._optionMap.has(mt)?this._optionMap.get(mt)._value:Oe}}]),se}(T);ka.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(ka)))(se||ka)}}(),ka.\u0275dir=v.lG2({type:ka,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([fl]),v.qOj]});var vu=function(){function we(Te,se,Me){(0,j.Z)(this,we),this._element=Te,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption(this))}return(0,L.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._value=se,this._setElementValue(Na(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._select?(this._value=se,this._setElementValue(Na(this.id,se)),this._select.writeValue(this._select.value)):this._setElementValue(se)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"_setSelected",value:function(se){this._renderer.setProperty(this._element.nativeElement,"selected",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();function vd(we){return"number"==typeof we?we:parseInt(we,10)}function Hi(we){return"number"==typeof we?we:parseFloat(we)}vu.\u0275fac=function(Te){return new(Te||vu)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(ka,9))},vu.\u0275dir=v.lG2({type:vu,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Yi=function(){function we(){(0,j.Z)(this,we),this._validator=$t}return(0,L.Z)(we,[{key:"ngOnChanges",value:function(se){if(this.inputName in se){var Me=this.normalizeInput(se[this.inputName].currentValue);this._enabled=this.enabled(Me),this._validator=this._enabled?this.createValidator(Me):$t,this._onChange&&this._onChange()}}},{key:"validate",value:function(se){return this._validator(se)}},{key:"registerOnValidatorChange",value:function(se){this._onChange=se}},{key:"enabled",value:function(se){return null!=se}}]),we}();Yi.\u0275fac=function(Te){return new(Te||Yi)},Yi.\u0275dir=v.lG2({type:Yi,features:[v.TTD]});var xc={provide:fe,useExisting:(0,v.Gpc)(function(){return hl}),multi:!0},hl=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="max",Me.normalizeInput=function(Oe){return Hi(Oe)},Me.createValidator=function(Oe){return je(Oe)},Me}return(0,L.Z)(se)}(Yi);hl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(hl)))(se||hl)}}(),hl.\u0275dir=v.lG2({type:hl,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("max",se._enabled?se.max:null)},inputs:{max:"max"},features:[v._Bn([xc]),v.qOj]});var kp={provide:fe,useExisting:(0,v.Gpc)(function(){return us}),multi:!0},us=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="min",Me.normalizeInput=function(Oe){return Hi(Oe)},Me.createValidator=function(Oe){return me(Oe)},Me}return(0,L.Z)(se)}(Yi);us.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(us)))(se||us)}}(),us.\u0275dir=v.lG2({type:us,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("min",se._enabled?se.min:null)},inputs:{min:"min"},features:[v._Bn([kp]),v.qOj]});var Tp={provide:fe,useExisting:(0,v.Gpc)(function(){return xs}),multi:!0},so={provide:fe,useExisting:(0,v.Gpc)(function(){return Hl}),multi:!0},xs=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="required",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return st},Me}return(0,L.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Yi);xs.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(xs)))(se||xs)}}(),xs.\u0275dir=v.lG2({type:xs,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("required",se._enabled?"":null)},inputs:{required:"required"},features:[v._Bn([Tp]),v.qOj]});var Hl=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).createValidator=function(Oe){return Mt},Me}return(0,L.Z)(se)}(xs);Hl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Hl)))(se||Hl)}}(),Hl.\u0275dir=v.lG2({type:Hl,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("required",se._enabled?"":null)},features:[v._Bn([so]),v.qOj]});var Ec={provide:fe,useExisting:(0,v.Gpc)(function(){return yo}),multi:!0},yo=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="email",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return Tt},Me}return(0,L.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Yi);yo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(yo)))(se||yo)}}(),yo.\u0275dir=v.lG2({type:yo,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[v._Bn([Ec]),v.qOj]});var Dc={provide:fe,useExisting:(0,v.Gpc)(function(){return Ba}),multi:!0},Ba=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="minlength",Me.normalizeInput=function(Oe){return vd(Oe)},Me.createValidator=function(Oe){return Et(Oe)},Me}return(0,L.Z)(se)}(Yi);Ba.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ba)))(se||Ba)}}(),Ba.\u0275dir=v.lG2({type:Ba,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("minlength",se._enabled?se.minlength:null)},inputs:{minlength:"minlength"},features:[v._Bn([Dc]),v.qOj]});var cs={provide:fe,useExisting:(0,v.Gpc)(function(){return fo}),multi:!0},fo=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="maxlength",Me.normalizeInput=function(Oe){return vd(Oe)},Me.createValidator=function(Oe){return Lt(Oe)},Me}return(0,L.Z)(se)}(Yi);fo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(fo)))(se||fo)}}(),fo.\u0275dir=v.lG2({type:fo,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("maxlength",se._enabled?se.maxlength:null)},inputs:{maxlength:"maxlength"},features:[v._Bn([cs]),v.qOj]});var Mp={provide:fe,useExisting:(0,v.Gpc)(function(){return Ks}),multi:!0},Ks=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="pattern",Me.normalizeInput=function(Oe){return Oe},Me.createValidator=function(Oe){return Ze(Oe)},Me}return(0,L.Z)(se)}(Yi);Ks.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ks)))(se||Ks)}}(),Ks.\u0275dir=v.lG2({type:Ks,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("pattern",se._enabled?se.pattern:null)},inputs:{pattern:"pattern"},features:[v._Bn([Mp]),v.qOj]});var ds=(0,L.Z)(function we(){(0,j.Z)(this,we)});ds.\u0275fac=function(Te){return new(Te||ds)},ds.\u0275mod=v.oAB({type:ds}),ds.\u0275inj=v.cJS({imports:[bi]});var Mr=(0,L.Z)(function we(){(0,j.Z)(this,we)});Mr.\u0275fac=function(Te){return new(Te||Mr)},Mr.\u0275mod=v.oAB({type:Mr}),Mr.\u0275inj=v.cJS({imports:[ds]});var Es=function(){function we(){(0,j.Z)(this,we)}return(0,L.Z)(we,null,[{key:"withConfig",value:function(se){return{ngModule:we,providers:[{provide:xn,useValue:se.warnOnNgModelWithFormControl}]}}}]),we}();Es.\u0275fac=function(Te){return new(Te||Es)},Es.\u0275mod=v.oAB({type:Es}),Es.\u0275inj=v.cJS({imports:[ds]});var Qm=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,qe(Oe),dn(mt,Oe))).controls=Me,Ht._initObservables(),Ht._setUpdateStrategy(Oe),Ht._setUpControls(),Ht.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ht.asyncValidator}),Ht}return(0,L.Z)(se,[{key:"at",value:function(Oe){return this.controls[this._adjustIndex(Oe)]}},{key:"push",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Oe),this._registerControl(Oe),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Oe,0,mt),this._registerControl(mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent})}},{key:"removeAt",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ht=this._adjustIndex(Oe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(function(){}),this.controls.splice(Ht,1),this.updateValueAndValidity({emitEvent:mt.emitEvent})}},{key:"setControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},On=this._adjustIndex(Oe);On<0&&(On=0),this.controls[On]&&this.controls[On]._registerOnCollectionChange(function(){}),this.controls.splice(On,1),mt&&(this.controls.splice(On,0,mt),this._registerControl(mt)),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,0,Oe),Oe.forEach(function(On,sr){kt(mt,!1,sr),mt.at(sr).setValue(On,{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Oe.forEach(function(On,sr){mt.at(sr)&&mt.at(sr).patchValue(On,{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ht,On){Ht.reset(Oe[On],{onlySelf:!0,emitEvent:mt.emitEvent})}),this._updatePristine(mt),this._updateTouched(mt),this.updateValueAndValidity(mt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Oe){return Oe.getRawValue()})}},{key:"clear",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(mt){return mt._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Oe.emitEvent}))}},{key:"_adjustIndex",value:function(Oe){return Oe<0?Oe+this.length:Oe}},{key:"_syncPendingControls",value:function(){var Oe=this.controls.reduce(function(mt,Ht){return!!Ht._syncPendingControls()||mt},!1);return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){this.controls.forEach(function(mt,Ht){Oe(mt,Ht)})}},{key:"_updateValue",value:function(){var Oe=this;this.value=this.controls.filter(function(mt){return mt.enabled||Oe.disabled}).map(function(mt){return mt.value})}},{key:"_anyControls",value:function(Oe){return this.controls.some(function(mt){return mt.enabled&&Oe(mt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(mt){return Oe._registerControl(mt)})}},{key:"_allControlsDisabled",value:function(){var mt,Oe=(0,A.Z)(this.controls);try{for(Oe.s();!(mt=Oe.n()).done;){if(mt.value.enabled)return!1}}catch(On){Oe.e(On)}finally{Oe.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Oe){Oe.setParent(this),Oe._registerOnCollectionChange(this._onCollectionChange)}},{key:"_find",value:function(Oe){var mt;return null!==(mt=this.at(Oe))&&void 0!==mt?mt:null}}]),se}(gt);function Sp(we){return!!we&&(void 0!==we.asyncValidators||void 0!==we.validators||void 0!==we.updateOn)}var Ds=function(){function we(){(0,j.Z)(this,we),this.useNonNullable=!1}return(0,L.Z)(we,[{key:"nonNullable",get:function(){var se=new we;return se.useNonNullable=!0,se}},{key:"group",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se),mt={};return Sp(Me)?mt=Me:null!==Me&&(mt.validators=Me.validator,mt.asyncValidators=Me.asyncValidator),new yt(Oe,mt)}},{key:"record",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se);return new Vn(Oe,Me)}},{key:"control",value:function(se,Me,Oe){var mt={};return this.useNonNullable?(Sp(Me)?mt=Me:(mt.validators=Me,mt.asyncValidators=Oe),new na(se,Object.assign(Object.assign({},mt),{nonNullable:!0}))):new na(se,Me,Oe)}},{key:"array",value:function(se,Me,Oe){var mt=this,Ht=se.map(function(On){return mt._createControl(On)});return new Qm(Ht,Me,Oe)}},{key:"_reduceControls",value:function(se){var Me=this,Oe={};return Object.keys(se).forEach(function(mt){Oe[mt]=Me._createControl(se[mt])}),Oe}},{key:"_createControl",value:function(se){if(se instanceof na)return se;if(se instanceof gt)return se;if(Array.isArray(se)){var Me=se[0],Oe=se.length>1?se[1]:null,mt=se.length>2?se[2]:null;return this.control(Me,Oe,mt)}return this.control(se)}}]),we}();Ds.\u0275fac=function(Te){return new(Te||Ds)},Ds.\u0275prov=v.Yz7({token:Ds,factory:Ds.\u0275fac,providedIn:Es});var qu=(0,L.Z)(function we(){(0,j.Z)(this,we)});qu.\u0275fac=function(Te){return new(Te||qu)},qu.\u0275prov=v.Yz7({token:qu,factory:function(){return(0,v.f3M)(Ds).nonNullable},providedIn:Es});var Gl=function(we){(0,x.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"group",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,G.Z)((0,W.Z)(se.prototype),"group",this).call(this,Oe,mt)}},{key:"control",value:function(Oe,mt,Ht){return(0,G.Z)((0,W.Z)(se.prototype),"control",this).call(this,Oe,mt,Ht)}},{key:"array",value:function(Oe,mt,Ht){return(0,G.Z)((0,W.Z)(se.prototype),"array",this).call(this,Oe,mt,Ht)}}]),se}(Ds);Gl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Gl)))(se||Gl)}}(),Gl.\u0275prov=v.Yz7({token:Gl,factory:Gl.\u0275fac,providedIn:Es});new v.GfV("14.3.0")},508:function(Ae,K,m){"use strict";m.d(K,{yN:function(){return Q},mZ:function(){return ne},rD:function(){return Ut},K7:function(){return ct},HF:function(){return ye},Y2:function(){return Kt},BQ:function(){return de},X2:function(){return B},uc:function(){return Ye},Nv:function(){return Bt},ey:function(){return ln},Ng:function(){return mn},rN:function(){return on},nP:function(){return Be},us:function(){return te},wG:function(){return Xt},si:function(){return Je},IR:function(){return qt},CB:function(){return En},jH:function(){return hn},pj:function(){return st},Kr:function(){return Mt},Id:function(){return je},FD:function(){return Et},dB:function(){return Lt},sb:function(){return Tt},E0:function(){return U}});var G=m(7326),W=m(3237),A=m(1120),H=m(136),R=m(9388),P=m(3144),x=m(5671),D=m(5e3),j=m(226),v=(new D.GfV("14.2.7"),m(9808)),k=m(925),b=m(5664),O=m(3191),S=m(7451),y=m(8929),T=m(1059),M=m(1159),E=["*",[["mat-option"],["ng-container"]]];function F(At,xt){if(1&At&&D._UZ(0,"mat-pseudo-checkbox",4),2&At){var et=D.oxw();D.Q6J("state",et.selected?"checked":"unchecked")("disabled",et.disabled)}}function X(At,xt){if(1&At&&(D.TgZ(0,"span",5),D._uU(1),D.qZA()),2&At){var et=D.oxw();D.xp6(1),D.hij("(",et.group.label,")")}}new D.GfV("14.2.7");var Q=(0,P.Z)(function At(){(0,x.Z)(this,At)});Q.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Q.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Q.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Q.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var ne=(0,P.Z)(function At(){(0,x.Z)(this,At)});ne.COMPLEX="375ms",ne.ENTERING="225ms",ne.EXITING="195ms";var fe=new D.OlP("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}}),de=function(){function At(xt,et,St){(0,x.Z)(this,At),this._sanityChecks=et,this._document=St,this._hasDoneGlobalChecks=!1,xt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(At,[{key:"_checkIsEnabled",value:function(et){return!(0,k.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[et])}}]),At}();function je(At){return function(xt){(0,H.Z)(St,xt);var et=(0,R.Z)(St);function St(){var ze;(0,x.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._disabled=!1,ze}return(0,P.Z)(St,[{key:"disabled",get:function(){return this._disabled},set:function(Ke){this._disabled=(0,O.Ig)(Ke)}}]),St}(At)}function st(At,xt){return function(et){(0,H.Z)(ze,et);var St=(0,R.Z)(ze);function ze(){var Ke;(0,x.Z)(this,ze);for(var Re=arguments.length,qe=new Array(Re),vt=0;vt<Re;vt++)qe[vt]=arguments[vt];return(Ke=St.call.apply(St,[this].concat(qe))).defaultColor=xt,Ke.color=xt,Ke}return(0,P.Z)(ze,[{key:"color",get:function(){return this._color},set:function(Re){var qe=Re||this.defaultColor;qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),qe&&this._elementRef.nativeElement.classList.add("mat-".concat(qe)),this._color=qe)}}]),ze}(At)}function Mt(At){return function(xt){(0,H.Z)(St,xt);var et=(0,R.Z)(St);function St(){var ze;(0,x.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._disableRipple=!1,ze}return(0,P.Z)(St,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Ke){this._disableRipple=(0,O.Ig)(Ke)}}]),St}(At)}function Tt(At){var xt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(et){(0,H.Z)(ze,et);var St=(0,R.Z)(ze);function ze(){var Ke;(0,x.Z)(this,ze);for(var Re=arguments.length,qe=new Array(Re),vt=0;vt<Re;vt++)qe[vt]=arguments[vt];return(Ke=St.call.apply(St,[this].concat(qe)))._tabIndex=xt,Ke.defaultTabIndex=xt,Ke}return(0,P.Z)(ze,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Re){this._tabIndex=null!=Re?(0,O.su)(Re):this.defaultTabIndex}}]),ze}(At)}function Et(At){return function(xt){(0,H.Z)(St,xt);var et=(0,R.Z)(St);function St(){var ze;(0,x.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re))).errorState=!1,ze}return(0,P.Z)(St,[{key:"updateErrorState",value:function(){var Ke=this.errorState,Re=this._parentFormGroup||this._parentForm,qe=this.errorStateMatcher||this._defaultErrorStateMatcher,vt=this.ngControl?this.ngControl.control:null,dn=qe.isErrorState(vt,Re);dn!==Ke&&(this.errorState=dn,this.stateChanges.next())}}]),St}(At)}function Lt(At){return function(xt){(0,H.Z)(St,xt);var et=(0,R.Z)(St);function St(){var ze;(0,x.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._isInitialized=!1,ze._pendingSubscribers=[],ze.initialized=new S.y(function(vt){ze._isInitialized?ze._notifySubscriber(vt):ze._pendingSubscribers.push(vt)}),ze}return(0,P.Z)(St,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Ke){Ke.next(),Ke.complete()}}]),St}(At)}de.\u0275fac=function(xt){return new(xt||de)(D.LFG(b.qm),D.LFG(fe,8),D.LFG(v.K0))},de.\u0275mod=D.oAB({type:de}),de.\u0275inj=D.cJS({imports:[j.vT,j.vT]});var Ze=new D.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function $t(){return(0,D.f3M)(D.soG)}});var Ft=function(){function At(){(0,x.Z)(this,At),this._localeChanges=new y.xQ,this.localeChanges=this._localeChanges}return(0,P.Z)(At,[{key:"getValidDateOrNull",value:function(et){return this.isDateInstance(et)&&this.isValid(et)?et:null}},{key:"deserialize",value:function(et){return null==et||this.isDateInstance(et)&&this.isValid(et)?et:this.invalid()}},{key:"setLocale",value:function(et){this.locale=et,this._localeChanges.next()}},{key:"compareDate",value:function(et,St){return this.getYear(et)-this.getYear(St)||this.getMonth(et)-this.getMonth(St)||this.getDate(et)-this.getDate(St)}},{key:"sameDate",value:function(et,St){if(et&&St){var ze=this.isValid(et),Ke=this.isValid(St);return ze&&Ke?!this.compareDate(et,St):ze==Ke}return et==St}},{key:"clampDate",value:function(et,St,ze){return St&&this.compareDate(et,St)<0?St:ze&&this.compareDate(et,ze)>0?ze:et}}]),At}(),pn=new D.OlP("mat-date-formats"),nt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ot(At,xt){for(var et=Array(At),St=0;St<At;St++)et[St]=xt(St);return et}var _t=function(At){(0,H.Z)(et,At);var xt=(0,R.Z)(et);function et(St,ze){var Ke,Re;return(0,x.Z)(this,et),(Re=xt.call(this)).useUtcForDisplay=!1,(0,W.Z)((Ke=(0,G.Z)(Re),(0,A.Z)(et.prototype)),"setLocale",Ke).call(Ke,St),Re}return(0,P.Z)(et,[{key:"getYear",value:function(ze){return ze.getFullYear()}},{key:"getMonth",value:function(ze){return ze.getMonth()}},{key:"getDate",value:function(ze){return ze.getDate()}},{key:"getDayOfWeek",value:function(ze){return ze.getDay()}},{key:"getMonthNames",value:function(ze){var Ke=this,Re=new Intl.DateTimeFormat(this.locale,{month:ze,timeZone:"utc"});return Ot(12,function(qe){return Ke._format(Re,new Date(2017,qe,1))})}},{key:"getDateNames",value:function(){var ze=this,Ke=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ot(31,function(Re){return ze._format(Ke,new Date(2017,0,Re+1))})}},{key:"getDayOfWeekNames",value:function(ze){var Ke=this,Re=new Intl.DateTimeFormat(this.locale,{weekday:ze,timeZone:"utc"});return Ot(7,function(qe){return Ke._format(Re,new Date(2017,0,qe+1))})}},{key:"getYearName",value:function(ze){var Ke=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ke,ze)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(ze){return this.getDate(this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+1,0))}},{key:"clone",value:function(ze){return new Date(ze.getTime())}},{key:"createDate",value:function(ze,Ke,Re){var qe=this._createDateWithOverflow(ze,Ke,Re);return qe.getMonth(),qe}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(ze,Ke){return"number"==typeof ze?new Date(ze):ze?new Date(Date.parse(ze)):null}},{key:"format",value:function(ze,Ke){if(!this.isValid(ze))throw Error("NativeDateAdapter: Cannot format invalid date.");var Re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Ke),{timeZone:"utc"}));return this._format(Re,ze)}},{key:"addCalendarYears",value:function(ze,Ke){return this.addCalendarMonths(ze,12*Ke)}},{key:"addCalendarMonths",value:function(ze,Ke){var Re=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+Ke,this.getDate(ze));return this.getMonth(Re)!=((this.getMonth(ze)+Ke)%12+12)%12&&(Re=this._createDateWithOverflow(this.getYear(Re),this.getMonth(Re),0)),Re}},{key:"addCalendarDays",value:function(ze,Ke){return this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),this.getDate(ze)+Ke)}},{key:"toIso8601",value:function(ze){return[ze.getUTCFullYear(),this._2digit(ze.getUTCMonth()+1),this._2digit(ze.getUTCDate())].join("-")}},{key:"deserialize",value:function(ze){if("string"==typeof ze){if(!ze)return null;if(nt.test(ze)){var Ke=new Date(ze);if(this.isValid(Ke))return Ke}}return(0,W.Z)((0,A.Z)(et.prototype),"deserialize",this).call(this,ze)}},{key:"isDateInstance",value:function(ze){return ze instanceof Date}},{key:"isValid",value:function(ze){return!isNaN(ze.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(ze,Ke,Re){var qe=new Date;return qe.setFullYear(ze,Ke,Re),qe.setHours(0,0,0,0),qe}},{key:"_2digit",value:function(ze){return("00"+ze).slice(-2)}},{key:"_format",value:function(ze,Ke){var Re=new Date;return Re.setUTCFullYear(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),Re.setUTCHours(Ke.getHours(),Ke.getMinutes(),Ke.getSeconds(),Ke.getMilliseconds()),ze.format(Re)}}]),et}(Ft);_t.\u0275fac=function(xt){return new(xt||_t)(D.LFG(Ze,8),D.LFG(k.t4))},_t.\u0275prov=D.Yz7({token:_t,factory:_t.\u0275fac});var We=(0,P.Z)(function At(){(0,x.Z)(this,At)});We.\u0275fac=function(xt){return new(xt||We)},We.\u0275mod=D.oAB({type:We}),We.\u0275inj=D.cJS({providers:[{provide:Ft,useClass:_t}]});var ut=(0,P.Z)(function At(){(0,x.Z)(this,At)});ut.\u0275fac=function(xt){return new(xt||ut)},ut.\u0275mod=D.oAB({type:ut}),ut.\u0275inj=D.cJS({providers:[{provide:pn,useValue:{parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}}}],imports:[We]});var dt=function(){function At(){(0,x.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(et,St){return!!(et&&et.invalid&&(et.dirty||St&&St.submitted))}}]),At}();dt.\u0275fac=function(xt){return new(xt||dt)},dt.\u0275prov=D.Yz7({token:dt,factory:dt.\u0275fac});var Ut=function(){function At(){(0,x.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(et,St){return!!(et&&et.invalid&&(et.touched||St&&St.submitted))}}]),At}();Ut.\u0275fac=function(xt){return new(xt||Ut)},Ut.\u0275prov=D.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var B=(0,P.Z)(function At(){(0,x.Z)(this,At)});function U(At,xt){var et=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";At.changes.pipe((0,T.O)(At)).subscribe(function(St){var ze=St.length;tt(xt,"".concat(et,"-2-line"),!1),tt(xt,"".concat(et,"-3-line"),!1),tt(xt,"".concat(et,"-multi-line"),!1),2===ze||3===ze?tt(xt,"".concat(et,"-").concat(ze,"-line"),!0):ze>3&&tt(xt,"".concat(et,"-multi-line"),!0)})}function tt(At,xt,et){At.nativeElement.classList.toggle(xt,et)}B.\u0275fac=function(xt){return new(xt||B)},B.\u0275dir=D.lG2({type:B,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var Ye=(0,P.Z)(function At(){(0,x.Z)(this,At)});Ye.\u0275fac=function(xt){return new(xt||Ye)},Ye.\u0275mod=D.oAB({type:Ye}),Ye.\u0275inj=D.cJS({imports:[de,de]});var ge=function(){function At(xt,et,St){var ze=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,x.Z)(this,At),this._renderer=xt,this.element=et,this.config=St,this._animationForciblyDisabledThroughCss=ze,this.state=3}return(0,P.Z)(At,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),At}(),t={enterDuration:225,exitDuration:150},Zt=(0,k.i$)({passive:!0}),zt=["mousedown","touchstart"],sn=["mouseup","mouseleave","touchend","touchcancel"],qt=function(){function At(xt,et,St,ze){(0,x.Z)(this,At),this._target=xt,this._ngZone=et,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ze.isBrowser&&(this._containerElement=(0,O.fI)(St))}return(0,P.Z)(At,[{key:"fadeInRipple",value:function(et,St){var ze=this,Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),qe=Object.assign(Object.assign({},t),Ke.animation);Ke.centered&&(et=Re.left+Re.width/2,St=Re.top+Re.height/2);var vt=Ke.radius||yn(et,St,Re),dn=et-Re.left,Hn=St-Re.top,Yt=qe.enterDuration,kt=document.createElement("div");kt.classList.add("mat-ripple-element"),kt.style.left="".concat(dn-vt,"px"),kt.style.top="".concat(Hn-vt,"px"),kt.style.height="".concat(2*vt,"px"),kt.style.width="".concat(2*vt,"px"),null!=Ke.color&&(kt.style.backgroundColor=Ke.color),kt.style.transitionDuration="".concat(Yt,"ms"),this._containerElement.appendChild(kt);var $e=window.getComputedStyle(kt),gt=$e.transitionProperty,yt=$e.transitionDuration,nn="none"===gt||"0s"===yt||"0s, 0s"===yt,Gn=new ge(this,kt,Ke,nn);kt.style.transform="scale3d(1, 1, 1)",Gn.state=0,Ke.persistent||(this._mostRecentTransientRipple=Gn);var Vn=null;return!nn&&(Yt||qe.exitDuration)&&this._ngZone.runOutsideAngular(function(){var Wn=function(){return ze._finishRippleTransition(Gn)},ar=function(){return ze._destroyRipple(Gn)};kt.addEventListener("transitionend",Wn),kt.addEventListener("transitioncancel",ar),Vn={onTransitionEnd:Wn,onTransitionCancel:ar}}),this._activeRipples.set(Gn,Vn),(nn||!Yt)&&this._finishRippleTransition(Gn),Gn}},{key:"fadeOutRipple",value:function(et){if(2!==et.state&&3!==et.state){var St=et.element,ze=Object.assign(Object.assign({},t),et.config.animation);St.style.transitionDuration="".concat(ze.exitDuration,"ms"),St.style.opacity="0",et.state=2,(et._animationForciblyDisabledThroughCss||!ze.exitDuration)&&this._finishRippleTransition(et)}}},{key:"fadeOutAll",value:function(){this._getActiveRipples().forEach(function(et){return et.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._getActiveRipples().forEach(function(et){et.config.persistent||et.fadeOut()})}},{key:"setupTriggerEvents",value:function(et){var St=(0,O.fI)(et);!St||St===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=St,this._registerEvents(zt))}},{key:"handleEvent",value:function(et){"mousedown"===et.type?this._onMousedown(et):"touchstart"===et.type?this._onTouchStart(et):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sn),this._pointerUpEventsRegistered=!0)}},{key:"_finishRippleTransition",value:function(et){0===et.state?this._startFadeOutTransition(et):2===et.state&&this._destroyRipple(et)}},{key:"_startFadeOutTransition",value:function(et){var St=et===this._mostRecentTransientRipple,ze=et.config.persistent;et.state=1,!ze&&(!St||!this._isPointerDown)&&et.fadeOut()}},{key:"_destroyRipple",value:function(et){var St,ze=null!==(St=this._activeRipples.get(et))&&void 0!==St?St:null;this._activeRipples.delete(et),this._activeRipples.size||(this._containerRect=null),et===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),et.state=3,null!==ze&&(et.element.removeEventListener("transitionend",ze.onTransitionEnd),et.element.removeEventListener("transitioncancel",ze.onTransitionCancel)),et.element.remove()}},{key:"_onMousedown",value:function(et){var St=(0,b.X6)(et),ze=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!St&&!ze&&(this._isPointerDown=!0,this.fadeInRipple(et.clientX,et.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(et){if(!this._target.rippleDisabled&&!(0,b.yG)(et)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var St=et.changedTouches,ze=0;ze<St.length;ze++)this.fadeInRipple(St[ze].clientX,St[ze].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(function(et){var St=1===et.state||et.config.terminateOnPointerUp&&0===et.state;!et.config.persistent&&St&&et.fadeOut()}))}},{key:"_registerEvents",value:function(et){var St=this;this._ngZone.runOutsideAngular(function(){et.forEach(function(ze){St._triggerElement.addEventListener(ze,St,Zt)})})}},{key:"_getActiveRipples",value:function(){return Array.from(this._activeRipples.keys())}},{key:"_removeTriggerEvents",value:function(){var et=this;this._triggerElement&&(zt.forEach(function(St){et._triggerElement.removeEventListener(St,et,Zt)}),this._pointerUpEventsRegistered&&sn.forEach(function(St){et._triggerElement.removeEventListener(St,et,Zt)}))}}]),At}();function yn(At,xt,et){var St=Math.max(Math.abs(At-et.left),Math.abs(At-et.right)),ze=Math.max(Math.abs(xt-et.top),Math.abs(xt-et.bottom));return Math.sqrt(St*St+ze*ze)}var Kt=new D.OlP("mat-ripple-global-options"),Xt=function(){function At(xt,et,St,ze,Ke){(0,x.Z)(this,At),this._elementRef=xt,this._animationMode=Ke,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ze||{},this._rippleRenderer=new qt(this,et,xt,St)}return(0,P.Z)(At,[{key:"disabled",get:function(){return this._disabled},set:function(et){et&&this.fadeOutAllNonPersistent(),this._disabled=et,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(et){this._trigger=et,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ze=arguments.length>2?arguments[2]:void 0;return"number"==typeof et?this._rippleRenderer.fadeInRipple(et,St,Object.assign(Object.assign({},this.rippleConfig),ze)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),et))}}]),At}();Xt.\u0275fac=function(xt){return new(xt||Xt)(D.Y36(D.SBq),D.Y36(D.R0b),D.Y36(k.t4),D.Y36(Kt,8),D.Y36(D.QbO,8))},Xt.\u0275dir=D.lG2({type:Xt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(xt,et){2&xt&&D.ekj("mat-ripple-unbounded",et.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});var Je=(0,P.Z)(function At(){(0,x.Z)(this,At)});Je.\u0275fac=function(xt){return new(xt||Je)},Je.\u0275mod=D.oAB({type:Je}),Je.\u0275inj=D.cJS({imports:[de,de]});var Be=(0,P.Z)(function At(xt){(0,x.Z)(this,At),this._animationMode=xt,this.state="unchecked",this.disabled=!1});Be.\u0275fac=function(xt){return new(xt||Be)(D.Y36(D.QbO,8))},Be.\u0275cmp=D.Xpm({type:Be,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(xt,et){2&xt&&D.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===et.state)("mat-pseudo-checkbox-checked","checked"===et.state)("mat-pseudo-checkbox-disabled",et.disabled)("_mat-animation-noopable","NoopAnimations"===et._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(xt,et){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0});var te=(0,P.Z)(function At(){(0,x.Z)(this,At)});te.\u0275fac=function(xt){return new(xt||te)},te.\u0275mod=D.oAB({type:te}),te.\u0275inj=D.cJS({imports:[de]});var ye=new D.OlP("MAT_OPTION_PARENT_COMPONENT"),pe=je(function(){return(0,P.Z)(function At(){(0,x.Z)(this,At)})}()),Ne=0,lt=function(At){(0,H.Z)(et,At);var xt=(0,R.Z)(et);function et(St){var ze,Ke;return(0,x.Z)(this,et),(ze=xt.call(this))._labelId="mat-optgroup-label-".concat(Ne++),ze._inert=null!==(Ke=null==St?void 0:St.inertGroups)&&void 0!==Ke&&Ke,ze}return(0,P.Z)(et)}(pe);lt.\u0275fac=function(xt){return new(xt||lt)(D.Y36(ye,8))},lt.\u0275dir=D.lG2({type:lt,inputs:{label:"label"},features:[D.qOj]});var ct=new D.OlP("MatOptgroup"),Bt=function(At){(0,H.Z)(et,At);var xt=(0,R.Z)(et);function et(){return(0,x.Z)(this,et),xt.apply(this,arguments)}return(0,P.Z)(et)}(lt);Bt.\u0275fac=function(){var At;return function(et){return(At||(At=D.n5z(Bt)))(et||Bt)}}(),Bt.\u0275cmp=D.Xpm({type:Bt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(xt,et){2&xt&&(D.uIk("role",et._inert?null:"group")("aria-disabled",et._inert?null:et.disabled.toString())("aria-labelledby",et._inert?null:et._labelId),D.ekj("mat-optgroup-disabled",et.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[D._Bn([{provide:ct,useExisting:Bt}]),D.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(xt,et){1&xt&&(D.F$t(E),D.TgZ(0,"span",0),D._uU(1),D.Hsn(2),D.qZA(),D.Hsn(3,1)),2&xt&&(D.Q6J("id",et._labelId),D.xp6(1),D.hij("",et.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0});var jt=0,on=(0,P.Z)(function At(xt){var et=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,x.Z)(this,At),this.source=xt,this.isUserInput=et}),vn=function(){function At(xt,et,St,ze){(0,x.Z)(this,At),this._element=xt,this._changeDetectorRef=et,this._parent=St,this.group=ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(jt++),this.onSelectionChange=new D.vpe,this._stateChanges=new y.xQ}return(0,P.Z)(At,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(et){this._disabled=(0,O.Ig)(et)}},{key:"disableRipple",get:function(){return!(!this._parent||!this._parent.disableRipple)}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(et,St){var ze=this._getHostElement();"function"==typeof ze.focus&&ze.focus(St)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(et){(et.keyCode===M.K5||et.keyCode===M.L_)&&!(0,M.Vb)(et)&&(this._selectViaInteraction(),et.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var et=this.viewValue;et!==this._mostRecentViewValue&&(this._mostRecentViewValue=et,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var et=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new on(this,et))}}]),At}();vn.\u0275fac=function(xt){D.$Z()},vn.\u0275dir=D.lG2({type:vn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var ln=function(At){(0,H.Z)(et,At);var xt=(0,R.Z)(et);function et(St,ze,Ke,Re){return(0,x.Z)(this,et),xt.call(this,St,ze,Ke,Re)}return(0,P.Z)(et)}(vn);function En(At,xt,et){if(et.length){for(var St=xt.toArray(),ze=et.toArray(),Ke=0,Re=0;Re<At+1;Re++)St[Re].group&&St[Re].group===ze[Ke]&&Ke++;return Ke}return 0}function hn(At,xt,et,St){return At<et?At:At+xt>et+St?Math.max(0,At-St+xt):et}ln.\u0275fac=function(xt){return new(xt||ln)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(ye,8),D.Y36(ct,8))},ln.\u0275cmp=D.Xpm({type:ln,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(xt,et){1&xt&&D.NdJ("click",function(){return et._selectViaInteraction()})("keydown",function(ze){return et._handleKeydown(ze)}),2&xt&&(D.Ikx("id",et.id),D.uIk("tabindex",et._getTabIndex())("aria-selected",et._getAriaSelected())("aria-disabled",et.disabled.toString()),D.ekj("mat-selected",et.selected)("mat-option-multiple",et.multiple)("mat-active",et.active)("mat-option-disabled",et.disabled))},exportAs:["matOption"],features:[D.qOj],ngContentSelectors:["*"],decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(xt,et){1&xt&&(D.F$t(),D.YNc(0,F,1,2,"mat-pseudo-checkbox",0),D.TgZ(1,"span",1),D.Hsn(2),D.qZA(),D.YNc(3,X,2,1,"span",2),D._UZ(4,"div",3)),2&xt&&(D.Q6J("ngIf",et.multiple),D.xp6(3),D.Q6J("ngIf",et.group&&et.group._inert),D.xp6(1),D.Q6J("matRippleTrigger",et._getHostElement())("matRippleDisabled",et.disabled||et.disableRipple))},dependencies:[Xt,v.O5,Be],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0});var mn=(0,P.Z)(function At(){(0,x.Z)(this,At)});mn.\u0275fac=function(xt){return new(xt||mn)},mn.\u0275mod=D.oAB({type:mn}),mn.\u0275inj=D.cJS({imports:[Je,v.ez,de,te]})},4834:function(Ae,K,m){"use strict";m.d(K,{d:function(){return P},t:function(){return x}});var G=m(5671),W=m(3144),A=m(5e3),H=m(3191),R=m(508),P=function(){function D(){(0,G.Z)(this,D),this._vertical=!1,this._inset=!1}return(0,W.Z)(D,[{key:"vertical",get:function(){return this._vertical},set:function(L){this._vertical=(0,H.Ig)(L)}},{key:"inset",get:function(){return this._inset},set:function(L){this._inset=(0,H.Ig)(L)}}]),D}();P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(j,L){2&j&&(A.uIk("aria-orientation",L.vertical?"vertical":"horizontal"),A.ekj("mat-divider-vertical",L.vertical)("mat-divider-horizontal",!L.vertical)("mat-divider-inset",L.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(j,L){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});var x=(0,W.Z)(function D(){(0,G.Z)(this,D)});x.\u0275fac=function(j){return new(j||x)},x.\u0275mod=A.oAB({type:x}),x.\u0275inj=A.cJS({imports:[R.BQ,R.BQ]})},7322:function(Ae,K,m){"use strict";m.d(K,{Eo:function(){return $t},G_:function(){return Zt},KE:function(){return zt},R9:function(){return U},TO:function(){return Lt},hX:function(){return We},lN:function(){return sn}});var G=m(4902),W=m(136),A=m(9388),H=m(3144),R=m(5671),P=m(7144),x=m(9808),D=m(5e3),j=m(508),L=m(3191),v=m(8929),k=m(6787),b=m(3753),O=m(1059),S=m(7625),y=m(2986),T=m(1777),M=m(226),E=m(925),N=["connectionContainer"],F=["inputContainer"],X=["label"];function $(qt,yn){1&qt&&(D.ynx(0),D.TgZ(1,"div",14),D._UZ(2,"div",15)(3,"div",16)(4,"div",17),D.qZA(),D.TgZ(5,"div",18),D._UZ(6,"div",15)(7,"div",16)(8,"div",17),D.qZA(),D.BQk())}function Y(qt,yn){if(1&qt){var Kt=D.EpF();D.TgZ(0,"div",19),D.NdJ("cdkObserveContent",function(){D.CHM(Kt);var Be=D.oxw();return D.KtG(Be.updateOutlineGap())}),D.Hsn(1,1),D.qZA()}if(2&qt){var Xt=D.oxw();D.Q6J("cdkObserveContentDisabled","outline"!=Xt.appearance)}}function Q(qt,yn){if(1&qt&&(D.ynx(0),D.Hsn(1,2),D.TgZ(2,"span"),D._uU(3),D.qZA(),D.BQk()),2&qt){var Kt=D.oxw(2);D.xp6(3),D.Oqu(Kt._control.placeholder)}}function ne(qt,yn){1&qt&&D.Hsn(0,3,["*ngSwitchCase","true"])}function be(qt,yn){1&qt&&(D.TgZ(0,"span",23),D._uU(1," *"),D.qZA())}function fe(qt,yn){if(1&qt){var Kt=D.EpF();D.TgZ(0,"label",20,21),D.NdJ("cdkObserveContent",function(){D.CHM(Kt);var Be=D.oxw();return D.KtG(Be.updateOutlineGap())}),D.YNc(2,Q,4,1,"ng-container",12),D.YNc(3,ne,1,0,"ng-content",12),D.YNc(4,be,2,0,"span",22),D.qZA()}if(2&qt){var Xt=D.oxw();D.ekj("mat-empty",Xt._control.empty&&!Xt._shouldAlwaysFloat())("mat-form-field-empty",Xt._control.empty&&!Xt._shouldAlwaysFloat())("mat-accent","accent"==Xt.color)("mat-warn","warn"==Xt.color),D.Q6J("cdkObserveContentDisabled","outline"!=Xt.appearance)("id",Xt._labelId)("ngSwitch",Xt._hasLabel()),D.uIk("for",Xt._control.id)("aria-owns",Xt._control.id),D.xp6(2),D.Q6J("ngSwitchCase",!1),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngIf",!Xt.hideRequiredMarker&&Xt._control.required&&!Xt._control.disabled)}}function de(qt,yn){1&qt&&(D.TgZ(0,"div",24),D.Hsn(1,4),D.qZA())}function le(qt,yn){if(1&qt&&(D.TgZ(0,"div",25),D._UZ(1,"span",26),D.qZA()),2&qt){var Kt=D.oxw();D.xp6(1),D.ekj("mat-accent","accent"==Kt.color)("mat-warn","warn"==Kt.color)}}function ce(qt,yn){if(1&qt&&(D.TgZ(0,"div"),D.Hsn(1,5),D.qZA()),2&qt){var Kt=D.oxw();D.Q6J("@transitionMessages",Kt._subscriptAnimationState)}}function me(qt,yn){if(1&qt&&(D.TgZ(0,"div",30),D._uU(1),D.qZA()),2&qt){var Kt=D.oxw(2);D.Q6J("id",Kt._hintLabelId),D.xp6(1),D.Oqu(Kt.hintLabel)}}function je(qt,yn){if(1&qt&&(D.TgZ(0,"div",27),D.YNc(1,me,2,2,"div",28),D.Hsn(2,6),D._UZ(3,"div",29),D.Hsn(4,7),D.qZA()),2&qt){var Kt=D.oxw();D.Q6J("@transitionMessages",Kt._subscriptAnimationState),D.xp6(1),D.Q6J("ngIf",Kt.hintLabel)}}var st=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Tt=0,Et=new D.OlP("MatError"),Lt=(0,H.Z)(function qt(yn,Kt){(0,R.Z)(this,qt),this.id="mat-error-".concat(Tt++),yn||Kt.nativeElement.setAttribute("aria-live","polite")});Lt.\u0275fac=function(yn){return new(yn||Lt)(D.$8M("aria-live"),D.Y36(D.SBq))},Lt.\u0275dir=D.lG2({type:Lt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(yn,Kt){2&yn&&D.uIk("id",Kt.id)},inputs:{id:"id"},features:[D._Bn([{provide:Et,useExisting:Lt}])]});var Ze={transitionMessages:(0,T.X$)("transitionMessages",[(0,T.SB)("enter",(0,T.oB)({opacity:1,transform:"translateY(0%)"})),(0,T.eR)("void => enter",[(0,T.oB)({opacity:0,transform:"translateY(-5px)"}),(0,T.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$t=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});$t.\u0275fac=function(yn){return new(yn||$t)},$t.\u0275dir=D.lG2({type:$t});var Ot=0,_t=new D.OlP("MatHint"),Ct=(0,H.Z)(function qt(){(0,R.Z)(this,qt),this.align="start",this.id="mat-hint-".concat(Ot++)});Ct.\u0275fac=function(yn){return new(yn||Ct)},Ct.\u0275dir=D.lG2({type:Ct,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(yn,Kt){2&yn&&(D.uIk("id",Kt.id)("align",null),D.ekj("mat-form-field-hint-end","end"===Kt.align))},inputs:{align:"align",id:"id"},features:[D._Bn([{provide:_t,useExisting:Ct}])]});var We=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});We.\u0275fac=function(yn){return new(yn||We)},We.\u0275dir=D.lG2({type:We,selectors:[["mat-label"]]});var ut=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});ut.\u0275fac=function(yn){return new(yn||ut)},ut.\u0275dir=D.lG2({type:ut,selectors:[["mat-placeholder"]]});var dt=new D.OlP("MatPrefix"),Ut=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});Ut.\u0275fac=function(yn){return new(yn||Ut)},Ut.\u0275dir=D.lG2({type:Ut,selectors:[["","matPrefix",""]],features:[D._Bn([{provide:dt,useExisting:Ut}])]});var B=new D.OlP("MatSuffix"),U=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});U.\u0275fac=function(yn){return new(yn||U)},U.\u0275dir=D.lG2({type:U,selectors:[["","matSuffix",""]],features:[D._Bn([{provide:B,useExisting:U}])]});var tt=0,t=(0,j.pj)(function(){return(0,H.Z)(function qt(yn){(0,R.Z)(this,qt),this._elementRef=yn})}(),"primary"),Dt=new D.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zt=new D.OlP("MatFormField"),zt=function(qt){(0,W.Z)(Kt,qt);var yn=(0,A.Z)(Kt);function Kt(Xt,Je,Be,te,ye,pe,Ne){var lt;return(0,R.Z)(this,Kt),(lt=yn.call(this,Xt))._changeDetectorRef=Je,lt._dir=Be,lt._defaults=te,lt._platform=ye,lt._ngZone=pe,lt._outlineGapCalculationNeededImmediately=!1,lt._outlineGapCalculationNeededOnStable=!1,lt._destroyed=new v.xQ,lt._hideRequiredMarker=!1,lt._showAlwaysAnimate=!1,lt._subscriptAnimationState="",lt._hintLabel="",lt._hintLabelId="mat-hint-".concat(tt++),lt._labelId="mat-form-field-label-".concat(tt++),lt.floatLabel=lt._getDefaultFloatLabelState(),lt._animationsEnabled="NoopAnimations"!==Ne,lt.appearance=(null==te?void 0:te.appearance)||"legacy",te&&(lt._hideRequiredMarker=Boolean(te.hideRequiredMarker),te.color&&(lt.color=lt.defaultColor=te.color)),lt}return(0,H.Z)(Kt,[{key:"appearance",get:function(){return this._appearance},set:function(Je){var Be,te=this._appearance;this._appearance=Je||(null===(Be=this._defaults)||void 0===Be?void 0:Be.appearance)||"legacy","outline"===this._appearance&&te!==Je&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Je){this._hideRequiredMarker=(0,L.Ig)(Je)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(Je){this._hintLabel=Je,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Je){Je!==this._floatLabel&&(this._floatLabel=Je||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Je){this._explicitFormFieldControl=Je}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Je=this;this._validateControlChild();var Be=this._control;Be.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Be.controlType)),Be.stateChanges.pipe((0,O.O)(null)).subscribe(function(){Je._validatePlaceholders(),Je._syncDescribedByIds(),Je._changeDetectorRef.markForCheck()}),Be.ngControl&&Be.ngControl.valueChanges&&Be.ngControl.valueChanges.pipe((0,S.R)(this._destroyed)).subscribe(function(){return Je._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Je._ngZone.onStable.pipe((0,S.R)(Je._destroyed)).subscribe(function(){Je._outlineGapCalculationNeededOnStable&&Je.updateOutlineGap()})}),(0,k.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Je._outlineGapCalculationNeededOnStable=!0,Je._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Je._processHints(),Je._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Je._syncDescribedByIds(),Je._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,S.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Je._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Je.updateOutlineGap()})}):Je.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(Je){var Be=this._control?this._control.ngControl:null;return Be&&Be[Je]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var Je=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,b.R)(this._label.nativeElement,"transitionend").pipe((0,y.q)(1)).subscribe(function(){Je._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){this._control.placeholder&&this._placeholderChild}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){this._hintChildren}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var Je=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Je.push.apply(Je,(0,G.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Be=this._hintChildren?this._hintChildren.find(function(ye){return"start"===ye.align}):null,te=this._hintChildren?this._hintChildren.find(function(ye){return"end"===ye.align}):null;Be?Je.push(Be.id):this._hintLabel&&Je.push(this._hintLabelId),te&&Je.push(te.id)}else this._errorChildren&&Je.push.apply(Je,(0,G.Z)(this._errorChildren.map(function(ye){return ye.id})));this._control.setDescribedByIds(Je)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Je=this._label?this._label.nativeElement:null,Be=this._connectionContainerRef.nativeElement,te=".mat-form-field-outline-start",ye=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Je||!Je.children.length||!Je.textContent.trim()){for(var pe=Be.querySelectorAll("".concat(te,", ").concat(ye)),Ne=0;Ne<pe.length;Ne++)pe[Ne].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var lt=0,ct=0,Bt=Be.querySelectorAll(te),jt=Be.querySelectorAll(ye);if(this._label&&this._label.nativeElement.children.length){var on=Be.getBoundingClientRect();if(0===on.width&&0===on.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var vn=this._getStartEnd(on),ln=Je.children,En=this._getStartEnd(ln[0].getBoundingClientRect()),hn=0,mn=0;mn<ln.length;mn++)hn+=ln[mn].offsetWidth;lt=Math.abs(En-vn)-5,ct=hn>0?.75*hn+10:0}for(var At=0;At<Bt.length;At++)Bt[At].style.width="".concat(lt,"px");for(var xt=0;xt<jt.length;xt++)jt[xt].style.width="".concat(ct,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Je){return this._dir&&"rtl"===this._dir.value?Je.right:Je.left}},{key:"_isAttachedToDOM",value:function(){var Je=this._elementRef.nativeElement;if(Je.getRootNode){var Be=Je.getRootNode();return Be&&Be!==Je}return document.documentElement.contains(Je)}}]),Kt}(t);zt.\u0275fac=function(yn){return new(yn||zt)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(M.Is,8),D.Y36(Dt,8),D.Y36(E.t4),D.Y36(D.R0b),D.Y36(D.QbO,8))},zt.\u0275cmp=D.Xpm({type:zt,selectors:[["mat-form-field"]],contentQueries:function(yn,Kt,Xt){var Je;(1&yn&&(D.Suo(Xt,$t,5),D.Suo(Xt,$t,7),D.Suo(Xt,We,5),D.Suo(Xt,We,7),D.Suo(Xt,ut,5),D.Suo(Xt,Et,5),D.Suo(Xt,_t,5),D.Suo(Xt,dt,5),D.Suo(Xt,B,5)),2&yn)&&(D.iGM(Je=D.CRH())&&(Kt._controlNonStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._controlStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._labelChildNonStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._labelChildStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._placeholderChild=Je.first),D.iGM(Je=D.CRH())&&(Kt._errorChildren=Je),D.iGM(Je=D.CRH())&&(Kt._hintChildren=Je),D.iGM(Je=D.CRH())&&(Kt._prefixChildren=Je),D.iGM(Je=D.CRH())&&(Kt._suffixChildren=Je))},viewQuery:function(yn,Kt){var Xt;(1&yn&&(D.Gf(N,7),D.Gf(F,5),D.Gf(X,5)),2&yn)&&(D.iGM(Xt=D.CRH())&&(Kt._connectionContainerRef=Xt.first),D.iGM(Xt=D.CRH())&&(Kt._inputContainerRef=Xt.first),D.iGM(Xt=D.CRH())&&(Kt._label=Xt.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(yn,Kt){2&yn&&D.ekj("mat-form-field-appearance-standard","standard"==Kt.appearance)("mat-form-field-appearance-fill","fill"==Kt.appearance)("mat-form-field-appearance-outline","outline"==Kt.appearance)("mat-form-field-appearance-legacy","legacy"==Kt.appearance)("mat-form-field-invalid",Kt._control.errorState)("mat-form-field-can-float",Kt._canLabelFloat())("mat-form-field-should-float",Kt._shouldLabelFloat())("mat-form-field-has-label",Kt._hasFloatingLabel())("mat-form-field-hide-placeholder",Kt._hideControlPlaceholder())("mat-form-field-disabled",Kt._control.disabled)("mat-form-field-autofilled",Kt._control.autofilled)("mat-focused",Kt._control.focused)("ng-untouched",Kt._shouldForward("untouched"))("ng-touched",Kt._shouldForward("touched"))("ng-pristine",Kt._shouldForward("pristine"))("ng-dirty",Kt._shouldForward("dirty"))("ng-valid",Kt._shouldForward("valid"))("ng-invalid",Kt._shouldForward("invalid"))("ng-pending",Kt._shouldForward("pending"))("_mat-animation-noopable",!Kt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[D._Bn([{provide:Zt,useExisting:zt}]),D.qOj],ngContentSelectors:["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(yn,Kt){1&yn&&(D.F$t(st),D.TgZ(0,"div",0)(1,"div",1,2),D.NdJ("click",function(Je){return Kt._control.onContainerClick&&Kt._control.onContainerClick(Je)}),D.YNc(3,$,9,0,"ng-container",3),D.YNc(4,Y,2,1,"div",4),D.TgZ(5,"div",5,6),D.Hsn(7),D.TgZ(8,"span",7),D.YNc(9,fe,5,16,"label",8),D.qZA()(),D.YNc(10,de,2,0,"div",9),D.qZA(),D.YNc(11,le,2,4,"div",10),D.TgZ(12,"div",11),D.YNc(13,ce,2,1,"div",12),D.YNc(14,je,5,2,"div",13),D.qZA()()),2&yn&&(D.xp6(3),D.Q6J("ngIf","outline"==Kt.appearance),D.xp6(1),D.Q6J("ngIf",Kt._prefixChildren.length),D.xp6(5),D.Q6J("ngIf",Kt._hasFloatingLabel()),D.xp6(1),D.Q6J("ngIf",Kt._suffixChildren.length),D.xp6(1),D.Q6J("ngIf","outline"!=Kt.appearance),D.xp6(1),D.Q6J("ngSwitch",Kt._getDisplayedMessages()),D.xp6(1),D.Q6J("ngSwitchCase","error"),D.xp6(1),D.Q6J("ngSwitchCase","hint"))},dependencies:[x.O5,x.RF,x.n9,P.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Ze.transitionMessages]},changeDetection:0});var sn=(0,H.Z)(function qt(){(0,R.Z)(this,qt)});sn.\u0275fac=function(yn){return new(yn||sn)},sn.\u0275mod=D.oAB({type:sn}),sn.\u0275inj=D.cJS({imports:[x.ez,j.BQ,P.Q8,j.BQ]})},4107:function(Ae,K,m){"use strict";m.d(K,{LD:function(){return yn},gD:function(){return qt}});var G=m(3237),W=m(1120),A=m(4902),H=m(7326),R=m(136),P=m(9388),x=m(3144),D=m(5671),j=m(1314),L=m(9808),v=m(5e3),k=m(508),b=m(7322),O=m(9071),S=m(5664),y=m(3191),T=m(449),M=m(1159),E=m(3075),N=m(8929),F=m(8514),X=m(6787),$=m(1059),Y=m(7545),Q=m(2986),ne=m(9664),be=m(4850),fe=m(5778),de=m(7625),le=m(1777),ce=m(226),me=["trigger"],je=["panel"];function st(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Kt){var Je=v.oxw();v.xp6(1),v.Oqu(Je.placeholder)}}function Mt(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Kt){var Je=v.oxw(2);v.xp6(1),v.Oqu(Je.triggerValue)}}function Tt(Kt,Xt){1&Kt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function Et(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",9),v.YNc(1,Mt,2,1,"span",10),v.YNc(2,Tt,1,0,"ng-content",11),v.qZA()),2&Kt){var Je=v.oxw();v.Q6J("ngSwitch",!!Je.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function Lt(Kt,Xt){if(1&Kt){var Je=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(ye){v.CHM(Je);var pe=v.oxw();return v.KtG(pe._panelDoneAnimatingStream.next(ye.toState))})("keydown",function(ye){v.CHM(Je);var pe=v.oxw();return v.KtG(pe._handleKeydown(ye))}),v.Hsn(3,1),v.qZA()()}if(2&Kt){var Be=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",Be._getPanelTheme(),""),v.Udp("transform-origin",Be._transformOrigin)("font-size",Be._triggerFontSize,"px"),v.Q6J("ngClass",Be.panelClass)("@transformPanel",Be.multiple?"showing-multiple":"showing"),v.uIk("id",Be.id+"-panel")("aria-multiselectable",Be.multiple)("aria-label",Be.ariaLabel||null)("aria-labelledby",Be._getPanelAriaLabelledby())}}var Ze=[[["mat-select-trigger"]],"*"],Ft={transformPanelWrap:(0,le.X$)("transformPanelWrap",[(0,le.eR)("* => void",(0,le.IO)("@transformPanel",[(0,le.pV)()],{optional:!0}))]),transformPanel:(0,le.X$)("transformPanel",[(0,le.SB)("void",(0,le.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,le.SB)("showing",(0,le.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,le.SB)("showing-multiple",(0,le.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,le.eR)("void => *",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))])};var _t=0,U=new v.OlP("mat-select-scroll-strategy");var Ye=new v.OlP("MAT_SELECT_CONFIG"),ge={provide:U,deps:[j.aV],useFactory:function tt(Kt){return function(){return Kt.scrollStrategies.reposition()}}},t=(0,x.Z)(function Kt(Xt,Je){(0,D.Z)(this,Kt),this.source=Xt,this.value=Je}),Dt=(0,k.Kr)((0,k.sb)((0,k.Id)((0,k.FD)(function(){return(0,x.Z)(function Kt(Xt,Je,Be,te,ye){(0,D.Z)(this,Kt),this._elementRef=Xt,this._defaultErrorStateMatcher=Je,this._parentForm=Be,this._parentFormGroup=te,this.ngControl=ye,this.stateChanges=new N.xQ})}())))),Zt=new v.OlP("MatSelectTrigger"),zt=(0,x.Z)(function Kt(){(0,D.Z)(this,Kt)});zt.\u0275fac=function(Xt){return new(Xt||zt)},zt.\u0275dir=v.lG2({type:zt,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:Zt,useExisting:zt}])]});var sn=function(Kt){(0,R.Z)(Je,Kt);var Xt=(0,P.Z)(Je);function Je(Be,te,ye,pe,Ne,lt,ct,Bt,jt,on,vn,ln,En,hn){var mn,At,xt,et;return(0,D.Z)(this,Je),(mn=Xt.call(this,Ne,pe,ct,Bt,on))._viewportRuler=Be,mn._changeDetectorRef=te,mn._ngZone=ye,mn._dir=lt,mn._parentFormField=jt,mn._liveAnnouncer=En,mn._defaultOptions=hn,mn._panelOpen=!1,mn._compareWith=function(St,ze){return St===ze},mn._uid="mat-select-".concat(_t++),mn._triggerAriaLabelledBy=null,mn._destroy=new N.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(_t++),mn._panelDoneAnimatingStream=new N.xQ,mn._overlayPanelClass=(null===(At=mn._defaultOptions)||void 0===At?void 0:At.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(et=null===(xt=mn._defaultOptions)||void 0===xt?void 0:xt.disableOptionCentering)&&void 0!==et&&et,mn.ariaLabel="",mn.optionSelectionChanges=(0,F.P)(function(){var St=mn.options;return St?St.changes.pipe((0,$.O)(St),(0,Y.w)(function(){return X.T.apply(void 0,(0,A.Z)(St.map(function(ze){return ze.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,Q.q)(1),(0,Y.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new v.vpe,mn._openedStream=mn.openedChange.pipe((0,ne.h)(function(St){return St}),(0,be.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,ne.h)(function(St){return!St}),(0,be.U)(function(){})),mn.selectionChange=new v.vpe,mn.valueChange=new v.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,H.Z)(mn)),null!=(null==hn?void 0:hn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=hn.typeaheadDebounceInterval),mn._scrollStrategyFactory=ln,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(vn)||0,mn.id=mn.id,mn}return(0,x.Z)(Je,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(te){this._placeholder=te,this.stateChanges.next()}},{key:"required",get:function(){var te,ye,pe,Ne;return null!==(Ne=null!==(te=this._required)&&void 0!==te?te:null===(pe=null===(ye=this.ngControl)||void 0===ye?void 0:ye.control)||void 0===pe?void 0:pe.hasValidator(E.kI.required))&&void 0!==Ne&&Ne},set:function(te){this._required=(0,y.Ig)(te),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(te){this._selectionModel,this._multiple=(0,y.Ig)(te)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(te){this._disableOptionCentering=(0,y.Ig)(te)}},{key:"compareWith",get:function(){return this._compareWith},set:function(te){this._compareWith=te,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(te){this._assignValue(te)&&this._onChange(te)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(te){this._typeaheadDebounceInterval=(0,y.su)(te)}},{key:"id",get:function(){return this._id},set:function(te){this._id=te||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var te=this;this._selectionModel=new T.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,fe.x)(),(0,de.R)(this._destroy)).subscribe(function(){return te._panelDoneAnimating(te.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var te=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,de.R)(this._destroy)).subscribe(function(ye){ye.added.forEach(function(pe){return pe.select()}),ye.removed.forEach(function(pe){return pe.deselect()})}),this.options.changes.pipe((0,$.O)(null),(0,de.R)(this._destroy)).subscribe(function(){te._resetOptions(),te._initializeSelection()})}},{key:"ngDoCheck",value:function(){var te=this._getTriggerAriaLabelledby(),ye=this.ngControl;if(te!==this._triggerAriaLabelledBy){var pe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=te,te?pe.setAttribute("aria-labelledby",te):pe.removeAttribute("aria-labelledby")}ye&&(this._previousControl!==ye.control&&(void 0!==this._previousControl&&null!==ye.disabled&&ye.disabled!==this.disabled&&(this.disabled=ye.disabled),this._previousControl=ye.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(te){(te.disabled||te.userAriaDescribedBy)&&this.stateChanges.next(),te.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(te){this._assignValue(te)}},{key:"registerOnChange",value:function(te){this._onChange=te}},{key:"registerOnTouched",value:function(te){this._onTouched=te}},{key:"setDisabledState",value:function(te){this.disabled=te,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var te,ye;return this.multiple?(null===(te=this._selectionModel)||void 0===te?void 0:te.selected)||[]:null===(ye=this._selectionModel)||void 0===ye?void 0:ye.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var te=this._selectionModel.selected.map(function(ye){return ye.viewValue});return this._isRtl()&&te.reverse(),te.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(te){this.disabled||(this.panelOpen?this._handleOpenKeydown(te):this._handleClosedKeydown(te))}},{key:"_handleClosedKeydown",value:function(te){var ye=te.keyCode,pe=ye===M.JH||ye===M.LH||ye===M.oh||ye===M.SV,Ne=ye===M.K5||ye===M.L_,lt=this._keyManager;if(!lt.isTyping()&&Ne&&!(0,M.Vb)(te)||(this.multiple||te.altKey)&&pe)te.preventDefault(),this.open();else if(!this.multiple){var ct=this.selected;lt.onKeydown(te);var Bt=this.selected;Bt&&ct!==Bt&&this._liveAnnouncer.announce(Bt.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(te){var ye=this._keyManager,pe=te.keyCode,Ne=pe===M.JH||pe===M.LH,lt=ye.isTyping();if(Ne&&te.altKey)te.preventDefault(),this.close();else if(lt||pe!==M.K5&&pe!==M.L_||!ye.activeItem||(0,M.Vb)(te))if(!lt&&this._multiple&&pe===M.A&&te.ctrlKey){te.preventDefault();var ct=this.options.some(function(jt){return!jt.disabled&&!jt.selected});this.options.forEach(function(jt){jt.disabled||(ct?jt.select():jt.deselect())})}else{var Bt=ye.activeItemIndex;ye.onKeydown(te),this._multiple&&Ne&&te.shiftKey&&ye.activeItem&&ye.activeItemIndex!==Bt&&ye.activeItem._selectViaInteraction()}else te.preventDefault(),ye.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var te=this;this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(function(){te._changeDetectorRef.detectChanges(),te._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var te=this;Promise.resolve().then(function(){te.ngControl&&(te._value=te.ngControl.value),te._setSelectionByValue(te._value),te.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(te){var ye=this;if(this._selectionModel.selected.forEach(function(Ne){return Ne.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&te)Array.isArray(te),te.forEach(function(Ne){return ye._selectOptionByValue(Ne)}),this._sortValues();else{var pe=this._selectOptionByValue(te);pe?this._keyManager.updateActiveItem(pe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(te){var ye=this,pe=this.options.find(function(Ne){if(ye._selectionModel.isSelected(Ne))return!1;try{return null!=Ne.value&&ye._compareWith(Ne.value,te)}catch(lt){return!1}});return pe&&this._selectionModel.select(pe),pe}},{key:"_assignValue",value:function(te){return!!(te!==this._value||this._multiple&&Array.isArray(te))&&(this.options&&this._setSelectionByValue(te),this._value=te,!0)}},{key:"_initKeyManager",value:function(){var te=this;this._keyManager=new S.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,de.R)(this._destroy)).subscribe(function(){te.panelOpen&&(!te.multiple&&te._keyManager.activeItem&&te._keyManager.activeItem._selectViaInteraction(),te.focus(),te.close())}),this._keyManager.change.pipe((0,de.R)(this._destroy)).subscribe(function(){te._panelOpen&&te.panel?te._scrollOptionIntoView(te._keyManager.activeItemIndex||0):!te._panelOpen&&!te.multiple&&te._keyManager.activeItem&&te._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var te=this,ye=(0,X.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(ye)).subscribe(function(pe){te._onSelect(pe.source,pe.isUserInput),pe.isUserInput&&!te.multiple&&te._panelOpen&&(te.close(),te.focus())}),X.T.apply(void 0,(0,A.Z)(this.options.map(function(pe){return pe._stateChanges}))).pipe((0,de.R)(ye)).subscribe(function(){te._changeDetectorRef.markForCheck(),te.stateChanges.next()})}},{key:"_onSelect",value:function(te,ye){var pe=this._selectionModel.isSelected(te);null!=te.value||this._multiple?(pe!==te.selected&&(te.selected?this._selectionModel.select(te):this._selectionModel.deselect(te)),ye&&this._keyManager.setActiveItem(te),this.multiple&&(this._sortValues(),ye&&this.focus())):(te.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(te.value)),pe!==this._selectionModel.isSelected(te)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var te=this;if(this.multiple){var ye=this.options.toArray();this._selectionModel.sort(function(pe,Ne){return te.sortComparator?te.sortComparator(pe,Ne,ye):ye.indexOf(pe)-ye.indexOf(Ne)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(te){var ye=null;ye=this.multiple?this.selected.map(function(pe){return pe.value}):this.selected?this.selected.value:te,this._value=ye,this.valueChange.emit(ye),this._onChange(ye),this.selectionChange.emit(this._getChangeEvent(ye)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var te;return!this._panelOpen&&!this.disabled&&(null===(te=this.options)||void 0===te?void 0:te.length)>0}},{key:"focus",value:function(te){this._elementRef.nativeElement.focus(te)}},{key:"_getPanelAriaLabelledby",value:function(){var te;if(this.ariaLabel)return null;var ye=null===(te=this._parentFormField)||void 0===te?void 0:te.getLabelId(),pe=ye?ye+" ":"";return this.ariaLabelledby?pe+this.ariaLabelledby:ye}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var te;if(this.ariaLabel)return null;var ye=null===(te=this._parentFormField)||void 0===te?void 0:te.getLabelId(),pe=(ye?ye+" ":"")+this._valueId;return this.ariaLabelledby&&(pe+=" "+this.ariaLabelledby),pe}},{key:"_panelDoneAnimating",value:function(te){this.openedChange.emit(te)}},{key:"setDescribedByIds",value:function(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),Je}(Dt);sn.\u0275fac=function(Xt){return new(Xt||sn)(v.Y36(O.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(k.rD),v.Y36(v.SBq),v.Y36(ce.Is,8),v.Y36(E.F,8),v.Y36(E.sg,8),v.Y36(b.G_,8),v.Y36(E.a5,10),v.$8M("tabindex"),v.Y36(U),v.Y36(S.Kd),v.Y36(Ye,8))},sn.\u0275dir=v.lG2({type:sn,viewQuery:function(Xt,Je){var Be;(1&Xt&&(v.Gf(me,5),v.Gf(je,5),v.Gf(j.pI,5)),2&Xt)&&(v.iGM(Be=v.CRH())&&(Je.trigger=Be.first),v.iGM(Be=v.CRH())&&(Je.panel=Be.first),v.iGM(Be=v.CRH())&&(Je._overlayDir=Be.first))},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]});var qt=function(Kt){(0,R.Z)(Je,Kt);var Xt=(0,P.Z)(Je);function Je(){var Be;return(0,D.Z)(this,Je),(Be=Xt.apply(this,arguments))._scrollTop=0,Be._triggerFontSize=0,Be._transformOrigin="top",Be._offsetY=0,Be._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Be}return(0,x.Z)(Je,[{key:"_calculateOverlayScroll",value:function(te,ye,pe){var Ne=this._getItemHeight(),Bt=Ne*te-ye+Ne/2;return Math.min(Math.max(0,Bt),pe)}},{key:"ngOnInit",value:function(){var te=this;(0,G.Z)((0,W.Z)(Je.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,de.R)(this._destroy)).subscribe(function(){te.panelOpen&&(te._triggerRect=te.trigger.nativeElement.getBoundingClientRect(),te._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var te=this;(0,G.Z)((0,W.Z)(Je.prototype),"_canOpen",this).call(this)&&((0,G.Z)((0,W.Z)(Je.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(function(){te._triggerFontSize&&te._overlayDir.overlayRef&&te._overlayDir.overlayRef.overlayElement&&(te._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(te._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(te){var ye=(0,k.CB)(te,this.options,this.optionGroups),pe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===te&&1===ye?0:(0,k.jH)((te+ye)*pe,pe,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(te){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,G.Z)((0,W.Z)(Je.prototype),"_panelDoneAnimating",this).call(this,te)}},{key:"_getChangeEvent",value:function(te){return new t(this,te)}},{key:"_calculateOverlayOffsetX",value:function(){var lt,te=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ye=this._viewportRuler.getViewportSize(),pe=this._isRtl(),Ne=this.multiple?56:32;if(this.multiple)lt=40;else if(this.disableOptionCentering)lt=16;else{var ct=this._selectionModel.selected[0]||this.options.first;lt=ct&&ct.group?32:16}pe||(lt*=-1);var Bt=0-(te.left+lt-(pe?Ne:0)),jt=te.right+lt-ye.width+(pe?0:Ne);Bt>0?lt+=Bt+8:jt>0&&(lt-=jt+8),this._overlayDir.offsetX=Math.round(lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(te,ye,pe){var Bt,Ne=this._getItemHeight(),lt=(Ne-this._triggerRect.height)/2,ct=Math.floor(256/Ne);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)Bt=te*Ne;else if(this._scrollTop===pe){Bt=(te-(this._getItemCount()-ct))*Ne+(Ne-(this._getItemCount()*Ne-256)%Ne)}else Bt=ye-Ne/2;return Math.round(-1*Bt-lt)}},{key:"_checkOverlayWithinViewport",value:function(te){var ye=this._getItemHeight(),pe=this._viewportRuler.getViewportSize(),Ne=this._triggerRect.top-8,lt=pe.height-this._triggerRect.bottom-8,ct=Math.abs(this._offsetY),jt=Math.min(this._getItemCount()*ye,256)-ct-this._triggerRect.height;jt>lt?this._adjustPanelUp(jt,lt):ct>Ne?this._adjustPanelDown(ct,Ne,te):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(te,ye){var pe=Math.round(te-ye);this._scrollTop-=pe,this._offsetY-=pe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(te,ye,pe){var Ne=Math.round(te-ye);if(this._scrollTop+=Ne,this._offsetY+=Ne,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=pe)return this._scrollTop=pe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var ct,te=this._getItemHeight(),ye=this._getItemCount(),pe=Math.min(ye*te,256),lt=ye*te-pe;ct=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ct+=(0,k.CB)(ct,this.options,this.optionGroups);var Bt=pe/2;this._scrollTop=this._calculateOverlayScroll(ct,Bt,lt),this._offsetY=this._calculateOverlayOffsetY(ct,Bt,lt),this._checkOverlayWithinViewport(lt)}},{key:"_getOriginBasedOnOption",value:function(){var te=this._getItemHeight(),ye=(te-this._triggerRect.height)/2,pe=Math.abs(this._offsetY)-ye+te/2;return"50% ".concat(pe,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),Je}(sn);qt.\u0275fac=function(){var Kt;return function(Je){return(Kt||(Kt=v.n5z(qt)))(Je||qt)}}(),qt.\u0275cmp=v.Xpm({type:qt,selectors:[["mat-select"]],contentQueries:function(Xt,Je,Be){var te;(1&Xt&&(v.Suo(Be,Zt,5),v.Suo(Be,k.ey,5),v.Suo(Be,k.K7,5)),2&Xt)&&(v.iGM(te=v.CRH())&&(Je.customTrigger=te.first),v.iGM(te=v.CRH())&&(Je.options=te),v.iGM(te=v.CRH())&&(Je.optionGroups=te))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(Xt,Je){1&Xt&&v.NdJ("keydown",function(te){return Je._handleKeydown(te)})("focus",function(){return Je._onFocus()})("blur",function(){return Je._onBlur()}),2&Xt&&(v.uIk("id",Je.id)("tabindex",Je.tabIndex)("aria-controls",Je.panelOpen?Je.id+"-panel":null)("aria-expanded",Je.panelOpen)("aria-label",Je.ariaLabel||null)("aria-required",Je.required.toString())("aria-disabled",Je.disabled.toString())("aria-invalid",Je.errorState)("aria-activedescendant",Je._getAriaActiveDescendant()),v.ekj("mat-select-disabled",Je.disabled)("mat-select-invalid",Je.errorState)("mat-select-required",Je.required)("mat-select-empty",Je.empty)("mat-select-multiple",Je.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:b.Eo,useExisting:qt},{provide:k.HF,useExisting:qt}]),v.qOj],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Xt,Je){if(1&Xt&&(v.F$t(Ze),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return Je.toggle()}),v.TgZ(3,"div",2),v.YNc(4,st,2,1,"span",3),v.YNc(5,Et,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,Lt,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return Je.close()})("attach",function(){return Je._onAttached()})("detach",function(){return Je.close()})),2&Xt){var Be=v.MAs(1);v.uIk("aria-owns",Je.panelOpen?Je.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",Je.empty),v.uIk("id",Je._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",Je._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Je._scrollStrategy)("cdkConnectedOverlayOrigin",Be)("cdkConnectedOverlayOpen",Je.panelOpen)("cdkConnectedOverlayPositions",Je._positions)("cdkConnectedOverlayMinWidth",null==Je._triggerRect?null:Je._triggerRect.width)("cdkConnectedOverlayOffsetY",Je._offsetY)}},dependencies:[L.mk,L.RF,L.n9,L.ED,j.pI,j.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ft.transformPanelWrap,Ft.transformPanel]},changeDetection:0});var yn=(0,x.Z)(function Kt(){(0,D.Z)(this,Kt)});yn.\u0275fac=function(Xt){return new(Xt||yn)},yn.\u0275mod=v.oAB({type:yn}),yn.\u0275inj=v.cJS({providers:[ge],imports:[L.ez,j.U8,k.Ng,k.BQ,O.ZD,b.lN,k.Ng,k.BQ]})},3251:function(Ae,K,m){"use strict";m.d(K,{BU:function(){return Ke},Nh:function(){return Hn},Nj:function(){return vt},SP:function(){return et},uD:function(){return qt},uX:function(){return Xt}});var G=m(7326),W=m(4902),A=m(3237),H=m(1120),R=m(136),P=m(9388),x=m(5671),D=m(3144),j=m(5664),L=m(7144),v=m(7429),k=m(9808),b=m(5e3),O=m(508),S=m(2986),y=m(1059),T=m(5778),M=m(7625),E=m(7545),N=m(1307),F=m(9664),X=m(8929),$=m(4096),Y=m(3753),Q=m(1086),ne=m(6787),be=m(8896),fe=m(7451),de=m(8723),le=m(1777),ce=m(226),me=m(3191),je=m(1159),st=m(925),Mt=m(9071);function Tt(Yt,kt){1&Yt&&b.Hsn(0)}var Et=["*"];function Lt(Yt,kt){}var Ze=function(kt){return{animationDuration:kt}},$t=function(kt,$e){return{value:kt,params:$e}},Ft=["tabListContainer"],pn=["tabList"],nt=["tabListInner"],Ot=["nextPaginator"],_t=["previousPaginator"],Ct=["tabBodyWrapper"],We=["tabHeader"];function ut(Yt,kt){}function dt(Yt,kt){if(1&Yt&&b.YNc(0,ut,0,0,"ng-template",10),2&Yt){var $e=b.oxw().$implicit;b.Q6J("cdkPortalOutlet",$e.templateLabel)}}function Ut(Yt,kt){if(1&Yt&&b._uU(0),2&Yt){var $e=b.oxw().$implicit;b.Oqu($e.textLabel)}}function B(Yt,kt){if(1&Yt){var $e=b.EpF();b.TgZ(0,"div",6),b.NdJ("click",function(){var Wn=b.CHM($e),ar=Wn.$implicit,Or=Wn.index,hi=b.oxw(),Gi=b.MAs(1);return b.KtG(hi._handleClick(ar,Gi,Or))})("cdkFocusChange",function(Wn){var Or=b.CHM($e).index,hi=b.oxw();return b.KtG(hi._tabFocusChanged(Wn,Or))}),b.TgZ(1,"div",7),b.YNc(2,dt,1,1,"ng-template",8),b.YNc(3,Ut,1,1,"ng-template",null,9,b.W1O),b.qZA()()}if(2&Yt){var gt=kt.$implicit,yt=kt.index,nn=b.MAs(4),Gn=b.oxw();b.ekj("mat-tab-label-active",Gn.selectedIndex===yt),b.Q6J("id",Gn._getTabLabelId(yt))("ngClass",gt.labelClass)("disabled",gt.disabled)("matRippleDisabled",gt.disabled||Gn.disableRipple),b.uIk("tabIndex",Gn._getTabIndex(gt,yt))("aria-posinset",yt+1)("aria-setsize",Gn._tabs.length)("aria-controls",Gn._getTabContentId(yt))("aria-selected",Gn.selectedIndex===yt)("aria-label",gt.ariaLabel||null)("aria-labelledby",!gt.ariaLabel&>.ariaLabelledby?gt.ariaLabelledby:null),b.xp6(2),b.Q6J("ngIf",gt.templateLabel)("ngIfElse",nn)}}function U(Yt,kt){if(1&Yt){var $e=b.EpF();b.TgZ(0,"mat-tab-body",11),b.NdJ("_onCentered",function(){b.CHM($e);var Vn=b.oxw();return b.KtG(Vn._removeTabBodyWrapperHeight())})("_onCentering",function(Vn){b.CHM($e);var Wn=b.oxw();return b.KtG(Wn._setTabBodyWrapperHeight(Vn))}),b.qZA()}if(2&Yt){var gt=kt.$implicit,yt=kt.index,nn=b.oxw();b.ekj("mat-tab-body-active",nn.selectedIndex===yt),b.Q6J("id",nn._getTabContentId(yt))("ngClass",gt.bodyClass)("content",gt.content)("position",gt.position)("origin",gt.origin)("animationDuration",nn.animationDuration)("preserveContent",nn.preserveContent),b.uIk("tabindex",null!=nn.contentTabIndex&&nn.selectedIndex===yt?nn.contentTabIndex:null)("aria-labelledby",nn._getTabLabelId(yt))}}var Ye=new b.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ge(){return function($e){return{left:$e?($e.offsetLeft||0)+"px":"0",width:$e?($e.offsetWidth||0)+"px":"0"}}}});var t=function(){function Yt(kt,$e,gt,yt){(0,x.Z)(this,Yt),this._elementRef=kt,this._ngZone=$e,this._inkBarPositioner=gt,this._animationMode=yt}return(0,D.Z)(Yt,[{key:"alignToElement",value:function($e){var gt=this;this.show(),this._ngZone.run(function(){gt._ngZone.onStable.pipe((0,S.q)(1)).subscribe(function(){var yt=gt._inkBarPositioner($e),nn=gt._elementRef.nativeElement;nn.style.left=yt.left,nn.style.width=yt.width})})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),Yt}();t.\u0275fac=function(kt){return new(kt||t)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(Ye),b.Y36(b.QbO,8))},t.\u0275dir=b.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(kt,$e){2&kt&&b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode)}});var Dt=new b.OlP("MatTabContent"),Zt=(0,D.Z)(function Yt(kt){(0,x.Z)(this,Yt),this.template=kt});Zt.\u0275fac=function(kt){return new(kt||Zt)(b.Y36(b.Rgc))},Zt.\u0275dir=b.lG2({type:Zt,selectors:[["","matTabContent",""]],features:[b._Bn([{provide:Dt,useExisting:Zt}])]});var zt=new b.OlP("MatTabLabel"),sn=new b.OlP("MAT_TAB"),qt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn){var Gn;return(0,x.Z)(this,$e),(Gn=kt.call(this,gt,yt))._closestTab=nn,Gn}return(0,D.Z)($e)}(v.ig);qt.\u0275fac=function(kt){return new(kt||qt)(b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(sn,8))},qt.\u0275dir=b.lG2({type:qt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[b._Bn([{provide:zt,useExisting:qt}]),b.qOj]});var yn=(0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,x.Z)(this,Yt)})}()),Kt=new b.OlP("MAT_TAB_GROUP"),Xt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt){var nn;return(0,x.Z)(this,$e),(nn=kt.call(this))._viewContainerRef=gt,nn._closestTabGroup=yt,nn.textLabel="",nn._contentPortal=null,nn._stateChanges=new X.xQ,nn.position=null,nn.origin=null,nn.isActive=!1,nn}return(0,D.Z)($e,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(yt){this._setTemplateLabelInput(yt)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(yt){(yt.hasOwnProperty("textLabel")||yt.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(yt){yt&&yt._closestTab===this&&(this._templateLabel=yt)}}]),$e}(yn);Xt.\u0275fac=function(kt){return new(kt||Xt)(b.Y36(b.s_b),b.Y36(Kt,8))},Xt.\u0275cmp=b.Xpm({type:Xt,selectors:[["mat-tab"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&(b.Suo(gt,zt,5),b.Suo(gt,Dt,7,b.Rgc)),2&kt)&&(b.iGM(yt=b.CRH())&&($e.templateLabel=yt.first),b.iGM(yt=b.CRH())&&($e._explicitContent=yt.first))},viewQuery:function(kt,$e){var gt;(1&kt&&b.Gf(b.Rgc,7),2&kt)&&(b.iGM(gt=b.CRH())&&($e._implicitContent=gt.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[b._Bn([{provide:sn,useExisting:Xt}]),b.qOj,b.TTD],ngContentSelectors:Et,decls:1,vars:0,template:function(kt,$e){1&kt&&(b.F$t(),b.YNc(0,Tt,1,0,"ng-template"))},encapsulation:2});var Je={translateTab:(0,le.X$)("translateTab",[(0,le.SB)("center, void, left-origin-center, right-origin-center",(0,le.oB)({transform:"none"})),(0,le.SB)("left",(0,le.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,le.SB)("right",(0,le.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,le.eR)("* => left, * => right, left => center, right => center",(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,le.eR)("void => left-origin-center",[(0,le.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,le.eR)("void => right-origin-center",[(0,le.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Be=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){var Vn;return(0,x.Z)(this,$e),(Vn=kt.call(this,gt,yt,Gn))._host=nn,Vn._centeringSub=$.w.EMPTY,Vn._leavingSub=$.w.EMPTY,Vn}return(0,D.Z)($e,[{key:"ngOnInit",value:function(){var yt=this;(0,A.Z)((0,H.Z)($e.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(nn){nn&&!yt.hasAttached()&&yt.attach(yt._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){yt._host.preserveContent||yt.detach()})}},{key:"ngOnDestroy",value:function(){(0,A.Z)((0,H.Z)($e.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),$e}(v.Pl);Be.\u0275fac=function(kt){return new(kt||Be)(b.Y36(b._Vd),b.Y36(b.s_b),b.Y36((0,b.Gpc)(function(){return ye})),b.Y36(k.K0))},Be.\u0275dir=b.lG2({type:Be,selectors:[["","matTabBodyHost",""]],features:[b.qOj]});var te=function(){function Yt(kt,$e,gt){var yt=this;(0,x.Z)(this,Yt),this._elementRef=kt,this._dir=$e,this._dirChangeSubscription=$.w.EMPTY,this._translateTabComplete=new X.xQ,this._onCentering=new b.vpe,this._beforeCentering=new b.vpe,this._afterLeavingCenter=new b.vpe,this._onCentered=new b.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,$e&&(this._dirChangeSubscription=$e.change.subscribe(function(nn){yt._computePositionAnimationState(nn),gt.markForCheck()})),this._translateTabComplete.pipe((0,T.x)(function(nn,Gn){return nn.fromState===Gn.fromState&&nn.toState===Gn.toState})).subscribe(function(nn){yt._isCenterPosition(nn.toState)&&yt._isCenterPosition(yt._position)&&yt._onCentered.emit(),yt._isCenterPosition(nn.fromState)&&!yt._isCenterPosition(yt._position)&&yt._afterLeavingCenter.emit()})}return(0,D.Z)(Yt,[{key:"position",set:function($e){this._positionIndex=$e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function($e){var gt=this._isCenterPosition($e.toState);this._beforeCentering.emit(gt),gt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function($e){return"center"==$e||"left-origin-center"==$e||"right-origin-center"==$e}},{key:"_computePositionAnimationState",value:function(){var $e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==$e?"left":"right":this._positionIndex>0?this._position="ltr"==$e?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function($e){var gt=this._getLayoutDirection();return"ltr"==gt&&$e<=0||"rtl"==gt&&$e>0?"left-origin-center":"right-origin-center"}}]),Yt}();te.\u0275fac=function(kt){return new(kt||te)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.sBO))},te.\u0275dir=b.lG2({type:te,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var ye=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn){return(0,x.Z)(this,$e),kt.call(this,gt,yt,nn)}return(0,D.Z)($e)}(te);ye.\u0275fac=function(kt){return new(kt||ye)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.sBO))},ye.\u0275cmp=b.Xpm({type:ye,selectors:[["mat-tab-body"]],viewQuery:function(kt,$e){var gt;(1&kt&&b.Gf(v.Pl,5),2&kt)&&(b.iGM(gt=b.CRH())&&($e._portalHost=gt.first))},hostAttrs:[1,"mat-tab-body"],features:[b.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(kt,$e){1&kt&&(b.TgZ(0,"div",0,1),b.NdJ("@translateTab.start",function(yt){return $e._onTranslateTabStarted(yt)})("@translateTab.done",function(yt){return $e._translateTabComplete.next(yt)}),b.YNc(2,Lt,0,0,"ng-template",2),b.qZA()),2&kt&&b.Q6J("@translateTab",b.WLB(3,$t,$e._position,b.VKq(1,Ze,$e.animationDuration)))},dependencies:[Be],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Je.translateTab]}});var pe=new b.OlP("MAT_TABS_CONFIG"),lt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt){var yt;return(0,x.Z)(this,$e),(yt=kt.call(this)).elementRef=gt,yt}return(0,D.Z)($e,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),$e}((0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,x.Z)(this,Yt)})}()));lt.\u0275fac=function(kt){return new(kt||lt)(b.Y36(b.SBq))},lt.\u0275dir=b.lG2({type:lt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(kt,$e){2&kt&&(b.uIk("aria-disabled",!!$e.disabled),b.ekj("mat-tab-disabled",$e.disabled))},inputs:{disabled:"disabled"},features:[b.qOj]});var ct=(0,st.i$)({passive:!0}),vn=function(){function Yt(kt,$e,gt,yt,nn,Gn,Vn){var Wn=this;(0,x.Z)(this,Yt),this._elementRef=kt,this._changeDetectorRef=$e,this._viewportRuler=gt,this._dir=yt,this._ngZone=nn,this._platform=Gn,this._animationMode=Vn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new X.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new X.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new b.vpe,this.indexFocused=new b.vpe,nn.runOutsideAngular(function(){(0,Y.R)(kt.nativeElement,"mouseleave").pipe((0,M.R)(Wn._destroyed)).subscribe(function(){Wn._stopInterval()})})}return(0,D.Z)(Yt,[{key:"disablePagination",get:function(){return this._disablePagination},set:function($e){this._disablePagination=(0,me.Ig)($e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function($e){$e=(0,me.su)($e),this._selectedIndex!=$e&&(this._selectedIndexChanged=!0,this._selectedIndex=$e,this._keyManager&&this._keyManager.updateActiveItem($e))}},{key:"ngAfterViewInit",value:function(){var $e=this;(0,Y.R)(this._previousPaginator.nativeElement,"touchstart",ct).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._handlePaginatorPress("before")}),(0,Y.R)(this._nextPaginator.nativeElement,"touchstart",ct).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var $e=this,gt=this._dir?this._dir.change:(0,Q.of)("ltr"),yt=this._viewportRuler.change(150),nn=function(){$e.updatePagination(),$e._alignInkBarToSelectedTab()};this._keyManager=new j.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(nn),(0,ne.T)(gt,yt,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._ngZone.run(function(){Promise.resolve().then(function(){$e._scrollDistance=Math.max(0,Math.min($e._getMaxScrollDistance(),$e._scrollDistance)),nn()})}),$e._keyManager.withHorizontalOrientation($e._getLayoutDirection())}),this._keyManager.change.pipe((0,M.R)(this._destroyed)).subscribe(function(Gn){$e.indexFocused.emit(Gn),$e._setTabFocus(Gn)})}},{key:"_itemsResized",value:function(){var $e=this;return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,y.O)(this._items),(0,E.w)(function(gt){return new fe.y(function(yt){return $e._ngZone.runOutsideAngular(function(){var nn=new ResizeObserver(function(Gn){return yt.next(Gn)});return gt.forEach(function(Gn){return nn.observe(Gn.elementRef.nativeElement)}),function(){nn.disconnect()}})})}),(0,N.T)(1),(0,F.h)(function(gt){return gt.some(function(yt){return yt.contentRect.width>0&&yt.contentRect.height>0})}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function($e){if(!(0,je.Vb)($e))switch($e.keyCode){case je.K5:case je.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected($e));break;default:this._keyManager.onKeydown($e)}}},{key:"_onContentChanges",value:function(){var $e=this,gt=this._elementRef.nativeElement.textContent;gt!==this._currentTextContent&&(this._currentTextContent=gt||"",this._ngZone.run(function(){$e.updatePagination(),$e._alignInkBarToSelectedTab(),$e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function($e){!this._isValidIndex($e)||this.focusIndex===$e||!this._keyManager||this._keyManager.setActiveItem($e)}},{key:"_isValidIndex",value:function($e){if(!this._items)return!0;var gt=this._items?this._items.toArray()[$e]:null;return!!gt&&!gt.disabled}},{key:"_setTabFocus",value:function($e){if(this._showPaginationControls&&this._scrollToLabel($e),this._items&&this._items.length){this._items.toArray()[$e].focus();var gt=this._tabListContainer.nativeElement,yt=this._getLayoutDirection();gt.scrollLeft="ltr"==yt?0:gt.scrollWidth-gt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var $e=this.scrollDistance,gt="ltr"===this._getLayoutDirection()?-$e:$e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(gt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function($e){this._scrollTo($e)}},{key:"_scrollHeader",value:function($e){var yt=("before"==$e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+yt)}},{key:"_handlePaginatorClick",value:function($e){this._stopInterval(),this._scrollHeader($e)}},{key:"_scrollToLabel",value:function($e){if(!this.disablePagination){var gt=this._items?this._items.toArray()[$e]:null;if(gt){var Wn,ar,yt=this._tabListContainer.nativeElement.offsetWidth,nn=gt.elementRef.nativeElement,Gn=nn.offsetLeft,Vn=nn.offsetWidth;"ltr"==this._getLayoutDirection()?ar=(Wn=Gn)+Vn:Wn=(ar=this._tabListInner.nativeElement.offsetWidth-Gn)-Vn;var Or=this.scrollDistance,hi=this.scrollDistance+yt;Wn<Or?this.scrollDistance-=Or-Wn+60:ar>hi&&(this.scrollDistance+=ar-hi+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var $e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;$e||(this.scrollDistance=0),$e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=$e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var $e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,gt=$e?$e.elementRef.nativeElement:null;gt?this._inkBar.alignToElement(gt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function($e,gt){var yt=this;gt&&null!=gt.button&&0!==gt.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,M.R)((0,ne.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var nn=yt._scrollHeader($e),Gn=nn.maxScrollDistance,Vn=nn.distance;(0===Vn||Vn>=Gn)&&yt._stopInterval()}))}},{key:"_scrollTo",value:function($e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var gt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(gt,$e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:gt,distance:this._scrollDistance}}}]),Yt}();vn.\u0275fac=function(kt){return new(kt||vn)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(st.t4),b.Y36(b.QbO,8))},vn.\u0275dir=b.lG2({type:vn,inputs:{disablePagination:"disablePagination"}});var ln=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){var Or;return(0,x.Z)(this,$e),(Or=kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar))._disableRipple=!1,Or}return(0,D.Z)($e,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(yt){this._disableRipple=(0,me.Ig)(yt)}},{key:"_itemSelected",value:function(yt){yt.preventDefault()}}]),$e}(vn);ln.\u0275fac=function(kt){return new(kt||ln)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(st.t4),b.Y36(b.QbO,8))},ln.\u0275dir=b.lG2({type:ln,inputs:{disableRipple:"disableRipple"},features:[b.qOj]});var En=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){return(0,x.Z)(this,$e),kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar)}return(0,D.Z)($e)}(ln);En.\u0275fac=function(kt){return new(kt||En)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(st.t4),b.Y36(b.QbO,8))},En.\u0275cmp=b.Xpm({type:En,selectors:[["mat-tab-header"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,lt,4),2&kt)&&(b.iGM(yt=b.CRH())&&($e._items=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(t,7),b.Gf(Ft,7),b.Gf(pn,7),b.Gf(nt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._inkBar=gt.first),b.iGM(gt=b.CRH())&&($e._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&($e._tabList=gt.first),b.iGM(gt=b.CRH())&&($e._tabListInner=gt.first),b.iGM(gt=b.CRH())&&($e._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&($e._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(kt,$e){2&kt&&b.ekj("mat-tab-header-pagination-controls-enabled",$e._showPaginationControls)("mat-tab-header-rtl","rtl"==$e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[b.qOj],ngContentSelectors:Et,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(kt,$e){1&kt&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return $e._handlePaginatorClick("before")})("mousedown",function(yt){return $e._handlePaginatorPress("before",yt)})("touchend",function(){return $e._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(yt){return $e._handleKeydown(yt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return $e._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(yt){return $e._handlePaginatorPress("after",yt)})("click",function(){return $e._handlePaginatorClick("after")})("touchend",function(){return $e._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&kt&&(b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollBefore),b.Q6J("matRippleDisabled",$e._disableScrollBefore||$e.disableRipple)("disabled",$e._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollAfter),b.Q6J("matRippleDisabled",$e._disableScrollAfter||$e.disableRipple)("disabled",$e._disableScrollAfter||null))},dependencies:[O.wG,L.wD,t],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2});var hn=0,mn=(0,D.Z)(function Yt(){(0,x.Z)(this,Yt)}),xt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){var Vn,Wn;return(0,x.Z)(this,$e),(Vn=kt.call(this,gt))._changeDetectorRef=yt,Vn._animationMode=Gn,Vn._tabs=new b.n_E,Vn._indexToSelect=0,Vn._lastFocusedTabIndex=null,Vn._tabBodyWrapperHeight=0,Vn._tabsSubscription=$.w.EMPTY,Vn._tabLabelSubscription=$.w.EMPTY,Vn._dynamicHeight=!1,Vn._selectedIndex=null,Vn.headerPosition="above",Vn._disablePagination=!1,Vn._preserveContent=!1,Vn.selectedIndexChange=new b.vpe,Vn.focusChange=new b.vpe,Vn.animationDone=new b.vpe,Vn.selectedTabChange=new b.vpe(!0),Vn._groupId=hn++,Vn.animationDuration=nn&&nn.animationDuration?nn.animationDuration:"500ms",Vn.disablePagination=!(!nn||null==nn.disablePagination)&&nn.disablePagination,Vn.dynamicHeight=!(!nn||null==nn.dynamicHeight)&&nn.dynamicHeight,Vn.contentTabIndex=null!==(Wn=null==nn?void 0:nn.contentTabIndex)&&void 0!==Wn?Wn:null,Vn.preserveContent=!(null==nn||!nn.preserveContent),Vn}return(0,D.Z)($e,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(yt){this._dynamicHeight=(0,me.Ig)(yt)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(yt){this._indexToSelect=(0,me.su)(yt,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(yt){this._animationDuration=/^\d+$/.test(yt+"")?yt+"ms":yt}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(yt){this._contentTabIndex=(0,me.su)(yt,null)}},{key:"disablePagination",get:function(){return this._disablePagination},set:function(yt){this._disablePagination=(0,me.Ig)(yt)}},{key:"preserveContent",get:function(){return this._preserveContent},set:function(yt){this._preserveContent=(0,me.Ig)(yt)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(yt){var nn=this._elementRef.nativeElement;nn.classList.remove("mat-background-".concat(this.backgroundColor)),yt&&nn.classList.add("mat-background-".concat(yt)),this._backgroundColor=yt}},{key:"ngAfterContentChecked",value:function(){var yt=this,nn=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=nn){var Gn=null==this._selectedIndex;if(!Gn){this.selectedTabChange.emit(this._createChangeEvent(nn));var Vn=this._tabBodyWrapper.nativeElement;Vn.style.minHeight=Vn.clientHeight+"px"}Promise.resolve().then(function(){yt._tabs.forEach(function(Wn,ar){return Wn.isActive=ar===nn}),Gn||(yt.selectedIndexChange.emit(nn),yt._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Wn,ar){Wn.position=ar-nn,null!=yt._selectedIndex&&0==Wn.position&&!Wn.origin&&(Wn.origin=nn-yt._selectedIndex)}),this._selectedIndex!==nn&&(this._selectedIndex=nn,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var yt=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var nn=yt._clampTabIndex(yt._indexToSelect);if(nn===yt._selectedIndex){for(var Vn,Gn=yt._tabs.toArray(),Wn=0;Wn<Gn.length;Wn++)if(Gn[Wn].isActive){yt._indexToSelect=yt._selectedIndex=Wn,yt._lastFocusedTabIndex=null,Vn=Gn[Wn];break}!Vn&&Gn[nn]&&Promise.resolve().then(function(){Gn[nn].isActive=!0,yt.selectedTabChange.emit(yt._createChangeEvent(nn))})}yt._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var yt=this;this._allTabs.changes.pipe((0,y.O)(this._allTabs)).subscribe(function(nn){yt._tabs.reset(nn.filter(function(Gn){return Gn._closestTabGroup===yt||!Gn._closestTabGroup})),yt._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"updatePagination",value:function(){this._tabHeader&&this._tabHeader.updatePagination()}},{key:"focusTab",value:function(yt){var nn=this._tabHeader;nn&&(nn.focusIndex=yt)}},{key:"_focusChanged",value:function(yt){this._lastFocusedTabIndex=yt,this.focusChange.emit(this._createChangeEvent(yt))}},{key:"_createChangeEvent",value:function(yt){var nn=new mn;return nn.index=yt,this._tabs&&this._tabs.length&&(nn.tab=this._tabs.toArray()[yt]),nn}},{key:"_subscribeToTabLabels",value:function(){var yt=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ne.T.apply(void 0,(0,W.Z)(this._tabs.map(function(nn){return nn._stateChanges}))).subscribe(function(){return yt._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(yt){return Math.min(this._tabs.length-1,Math.max(yt||0,0))}},{key:"_getTabLabelId",value:function(yt){return"mat-tab-label-".concat(this._groupId,"-").concat(yt)}},{key:"_getTabContentId",value:function(yt){return"mat-tab-content-".concat(this._groupId,"-").concat(yt)}},{key:"_setTabBodyWrapperHeight",value:function(yt){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var nn=this._tabBodyWrapper.nativeElement;nn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(nn.style.height=yt+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var yt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=yt.clientHeight,yt.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(yt,nn,Gn){yt.disabled||(this.selectedIndex=nn.focusIndex=Gn)}},{key:"_getTabIndex",value:function(yt,nn){var Gn;return yt.disabled?null:nn===(null!==(Gn=this._lastFocusedTabIndex)&&void 0!==Gn?Gn:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(yt,nn){yt&&"mouse"!==yt&&"touch"!==yt&&(this._tabHeader.focusIndex=nn)}}]),$e}((0,O.pj)((0,O.Kr)(function(){return(0,D.Z)(function Yt(kt){(0,x.Z)(this,Yt),this._elementRef=kt})}()),"primary"));xt.\u0275fac=function(kt){return new(kt||xt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(pe,8),b.Y36(b.QbO,8))},xt.\u0275dir=b.lG2({type:xt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[b.qOj]});var et=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){return(0,x.Z)(this,$e),kt.call(this,gt,yt,nn,Gn)}return(0,D.Z)($e)}(xt);et.\u0275fac=function(kt){return new(kt||et)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(pe,8),b.Y36(b.QbO,8))},et.\u0275cmp=b.Xpm({type:et,selectors:[["mat-tab-group"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,Xt,5),2&kt)&&(b.iGM(yt=b.CRH())&&($e._allTabs=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(Ct,5),b.Gf(We,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._tabBodyWrapper=gt.first),b.iGM(gt=b.CRH())&&($e._tabHeader=gt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(kt,$e){2&kt&&b.ekj("mat-tab-group-dynamic-height",$e.dynamicHeight)("mat-tab-group-inverted-header","below"===$e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[b._Bn([{provide:Kt,useExisting:et}]),b.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(kt,$e){1&kt&&(b.TgZ(0,"mat-tab-header",0,1),b.NdJ("indexFocused",function(yt){return $e._focusChanged(yt)})("selectFocusedIndex",function(yt){return $e.selectedIndex=yt}),b.YNc(2,B,5,15,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.YNc(5,U,1,11,"mat-tab-body",5),b.qZA()),2&kt&&(b.Q6J("selectedIndex",$e.selectedIndex||0)("disableRipple",$e.disableRipple)("disablePagination",$e.disablePagination),b.xp6(2),b.Q6J("ngForOf",$e._tabs),b.xp6(1),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(2),b.Q6J("ngForOf",$e._tabs))},dependencies:[k.mk,k.sg,k.O5,v.Pl,O.wG,j.kH,lt,ye,En],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2});var St=0,ze=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){var Or;return(0,x.Z)(this,$e),(Or=kt.call(this,gt,Gn,Vn,yt,nn,Wn,ar))._disableRipple=!1,Or.color="primary",Or}return(0,D.Z)($e,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(yt){var nn=this._elementRef.nativeElement.classList;nn.remove("mat-background-".concat(this.backgroundColor)),yt&&nn.add("mat-background-".concat(yt)),this._backgroundColor=yt}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(yt){this._disableRipple=(0,me.Ig)(yt)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var yt=this;this._items.changes.pipe((0,y.O)(null),(0,M.R)(this._destroyed)).subscribe(function(){yt.updateActiveLink()}),(0,A.Z)((0,H.Z)($e.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var yt=this._items.toArray(),nn=0;nn<yt.length;nn++)if(yt[nn].active)return this.selectedIndex=nn,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=yt[nn].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),$e}(vn);ze.\u0275fac=function(kt){return new(kt||ze)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(st.t4),b.Y36(b.QbO,8))},ze.\u0275dir=b.lG2({type:ze,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[b.qOj]});var Ke=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){return(0,x.Z)(this,$e),kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar)}return(0,D.Z)($e)}(ze);Ke.\u0275fac=function(kt){return new(kt||Ke)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(st.t4),b.Y36(b.QbO,8))},Ke.\u0275cmp=b.Xpm({type:Ke,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,vt,5),2&kt)&&(b.iGM(yt=b.CRH())&&($e._items=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(t,7),b.Gf(Ft,7),b.Gf(pn,7),b.Gf(nt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._inkBar=gt.first),b.iGM(gt=b.CRH())&&($e._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&($e._tabList=gt.first),b.iGM(gt=b.CRH())&&($e._tabListInner=gt.first),b.iGM(gt=b.CRH())&&($e._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&($e._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(kt,$e){2&kt&&(b.uIk("role",$e._getRole()),b.ekj("mat-tab-header-pagination-controls-enabled",$e._showPaginationControls)("mat-tab-header-rtl","rtl"==$e._getLayoutDirection())("mat-primary","warn"!==$e.color&&"accent"!==$e.color)("mat-accent","accent"===$e.color)("mat-warn","warn"===$e.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[b.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:Et,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(kt,$e){1&kt&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return $e._handlePaginatorClick("before")})("mousedown",function(yt){return $e._handlePaginatorPress("before",yt)})("touchend",function(){return $e._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(yt){return $e._handleKeydown(yt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return $e._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(yt){return $e._handlePaginatorPress("after",yt)})("click",function(){return $e._handlePaginatorClick("after")})("touchend",function(){return $e._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&kt&&(b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollBefore),b.Q6J("matRippleDisabled",$e._disableScrollBefore||$e.disableRipple)("disabled",$e._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollAfter),b.Q6J("matRippleDisabled",$e._disableScrollAfter||$e.disableRipple)("disabled",$e._disableScrollAfter||null))},dependencies:[O.wG,L.wD,t],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2});var qe=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn){var ar;return(0,x.Z)(this,$e),(ar=kt.call(this))._tabNavBar=gt,ar.elementRef=yt,ar._focusMonitor=Vn,ar._isActive=!1,ar.id="mat-tab-link-".concat(St++),ar.rippleConfig=nn||{},ar.tabIndex=parseInt(Gn)||0,"NoopAnimations"===Wn&&(ar.rippleConfig.animation={enterDuration:0,exitDuration:0}),ar}return(0,D.Z)($e,[{key:"active",get:function(){return this._isActive},set:function(yt){var nn=(0,me.Ig)(yt);nn!==this._isActive&&(this._isActive=nn,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"_handleFocus",value:function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}},{key:"_handleKeydown",value:function(yt){this._tabNavBar.tabPanel&&yt.keyCode===je.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var yt;return this._tabNavBar.tabPanel?null===(yt=this._tabNavBar.tabPanel)||void 0===yt?void 0:yt.id:this.elementRef.nativeElement.getAttribute("aria-controls")}},{key:"_getAriaSelected",value:function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}},{key:"_getAriaCurrent",value:function(){return this.active&&!this._tabNavBar.tabPanel?"page":null}},{key:"_getRole",value:function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}},{key:"_getTabIndex",value:function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}]),$e}((0,O.sb)((0,O.Kr)((0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,x.Z)(this,Yt)})}()))));qe.\u0275fac=function(kt){return new(kt||qe)(b.Y36(ze),b.Y36(b.SBq),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},qe.\u0275dir=b.lG2({type:qe,inputs:{active:"active",id:"id"},features:[b.qOj]});var vt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar,Or){var hi;return(0,x.Z)(this,$e),(hi=kt.call(this,gt,yt,Vn,Wn,ar,Or))._tabLinkRipple=new O.IR((0,G.Z)(hi),nn,yt,Gn),hi._tabLinkRipple.setupTriggerEvents(yt.nativeElement),hi}return(0,D.Z)($e,[{key:"ngOnDestroy",value:function(){(0,A.Z)((0,H.Z)($e.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),$e}(qe);vt.\u0275fac=function(kt){return new(kt||vt)(b.Y36(Ke),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(st.t4),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},vt.\u0275dir=b.lG2({type:vt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(kt,$e){1&kt&&b.NdJ("focus",function(){return $e._handleFocus()})("keydown",function(yt){return $e._handleKeydown(yt)}),2&kt&&(b.uIk("aria-controls",$e._getAriaControls())("aria-current",$e._getAriaCurrent())("aria-disabled",$e.disabled)("aria-selected",$e._getAriaSelected())("id",$e.id)("tabIndex",$e._getTabIndex())("role",$e._getRole()),b.ekj("mat-tab-disabled",$e.disabled)("mat-tab-label-active",$e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[b.qOj]});var dn=(0,D.Z)(function Yt(){(0,x.Z)(this,Yt),this.id="mat-tab-nav-panel-".concat(St++)});dn.\u0275fac=function(kt){return new(kt||dn)},dn.\u0275cmp=b.Xpm({type:dn,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(kt,$e){2&kt&&b.uIk("aria-labelledby",$e._activeTabId)("id",$e.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Et,decls:1,vars:0,template:function(kt,$e){1&kt&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0});var Hn=(0,D.Z)(function Yt(){(0,x.Z)(this,Yt)});Hn.\u0275fac=function(kt){return new(kt||Hn)},Hn.\u0275mod=b.oAB({type:Hn}),Hn.\u0275inj=b.cJS({imports:[k.ez,O.BQ,v.eL,O.si,L.Q8,j.rt,O.BQ]})},907:function(Ae,K,m){"use strict";function G(W,A){(null==A||A>W.length)&&(A=W.length);for(var H=0,R=new Array(A);H<A;H++)R[H]=W[H];return R}m.d(K,{Z:function(){return G}})},3878:function(Ae,K,m){"use strict";function G(W){if(Array.isArray(W))return W}m.d(K,{Z:function(){return G}})},7326:function(Ae,K,m){"use strict";function G(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}m.d(K,{Z:function(){return G}})},5671:function(Ae,K,m){"use strict";function G(W,A){if(!(W instanceof A))throw new TypeError("Cannot call a class as a function")}m.d(K,{Z:function(){return G}})},5647:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(9611),W=m(8814);function A(H,R,P){return(A=(0,W.Z)()?Reflect.construct.bind():function(D,j,L){var v=[null];v.push.apply(v,j);var b=new(Function.bind.apply(D,v));return L&&(0,G.Z)(b,L.prototype),b}).apply(null,arguments)}},3144:function(Ae,K,m){"use strict";function G(A,H){for(var R=0;R<H.length;R++){var P=H[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(A,P.key,P)}}function W(A,H,R){return H&&G(A.prototype,H),R&&G(A,R),Object.defineProperty(A,"prototype",{writable:!1}),A}m.d(K,{Z:function(){return W}})},7762:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(181);function W(A,H){var R="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!R){if(Array.isArray(A)||(R=(0,G.Z)(A))||H&&A&&"number"==typeof A.length){R&&(A=R);var P=0,x=function(){};return{s:x,n:function(){return P>=A.length?{done:!0}:{done:!1,value:A[P++]}},e:function(k){throw k},f:x}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,D=!0,j=!1;return{s:function(){R=R.call(A)},n:function(){var k=R.next();return D=k.done,k},e:function(k){j=!0,L=k},f:function(){try{!D&&null!=R.return&&R.return()}finally{if(j)throw L}}}}},9388:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return H}});var G=m(1120),W=m(8814),A=m(2963);function H(R){var P=(0,W.Z)();return function(){var j,D=(0,G.Z)(R);if(P){var L=(0,G.Z)(this).constructor;j=Reflect.construct(D,arguments,L)}else j=D.apply(this,arguments);return(0,A.Z)(this,j)}}},4942:function(Ae,K,m){"use strict";function G(W,A,H){return A in W?Object.defineProperty(W,A,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[A]=H,W}m.d(K,{Z:function(){return G}})},3237:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1120);function W(H,R){for(;!Object.prototype.hasOwnProperty.call(H,R)&&null!==(H=(0,G.Z)(H)););return H}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(R,P,x){var D=W(R,P);if(D){var j=Object.getOwnPropertyDescriptor(D,P);return j.get?j.get.call(arguments.length<3?R:x):j.value}},A.apply(this,arguments)}},1120:function(Ae,K,m){"use strict";function G(W){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)})(W)}m.d(K,{Z:function(){return G}})},136:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(9611);function W(A,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(H&&H.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),H&&(0,G.Z)(A,H)}},8814:function(Ae,K,m){"use strict";function G(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(W){return!1}}m.d(K,{Z:function(){return G}})},9199:function(Ae,K,m){"use strict";function G(W){if("undefined"!=typeof Symbol&&null!=W[Symbol.iterator]||null!=W["@@iterator"])return Array.from(W)}m.d(K,{Z:function(){return G}})},5267:function(Ae,K,m){"use strict";function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}m.d(K,{Z:function(){return G}})},2963:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1002),W=m(7326);function A(H,R){if(R&&("object"===(0,G.Z)(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return(0,W.Z)(H)}},9611:function(Ae,K,m){"use strict";function G(W,A){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,P){return R.__proto__=P,R})(W,A)}m.d(K,{Z:function(){return G}})},7685:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878);var A=m(181),H=m(5267);function R(P,x){return(0,G.Z)(P)||function W(P,x){var D=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=D){var k,b,j=[],L=!0,v=!1;try{for(D=D.call(P);!(L=(k=D.next()).done)&&(j.push(k.value),!x||j.length!==x);L=!0);}catch(O){v=!0,b=O}finally{try{!L&&null!=D.return&&D.return()}finally{if(v)throw b}}return j}}(P,x)||(0,A.Z)(P,x)||(0,H.Z)()}},4506:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878),W=m(9199),A=m(181),H=m(5267);function R(P){return(0,G.Z)(P)||(0,W.Z)(P)||(0,A.Z)(P)||(0,H.Z)()}},4902:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(907);var A=m(9199),H=m(181);function P(x){return function W(x){if(Array.isArray(x))return(0,G.Z)(x)}(x)||(0,A.Z)(x)||(0,H.Z)(x)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(Ae,K,m){"use strict";function G(W){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(W)}m.d(K,{Z:function(){return G}})},181:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(907);function W(A,H){if(A){if("string"==typeof A)return(0,G.Z)(A,H);var R=Object.prototype.toString.call(A).slice(8,-1);if("Object"===R&&A.constructor&&(R=A.constructor.name),"Map"===R||"Set"===R)return Array.from(A);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return(0,G.Z)(A,H)}}},5724:function(Ae,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(1120),W=m(9611);var H=m(5647);function R(P){var x="function"==typeof Map?new Map:void 0;return R=function(j){if(null===j||!function A(P){return-1!==Function.toString.call(P).indexOf("[native code]")}(j))return j;if("function"!=typeof j)throw new TypeError("Super expression must either be null or a function");if(void 0!==x){if(x.has(j))return x.get(j);x.set(j,L)}function L(){return(0,H.Z)(j,arguments,(0,G.Z)(this).constructor)}return L.prototype=Object.create(j.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),(0,W.Z)(L,j)},R(P)}},4147:function(Ae){"use strict";Ae.exports={i8:"3.0.4"}}},function(Ae){var G;G=1611,Ae(Ae.s=G)}]); |